Add support for Xilinx MicroBlaze processor.
[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#
85bd1942 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
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".
f9806fa5 1898host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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* \
8bcf2718 2067 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
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
4a657b0d 2080 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
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 ;;
85bd1942
TG
2218 i[3456789]86-*-darwin*)
2219 noconfigdirs="$noconfigdirs ld gprof"
2220 noconfigdirs="$noconfigdirs sim target-rda"
2221 ;;
2222 x86_64-*-darwin9*)
652dec25
TG
2223 noconfigdirs="$noconfigdirs ld gas gprof"
2224 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2225 ;;
04d1ab34 2226 *-*-darwin*)
d320aacb 2227 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2228 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2229 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2230 ;;
a0da8069 2231 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2232 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2233 ;;
de0b4a87 2234 *-*-freebsd*)
4b1cb4fe
DD
2235 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2236 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2237 && test -f /usr/local/include/gmp.h; then
2238 with_gmp=/usr/local
2239 fi
2240
2241 # Skip some stuff that's unsupported on some FreeBSD configurations.
2242 case "${target}" in
2243 i*86-*-*) ;;
2244 alpha*-*-*) ;;
2245 *)
54d1c879 2246 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2247 ;;
2248 esac
2249 ;;
f8a495c8
NC
2250 *-*-kaos*)
2251 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2252 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2253 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2254 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2255 noconfigdirs="$noconfigdirs target-libgloss"
2256 ;;
a0da8069
NN
2257 *-*-netbsd*)
2258 # Skip some stuff on all NetBSD configurations.
2259 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2260
2261 # Skip some stuff that's unsupported on some NetBSD configurations.
2262 case "${target}" in
2263 i*86-*-netbsdelf*) ;;
5b474aa8 2264 arm*-*-netbsdelf*) ;;
a0da8069 2265 *)
54d1c879 2266 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2267 ;;
2268 esac
2269 ;;
2a3124ca 2270 *-*-netware*)
54d1c879 2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2272 ;;
2273 *-*-rtems*)
54d1c879 2274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2275 ;;
1587117a
EC
2276 # The tpf target doesn't support gdb yet.
2277 *-*-tpf*)
54d1c879 2278 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2279 ;;
c1968181 2280 *-*-uclinux*)
54d1c879 2281 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2282 ;;
a0da8069 2283 *-*-vxworks*)
54d1c879 2284 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2285 ;;
2286 alpha*-dec-osf*)
2287 # ld works, but does not support shared libraries.
2288 # newlib is not 64 bit ready. I'm not sure about fileutils.
2289 # gas doesn't generate exception information.
2290 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2291 ;;
2292 alpha*-*-*vms*)
54d1c879 2293 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2294 ;;
2295 alpha*-*-linux*)
2296 # newlib is not 64 bit ready
2297 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2298 ;;
a0da8069
NN
2299 alpha*-*-*)
2300 # newlib is not 64 bit ready
54d1c879 2301 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2302 ;;
4a18bd6b 2303 am33_2.0-*-linux*)
54d1c879 2304 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2305 ;;
a0da8069 2306 sh-*-linux*)
54d1c879 2307 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2308 ;;
a0da8069 2309 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2310 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2311 noconfigdirs="$noconfigdirs target-examples"
2312 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2313 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2314 noconfigdirs="$noconfigdirs expect dejagnu"
2315 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2316 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2317 noconfigdirs="$noconfigdirs target-newlib"
2318 case "${host}" in
2319 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2320 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2321 ;;
2322 esac
691bb5a1 2323 libgloss_dir=wince
a0da8069
NN
2324 ;;
2325 arc-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2327 ;;
caeba88f 2328 arm-semi-aof )
caeba88f 2329 ;;
a0da8069 2330 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2331 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2332 libgloss_dir=arm
a0da8069 2333 ;;
11b04d1f 2334 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2335 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2336 libgloss_dir=arm
a0da8069 2337 ;;
bd70a46f 2338 arm*-*-linux-gnueabi)
6d18b86b 2339 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2340 case ${with_newlib} in
2341 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2342 esac
691bb5a1 2343 libgloss_dir=arm
bd70a46f 2344 ;;
df4a6958 2345 arm*-*-symbianelf*)
54d1c879 2346 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2347 libgloss_dir=arm
df4a6958 2348 ;;
a0da8069 2349 arm-*-pe*)
54d1c879 2350 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2351 ;;
a0da8069 2352 thumb-*-coff)
54d1c879 2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2354 ;;
2355 thumb-*-elf)
54d1c879 2356 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2357 ;;
a0da8069 2358 thumb-*-pe)
54d1c879 2359 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2360 ;;
2361 arm-*-riscix*)
54d1c879 2362 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2363 ;;
2364 avr-*-*)
266df637 2365 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2366 ;;
376a0e54 2367 bfin-*-*)
00d89675 2368 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2369 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2370 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2371 fi
2372 ;;
a0da8069 2373 c4x-*-* | tic4x-*-*)
54d1c879 2374 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2375 ;;
2376 c54x*-*-* | tic54x-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2378 ;;
52310858
NC
2379 cr16-*-*)
2380 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2381 ;;
c7e66c6d 2382 cris-*-* | crisv32-*-*)
59f7ec45 2383 unsupported_languages="$unsupported_languages java"
c7e66c6d 2384 case "${target}" in
2faa2958 2385 *-*-aout)
096f7d00 2386 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2387 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2388 *-*-elf)
5e818318 2389 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2390 *-*-linux*)
5e818318 2391 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2392 *)
096f7d00 2393 unsupported_languages="$unsupported_languages fortran"
54d1c879 2394 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2395 esac
691bb5a1 2396 libgloss_dir=cris
a0da8069 2397 ;;
3e707e94 2398 crx-*-*)
54d1c879 2399 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2400 ;;
a0da8069 2401 d10v-*-*)
54d1c879 2402 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2403 ;;
2404 d30v-*-*)
54d1c879 2405 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2406 ;;
691bb5a1
DD
2407 ep9312-*-elf | ep9312-*-coff)
2408 libgloss_dir=arm
2409 ;;
a0da8069 2410 fr30-*-elf*)
54d1c879 2411 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2412 ;;
2413 frv-*-*)
54d1c879 2414 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2415 ;;
20135e4c
NC
2416 moxie-*-*)
2417 noconfigdirs="$noconfigdirs ${libgcj}"
2418 noconfigdirs="$noconfigdirs gprof"
2419 ;;
a0da8069 2420 h8300*-*-*)
54d1c879 2421 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2422 ;;
2423 h8500-*-*)
54d1c879 2424 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2425 ;;
caeba88f 2426 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2427 ;;
a0da8069
NN
2428 hppa*64*-*-linux* | parisc*64*-*-linux*)
2429 # In this case, it's because the hppa64-linux target is for
2430 # the kernel only at this point and has no libc, and thus no
2431 # headers, crt*.o, etc., all of which are needed by these.
2432 noconfigdirs="$noconfigdirs target-zlib"
2433 ;;
5dcac624
DA
2434 parisc*-*-linux* | hppa*-*-linux*)
2435 ;;
a0da8069 2436 hppa*-*-*elf* | \
a0da8069
NN
2437 hppa*-*-lites* | \
2438 hppa*-*-openbsd* | \
2439 hppa*64*-*-*)
54d1c879 2440 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2441 ;;
2442 hppa*-hp-hpux11*)
2443 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2444 ;;
691bb5a1
DD
2445 hppa*-*-pro*)
2446 libgloss_dir=pa
2447 ;;
a0da8069
NN
2448 hppa*-*-*)
2449 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2450 # build on HP-UX 10.20.
54d1c879 2451 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2452 ;;
b07c2aad 2453 i960-*-*)
54d1c879 2454 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2455 ;;
a0da8069
NN
2456 ia64*-*-elf*)
2457 # No gdb support yet.
675c6968 2458 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2459 ;;
2460 ia64*-**-hpux*)
2461 # No gdb or ld support yet.
54d1c879 2462 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2463 ;;
19e99079
NC
2464 ia64*-*-*vms*)
2465 # No gdb or ld support yet.
2466 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2467 ;;
caeba88f 2468 i370-*-opened*)
caeba88f 2469 ;;
ec11bdc6 2470 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2471 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2472 libgloss_dir=i386
a0da8069 2473 ;;
ec11bdc6 2474 i[3456789]86-*-linux*)
a0da8069
NN
2475 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2476 # not build java stuff by default.
2477 case "${target}" in
2478 *-*-*libc1*)
54d1c879 2479 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2480 esac
2481
2482 # This section makes it possible to build newlib natively on linux.
2483 # If we are using a cross compiler then don't configure newlib.
2484 if test x${is_cross_compiler} != xno ; then
bba45b8b 2485 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2486 fi
2487 noconfigdirs="$noconfigdirs target-libgloss"
2488 # If we are not using a cross compiler, do configure newlib.
2489 # Note however, that newlib will only be configured in this situation
2490 # if the --with-newlib option has been given, because otherwise
2491 # 'target-newlib' will appear in skipdirs.
2492 ;;
ec11bdc6 2493 i[3456789]86-*-mingw32*)
45055374
CV
2494 target_configdirs="$target_configdirs target-winsup"
2495 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2496 ;;
2d1e8239
NC
2497 x86_64-*-mingw*)
2498 target_configdirs="$target_configdirs target-winsup"
2499 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2500 ;;
a0da8069
NN
2501 *-*-cygwin*)
2502 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2503 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2504 # always build newlib if winsup directory is present.
45055374 2505 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2506 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2507 elif test -d "$srcdir/newlib"; then
45055374 2508 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2509 fi
c6b750e1 2510 ;;
caeba88f
AL
2511 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2512 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2513 ;;
ec11bdc6 2514 i[3456789]86-*-pe)
54d1c879 2515 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2516 ;;
ec11bdc6 2517 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2518 # The linker does not yet know about weak symbols in COFF,
2519 # and is not configured to handle mixed ELF and COFF.
54d1c879 2520 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2521 ;;
ec11bdc6 2522 i[3456789]86-*-sco*)
54d1c879 2523 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2524 ;;
ec11bdc6 2525 i[3456789]86-*-solaris2*)
a0da8069
NN
2526 noconfigdirs="$noconfigdirs target-libgloss"
2527 ;;
ec11bdc6 2528 i[3456789]86-*-sysv4*)
54d1c879 2529 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2530 ;;
ec11bdc6 2531 i[3456789]86-*-beos*)
54d1c879 2532 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2533 ;;
b59bea8a 2534 i[3456789]86-*-rdos*)
2429c060
PB
2535 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2536 ;;
b07c2aad 2537 m32r-*-*)
54d1c879 2538 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2539 ;;
a0da8069 2540 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2541 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2542 libgloss_dir=m68hc11
a0da8069
NN
2543 ;;
2544 m68k-*-elf*)
54d1c879 2545 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2546 ;;
2547 m68k-*-coff*)
54d1c879 2548 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2549 ;;
691bb5a1
DD
2550 m68*-*-* | fido-*-*)
2551 libgloss_dir=m68k
2552 ;;
a0da8069
NN
2553 mcore-*-pe*)
2554 # The EPOC C++ environment does not support exceptions or rtti,
2555 # and so building libstdc++-v3 tends not to always work.
2556 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2557 ;;
2558 mmix-*-*)
59f7ec45 2559 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2560 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2561 ;;
2562 mn10200-*-*)
54d1c879 2563 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2564 ;;
2565 mn10300-*-*)
54d1c879 2566 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2567 ;;
4970f871 2568 mt-*-*)
cdb9b172
AH
2569 noconfigdirs="$noconfigdirs sim"
2570 ;;
a0da8069
NN
2571 powerpc-*-aix*)
2572 # copied from rs6000-*-* entry
54d1c879 2573 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2574 ;;
2575 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2576 target_configdirs="$target_configdirs target-winsup"
54d1c879 2577 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2578 # always build newlib.
2579 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2580 ;;
2581 # This is temporary until we can link against shared libraries
2582 powerpcle-*-solaris*)
54d1c879 2583 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2584 libgloss_dir=rs6000
a0da8069
NN
2585 ;;
2586 powerpc-*-beos*)
54d1c879 2587 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2588 ;;
a0da8069 2589 powerpc-*-eabi)
54d1c879 2590 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2591 libgloss_dir=rs6000
caeba88f
AL
2592 ;;
2593 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2594 libgloss_dir=rs6000
a0da8069 2595 ;;
a0da8069 2596 rs6000-*-lynxos*)
54d1c879 2597 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2598 ;;
2599 rs6000-*-aix*)
54d1c879 2600 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2601 ;;
2602 rs6000-*-*)
54d1c879 2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2604 ;;
2605 m68k-apollo-*)
54d1c879 2606 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2607 ;;
5bd8be13
RS
2608 mips*-sde-elf*)
2609 skipdirs="$skipdirs target-libiberty"
2610 noconfigdirs="$noconfigdirs ${libgcj}"
2611 if test x$with_newlib = xyes; then
2612 noconfigdirs="$noconfigdirs gprof"
2613 fi
2614 libgloss_dir=mips
2615 ;;
a0da8069 2616 mips*-*-irix5*)
54d1c879 2617 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2618 ;;
2619 mips*-*-irix6*)
a0da8069
NN
2620 # Linking libjava exceeds command-line length limits on at least
2621 # IRIX 6.2, but not on IRIX 6.5.
2622 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2623 # <oldham@codesourcery.com>
54d1c879 2624 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2625 ;;
a0da8069 2626 mips*-*-bsd*)
54d1c879 2627 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2628 ;;
a0da8069
NN
2629 mips*-*-linux*)
2630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2631 ;;
2632 mips*-*-*)
54d1c879 2633 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2634 libgloss_dir=mips
a0da8069
NN
2635 ;;
2636 romp-*-*)
54d1c879 2637 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2638 ;;
dbf85af7 2639 sh-*-* | sh64-*-*)
a0da8069 2640 case "${host}" in
ec11bdc6
DD
2641 i[3456789]86-*-vsta) ;; # don't add gprof back in
2642 i[3456789]86-*-go32*) ;; # don't add gprof back in
2643 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2644 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2645 esac
54d1c879 2646 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2647 ;;
691bb5a1
DD
2648 sparclet-*-aout* | sparc86x-*-*)
2649 libgloss_dir=sparc
2650 ;;
a0da8069 2651 sparc-*-elf*)
54d1c879 2652 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2653 ;;
2654 sparc64-*-elf*)
54d1c879 2655 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2656 libgloss_dir=sparc
a0da8069
NN
2657 ;;
2658 sparclite-*-*)
54d1c879 2659 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2660 libgloss_dir=sparc
a0da8069
NN
2661 ;;
2662 sparc-*-sunos4*)
54d1c879 2663 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2664 if test x${is_cross_compiler} != xno ; then
2665 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2666 else
2667 use_gnu_ld=no
2668 fi
2669 ;;
e3c770b1 2670 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2671 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2672 ;;
a0da8069
NN
2673 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2674 ;;
2675 v810-*-*)
54d1c879 2676 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2677 ;;
2678 v850-*-*)
54d1c879 2679 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2680 ;;
2681 v850e-*-*)
54d1c879 2682 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2683 ;;
2684 v850ea-*-*)
54d1c879 2685 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2686 ;;
2687 vax-*-vms)
54d1c879 2688 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2689 ;;
2690 vax-*-*)
54d1c879 2691 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2692 ;;
8b66833e 2693 xtensa*-*-*)
54d1c879 2694 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2695 ;;
a0da8069 2696 ip2k-*-*)
54d1c879 2697 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2698 ;;
29383458 2699 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
2700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2701 ;;
2702 *-*-lynxos*)
54d1c879 2703 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2704 ;;
a0da8069 2705 *-*-*)
54d1c879 2706 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2707 ;;
2708esac
252b5132 2709
a0da8069
NN
2710# If we aren't building newlib, then don't build libgloss, since libgloss
2711# depends upon some newlib header files.
2712case "${noconfigdirs}" in
2713 *target-libgloss*) ;;
2714 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2715esac
2716
a0da8069
NN
2717# Work in distributions that contain no compiler tools, like Autoconf.
2718tentative_cc=""
2719host_makefile_frag=/dev/null
2720if test -d ${srcdir}/config ; then
2721case "${host}" in
2722 m68k-hp-hpux*)
2723 # Avoid "too much defining" errors from HPUX compiler.
2724 tentative_cc="cc -Wp,-H256000"
2725 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2726 # If it's HP/UX ar, this should be harmless.
2727 RANLIB="ar ts"
2728 ;;
2729 m68k-apollo-sysv*)
2730 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2731 ;;
2732 m68k-apollo-bsd*)
2733 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2734 # chokes on bfd, the compiler won't let you assign integers to enums, and
2735 # other problems. Defining CC to gcc is a questionable way to say "don't use
2736 # the apollo compiler" (the preferred version of GCC could be called cc,
2737 # or whatever), but I'm not sure leaving CC as cc is any better...
2738 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2739 # Used to have BISON=yacc.
2740 tentative_cc=gcc
2741 ;;
2742 m88k-dg-dgux*)
2743 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2744 ;;
2745 m88k-harris-cxux*)
2746 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2747 tentative_cc="cc -Xa"
2748 host_makefile_frag="config/mh-cxux"
2749 ;;
2750 m88k-motorola-sysv*)
2751 ;;
2752 mips*-dec-ultrix*)
2753 tentative_cc="cc -Wf,-XNg1000"
2754 host_makefile_frag="config/mh-decstation"
2755 ;;
2756 mips*-nec-sysv4*)
2757 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2758 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2759 host_makefile_frag="config/mh-necv4"
2760 ;;
2761 mips*-sgi-irix4*)
2762 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2763 # environment. Also bump switch table size so that cp-parse will
2764 # compile. Bump string length limit so linker builds.
2765 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2766 ;;
2767 mips*-*-sysv4*)
2768 host_makefile_frag="config/mh-sysv4"
2769 ;;
2770 mips*-*-sysv*)
2771 # This is for a MIPS running RISC/os 4.52C.
2772
2773 # This is needed for GDB, but needs to be in the top-level make because
2774 # if a library is compiled with the bsd headers and gets linked with the
2775 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2776 # a different size).
2777 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2778 # known except to select the sysv environment. Could we use /proc instead?
2779 # These "sysv environments" and "bsd environments" often end up being a pain.
2780 #
2781 # This is not part of CFLAGS because perhaps not all C compilers have this
2782 # option.
2783 tentative_cc="cc -systype sysv"
2784 ;;
2785 i370-ibm-opened*)
2786 tentative_cc="c89"
2787 ;;
ec11bdc6 2788 i[3456789]86-*-sysv5*)
a0da8069
NN
2789 host_makefile_frag="config/mh-sysv5"
2790 ;;
ec11bdc6 2791 i[3456789]86-*-dgux*)
a0da8069
NN
2792 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2793 host_makefile_frag="config/mh-dgux386"
2794 ;;
ec11bdc6 2795 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2796 # The MetaWare compiler will generate a copyright message unless you
2797 # turn it off by adding the -Hnocopyr flag.
2798 tentative_cc="cc -Hnocopyr"
2799 ;;
ec11bdc6 2800 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2801 # for an NCR 3000 (i486/SVR4) system.
2802 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2803 # This compiler not only emits obnoxious copyright messages every time
2804 # you run it, but it chokes and dies on a whole bunch of GNU source
2805 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2806 tentative_cc="/usr/ccs/ATT/cc"
2807 host_makefile_frag="config/mh-ncr3000"
2808 ;;
ec11bdc6 2809 i[3456789]86-*-sco3.2v5*)
a0da8069 2810 ;;
ec11bdc6 2811 i[3456789]86-*-sco*)
a0da8069
NN
2812 # The native C compiler botches some simple uses of const. Unfortunately,
2813 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2814 tentative_cc="cc -Dconst="
2815 host_makefile_frag="config/mh-sco"
2816 ;;
ec11bdc6 2817 i[3456789]86-*-udk*)
a0da8069
NN
2818 host_makefile_frag="config/mh-sysv5"
2819 ;;
ec11bdc6 2820 i[3456789]86-*-solaris2*)
a0da8069
NN
2821 host_makefile_frag="config/mh-sysv4"
2822 ;;
ec11bdc6 2823 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2824 host_makefile_frag="config/mh-djgpp"
2825 ;;
2826 *-cygwin*)
e33b51a6
NC
2827
2828echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2829echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2830echo a >cygwin-cat-check
2831if test `cat cygwin-cat-check` == a ; then
8ade07e9 2832 rm cygwin-cat-check
e33b51a6
NC
2833 echo "$as_me:$LINENO: result: yes" >&5
2834echo "${ECHO_T}yes" >&6
2835else
8ade07e9 2836 rm cygwin-cat-check
e33b51a6
NC
2837 echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
2839 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2840 Please either mount the build directory in binary mode or run the following
2841 commands before running any configure script:
2842set -o igncr
2843export SHELLOPTS
2844 " >&5
2845echo "$as_me: error: The cat command does not ignore carriage return characters.
2846 Please either mount the build directory in binary mode or run the following
2847 commands before running any configure script:
2848set -o igncr
2849export SHELLOPTS
2850 " >&2;}
2851 { (exit 1); exit 1; }; }
2852fi
e33b51a6 2853
a0da8069
NN
2854 host_makefile_frag="config/mh-cygwin"
2855 ;;
8a1599ab 2856 *-mingw*)
84e7906e 2857 host_makefile_frag="config/mh-mingw"
2d1e8239 2858 ;;
a0da8069
NN
2859 *-interix*)
2860 host_makefile_frag="config/mh-interix"
2861 ;;
2862 vax-*-ultrix2*)
2863 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2864 tentative_cc=gcc
2865 ;;
2866 *-*-solaris2*)
2867 host_makefile_frag="config/mh-solaris"
2868 ;;
2869 m68k-sun-sunos*)
2870 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2871 # without overflowing the jump tables (-J says to use a 32 bit table)
2872 tentative_cc="cc -J"
2873 ;;
da888c87 2874 hppa*-hp-hpux10*)
a0da8069 2875 tentative_cc="cc -Wp,-H256000"
da888c87 2876 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2877 ;;
da888c87
PB
2878 hppa*-hp-hpux* | hppa*-*-hiux*)
2879 tentative_cc="cc -Wp,-H256000"
2880 host_makefile_frag="config/mh-pa"
2881 ;;
2882 hppa*-*)
2883 host_makefile_frag="config/mh-pa"
2884 ;;
2885 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2886 tentative_cc="cc -Wp,-H256000"
2887 ;;
2888 rs6000-*-lynxos*)
2889 # /bin/cc is less than useful for our purposes. Always use GCC
2890 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2891 host_makefile_frag="config/mh-lynxrs6k"
2892 ;;
0df3d27f
PB
2893 powerpc-*-darwin*)
2894 host_makefile_frag="config/mh-ppc-darwin"
2895 ;;
f6d183c0
PB
2896 powerpc-*-aix*)
2897 host_makefile_frag="config/mh-ppc-aix"
2898 ;;
2899 rs6000-*-aix*)
2900 host_makefile_frag="config/mh-ppc-aix"
2901 ;;
a0da8069
NN
2902 *-*-lynxos*)
2903 # /bin/cc is less than useful for our purposes. Always use GCC
2904 tentative_cc="/bin/gcc"
2905 ;;
2906 *-*-sysv4*)
2907 host_makefile_frag="config/mh-sysv4"
2908 ;;
fe69863c
DD
2909 # This is placed last to prevent interfering with the cases above.
2910 i[3456789]86-*-*)
2911 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2912 host_makefile_frag="config/mh-x86omitfp"
2913 ;;
a0da8069
NN
2914esac
2915fi
2916
9e07f89d
NN
2917# If we aren't going to be using gcc, see if we can extract a definition
2918# of CC from the fragment.
2919# Actually, use the 'pre-extracted' version above.
2920if test -z "${CC}" && test "${build}" = "${host}" ; then
2921 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2922 found=
2923 for dir in $PATH; do
2924 test -z "$dir" && dir=.
2925 if test -f $dir/gcc; then
2926 found=yes
2927 break
2928 fi
2929 done
2930 IFS="$save_ifs"
2931 if test -z "${found}" && test -n "${tentative_cc}" ; then
2932 CC=$tentative_cc
2933 fi
2934fi
2935
2936if test "${build}" != "${host}" ; then
1576798e
PB
2937 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2938 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2939 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2940 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2941 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2942 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2943 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2944 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2945 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2946 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2947 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2948 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2949else
2950 AR_FOR_BUILD="\$(AR)"
2951 AS_FOR_BUILD="\$(AS)"
512b7dfb 2952 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2953 CXX_FOR_BUILD="\$(CXX)"
2954 GCJ_FOR_BUILD="\$(GCJ)"
2955 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2956 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2957 LD_FOR_BUILD="\$(LD)"
2958 NM_FOR_BUILD="\$(NM)"
2959 RANLIB_FOR_BUILD="\$(RANLIB)"
2960 WINDRES_FOR_BUILD="\$(WINDRES)"
2961 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2962fi
2963
2964ac_ext=c
c6b750e1
DJ
2965ac_cpp='$CPP $CPPFLAGS'
2966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969if test -n "$ac_tool_prefix"; then
2970 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2971set dummy ${ac_tool_prefix}gcc; ac_word=$2
2972echo "$as_me:$LINENO: checking for $ac_word" >&5
2973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974if test "${ac_cv_prog_CC+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991done
2992done
2993
2994fi
2995fi
2996CC=$ac_cv_prog_CC
2997if test -n "$CC"; then
2998 echo "$as_me:$LINENO: result: $CC" >&5
2999echo "${ECHO_T}$CC" >&6
3000else
3001 echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6
3003fi
3004
3005fi
3006if test -z "$ac_cv_prog_CC"; then
3007 ac_ct_CC=$CC
6a9cf61e 3008 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3009set dummy gcc; ac_word=$2
c6b750e1
DJ
3010echo "$as_me:$LINENO: checking for $ac_word" >&5
3011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_ac_ct_CC="gcc"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029done
3030done
3031
3032fi
3033fi
3034ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035if test -n "$ac_ct_CC"; then
3036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3037echo "${ECHO_T}$ac_ct_CC" >&6
3038else
3039 echo "$as_me:$LINENO: result: no" >&5
3040echo "${ECHO_T}no" >&6
3041fi
3042
3043 CC=$ac_ct_CC
3044else
3045 CC="$ac_cv_prog_CC"
3046fi
3047
3048if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3051set dummy ${ac_tool_prefix}cc; ac_word=$2
3052echo "$as_me:$LINENO: checking for $ac_word" >&5
3053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3054if test "${ac_cv_prog_CC+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3056else
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3059else
c6b750e1
DJ
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_CC="${ac_tool_prefix}cc"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3070 fi
3071done
3072done
3073
9e07f89d
NN
3074fi
3075fi
c6b750e1 3076CC=$ac_cv_prog_CC
9e07f89d 3077if test -n "$CC"; then
c6b750e1
DJ
3078 echo "$as_me:$LINENO: result: $CC" >&5
3079echo "${ECHO_T}$CC" >&6
9e07f89d 3080else
c6b750e1
DJ
3081 echo "$as_me:$LINENO: result: no" >&5
3082echo "${ECHO_T}no" >&6
9e07f89d
NN
3083fi
3084
c6b750e1
DJ
3085fi
3086if test -z "$ac_cv_prog_CC"; then
3087 ac_ct_CC=$CC
3088 # Extract the first word of "cc", so it can be a program name with args.
3089set dummy cc; ac_word=$2
3090echo "$as_me:$LINENO: checking for $ac_word" >&5
3091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_CC="cc"
3106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109done
3110done
3111
3112fi
3113fi
3114ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115if test -n "$ac_ct_CC"; then
3116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3117echo "${ECHO_T}$ac_ct_CC" >&6
3118else
3119 echo "$as_me:$LINENO: result: no" >&5
3120echo "${ECHO_T}no" >&6
3121fi
3122
3123 CC=$ac_ct_CC
3124else
3125 CC="$ac_cv_prog_CC"
3126fi
3127
3128fi
9e07f89d
NN
3129if test -z "$CC"; then
3130 # Extract the first word of "cc", so it can be a program name with args.
3131set dummy cc; ac_word=$2
c6b750e1
DJ
3132echo "$as_me:$LINENO: checking for $ac_word" >&5
3133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3134if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3136else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139else
9e07f89d 3140 ac_prog_rejected=no
c6b750e1
DJ
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3149 ac_prog_rejected=yes
3150 continue
3151 fi
3152 ac_cv_prog_CC="cc"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156done
3157done
3158
9e07f89d
NN
3159if test $ac_prog_rejected = yes; then
3160 # We found a bogon in the path, so make sure we never use it.
3161 set dummy $ac_cv_prog_CC
3162 shift
c6b750e1 3163 if test $# != 0; then
9e07f89d
NN
3164 # We chose a different compiler from the bogus one.
3165 # However, it has the same basename, so the bogon will be chosen
3166 # first if we set CC to just the basename; use the full file name.
3167 shift
c6b750e1 3168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3169 fi
3170fi
3171fi
3172fi
c6b750e1 3173CC=$ac_cv_prog_CC
9e07f89d 3174if test -n "$CC"; then
c6b750e1
DJ
3175 echo "$as_me:$LINENO: result: $CC" >&5
3176echo "${ECHO_T}$CC" >&6
9e07f89d 3177else
c6b750e1
DJ
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
9e07f89d
NN
3180fi
3181
c6b750e1
DJ
3182fi
3183if test -z "$CC"; then
3184 if test -n "$ac_tool_prefix"; then
3185 for ac_prog in cl
3186 do
3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189echo "$as_me:$LINENO: checking for $ac_word" >&5
3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191if test "${ac_cv_prog_CC+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3193else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
c6b750e1
DJ
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
376a0e54 3207 fi
c6b750e1
DJ
3208done
3209done
cac3d6c4 3210
c6b750e1
DJ
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215 echo "$as_me:$LINENO: result: $CC" >&5
3216echo "${ECHO_T}$CC" >&6
cac3d6c4 3217else
c6b750e1
DJ
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
9e07f89d 3220fi
cac3d6c4 3221
c6b750e1
DJ
3222 test -n "$CC" && break
3223 done
cac3d6c4 3224fi
c6b750e1
DJ
3225if test -z "$CC"; then
3226 ac_ct_CC=$CC
3227 for ac_prog in cl
3228do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230set dummy $ac_prog; ac_word=$2
3231echo "$as_me:$LINENO: checking for $ac_word" >&5
3232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3233if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3235else
c6b750e1
DJ
3236 if test -n "$ac_ct_CC"; then
3237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3238else
c6b750e1
DJ
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_ac_ct_CC="$ac_prog"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250done
3251done
3252
cac3d6c4
CM
3253fi
3254fi
c6b750e1
DJ
3255ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256if test -n "$ac_ct_CC"; then
3257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3258echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3259else
c6b750e1
DJ
3260 echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
cac3d6c4 3262fi
376a0e54 3263
c6b750e1
DJ
3264 test -n "$ac_ct_CC" && break
3265done
3266
3267 CC=$ac_ct_CC
3268fi
3269
3270fi
3271
3272
7a283e07
RW
3273test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3274echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3276See \`config.log' for more details." >&5
3277echo "$as_me: error: no acceptable C compiler found in \$PATH
3278See \`config.log' for more details." >&2;}
7a283e07 3279 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3280
3281# Provide some information about the compiler.
3282echo "$as_me:$LINENO:" \
3283 "checking for C compiler version" >&5
3284ac_compiler=`set X $ac_compile; echo $2`
3285{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3286 (eval $ac_compiler --version </dev/null >&5) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }
3290{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3291 (eval $ac_compiler -v </dev/null >&5) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }
3295{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3296 (eval $ac_compiler -V </dev/null >&5) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }
3300
3301cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
3316ac_clean_files_save=$ac_clean_files
3317ac_clean_files="$ac_clean_files a.out a.exe b.out"
3318# Try to create an executable without -o first, disregard a.out.
3319# It will help us diagnose broken compilers, and finding out an intuition
3320# of exeext.
3321echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3322echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3323ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3325 (eval $ac_link_default) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; then
3329 # Find the output, starting from the most likely. This scheme is
3330# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3331# resort.
3332
3333# Be careful to initialize this variable, since it used to be cached.
3334# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3335ac_cv_exeext=
3336# b.out is created by i960 compilers.
3337for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3338do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3342 ;;
3343 conftest.$ac_ext )
3344 # This is the source file.
3345 ;;
3346 [ab].out )
3347 # We found the default executable, but exeext='' is most
3348 # certainly right.
3349 break;;
3350 *.* )
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 # FIXME: I believe we export ac_cv_exeext for Libtool,
3353 # but it would be cool to find out if it's true. Does anybody
3354 # maintain Libtool? --akim.
3355 export ac_cv_exeext
3356 break;;
3357 * )
3358 break;;
3359 esac
3360done
3361else
3362 echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
7a283e07
RW
3365{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3367{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3368See \`config.log' for more details." >&5
3369echo "$as_me: error: C compiler cannot create executables
3370See \`config.log' for more details." >&2;}
7a283e07 3371 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3372fi
3373
3374ac_exeext=$ac_cv_exeext
3375echo "$as_me:$LINENO: result: $ac_file" >&5
3376echo "${ECHO_T}$ac_file" >&6
3377
3378# Check the compiler produces executables we can run. If not, either
3379# the compiler is broken, or we cross compile.
3380echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3382# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383# If not cross compiling, check that we can run a simple program.
3384if test "$cross_compiling" != yes; then
3385 if { ac_try='./$ac_file'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 cross_compiling=no
3392 else
3393 if test "$cross_compiling" = maybe; then
3394 cross_compiling=yes
3395 else
7a283e07
RW
3396 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3397echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3399If you meant to cross compile, use \`--host'.
3400See \`config.log' for more details." >&5
3401echo "$as_me: error: cannot run C compiled programs.
3402If you meant to cross compile, use \`--host'.
3403See \`config.log' for more details." >&2;}
7a283e07 3404 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3405 fi
3406 fi
3407fi
3408echo "$as_me:$LINENO: result: yes" >&5
3409echo "${ECHO_T}yes" >&6
3410
3411rm -f a.out a.exe conftest$ac_cv_exeext b.out
3412ac_clean_files=$ac_clean_files_save
3413# Check the compiler produces executables we can run. If not, either
3414# the compiler is broken, or we cross compile.
3415echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3416echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3417echo "$as_me:$LINENO: result: $cross_compiling" >&5
3418echo "${ECHO_T}$cross_compiling" >&6
3419
3420echo "$as_me:$LINENO: checking for suffix of executables" >&5
3421echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423 (eval $ac_link) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; then
3427 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3428# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3429# work properly (i.e., refer to `conftest.exe'), while it won't with
3430# `rm'.
3431for ac_file in conftest.exe conftest conftest.*; do
3432 test -f "$ac_file" || continue
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3435 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 export ac_cv_exeext
3437 break;;
3438 * ) break;;
3439 esac
3440done
3441else
7a283e07
RW
3442 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3445See \`config.log' for more details." >&5
3446echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3447See \`config.log' for more details." >&2;}
7a283e07 3448 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3449fi
3450
3451rm -f conftest$ac_cv_exeext
3452echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3453echo "${ECHO_T}$ac_cv_exeext" >&6
3454
3455rm -f conftest.$ac_ext
3456EXEEXT=$ac_cv_exeext
3457ac_exeext=$EXEEXT
3458echo "$as_me:$LINENO: checking for suffix of object files" >&5
3459echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3460if test "${ac_cv_objext+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
3478rm -f conftest.o conftest.obj
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; then
3484 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 break;;
3489 esac
3490done
cac3d6c4 3491else
c6b750e1
DJ
3492 echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
7a283e07
RW
3495{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3496echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3497{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3498See \`config.log' for more details." >&5
3499echo "$as_me: error: cannot compute suffix of object files: cannot compile
3500See \`config.log' for more details." >&2;}
7a283e07 3501 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3502fi
3503
3504rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505fi
3506echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3507echo "${ECHO_T}$ac_cv_objext" >&6
3508OBJEXT=$ac_cv_objext
3509ac_objext=$OBJEXT
3510echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3511echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3512if test "${ac_cv_c_compiler_gnu+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
3521
3522int
3523main ()
3524{
3525#ifndef __GNUC__
3526 choke me
3527#endif
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_compiler_gnu=yes
3556else
3557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560ac_compiler_gnu=no
3561fi
3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565fi
3566echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3568GCC=`test $ac_compiler_gnu = yes && echo yes`
3569ac_test_CFLAGS=${CFLAGS+set}
3570ac_save_CFLAGS=$CFLAGS
3571CFLAGS="-g"
3572echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3573echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3574if test "${ac_cv_prog_cc_g+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h. */
3583
3584int
3585main ()
3586{
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
9e07f89d
NN
3614 ac_cv_prog_cc_g=yes
3615else
c6b750e1
DJ
3616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3618
c6b750e1 3619ac_cv_prog_cc_g=no
376a0e54 3620fi
c6b750e1
DJ
3621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3625if test "$ac_test_CFLAGS" = set; then
c6b750e1 3626 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3627elif test $ac_cv_prog_cc_g = yes; then
3628 if test "$GCC" = yes; then
3629 CFLAGS="-g -O2"
3630 else
3631 CFLAGS="-g"
3632 fi
3633else
3634 if test "$GCC" = yes; then
3635 CFLAGS="-O2"
3636 else
3637 CFLAGS=
3638 fi
3639fi
c6b750e1
DJ
3640echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3641echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3642if test "${ac_cv_prog_cc_stdc+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 ac_cv_prog_cc_stdc=no
3646ac_save_CC=$CC
3647cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h. */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h. */
3653#include <stdarg.h>
3654#include <stdio.h>
3655#include <sys/types.h>
3656#include <sys/stat.h>
3657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3658struct buf { int x; };
3659FILE * (*rcsopen) (struct buf *, struct stat *, int);
3660static char *e (p, i)
3661 char **p;
3662 int i;
3663{
3664 return p[i];
3665}
3666static char *f (char * (*g) (char **, int), char **p, ...)
3667{
3668 char *s;
3669 va_list v;
3670 va_start (v,p);
3671 s = g (p, va_arg (v,int));
3672 va_end (v);
3673 return s;
3674}
3675
3676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3677 function prototypes and stuff, but not '\xHH' hex character constants.
3678 These don't provoke an error unfortunately, instead are silently treated
3679 as 'x'. The following induces an error, until -std1 is added to get
3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3681 array size at least. It's necessary to write '\x00'==0 to get something
3682 that's true only with -std1. */
3683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684
3685int test (int i, double x);
3686struct s1 {int (*f) (int a);};
3687struct s2 {int (*f) (double a);};
3688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3689int argc;
3690char **argv;
3691int
3692main ()
3693{
3694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699# Don't try gcc -ansi; that turns off useful extensions and
3700# breaks some systems' header files.
3701# AIX -qlanglvl=ansi
3702# Ultrix and OSF/1 -std1
3703# HP-UX 10.20 and later -Ae
3704# HP-UX older versions -Aa -D_HPUX_SOURCE
3705# SVR4 -Xc -D__EXTENSIONS__
3706for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707do
3708 CC="$ac_save_CC $ac_arg"
3709 rm -f conftest.$ac_objext
3710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_prog_cc_stdc=$ac_arg
3732break
3733else
3734 echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737fi
3738rm -f conftest.err conftest.$ac_objext
3739done
3740rm -f conftest.$ac_ext conftest.$ac_objext
3741CC=$ac_save_CC
3742
3743fi
3744
3745case "x$ac_cv_prog_cc_stdc" in
3746 x|xno)
3747 echo "$as_me:$LINENO: result: none needed" >&5
3748echo "${ECHO_T}none needed" >&6 ;;
3749 *)
3750 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3751echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3752 CC="$CC $ac_cv_prog_cc_stdc" ;;
3753esac
3754
3755# Some people use a C++ compiler to compile C. Since we use `exit',
3756# in C++ we need to declare it. In case someone uses the same compiler
3757# for both compiling C and C++ we need to have the C++ compiler decide
3758# the declaration of exit, since it's the most demanding environment.
3759cat >conftest.$ac_ext <<_ACEOF
3760#ifndef __cplusplus
3761 choke me
3762#endif
3763_ACEOF
3764rm -f conftest.$ac_objext
3765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 for ac_declaration in \
3787 '' \
3788 'extern "C" void std::exit (int) throw (); using std::exit;' \
3789 'extern "C" void std::exit (int); using std::exit;' \
3790 'extern "C" void exit (int) throw ();' \
3791 'extern "C" void exit (int);' \
3792 'void exit (int);'
3793do
3794 cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800$ac_declaration
3801#include <stdlib.h>
3802int
3803main ()
3804{
3805exit (42);
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext
3811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 :
3833else
3834 echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837continue
3838fi
3839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
3846$ac_declaration
3847int
3848main ()
3849{
3850exit (42);
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext
3856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 break
3878else
3879 echo "$as_me: failed program was:" >&5
3880sed 's/^/| /' conftest.$ac_ext >&5
3881
3882fi
3883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884done
3885rm -f conftest*
3886if test -n "$ac_declaration"; then
3887 echo '#ifdef __cplusplus' >>confdefs.h
3888 echo $ac_declaration >>confdefs.h
3889 echo '#endif' >>confdefs.h
3890fi
3891
3892else
3893 echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896fi
3897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3903
18f6b6ee
PB
3904ac_ext=cc
3905ac_cpp='$CXXCPP $CPPFLAGS'
3906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909if test -n "$ac_tool_prefix"; then
3910 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3911 do
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914echo "$as_me:$LINENO: checking for $ac_word" >&5
3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916if test "${ac_cv_prog_CXX+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919 if test -n "$CXX"; then
3920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3921else
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933done
3934done
512b7dfb 3935
18f6b6ee
PB
3936fi
3937fi
3938CXX=$ac_cv_prog_CXX
3939if test -n "$CXX"; then
3940 echo "$as_me:$LINENO: result: $CXX" >&5
3941echo "${ECHO_T}$CXX" >&6
3942else
3943 echo "$as_me:$LINENO: result: no" >&5
3944echo "${ECHO_T}no" >&6
3945fi
3946
3947 test -n "$CXX" && break
3948 done
3949fi
3950if test -z "$CXX"; then
3951 ac_ct_CXX=$CXX
3952 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3953do
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955set dummy $ac_prog; ac_word=$2
3956echo "$as_me:$LINENO: checking for $ac_word" >&5
3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 if test -n "$ac_ct_CXX"; then
3962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CXX="$ac_prog"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
512b7dfb 3974 fi
18f6b6ee
PB
3975done
3976done
512b7dfb 3977
18f6b6ee
PB
3978fi
3979fi
3980ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3981if test -n "$ac_ct_CXX"; then
3982 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3983echo "${ECHO_T}$ac_ct_CXX" >&6
3984else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987fi
3988
3989 test -n "$ac_ct_CXX" && break
3990done
3991test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3992
3993 CXX=$ac_ct_CXX
3994fi
3995
3996
3997# Provide some information about the compiler.
3998echo "$as_me:$LINENO:" \
3999 "checking for C++ compiler version" >&5
4000ac_compiler=`set X $ac_compile; echo $2`
4001{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4002 (eval $ac_compiler --version </dev/null >&5) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }
4006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4007 (eval $ac_compiler -v </dev/null >&5) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }
4011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4012 (eval $ac_compiler -V </dev/null >&5) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }
4016
4017echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4018echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4019if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 cat >conftest.$ac_ext <<_ACEOF
4023/* confdefs.h. */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032#ifndef __GNUC__
4033 choke me
4034#endif
4035
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_compiler_gnu=yes
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067ac_compiler_gnu=no
4068fi
4069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4071
4072fi
4073echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4074echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4075GXX=`test $ac_compiler_gnu = yes && echo yes`
4076ac_test_CXXFLAGS=${CXXFLAGS+set}
4077ac_save_CXXFLAGS=$CXXFLAGS
4078CXXFLAGS="-g"
4079echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4080echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4081if test "${ac_cv_prog_cxx_g+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
4090
4091int
4092main ()
4093{
4094
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_cxx_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_prog_cxx_g=yes
4122else
4123 echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126ac_cv_prog_cxx_g=no
4127fi
4128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129fi
4130echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4131echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4132if test "$ac_test_CXXFLAGS" = set; then
4133 CXXFLAGS=$ac_save_CXXFLAGS
4134elif test $ac_cv_prog_cxx_g = yes; then
4135 if test "$GXX" = yes; then
4136 CXXFLAGS="-g -O2"
4137 else
4138 CXXFLAGS="-g"
4139 fi
4140else
4141 if test "$GXX" = yes; then
4142 CXXFLAGS="-O2"
4143 else
4144 CXXFLAGS=
4145 fi
4146fi
4147for ac_declaration in \
4148 '' \
4149 'extern "C" void std::exit (int) throw (); using std::exit;' \
4150 'extern "C" void std::exit (int); using std::exit;' \
4151 'extern "C" void exit (int) throw ();' \
4152 'extern "C" void exit (int);' \
4153 'void exit (int);'
4154do
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161$ac_declaration
4162#include <stdlib.h>
4163int
4164main ()
4165{
4166exit (42);
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_cxx_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 :
4194else
4195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198continue
4199fi
4200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207$ac_declaration
4208int
4209main ()
4210{
4211exit (42);
4212 ;
4213 return 0;
4214}
4215_ACEOF
4216rm -f conftest.$ac_objext
4217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_cxx_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 break
4239else
4240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243fi
4244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245done
4246rm -f conftest*
4247if test -n "$ac_declaration"; then
4248 echo '#ifdef __cplusplus' >>confdefs.h
4249 echo $ac_declaration >>confdefs.h
4250 echo '#endif' >>confdefs.h
4251fi
4252
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259
4260# We must set the default linker to the linker used by gcc for the correct
4261# operation of libtool. If LD is not defined and we are using gcc, try to
4262# set the LD default to the ld used by gcc.
4263if test -z "$LD"; then
4264 if test "$GCC" = yes; then
4265 case $build in
4266 *-*-mingw*)
4267 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4268 *)
4269 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4270 esac
4271 case $gcc_prog_ld in
4272 # Accept absolute paths.
4273 [\\/]* | [A-Za-z]:[\\/]*)
4274 LD="$gcc_prog_ld" ;;
4275 esac
4276 fi
512b7dfb
PB
4277fi
4278
4279
4280
4281
c6b750e1 4282if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4283 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4284set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4285echo "$as_me:$LINENO: checking for $ac_word" >&5
4286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4287if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4288 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4289else
512b7dfb
PB
4290 if test -n "$GNATBIND"; then
4291 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4292else
c6b750e1
DJ
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4300 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4303 fi
4304done
4305done
4306
9e07f89d
NN
4307fi
4308fi
512b7dfb
PB
4309GNATBIND=$ac_cv_prog_GNATBIND
4310if test -n "$GNATBIND"; then
4311 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4312echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4313else
c6b750e1
DJ
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
9e07f89d
NN
4316fi
4317
c6b750e1 4318fi
512b7dfb
PB
4319if test -z "$ac_cv_prog_GNATBIND"; then
4320 ac_ct_GNATBIND=$GNATBIND
4321 # Extract the first word of "gnatbind", so it can be a program name with args.
4322set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4323echo "$as_me:$LINENO: checking for $ac_word" >&5
4324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4325if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4326 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4327else
512b7dfb
PB
4328 if test -n "$ac_ct_GNATBIND"; then
4329 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4330else
c6b750e1
DJ
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4338 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342done
4343done
4344
512b7dfb 4345 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4346fi
4347fi
512b7dfb
PB
4348ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4349if test -n "$ac_ct_GNATBIND"; then
4350 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4351echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4352else
c6b750e1
DJ
4353 echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
9e07f89d
NN
4355fi
4356
512b7dfb 4357 GNATBIND=$ac_ct_GNATBIND
24ff9987 4358else
512b7dfb 4359 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4360fi
4361
7df2cd5d 4362if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4363 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4364set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4365echo "$as_me:$LINENO: checking for $ac_word" >&5
4366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4367if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
512b7dfb
PB
4370 if test -n "$GNATMAKE"; then
4371 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4372else
4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4380 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385done
4386
4387fi
4388fi
512b7dfb
PB
4389GNATMAKE=$ac_cv_prog_GNATMAKE
4390if test -n "$GNATMAKE"; then
4391 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4392echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4393else
4394 echo "$as_me:$LINENO: result: no" >&5
4395echo "${ECHO_T}no" >&6
4396fi
4397
4398fi
512b7dfb
PB
4399if test -z "$ac_cv_prog_GNATMAKE"; then
4400 ac_ct_GNATMAKE=$GNATMAKE
4401 # Extract the first word of "gnatmake", so it can be a program name with args.
4402set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4403echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4405if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
512b7dfb
PB
4408 if test -n "$ac_ct_GNATMAKE"; then
4409 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4418 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423done
4424
512b7dfb 4425 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4426fi
4427fi
512b7dfb
PB
4428ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4429if test -n "$ac_ct_GNATMAKE"; then
4430 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4431echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4432else
4433 echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6
4435fi
4436
512b7dfb 4437 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4438else
512b7dfb 4439 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4440fi
4441
c6b750e1
DJ
4442echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4443echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4444if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4446else
4447 cat >conftest.adb <<EOF
4448procedure conftest is begin null; end conftest;
4449EOF
4450acx_cv_cc_gcc_supports_ada=no
4451# There is a bug in old released versions of GCC which causes the
4452# driver to exit successfully when the appropriate language module
4453# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4454# Therefore we must check for the error message as well as an
4455# unsuccessful exit.
b8908782
DD
4456# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4457# given a .adb file, but produce no object file. So we must check
4458# if an object file was really produced to guard against this.
9e07f89d 4459errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4460if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4461 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4462fi
4463rm -f conftest.*
4464fi
c6b750e1
DJ
4465echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4466echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4467
512b7dfb 4468if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4469 have_gnat=yes
4470else
4471 have_gnat=no
4472fi
4473
c6b750e1
DJ
4474echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4475echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4476if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4478else
4479 echo abfoo >t1
4480 echo cdfoo >t2
4481 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4482 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4483 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4484 :
4485 else
4486 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4487 fi
4488 fi
b8908782
DD
4489 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4490 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4491 :
b8908782
DD
4492 else
4493 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4494 fi
4495 fi
4496 rm t1 t2
4497
4498fi
c6b750e1
DJ
4499echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4500echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4501do_compare="$gcc_cv_prog_cmp_skip"
4502
4503
9e07f89d 4504
11b04d1f 4505# Check for GMP and MPFR
4b900473 4506gmplibs="-lmpfr -lgmp"
4b1cb4fe 4507gmpinc=
4b900473
PB
4508have_gmp=no
4509
11b04d1f
DD
4510# Specify a location for mpfr
4511# check for this first so it ends up on the link line before gmp.
c6b750e1 4512
11b04d1f
DD
4513# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4514if test "${with_mpfr_dir+set}" = set; then
4515 withval="$with_mpfr_dir"
c6b750e1
DJ
4516 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4517Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4518echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4519Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4520 { (exit 1); exit 1; }; }
4521fi;
11b04d1f
DD
4522
4523
11b04d1f
DD
4524# Check whether --with-mpfr or --without-mpfr was given.
4525if test "${with_mpfr+set}" = set; then
4526 withval="$with_mpfr"
c6b750e1
DJ
4527
4528fi;
11b04d1f 4529
8a0d8a5c
PB
4530# Check whether --with-mpfr_include or --without-mpfr_include was given.
4531if test "${with_mpfr_include+set}" = set; then
4532 withval="$with_mpfr_include"
c6b750e1
DJ
4533
4534fi;
8a0d8a5c
PB
4535
4536# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4537if test "${with_mpfr_lib+set}" = set; then
4538 withval="$with_mpfr_lib"
8a0d8a5c 4539
c6b750e1 4540fi;
11b04d1f
DD
4541
4542if test "x$with_mpfr" != x; then
4543 gmplibs="-L$with_mpfr/lib $gmplibs"
4544 gmpinc="-I$with_mpfr/include"
4545fi
8a0d8a5c
PB
4546if test "x$with_mpfr_include" != x; then
4547 gmpinc="-I$with_mpfr_include"
4548fi
4549if test "x$with_mpfr_lib" != x; then
4550 gmplibs="-L$with_mpfr_lib $gmplibs"
4551fi
4b900473
PB
4552if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4553 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4554 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4555 # Do not test the mpfr version. Assume that it is sufficient, since
4556 # it is in the source tree, and the library has not been built yet
4557 # but it would be included on the link line in the version check below
4558 # hence making the test fail.
4559 have_gmp=yes
4560fi
11b04d1f 4561
4b1cb4fe 4562# Specify a location for gmp
c6b750e1 4563
4b1cb4fe
DD
4564# Check whether --with-gmp-dir or --without-gmp-dir was given.
4565if test "${with_gmp_dir+set}" = set; then
4566 withval="$with_gmp_dir"
c6b750e1
DJ
4567 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4568Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4569echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4570Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4571 { (exit 1); exit 1; }; }
4572fi;
4b1cb4fe
DD
4573
4574
4b1cb4fe
DD
4575# Check whether --with-gmp or --without-gmp was given.
4576if test "${with_gmp+set}" = set; then
4577 withval="$with_gmp"
c6b750e1
DJ
4578
4579fi;
4b1cb4fe 4580
8a0d8a5c
PB
4581# Check whether --with-gmp_include or --without-gmp_include was given.
4582if test "${with_gmp_include+set}" = set; then
4583 withval="$with_gmp_include"
c6b750e1
DJ
4584
4585fi;
8a0d8a5c
PB
4586
4587# Check whether --with-gmp_lib or --without-gmp_lib was given.
4588if test "${with_gmp_lib+set}" = set; then
4589 withval="$with_gmp_lib"
8a0d8a5c 4590
c6b750e1 4591fi;
8a0d8a5c 4592
4b1cb4fe 4593
11b04d1f
DD
4594if test "x$with_gmp" != x; then
4595 gmplibs="-L$with_gmp/lib $gmplibs"
4596 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4597fi
8a0d8a5c
PB
4598if test "x$with_gmp_include" != x; then
4599 gmpinc="-I$with_gmp_include $gmpinc"
4600fi
4601if test "x$with_gmp_lib" != x; then
4602 gmplibs="-L$with_gmp_lib $gmplibs"
4603fi
4b900473
PB
4604if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4605 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4606 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4607 # Do not test the gmp version. Assume that it is sufficient, since
4608 # it is in the source tree, and the library has not been built yet
4609 # but it would be included on the link line in the version check below
4610 # hence making the test fail.
4611 have_gmp=yes
4612fi
4b1cb4fe 4613
ceb92e78 4614if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4615 have_gmp=yes
4616 saved_CFLAGS="$CFLAGS"
4617 CFLAGS="$CFLAGS $gmpinc"
4618 # Check GMP actually works
c6b750e1
DJ
4619 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4620echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4621
4622cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
4b1cb4fe 4628#include "gmp.h"
c6b750e1
DJ
4629int
4630main ()
4631{
4b1cb4fe 4632
ef699244 4633 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
4634 choke me
4635 #endif
c6b750e1
DJ
4636
4637 ;
4638 return 0;
4639}
4640_ACEOF
4641rm -f conftest.$ac_objext
4642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 echo "$as_me:$LINENO: result: yes" >&5
4664echo "${ECHO_T}yes" >&6
4665else
4666 echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6; have_gmp=no
4671fi
4672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4673
4b900473
PB
4674 if test x"$have_gmp" = xyes; then
4675 saved_LIBS="$LIBS"
4676 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4677 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4678echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4679 cat >conftest.$ac_ext <<_ACEOF
4680/* confdefs.h. */
4681_ACEOF
4682cat confdefs.h >>conftest.$ac_ext
4683cat >>conftest.$ac_ext <<_ACEOF
4684/* end confdefs.h. */
9b134994 4685#include <gmp.h>
4b900473 4686 #include <mpfr.h>
c6b750e1
DJ
4687int
4688main ()
4689{
9b134994 4690
ef699244 4691 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
4692 choke me
4693 #endif
a3ca38d2
DD
4694 mpfr_t n;
4695 mpfr_t x;
4b900473 4696 int t;
a3ca38d2
DD
4697 mpfr_init (n);
4698 mpfr_init (x);
4b900473
PB
4699 mpfr_atan2 (n, n, x, GMP_RNDN);
4700 mpfr_erfc (n, x, GMP_RNDN);
4701 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707rm -f conftest.$ac_objext conftest$ac_exeext
4708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest$ac_exeext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 cat >conftest.$ac_ext <<_ACEOF
4730/* confdefs.h. */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h. */
4b1cb4fe 4735#include <gmp.h>
4b900473 4736 #include <mpfr.h>
c6b750e1
DJ
4737int
4738main ()
4739{
9dbaa842 4740
e28c595f 4741 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
4742 choke me
4743 #endif
4744 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4745
4746 ;
4747 return 0;
4748}
4749_ACEOF
4750rm -f conftest.$ac_objext conftest$ac_exeext
4751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752 (eval $ac_link) 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest$ac_exeext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
4774else
4775 echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4779echo "${ECHO_T}buggy but acceptable" >&6
4780fi
4781rm -f conftest.err conftest.$ac_objext \
4782 conftest$ac_exeext conftest.$ac_ext
4783else
4784 echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6; have_gmp=no
4789fi
4790rm -f conftest.err conftest.$ac_objext \
4791 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4792 LIBS="$saved_LIBS"
4793 fi
4794 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4795
4b900473 4796 if test x$have_gmp != xyes; then
ef699244 4797 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
c6b750e1
DJ
4798Try the --with-gmp and/or --with-mpfr options to specify their locations.
4799Copies of these libraries' source code can be found at their respective
4800hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4801See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4802If you obtained GMP and/or MPFR from a vendor distribution package, make
4803sure that you have installed both the libraries and the header files.
4804They may be located in separate packages." >&5
ef699244 4805echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
4806Try the --with-gmp and/or --with-mpfr options to specify their locations.
4807Copies of these libraries' source code can be found at their respective
4808hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4809See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4810If you obtained GMP and/or MPFR from a vendor distribution package, make
4811sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4812They may be located in separate packages." >&2;}
4813 { (exit 1); exit 1; }; }
4b900473 4814 fi
9dbaa842
DD
4815fi
4816
11b04d1f 4817# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4818
4819
4820
29383458
JM
4821# Allow host libstdc++ to be specified for static linking with PPL.
4822
4823# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
4824if test "${with_host_libstdcxx+set}" = set; then
4825 withval="$with_host_libstdcxx"
4826
4827fi;
4828
4829case $with_host_libstdcxx in
4830 no|yes)
4831 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
4832echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
4833 { (exit 1); exit 1; }; }
4834 ;;
4835esac
e28c595f
JM
4836
4837# Check for PPL
4838ppl_major_version=0
4839ppl_minor_version=10
29383458 4840ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
e28c595f
JM
4841pplinc=
4842
4843
4844# Check whether --with-ppl or --without-ppl was given.
4845if test "${with_ppl+set}" = set; then
4846 withval="$with_ppl"
4847
4848fi;
4849
4850# Check whether --with-ppl_include or --without-ppl_include was given.
4851if test "${with_ppl_include+set}" = set; then
4852 withval="$with_ppl_include"
4853
4854fi;
4855
4856# Check whether --with-ppl_lib or --without-ppl_lib was given.
4857if test "${with_ppl_lib+set}" = set; then
4858 withval="$with_ppl_lib"
4859
4860fi;
4861
29383458
JM
4862case $with_ppl in
4863 no)
4864 ppllibs=
4865 ;;
4866 *)
4867 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4868 pplinc="-I$with_ppl/include $pplinc"
4869 LIBS="$ppllibs $LIBS"
4870 ;;
4871esac
e28c595f
JM
4872if test "x$with_ppl_include" != x; then
4873 pplinc="-I$with_ppl_include $pplinc"
4874fi
4875if test "x$with_ppl_lib" != x; then
29383458 4876 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
e28c595f
JM
4877 LIBS="$ppllibs $LIBS"
4878fi
4879if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
29383458 4880 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
e28c595f
JM
4881 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4882 LIBS="$ppllibs $LIBS"
4883fi
4884
4885# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4886if test "${enable_ppl_version_check+set}" = set; then
4887 enableval="$enable_ppl_version_check"
4888 ENABLE_PPL_CHECK=$enableval
4889else
4890 ENABLE_PPL_CHECK=yes
4891fi;
4892
4893if test "${ENABLE_PPL_CHECK}" = "yes"; then
4894 saved_CFLAGS="$CFLAGS"
4895 CFLAGS="$CFLAGS $pplinc $gmpinc"
4896 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4897echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include "ppl_c.h"
4905int
4906main ()
4907{
4908
4909 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4910 choke me
4911 #endif
4912
4913 ;
4914 return 0;
4915}
4916_ACEOF
4917rm -f conftest.$ac_objext
4918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -z "$ac_c_werror_flag"
4927 || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941else
4942 echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945echo "$as_me:$LINENO: result: no" >&5
4946echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4947fi
4948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949 CFLAGS="$saved_CFLAGS"
4950fi
4951
4952# Flags needed for PPL
4953
4954
4955
4956
4957# Check for CLOOG
4958clooglibs=" -lcloog "
4959clooginc=" -DCLOOG_PPL_BACKEND "
4960
4961
4962# Check whether --with-cloog or --without-cloog was given.
4963if test "${with_cloog+set}" = set; then
4964 withval="$with_cloog"
4965
4966fi;
4967
4968# Check whether --with-cloog_include or --without-cloog_include was given.
4969if test "${with_cloog_include+set}" = set; then
4970 withval="$with_cloog_include"
4971
4972fi;
4973
4974# Check whether --with-cloog_lib or --without-cloog_lib was given.
4975if test "${with_cloog_lib+set}" = set; then
4976 withval="$with_cloog_lib"
4977
4978fi;
4979
29383458
JM
4980case $with_cloog in
4981 no)
4982 clooglibs=
4983 clooginc=
4984 ;;
4985 *)
4986 clooglibs="-L$with_cloog/lib -lcloog"
4987 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4988 LIBS="$clooglibs $LIBS"
4989 ;;
4990esac
e28c595f
JM
4991if test "x$with_cloog_include" != x; then
4992 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4993fi
4994if test "x$with_cloog_lib" != x; then
4995 clooglibs="-L$with_cloog_lib -lcloog"
4996 LIBS="$clooglibs $LIBS"
4997fi
4998if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4999 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5000 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5001 LIBS="$clooglibs $LIBS"
5002fi
5003
5004# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5005if test "${enable_cloog_version_check+set}" = set; then
5006 enableval="$enable_cloog_version_check"
5007 ENABLE_CLOOG_CHECK=$enableval
5008else
5009 ENABLE_CLOOG_CHECK=yes
5010fi;
5011
5012if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5013 saved_CFLAGS="$CFLAGS"
5014 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5015 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5016echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
5023#include "cloog/cloog.h"
5024int
5025main ()
5026{
5027
5028 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5029 choke me
5030 #endif
5031
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036rm -f conftest.$ac_objext
5037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 echo "$as_me:$LINENO: result: yes" >&5
5059echo "${ECHO_T}yes" >&6
5060else
5061 echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5066fi
5067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 CFLAGS="$saved_CFLAGS"
5069fi
5070
5071# Flags needed for CLOOG
5072
5073
5074
5075
947f426e 5076# By default, C is the only stage 1 language.
9b134994 5077stage1_languages=,c,
1d39f329 5078
9e07f89d
NN
5079# Figure out what language subdirectories are present.
5080# Look if the user specified --enable-languages="..."; if not, use
5081# the environment variable $LANGUAGES if defined. $LANGUAGES might
5082# go away some day.
5083# NB: embedded tabs in this IF block -- do not untabify
5084if test -d ${srcdir}/gcc; then
5085 if test x"${enable_languages+set}" != xset; then
5086 if test x"${LANGUAGES+set}" = xset; then
5087 enable_languages="${LANGUAGES}"
5088 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5089 else
5090 enable_languages=all
5091 fi
5092 else
5093 if test x"${enable_languages}" = x ||
5094 test x"${enable_languages}" = xyes;
5095 then
5096 echo configure.in: --enable-languages needs at least one language argument 1>&2
5097 exit 1
5098 fi
5099 fi
5100 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5101
096f7d00
DE
5102 # 'f95' is the old name for the 'fortran' language. We issue a warning
5103 # and make the substitution.
5104 case ,${enable_languages}, in
5105 *,f95,*)
5106 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5107 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5108 ;;
5109 esac
5110
9e07f89d
NN
5111 # First scan to see if an enabled language requires some other language.
5112 # We assume that a given config-lang.in will list all the language
5113 # front ends it requires, even if some are required indirectly.
5114 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5115 case ${lang_frag} in
5116 ..) ;;
5117 # The odd quoting in the next line works around
5118 # an apparent bug in bash 1.12 on linux.
5119 ${srcdir}/gcc/[*]/config-lang.in) ;;
5120 *)
5121 # From the config-lang.in, get $language, $lang_requires
5122 language=
5123 lang_requires=
5124 . ${lang_frag}
5125 for other in ${lang_requires} ; do
5126 case ,${enable_languages}, in
5127 *,$other,*) ;;
5128 *,all,*) ;;
5129 *,$language,*)
5130 echo " \`$other' language required by \`$language'; enabling" 1>&2
5131 enable_languages="${enable_languages},${other}"
5132 ;;
5133 esac
5134 done
5135 ;;
5136 esac
5137 done
5138
9b134994 5139 new_enable_languages=,c,
9e07f89d 5140 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5141 potential_languages=,c,
9e07f89d
NN
5142
5143 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5144 case ${lang_frag} in
5145 ..) ;;
5146 # The odd quoting in the next line works around
5147 # an apparent bug in bash 1.12 on linux.
5148 ${srcdir}/gcc/[*]/config-lang.in) ;;
5149 *)
c6b750e1 5150 # From the config-lang.in, get $language, $target_libs,
1d39f329 5151 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5152 language=
5153 target_libs=
5154 lang_dirs=
64ce424c 5155 subdir_requires=
9b134994
PB
5156 boot_language=no
5157 build_by_default=yes
9e07f89d 5158 . ${lang_frag}
9b134994
PB
5159 if test x${language} = x; then
5160 echo "${lang_frag} doesn't set \$language." 1>&2
5161 exit 1
5162 fi
5163
5164 case ,${enable_languages}, in
5165 *,${language},*)
9e07f89d
NN
5166 # Language was explicitly selected; include it.
5167 add_this_lang=yes
5168 ;;
9b134994
PB
5169 *,all,*)
5170 # 'all' was selected, select it if it is a default language
5171 add_this_lang=${build_by_default}
9e07f89d
NN
5172 ;;
5173 *)
5174 add_this_lang=no
5175 ;;
5176 esac
4b1cb4fe 5177
64ce424c 5178 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5179 for i in $subdir_requires; do
3d3adb43 5180 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5181 case ,${enable_languages}, in
5182 *,${language},*)
5183 # Specifically requested language; tell them.
c6b750e1
DJ
5184 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5185echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5186 { (exit 1); exit 1; }; }
64ce424c
PB
5187 ;;
5188 *)
5189 # Silently disable.
9b134994 5190 add_this_lang=unsupported
64ce424c
PB
5191 ;;
5192 esac
5193 done
5194
9b134994
PB
5195 # Disable Ada if no preexisting GNAT is available.
5196 case ,${enable_languages},:${language}:${have_gnat} in
5197 *,${language},*:ada:no)
5198 # Specifically requested language; tell them.
c6b750e1
DJ
5199 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5200echo "$as_me: error: GNAT is required to build $language" >&2;}
5201 { (exit 1); exit 1; }; }
9b134994
PB
5202 ;;
5203 *:ada:no)
5204 # Silently disable.
5205 add_this_lang=unsupported
5206 ;;
5207 esac
5208
59f7ec45
HPN
5209 # Disable a language that is unsupported by the target.
5210 case " $unsupported_languages " in
5211 *" $language "*)
9b134994 5212 add_this_lang=unsupported
59f7ec45
HPN
5213 ;;
5214 esac
5215
4b1cb4fe 5216 case $add_this_lang in
9b134994 5217 unsupported)
9e07f89d 5218 # Remove language-dependent dirs.
1d39f329
NN
5219 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5220 ;;
9b134994
PB
5221 no)
5222 # Remove language-dependent dirs; still show language as supported.
5223 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5224 potential_languages="${potential_languages}${language},"
5225 ;;
5226 yes)
5227 new_enable_languages="${new_enable_languages}${language},"
5228 potential_languages="${potential_languages}${language},"
1d39f329
NN
5229 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5230 case ${boot_language} in
5231 yes)
4fa63067 5232 # Add to (comma-separated) list of stage 1 languages.
9b134994 5233 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
5234 ;;
5235 esac
5236 ;;
9e07f89d
NN
5237 esac
5238 ;;
5239 esac
5240 done
5241
9b134994
PB
5242 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5243if test "${enable_stage1_languages+set}" = set; then
5244 enableval="$enable_stage1_languages"
5245 case ,${enable_stage1_languages}, in
5246 ,no,|,,)
5247 # Set it to something that will have no effect in the loop below
5248 enable_stage1_languages=c ;;
5249 ,yes,)
5250 enable_stage1_languages=`echo $new_enable_languages | \
5251 sed -e "s/^,//" -e "s/,$//" ` ;;
5252 *,all,*)
5253 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5254 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5255 esac
5256
5257 # Add "good" languages from enable_stage1_languages to stage1_languages,
5258 # while "bad" languages go in missing_languages. Leave no duplicates.
5259 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5260 case $potential_languages in
5261 *,$i,*)
5262 case $stage1_languages in
5263 *,$i,*) ;;
5264 *) stage1_languages="$stage1_languages$i," ;;
5265 esac ;;
5266 *)
5267 case $missing_languages in
5268 *,$i,*) ;;
5269 *) missing_languages="$missing_languages$i," ;;
5270 esac ;;
5271 esac
5272 done
c6b750e1 5273fi;
9b134994
PB
5274
5275 # Remove leading/trailing commas that were added for simplicity
5276 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5277 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5278 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5279 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5280
9e07f89d 5281 if test "x$missing_languages" != x; then
c6b750e1 5282 { { echo "$as_me:$LINENO: error:
27258dd4 5283The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5284Supported languages are: ${potential_languages}" >&5
5285echo "$as_me: error:
5286The following requested languages could not be built: ${missing_languages}
5287Supported languages are: ${potential_languages}" >&2;}
5288 { (exit 1); exit 1; }; }
9e07f89d 5289 fi
9e07f89d
NN
5290 if test "x$new_enable_languages" != "x$enable_languages"; then
5291 echo The following languages will be built: ${new_enable_languages}
9b134994 5292 enable_languages="$new_enable_languages"
9e07f89d 5293 fi
9b134994 5294
c6b750e1 5295
81ec575a 5296 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5297fi
5298
a6df5a19
PB
5299# Handle --disable-<component> generically.
5300for dir in $configdirs $build_configdirs $target_configdirs ; do
5301 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5302 varname=`echo $dirname | sed -e s/+/_/g`
5303 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5304 noconfigdirs="$noconfigdirs $dir"
5305 fi
5306done
5307
4f0ef2d8
CD
5308# Check for Boehm's garbage collector
5309# Check whether --enable-objc-gc or --disable-objc-gc was given.
5310if test "${enable_objc_gc+set}" = set; then
5311 enableval="$enable_objc_gc"
5312 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5313 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5314 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5315echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5316 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5317 ;;
5318esac
c6b750e1 5319fi;
4f0ef2d8
CD
5320
5321# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5322case ,${enable_languages},:${enable_objc_gc} in
5323 *,objc,*:yes)
4f0ef2d8
CD
5324 # Keep target-boehm-gc if requested for Objective-C.
5325 ;;
4f0ef2d8 5326 *)
d42c4017
DA
5327 # Otherwise remove target-boehm-gc depending on target-libjava.
5328 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5329 noconfigdirs="$noconfigdirs target-boehm-gc"
5330 fi
4f0ef2d8
CD
5331 ;;
5332esac
5333
caeba88f
AL
5334# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5335# $build_configdirs and $target_configdirs.
9e07f89d
NN
5336# If we have the source for $noconfigdirs entries, add them to $notsupp.
5337
5338notsupp=""
5339for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5340 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5341 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5342 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5343 if test -r $srcdir/$dirname/configure ; then
5344 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5345 true
5346 else
5347 notsupp="$notsupp $dir"
5348 fi
5349 fi
5350 fi
caeba88f
AL
5351 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5352 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5353 if test -r $srcdir/$dirname/configure ; then
5354 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5355 true
5356 else
5357 notsupp="$notsupp $dir"
5358 fi
5359 fi
5360 fi
9e07f89d
NN
5361 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5362 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5363 if test -r $srcdir/$dirname/configure ; then
5364 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5365 true
5366 else
5367 notsupp="$notsupp $dir"
5368 fi
5369 fi
5370 fi
5371done
5372
5373# Sometimes the tools are distributed with libiberty but with no other
5374# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5375# Don't let libgcc imply libiberty either.
9e07f89d 5376if test -n "${target_configdirs}" ; then
f86e35b8 5377 libgcc=
9e07f89d
NN
5378 others=
5379 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5380 if test "$i" = "libgcc"; then
5381 libgcc=target-libgcc
5382 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5383 if test -r $srcdir/$i/configure ; then
5384 others=yes;
5385 break;
5386 fi
5387 fi
5388 done
5389 if test -z "${others}" ; then
f86e35b8 5390 target_configdirs=$libgcc
9e07f89d
NN
5391 fi
5392fi
5393
5394# Quietly strip out all directories which aren't configurable in this tree.
5395# This relies on all configurable subdirectories being autoconfiscated, which
5396# is now the case.
6a9cf61e
PB
5397build_configdirs_all="$build_configdirs"
5398build_configdirs=
5399for i in ${build_configdirs_all} ; do
c6b750e1 5400 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5401 if test -f ${srcdir}/$j/configure ; then
5402 build_configdirs="${build_configdirs} $i"
5403 fi
5404done
5405
9e07f89d
NN
5406configdirs_all="$configdirs"
5407configdirs=
5408for i in ${configdirs_all} ; do
5409 if test -f ${srcdir}/$i/configure ; then
5410 configdirs="${configdirs} $i"
5411 fi
5412done
6a9cf61e 5413
9e07f89d
NN
5414target_configdirs_all="$target_configdirs"
5415target_configdirs=
5416for i in ${target_configdirs_all} ; do
c6b750e1 5417 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5418 if test -f ${srcdir}/$j/configure ; then
5419 target_configdirs="${target_configdirs} $i"
5420 fi
5421done
5422
5423# Produce a warning message for the subdirs we can't configure.
5424# This isn't especially interesting in the Cygnus tree, but in the individual
5425# FSF releases, it's important to let people know when their machine isn't
5426# supported by the one or two programs in a package.
5427
5428if test -n "${notsupp}" && test -z "${norecursion}" ; then
5429 # If $appdirs is non-empty, at least one of those directories must still
5430 # be configured, or we error out. (E.g., if the gas release supports a
5431 # specified target in some subdirs but not the gas subdir, we shouldn't
5432 # pretend that all is well.)
5433 if test -n "$appdirs" ; then
5434 for dir in $appdirs ; do
5435 if test -r $dir/Makefile.in ; then
5436 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5437 appdirs=""
5438 break
5439 fi
6a9cf61e 5440 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5441 appdirs=""
5442 break
5443 fi
5444 fi
5445 done
5446 if test -n "$appdirs" ; then
5447 echo "*** This configuration is not supported by this package." 1>&2
5448 exit 1
5449 fi
5450 fi
5451 # Okay, some application will build, or we don't care to check. Still
5452 # notify of subdirs not getting built.
5453 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5454 echo " ${notsupp}" 1>&2
5455 echo " (Any other directories should still work fine.)" 1>&2
5456fi
5457
5458case "$host" in
5459 *msdosdjgpp*)
5460 enable_gdbtk=no ;;
5461esac
5462
18f6b6ee
PB
5463# To find our prefix, in gcc_cv_tool_prefix.
5464
5465# The user is always right.
5466if test "${PATH_SEPARATOR+set}" != set; then
5467 echo "#! /bin/sh" >conf$$.sh
5468 echo "exit 0" >>conf$$.sh
5469 chmod +x conf$$.sh
5470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5471 PATH_SEPARATOR=';'
5472 else
5473 PATH_SEPARATOR=:
5474 fi
5475 rm -f conf$$.sh
5476fi
5477
5478
5479
5480if test "x$exec_prefix" = xNONE; then
5481 if test "x$prefix" = xNONE; then
5482 gcc_cv_tool_prefix=$ac_default_prefix
5483 else
5484 gcc_cv_tool_prefix=$prefix
5485 fi
5486else
5487 gcc_cv_tool_prefix=$exec_prefix
5488fi
5489
5490# If there is no compiler in the tree, use the PATH only. In any
5491# case, if there is no compiler in the tree nobody should use
5492# AS_FOR_TARGET and LD_FOR_TARGET.
5493if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5494 gcc_version=`cat $srcdir/gcc/BASE-VER`
5495 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5496 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5497 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5499 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5501else
5502 gcc_cv_tool_dirs=
5503fi
5504
5505if test x$build = x$target && test -n "$md_exec_prefix"; then
5506 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5507fi
5508
5509
5510
9e07f89d
NN
5511copy_dirs=
5512
c6b750e1 5513
a19b6204
MM
5514# Check whether --with-build-sysroot or --without-build-sysroot was given.
5515if test "${with_build_sysroot+set}" = set; then
5516 withval="$with_build_sysroot"
5517 if test x"$withval" != x ; then
5518 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5519 fi
5520else
5521 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5522fi;
a19b6204
MM
5523
5524
8a6ee3ab
JM
5525
5526# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5527if test "${with_debug_prefix_map+set}" = set; then
5528 withval="$with_debug_prefix_map"
5529 if test x"$withval" != x; then
5530 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5531 for debug_map in $withval; do
5532 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5533 done
5534 fi
5535else
5536 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5537fi;
5538
5539
7f6ef0c0
PB
5540# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5541# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5542# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5543# We want to ensure that TARGET libraries (which we know are built with
5544# gcc) are built with "-O2 -g", so include those options when setting
5545# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5546if test "x$CFLAGS_FOR_TARGET" = x; then
5547 CFLAGS_FOR_TARGET=$CFLAGS
5548 case " $CFLAGS " in
5549 *" -O2 "*) ;;
5550 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5551 esac
5552 case " $CFLAGS " in
5553 *" -g "* | *" -g3 "*) ;;
5554 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5555 esac
5556fi
5557
5558
5559if test "x$CXXFLAGS_FOR_TARGET" = x; then
5560 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5561 case " $CXXFLAGS " in
5562 *" -O2 "*) ;;
5563 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5564 esac
5565 case " $CXXFLAGS " in
5566 *" -g "* | *" -g3 "*) ;;
5567 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5568 esac
5569fi
5570
5571
9e07f89d
NN
5572# Handle --with-headers=XXX. If the value is not "yes", the contents of
5573# the named directory are copied to $(tooldir)/sys-include.
5574if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5575 if test x${is_cross_compiler} = xno ; then
5576 echo 1>&2 '***' --with-headers is only supported when cross compiling
5577 exit 1
5578 fi
5579 if test x"${with_headers}" != xyes ; then
18f6b6ee 5580 x=${gcc_cv_tool_prefix}
c6b750e1 5581 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5582 fi
5583fi
5584
5585# Handle --with-libs=XXX. If the value is not "yes", the contents of
5586# the name directories are copied to $(tooldir)/lib. Multiple directories
5587# are permitted.
5588if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5589 if test x${is_cross_compiler} = xno ; then
5590 echo 1>&2 '***' --with-libs is only supported when cross compiling
5591 exit 1
5592 fi
5593 if test x"${with_libs}" != xyes ; then
5594 # Copy the libraries in reverse order, so that files in the first named
5595 # library override files in subsequent libraries.
18f6b6ee 5596 x=${gcc_cv_tool_prefix}
9e07f89d 5597 for l in ${with_libs}; do
c6b750e1 5598 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5599 done
5600 fi
5601fi
5602
2429c060
PB
5603# Set with_gnu_as and with_gnu_ld as appropriate.
5604#
5605# This is done by determining whether or not the appropriate directory
5606# is available, and by checking whether or not specific configurations
5607# have requested that this magic not happen.
c6b750e1
DJ
5608#
5609# The command line options always override the explicit settings in
2429c060
PB
5610# configure.in, and the settings in configure.in override this magic.
5611#
c6b750e1 5612# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5613# want to do that, then you should use the --without-gnu-as and
5614# --without-gnu-ld options for the configure script.
5615
5616if test x${use_gnu_as} = x &&
5617 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5618 with_gnu_as=yes
5619 extra_host_args="$extra_host_args --with-gnu-as"
5620fi
5621
5622if test x${use_gnu_ld} = x &&
93f9b408 5623 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5624 with_gnu_ld=yes
5625 extra_host_args="$extra_host_args --with-gnu-ld"
5626fi
5627
5628# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5629# can detect this case.
5630
5631if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5632 with_newlib=yes
5633 extra_host_args="$extra_host_args --with-newlib"
5634fi
5635
9e07f89d
NN
5636# Handle ${copy_dirs}
5637set fnord ${copy_dirs}
5638shift
5639while test $# != 0 ; do
5640 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5641 :
5642 else
5643 echo Copying $1 to $2
5644
5645 # Use the install script to create the directory and all required
5646 # parent directories.
5647 if test -d $2 ; then
5648 :
5649 else
5650 echo >config.temp
5651 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5652 fi
5653
5654 # Copy the directory, assuming we have tar.
5655 # FIXME: Should we use B in the second tar? Not all systems support it.
5656 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5657
5658 # It is the responsibility of the user to correctly adjust all
5659 # symlinks. If somebody can figure out how to handle them correctly
5660 # here, feel free to add the code.
5661
5662 echo $1 > $2/COPIED
5663 fi
5664 shift; shift
5665done
5666
2429c060
PB
5667# Determine a target-dependent exec_prefix that the installed
5668# gcc will search in. Keep this list sorted by triplet, with
5669# the *-*-osname triplets last.
5670md_exec_prefix=
5671case "${target}" in
5672 alpha*-*-*vms*)
5673 md_exec_prefix=/gnu/lib/gcc-lib
5674 ;;
521ec477 5675 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5676 md_exec_prefix=/dev/env/DJDIR/bin
5677 ;;
521ec477 5678 i[34567]86-*-sco3.2v5*)
2429c060
PB
5679 if test $with_gnu_as = yes; then
5680 md_exec_prefix=/usr/gnu/bin
5681 else
5682 md_exec_prefix=/usr/ccs/bin/elf
5683 fi
5684 ;;
5685
5686 mn10300-*-* | \
5687 powerpc-*-chorusos* | \
5688 powerpc*-*-eabi* | \
5689 powerpc*-*-sysv* | \
5690 powerpc*-*-kaos* | \
5691 s390x-ibm-tpf*)
5692 md_exec_prefix=/usr/ccs/bin
5693 ;;
5694 sparc64-*-elf*)
5695 ;;
5696 v850*-*-*)
5697 md_exec_prefix=/usr/ccs/bin
5698 ;;
8b66833e 5699 xtensa*-*-elf*)
2429c060
PB
5700 ;;
5701
5702 *-*-beos* | \
5703 *-*-elf* | \
5704 *-*-hpux* | \
5705 *-*-netware* | \
5706 *-*-nto-qnx* | \
5707 *-*-rtems* | \
5708 *-*-solaris2* | \
521ec477 5709 *-*-sysv[45]* | \
2429c060
PB
5710 *-*-vxworks* | \
5711 *-wrs-windiss)
5712 md_exec_prefix=/usr/ccs/bin
5713 ;;
5714esac
5715
a0da8069
NN
5716extra_arflags_for_target=
5717extra_nmflags_for_target=
5718extra_ranlibflags_for_target=
5719target_makefile_frag=/dev/null
5720case "${target}" in
4e206d7e
DB
5721 mep*-*-*)
5722 target_makefile_frag="config/mt-mep"
5723 ;;
77d7106f
AM
5724 spu-*-*)
5725 target_makefile_frag="config/mt-spu"
5726 ;;
429acdec
RS
5727 mips*-sde-elf*)
5728 target_makefile_frag="config/mt-sde"
5729 ;;
f3b1e08e
RS
5730 mipsisa*-*-elfoabi*)
5731 target_makefile_frag="config/mt-mips-elfoabi"
5732 ;;
e7c8859c
RS
5733 mips*-*-*linux* | mips*-*-gnu*)
5734 target_makefile_frag="config/mt-mips-gnu"
5735 ;;
2a3124ca 5736 *-*-netware*)
a0da8069
NN
5737 target_makefile_frag="config/mt-netware"
5738 ;;
29383458 5739 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 5740 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5741 ;;
5742 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5743 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5744 # commands to handle both 32-bit and 64-bit objects. These flags are
5745 # harmless if we're using GNU nm or ar.
5746 extra_arflags_for_target=" -X32_64"
5747 extra_nmflags_for_target=" -B -X32_64"
5748 ;;
5749 *-*-darwin*)
5750 # ranlib from Darwin requires the -c flag to look at common symbols.
5751 extra_ranlibflags_for_target=" -c"
5752 ;;
5753 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5754 target_makefile_frag="config/mt-wince"
5755 ;;
5756esac
5757
5758alphaieee_frag=/dev/null
5759case $target in
5760 alpha*-*-*)
5761 # This just makes sure to use the -mieee option to build target libs.
5762 # This should probably be set individually by each library.
5763 alphaieee_frag="config/mt-alphaieee"
5764 ;;
5765esac
5766
5767# If --enable-target-optspace always use -Os instead of -O2 to build
5768# the target libraries, similarly if it is not specified, use -Os
5769# on selected platforms.
5770ospace_frag=/dev/null
5771case "${enable_target_optspace}:${target}" in
5772 yes:*)
5773 ospace_frag="config/mt-ospace"
5774 ;;
5775 :d30v-*)
5776 ospace_frag="config/mt-d30v"
5777 ;;
5778 :m32r-* | :d10v-* | :fr30-*)
5779 ospace_frag="config/mt-ospace"
5780 ;;
5781 no:* | :*)
5782 ;;
5783 *)
5784 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5785 ;;
5786esac
5787
a0da8069
NN
5788# Default to using --with-stabs for certain targets.
5789if test x${with_stabs} = x ; then
5790 case "${target}" in
e31d1ea3 5791 mips*-*-irix[56]*)
a0da8069
NN
5792 ;;
5793 mips*-*-* | alpha*-*-osf*)
5794 with_stabs=yes;
5795 extra_host_args="${extra_host_args} --with-stabs"
5796 ;;
5797 esac
5798fi
5799
5800# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5801# them automatically.
5802case "${host}" in
c6b750e1 5803 hppa*64*-*-hpux11*)
a0da8069
NN
5804 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5805 ;;
5806esac
5807
a0da8069
NN
5808# Some systems (e.g., one of the i386-aix systems the gas testers are
5809# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5810tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5811build_tooldir=${tooldir}
5812
a0da8069
NN
5813# Create a .gdbinit file which runs the one in srcdir
5814# and tells GDB to look there for source files.
5815
5816if test -r ${srcdir}/.gdbinit ; then
5817 case ${srcdir} in
5818 .) ;;
5819 *) cat > ./.gdbinit <<EOF
5820# ${NO_EDIT}
5821dir ${srcdir}
5822dir .
5823source ${srcdir}/.gdbinit
5824EOF
5825 ;;
5826 esac
5827fi
5828
a0da8069
NN
5829# Make sure that the compiler is able to generate an executable. If it
5830# can't, we are probably in trouble. We don't care whether we can run the
5831# executable--we might be using a cross compiler--we only care whether it
5832# can be created. At this point the main configure script has set CC.
5833we_are_ok=no
5834echo "int main () { return 0; }" > conftest.c
5835${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5836if test $? = 0 ; then
5837 if test -s conftest || test -s conftest.exe ; then
5838 we_are_ok=yes
5839 fi
c6b750e1 5840fi
a0da8069
NN
5841case $we_are_ok in
5842 no)
5843 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5844 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5845 rm -f conftest*
5846 exit 1
5847 ;;
5848esac
5849rm -f conftest*
5850
5851# The Solaris /usr/ucb/cc compiler does not appear to work.
5852case "${host}" in
5853 sparc-sun-solaris2*)
5854 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5855 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5856 could_use=
5857 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5858 if test -d /opt/cygnus/bin ; then
5859 if test "$could_use" = "" ; then
5860 could_use="/opt/cygnus/bin"
5861 else
5862 could_use="$could_use or /opt/cygnus/bin"
5863 fi
5864 fi
5865 if test "$could_use" = "" ; then
5866 echo "Warning: compilation may fail because you're using"
5867 echo "/usr/ucb/cc. You should change your PATH or CC "
5868 echo "variable and rerun configure."
5869 else
5870 echo "Warning: compilation may fail because you're using"
5871 echo "/usr/ucb/cc, when you should use the C compiler from"
5872 echo "$could_use. You should change your"
5873 echo "PATH or CC variable and rerun configure."
5874 fi
5875 fi
5876 ;;
5877esac
5878
3bbd2f8f 5879# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
5880case "${host}" in
5881 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5882 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 5883 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
5884 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5885esac
5886
3bbd2f8f 5887# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
5888# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5889# built executables to PATH.
3bbd2f8f
AL
5890if test "$RPATH_ENVVAR" = PATH; then
5891 GCC_SHLIB_SUBDIR=/shlib
5892else
5893 GCC_SHLIB_SUBDIR=
5894fi
5895
a0da8069
NN
5896# Record target_configdirs and the configure arguments for target and
5897# build configuration in Makefile.
5898target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5899build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5900
a0da8069
NN
5901# Determine whether gdb needs tk/tcl or not.
5902# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5903# and in that case we want gdb to be built without tk. Ugh!
5904# In fact I believe gdb is the *only* package directly dependent on tk,
5905# so we should be able to put the 'maybe's in unconditionally and
5906# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5907# 100% sure that that's safe though.
c180f501 5908
675c6968 5909gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5910case "$enable_gdbtk" in
5911 no)
5912 GDB_TK="" ;;
c180f501
AC
5913 yes)
5914 GDB_TK="${gdb_tk}" ;;
a0da8069 5915 *)
c180f501
AC
5916 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5917 # distro. Eventually someone will fix this and move Insight, nee
5918 # gdbtk to a separate directory.
5919 if test -d ${srcdir}/gdb/gdbtk ; then
5920 GDB_TK="${gdb_tk}"
5921 else
5922 GDB_TK=""
5923 fi
5924 ;;
a0da8069 5925esac
907be67c
DJ
5926CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5927INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5928
6bd3dfaa 5929# Strip out unwanted targets.
dd12c3a8
NN
5930
5931# While at that, we remove Makefiles if we were started for recursive
5932# configuration, so that the top-level Makefile reconfigures them,
5933# like we used to do when configure itself was recursive.
dd12c3a8 5934
6bd3dfaa
PB
5935# Loop over modules. $extrasub must be used with care, limiting as
5936# much as possible the usage of range addresses. That's because autoconf
5937# splits the sed script to overcome limits in the number of commands,
5938# and relying on carefully-timed sed passes may turn out to be very hard
5939# to maintain later. In this particular case, you just have to be careful
5940# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5941
319cab08
PB
5942# Check whether --enable-bootstrap or --disable-bootstrap was given.
5943if test "${enable_bootstrap+set}" = set; then
5944 enableval="$enable_bootstrap"
c6b750e1 5945
319cab08 5946else
9cb3fa6f 5947 enable_bootstrap=default
c6b750e1 5948fi;
319cab08 5949
9cb3fa6f
PB
5950# Issue errors and warnings for invalid/strange bootstrap combinations.
5951case "$configdirs" in
5952 *gcc*) have_compiler=yes ;;
5953 *) have_compiler=no ;;
5954esac
5955
5956case "$have_compiler:$host:$target:$enable_bootstrap" in
5957 *:*:*:no) ;;
5958
0aed8855 5959 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5960 # and we are in a native configuration.
5961 yes:$build:$build:default)
0aed8855 5962 enable_bootstrap=yes ;;
9cb3fa6f
PB
5963
5964 *:*:*:default)
5965 enable_bootstrap=no ;;
5966
5967 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5968 yes:$build:$build:yes)
9cb3fa6f
PB
5969 ;;
5970
5971 # Other configurations, but we have a compiler. Assume the user knows
5972 # what he's doing.
80911fe1 5973 yes:*:*:yes)
c6b750e1
DJ
5974 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5975echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5976 ;;
5977
5978 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5979 no:*:*:yes)
c6b750e1
DJ
5980 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5981echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5982 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5983
5984 # Fail if wrong command line
5985 *)
c6b750e1
DJ
5986 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5987echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5988 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5989 ;;
5990esac
5991
5992# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5993case "$enable_bootstrap" in
5994 yes)
498d4a71 5995 bootstrap_suffix=bootstrap ;;
319cab08 5996 no)
498d4a71 5997 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5998esac
5999
6a9cf61e 6000for module in ${build_configdirs} ; do
498d4a71
CF
6001 if test -z "${no_recursion}" \
6002 && test -f ${build_subdir}/${module}/Makefile; then
6003 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6004 rm -f ${build_subdir}/${module}/Makefile
6005 fi
6006 extrasub="$extrasub
6007/^@if build-$module\$/d
6008/^@endif build-$module\$/d
6009/^@if build-$module-$bootstrap_suffix\$/d
6010/^@endif build-$module-$bootstrap_suffix\$/d"
6011done
6012for module in ${configdirs} ; do
80911fe1 6013 if test -z "${no_recursion}"; then
8cf39b1b 6014 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6015 if test -f ${file}; then
6016 echo 1>&2 "*** removing ${file} to force reconfigure"
6017 rm -f ${file}
6018 fi
6019 done
498d4a71
CF
6020 fi
6021 extrasub="$extrasub
6022/^@if $module\$/d
6023/^@endif $module\$/d
6024/^@if $module-$bootstrap_suffix\$/d
6025/^@endif $module-$bootstrap_suffix\$/d"
6026done
6027for module in ${target_configdirs} ; do
6028 if test -z "${no_recursion}" \
6029 && test -f ${target_subdir}/${module}/Makefile; then
6030 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6031 rm -f ${target_subdir}/${module}/Makefile
6032 fi
6033 extrasub="$extrasub
6034/^@if target-$module\$/d
6035/^@endif target-$module\$/d
6036/^@if target-$module-$bootstrap_suffix\$/d
6037/^@endif target-$module-$bootstrap_suffix\$/d"
6038done
6039
6bd3dfaa
PB
6040extrasub="$extrasub
6041/^@if /,/^@endif /d"
a0da8069
NN
6042
6043# Create the serialization dependencies. This uses a temporary file.
6044
e6bfb94a
AO
6045# Check whether --enable-serial-configure or --disable-serial-configure was given.
6046if test "${enable_serial_configure+set}" = set; then
6047 enableval="$enable_serial_configure"
e6bfb94a 6048
c6b750e1 6049fi;
e6bfb94a 6050
1047cb91
DD
6051case ${enable_serial_configure} in
6052 yes)
6053 enable_serial_build_configure=yes
6054 enable_serial_host_configure=yes
6055 enable_serial_target_configure=yes
6056 ;;
6057esac
6058
a0da8069
NN
6059# These force 'configure's to be done one at a time, to avoid problems
6060# with contention over a shared config.cache.
6061rm -f serdep.tmp
e6bfb94a 6062echo '# serdep.tmp' > serdep.tmp
a0da8069 6063olditem=
1047cb91 6064test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6065for item in ${build_configdirs} ; do
6066 case ${olditem} in
6067 "") ;;
e6bfb94a 6068 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6069 esac
6070 olditem=${item}
6071done
6072olditem=
1047cb91 6073test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6074for item in ${configdirs} ; do
6075 case ${olditem} in
6076 "") ;;
e6bfb94a 6077 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6078 esac
6079 olditem=${item}
6080done
6081olditem=
1047cb91 6082test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6083for item in ${target_configdirs} ; do
6084 case ${olditem} in
6085 "") ;;
e6bfb94a 6086 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6087 esac
6088 olditem=${item}
6089done
6090serialization_dependencies=serdep.tmp
6091
6092
e6bfb94a 6093# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6094# target, nonopt, and variable assignments. These are the ones we
6095# might not want to pass down to subconfigures. Also strip
6096# program-prefix, program-suffix, and program-transform-name, so that
6097# we can pass down a consistent program-transform-name.
6098baseargs=
6099keep_next=no
6100skip_next=no
6101eval "set -- $ac_configure_args"
18f6b6ee
PB
6102for ac_arg
6103do
c6b750e1
DJ
6104 if test X"$skip_next" = X"yes"; then
6105 skip_next=no
6106 continue
6107 fi
6108 if test X"$keep_next" = X"yes"; then
6109 case $ac_arg in
6110 *\'*)
6111 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6112 esac
6113 baseargs="$baseargs '$ac_arg'"
6114 keep_next=no
6115 continue
6116 fi
6117
6118 # Handle separated arguments. Based on the logic generated by
6119 # autoconf 2.59.
6120 case $ac_arg in
6121 *=* | --config-cache | -C | -disable-* | --disable-* \
6122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6124 | -with-* | --with-* | -without-* | --without-* | --x)
6125 separate_arg=no
6126 ;;
6127 -*)
6128 separate_arg=yes
6129 ;;
6130 *)
6131 separate_arg=no
6132 ;;
6133 esac
6134
6135 case "$ac_arg" in
6136 --no*)
6137 continue
6138 ;;
6139 --c* | \
6140 --sr* | \
6141 --ho* | \
6142 --bu* | \
6143 --t* | \
6144 --program-* | \
6145 -cache_file* | \
6146 -srcdir* | \
6147 -host* | \
6148 -build* | \
6149 -target* | \
6150 -program-prefix* | \
6151 -program-suffix* | \
6152 -program-transform-name* )
6153 skip_next=$separate_arg
6154 continue
6155 ;;
6156 -*)
6157 # An option. Add it.
6158 case $ac_arg in
6159 *\'*)
6160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6161 esac
6162 baseargs="$baseargs '$ac_arg'"
6163 keep_next=$separate_arg
6164 ;;
6165 *)
6166 # Either a variable assignment, or a nonopt (triplet). Don't
6167 # pass it down; let the Makefile handle this.
6168 continue
6169 ;;
6170 esac
6171done
6172# Remove the initial space we just introduced and, as these will be
6173# expanded by make, quote '$'.
6174baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6175
f27d4f92
DJ
6176# Add in --program-transform-name, after --program-prefix and
6177# --program-suffix have been applied to it. Autoconf has already
6178# doubled dollar signs and backslashes in program_transform_name; we want
6179# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6180# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6181# Also, because we want to override the logic in subdir configure scripts to
6182# choose program_transform_name, replace any s,x,x, with s,y,y,.
6183sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6184${program_transform_name}
6185EOF_SED
6186gcc_transform_name=`cat conftestsed.out`
6187rm -f conftestsed.out
6188baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6189if test "$silent" = yes; then
6190 baseargs="$baseargs --silent"
6191fi
f27d4f92 6192
a0da8069
NN
6193# For the build-side libraries, we just need to pretend we're native,
6194# and not use the same cache file. Multilibs are neither needed nor
6195# desired.
4b900473 6196build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6197
6198# For host modules, accept cache file option, or specification as blank.
6199case "${cache_file}" in
6200"") # empty
6201 cache_file_option="" ;;
6202/* | [A-Za-z]:[\\/]* ) # absolute path
6203 cache_file_option="--cache-file=${cache_file}" ;;
6204*) # relative path
6205 cache_file_option="--cache-file=../${cache_file}" ;;
6206esac
6207
82252c06
NN
6208# Host dirs don't like to share a cache file either, horribly enough.
6209# This seems to be due to autoconf 2.5x stupidity.
4b900473 6210host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6211
6212target_configargs=${baseargs}
6213
6214# Passing a --with-cross-host argument lets the target libraries know
6215# whether they are being built with a cross-compiler or being built
6216# native. However, it would be better to use other mechanisms to make the
6217# sorts of decisions they want to make on this basis. Please consider
6218# this option to be deprecated. FIXME.
6219if test x${is_cross_compiler} = xyes ; then
c6b750e1 6220 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6221fi
6222
6223# Default to --enable-multilib.
6224if test x${enable_multilib} = x ; then
6225 target_configargs="--enable-multilib ${target_configargs}"
6226fi
6227
6228# Pass --with-newlib if appropriate. Note that target_configdirs has
6229# changed from the earlier setting of with_newlib.
6230if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6231 target_configargs="--with-newlib ${target_configargs}"
6232fi
6233
95036d20
NN
6234# Different target subdirs use different values of certain variables
6235# (notably CXX). Worse, multilibs use *lots* of different values.
6236# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6237# it doesn't automatically accept command-line overrides of them.
6238# This means it's not safe for target subdirs to share a cache file,
6239# which is disgusting, but there you have it. Hopefully this can be
6240# fixed in future. It's still worthwhile to use a cache file for each
6241# directory. I think.
6242
ae380b45
MS
6243# Pass the appropriate --build, --host, --target and --cache-file arguments.
6244# We need to pass --target, as newer autoconf's requires consistency
6245# for target_alias and gcc doesn't manage it consistently.
4b900473 6246target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6247
a0da8069
NN
6248FLAGS_FOR_TARGET=
6249case " $target_configdirs " in
6250 *" newlib "*)
6251 case " $target_configargs " in
6252 *" --with-newlib "*)
6253 case "$target" in
6254 *-cygwin*)
564b43e5 6255 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
6256 esac
6257
6258 # If we're not building GCC, don't discard standard headers.
6259 if test -d ${srcdir}/gcc; then
6260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6261
6262 if test "${build}" != "${host}"; then
6263 # On Canadian crosses, CC_FOR_TARGET will have already been set
6264 # by `configure', so we won't have an opportunity to add -Bgcc/
6265 # to it. This is right: we don't want to search that directory
6266 # for binaries, but we want the header files in there, so add
6267 # them explicitly.
b00612cc 6268 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6269
6270 # Someone might think of using the pre-installed headers on
6271 # Canadian crosses, in case the installed compiler is not fully
6272 # compatible with the compiler being built. In this case, it
6273 # would be better to flag an error than risking having
6274 # incompatible object files being constructed. We can't
6275 # guarantee that an error will be flagged, but let's hope the
6276 # compiler will do it, when presented with incompatible header
6277 # files.
6278 fi
6279 fi
6280
6281 case "${target}-${is_cross_compiler}" in
ec11bdc6 6282 i[3456789]86-*-linux*-no)
a0da8069
NN
6283 # Here host == target, so we don't need to build gcc,
6284 # so we don't want to discard standard headers.
6285 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6286 ;;
6287 *)
6288 # If we're building newlib, use its generic headers last, but search
6289 # for any libc-related directories first (so make it the last -B
6290 # switch).
6291 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
6292
6293 # If we're building libgloss, find the startup file, simulator library
6294 # and linker script.
6295 case " $target_configdirs " in
6296 *" libgloss "*)
6297 # Look for startup file, simulator library and maybe linker script.
6298 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6299 # Look for libnosys.a in case the target needs it.
6300 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6301 # Most targets have the linker script in the source directory.
6302 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6303 ;;
6304 esac
a0da8069
NN
6305 ;;
6306 esac
6307 ;;
6308 esac
6309 ;;
6310esac
45055374
CV
6311case "$target" in
6312*-mingw*)
6313 # Can't be handled as Cygwin above since Mingw does not use newlib.
6314 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' ;;
6315esac
a0da8069 6316
5fbad20a
DD
6317# Allow the user to override the flags for
6318# our build compiler if desired.
c66487f8
NC
6319if test x"${build}" = x"${host}" ; then
6320 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6321 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6322 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6323fi
5fbad20a 6324
a0da8069
NN
6325# On Canadian crosses, we'll be searching the right directories for
6326# the previously-installed cross compiler, so don't bother to add
6327# flags for directories within the install tree of the compiler
6328# being built; programs in there won't even run.
6329if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6330 # Search for pre-installed headers if nothing else fits.
bba45b8b 6331 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
6332fi
6333
6334if test "x${use_gnu_ld}" = x &&
6335 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6336 # Arrange for us to find uninstalled linker scripts.
b00612cc 6337 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6338fi
6339
a481dbb7
DD
6340# Search for other target-specific linker scripts and such.
6341case "${target}" in
4e206d7e
DB
6342 mep*)
6343 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6344 ;;
6345esac
6346
a0da8069 6347# Makefile fragments.
3e707e94
PB
6348for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6349do
6350 eval fragval=\$$frag
6351 if test $fragval != /dev/null; then
6352 eval $frag=${srcdir}/$fragval
6353 fi
6354done
a0da8069
NN
6355
6356
6357
6358
6359
6360# Miscellanea: directories, flags, etc.
6361
6362
6363
6364
6365
6366
6367
3bbd2f8f 6368
6a9cf61e 6369# Build module lists & subconfigure args.
a0da8069
NN
6370
6371
6372
be01d343
PB
6373# Host module lists & subconfigure args.
6374
6375
6376
6377# Target module lists & subconfigure args.
6378
6379
6380
6381# Build tools.
6382
6383
6384
1576798e
PB
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
be01d343
PB
6399# Generate default definitions for YACC, M4, LEX and other programs that run
6400# on the build machine. These are used if the Makefile can't locate these
6401# programs in objdir.
6402MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6403
6404for ac_prog in 'bison -y' byacc yacc
6405do
c6b750e1 6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6407set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6408echo "$as_me:$LINENO: checking for $ac_word" >&5
6409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410if test "${ac_cv_prog_YACC+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6412else
6413 if test -n "$YACC"; then
6414 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6415else
c6b750e1
DJ
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_YACC="$ac_prog"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428done
6429
be01d343
PB
6430fi
6431fi
c6b750e1 6432YACC=$ac_cv_prog_YACC
be01d343 6433if test -n "$YACC"; then
c6b750e1
DJ
6434 echo "$as_me:$LINENO: result: $YACC" >&5
6435echo "${ECHO_T}$YACC" >&6
be01d343 6436else
c6b750e1
DJ
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
be01d343
PB
6439fi
6440
c6b750e1 6441 test -n "$YACC" && break
be01d343
PB
6442done
6443test -n "$YACC" || YACC="$MISSING bison -y"
6444
6445case " $build_configdirs " in
6446 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6447 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6448esac
6449
6450for ac_prog in bison
6451do
c6b750e1 6452 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6453set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6454echo "$as_me:$LINENO: checking for $ac_word" >&5
6455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6456if test "${ac_cv_prog_BISON+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6458else
6459 if test -n "$BISON"; then
6460 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6461else
c6b750e1
DJ
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_BISON="$ac_prog"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473done
6474done
6475
be01d343
PB
6476fi
6477fi
c6b750e1 6478BISON=$ac_cv_prog_BISON
be01d343 6479if test -n "$BISON"; then
c6b750e1
DJ
6480 echo "$as_me:$LINENO: result: $BISON" >&5
6481echo "${ECHO_T}$BISON" >&6
be01d343 6482else
c6b750e1
DJ
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
be01d343
PB
6485fi
6486
c6b750e1 6487 test -n "$BISON" && break
be01d343
PB
6488done
6489test -n "$BISON" || BISON="$MISSING bison"
6490
6491case " $build_configdirs " in
6492 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6493esac
6494
6495for ac_prog in gm4 gnum4 m4
6496do
c6b750e1 6497 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6498set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6499echo "$as_me:$LINENO: checking for $ac_word" >&5
6500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501if test "${ac_cv_prog_M4+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6503else
6504 if test -n "$M4"; then
6505 ac_cv_prog_M4="$M4" # Let the user override the test.
6506else
c6b750e1
DJ
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_M4="$ac_prog"
6515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518done
6519done
6520
be01d343
PB
6521fi
6522fi
c6b750e1 6523M4=$ac_cv_prog_M4
be01d343 6524if test -n "$M4"; then
c6b750e1
DJ
6525 echo "$as_me:$LINENO: result: $M4" >&5
6526echo "${ECHO_T}$M4" >&6
be01d343 6527else
c6b750e1
DJ
6528 echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6
be01d343
PB
6530fi
6531
c6b750e1 6532 test -n "$M4" && break
be01d343
PB
6533done
6534test -n "$M4" || M4="$MISSING m4"
6535
6536case " $build_configdirs " in
6537 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6538esac
6539
6540for ac_prog in flex lex
6541do
c6b750e1 6542 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6543set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6544echo "$as_me:$LINENO: checking for $ac_word" >&5
6545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6546if test "${ac_cv_prog_LEX+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6548else
6549 if test -n "$LEX"; then
6550 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6551else
c6b750e1
DJ
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_LEX="$ac_prog"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565
be01d343
PB
6566fi
6567fi
c6b750e1 6568LEX=$ac_cv_prog_LEX
be01d343 6569if test -n "$LEX"; then
c6b750e1
DJ
6570 echo "$as_me:$LINENO: result: $LEX" >&5
6571echo "${ECHO_T}$LEX" >&6
be01d343 6572else
c6b750e1
DJ
6573 echo "$as_me:$LINENO: result: no" >&5
6574echo "${ECHO_T}no" >&6
be01d343
PB
6575fi
6576
c6b750e1 6577 test -n "$LEX" && break
be01d343
PB
6578done
6579test -n "$LEX" || LEX="$MISSING flex"
6580
6581case " $build_configdirs " in
6582 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6583 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6584esac
6585
6586for ac_prog in flex
6587do
c6b750e1 6588 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6589set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6590echo "$as_me:$LINENO: checking for $ac_word" >&5
6591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6592if test "${ac_cv_prog_FLEX+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6594else
6595 if test -n "$FLEX"; then
6596 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6597else
c6b750e1
DJ
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_FLEX="$ac_prog"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609done
6610done
6611
be01d343
PB
6612fi
6613fi
c6b750e1 6614FLEX=$ac_cv_prog_FLEX
be01d343 6615if test -n "$FLEX"; then
c6b750e1
DJ
6616 echo "$as_me:$LINENO: result: $FLEX" >&5
6617echo "${ECHO_T}$FLEX" >&6
be01d343 6618else
c6b750e1
DJ
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
be01d343
PB
6621fi
6622
c6b750e1 6623 test -n "$FLEX" && break
be01d343
PB
6624done
6625test -n "$FLEX" || FLEX="$MISSING flex"
6626
6627case " $build_configdirs " in
6628 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6629esac
6630
6631for ac_prog in makeinfo
6632do
c6b750e1 6633 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6634set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6635echo "$as_me:$LINENO: checking for $ac_word" >&5
6636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6639else
6640 if test -n "$MAKEINFO"; then
6641 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6642else
c6b750e1
DJ
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_MAKEINFO="$ac_prog"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654done
6655done
6656
be01d343
PB
6657fi
6658fi
c6b750e1 6659MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6660if test -n "$MAKEINFO"; then
c6b750e1
DJ
6661 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6662echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6663else
c6b750e1
DJ
6664 echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6
be01d343
PB
6666fi
6667
c6b750e1 6668 test -n "$MAKEINFO" && break
be01d343
PB
6669done
6670test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6671
6672case " $build_configdirs " in
6673 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6674 *)
6675
10ad8ef3 6676 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
6677 # higher, else we use the "missing" dummy.
6678 if ${MAKEINFO} --version \
10ad8ef3 6679 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6680 :
6681 else
6682 MAKEINFO="$MISSING makeinfo"
6683 fi
6684 ;;
6685
6686esac
a0da8069 6687
be01d343 6688# FIXME: expect and dejagnu may become build tools?
a0da8069 6689
be01d343
PB
6690for ac_prog in expect
6691do
c6b750e1 6692 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6693set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6694echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6696if test "${ac_cv_prog_EXPECT+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6698else
6699 if test -n "$EXPECT"; then
6700 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6701else
c6b750e1
DJ
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_EXPECT="$ac_prog"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714done
6715
be01d343
PB
6716fi
6717fi
c6b750e1 6718EXPECT=$ac_cv_prog_EXPECT
be01d343 6719if test -n "$EXPECT"; then
c6b750e1
DJ
6720 echo "$as_me:$LINENO: result: $EXPECT" >&5
6721echo "${ECHO_T}$EXPECT" >&6
be01d343 6722else
c6b750e1
DJ
6723 echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6
be01d343 6725fi
a0da8069 6726
c6b750e1 6727 test -n "$EXPECT" && break
be01d343
PB
6728done
6729test -n "$EXPECT" || EXPECT="expect"
a0da8069 6730
be01d343
PB
6731case " $configdirs " in
6732 *" expect "*)
6733 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6734 ;;
6735esac
a0da8069 6736
be01d343
PB
6737for ac_prog in runtest
6738do
c6b750e1 6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6740set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6741echo "$as_me:$LINENO: checking for $ac_word" >&5
6742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6743if test "${ac_cv_prog_RUNTEST+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6745else
6746 if test -n "$RUNTEST"; then
6747 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6748else
c6b750e1
DJ
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_RUNTEST="$ac_prog"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761done
6762
be01d343
PB
6763fi
6764fi
c6b750e1 6765RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6766if test -n "$RUNTEST"; then
c6b750e1
DJ
6767 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6768echo "${ECHO_T}$RUNTEST" >&6
be01d343 6769else
c6b750e1
DJ
6770 echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6
be01d343 6772fi
a0da8069 6773
c6b750e1 6774 test -n "$RUNTEST" && break
be01d343
PB
6775done
6776test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6777
be01d343
PB
6778case " $configdirs " in
6779 *" dejagnu "*)
6b89cc21 6780 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6781 ;;
6782esac
a0da8069
NN
6783
6784
a0da8069 6785# Host tools.
859789af
AC
6786ncn_tool_prefix=
6787test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6788ncn_target_tool_prefix=
6789test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6790
9a819804
AO
6791
6792
6793if test -n "$AR"; then
6794 ac_cv_prog_AR=$AR
6795elif test -n "$ac_cv_prog_AR"; then
6796 AR=$ac_cv_prog_AR
6797fi
6798
6799if test -n "$ac_cv_prog_AR"; then
6800 for ncn_progname in ar; do
6801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6802set dummy ${ncn_progname}; ac_word=$2
6803echo "$as_me:$LINENO: checking for $ac_word" >&5
6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6805if test "${ac_cv_prog_AR+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808 if test -n "$AR"; then
6809 ac_cv_prog_AR="$AR" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_AR="${ncn_progname}"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822done
6823done
6824
6825fi
6826fi
6827AR=$ac_cv_prog_AR
6828if test -n "$AR"; then
6829 echo "$as_me:$LINENO: result: $AR" >&5
6830echo "${ECHO_T}$AR" >&6
6831else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834fi
6835
6836 done
6837fi
6838
6839for ncn_progname in ar; do
05cbd757
PB
6840 if test -n "$ncn_tool_prefix"; then
6841 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6842set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6843echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6845if test "${ac_cv_prog_AR+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6847else
6848 if test -n "$AR"; then
6849 ac_cv_prog_AR="$AR" # Let the user override the test.
6850else
c6b750e1
DJ
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864
859789af
AC
6865fi
6866fi
c6b750e1 6867AR=$ac_cv_prog_AR
859789af 6868if test -n "$AR"; then
c6b750e1
DJ
6869 echo "$as_me:$LINENO: result: $AR" >&5
6870echo "${ECHO_T}$AR" >&6
859789af 6871else
c6b750e1
DJ
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
859789af
AC
6874fi
6875
05cbd757
PB
6876 fi
6877 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6879set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6880echo "$as_me:$LINENO: checking for $ac_word" >&5
6881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6882if test "${ac_cv_prog_AR+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6884else
05cbd757
PB
6885 if test -n "$AR"; then
6886 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6887else
c6b750e1
DJ
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_AR="${ncn_progname}"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
6901
859789af
AC
6902fi
6903fi
c6b750e1 6904AR=$ac_cv_prog_AR
05cbd757 6905if test -n "$AR"; then
c6b750e1
DJ
6906 echo "$as_me:$LINENO: result: $AR" >&5
6907echo "${ECHO_T}$AR" >&6
859789af 6908else
c6b750e1
DJ
6909 echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6
859789af 6911fi
c6b750e1 6912
05cbd757
PB
6913 fi
6914 test -n "$ac_cv_prog_AR" && break
6915done
6916
6917if test -z "$ac_cv_prog_AR" ; then
6918 set dummy ar
6919 if test $build = $host ; then
6920 AR="$2"
859789af 6921 else
05cbd757 6922 AR="${ncn_tool_prefix}$2"
859789af 6923 fi
859789af
AC
6924fi
6925
9a819804
AO
6926
6927
6928if test -n "$AS"; then
6929 ac_cv_prog_AS=$AS
6930elif test -n "$ac_cv_prog_AS"; then
6931 AS=$ac_cv_prog_AS
6932fi
6933
6934if test -n "$ac_cv_prog_AS"; then
6935 for ncn_progname in as; do
6936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6937set dummy ${ncn_progname}; ac_word=$2
6938echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6940if test "${ac_cv_prog_AS+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 if test -n "$AS"; then
6944 ac_cv_prog_AS="$AS" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_AS="${ncn_progname}"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958done
6959
6960fi
6961fi
6962AS=$ac_cv_prog_AS
6963if test -n "$AS"; then
6964 echo "$as_me:$LINENO: result: $AS" >&5
6965echo "${ECHO_T}$AS" >&6
6966else
6967 echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6
6969fi
6970
6971 done
6972fi
6973
6974for ncn_progname in as; do
05cbd757
PB
6975 if test -n "$ncn_tool_prefix"; then
6976 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6977set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6978echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6980if test "${ac_cv_prog_AS+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6982else
6983 if test -n "$AS"; then
6984 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997done
6998done
6999
859789af
AC
7000fi
7001fi
c6b750e1 7002AS=$ac_cv_prog_AS
859789af 7003if test -n "$AS"; then
c6b750e1
DJ
7004 echo "$as_me:$LINENO: result: $AS" >&5
7005echo "${ECHO_T}$AS" >&6
859789af 7006else
c6b750e1
DJ
7007 echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6
859789af
AC
7009fi
7010
05cbd757
PB
7011 fi
7012 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7014set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7015echo "$as_me:$LINENO: checking for $ac_word" >&5
7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7017if test "${ac_cv_prog_AS+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7019else
05cbd757
PB
7020 if test -n "$AS"; then
7021 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7022else
c6b750e1
DJ
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_AS="${ncn_progname}"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035done
7036
859789af
AC
7037fi
7038fi
c6b750e1 7039AS=$ac_cv_prog_AS
05cbd757 7040if test -n "$AS"; then
c6b750e1
DJ
7041 echo "$as_me:$LINENO: result: $AS" >&5
7042echo "${ECHO_T}$AS" >&6
859789af 7043else
c6b750e1
DJ
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
859789af 7046fi
c6b750e1 7047
05cbd757
PB
7048 fi
7049 test -n "$ac_cv_prog_AS" && break
7050done
7051
7052if test -z "$ac_cv_prog_AS" ; then
7053 set dummy as
7054 if test $build = $host ; then
7055 AS="$2"
859789af 7056 else
05cbd757 7057 AS="${ncn_tool_prefix}$2"
859789af 7058 fi
859789af
AC
7059fi
7060
9a819804
AO
7061
7062
7063if test -n "$DLLTOOL"; then
7064 ac_cv_prog_DLLTOOL=$DLLTOOL
7065elif test -n "$ac_cv_prog_DLLTOOL"; then
7066 DLLTOOL=$ac_cv_prog_DLLTOOL
7067fi
7068
7069if test -n "$ac_cv_prog_DLLTOOL"; then
7070 for ncn_progname in dlltool; do
7071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7072set dummy ${ncn_progname}; ac_word=$2
7073echo "$as_me:$LINENO: checking for $ac_word" >&5
7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7075if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078 if test -n "$DLLTOOL"; then
7079 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7080else
7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_DLLTOOL="${ncn_progname}"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094
7095fi
7096fi
7097DLLTOOL=$ac_cv_prog_DLLTOOL
7098if test -n "$DLLTOOL"; then
7099 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7100echo "${ECHO_T}$DLLTOOL" >&6
7101else
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104fi
7105
7106 done
7107fi
7108
7109for ncn_progname in dlltool; do
05cbd757
PB
7110 if test -n "$ncn_tool_prefix"; then
7111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7112set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7113echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7115if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7117else
7118 if test -n "$DLLTOOL"; then
7119 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7120else
c6b750e1
DJ
7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132done
7133done
7134
859789af
AC
7135fi
7136fi
c6b750e1 7137DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7138if test -n "$DLLTOOL"; then
c6b750e1
DJ
7139 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7140echo "${ECHO_T}$DLLTOOL" >&6
859789af 7141else
c6b750e1
DJ
7142 echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6
859789af
AC
7144fi
7145
05cbd757
PB
7146 fi
7147 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7149set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7150echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7152if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7154else
05cbd757
PB
7155 if test -n "$DLLTOOL"; then
7156 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7157else
c6b750e1
DJ
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_DLLTOOL="${ncn_progname}"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171
859789af
AC
7172fi
7173fi
c6b750e1 7174DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7175if test -n "$DLLTOOL"; then
c6b750e1
DJ
7176 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7177echo "${ECHO_T}$DLLTOOL" >&6
859789af 7178else
c6b750e1
DJ
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
859789af 7181fi
c6b750e1 7182
05cbd757
PB
7183 fi
7184 test -n "$ac_cv_prog_DLLTOOL" && break
7185done
7186
7187if test -z "$ac_cv_prog_DLLTOOL" ; then
7188 set dummy dlltool
7189 if test $build = $host ; then
7190 DLLTOOL="$2"
859789af 7191 else
05cbd757 7192 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7193 fi
859789af
AC
7194fi
7195
9a819804
AO
7196
7197
7198if test -n "$LD"; then
7199 ac_cv_prog_LD=$LD
7200elif test -n "$ac_cv_prog_LD"; then
7201 LD=$ac_cv_prog_LD
7202fi
7203
7204if test -n "$ac_cv_prog_LD"; then
7205 for ncn_progname in ld; do
7206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7207set dummy ${ncn_progname}; ac_word=$2
7208echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7210if test "${ac_cv_prog_LD+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 if test -n "$LD"; then
7214 ac_cv_prog_LD="$LD" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_LD="${ncn_progname}"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227done
7228done
7229
7230fi
7231fi
7232LD=$ac_cv_prog_LD
7233if test -n "$LD"; then
7234 echo "$as_me:$LINENO: result: $LD" >&5
7235echo "${ECHO_T}$LD" >&6
7236else
7237 echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6
7239fi
7240
7241 done
7242fi
7243
7244for ncn_progname in ld; do
05cbd757
PB
7245 if test -n "$ncn_tool_prefix"; then
7246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7248echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250if test "${ac_cv_prog_LD+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7252else
7253 if test -n "$LD"; then
7254 ac_cv_prog_LD="$LD" # Let the user override the test.
7255else
c6b750e1
DJ
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267done
7268done
7269
859789af
AC
7270fi
7271fi
c6b750e1 7272LD=$ac_cv_prog_LD
859789af 7273if test -n "$LD"; then
c6b750e1
DJ
7274 echo "$as_me:$LINENO: result: $LD" >&5
7275echo "${ECHO_T}$LD" >&6
859789af 7276else
c6b750e1
DJ
7277 echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6
859789af
AC
7279fi
7280
05cbd757
PB
7281 fi
7282 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7284set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7285echo "$as_me:$LINENO: checking for $ac_word" >&5
7286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7287if test "${ac_cv_prog_LD+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7289else
05cbd757
PB
7290 if test -n "$LD"; then
7291 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7292else
c6b750e1
DJ
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_LD="${ncn_progname}"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305done
7306
859789af
AC
7307fi
7308fi
c6b750e1 7309LD=$ac_cv_prog_LD
05cbd757 7310if test -n "$LD"; then
c6b750e1
DJ
7311 echo "$as_me:$LINENO: result: $LD" >&5
7312echo "${ECHO_T}$LD" >&6
859789af 7313else
c6b750e1
DJ
7314 echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
859789af 7316fi
c6b750e1 7317
05cbd757
PB
7318 fi
7319 test -n "$ac_cv_prog_LD" && break
7320done
7321
7322if test -z "$ac_cv_prog_LD" ; then
7323 set dummy ld
7324 if test $build = $host ; then
7325 LD="$2"
859789af 7326 else
05cbd757 7327 LD="${ncn_tool_prefix}$2"
859789af 7328 fi
859789af
AC
7329fi
7330
9a819804
AO
7331
7332
7333if test -n "$LIPO"; then
7334 ac_cv_prog_LIPO=$LIPO
7335elif test -n "$ac_cv_prog_LIPO"; then
7336 LIPO=$ac_cv_prog_LIPO
7337fi
7338
7339if test -n "$ac_cv_prog_LIPO"; then
7340 for ncn_progname in lipo; do
7341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7342set dummy ${ncn_progname}; ac_word=$2
7343echo "$as_me:$LINENO: checking for $ac_word" >&5
7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345if test "${ac_cv_prog_LIPO+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348 if test -n "$LIPO"; then
7349 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_LIPO="${ncn_progname}"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363done
7364
7365fi
7366fi
7367LIPO=$ac_cv_prog_LIPO
7368if test -n "$LIPO"; then
7369 echo "$as_me:$LINENO: result: $LIPO" >&5
7370echo "${ECHO_T}$LIPO" >&6
7371else
7372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374fi
7375
7376 done
7377fi
7378
7379for ncn_progname in lipo; do
be01d343
PB
7380 if test -n "$ncn_tool_prefix"; then
7381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7382set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7383echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7385if test "${ac_cv_prog_LIPO+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7387else
7388 if test -n "$LIPO"; then
7389 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7390else
c6b750e1
DJ
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403done
7404
be01d343
PB
7405fi
7406fi
c6b750e1 7407LIPO=$ac_cv_prog_LIPO
be01d343 7408if test -n "$LIPO"; then
c6b750e1
DJ
7409 echo "$as_me:$LINENO: result: $LIPO" >&5
7410echo "${ECHO_T}$LIPO" >&6
be01d343 7411else
c6b750e1
DJ
7412 echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6
be01d343
PB
7414fi
7415
7416 fi
7417 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7419set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7420echo "$as_me:$LINENO: checking for $ac_word" >&5
7421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422if test "${ac_cv_prog_LIPO+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7424else
7425 if test -n "$LIPO"; then
7426 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7427else
c6b750e1
DJ
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_LIPO="${ncn_progname}"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439done
7440done
7441
be01d343
PB
7442fi
7443fi
c6b750e1 7444LIPO=$ac_cv_prog_LIPO
be01d343 7445if test -n "$LIPO"; then
c6b750e1
DJ
7446 echo "$as_me:$LINENO: result: $LIPO" >&5
7447echo "${ECHO_T}$LIPO" >&6
be01d343 7448else
c6b750e1
DJ
7449 echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
be01d343 7451fi
c6b750e1 7452
be01d343
PB
7453 fi
7454 test -n "$ac_cv_prog_LIPO" && break
7455done
7456
7457if test -z "$ac_cv_prog_LIPO" ; then
7458 set dummy lipo
7459 if test $build = $host ; then
7460 LIPO="$2"
7461 else
7462 LIPO="${ncn_tool_prefix}$2"
7463 fi
7464fi
7465
9a819804
AO
7466
7467
7468if test -n "$NM"; then
7469 ac_cv_prog_NM=$NM
7470elif test -n "$ac_cv_prog_NM"; then
7471 NM=$ac_cv_prog_NM
7472fi
7473
7474if test -n "$ac_cv_prog_NM"; then
7475 for ncn_progname in nm; do
7476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7477set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7478echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480if test "${ac_cv_prog_NM+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7482else
7483 if test -n "$NM"; then
7484 ac_cv_prog_NM="$NM" # Let the user override the test.
7485else
c6b750e1
DJ
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7493 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497done
7498done
7499
859789af
AC
7500fi
7501fi
c6b750e1 7502NM=$ac_cv_prog_NM
859789af 7503if test -n "$NM"; then
c6b750e1
DJ
7504 echo "$as_me:$LINENO: result: $NM" >&5
7505echo "${ECHO_T}$NM" >&6
859789af 7506else
c6b750e1
DJ
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
859789af
AC
7509fi
7510
9a819804
AO
7511 done
7512fi
7513
7514for ncn_progname in nm; do
7515 if test -n "$ncn_tool_prefix"; then
7516 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7517set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7518echo "$as_me:$LINENO: checking for $ac_word" >&5
7519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7520if test "${ac_cv_prog_NM+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7522else
05cbd757
PB
7523 if test -n "$NM"; then
7524 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7525else
c6b750e1
DJ
7526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7533 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537done
7538done
7539
859789af
AC
7540fi
7541fi
c6b750e1 7542NM=$ac_cv_prog_NM
05cbd757 7543if test -n "$NM"; then
c6b750e1
DJ
7544 echo "$as_me:$LINENO: result: $NM" >&5
7545echo "${ECHO_T}$NM" >&6
859789af 7546else
c6b750e1
DJ
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
859789af 7549fi
c6b750e1 7550
05cbd757 7551 fi
9a819804
AO
7552 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7554set dummy ${ncn_progname}; ac_word=$2
7555echo "$as_me:$LINENO: checking for $ac_word" >&5
7556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557if test "${ac_cv_prog_NM+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 if test -n "$NM"; then
7561 ac_cv_prog_NM="$NM" # Let the user override the test.
7562else
7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_NM="${ncn_progname}"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574done
7575done
7576
7577fi
7578fi
7579NM=$ac_cv_prog_NM
7580if test -n "$NM"; then
7581 echo "$as_me:$LINENO: result: $NM" >&5
7582echo "${ECHO_T}$NM" >&6
7583else
7584 echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6
7586fi
7587
7588 fi
7589 test -n "$ac_cv_prog_NM" && break
7590done
7591
7592if test -z "$ac_cv_prog_NM" ; then
7593 set dummy nm
7594 if test $build = $host ; then
7595 NM="$2"
7596 else
7597 NM="${ncn_tool_prefix}$2"
7598 fi
7599fi
7600
7601
7602
7603if test -n "$RANLIB"; then
7604 ac_cv_prog_RANLIB=$RANLIB
7605elif test -n "$ac_cv_prog_RANLIB"; then
7606 RANLIB=$ac_cv_prog_RANLIB
7607fi
7608
7609if test -n "$ac_cv_prog_RANLIB"; then
7610 for ncn_progname in ranlib; do
7611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7612set dummy ${ncn_progname}; ac_word=$2
7613echo "$as_me:$LINENO: checking for $ac_word" >&5
7614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7615if test "${ac_cv_prog_RANLIB+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
7618 if test -n "$RANLIB"; then
7619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7620else
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_RANLIB="${ncn_progname}"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632done
7633done
7634
7635fi
7636fi
7637RANLIB=$ac_cv_prog_RANLIB
7638if test -n "$RANLIB"; then
7639 echo "$as_me:$LINENO: result: $RANLIB" >&5
7640echo "${ECHO_T}$RANLIB" >&6
7641else
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
7644fi
7645
7646 done
7647fi
859789af 7648
9a819804 7649for ncn_progname in ranlib; do
05cbd757
PB
7650 if test -n "$ncn_tool_prefix"; then
7651 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7652set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7653echo "$as_me:$LINENO: checking for $ac_word" >&5
7654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7655if test "${ac_cv_prog_RANLIB+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7657else
7658 if test -n "$RANLIB"; then
7659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7660else
c6b750e1
DJ
7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672done
7673done
7674
859789af
AC
7675fi
7676fi
c6b750e1 7677RANLIB=$ac_cv_prog_RANLIB
859789af 7678if test -n "$RANLIB"; then
c6b750e1
DJ
7679 echo "$as_me:$LINENO: result: $RANLIB" >&5
7680echo "${ECHO_T}$RANLIB" >&6
859789af 7681else
c6b750e1
DJ
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
859789af
AC
7684fi
7685
05cbd757
PB
7686 fi
7687 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7689set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7690echo "$as_me:$LINENO: checking for $ac_word" >&5
7691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692if test "${ac_cv_prog_RANLIB+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7694else
05cbd757
PB
7695 if test -n "$RANLIB"; then
7696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7697else
c6b750e1
DJ
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_RANLIB="${ncn_progname}"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709done
7710done
7711
859789af
AC
7712fi
7713fi
c6b750e1 7714RANLIB=$ac_cv_prog_RANLIB
05cbd757 7715if test -n "$RANLIB"; then
c6b750e1
DJ
7716 echo "$as_me:$LINENO: result: $RANLIB" >&5
7717echo "${ECHO_T}$RANLIB" >&6
859789af 7718else
c6b750e1
DJ
7719 echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6
859789af 7721fi
c6b750e1 7722
859789af 7723 fi
05cbd757
PB
7724 test -n "$ac_cv_prog_RANLIB" && break
7725done
7726
7727if test -z "$ac_cv_prog_RANLIB" ; then
7728 RANLIB=":"
859789af
AC
7729fi
7730
9a819804
AO
7731
7732
7733if test -n "$STRIP"; then
7734 ac_cv_prog_STRIP=$STRIP
7735elif test -n "$ac_cv_prog_STRIP"; then
7736 STRIP=$ac_cv_prog_STRIP
7737fi
7738
7739if test -n "$ac_cv_prog_STRIP"; then
7740 for ncn_progname in strip; do
7741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7742set dummy ${ncn_progname}; ac_word=$2
7743echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745if test "${ac_cv_prog_STRIP+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 if test -n "$STRIP"; then
7749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_STRIP="${ncn_progname}"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762done
7763done
7764
7765fi
7766fi
7767STRIP=$ac_cv_prog_STRIP
7768if test -n "$STRIP"; then
7769 echo "$as_me:$LINENO: result: $STRIP" >&5
7770echo "${ECHO_T}$STRIP" >&6
7771else
7772 echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6
7774fi
7775
7776 done
7777fi
7778
7779for ncn_progname in strip; do
be01d343
PB
7780 if test -n "$ncn_tool_prefix"; then
7781 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7782set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7783echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785if test "${ac_cv_prog_STRIP+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7787else
7788 if test -n "$STRIP"; then
7789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7790else
c6b750e1
DJ
7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802done
7803done
7804
be01d343
PB
7805fi
7806fi
c6b750e1 7807STRIP=$ac_cv_prog_STRIP
be01d343 7808if test -n "$STRIP"; then
c6b750e1
DJ
7809 echo "$as_me:$LINENO: result: $STRIP" >&5
7810echo "${ECHO_T}$STRIP" >&6
be01d343 7811else
c6b750e1
DJ
7812 echo "$as_me:$LINENO: result: no" >&5
7813echo "${ECHO_T}no" >&6
be01d343
PB
7814fi
7815
7816 fi
7817 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7819set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7820echo "$as_me:$LINENO: checking for $ac_word" >&5
7821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7822if test "${ac_cv_prog_STRIP+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7824else
7825 if test -n "$STRIP"; then
7826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7827else
c6b750e1
DJ
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_STRIP="${ncn_progname}"
7836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839done
7840done
7841
be01d343
PB
7842fi
7843fi
c6b750e1 7844STRIP=$ac_cv_prog_STRIP
be01d343 7845if test -n "$STRIP"; then
c6b750e1
DJ
7846 echo "$as_me:$LINENO: result: $STRIP" >&5
7847echo "${ECHO_T}$STRIP" >&6
be01d343 7848else
c6b750e1
DJ
7849 echo "$as_me:$LINENO: result: no" >&5
7850echo "${ECHO_T}no" >&6
be01d343 7851fi
c6b750e1 7852
be01d343
PB
7853 fi
7854 test -n "$ac_cv_prog_STRIP" && break
7855done
7856
7857if test -z "$ac_cv_prog_STRIP" ; then
7858 STRIP=":"
7859fi
7860
9a819804
AO
7861
7862
7863if test -n "$WINDRES"; then
7864 ac_cv_prog_WINDRES=$WINDRES
7865elif test -n "$ac_cv_prog_WINDRES"; then
7866 WINDRES=$ac_cv_prog_WINDRES
7867fi
7868
7869if test -n "$ac_cv_prog_WINDRES"; then
7870 for ncn_progname in windres; do
7871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7872set dummy ${ncn_progname}; ac_word=$2
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_prog_WINDRES+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878 if test -n "$WINDRES"; then
7879 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_WINDRES="${ncn_progname}"
7889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892done
7893done
7894
7895fi
7896fi
7897WINDRES=$ac_cv_prog_WINDRES
7898if test -n "$WINDRES"; then
7899 echo "$as_me:$LINENO: result: $WINDRES" >&5
7900echo "${ECHO_T}$WINDRES" >&6
7901else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906 done
7907fi
7908
7909for ncn_progname in windres; do
05cbd757
PB
7910 if test -n "$ncn_tool_prefix"; then
7911 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7912set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7913echo "$as_me:$LINENO: checking for $ac_word" >&5
7914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915if test "${ac_cv_prog_WINDRES+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7917else
7918 if test -n "$WINDRES"; then
7919 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7920else
c6b750e1
DJ
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932done
7933done
7934
859789af
AC
7935fi
7936fi
c6b750e1 7937WINDRES=$ac_cv_prog_WINDRES
859789af 7938if test -n "$WINDRES"; then
c6b750e1
DJ
7939 echo "$as_me:$LINENO: result: $WINDRES" >&5
7940echo "${ECHO_T}$WINDRES" >&6
859789af 7941else
c6b750e1
DJ
7942 echo "$as_me:$LINENO: result: no" >&5
7943echo "${ECHO_T}no" >&6
859789af
AC
7944fi
7945
05cbd757
PB
7946 fi
7947 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7949set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_prog_WINDRES+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7954else
05cbd757
PB
7955 if test -n "$WINDRES"; then
7956 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7957else
c6b750e1
DJ
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_WINDRES="${ncn_progname}"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970done
7971
859789af
AC
7972fi
7973fi
c6b750e1 7974WINDRES=$ac_cv_prog_WINDRES
05cbd757 7975if test -n "$WINDRES"; then
c6b750e1
DJ
7976 echo "$as_me:$LINENO: result: $WINDRES" >&5
7977echo "${ECHO_T}$WINDRES" >&6
859789af 7978else
c6b750e1
DJ
7979 echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
859789af 7981fi
c6b750e1 7982
05cbd757
PB
7983 fi
7984 test -n "$ac_cv_prog_WINDRES" && break
7985done
7986
7987if test -z "$ac_cv_prog_WINDRES" ; then
7988 set dummy windres
7989 if test $build = $host ; then
7990 WINDRES="$2"
859789af 7991 else
05cbd757 7992 WINDRES="${ncn_tool_prefix}$2"
859789af 7993 fi
859789af
AC
7994fi
7995
9a819804
AO
7996
7997
0c24b341
NC
7998if test -n "$WINDMC"; then
7999 ac_cv_prog_WINDMC=$WINDMC
8000elif test -n "$ac_cv_prog_WINDMC"; then
8001 WINDMC=$ac_cv_prog_WINDMC
8002fi
8003
8004if test -n "$ac_cv_prog_WINDMC"; then
8005 for ncn_progname in windmc; do
8006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8007set dummy ${ncn_progname}; ac_word=$2
8008echo "$as_me:$LINENO: checking for $ac_word" >&5
8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010if test "${ac_cv_prog_WINDMC+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 if test -n "$WINDMC"; then
8014 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_WINDMC="${ncn_progname}"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028done
8029
8030fi
8031fi
8032WINDMC=$ac_cv_prog_WINDMC
8033if test -n "$WINDMC"; then
8034 echo "$as_me:$LINENO: result: $WINDMC" >&5
8035echo "${ECHO_T}$WINDMC" >&6
8036else
8037 echo "$as_me:$LINENO: result: no" >&5
8038echo "${ECHO_T}no" >&6
8039fi
8040
8041 done
8042fi
8043
8044for ncn_progname in windmc; do
8045 if test -n "$ncn_tool_prefix"; then
8046 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8047set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8048echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8050if test "${ac_cv_prog_WINDMC+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 if test -n "$WINDMC"; then
8054 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067done
8068done
8069
8070fi
8071fi
8072WINDMC=$ac_cv_prog_WINDMC
8073if test -n "$WINDMC"; then
8074 echo "$as_me:$LINENO: result: $WINDMC" >&5
8075echo "${ECHO_T}$WINDMC" >&6
8076else
8077 echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
8079fi
8080
8081 fi
8082 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8084set dummy ${ncn_progname}; ac_word=$2
8085echo "$as_me:$LINENO: checking for $ac_word" >&5
8086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8087if test "${ac_cv_prog_WINDMC+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 if test -n "$WINDMC"; then
8091 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_WINDMC="${ncn_progname}"
8101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104done
8105done
8106
8107fi
8108fi
8109WINDMC=$ac_cv_prog_WINDMC
8110if test -n "$WINDMC"; then
8111 echo "$as_me:$LINENO: result: $WINDMC" >&5
8112echo "${ECHO_T}$WINDMC" >&6
8113else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116fi
8117
8118 fi
8119 test -n "$ac_cv_prog_WINDMC" && break
8120done
8121
8122if test -z "$ac_cv_prog_WINDMC" ; then
8123 set dummy windmc
8124 if test $build = $host ; then
8125 WINDMC="$2"
8126 else
8127 WINDMC="${ncn_tool_prefix}$2"
8128 fi
8129fi
8130
8131
8132
9a819804
AO
8133if test -n "$OBJCOPY"; then
8134 ac_cv_prog_OBJCOPY=$OBJCOPY
8135elif test -n "$ac_cv_prog_OBJCOPY"; then
8136 OBJCOPY=$ac_cv_prog_OBJCOPY
8137fi
8138
8139if test -n "$ac_cv_prog_OBJCOPY"; then
8140 for ncn_progname in objcopy; do
8141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8142set dummy ${ncn_progname}; ac_word=$2
8143echo "$as_me:$LINENO: checking for $ac_word" >&5
8144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8145if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147else
8148 if test -n "$OBJCOPY"; then
8149 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8150else
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_OBJCOPY="${ncn_progname}"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162done
8163done
8164
8165fi
8166fi
8167OBJCOPY=$ac_cv_prog_OBJCOPY
8168if test -n "$OBJCOPY"; then
8169 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8170echo "${ECHO_T}$OBJCOPY" >&6
8171else
8172 echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6
8174fi
8175
8176 done
8177fi
8178
8179for ncn_progname in objcopy; do
05cbd757
PB
8180 if test -n "$ncn_tool_prefix"; then
8181 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8182set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8183echo "$as_me:$LINENO: checking for $ac_word" >&5
8184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8187else
8188 if test -n "$OBJCOPY"; then
8189 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8190else
c6b750e1
DJ
8191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202done
8203done
8204
859789af
AC
8205fi
8206fi
c6b750e1 8207OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8208if test -n "$OBJCOPY"; then
c6b750e1
DJ
8209 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8210echo "${ECHO_T}$OBJCOPY" >&6
859789af 8211else
c6b750e1
DJ
8212 echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6
859789af
AC
8214fi
8215
05cbd757
PB
8216 fi
8217 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8219set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8220echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8222if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8224else
05cbd757
PB
8225 if test -n "$OBJCOPY"; then
8226 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8227else
c6b750e1
DJ
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_OBJCOPY="${ncn_progname}"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239done
8240done
8241
859789af
AC
8242fi
8243fi
c6b750e1 8244OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8245if test -n "$OBJCOPY"; then
c6b750e1
DJ
8246 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8247echo "${ECHO_T}$OBJCOPY" >&6
859789af 8248else
c6b750e1
DJ
8249 echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6
859789af 8251fi
c6b750e1 8252
05cbd757
PB
8253 fi
8254 test -n "$ac_cv_prog_OBJCOPY" && break
8255done
8256
8257if test -z "$ac_cv_prog_OBJCOPY" ; then
8258 set dummy objcopy
8259 if test $build = $host ; then
8260 OBJCOPY="$2"
859789af 8261 else
05cbd757 8262 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8263 fi
859789af
AC
8264fi
8265
9a819804
AO
8266
8267
8268if test -n "$OBJDUMP"; then
8269 ac_cv_prog_OBJDUMP=$OBJDUMP
8270elif test -n "$ac_cv_prog_OBJDUMP"; then
8271 OBJDUMP=$ac_cv_prog_OBJDUMP
8272fi
8273
8274if test -n "$ac_cv_prog_OBJDUMP"; then
8275 for ncn_progname in objdump; do
8276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8277set dummy ${ncn_progname}; ac_word=$2
8278echo "$as_me:$LINENO: checking for $ac_word" >&5
8279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 if test -n "$OBJDUMP"; then
8284 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_OBJDUMP="${ncn_progname}"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297done
8298done
8299
8300fi
8301fi
8302OBJDUMP=$ac_cv_prog_OBJDUMP
8303if test -n "$OBJDUMP"; then
8304 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8305echo "${ECHO_T}$OBJDUMP" >&6
8306else
8307 echo "$as_me:$LINENO: result: no" >&5
8308echo "${ECHO_T}no" >&6
8309fi
8310
8311 done
8312fi
8313
8314for ncn_progname in objdump; do
05cbd757
PB
8315 if test -n "$ncn_tool_prefix"; then
8316 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8317set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8318echo "$as_me:$LINENO: checking for $ac_word" >&5
8319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8320if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8322else
8323 if test -n "$OBJDUMP"; then
8324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8325else
c6b750e1
DJ
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338done
8339
859789af
AC
8340fi
8341fi
c6b750e1 8342OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8343if test -n "$OBJDUMP"; then
c6b750e1
DJ
8344 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8345echo "${ECHO_T}$OBJDUMP" >&6
859789af 8346else
c6b750e1
DJ
8347 echo "$as_me:$LINENO: result: no" >&5
8348echo "${ECHO_T}no" >&6
859789af
AC
8349fi
8350
05cbd757
PB
8351 fi
8352 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8355echo "$as_me:$LINENO: checking for $ac_word" >&5
8356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8357if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8359else
05cbd757
PB
8360 if test -n "$OBJDUMP"; then
8361 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8362else
c6b750e1
DJ
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_OBJDUMP="${ncn_progname}"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374done
8375done
8376
859789af
AC
8377fi
8378fi
c6b750e1 8379OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8380if test -n "$OBJDUMP"; then
c6b750e1
DJ
8381 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8382echo "${ECHO_T}$OBJDUMP" >&6
859789af 8383else
c6b750e1
DJ
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
859789af 8386fi
c6b750e1 8387
05cbd757
PB
8388 fi
8389 test -n "$ac_cv_prog_OBJDUMP" && break
8390done
8391
8392if test -z "$ac_cv_prog_OBJDUMP" ; then
8393 set dummy objdump
8394 if test $build = $host ; then
8395 OBJDUMP="$2"
859789af 8396 else
05cbd757 8397 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8398 fi
859789af
AC
8399fi
8400
a0da8069
NN
8401
8402
8403
8404
8405
be01d343 8406# Target tools.
c6b750e1 8407
2429c060
PB
8408# Check whether --with-build-time-tools or --without-build-time-tools was given.
8409if test "${with_build_time_tools+set}" = set; then
8410 withval="$with_build_time_tools"
8411 case x"$withval" in
8412 x/*) ;;
8413 *)
8414 with_build_time_tools=
c6b750e1
DJ
8415 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8416echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8417 ;;
8418 esac
859789af 8419else
2429c060 8420 with_build_time_tools=
c6b750e1 8421fi;
859789af 8422
9a819804
AO
8423
8424
8425if test -n "$CC_FOR_TARGET"; then
8426 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8427elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8428 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8429fi
8430
8431if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8432 for ncn_progname in cc gcc; do
8433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8434set dummy ${ncn_progname}; ac_word=$2
8435echo "$as_me:$LINENO: checking for $ac_word" >&5
8436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8437if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439else
8440 if test -n "$CC_FOR_TARGET"; then
8441 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8442else
8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8453 fi
8454done
8455done
8456
8457fi
8458fi
8459CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8460if test -n "$CC_FOR_TARGET"; then
8461 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8462echo "${ECHO_T}$CC_FOR_TARGET" >&6
8463else
8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
8466fi
8467
8468 done
8469fi
8470
8471if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8472 for ncn_progname in cc gcc; do
c6b750e1
DJ
8473 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8474echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8475 if test -x $with_build_time_tools/${ncn_progname}; then
8476 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
cac3d6c4 8479 break
2429c060 8480 else
c6b750e1
DJ
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
cac3d6c4
CM
8483 fi
8484 done
55db4b87
PB
8485fi
8486
2429c060
PB
8487if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8488 for ncn_progname in cc gcc; do
8489 if test -n "$ncn_target_tool_prefix"; then
8490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8491set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8492echo "$as_me:$LINENO: checking for $ac_word" >&5
8493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8496else
8497 if test -n "$CC_FOR_TARGET"; then
8498 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8499else
c6b750e1
DJ
8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511done
8512done
8513
55db4b87
PB
8514fi
8515fi
c6b750e1 8516CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8517if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8518 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8519echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8520else
c6b750e1
DJ
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
55db4b87
PB
8523fi
8524
2429c060
PB
8525 fi
8526 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8528set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8529echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8531if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8533else
05cbd757
PB
8534 if test -n "$CC_FOR_TARGET"; then
8535 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8536else
c6b750e1
DJ
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548done
8549done
8550
55db4b87
PB
8551fi
8552fi
c6b750e1 8553CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8554if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8555 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8556echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8557else
c6b750e1
DJ
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
55db4b87 8560fi
c6b750e1 8561
2429c060
PB
8562 fi
8563 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8564 done
8565fi
c6b750e1 8566
05cbd757
PB
8567if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8568 set dummy cc gcc
8569 if test $build = $target ; then
8570 CC_FOR_TARGET="$2"
55db4b87 8571 else
05cbd757 8572 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8573 fi
d3f5afc4
MS
8574else
8575 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8576fi
8577
9a819804
AO
8578
8579
8580if test -n "$CXX_FOR_TARGET"; then
8581 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8582elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8583 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8584fi
8585
8586if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8587 for ncn_progname in c++ g++ cxx gxx; do
8588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8589set dummy ${ncn_progname}; ac_word=$2
8590echo "$as_me:$LINENO: checking for $ac_word" >&5
8591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8592if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595 if test -n "$CXX_FOR_TARGET"; then
8596 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609done
8610done
8611
8612fi
8613fi
8614CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8615if test -n "$CXX_FOR_TARGET"; then
8616 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8617echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8618else
8619 echo "$as_me:$LINENO: result: no" >&5
8620echo "${ECHO_T}no" >&6
8621fi
8622
8623 done
8624fi
8625
8626if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8627 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8628 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8629echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8630 if test -x $with_build_time_tools/${ncn_progname}; then
8631 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8632 echo "$as_me:$LINENO: result: yes" >&5
8633echo "${ECHO_T}yes" >&6
2429c060
PB
8634 break
8635 else
c6b750e1
DJ
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
2429c060
PB
8638 fi
8639 done
8640fi
8641
8642if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8643 for ncn_progname in c++ g++ cxx gxx; do
8644 if test -n "$ncn_target_tool_prefix"; then
8645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8647echo "$as_me:$LINENO: checking for $ac_word" >&5
8648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8649if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8651else
8652 if test -n "$CXX_FOR_TARGET"; then
8653 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8654else
c6b750e1
DJ
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666done
8667done
8668
55db4b87
PB
8669fi
8670fi
c6b750e1 8671CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8672if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8673 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8674echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8675else
c6b750e1
DJ
8676 echo "$as_me:$LINENO: result: no" >&5
8677echo "${ECHO_T}no" >&6
55db4b87
PB
8678fi
8679
2429c060
PB
8680 fi
8681 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8683set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8684echo "$as_me:$LINENO: checking for $ac_word" >&5
8685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8686if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8688else
05cbd757
PB
8689 if test -n "$CXX_FOR_TARGET"; then
8690 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8691else
c6b750e1
DJ
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703done
8704done
8705
55db4b87
PB
8706fi
8707fi
c6b750e1 8708CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8709if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8710 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8711echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8712else
c6b750e1
DJ
8713 echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6
55db4b87 8715fi
c6b750e1 8716
2429c060
PB
8717 fi
8718 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8719 done
8720fi
c6b750e1 8721
05cbd757
PB
8722if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8723 set dummy c++ g++ cxx gxx
8724 if test $build = $target ; then
8725 CXX_FOR_TARGET="$2"
55db4b87 8726 else
05cbd757 8727 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8728 fi
d3f5afc4
MS
8729else
8730 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8731fi
8732
9a819804
AO
8733
8734
8735if test -n "$GCC_FOR_TARGET"; then
8736 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8737elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8738 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8739fi
8740
8741if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8742 for ncn_progname in gcc; do
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8744set dummy ${ncn_progname}; ac_word=$2
8745echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 if test -n "$GCC_FOR_TARGET"; then
8751 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8752else
8753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $PATH
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764done
8765done
8766
8767fi
8768fi
8769GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8770if test -n "$GCC_FOR_TARGET"; then
8771 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8772echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8773else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776fi
8777
8778 done
8779fi
8780
8781if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8782 for ncn_progname in gcc; do
c6b750e1
DJ
8783 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8784echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8785 if test -x $with_build_time_tools/${ncn_progname}; then
8786 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
2429c060
PB
8789 break
8790 else
c6b750e1
DJ
8791 echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
2429c060
PB
8793 fi
8794 done
8795fi
8796
8797if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8798 for ncn_progname in gcc; do
8799 if test -n "$ncn_target_tool_prefix"; then
8800 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8801set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8802echo "$as_me:$LINENO: checking for $ac_word" >&5
8803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8804if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8806else
2429c060
PB
8807 if test -n "$GCC_FOR_TARGET"; then
8808 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8809else
c6b750e1
DJ
8810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811for as_dir in $PATH
8812do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8820 fi
8821done
8822done
8823
55db4b87
PB
8824fi
8825fi
c6b750e1 8826GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8827if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8828 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8829echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8830else
c6b750e1
DJ
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
55db4b87
PB
8833fi
8834
2429c060
PB
8835 fi
8836 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8838set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8839echo "$as_me:$LINENO: checking for $ac_word" >&5
8840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8841if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8843else
05cbd757
PB
8844 if test -n "$GCC_FOR_TARGET"; then
8845 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8846else
c6b750e1
DJ
8847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848for as_dir in $PATH
8849do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8854 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858done
8859done
8860
55db4b87
PB
8861fi
8862fi
c6b750e1 8863GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8864if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8865 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8866echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8867else
c6b750e1
DJ
8868 echo "$as_me:$LINENO: result: no" >&5
8869echo "${ECHO_T}no" >&6
55db4b87 8870fi
c6b750e1 8871
2429c060
PB
8872 fi
8873 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8874 done
8875fi
c6b750e1 8876
05cbd757
PB
8877if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8878 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8879else
8880 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8881fi
8882
9a819804
AO
8883
8884
8885if test -n "$GCJ_FOR_TARGET"; then
8886 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8887elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8888 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8889fi
8890
8891if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8892 for ncn_progname in gcj; do
8893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8894set dummy ${ncn_progname}; ac_word=$2
8895echo "$as_me:$LINENO: checking for $ac_word" >&5
8896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899else
8900 if test -n "$GCJ_FOR_TARGET"; then
8901 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8902else
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
8917fi
8918fi
8919GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8920if test -n "$GCJ_FOR_TARGET"; then
8921 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8922echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8923else
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
8926fi
8927
8928 done
8929fi
8930
8931if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8932 for ncn_progname in gcj; do
c6b750e1
DJ
8933 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8934echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8935 if test -x $with_build_time_tools/${ncn_progname}; then
8936 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8937 echo "$as_me:$LINENO: result: yes" >&5
8938echo "${ECHO_T}yes" >&6
2429c060
PB
8939 break
8940 else
c6b750e1
DJ
8941 echo "$as_me:$LINENO: result: no" >&5
8942echo "${ECHO_T}no" >&6
2429c060
PB
8943 fi
8944 done
8945fi
8946
8947if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8948 for ncn_progname in gcj; do
8949 if test -n "$ncn_target_tool_prefix"; then
8950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8951set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8952echo "$as_me:$LINENO: checking for $ac_word" >&5
8953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8954if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8956else
8957 if test -n "$GCJ_FOR_TARGET"; then
8958 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8959else
c6b750e1
DJ
8960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961for as_dir in $PATH
8962do
8963 IFS=$as_save_IFS
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8967 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8969 break 2
8970 fi
8971done
8972done
8973
55db4b87
PB
8974fi
8975fi
9a819804
AO
8976GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8977if test -n "$GCJ_FOR_TARGET"; then
8978 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8979echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8980else
8981 echo "$as_me:$LINENO: result: no" >&5
8982echo "${ECHO_T}no" >&6
8983fi
8984
8985 fi
8986 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8988set dummy ${ncn_progname}; ac_word=$2
8989echo "$as_me:$LINENO: checking for $ac_word" >&5
8990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8991if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993else
8994 if test -n "$GCJ_FOR_TARGET"; then
8995 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008done
9009done
9010
9011fi
9012fi
9013GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9014if test -n "$GCJ_FOR_TARGET"; then
9015 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9016echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9017else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020fi
9021
9022 fi
9023 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9024 done
9025fi
9026
9027if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9028 set dummy gcj
9029 if test $build = $target ; then
9030 GCJ_FOR_TARGET="$2"
9031 else
9032 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9033 fi
d3f5afc4
MS
9034else
9035 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9036fi
9037
9038
9039
9040if test -n "$GFORTRAN_FOR_TARGET"; then
9041 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9042elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9043 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9044fi
9045
9a819804
AO
9046if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9047 for ncn_progname in gfortran; do
9048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9049set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9050echo "$as_me:$LINENO: checking for $ac_word" >&5
9051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9052if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 9053 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9054else
9a819804
AO
9055 if test -n "$GFORTRAN_FOR_TARGET"; then
9056 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9057else
c6b750e1
DJ
9058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059for as_dir in $PATH
9060do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9065 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9068 fi
9069done
9070done
9071
55db4b87
PB
9072fi
9073fi
9a819804
AO
9074GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9075if test -n "$GFORTRAN_FOR_TARGET"; then
9076 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9077echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9078else
c6b750e1
DJ
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
55db4b87 9081fi
c6b750e1 9082
2429c060
PB
9083 done
9084fi
c6b750e1 9085
9a819804 9086if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9087 for ncn_progname in gfortran; do
c6b750e1
DJ
9088 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9089echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9090 if test -x $with_build_time_tools/${ncn_progname}; then
9091 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9092 echo "$as_me:$LINENO: result: yes" >&5
9093echo "${ECHO_T}yes" >&6
2429c060
PB
9094 break
9095 else
c6b750e1
DJ
9096 echo "$as_me:$LINENO: result: no" >&5
9097echo "${ECHO_T}no" >&6
2429c060
PB
9098 fi
9099 done
9100fi
9101
9102if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9103 for ncn_progname in gfortran; do
9104 if test -n "$ncn_target_tool_prefix"; then
9105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9106set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9107echo "$as_me:$LINENO: checking for $ac_word" >&5
9108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9109if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9111else
9112 if test -n "$GFORTRAN_FOR_TARGET"; then
9113 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9114else
c6b750e1
DJ
9115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116for as_dir in $PATH
9117do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9125 fi
9126done
9127done
9128
55db4b87
PB
9129fi
9130fi
c6b750e1 9131GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9132if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9133 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9134echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9135else
c6b750e1
DJ
9136 echo "$as_me:$LINENO: result: no" >&5
9137echo "${ECHO_T}no" >&6
55db4b87
PB
9138fi
9139
2429c060
PB
9140 fi
9141 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9143set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9144echo "$as_me:$LINENO: checking for $ac_word" >&5
9145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9146if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9148else
05cbd757 9149 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9150 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9151else
9152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153for as_dir in $PATH
9154do
9155 IFS=$as_save_IFS
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9159 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 break 2
9162 fi
9163done
9164done
9165
55db4b87
PB
9166fi
9167fi
c6b750e1 9168GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9169if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9170 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9171echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9172else
c6b750e1
DJ
9173 echo "$as_me:$LINENO: result: no" >&5
9174echo "${ECHO_T}no" >&6
55db4b87 9175fi
c6b750e1 9176
2429c060
PB
9177 fi
9178 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9179 done
9180fi
c6b750e1 9181
05cbd757
PB
9182if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9183 set dummy gfortran
9184 if test $build = $target ; then
9185 GFORTRAN_FOR_TARGET="$2"
55db4b87 9186 else
05cbd757 9187 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9188 fi
d3f5afc4
MS
9189else
9190 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9191fi
9192
2429c060
PB
9193
9194
2429c060
PB
9195cat > conftest.c << \EOF
9196#ifdef __GNUC__
9197 gcc_yay;
9198#endif
9199EOF
9200if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9201 have_gcc_for_target=yes
859789af 9202else
2429c060
PB
9203 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9204 have_gcc_for_target=no
859789af 9205fi
2429c060
PB
9206rm conftest.c
9207
9208
9209
859789af 9210
2429c060
PB
9211if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9212 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9213 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9214echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9215 if test -x $with_build_time_tools/ar; then
9216 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9217 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
9218 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9219echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 9220 else
c6b750e1
DJ
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
3a35eeb3 9223 fi
2429c060
PB
9224 elif test $build != $host && test $have_gcc_for_target = yes; then
9225 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9226 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9227 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9228 fi
2429c060 9229fi
c6b750e1 9230if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9231 # Extract the first word of "ar", so it can be a program name with args.
9232set dummy ar; ac_word=$2
c6b750e1
DJ
9233echo "$as_me:$LINENO: checking for $ac_word" >&5
9234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9235if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9237else
c6b750e1
DJ
9238 case $AR_FOR_TARGET in
9239 [\\/]* | ?:[\\/]*)
2429c060
PB
9240 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9241 ;;
2429c060 9242 *)
c6b750e1
DJ
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244for as_dir in $gcc_cv_tool_dirs
9245do
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9250 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9253 fi
9254done
9255done
9256
2429c060
PB
9257 ;;
9258esac
859789af 9259fi
c6b750e1
DJ
9260AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9261
2429c060 9262if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9263 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9264echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 9265else
c6b750e1
DJ
9266 echo "$as_me:$LINENO: result: no" >&5
9267echo "${ECHO_T}no" >&6
859789af 9268fi
05cbd757 9269
2429c060
PB
9270fi
9271if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9272
9273
9274if test -n "$AR_FOR_TARGET"; then
9275 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9276elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9277 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9278fi
9279
9280if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9281 for ncn_progname in ar; do
9282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9283set dummy ${ncn_progname}; ac_word=$2
9284echo "$as_me:$LINENO: checking for $ac_word" >&5
9285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9286if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 if test -n "$AR_FOR_TARGET"; then
9290 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9291else
9292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293for as_dir in $PATH
9294do
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9302 fi
9303done
9304done
9305
9306fi
9307fi
9308AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9309if test -n "$AR_FOR_TARGET"; then
9310 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9311echo "${ECHO_T}$AR_FOR_TARGET" >&6
9312else
9313 echo "$as_me:$LINENO: result: no" >&5
9314echo "${ECHO_T}no" >&6
9315fi
9316
9317 done
9318fi
9319
9320if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9321 for ncn_progname in ar; do
c6b750e1
DJ
9322 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9323echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9324 if test -x $with_build_time_tools/${ncn_progname}; then
9325 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9326 echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
2429c060
PB
9328 break
9329 else
c6b750e1
DJ
9330 echo "$as_me:$LINENO: result: no" >&5
9331echo "${ECHO_T}no" >&6
2429c060
PB
9332 fi
9333 done
859789af
AC
9334fi
9335
2429c060
PB
9336if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9337 for ncn_progname in ar; do
9338 if test -n "$ncn_target_tool_prefix"; then
9339 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9340set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9341echo "$as_me:$LINENO: checking for $ac_word" >&5
9342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9343if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9345else
2429c060
PB
9346 if test -n "$AR_FOR_TARGET"; then
9347 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9348else
c6b750e1
DJ
9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9356 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9359 fi
9360done
9361done
9362
7e0f7140
GK
9363fi
9364fi
c6b750e1 9365AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9366if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9367 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9368echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9369else
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
7e0f7140
GK
9372fi
9373
2429c060
PB
9374 fi
9375 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9377set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9378echo "$as_me:$LINENO: checking for $ac_word" >&5
9379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9380if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9382else
2429c060
PB
9383 if test -n "$AR_FOR_TARGET"; then
9384 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9385else
c6b750e1
DJ
9386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387for as_dir in $PATH
9388do
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 break 2
9396 fi
9397done
9398done
9399
7e0f7140
GK
9400fi
9401fi
c6b750e1 9402AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9403if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9404 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9405echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9406else
c6b750e1
DJ
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
7e0f7140 9409fi
c6b750e1 9410
2429c060
PB
9411 fi
9412 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9413 done
9414fi
c6b750e1 9415
2429c060
PB
9416if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9417 set dummy ar
7e0f7140 9418 if test $build = $target ; then
2429c060 9419 AR_FOR_TARGET="$2"
7e0f7140 9420 else
2429c060 9421 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9422 fi
d3f5afc4
MS
9423else
9424 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9425fi
9426
3a35eeb3
PB
9427else
9428 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9429fi
9430
9431
9432
9433
9434if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9435 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9436 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9437echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9438 if test -x $with_build_time_tools/as; then
9439 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9440 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9441 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9442echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9443 else
c6b750e1
DJ
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
3a35eeb3 9446 fi
2429c060
PB
9447 elif test $build != $host && test $have_gcc_for_target = yes; then
9448 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9449 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9450 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9451 fi
9452fi
c6b750e1 9453if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9454 # Extract the first word of "as", so it can be a program name with args.
9455set dummy as; ac_word=$2
c6b750e1
DJ
9456echo "$as_me:$LINENO: checking for $ac_word" >&5
9457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9458if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9460else
c6b750e1
DJ
9461 case $AS_FOR_TARGET in
9462 [\\/]* | ?:[\\/]*)
2429c060
PB
9463 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9464 ;;
2429c060 9465 *)
c6b750e1
DJ
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467for as_dir in $gcc_cv_tool_dirs
9468do
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9473 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9476 fi
9477done
9478done
9479
2429c060
PB
9480 ;;
9481esac
9482fi
c6b750e1
DJ
9483AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9484
2429c060 9485if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9486 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9487echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9488else
c6b750e1
DJ
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
2429c060
PB
9491fi
9492
9493fi
9494if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9495
9496
9497if test -n "$AS_FOR_TARGET"; then
9498 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9499elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9500 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9501fi
9502
9503if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9504 for ncn_progname in as; do
9505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9506set dummy ${ncn_progname}; ac_word=$2
9507echo "$as_me:$LINENO: checking for $ac_word" >&5
9508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9509if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511else
9512 if test -n "$AS_FOR_TARGET"; then
9513 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9514else
9515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516for as_dir in $PATH
9517do
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9522 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 break 2
9525 fi
9526done
9527done
9528
9529fi
9530fi
9531AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9532if test -n "$AS_FOR_TARGET"; then
9533 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9534echo "${ECHO_T}$AS_FOR_TARGET" >&6
9535else
9536 echo "$as_me:$LINENO: result: no" >&5
9537echo "${ECHO_T}no" >&6
9538fi
9539
9540 done
9541fi
9542
9543if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9544 for ncn_progname in as; do
c6b750e1
DJ
9545 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9546echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9547 if test -x $with_build_time_tools/${ncn_progname}; then
9548 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9549 echo "$as_me:$LINENO: result: yes" >&5
9550echo "${ECHO_T}yes" >&6
2429c060
PB
9551 break
9552 else
c6b750e1
DJ
9553 echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
2429c060
PB
9555 fi
9556 done
9557fi
9558
9559if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9560 for ncn_progname in as; do
9561 if test -n "$ncn_target_tool_prefix"; then
9562 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9564echo "$as_me:$LINENO: checking for $ac_word" >&5
9565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9566if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9568else
9569 if test -n "$AS_FOR_TARGET"; then
9570 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9571else
c6b750e1
DJ
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9579 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9582 fi
9583done
9584done
9585
2429c060
PB
9586fi
9587fi
c6b750e1 9588AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9589if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9590 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9591echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9592else
c6b750e1
DJ
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
2429c060
PB
9595fi
9596
9597 fi
9598 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9600set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9601echo "$as_me:$LINENO: checking for $ac_word" >&5
9602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9603if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9605else
9606 if test -n "$AS_FOR_TARGET"; then
9607 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9608else
c6b750e1
DJ
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9616 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9619 fi
9620done
9621done
9622
2429c060
PB
9623fi
9624fi
c6b750e1 9625AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9626if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9627 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9628echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9629else
c6b750e1
DJ
9630 echo "$as_me:$LINENO: result: no" >&5
9631echo "${ECHO_T}no" >&6
2429c060 9632fi
c6b750e1 9633
2429c060
PB
9634 fi
9635 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9636 done
9637fi
c6b750e1 9638
2429c060
PB
9639if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9640 set dummy as
9641 if test $build = $target ; then
9642 AS_FOR_TARGET="$2"
9643 else
9644 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9645 fi
d3f5afc4
MS
9646else
9647 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9648fi
9649
3a35eeb3
PB
9650else
9651 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9652fi
9653
9654
9655
9656
9657if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9658 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9659 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9660echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9661 if test -x $with_build_time_tools/dlltool; then
9662 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9663 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9664 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9665echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9666 else
c6b750e1
DJ
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
3a35eeb3 9669 fi
2429c060
PB
9670 elif test $build != $host && test $have_gcc_for_target = yes; then
9671 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9672 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9673 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9674 fi
9675fi
c6b750e1 9676if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9677 # Extract the first word of "dlltool", so it can be a program name with args.
9678set dummy dlltool; ac_word=$2
c6b750e1
DJ
9679echo "$as_me:$LINENO: checking for $ac_word" >&5
9680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9681if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9683else
c6b750e1
DJ
9684 case $DLLTOOL_FOR_TARGET in
9685 [\\/]* | ?:[\\/]*)
2429c060
PB
9686 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9687 ;;
2429c060 9688 *)
c6b750e1
DJ
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690for as_dir in $gcc_cv_tool_dirs
9691do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9696 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9699 fi
9700done
9701done
9702
2429c060
PB
9703 ;;
9704esac
9705fi
c6b750e1
DJ
9706DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9707
2429c060 9708if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9709 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9710echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9711else
c6b750e1
DJ
9712 echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6
2429c060
PB
9714fi
9715
9716fi
9717if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9718
9719
9720if test -n "$DLLTOOL_FOR_TARGET"; then
9721 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9722elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9723 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9724fi
9725
9726if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9727 for ncn_progname in dlltool; do
9728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9729set dummy ${ncn_progname}; ac_word=$2
9730echo "$as_me:$LINENO: checking for $ac_word" >&5
9731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9732if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734else
9735 if test -n "$DLLTOOL_FOR_TARGET"; then
9736 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9745 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749done
9750done
9751
9752fi
9753fi
9754DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9755if test -n "$DLLTOOL_FOR_TARGET"; then
9756 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9757echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9758else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761fi
9762
9763 done
9764fi
9765
9766if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9767 for ncn_progname in dlltool; do
c6b750e1
DJ
9768 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9769echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9770 if test -x $with_build_time_tools/${ncn_progname}; then
9771 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9772 echo "$as_me:$LINENO: result: yes" >&5
9773echo "${ECHO_T}yes" >&6
2429c060
PB
9774 break
9775 else
c6b750e1
DJ
9776 echo "$as_me:$LINENO: result: no" >&5
9777echo "${ECHO_T}no" >&6
2429c060
PB
9778 fi
9779 done
9780fi
9781
9782if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9783 for ncn_progname in dlltool; do
9784 if test -n "$ncn_target_tool_prefix"; then
9785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9786set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9787echo "$as_me:$LINENO: checking for $ac_word" >&5
9788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9789if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9791else
9792 if test -n "$DLLTOOL_FOR_TARGET"; then
9793 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9794else
c6b750e1
DJ
9795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806done
9807done
9808
2429c060
PB
9809fi
9810fi
c6b750e1 9811DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9812if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9813 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9814echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9815else
c6b750e1
DJ
9816 echo "$as_me:$LINENO: result: no" >&5
9817echo "${ECHO_T}no" >&6
2429c060
PB
9818fi
9819
9820 fi
9821 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9823set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9824echo "$as_me:$LINENO: checking for $ac_word" >&5
9825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9826if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9828else
9829 if test -n "$DLLTOOL_FOR_TARGET"; then
9830 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9831else
c6b750e1
DJ
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9842 fi
9843done
9844done
9845
2429c060
PB
9846fi
9847fi
c6b750e1 9848DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9849if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9850 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9851echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9852else
c6b750e1
DJ
9853 echo "$as_me:$LINENO: result: no" >&5
9854echo "${ECHO_T}no" >&6
2429c060 9855fi
c6b750e1 9856
2429c060
PB
9857 fi
9858 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9859 done
9860fi
c6b750e1 9861
2429c060
PB
9862if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9863 set dummy dlltool
9864 if test $build = $target ; then
9865 DLLTOOL_FOR_TARGET="$2"
9866 else
9867 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9868 fi
d3f5afc4
MS
9869else
9870 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9871fi
9872
3a35eeb3
PB
9873else
9874 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9875fi
9876
9877
9878
9879
9880if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9881 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9882 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9883echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9884 if test -x $with_build_time_tools/ld; then
9885 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9886 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9887 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9888echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9889 else
c6b750e1
DJ
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
3a35eeb3 9892 fi
2429c060
PB
9893 elif test $build != $host && test $have_gcc_for_target = yes; then
9894 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9895 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9896 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9897 fi
9898fi
c6b750e1 9899if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9900 # Extract the first word of "ld", so it can be a program name with args.
9901set dummy ld; ac_word=$2
c6b750e1
DJ
9902echo "$as_me:$LINENO: checking for $ac_word" >&5
9903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9904if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9906else
c6b750e1
DJ
9907 case $LD_FOR_TARGET in
9908 [\\/]* | ?:[\\/]*)
2429c060
PB
9909 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9910 ;;
2429c060 9911 *)
c6b750e1
DJ
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $gcc_cv_tool_dirs
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923done
9924done
9925
2429c060
PB
9926 ;;
9927esac
9928fi
c6b750e1
DJ
9929LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9930
2429c060 9931if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9932 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9933echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9934else
c6b750e1
DJ
9935 echo "$as_me:$LINENO: result: no" >&5
9936echo "${ECHO_T}no" >&6
2429c060
PB
9937fi
9938
9939fi
9940if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9941
9942
9943if test -n "$LD_FOR_TARGET"; then
9944 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9945elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9946 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9947fi
9948
9949if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9950 for ncn_progname in ld; do
9951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9952set dummy ${ncn_progname}; ac_word=$2
9953echo "$as_me:$LINENO: checking for $ac_word" >&5
9954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9955if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957else
9958 if test -n "$LD_FOR_TARGET"; then
9959 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9960else
9961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962for as_dir in $PATH
9963do
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9971 fi
9972done
9973done
9974
9975fi
9976fi
9977LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9978if test -n "$LD_FOR_TARGET"; then
9979 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9980echo "${ECHO_T}$LD_FOR_TARGET" >&6
9981else
9982 echo "$as_me:$LINENO: result: no" >&5
9983echo "${ECHO_T}no" >&6
9984fi
9985
9986 done
9987fi
9988
9989if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9990 for ncn_progname in ld; do
c6b750e1
DJ
9991 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9992echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9993 if test -x $with_build_time_tools/${ncn_progname}; then
9994 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9995 echo "$as_me:$LINENO: result: yes" >&5
9996echo "${ECHO_T}yes" >&6
2429c060
PB
9997 break
9998 else
c6b750e1
DJ
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
2429c060
PB
10001 fi
10002 done
10003fi
10004
10005if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10006 for ncn_progname in ld; do
10007 if test -n "$ncn_target_tool_prefix"; then
10008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10009set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10010echo "$as_me:$LINENO: checking for $ac_word" >&5
10011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10012if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10014else
10015 if test -n "$LD_FOR_TARGET"; then
10016 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10017else
c6b750e1
DJ
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029done
10030done
10031
2429c060
PB
10032fi
10033fi
c6b750e1 10034LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10035if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10036 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10037echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10038else
c6b750e1
DJ
10039 echo "$as_me:$LINENO: result: no" >&5
10040echo "${ECHO_T}no" >&6
2429c060
PB
10041fi
10042
10043 fi
10044 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10046set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10047echo "$as_me:$LINENO: checking for $ac_word" >&5
10048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10049if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10051else
10052 if test -n "$LD_FOR_TARGET"; then
10053 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10054else
c6b750e1
DJ
10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10065 fi
10066done
10067done
10068
2429c060
PB
10069fi
10070fi
c6b750e1 10071LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10072if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10073 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10074echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10075else
c6b750e1
DJ
10076 echo "$as_me:$LINENO: result: no" >&5
10077echo "${ECHO_T}no" >&6
2429c060 10078fi
c6b750e1 10079
2429c060
PB
10080 fi
10081 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10082 done
10083fi
c6b750e1 10084
2429c060
PB
10085if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10086 set dummy ld
10087 if test $build = $target ; then
10088 LD_FOR_TARGET="$2"
10089 else
10090 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10091 fi
d3f5afc4
MS
10092else
10093 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10094fi
10095
3a35eeb3
PB
10096else
10097 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10098fi
10099
10100
10101
10102
10103if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10104 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10105 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10106echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10107 if test -x $with_build_time_tools/lipo; then
10108 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10109 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
10110 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10111echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 10112 else
c6b750e1
DJ
10113 echo "$as_me:$LINENO: result: no" >&5
10114echo "${ECHO_T}no" >&6
3a35eeb3 10115 fi
2429c060
PB
10116 elif test $build != $host && test $have_gcc_for_target = yes; then
10117 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10118 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10119 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10120 fi
10121fi
9a819804
AO
10122if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10123 # Extract the first word of "lipo", so it can be a program name with args.
10124set dummy lipo; ac_word=$2
10125echo "$as_me:$LINENO: checking for $ac_word" >&5
10126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10127if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129else
10130 case $LIPO_FOR_TARGET in
10131 [\\/]* | ?:[\\/]*)
10132 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10133 ;;
10134 *)
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $gcc_cv_tool_dirs
10137do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146done
10147done
10148
10149 ;;
10150esac
10151fi
10152LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10153
10154if test -n "$LIPO_FOR_TARGET"; then
10155 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10156echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10157else
10158 echo "$as_me:$LINENO: result: no" >&5
10159echo "${ECHO_T}no" >&6
10160fi
10161
10162fi
10163if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10164
10165
10166if test -n "$LIPO_FOR_TARGET"; then
10167 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10168elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10169 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10170fi
10171
10172if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10173 for ncn_progname in lipo; do
10174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10175set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10176echo "$as_me:$LINENO: checking for $ac_word" >&5
10177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 10178if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 10179 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10180else
9a819804
AO
10181 if test -n "$LIPO_FOR_TARGET"; then
10182 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10183else
10184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185for as_dir in $PATH
c6b750e1
DJ
10186do
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10191 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
10192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195done
10196done
10197
2429c060 10198fi
9a819804
AO
10199fi
10200LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10201if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10202 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10203echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10204else
c6b750e1
DJ
10205 echo "$as_me:$LINENO: result: no" >&5
10206echo "${ECHO_T}no" >&6
2429c060
PB
10207fi
10208
9a819804 10209 done
2429c060 10210fi
9a819804
AO
10211
10212if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10213 for ncn_progname in lipo; do
c6b750e1
DJ
10214 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10215echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10216 if test -x $with_build_time_tools/${ncn_progname}; then
10217 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10218 echo "$as_me:$LINENO: result: yes" >&5
10219echo "${ECHO_T}yes" >&6
2429c060
PB
10220 break
10221 else
c6b750e1
DJ
10222 echo "$as_me:$LINENO: result: no" >&5
10223echo "${ECHO_T}no" >&6
2429c060
PB
10224 fi
10225 done
10226fi
10227
10228if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10229 for ncn_progname in lipo; do
10230 if test -n "$ncn_target_tool_prefix"; then
10231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10232set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10233echo "$as_me:$LINENO: checking for $ac_word" >&5
10234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10235if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10237else
10238 if test -n "$LIPO_FOR_TARGET"; then
10239 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10240else
c6b750e1
DJ
10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252done
10253done
10254
2429c060
PB
10255fi
10256fi
c6b750e1 10257LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10258if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10259 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10260echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10261else
c6b750e1
DJ
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
2429c060
PB
10264fi
10265
10266 fi
10267 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10269set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10270echo "$as_me:$LINENO: checking for $ac_word" >&5
10271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10272if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10274else
10275 if test -n "$LIPO_FOR_TARGET"; then
10276 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10277else
c6b750e1
DJ
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10288 fi
10289done
10290done
10291
2429c060
PB
10292fi
10293fi
c6b750e1 10294LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10295if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10296 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10297echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10298else
c6b750e1
DJ
10299 echo "$as_me:$LINENO: result: no" >&5
10300echo "${ECHO_T}no" >&6
2429c060 10301fi
c6b750e1 10302
2429c060
PB
10303 fi
10304 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10305 done
10306fi
c6b750e1 10307
2429c060
PB
10308if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10309 set dummy lipo
10310 if test $build = $target ; then
10311 LIPO_FOR_TARGET="$2"
10312 else
10313 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10314 fi
d3f5afc4
MS
10315else
10316 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10317fi
10318
3a35eeb3
PB
10319else
10320 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10321fi
10322
10323
10324
10325
10326if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10327 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10328 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10329echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10330 if test -x $with_build_time_tools/nm; then
10331 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10332 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10333 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10334echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10335 else
c6b750e1
DJ
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
3a35eeb3 10338 fi
2429c060
PB
10339 elif test $build != $host && test $have_gcc_for_target = yes; then
10340 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10341 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10342 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10343 fi
10344fi
c6b750e1 10345if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10346 # Extract the first word of "nm", so it can be a program name with args.
10347set dummy nm; ac_word=$2
c6b750e1
DJ
10348echo "$as_me:$LINENO: checking for $ac_word" >&5
10349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10350if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10352else
c6b750e1
DJ
10353 case $NM_FOR_TARGET in
10354 [\\/]* | ?:[\\/]*)
2429c060
PB
10355 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10356 ;;
2429c060 10357 *)
c6b750e1
DJ
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359for as_dir in $gcc_cv_tool_dirs
10360do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10368 fi
10369done
10370done
10371
2429c060
PB
10372 ;;
10373esac
10374fi
c6b750e1
DJ
10375NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10376
2429c060 10377if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10378 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10379echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10380else
c6b750e1
DJ
10381 echo "$as_me:$LINENO: result: no" >&5
10382echo "${ECHO_T}no" >&6
2429c060
PB
10383fi
10384
10385fi
10386if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10387
10388
10389if test -n "$NM_FOR_TARGET"; then
10390 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10391elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10392 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10393fi
10394
10395if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10396 for ncn_progname in nm; do
10397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10398set dummy ${ncn_progname}; ac_word=$2
10399echo "$as_me:$LINENO: checking for $ac_word" >&5
10400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10401if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 if test -n "$NM_FOR_TARGET"; then
10405 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10417 fi
10418done
10419done
10420
10421fi
10422fi
10423NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10424if test -n "$NM_FOR_TARGET"; then
10425 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10426echo "${ECHO_T}$NM_FOR_TARGET" >&6
10427else
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
10430fi
10431
10432 done
10433fi
10434
10435if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10436 for ncn_progname in nm; do
c6b750e1
DJ
10437 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10438echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10439 if test -x $with_build_time_tools/${ncn_progname}; then
10440 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10441 echo "$as_me:$LINENO: result: yes" >&5
10442echo "${ECHO_T}yes" >&6
2429c060
PB
10443 break
10444 else
c6b750e1
DJ
10445 echo "$as_me:$LINENO: result: no" >&5
10446echo "${ECHO_T}no" >&6
2429c060
PB
10447 fi
10448 done
10449fi
10450
10451if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10452 for ncn_progname in nm; do
10453 if test -n "$ncn_target_tool_prefix"; then
10454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10456echo "$as_me:$LINENO: checking for $ac_word" >&5
10457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10458if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10460else
55db4b87
PB
10461 if test -n "$NM_FOR_TARGET"; then
10462 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10463else
c6b750e1
DJ
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10471 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476done
10477
859789af
AC
10478fi
10479fi
c6b750e1 10480NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10481if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10482 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10483echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10484else
c6b750e1
DJ
10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
859789af
AC
10487fi
10488
2429c060
PB
10489 fi
10490 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10492set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10493echo "$as_me:$LINENO: checking for $ac_word" >&5
10494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10495if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10497else
05cbd757
PB
10498 if test -n "$NM_FOR_TARGET"; then
10499 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10500else
c6b750e1
DJ
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513done
10514
859789af
AC
10515fi
10516fi
c6b750e1 10517NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10518if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10519 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10520echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10521else
c6b750e1
DJ
10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
859789af 10524fi
c6b750e1 10525
2429c060
PB
10526 fi
10527 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10528 done
10529fi
c6b750e1 10530
05cbd757
PB
10531if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10532 set dummy nm
10533 if test $build = $target ; then
10534 NM_FOR_TARGET="$2"
859789af 10535 else
05cbd757 10536 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10537 fi
d3f5afc4
MS
10538else
10539 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10540fi
10541
3a35eeb3
PB
10542else
10543 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10544fi
10545
10546
10547
10548
10549if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10550 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10551 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10552echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10553 if test -x $with_build_time_tools/objdump; then
10554 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10555 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10556 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10557echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10558 else
c6b750e1
DJ
10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
3a35eeb3 10561 fi
2429c060
PB
10562 elif test $build != $host && test $have_gcc_for_target = yes; then
10563 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10564 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10565 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10566 fi
10567fi
c6b750e1 10568if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10569 # Extract the first word of "objdump", so it can be a program name with args.
10570set dummy objdump; ac_word=$2
c6b750e1
DJ
10571echo "$as_me:$LINENO: checking for $ac_word" >&5
10572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10573if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10575else
c6b750e1
DJ
10576 case $OBJDUMP_FOR_TARGET in
10577 [\\/]* | ?:[\\/]*)
2429c060
PB
10578 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10579 ;;
2429c060 10580 *)
c6b750e1
DJ
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $gcc_cv_tool_dirs
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592done
10593done
10594
2429c060
PB
10595 ;;
10596esac
10597fi
c6b750e1
DJ
10598OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10599
2429c060 10600if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10601 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10602echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10603else
c6b750e1
DJ
10604 echo "$as_me:$LINENO: result: no" >&5
10605echo "${ECHO_T}no" >&6
2429c060
PB
10606fi
10607
10608fi
10609if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10610
10611
10612if test -n "$OBJDUMP_FOR_TARGET"; then
10613 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10614elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10615 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10616fi
10617
10618if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10619 for ncn_progname in objdump; do
10620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10621set dummy ${ncn_progname}; ac_word=$2
10622echo "$as_me:$LINENO: checking for $ac_word" >&5
10623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10624if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 if test -n "$OBJDUMP_FOR_TARGET"; then
10628 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641done
10642done
10643
10644fi
10645fi
10646OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10647if test -n "$OBJDUMP_FOR_TARGET"; then
10648 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10649echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10650else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655 done
10656fi
10657
10658if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10659 for ncn_progname in objdump; do
c6b750e1
DJ
10660 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10661echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10662 if test -x $with_build_time_tools/${ncn_progname}; then
10663 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10664 echo "$as_me:$LINENO: result: yes" >&5
10665echo "${ECHO_T}yes" >&6
2429c060
PB
10666 break
10667 else
c6b750e1
DJ
10668 echo "$as_me:$LINENO: result: no" >&5
10669echo "${ECHO_T}no" >&6
2429c060
PB
10670 fi
10671 done
10672fi
10673
10674if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10675 for ncn_progname in objdump; do
10676 if test -n "$ncn_target_tool_prefix"; then
10677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10678set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10679echo "$as_me:$LINENO: checking for $ac_word" >&5
10680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10681if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10683else
10684 if test -n "$OBJDUMP_FOR_TARGET"; then
10685 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10686else
c6b750e1
DJ
10687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688for as_dir in $PATH
10689do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698done
10699done
10700
5ae72758
DJ
10701fi
10702fi
c6b750e1 10703OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10704if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10705 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10706echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10707else
c6b750e1
DJ
10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
5ae72758
DJ
10710fi
10711
2429c060
PB
10712 fi
10713 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10715set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10716echo "$as_me:$LINENO: checking for $ac_word" >&5
10717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10718if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10720else
10721 if test -n "$OBJDUMP_FOR_TARGET"; then
10722 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10723else
c6b750e1
DJ
10724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725for as_dir in $PATH
10726do
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10731 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10734 fi
10735done
10736done
10737
5ae72758
DJ
10738fi
10739fi
c6b750e1 10740OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10741if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10742 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10743echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10744else
c6b750e1
DJ
10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
5ae72758 10747fi
c6b750e1 10748
2429c060
PB
10749 fi
10750 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10751 done
10752fi
c6b750e1 10753
5ae72758
DJ
10754if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10755 set dummy objdump
10756 if test $build = $target ; then
10757 OBJDUMP_FOR_TARGET="$2"
10758 else
10759 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10760 fi
d3f5afc4
MS
10761else
10762 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10763fi
10764
3a35eeb3
PB
10765else
10766 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10767fi
10768
10769
10770
10771
10772if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10773 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10774 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10775echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10776 if test -x $with_build_time_tools/ranlib; then
10777 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10778 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10779 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10780echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10781 else
c6b750e1
DJ
10782 echo "$as_me:$LINENO: result: no" >&5
10783echo "${ECHO_T}no" >&6
3a35eeb3 10784 fi
2429c060
PB
10785 elif test $build != $host && test $have_gcc_for_target = yes; then
10786 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10787 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10788 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10789 fi
10790fi
c6b750e1 10791if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10792 # Extract the first word of "ranlib", so it can be a program name with args.
10793set dummy ranlib; ac_word=$2
c6b750e1
DJ
10794echo "$as_me:$LINENO: checking for $ac_word" >&5
10795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10798else
c6b750e1
DJ
10799 case $RANLIB_FOR_TARGET in
10800 [\\/]* | ?:[\\/]*)
2429c060
PB
10801 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10802 ;;
2429c060 10803 *)
c6b750e1
DJ
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805for as_dir in $gcc_cv_tool_dirs
10806do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815done
10816done
10817
2429c060
PB
10818 ;;
10819esac
10820fi
c6b750e1
DJ
10821RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10822
2429c060 10823if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10824 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10825echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10826else
c6b750e1
DJ
10827 echo "$as_me:$LINENO: result: no" >&5
10828echo "${ECHO_T}no" >&6
2429c060
PB
10829fi
10830
10831fi
10832if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10833
10834
10835if test -n "$RANLIB_FOR_TARGET"; then
10836 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10837elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10838 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10839fi
10840
10841if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10842 for ncn_progname in ranlib; do
10843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10844set dummy ${ncn_progname}; ac_word=$2
10845echo "$as_me:$LINENO: checking for $ac_word" >&5
10846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10847if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 if test -n "$RANLIB_FOR_TARGET"; then
10851 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10852else
10853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $PATH
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10860 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864done
10865done
10866
10867fi
10868fi
10869RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10870if test -n "$RANLIB_FOR_TARGET"; then
10871 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10872echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10873else
10874 echo "$as_me:$LINENO: result: no" >&5
10875echo "${ECHO_T}no" >&6
10876fi
10877
10878 done
10879fi
10880
10881if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10882 for ncn_progname in ranlib; do
c6b750e1
DJ
10883 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10884echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10885 if test -x $with_build_time_tools/${ncn_progname}; then
10886 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10887 echo "$as_me:$LINENO: result: yes" >&5
10888echo "${ECHO_T}yes" >&6
2429c060
PB
10889 break
10890 else
c6b750e1
DJ
10891 echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6
2429c060
PB
10893 fi
10894 done
10895fi
10896
10897if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10898 for ncn_progname in ranlib; do
10899 if test -n "$ncn_target_tool_prefix"; then
10900 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10901set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10902echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10906else
55db4b87
PB
10907 if test -n "$RANLIB_FOR_TARGET"; then
10908 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10909else
c6b750e1
DJ
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921done
10922done
10923
859789af
AC
10924fi
10925fi
c6b750e1 10926RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10927if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10928 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10929echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10930else
c6b750e1
DJ
10931 echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6
859789af
AC
10933fi
10934
2429c060
PB
10935 fi
10936 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10938set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10939echo "$as_me:$LINENO: checking for $ac_word" >&5
10940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10941if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10943else
05cbd757
PB
10944 if test -n "$RANLIB_FOR_TARGET"; then
10945 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10946else
c6b750e1
DJ
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10954 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10957 fi
10958done
10959done
10960
859789af
AC
10961fi
10962fi
c6b750e1 10963RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10964if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10965 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10966echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10967else
c6b750e1
DJ
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
859789af 10970fi
c6b750e1 10971
2429c060
PB
10972 fi
10973 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10974 done
10975fi
c6b750e1 10976
2429c060
PB
10977if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10978 set dummy ranlib
10979 if test $build = $target ; then
10980 RANLIB_FOR_TARGET="$2"
10981 else
10982 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10983 fi
d3f5afc4
MS
10984else
10985 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10986fi
05cbd757 10987
3a35eeb3
PB
10988else
10989 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10990fi
10991
2429c060
PB
10992
10993
10994
10995if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10996 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10997 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10998echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10999 if test -x $with_build_time_tools/strip; then
11000 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11001 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
11002 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11003echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 11004 else
c6b750e1
DJ
11005 echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6
3a35eeb3 11007 fi
2429c060
PB
11008 elif test $build != $host && test $have_gcc_for_target = yes; then
11009 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11010 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11011 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11012 fi
11013fi
c6b750e1 11014if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11015 # Extract the first word of "strip", so it can be a program name with args.
11016set dummy strip; ac_word=$2
c6b750e1
DJ
11017echo "$as_me:$LINENO: checking for $ac_word" >&5
11018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11019if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11021else
c6b750e1
DJ
11022 case $STRIP_FOR_TARGET in
11023 [\\/]* | ?:[\\/]*)
2429c060
PB
11024 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11025 ;;
2429c060 11026 *)
c6b750e1
DJ
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $gcc_cv_tool_dirs
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11037 fi
11038done
11039done
11040
2429c060
PB
11041 ;;
11042esac
11043fi
c6b750e1
DJ
11044STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11045
2429c060 11046if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11047 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11048echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 11049else
c6b750e1
DJ
11050 echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6
2429c060
PB
11052fi
11053
11054fi
11055if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11056
11057
11058if test -n "$STRIP_FOR_TARGET"; then
11059 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11060elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11061 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11062fi
11063
11064if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11065 for ncn_progname in strip; do
11066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11067set dummy ${ncn_progname}; ac_word=$2
11068echo "$as_me:$LINENO: checking for $ac_word" >&5
11069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11070if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 if test -n "$STRIP_FOR_TARGET"; then
11074 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087done
11088done
11089
11090fi
11091fi
11092STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11093if test -n "$STRIP_FOR_TARGET"; then
11094 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11095echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11096else
11097 echo "$as_me:$LINENO: result: no" >&5
11098echo "${ECHO_T}no" >&6
11099fi
11100
11101 done
11102fi
11103
11104if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11105 for ncn_progname in strip; do
c6b750e1
DJ
11106 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11107echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11108 if test -x $with_build_time_tools/${ncn_progname}; then
11109 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
2429c060
PB
11112 break
11113 else
c6b750e1
DJ
11114 echo "$as_me:$LINENO: result: no" >&5
11115echo "${ECHO_T}no" >&6
2429c060
PB
11116 fi
11117 done
11118fi
11119
11120if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11121 for ncn_progname in strip; do
11122 if test -n "$ncn_target_tool_prefix"; then
11123 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11124set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11125echo "$as_me:$LINENO: checking for $ac_word" >&5
11126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11127if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11129else
11130 if test -n "$STRIP_FOR_TARGET"; then
11131 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11143 fi
11144done
11145done
11146
7e0f7140
GK
11147fi
11148fi
c6b750e1 11149STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11150if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11151 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11152echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11153else
c6b750e1
DJ
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
7e0f7140
GK
11156fi
11157
2429c060
PB
11158 fi
11159 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11161set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11162echo "$as_me:$LINENO: checking for $ac_word" >&5
11163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11164if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11166else
11167 if test -n "$STRIP_FOR_TARGET"; then
11168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11169else
c6b750e1
DJ
11170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171for as_dir in $PATH
11172do
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11177 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 break 2
11180 fi
11181done
11182done
11183
7e0f7140
GK
11184fi
11185fi
c6b750e1 11186STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11187if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11188 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11189echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11190else
c6b750e1
DJ
11191 echo "$as_me:$LINENO: result: no" >&5
11192echo "${ECHO_T}no" >&6
7e0f7140 11193fi
c6b750e1 11194
2429c060
PB
11195 fi
11196 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11197 done
11198fi
c6b750e1 11199
7e0f7140
GK
11200if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11201 set dummy strip
11202 if test $build = $target ; then
11203 STRIP_FOR_TARGET="$2"
11204 else
11205 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11206 fi
d3f5afc4
MS
11207else
11208 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11209fi
11210
3a35eeb3
PB
11211else
11212 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11213fi
11214
11215
11216
11217
11218if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11219 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11220 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11221echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11222 if test -x $with_build_time_tools/windres; then
11223 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11224 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
11225 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11226echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 11227 else
c6b750e1
DJ
11228 echo "$as_me:$LINENO: result: no" >&5
11229echo "${ECHO_T}no" >&6
3a35eeb3 11230 fi
2429c060
PB
11231 elif test $build != $host && test $have_gcc_for_target = yes; then
11232 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11233 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11234 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11235 fi
11236fi
c6b750e1 11237if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11238 # Extract the first word of "windres", so it can be a program name with args.
11239set dummy windres; ac_word=$2
c6b750e1
DJ
11240echo "$as_me:$LINENO: checking for $ac_word" >&5
11241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11242if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11244else
c6b750e1
DJ
11245 case $WINDRES_FOR_TARGET in
11246 [\\/]* | ?:[\\/]*)
2429c060
PB
11247 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11248 ;;
2429c060 11249 *)
c6b750e1
DJ
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $gcc_cv_tool_dirs
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11260 fi
11261done
11262done
11263
2429c060
PB
11264 ;;
11265esac
11266fi
c6b750e1
DJ
11267WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11268
2429c060 11269if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11270 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11271echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 11272else
c6b750e1
DJ
11273 echo "$as_me:$LINENO: result: no" >&5
11274echo "${ECHO_T}no" >&6
2429c060
PB
11275fi
11276
11277fi
11278if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11279
11280
11281if test -n "$WINDRES_FOR_TARGET"; then
11282 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11283elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11284 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11285fi
11286
11287if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11288 for ncn_progname in windres; do
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290set dummy ${ncn_progname}; ac_word=$2
11291echo "$as_me:$LINENO: checking for $ac_word" >&5
11292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11293if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295else
11296 if test -n "$WINDRES_FOR_TARGET"; then
11297 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11309 fi
11310done
11311done
11312
11313fi
11314fi
11315WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11316if test -n "$WINDRES_FOR_TARGET"; then
11317 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11318echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11319else
11320 echo "$as_me:$LINENO: result: no" >&5
11321echo "${ECHO_T}no" >&6
11322fi
11323
11324 done
11325fi
11326
11327if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11328 for ncn_progname in windres; do
c6b750e1
DJ
11329 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11330echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11331 if test -x $with_build_time_tools/${ncn_progname}; then
11332 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11333 echo "$as_me:$LINENO: result: yes" >&5
11334echo "${ECHO_T}yes" >&6
2429c060
PB
11335 break
11336 else
c6b750e1
DJ
11337 echo "$as_me:$LINENO: result: no" >&5
11338echo "${ECHO_T}no" >&6
2429c060
PB
11339 fi
11340 done
11341fi
11342
11343if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11344 for ncn_progname in windres; do
11345 if test -n "$ncn_target_tool_prefix"; then
11346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11347set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11348echo "$as_me:$LINENO: checking for $ac_word" >&5
11349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11350if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11352else
55db4b87
PB
11353 if test -n "$WINDRES_FOR_TARGET"; then
11354 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11355else
c6b750e1
DJ
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11366 fi
11367done
11368done
11369
859789af
AC
11370fi
11371fi
c6b750e1 11372WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11373if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11374 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11375echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11376else
c6b750e1
DJ
11377 echo "$as_me:$LINENO: result: no" >&5
11378echo "${ECHO_T}no" >&6
859789af
AC
11379fi
11380
2429c060
PB
11381 fi
11382 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11384set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11385echo "$as_me:$LINENO: checking for $ac_word" >&5
11386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11387if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11389else
05cbd757
PB
11390 if test -n "$WINDRES_FOR_TARGET"; then
11391 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11392else
c6b750e1
DJ
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404done
11405done
11406
859789af
AC
11407fi
11408fi
c6b750e1 11409WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11410if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11411 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11412echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11413else
c6b750e1
DJ
11414 echo "$as_me:$LINENO: result: no" >&5
11415echo "${ECHO_T}no" >&6
859789af 11416fi
c6b750e1 11417
2429c060
PB
11418 fi
11419 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11420 done
11421fi
c6b750e1 11422
05cbd757
PB
11423if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11424 set dummy windres
11425 if test $build = $target ; then
11426 WINDRES_FOR_TARGET="$2"
859789af 11427 else
05cbd757 11428 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11429 fi
d3f5afc4
MS
11430else
11431 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11432fi
11433
3a35eeb3
PB
11434else
11435 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11436fi
11437
852e5f18 11438
0c24b341
NC
11439
11440
11441if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11442 if test -n "$with_build_time_tools"; then
11443 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11444echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11445 if test -x $with_build_time_tools/windmc; then
11446 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11447 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11448 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11449echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11450 else
11451 echo "$as_me:$LINENO: result: no" >&5
11452echo "${ECHO_T}no" >&6
11453 fi
11454 elif test $build != $host && test $have_gcc_for_target = yes; then
11455 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11456 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11457 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11458 fi
11459fi
11460if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11461 # Extract the first word of "windmc", so it can be a program name with args.
11462set dummy windmc; ac_word=$2
11463echo "$as_me:$LINENO: checking for $ac_word" >&5
11464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11465if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467else
11468 case $WINDMC_FOR_TARGET in
11469 [\\/]* | ?:[\\/]*)
11470 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11471 ;;
11472 *)
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $gcc_cv_tool_dirs
11475do
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11483 fi
11484done
11485done
11486
11487 ;;
11488esac
11489fi
11490WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11491
11492if test -n "$WINDMC_FOR_TARGET"; then
11493 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11494echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11495else
11496 echo "$as_me:$LINENO: result: no" >&5
11497echo "${ECHO_T}no" >&6
11498fi
11499
11500fi
11501if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11502
11503
11504if test -n "$WINDMC_FOR_TARGET"; then
11505 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11506elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11507 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11508fi
11509
11510if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11511 for ncn_progname in windmc; do
11512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11513set dummy ${ncn_progname}; ac_word=$2
11514echo "$as_me:$LINENO: checking for $ac_word" >&5
11515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11516if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 if test -n "$WINDMC_FOR_TARGET"; then
11520 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11521else
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11529 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11532 fi
11533done
11534done
11535
11536fi
11537fi
11538WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11539if test -n "$WINDMC_FOR_TARGET"; then
11540 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11541echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11542else
11543 echo "$as_me:$LINENO: result: no" >&5
11544echo "${ECHO_T}no" >&6
11545fi
11546
11547 done
11548fi
11549
11550if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11551 for ncn_progname in windmc; do
11552 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11553echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11554 if test -x $with_build_time_tools/${ncn_progname}; then
11555 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11556 echo "$as_me:$LINENO: result: yes" >&5
11557echo "${ECHO_T}yes" >&6
11558 break
11559 else
11560 echo "$as_me:$LINENO: result: no" >&5
11561echo "${ECHO_T}no" >&6
11562 fi
11563 done
11564fi
11565
11566if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11567 for ncn_progname in windmc; do
11568 if test -n "$ncn_target_tool_prefix"; then
11569 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11570set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11571echo "$as_me:$LINENO: checking for $ac_word" >&5
11572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 if test -n "$WINDMC_FOR_TARGET"; then
11577 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11578else
11579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591done
11592
11593fi
11594fi
11595WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11596if test -n "$WINDMC_FOR_TARGET"; then
11597 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11598echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11599else
11600 echo "$as_me:$LINENO: result: no" >&5
11601echo "${ECHO_T}no" >&6
11602fi
11603
11604 fi
11605 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11607set dummy ${ncn_progname}; ac_word=$2
11608echo "$as_me:$LINENO: checking for $ac_word" >&5
11609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11610if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612else
11613 if test -n "$WINDMC_FOR_TARGET"; then
11614 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11615else
11616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617for as_dir in $PATH
11618do
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11626 fi
11627done
11628done
11629
11630fi
11631fi
11632WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11633if test -n "$WINDMC_FOR_TARGET"; then
11634 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11635echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11636else
11637 echo "$as_me:$LINENO: result: no" >&5
11638echo "${ECHO_T}no" >&6
11639fi
11640
11641 fi
11642 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11643 done
11644fi
11645
11646if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11647 set dummy windmc
11648 if test $build = $target ; then
11649 WINDMC_FOR_TARGET="$2"
11650 else
11651 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11652 fi
11653else
11654 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11655fi
11656
11657else
11658 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11659fi
11660
11661
be01d343
PB
11662RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11663
c6b750e1
DJ
11664echo "$as_me:$LINENO: checking where to find the target ar" >&5
11665echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11666if test "x${build}" != "x${host}" ; then
2429c060
PB
11667 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11668 # We already found the complete path
b8025f34
AS
11669 ac_dir=`dirname $AR_FOR_TARGET`
11670 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11671echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11672 else
11673 # Canadian cross, just use what we found
c6b750e1
DJ
11674 echo "$as_me:$LINENO: result: pre-installed" >&5
11675echo "${ECHO_T}pre-installed" >&6
2429c060 11676 fi
be01d343
PB
11677else
11678 ok=yes
11679 case " ${configdirs} " in
11680 *" binutils "*) ;;
11681 *) ok=no ;;
11682 esac
c6b750e1 11683
be01d343
PB
11684 if test $ok = yes; then
11685 # An in-tree tool is available and we can use it
11686 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11687 echo "$as_me:$LINENO: result: just compiled" >&5
11688echo "${ECHO_T}just compiled" >&6
2429c060
PB
11689 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
b8025f34
AS
11691 ac_dir=`dirname $AR_FOR_TARGET`
11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11694 elif test "x$target" = "x$host"; then
11695 # We can use an host tool
11696 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11697 echo "$as_me:$LINENO: result: host tool" >&5
11698echo "${ECHO_T}host tool" >&6
be01d343
PB
11699 else
11700 # We need a cross tool
c6b750e1
DJ
11701 echo "$as_me:$LINENO: result: pre-installed" >&5
11702echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11703 fi
11704fi
4b900473 11705
c6b750e1
DJ
11706echo "$as_me:$LINENO: checking where to find the target as" >&5
11707echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11708if test "x${build}" != "x${host}" ; then
2429c060
PB
11709 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11710 # We already found the complete path
b8025f34
AS
11711 ac_dir=`dirname $AS_FOR_TARGET`
11712 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11713echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11714 else
11715 # Canadian cross, just use what we found
c6b750e1
DJ
11716 echo "$as_me:$LINENO: result: pre-installed" >&5
11717echo "${ECHO_T}pre-installed" >&6
2429c060 11718 fi
be01d343
PB
11719else
11720 ok=yes
11721 case " ${configdirs} " in
11722 *" gas "*) ;;
11723 *) ok=no ;;
11724 esac
c6b750e1 11725
be01d343
PB
11726 if test $ok = yes; then
11727 # An in-tree tool is available and we can use it
11728 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11729 echo "$as_me:$LINENO: result: just compiled" >&5
11730echo "${ECHO_T}just compiled" >&6
2429c060
PB
11731 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
b8025f34
AS
11733 ac_dir=`dirname $AS_FOR_TARGET`
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11736 elif test "x$target" = "x$host"; then
11737 # We can use an host tool
11738 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11739 echo "$as_me:$LINENO: result: host tool" >&5
11740echo "${ECHO_T}host tool" >&6
be01d343
PB
11741 else
11742 # We need a cross tool
c6b750e1
DJ
11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11745 fi
11746fi
4b900473 11747
c6b750e1
DJ
11748echo "$as_me:$LINENO: checking where to find the target cc" >&5
11749echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11750if test "x${build}" != "x${host}" ; then
2429c060
PB
11751 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11752 # We already found the complete path
b8025f34
AS
11753 ac_dir=`dirname $CC_FOR_TARGET`
11754 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11755echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11756 else
11757 # Canadian cross, just use what we found
c6b750e1
DJ
11758 echo "$as_me:$LINENO: result: pre-installed" >&5
11759echo "${ECHO_T}pre-installed" >&6
2429c060 11760 fi
be01d343
PB
11761else
11762 ok=yes
11763 case " ${configdirs} " in
11764 *" gcc "*) ;;
11765 *) ok=no ;;
11766 esac
c6b750e1 11767
be01d343
PB
11768 if test $ok = yes; then
11769 # An in-tree tool is available and we can use it
11770 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11771 echo "$as_me:$LINENO: result: just compiled" >&5
11772echo "${ECHO_T}just compiled" >&6
2429c060
PB
11773 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
b8025f34
AS
11775 ac_dir=`dirname $CC_FOR_TARGET`
11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11778 elif test "x$target" = "x$host"; then
11779 # We can use an host tool
11780 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11781 echo "$as_me:$LINENO: result: host tool" >&5
11782echo "${ECHO_T}host tool" >&6
be01d343
PB
11783 else
11784 # We need a cross tool
c6b750e1
DJ
11785 echo "$as_me:$LINENO: result: pre-installed" >&5
11786echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11787 fi
11788fi
4b900473 11789
c6b750e1
DJ
11790echo "$as_me:$LINENO: checking where to find the target c++" >&5
11791echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11792if test "x${build}" != "x${host}" ; then
2429c060
PB
11793 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
b8025f34
AS
11795 ac_dir=`dirname $CXX_FOR_TARGET`
11796 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11797echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11798 else
11799 # Canadian cross, just use what we found
c6b750e1
DJ
11800 echo "$as_me:$LINENO: result: pre-installed" >&5
11801echo "${ECHO_T}pre-installed" >&6
2429c060 11802 fi
be01d343
PB
11803else
11804 ok=yes
11805 case " ${configdirs} " in
11806 *" gcc "*) ;;
11807 *) ok=no ;;
11808 esac
11809 case ,${enable_languages}, in
11810 *,c++,*) ;;
11811 *) ok=no ;;
11812 esac
11813 if test $ok = yes; then
11814 # An in-tree tool is available and we can use it
11815 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
11816 echo "$as_me:$LINENO: result: just compiled" >&5
11817echo "${ECHO_T}just compiled" >&6
2429c060
PB
11818 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11819 # We already found the complete path
b8025f34
AS
11820 ac_dir=`dirname $CXX_FOR_TARGET`
11821 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11822echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11823 elif test "x$target" = "x$host"; then
11824 # We can use an host tool
11825 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11826 echo "$as_me:$LINENO: result: host tool" >&5
11827echo "${ECHO_T}host tool" >&6
be01d343
PB
11828 else
11829 # We need a cross tool
c6b750e1
DJ
11830 echo "$as_me:$LINENO: result: pre-installed" >&5
11831echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11832 fi
11833fi
4b900473 11834
c6b750e1
DJ
11835echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11836echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11837if test "x${build}" != "x${host}" ; then
2429c060
PB
11838 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11839 # We already found the complete path
b8025f34
AS
11840 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11841 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11842echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11843 else
11844 # Canadian cross, just use what we found
c6b750e1
DJ
11845 echo "$as_me:$LINENO: result: pre-installed" >&5
11846echo "${ECHO_T}pre-installed" >&6
2429c060 11847 fi
be01d343
PB
11848else
11849 ok=yes
11850 case " ${configdirs} " in
11851 *" gcc "*) ;;
11852 *) ok=no ;;
11853 esac
11854 case ,${enable_languages}, in
11855 *,c++,*) ;;
11856 *) ok=no ;;
11857 esac
11858 if test $ok = yes; then
11859 # An in-tree tool is available and we can use it
11860 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
11861 echo "$as_me:$LINENO: result: just compiled" >&5
11862echo "${ECHO_T}just compiled" >&6
2429c060
PB
11863 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11864 # We already found the complete path
b8025f34
AS
11865 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11866 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11867echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11868 elif test "x$target" = "x$host"; then
11869 # We can use an host tool
11870 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11871 echo "$as_me:$LINENO: result: host tool" >&5
11872echo "${ECHO_T}host tool" >&6
be01d343
PB
11873 else
11874 # We need a cross tool
c6b750e1
DJ
11875 echo "$as_me:$LINENO: result: pre-installed" >&5
11876echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11877 fi
11878fi
4b900473 11879
c6b750e1
DJ
11880echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11881echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11882if test "x${build}" != "x${host}" ; then
2429c060
PB
11883 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11884 # We already found the complete path
b8025f34
AS
11885 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11886 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11887echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11888 else
11889 # Canadian cross, just use what we found
c6b750e1
DJ
11890 echo "$as_me:$LINENO: result: pre-installed" >&5
11891echo "${ECHO_T}pre-installed" >&6
2429c060 11892 fi
be01d343
PB
11893else
11894 ok=yes
11895 case " ${configdirs} " in
11896 *" binutils "*) ;;
11897 *) ok=no ;;
11898 esac
c6b750e1 11899
be01d343
PB
11900 if test $ok = yes; then
11901 # An in-tree tool is available and we can use it
11902 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11903 echo "$as_me:$LINENO: result: just compiled" >&5
11904echo "${ECHO_T}just compiled" >&6
2429c060
PB
11905 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11906 # We already found the complete path
b8025f34
AS
11907 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11908 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11909echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11910 elif test "x$target" = "x$host"; then
11911 # We can use an host tool
11912 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11913 echo "$as_me:$LINENO: result: host tool" >&5
11914echo "${ECHO_T}host tool" >&6
be01d343
PB
11915 else
11916 # We need a cross tool
c6b750e1
DJ
11917 echo "$as_me:$LINENO: result: pre-installed" >&5
11918echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11919 fi
11920fi
4b900473 11921
c6b750e1
DJ
11922echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11923echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11924if test "x${build}" != "x${host}" ; then
2429c060
PB
11925 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11926 # We already found the complete path
b8025f34
AS
11927 ac_dir=`dirname $GCC_FOR_TARGET`
11928 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11929echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11930 else
11931 # Canadian cross, just use what we found
c6b750e1
DJ
11932 echo "$as_me:$LINENO: result: pre-installed" >&5
11933echo "${ECHO_T}pre-installed" >&6
2429c060 11934 fi
be01d343
PB
11935else
11936 ok=yes
11937 case " ${configdirs} " in
11938 *" gcc "*) ;;
11939 *) ok=no ;;
11940 esac
c6b750e1 11941
be01d343
PB
11942 if test $ok = yes; then
11943 # An in-tree tool is available and we can use it
11944 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11945 echo "$as_me:$LINENO: result: just compiled" >&5
11946echo "${ECHO_T}just compiled" >&6
2429c060
PB
11947 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11948 # We already found the complete path
b8025f34
AS
11949 ac_dir=`dirname $GCC_FOR_TARGET`
11950 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11951echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11952 elif test "x$target" = "x$host"; then
11953 # We can use an host tool
11954 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11955 echo "$as_me:$LINENO: result: host tool" >&5
11956echo "${ECHO_T}host tool" >&6
be01d343
PB
11957 else
11958 # We need a cross tool
c6b750e1
DJ
11959 echo "$as_me:$LINENO: result: pre-installed" >&5
11960echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11961 fi
11962fi
4b900473 11963
c6b750e1
DJ
11964echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11965echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11966if test "x${build}" != "x${host}" ; then
2429c060
PB
11967 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11968 # We already found the complete path
b8025f34
AS
11969 ac_dir=`dirname $GCJ_FOR_TARGET`
11970 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11971echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11972 else
11973 # Canadian cross, just use what we found
c6b750e1
DJ
11974 echo "$as_me:$LINENO: result: pre-installed" >&5
11975echo "${ECHO_T}pre-installed" >&6
2429c060 11976 fi
be01d343
PB
11977else
11978 ok=yes
11979 case " ${configdirs} " in
11980 *" gcc "*) ;;
11981 *) ok=no ;;
11982 esac
11983 case ,${enable_languages}, in
11984 *,java,*) ;;
11985 *) ok=no ;;
11986 esac
11987 if test $ok = yes; then
11988 # An in-tree tool is available and we can use it
11989 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11990 echo "$as_me:$LINENO: result: just compiled" >&5
11991echo "${ECHO_T}just compiled" >&6
2429c060
PB
11992 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11993 # We already found the complete path
b8025f34
AS
11994 ac_dir=`dirname $GCJ_FOR_TARGET`
11995 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11996echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11997 elif test "x$target" = "x$host"; then
11998 # We can use an host tool
11999 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
12000 echo "$as_me:$LINENO: result: host tool" >&5
12001echo "${ECHO_T}host tool" >&6
be01d343
PB
12002 else
12003 # We need a cross tool
c6b750e1
DJ
12004 echo "$as_me:$LINENO: result: pre-installed" >&5
12005echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12006 fi
12007fi
4b900473 12008
c6b750e1
DJ
12009echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12010echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 12011if test "x${build}" != "x${host}" ; then
2429c060
PB
12012 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12013 # We already found the complete path
b8025f34
AS
12014 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12015 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12016echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12017 else
12018 # Canadian cross, just use what we found
c6b750e1
DJ
12019 echo "$as_me:$LINENO: result: pre-installed" >&5
12020echo "${ECHO_T}pre-installed" >&6
2429c060 12021 fi
be01d343
PB
12022else
12023 ok=yes
12024 case " ${configdirs} " in
12025 *" gcc "*) ;;
12026 *) ok=no ;;
12027 esac
12028 case ,${enable_languages}, in
12029 *,fortran,*) ;;
12030 *) ok=no ;;
12031 esac
12032 if test $ok = yes; then
12033 # An in-tree tool is available and we can use it
12034 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12035 echo "$as_me:$LINENO: result: just compiled" >&5
12036echo "${ECHO_T}just compiled" >&6
2429c060
PB
12037 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12038 # We already found the complete path
b8025f34
AS
12039 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12040 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12041echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12042 elif test "x$target" = "x$host"; then
12043 # We can use an host tool
12044 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
12045 echo "$as_me:$LINENO: result: host tool" >&5
12046echo "${ECHO_T}host tool" >&6
be01d343
PB
12047 else
12048 # We need a cross tool
c6b750e1
DJ
12049 echo "$as_me:$LINENO: result: pre-installed" >&5
12050echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12051 fi
12052fi
4b900473 12053
c6b750e1
DJ
12054echo "$as_me:$LINENO: checking where to find the target ld" >&5
12055echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 12056if test "x${build}" != "x${host}" ; then
2429c060
PB
12057 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12058 # We already found the complete path
b8025f34
AS
12059 ac_dir=`dirname $LD_FOR_TARGET`
12060 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12061echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12062 else
12063 # Canadian cross, just use what we found
c6b750e1
DJ
12064 echo "$as_me:$LINENO: result: pre-installed" >&5
12065echo "${ECHO_T}pre-installed" >&6
2429c060 12066 fi
be01d343
PB
12067else
12068 ok=yes
12069 case " ${configdirs} " in
12070 *" ld "*) ;;
12071 *) ok=no ;;
12072 esac
c6b750e1 12073
be01d343
PB
12074 if test $ok = yes; then
12075 # An in-tree tool is available and we can use it
12076 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
12077 echo "$as_me:$LINENO: result: just compiled" >&5
12078echo "${ECHO_T}just compiled" >&6
2429c060
PB
12079 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12080 # We already found the complete path
b8025f34
AS
12081 ac_dir=`dirname $LD_FOR_TARGET`
12082 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12083echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12084 elif test "x$target" = "x$host"; then
12085 # We can use an host tool
12086 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
12087 echo "$as_me:$LINENO: result: host tool" >&5
12088echo "${ECHO_T}host tool" >&6
be01d343
PB
12089 else
12090 # We need a cross tool
c6b750e1
DJ
12091 echo "$as_me:$LINENO: result: pre-installed" >&5
12092echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12093 fi
12094fi
4b900473 12095
c6b750e1
DJ
12096echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12097echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 12098if test "x${build}" != "x${host}" ; then
2429c060
PB
12099 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12100 # We already found the complete path
b8025f34
AS
12101 ac_dir=`dirname $LIPO_FOR_TARGET`
12102 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12103echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12104 else
12105 # Canadian cross, just use what we found
c6b750e1
DJ
12106 echo "$as_me:$LINENO: result: pre-installed" >&5
12107echo "${ECHO_T}pre-installed" >&6
2429c060 12108 fi
be01d343 12109else
2429c060
PB
12110 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12111 # We already found the complete path
b8025f34
AS
12112 ac_dir=`dirname $LIPO_FOR_TARGET`
12113 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12114echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 12115 elif test "x$target" = "x$host"; then
be01d343
PB
12116 # We can use an host tool
12117 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
12118 echo "$as_me:$LINENO: result: host tool" >&5
12119echo "${ECHO_T}host tool" >&6
be01d343
PB
12120 else
12121 # We need a cross tool
c6b750e1
DJ
12122 echo "$as_me:$LINENO: result: pre-installed" >&5
12123echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12124 fi
12125fi
4b900473 12126
c6b750e1
DJ
12127echo "$as_me:$LINENO: checking where to find the target nm" >&5
12128echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 12129if test "x${build}" != "x${host}" ; then
2429c060
PB
12130 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12131 # We already found the complete path
b8025f34
AS
12132 ac_dir=`dirname $NM_FOR_TARGET`
12133 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12134echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12135 else
12136 # Canadian cross, just use what we found
c6b750e1
DJ
12137 echo "$as_me:$LINENO: result: pre-installed" >&5
12138echo "${ECHO_T}pre-installed" >&6
2429c060 12139 fi
be01d343
PB
12140else
12141 ok=yes
12142 case " ${configdirs} " in
12143 *" binutils "*) ;;
12144 *) ok=no ;;
12145 esac
c6b750e1 12146
be01d343
PB
12147 if test $ok = yes; then
12148 # An in-tree tool is available and we can use it
12149 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
12150 echo "$as_me:$LINENO: result: just compiled" >&5
12151echo "${ECHO_T}just compiled" >&6
2429c060
PB
12152 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12153 # We already found the complete path
b8025f34
AS
12154 ac_dir=`dirname $NM_FOR_TARGET`
12155 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12156echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12157 elif test "x$target" = "x$host"; then
12158 # We can use an host tool
12159 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
12160 echo "$as_me:$LINENO: result: host tool" >&5
12161echo "${ECHO_T}host tool" >&6
be01d343
PB
12162 else
12163 # We need a cross tool
c6b750e1
DJ
12164 echo "$as_me:$LINENO: result: pre-installed" >&5
12165echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12166 fi
12167fi
4b900473 12168
c6b750e1
DJ
12169echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12170echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 12171if test "x${build}" != "x${host}" ; then
2429c060
PB
12172 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12173 # We already found the complete path
b8025f34
AS
12174 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12175 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12176echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12177 else
12178 # Canadian cross, just use what we found
c6b750e1
DJ
12179 echo "$as_me:$LINENO: result: pre-installed" >&5
12180echo "${ECHO_T}pre-installed" >&6
2429c060 12181 fi
be01d343
PB
12182else
12183 ok=yes
12184 case " ${configdirs} " in
12185 *" binutils "*) ;;
12186 *) ok=no ;;
12187 esac
c6b750e1 12188
be01d343
PB
12189 if test $ok = yes; then
12190 # An in-tree tool is available and we can use it
12191 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
12192 echo "$as_me:$LINENO: result: just compiled" >&5
12193echo "${ECHO_T}just compiled" >&6
2429c060
PB
12194 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12195 # We already found the complete path
b8025f34
AS
12196 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12197 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12198echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12199 elif test "x$target" = "x$host"; then
12200 # We can use an host tool
12201 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
12202 echo "$as_me:$LINENO: result: host tool" >&5
12203echo "${ECHO_T}host tool" >&6
be01d343
PB
12204 else
12205 # We need a cross tool
c6b750e1
DJ
12206 echo "$as_me:$LINENO: result: pre-installed" >&5
12207echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12208 fi
12209fi
4b900473 12210
c6b750e1
DJ
12211echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12212echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 12213if test "x${build}" != "x${host}" ; then
2429c060
PB
12214 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12215 # We already found the complete path
b8025f34
AS
12216 ac_dir=`dirname $RANLIB_FOR_TARGET`
12217 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12218echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12219 else
12220 # Canadian cross, just use what we found
c6b750e1
DJ
12221 echo "$as_me:$LINENO: result: pre-installed" >&5
12222echo "${ECHO_T}pre-installed" >&6
2429c060 12223 fi
be01d343
PB
12224else
12225 ok=yes
12226 case " ${configdirs} " in
12227 *" binutils "*) ;;
12228 *) ok=no ;;
12229 esac
c6b750e1 12230
be01d343
PB
12231 if test $ok = yes; then
12232 # An in-tree tool is available and we can use it
12233 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
12234 echo "$as_me:$LINENO: result: just compiled" >&5
12235echo "${ECHO_T}just compiled" >&6
2429c060
PB
12236 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12237 # We already found the complete path
b8025f34
AS
12238 ac_dir=`dirname $RANLIB_FOR_TARGET`
12239 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12240echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12241 elif test "x$target" = "x$host"; then
12242 # We can use an host tool
12243 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
12244 echo "$as_me:$LINENO: result: host tool" >&5
12245echo "${ECHO_T}host tool" >&6
be01d343
PB
12246 else
12247 # We need a cross tool
c6b750e1
DJ
12248 echo "$as_me:$LINENO: result: pre-installed" >&5
12249echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12250 fi
12251fi
4b900473 12252
c6b750e1
DJ
12253echo "$as_me:$LINENO: checking where to find the target strip" >&5
12254echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 12255if test "x${build}" != "x${host}" ; then
2429c060
PB
12256 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12257 # We already found the complete path
b8025f34
AS
12258 ac_dir=`dirname $STRIP_FOR_TARGET`
12259 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12260echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12261 else
12262 # Canadian cross, just use what we found
c6b750e1
DJ
12263 echo "$as_me:$LINENO: result: pre-installed" >&5
12264echo "${ECHO_T}pre-installed" >&6
2429c060 12265 fi
be01d343
PB
12266else
12267 ok=yes
12268 case " ${configdirs} " in
12269 *" binutils "*) ;;
12270 *) ok=no ;;
12271 esac
c6b750e1 12272
be01d343
PB
12273 if test $ok = yes; then
12274 # An in-tree tool is available and we can use it
12275 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
12276 echo "$as_me:$LINENO: result: just compiled" >&5
12277echo "${ECHO_T}just compiled" >&6
2429c060
PB
12278 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12279 # We already found the complete path
b8025f34
AS
12280 ac_dir=`dirname $STRIP_FOR_TARGET`
12281 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12282echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12283 elif test "x$target" = "x$host"; then
12284 # We can use an host tool
12285 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12286 echo "$as_me:$LINENO: result: host tool" >&5
12287echo "${ECHO_T}host tool" >&6
be01d343
PB
12288 else
12289 # We need a cross tool
c6b750e1
DJ
12290 echo "$as_me:$LINENO: result: pre-installed" >&5
12291echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12292 fi
12293fi
4b900473 12294
c6b750e1
DJ
12295echo "$as_me:$LINENO: checking where to find the target windres" >&5
12296echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12297if test "x${build}" != "x${host}" ; then
2429c060
PB
12298 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12299 # We already found the complete path
b8025f34
AS
12300 ac_dir=`dirname $WINDRES_FOR_TARGET`
12301 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12302echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12303 else
12304 # Canadian cross, just use what we found
c6b750e1
DJ
12305 echo "$as_me:$LINENO: result: pre-installed" >&5
12306echo "${ECHO_T}pre-installed" >&6
2429c060 12307 fi
be01d343
PB
12308else
12309 ok=yes
12310 case " ${configdirs} " in
12311 *" binutils "*) ;;
12312 *) ok=no ;;
12313 esac
c6b750e1 12314
be01d343
PB
12315 if test $ok = yes; then
12316 # An in-tree tool is available and we can use it
12317 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12318 echo "$as_me:$LINENO: result: just compiled" >&5
12319echo "${ECHO_T}just compiled" >&6
2429c060
PB
12320 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12321 # We already found the complete path
b8025f34
AS
12322 ac_dir=`dirname $WINDRES_FOR_TARGET`
12323 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12324echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12325 elif test "x$target" = "x$host"; then
12326 # We can use an host tool
12327 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12328 echo "$as_me:$LINENO: result: host tool" >&5
12329echo "${ECHO_T}host tool" >&6
be01d343
PB
12330 else
12331 # We need a cross tool
c6b750e1
DJ
12332 echo "$as_me:$LINENO: result: pre-installed" >&5
12333echo "${ECHO_T}pre-installed" >&6
be01d343 12334 fi
a0da8069 12335fi
54752a6b 12336
0c24b341
NC
12337echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12338echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12339if test "x${build}" != "x${host}" ; then
12340 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12341 # We already found the complete path
12342 ac_dir=`dirname $WINDMC_FOR_TARGET`
12343 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12344echo "${ECHO_T}pre-installed in $ac_dir" >&6
12345 else
12346 # Canadian cross, just use what we found
12347 echo "$as_me:$LINENO: result: pre-installed" >&5
12348echo "${ECHO_T}pre-installed" >&6
12349 fi
12350else
12351 ok=yes
12352 case " ${configdirs} " in
12353 *" binutils "*) ;;
12354 *) ok=no ;;
12355 esac
12356
12357 if test $ok = yes; then
12358 # An in-tree tool is available and we can use it
12359 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12360 echo "$as_me:$LINENO: result: just compiled" >&5
12361echo "${ECHO_T}just compiled" >&6
12362 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12363 # We already found the complete path
12364 ac_dir=`dirname $WINDMC_FOR_TARGET`
12365 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12366echo "${ECHO_T}pre-installed in $ac_dir" >&6
12367 elif test "x$target" = "x$host"; then
12368 # We can use an host tool
12369 WINDMC_FOR_TARGET='$(WINDMC)'
12370 echo "$as_me:$LINENO: result: host tool" >&5
12371echo "${ECHO_T}host tool" >&6
12372 else
12373 # We need a cross tool
12374 echo "$as_me:$LINENO: result: pre-installed" >&5
12375echo "${ECHO_T}pre-installed" >&6
12376 fi
12377fi
12378
54752a6b
NN
12379
12380
be01d343 12381
4b900473 12382
a0da8069
NN
12383# Certain tools may need extra flags.
12384AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12385RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12386NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12387
be01d343
PB
12388# When building target libraries, except in a Canadian cross, we use
12389# the same toolchain as the compiler we just built.
12390COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12391COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12392COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12393if test $host = $build; then
12394 case " $configdirs " in
12395 *" gcc "*)
12396 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12397 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12398 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12399 ;;
12400 esac
12401fi
12402
12403
12404
12405
12406
c6b750e1
DJ
12407echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12408echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12409# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12410if test "${enable_maintainer_mode+set}" = set; then
12411 enableval="$enable_maintainer_mode"
12412 USE_MAINTAINER_MODE=$enableval
12413else
12414 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12415fi;
12416echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12417echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12418
12419
12420if test "$USE_MAINTAINER_MODE" = yes; then
12421 MAINTAINER_MODE_TRUE=
12422 MAINTAINER_MODE_FALSE='#'
12423else
12424 MAINTAINER_MODE_TRUE='#'
12425 MAINTAINER_MODE_FALSE=
c6b750e1 12426fi
3d5e36ae
AO
12427MAINT=$MAINTAINER_MODE_TRUE
12428
1d39f329
NN
12429# ---------------------
12430# GCC bootstrap support
12431# ---------------------
12432
12433# Stage specific cflags for build.
12434stage1_cflags="-g"
12435case $build in
12436 vax-*-*)
12437 case ${GCC} in
12438 yes) stage1_cflags="-g -Wa,-J" ;;
12439 *) stage1_cflags="-g -J" ;;
12440 esac ;;
1d39f329
NN
12441esac
12442
1d89b610
PB
12443# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12444if test "$GCC" = yes; then
12445 saved_CFLAGS="$CFLAGS"
12446
12447 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12448 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12449 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12450echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457
2038f525
PB
12458#if (__GNUC__ < 3) \
12459 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12460 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12461#error http://gcc.gnu.org/PR29382
12462#endif
12463
c6b750e1
DJ
12464int
12465main ()
12466{
12467
12468 ;
12469 return 0;
12470}
12471_ACEOF
12472rm -f conftest.$ac_objext
12473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 echo "$as_me:$LINENO: result: yes" >&5
12495echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12496else
12497 echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500echo "$as_me:$LINENO: result: no" >&5
12501echo "${ECHO_T}no" >&6
12502fi
12503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12504
12505 CFLAGS="$saved_CFLAGS"
12506fi
12507
12508
1d39f329 12509
8a0d8a5c
PB
12510# Enable --enable-checking in stage1 of the compiler.
12511# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12512if test "${enable_stage1_checking+set}" = set; then
12513 enableval="$enable_stage1_checking"
12514 stage1_checking=--enable-checking=${enable_stage1_checking}
12515else
5566c1fa 12516 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12517 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12518else
5566c1fa 12519 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12520fi
c6b750e1 12521fi;
8a0d8a5c
PB
12522
12523
1d39f329 12524# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12525# Check whether --enable-werror or --disable-werror was given.
12526if test "${enable_werror+set}" = set; then
12527 enableval="$enable_werror"
c6b750e1 12528
1d39f329 12529else
a0323144 12530 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12531 enable_werror=yes
79fcd0ec
PB
12532else
12533 enable_werror=no
12534fi
c6b750e1 12535fi;
1a6f2dc7
NN
12536case ${enable_werror} in
12537 yes) stage2_werror_flag="--enable-werror-always" ;;
12538 *) stage2_werror_flag="" ;;
1d39f329
NN
12539esac
12540
12541
108a6f8e 12542# Flags needed to enable html installing and building
c6b750e1 12543
108a6f8e
CD
12544# Check whether --with-datarootdir or --without-datarootdir was given.
12545if test "${with_datarootdir+set}" = set; then
12546 withval="$with_datarootdir"
12547 datarootdir="\${prefix}/${withval}"
12548else
12549 datarootdir="\${prefix}/share"
c6b750e1 12550fi;
108a6f8e
CD
12551
12552
12553# Check whether --with-docdir or --without-docdir was given.
12554if test "${with_docdir+set}" = set; then
12555 withval="$with_docdir"
12556 docdir="\${prefix}/${withval}"
12557else
12558 docdir="\${datarootdir}/doc"
c6b750e1 12559fi;
108a6f8e
CD
12560
12561
a3ca38d2
DD
12562# Check whether --with-pdfdir or --without-pdfdir was given.
12563if test "${with_pdfdir+set}" = set; then
12564 withval="$with_pdfdir"
12565 pdfdir="\${prefix}/${withval}"
12566else
12567 pdfdir="\${docdir}"
12568fi;
12569
12570
108a6f8e
CD
12571# Check whether --with-htmldir or --without-htmldir was given.
12572if test "${with_htmldir+set}" = set; then
12573 withval="$with_htmldir"
12574 htmldir="\${prefix}/${withval}"
12575else
12576 htmldir="\${docdir}"
c6b750e1 12577fi;
108a6f8e
CD
12578
12579
12580
12581
12582
b8025f34 12583
c6b750e1
DJ
12584 ac_config_files="$ac_config_files Makefile"
12585cat >confcache <<\_ACEOF
a0da8069
NN
12586# This file is a shell script that caches the results of configure
12587# tests run on this system so they can be shared between configure
c6b750e1
DJ
12588# scripts and configure runs, see configure's option --config-cache.
12589# It is not useful on other systems. If it contains results you don't
12590# want to keep, you may remove or edit it.
a0da8069 12591#
c6b750e1
DJ
12592# config.status only pays attention to the cache file if you give it
12593# the --recheck option to rerun configure.
a0da8069 12594#
c6b750e1
DJ
12595# `ac_cv_env_foo' variables (set or unset) will be overridden when
12596# loading this file, other *unset* `ac_cv_foo' will be assigned the
12597# following values.
12598
12599_ACEOF
12600
a0da8069
NN
12601# The following way of writing the cache mishandles newlines in values,
12602# but we know of no workaround that is simple, portable, and efficient.
12603# So, don't put newlines in cache variables' values.
12604# Ultrix sh set writes to stderr and can't be redirected directly,
12605# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12606{
12607 (set) 2>&1 |
12608 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12609 *ac_space=\ *)
12610 # `set' does not quote correctly, so add quotes (double-quote
12611 # substitution turns \\\\ into \\, and sed turns \\ into \).
12612 sed -n \
12613 "s/'/'\\\\''/g;
12614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12615 ;;
12616 *)
12617 # `set' quotes correctly as required by POSIX, so do not add quotes.
12618 sed -n \
12619 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12620 ;;
12621 esac;
12622} |
12623 sed '
12624 t clear
12625 : clear
12626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12627 t end
12628 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12629 : end' >>confcache
12630if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12631 if test -w $cache_file; then
c6b750e1
DJ
12632 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12633 cat confcache >$cache_file
a0da8069
NN
12634 else
12635 echo "not updating unwritable cache $cache_file"
12636 fi
852e5f18 12637fi
a0da8069 12638rm -f confcache
852e5f18 12639
a0da8069
NN
12640test "x$prefix" = xNONE && prefix=$ac_default_prefix
12641# Let make expand exec_prefix.
12642test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12643
c6b750e1
DJ
12644# VPATH may cause trouble with some makes, so we remove $(srcdir),
12645# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12646# trailing colons and then remove the whole line if VPATH becomes empty
12647# (actually we leave an empty line to preserve line numbers).
a0da8069 12648if test "x$srcdir" = x.; then
c6b750e1
DJ
12649 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12650s/:*\$(srcdir):*/:/;
12651s/:*\${srcdir}:*/:/;
12652s/:*@srcdir@:*/:/;
12653s/^\([^=]*=[ ]*\):*/\1/;
12654s/:*$//;
12655s/^[^=]*=[ ]*$//;
12656}'
a0da8069 12657fi
252b5132 12658
a0da8069
NN
12659# Transform confdefs.h into DEFS.
12660# Protect against shell expansion while executing Makefile rules.
12661# Protect against Makefile macro expansion.
c6b750e1
DJ
12662#
12663# If the first sed substitution is executed (which looks for macros that
12664# take arguments), then we branch to the quote section. Otherwise,
12665# look for a macro that doesn't take arguments.
12666cat >confdef2opt.sed <<\_ACEOF
12667t clear
12668: clear
12669s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12670t quote
12671s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12672t quote
12673d
12674: quote
12675s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12676s,\[,\\&,g
12677s,\],\\&,g
12678s,\$,$$,g
12679p
12680_ACEOF
12681# We use echo to avoid assuming a particular line-breaking character.
12682# The extra dot is to prevent the shell from consuming trailing
12683# line-breaks from the sub-command output. A line-break within
12684# single-quotes doesn't work because, if this script is created in a
12685# platform that uses two characters for line-breaks (e.g., DOS), tr
12686# would break.
12687ac_LF_and_DOT=`echo; echo .`
12688DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12689rm -f confdef2opt.sed
12690
12691
12692ac_libobjs=
12693ac_ltlibobjs=
12694for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12695 # 1. Remove the extension, and $U if already installed.
12696 ac_i=`echo "$ac_i" |
12697 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12698 # 2. Add them.
12699 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12700 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12701done
12702LIBOBJS=$ac_libobjs
852e5f18 12703
c6b750e1 12704LTLIBOBJS=$ac_ltlibobjs
376a0e54 12705
cac3d6c4 12706
c6b750e1
DJ
12707
12708: ${CONFIG_STATUS=./config.status}
12709ac_clean_files_save=$ac_clean_files
12710ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12711{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12712echo "$as_me: creating $CONFIG_STATUS" >&6;}
12713cat >$CONFIG_STATUS <<_ACEOF
12714#! $SHELL
12715# Generated by $as_me.
a0da8069 12716# Run this file to recreate the current configuration.
a0da8069 12717# Compiler output produced by configure, useful for debugging
c6b750e1 12718# configure, is in config.log if it exists.
376a0e54 12719
c6b750e1
DJ
12720debug=false
12721ac_cs_recheck=false
12722ac_cs_silent=false
12723SHELL=\${CONFIG_SHELL-$SHELL}
12724_ACEOF
12725
12726cat >>$CONFIG_STATUS <<\_ACEOF
12727## --------------------- ##
12728## M4sh Initialization. ##
12729## --------------------- ##
12730
12731# Be Bourne compatible
12732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12733 emulate sh
12734 NULLCMD=:
12735 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12736 # is contrary to our usage. Disable this feature.
12737 alias -g '${1+"$@"}'='"$@"'
12738elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12739 set -o posix
12740fi
12741DUALCASE=1; export DUALCASE # for MKS sh
12742
12743# Support unset when possible.
12744if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12745 as_unset=unset
12746else
12747 as_unset=false
12748fi
12749
12750
12751# Work around bugs in pre-3.0 UWIN ksh.
12752$as_unset ENV MAIL MAILPATH
12753PS1='$ '
12754PS2='> '
12755PS4='+ '
12756
12757# NLS nuisances.
12758for as_var in \
12759 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12760 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12761 LC_TELEPHONE LC_TIME
12762do
12763 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12764 eval $as_var=C; export $as_var
12765 else
12766 $as_unset $as_var
12767 fi
12768done
12769
12770# Required to use basename.
12771if expr a : '\(a\)' >/dev/null 2>&1; then
12772 as_expr=expr
12773else
12774 as_expr=false
12775fi
12776
12777if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12778 as_basename=basename
12779else
12780 as_basename=false
12781fi
12782
12783
12784# Name of the executable.
12785as_me=`$as_basename "$0" ||
12786$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12787 X"$0" : 'X\(//\)$' \| \
12788 X"$0" : 'X\(/\)$' \| \
12789 . : '\(.\)' 2>/dev/null ||
12790echo X/"$0" |
12791 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12792 /^X\/\(\/\/\)$/{ s//\1/; q; }
12793 /^X\/\(\/\).*/{ s//\1/; q; }
12794 s/.*/./; q'`
12795
12796
12797# PATH needs CR, and LINENO needs CR and PATH.
12798# Avoid depending upon Character Ranges.
12799as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12800as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12801as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12802as_cr_digits='0123456789'
12803as_cr_alnum=$as_cr_Letters$as_cr_digits
12804
12805# The user is always right.
12806if test "${PATH_SEPARATOR+set}" != set; then
12807 echo "#! /bin/sh" >conf$$.sh
12808 echo "exit 0" >>conf$$.sh
12809 chmod +x conf$$.sh
12810 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12811 PATH_SEPARATOR=';'
12812 else
12813 PATH_SEPARATOR=:
12814 fi
12815 rm -f conf$$.sh
12816fi
12817
12818
12819 as_lineno_1=$LINENO
12820 as_lineno_2=$LINENO
12821 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12822 test "x$as_lineno_1" != "x$as_lineno_2" &&
12823 test "x$as_lineno_3" = "x$as_lineno_2" || {
12824 # Find who we are. Look in the path if we contain no path at all
12825 # relative or not.
12826 case $0 in
12827 *[\\/]* ) as_myself=$0 ;;
12828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829for as_dir in $PATH
12830do
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12834done
12835
12836 ;;
12837 esac
12838 # We did not find ourselves, most probably we were run as `sh COMMAND'
12839 # in which case we are not to be found in the path.
12840 if test "x$as_myself" = x; then
12841 as_myself=$0
12842 fi
12843 if test ! -f "$as_myself"; then
12844 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12845echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12846 { (exit 1); exit 1; }; }
12847 fi
12848 case $CONFIG_SHELL in
12849 '')
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12852do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for as_base in sh bash ksh sh5; do
12856 case $as_dir in
12857 /*)
12858 if ("$as_dir/$as_base" -c '
12859 as_lineno_1=$LINENO
12860 as_lineno_2=$LINENO
12861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12862 test "x$as_lineno_1" != "x$as_lineno_2" &&
12863 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12864 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12865 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12866 CONFIG_SHELL=$as_dir/$as_base
12867 export CONFIG_SHELL
12868 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12869 fi;;
12870 esac
12871 done
12872done
12873;;
12874 esac
12875
12876 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12877 # uniformly replaced by the line number. The first 'sed' inserts a
12878 # line-number line before each line; the second 'sed' does the real
12879 # work. The second script uses 'N' to pair each line-number line
12880 # with the numbered line, and appends trailing '-' during
12881 # substitution so that $LINENO is not a special case at line end.
12882 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12883 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12884 sed '=' <$as_myself |
12885 sed '
12886 N
12887 s,$,-,
12888 : loop
12889 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12890 t loop
12891 s,-$,,
12892 s,^['$as_cr_digits']*\n,,
12893 ' >$as_me.lineno &&
12894 chmod +x $as_me.lineno ||
12895 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12896echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12897 { (exit 1); exit 1; }; }
12898
12899 # Don't try to exec as it changes $[0], causing all sort of problems
12900 # (the dirname of $[0] is not the place where we might find the
12901 # original and so on. Autoconf is especially sensible to this).
12902 . ./$as_me.lineno
12903 # Exit status is that of the last command.
12904 exit
12905}
12906
12907
12908case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12909 *c*,-n*) ECHO_N= ECHO_C='
12910' ECHO_T=' ' ;;
12911 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12912 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12913esac
12914
12915if expr a : '\(a\)' >/dev/null 2>&1; then
12916 as_expr=expr
12917else
12918 as_expr=false
12919fi
12920
12921rm -f conf$$ conf$$.exe conf$$.file
12922echo >conf$$.file
12923if ln -s conf$$.file conf$$ 2>/dev/null; then
12924 # We could just check for DJGPP; but this test a) works b) is more generic
12925 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12926 if test -f conf$$.exe; then
12927 # Don't use ln at all; we don't have any links
12928 as_ln_s='cp -p'
12929 else
12930 as_ln_s='ln -s'
12931 fi
12932elif ln conf$$.file conf$$ 2>/dev/null; then
12933 as_ln_s=ln
12934else
12935 as_ln_s='cp -p'
12936fi
12937rm -f conf$$ conf$$.exe conf$$.file
12938
12939if mkdir -p . 2>/dev/null; then
12940 as_mkdir_p=:
12941else
12942 test -d ./-p && rmdir ./-p
12943 as_mkdir_p=false
12944fi
12945
12946as_executable_p="test -f"
12947
12948# Sed expression to map a string onto a valid CPP name.
12949as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12950
12951# Sed expression to map a string onto a valid variable name.
12952as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12953
12954
12955# IFS
12956# We need space, tab and new line, in precisely that order.
12957as_nl='
12958'
12959IFS=" $as_nl"
12960
12961# CDPATH.
12962$as_unset CDPATH
12963
12964exec 6>&1
12965
12966# Open the log real soon, to keep \$[0] and so on meaningful, and to
12967# report actual input values of CONFIG_FILES etc. instead of their
12968# values after options handling. Logging --version etc. is OK.
12969exec 5>>config.log
12970{
12971 echo
12972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12973## Running $as_me. ##
12974_ASBOX
12975} >&5
12976cat >&5 <<_CSEOF
12977
12978This file was extended by $as_me, which was
12979generated by GNU Autoconf 2.59. Invocation command line was
12980
12981 CONFIG_FILES = $CONFIG_FILES
12982 CONFIG_HEADERS = $CONFIG_HEADERS
12983 CONFIG_LINKS = $CONFIG_LINKS
12984 CONFIG_COMMANDS = $CONFIG_COMMANDS
12985 $ $0 $@
12986
12987_CSEOF
12988echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12989echo >&5
12990_ACEOF
12991
12992# Files that config.status was made for.
12993if test -n "$ac_config_files"; then
12994 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12995fi
12996
12997if test -n "$ac_config_headers"; then
12998 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12999fi
13000
13001if test -n "$ac_config_links"; then
13002 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13003fi
13004
13005if test -n "$ac_config_commands"; then
13006 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13007fi
13008
13009cat >>$CONFIG_STATUS <<\_ACEOF
13010
13011ac_cs_usage="\
13012\`$as_me' instantiates files from templates according to the
13013current configuration.
13014
13015Usage: $0 [OPTIONS] [FILE]...
13016
13017 -h, --help print this help, then exit
13018 -V, --version print version number, then exit
13019 -q, --quiet do not print progress messages
13020 -d, --debug don't remove temporary files
13021 --recheck update $as_me by reconfiguring in the same conditions
13022 --file=FILE[:TEMPLATE]
13023 instantiate the configuration file FILE
13024
13025Configuration files:
13026$config_files
13027
13028Report bugs to <bug-autoconf@gnu.org>."
13029_ACEOF
13030
13031cat >>$CONFIG_STATUS <<_ACEOF
13032ac_cs_version="\\
13033config.status
13034configured by $0, generated by GNU Autoconf 2.59,
13035 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13036
13037Copyright (C) 2003 Free Software Foundation, Inc.
13038This config.status script is free software; the Free Software Foundation
13039gives unlimited permission to copy, distribute and modify it."
13040srcdir=$srcdir
13041INSTALL="$INSTALL"
13042_ACEOF
13043
13044cat >>$CONFIG_STATUS <<\_ACEOF
13045# If no file are specified by the user, then we need to provide default
13046# value. By we need to know if files were specified by the user.
13047ac_need_defaults=:
13048while test $# != 0
a0da8069 13049do
c6b750e1
DJ
13050 case $1 in
13051 --*=*)
13052 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13053 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13054 ac_shift=:
13055 ;;
13056 -*)
13057 ac_option=$1
13058 ac_optarg=$2
13059 ac_shift=shift
13060 ;;
13061 *) # This is not an option, so the user has probably given explicit
13062 # arguments.
13063 ac_option=$1
13064 ac_need_defaults=false;;
13065 esac
13066
13067 case $ac_option in
13068 # Handling of the options.
13069_ACEOF
13070cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 13071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
13072 ac_cs_recheck=: ;;
13073 --version | --vers* | -V )
13074 echo "$ac_cs_version"; exit 0 ;;
13075 --he | --h)
13076 # Conflict between --help and --header
13077 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13078Try \`$0 --help' for more information." >&5
13079echo "$as_me: error: ambiguous option: $1
13080Try \`$0 --help' for more information." >&2;}
13081 { (exit 1); exit 1; }; };;
13082 --help | --hel | -h )
13083 echo "$ac_cs_usage"; exit 0 ;;
13084 --debug | --d* | -d )
13085 debug=: ;;
13086 --file | --fil | --fi | --f )
13087 $ac_shift
13088 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13089 ac_need_defaults=false;;
13090 --header | --heade | --head | --hea )
13091 $ac_shift
13092 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13093 ac_need_defaults=false;;
13094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13096 ac_cs_silent=: ;;
13097
13098 # This is an error.
13099 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13100Try \`$0 --help' for more information." >&5
13101echo "$as_me: error: unrecognized option: $1
13102Try \`$0 --help' for more information." >&2;}
13103 { (exit 1); exit 1; }; } ;;
13104
13105 *) ac_config_targets="$ac_config_targets $1" ;;
13106
376a0e54 13107 esac
c6b750e1 13108 shift
376a0e54
CM
13109done
13110
c6b750e1 13111ac_configure_extra_args=
376a0e54 13112
c6b750e1
DJ
13113if $ac_cs_silent; then
13114 exec 6>/dev/null
13115 ac_configure_extra_args="$ac_configure_extra_args --silent"
13116fi
376a0e54 13117
c6b750e1
DJ
13118_ACEOF
13119cat >>$CONFIG_STATUS <<_ACEOF
13120if \$ac_cs_recheck; then
13121 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13122 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13123fi
13124
13125_ACEOF
13126
13127
13128
13129
13130
13131cat >>$CONFIG_STATUS <<\_ACEOF
13132for ac_config_target in $ac_config_targets
13133do
13134 case "$ac_config_target" in
13135 # Handling of arguments.
13136 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13137 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13138echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13139 { (exit 1); exit 1; }; };;
13140 esac
13141done
13142
13143# If the user did not use the arguments to specify the items to instantiate,
13144# then the envvar interface is used. Set only those that are not.
13145# We use the long form for the default assignment because of an extremely
13146# bizarre bug on SunOS 4.1.3.
13147if $ac_need_defaults; then
13148 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13149fi
13150
13151# Have a temporary directory for convenience. Make it in the build tree
13152# simply because there is no reason to put it here, and in addition,
13153# creating and moving files from /tmp can sometimes cause problems.
13154# Create a temporary directory, and hook for its removal unless debugging.
13155$debug ||
13156{
13157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13158 trap '{ (exit 1); exit 1; }' 1 2 13 15
13159}
13160
13161# Create a (secure) tmp directory for tmp files.
13162
13163{
13164 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13165 test -n "$tmp" && test -d "$tmp"
13166} ||
13167{
13168 tmp=./confstat$$-$RANDOM
13169 (umask 077 && mkdir $tmp)
13170} ||
13171{
13172 echo "$me: cannot create a temporary directory in ." >&2
13173 { (exit 1); exit 1; }
13174}
13175
13176_ACEOF
13177
13178cat >>$CONFIG_STATUS <<_ACEOF
13179
13180#
13181# CONFIG_FILES section.
13182#
13183
13184# No need to generate the scripts if there are no CONFIG_FILES.
13185# This happens for instance when ./config.status config.h
13186if test -n "\$CONFIG_FILES"; then
13187 # Protect against being on the right side of a sed subst in config.status.
13188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13190s,@SHELL@,$SHELL,;t t
13191s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13192s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13193s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13194s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13195s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13196s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13197s,@exec_prefix@,$exec_prefix,;t t
13198s,@prefix@,$prefix,;t t
13199s,@program_transform_name@,$program_transform_name,;t t
13200s,@bindir@,$bindir,;t t
13201s,@sbindir@,$sbindir,;t t
13202s,@libexecdir@,$libexecdir,;t t
13203s,@datadir@,$datadir,;t t
13204s,@sysconfdir@,$sysconfdir,;t t
13205s,@sharedstatedir@,$sharedstatedir,;t t
13206s,@localstatedir@,$localstatedir,;t t
13207s,@libdir@,$libdir,;t t
13208s,@includedir@,$includedir,;t t
13209s,@oldincludedir@,$oldincludedir,;t t
13210s,@infodir@,$infodir,;t t
13211s,@mandir@,$mandir,;t t
13212s,@build_alias@,$build_alias,;t t
13213s,@host_alias@,$host_alias,;t t
13214s,@target_alias@,$target_alias,;t t
13215s,@DEFS@,$DEFS,;t t
13216s,@ECHO_C@,$ECHO_C,;t t
13217s,@ECHO_N@,$ECHO_N,;t t
13218s,@ECHO_T@,$ECHO_T,;t t
13219s,@LIBS@,$LIBS,;t t
5b553f7e 13220s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
13221s,@build@,$build,;t t
13222s,@build_cpu@,$build_cpu,;t t
13223s,@build_vendor@,$build_vendor,;t t
13224s,@build_os@,$build_os,;t t
13225s,@build_noncanonical@,$build_noncanonical,;t t
13226s,@host_noncanonical@,$host_noncanonical,;t t
13227s,@target_noncanonical@,$target_noncanonical,;t t
13228s,@host@,$host,;t t
13229s,@host_cpu@,$host_cpu,;t t
13230s,@host_vendor@,$host_vendor,;t t
13231s,@host_os@,$host_os,;t t
13232s,@target@,$target,;t t
13233s,@target_cpu@,$target_cpu,;t t
13234s,@target_vendor@,$target_vendor,;t t
13235s,@target_os@,$target_os,;t t
13236s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13237s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13238s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13239s,@LN@,$LN,;t t
13240s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
13241s,@build_libsubdir@,$build_libsubdir,;t t
13242s,@build_subdir@,$build_subdir,;t t
13243s,@host_subdir@,$host_subdir,;t t
13244s,@target_subdir@,$target_subdir,;t t
13245s,@CC@,$CC,;t t
13246s,@CFLAGS@,$CFLAGS,;t t
13247s,@LDFLAGS@,$LDFLAGS,;t t
13248s,@CPPFLAGS@,$CPPFLAGS,;t t
13249s,@ac_ct_CC@,$ac_ct_CC,;t t
13250s,@EXEEXT@,$EXEEXT,;t t
13251s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
13252s,@CXX@,$CXX,;t t
13253s,@CXXFLAGS@,$CXXFLAGS,;t t
13254s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
13255s,@GNATBIND@,$GNATBIND,;t t
13256s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
13257s,@GNATMAKE@,$GNATMAKE,;t t
13258s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
13259s,@do_compare@,$do_compare,;t t
13260s,@gmplibs@,$gmplibs,;t t
13261s,@gmpinc@,$gmpinc,;t t
e28c595f
JM
13262s,@ppllibs@,$ppllibs,;t t
13263s,@pplinc@,$pplinc,;t t
13264s,@clooglibs@,$clooglibs,;t t
13265s,@clooginc@,$clooginc,;t t
c6b750e1
DJ
13266s,@stage1_languages@,$stage1_languages,;t t
13267s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 13268s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
13269s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13270s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1 13271s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 13272s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
13273s,@tooldir@,$tooldir,;t t
13274s,@build_tooldir@,$build_tooldir,;t t
13275s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13276s,@GDB_TK@,$GDB_TK,;t t
13277s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13278s,@build_configargs@,$build_configargs,;t t
13279s,@build_configdirs@,$build_configdirs,;t t
13280s,@host_configargs@,$host_configargs,;t t
13281s,@configdirs@,$configdirs,;t t
13282s,@target_configargs@,$target_configargs,;t t
1576798e
PB
13283s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13284s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13285s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
13286s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13287s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13288s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13289s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13290s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13291s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13292s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13293s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13294s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13295s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13296s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13297s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13298s,@config_shell@,$config_shell,;t t
13299s,@YACC@,$YACC,;t t
13300s,@BISON@,$BISON,;t t
13301s,@M4@,$M4,;t t
13302s,@LEX@,$LEX,;t t
13303s,@FLEX@,$FLEX,;t t
13304s,@MAKEINFO@,$MAKEINFO,;t t
13305s,@EXPECT@,$EXPECT,;t t
13306s,@RUNTEST@,$RUNTEST,;t t
13307s,@AR@,$AR,;t t
13308s,@AS@,$AS,;t t
13309s,@DLLTOOL@,$DLLTOOL,;t t
13310s,@LD@,$LD,;t t
13311s,@LIPO@,$LIPO,;t t
13312s,@NM@,$NM,;t t
13313s,@RANLIB@,$RANLIB,;t t
13314s,@STRIP@,$STRIP,;t t
13315s,@WINDRES@,$WINDRES,;t t
0c24b341 13316s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13317s,@OBJCOPY@,$OBJCOPY,;t t
13318s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13319s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13320s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13321s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13322s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13323s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13324s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13325s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13326s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13327s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13328s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13329s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13330s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13331s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13332s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13333s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13334s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13335s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13336s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13337s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13338s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13339s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13340s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13341s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13342s,@MAINT@,$MAINT,;t t
13343s,@stage1_cflags@,$stage1_cflags,;t t
13344s,@stage1_checking@,$stage1_checking,;t t
13345s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13346s,@datarootdir@,$datarootdir,;t t
13347s,@docdir@,$docdir,;t t
a3ca38d2 13348s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13349s,@htmldir@,$htmldir,;t t
13350s,@LIBOBJS@,$LIBOBJS,;t t
13351s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13352/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13353s,@serialization_dependencies@,,;t t
a0da8069 13354/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13355s,@host_makefile_frag@,,;t t
a0da8069 13356/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13357s,@target_makefile_frag@,,;t t
a0da8069 13358/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13359s,@alphaieee_frag@,,;t t
a0da8069 13360/@ospace_frag@/r $ospace_frag
c6b750e1 13361s,@ospace_frag@,,;t t
a0da8069 13362CEOF
252b5132 13363
c6b750e1
DJ
13364_ACEOF
13365
13366 cat >>$CONFIG_STATUS <<\_ACEOF
13367 # Split the substitutions into bite-sized pieces for seds with
13368 # small command number limits, like on Digital OSF/1 and HP-UX.
13369 ac_max_sed_lines=48
13370 ac_sed_frag=1 # Number of current file.
13371 ac_beg=1 # First line for current file.
13372 ac_end=$ac_max_sed_lines # Line after last line for current file.
13373 ac_more_lines=:
13374 ac_sed_cmds=
13375 while $ac_more_lines; do
13376 if test $ac_beg -gt 1; then
13377 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13378 else
13379 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13380 fi
13381 if test ! -s $tmp/subs.frag; then
13382 ac_more_lines=false
a0da8069 13383 else
c6b750e1
DJ
13384 # The purpose of the label and of the branching condition is to
13385 # speed up the sed processing (if there are no `@' at all, there
13386 # is no need to browse any of the substitutions).
13387 # These are the two extra sed commands mentioned above.
13388 (echo ':t
13389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13390 if test -z "$ac_sed_cmds"; then
13391 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13392 else
13393 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13394 fi
13395 ac_sed_frag=`expr $ac_sed_frag + 1`
13396 ac_beg=$ac_end
13397 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13398 fi
c6b750e1
DJ
13399 done
13400 if test -z "$ac_sed_cmds"; then
13401 ac_sed_cmds=cat
852e5f18 13402 fi
c6b750e1 13403fi # test -n "$CONFIG_FILES"
cac3d6c4 13404
c6b750e1
DJ
13405_ACEOF
13406cat >>$CONFIG_STATUS <<\_ACEOF
13407for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13409 case $ac_file in
13410 - | *:- | *:-:* ) # input from stdin
13411 cat >$tmp/stdin
13412 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13414 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13416 * ) ac_file_in=$ac_file.in ;;
a0da8069 13417 esac
252b5132 13418
c6b750e1
DJ
13419 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13420 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13421$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13422 X"$ac_file" : 'X\(//\)[^/]' \| \
13423 X"$ac_file" : 'X\(//\)$' \| \
13424 X"$ac_file" : 'X\(/\)' \| \
13425 . : '\(.\)' 2>/dev/null ||
13426echo X"$ac_file" |
13427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13429 /^X\(\/\/\)$/{ s//\1/; q; }
13430 /^X\(\/\).*/{ s//\1/; q; }
13431 s/.*/./; q'`
13432 { if $as_mkdir_p; then
13433 mkdir -p "$ac_dir"
cac3d6c4 13434 else
c6b750e1
DJ
13435 as_dir="$ac_dir"
13436 as_dirs=
13437 while test ! -d "$as_dir"; do
13438 as_dirs="$as_dir $as_dirs"
13439 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13441 X"$as_dir" : 'X\(//\)[^/]' \| \
13442 X"$as_dir" : 'X\(//\)$' \| \
13443 X"$as_dir" : 'X\(/\)' \| \
13444 . : '\(.\)' 2>/dev/null ||
13445echo X"$as_dir" |
13446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13448 /^X\(\/\/\)$/{ s//\1/; q; }
13449 /^X\(\/\).*/{ s//\1/; q; }
13450 s/.*/./; q'`
13451 done
13452 test ! -n "$as_dirs" || mkdir $as_dirs
13453 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13454echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13455 { (exit 1); exit 1; }; }; }
13456
13457 ac_builddir=.
252b5132 13458
c6b750e1
DJ
13459if test "$ac_dir" != .; then
13460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13461 # A "../" for each directory in $ac_dir_suffix.
13462 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13463else
13464 ac_dir_suffix= ac_top_builddir=
13465fi
13466
13467case $srcdir in
13468 .) # No --srcdir option. We are building in place.
13469 ac_srcdir=.
13470 if test -z "$ac_top_builddir"; then
13471 ac_top_srcdir=.
13472 else
13473 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13474 fi ;;
13475 [\\/]* | ?:[\\/]* ) # Absolute path.
13476 ac_srcdir=$srcdir$ac_dir_suffix;
13477 ac_top_srcdir=$srcdir ;;
a0da8069 13478 *) # Relative path.
c6b750e1
DJ
13479 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13480 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13481esac
252b5132 13482
c6b750e1
DJ
13483# Do not use `cd foo && pwd` to compute absolute paths, because
13484# the directories may not exist.
13485case `pwd` in
13486.) ac_abs_builddir="$ac_dir";;
13487*)
13488 case "$ac_dir" in
13489 .) ac_abs_builddir=`pwd`;;
13490 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13491 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13492 esac;;
13493esac
13494case $ac_abs_builddir in
13495.) ac_abs_top_builddir=${ac_top_builddir}.;;
13496*)
13497 case ${ac_top_builddir}. in
13498 .) ac_abs_top_builddir=$ac_abs_builddir;;
13499 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13500 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13501 esac;;
13502esac
13503case $ac_abs_builddir in
13504.) ac_abs_srcdir=$ac_srcdir;;
13505*)
13506 case $ac_srcdir in
13507 .) ac_abs_srcdir=$ac_abs_builddir;;
13508 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13509 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13510 esac;;
13511esac
13512case $ac_abs_builddir in
13513.) ac_abs_top_srcdir=$ac_top_srcdir;;
13514*)
13515 case $ac_top_srcdir in
13516 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13517 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13518 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13519 esac;;
13520esac
252b5132 13521
c6b750e1
DJ
13522
13523 case $INSTALL in
13524 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13525 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13526 esac
252b5132 13527
c6b750e1
DJ
13528 if test x"$ac_file" != x-; then
13529 { echo "$as_me:$LINENO: creating $ac_file" >&5
13530echo "$as_me: creating $ac_file" >&6;}
13531 rm -f "$ac_file"
13532 fi
13533 # Let's still pretend it is `configure' which instantiates (i.e., don't
13534 # use $as_me), people would be surprised to read:
13535 # /* config.h. Generated by config.status. */
13536 if test x"$ac_file" = x-; then
13537 configure_input=
13538 else
13539 configure_input="$ac_file. "
13540 fi
13541 configure_input=$configure_input"Generated from `echo $ac_file_in |
13542 sed 's,.*/,,'` by configure."
13543
13544 # First look for the input files in the build tree, otherwise in the
13545 # src tree.
13546 ac_file_inputs=`IFS=:
13547 for f in $ac_file_in; do
13548 case $f in
13549 -) echo $tmp/stdin ;;
13550 [\\/$]*)
13551 # Absolute (can't be DOS-style, as IFS=:)
13552 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13553echo "$as_me: error: cannot find input file: $f" >&2;}
13554 { (exit 1); exit 1; }; }
13555 echo "$f";;
13556 *) # Relative
13557 if test -f "$f"; then
13558 # Build tree
13559 echo "$f"
13560 elif test -f "$srcdir/$f"; then
13561 # Source tree
13562 echo "$srcdir/$f"
13563 else
13564 # /dev/null tree
13565 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13566echo "$as_me: error: cannot find input file: $f" >&2;}
13567 { (exit 1); exit 1; }; }
13568 fi;;
13569 esac
13570 done` || { (exit 1); exit 1; }
13571_ACEOF
13572cat >>$CONFIG_STATUS <<_ACEOF
13573 sed "$ac_vpsub
13574$extrasub
13575_ACEOF
13576cat >>$CONFIG_STATUS <<\_ACEOF
13577:t
13578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13579s,@configure_input@,$configure_input,;t t
13580s,@srcdir@,$ac_srcdir,;t t
13581s,@abs_srcdir@,$ac_abs_srcdir,;t t
13582s,@top_srcdir@,$ac_top_srcdir,;t t
13583s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13584s,@builddir@,$ac_builddir,;t t
13585s,@abs_builddir@,$ac_abs_builddir,;t t
13586s,@top_builddir@,$ac_top_builddir,;t t
13587s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13588s,@INSTALL@,$ac_INSTALL,;t t
13589" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13590 rm -f $tmp/stdin
13591 if test x"$ac_file" != x-; then
13592 mv $tmp/out $ac_file
13593 else
13594 cat $tmp/out
13595 rm -f $tmp/out
13596 fi
c148b4cb 13597
c6b750e1
DJ
13598done
13599_ACEOF
c148b4cb 13600
c6b750e1 13601cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13602
c6b750e1
DJ
13603{ (exit 0); exit 0; }
13604_ACEOF
c148b4cb 13605chmod +x $CONFIG_STATUS
c6b750e1
DJ
13606ac_clean_files=$ac_clean_files_save
13607
13608
13609# configure is writing to config.log, and then calls config.status.
13610# config.status does its own redirection, appending to config.log.
13611# Unfortunately, on DOS this fails, as config.log is still kept open
13612# by configure, so config.status won't be able to write to it; its
13613# output is simply discarded. So we exec the FD to /dev/null,
13614# effectively closing config.log, so it can be properly (re)opened and
13615# appended to by config.status. When coming back to configure, we
13616# need to make the FD available again.
13617if test "$no_create" != yes; then
13618 ac_cs_success=:
13619 ac_config_status_args=
13620 test "$silent" = yes &&
13621 ac_config_status_args="$ac_config_status_args --quiet"
13622 exec 5>/dev/null
13623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13624 exec 5>>config.log
13625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13626 # would make configure fail if this is the last instruction.
13627 $ac_cs_success || { (exit 1); exit 1; }
13628fi
c148b4cb 13629
This page took 1.209765 seconds and 4 git commands to generate.