Minor fixes in sim, gold, gdb for Autoconf 2.64, Automake 1.11.
[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"
e8a5fa9c 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 extra_mpfr_configure_flags extra_mpc_gmp_configure_flags extra_mpc_mpfr_configure_flags stage1_ldflags stage1_libs poststage1_ldflags poststage1_libs 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 compare_exclusions 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
e8a5fa9c 938 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f
JM
939 --disable-ppl-version-check disable check for PPL version
940 --disable-cloog-version-check disable check for CLooG version
521ec477 941 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 942 stage1. Mostly useful for compiler development.
521ec477
DD
943 --enable-objc-gc enable use of Boehm's garbage collector with the
944 GNU Objective-C runtime
945 --enable-bootstrap enable bootstrapping [yes if native build]
946 --enable-serial-[{host,target,build}-]configure
947 force sequential configuration of
c6b750e1 948 sub-packages for the host, target or build
521ec477 949 machine, or all sub-packages
c6b750e1
DJ
950 --enable-maintainer-mode enable make rules and dependencies not useful
951 (and sometimes confusing) to the casual installer
521ec477
DD
952 --enable-stage1-checking[=all] choose additional checking for stage1
953 of the compiler
c6b750e1
DJ
954 --enable-werror enable -Werror in bootstrap stage2 and later
955
956Optional Packages:
957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
959 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
960 --with-mpc=PATH specify prefix directory for installed MPC package.
961 Equivalent to --with-mpc-include=PATH/include
962 plus --with-mpc-lib=PATH/lib
963 --with-mpc-include=PATH
964 specify directory for installed MPC include files
965 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
966 --with-mpfr-dir=PATH this option has been REMOVED
967 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
968 Equivalent to --with-mpfr-include=PATH/include
969 plus --with-mpfr-lib=PATH/lib
970 --with-mpfr-include=PATH
521ec477
DD
971 specify directory for installed MPFR include files
972 --with-mpfr-lib=PATH specify directory for the installed MPFR library
973 --with-gmp-dir=PATH this option has been REMOVED
974 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
975 Equivalent to --with-gmp-include=PATH/include
976 plus --with-gmp-lib=PATH/lib
521ec477
DD
977 --with-gmp-include=PATH specify directory for installed GMP include files
978 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
979 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
980 when linking with PPL
e8a5fa9c
RW
981 --with-stage1-ldflags=FLAGS Linker flags for stage1
982 -with-stage1-libs=LIBS Libraries for stage1
983 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
984 --with-boot-libs=LIBS Libraries for stage2 and later
e28c595f
JM
985 --with-ppl=PATH Specify prefix directory for the installed PPL package
986 Equivalent to --with-ppl-include=PATH/include
987 plus --with-ppl-lib=PATH/lib
988 --with-ppl-include=PATH Specify directory for installed PPL include files
989 --with-ppl-lib=PATH Specify the directory for the installed PPL library
990 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
991 Equivalent to --with-cloog-include=PATH/include
992 plus --with-cloog-lib=PATH/lib
993 --with-cloog-include=PATH Specify directory for installed CLooG include files
994 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 995 --with-build-sysroot=SYSROOT
c6b750e1 996 use sysroot as the system root during the build
8a6ee3ab
JM
997 --with-debug-prefix-map='A=B C=D ...'
998 map A to B, C to D ... in debug information
521ec477 999 --with-build-time-tools=PATH
c6b750e1 1000 use given path to find target tools during the build
521ec477
DD
1001 --with-datarootdir use datarootdir as the data root directory.
1002 --with-docdir install documentation in this directory.
1003 --with-pdfdir install pdf in this directory.
1004 --with-htmldir install html in this directory.
c6b750e1
DJ
1005
1006Some influential environment variables:
1007 CC C compiler command
1008 CFLAGS C compiler flags
1009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1010 nonstandard directory <lib dir>
1011 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1012 headers in a nonstandard directory <include dir>
18f6b6ee
PB
1013 CXX C++ compiler command
1014 CXXFLAGS C++ compiler flags
9a819804
AO
1015 AR AR for the host
1016 AS AS for the host
1017 DLLTOOL DLLTOOL for the host
1018 LD LD for the host
1019 LIPO LIPO for the host
1020 NM NM for the host
1021 RANLIB RANLIB for the host
1022 STRIP STRIP for the host
1023 WINDRES WINDRES for the host
0c24b341 1024 WINDMC WINDMC for the host
9a819804
AO
1025 OBJCOPY OBJCOPY for the host
1026 OBJDUMP OBJDUMP for the host
1027 CC_FOR_TARGET
1028 CC for the target
1029 CXX_FOR_TARGET
1030 CXX for the target
1031 GCC_FOR_TARGET
1032 GCC for the target
1033 GCJ_FOR_TARGET
1034 GCJ for the target
1035 GFORTRAN_FOR_TARGET
1036 GFORTRAN for the target
1037 AR_FOR_TARGET
1038 AR for the target
1039 AS_FOR_TARGET
1040 AS for the target
1041 DLLTOOL_FOR_TARGET
1042 DLLTOOL for the target
1043 LD_FOR_TARGET
1044 LD for the target
1045 LIPO_FOR_TARGET
1046 LIPO for the target
1047 NM_FOR_TARGET
1048 NM for the target
1049 OBJDUMP_FOR_TARGET
1050 OBJDUMP for the target
1051 RANLIB_FOR_TARGET
1052 RANLIB for the target
1053 STRIP_FOR_TARGET
1054 STRIP for the target
1055 WINDRES_FOR_TARGET
1056 WINDRES for the target
0c24b341
NC
1057 WINDMC_FOR_TARGET
1058 WINDMC for the target
c6b750e1
DJ
1059
1060Use these variables to override the choices made by `configure' or to help
1061it to find libraries and programs with nonstandard names/locations.
1062
1063_ACEOF
1064fi
1065
1066if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1068 ac_popdir=`pwd`
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1071 ac_builddir=.
1072
1073if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077else
1078 ac_dir_suffix= ac_top_builddir=
1079fi
1080
1081case $srcdir in
1082 .) # No --srcdir option. We are building in place.
1083 ac_srcdir=.
1084 if test -z "$ac_top_builddir"; then
1085 ac_top_srcdir=.
1086 else
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 fi ;;
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1092 *) # Relative path.
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095esac
1096
1097# Do not use `cd foo && pwd` to compute absolute paths, because
1098# the directories may not exist.
1099case `pwd` in
1100.) ac_abs_builddir="$ac_dir";;
1101*)
1102 case "$ac_dir" in
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106 esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_builddir=${ac_top_builddir}.;;
1110*)
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115 esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_srcdir=$ac_srcdir;;
1119*)
1120 case $ac_srcdir in
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_srcdir=$ac_top_srcdir;;
1128*)
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133 esac;;
1134esac
1135
1136 cd $ac_dir
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1139 echo
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1142 echo
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1146 echo
1147 $ac_configure --help
1148 else
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 fi
1151 cd $ac_popdir
1152 done
1153fi
1154
1155test -n "$ac_init_help" && exit 0
1156if $ac_init_version; then
1157 cat <<\_ACEOF
1158
1159Copyright (C) 2003 Free Software Foundation, Inc.
1160This configure script is free software; the Free Software Foundation
1161gives unlimited permission to copy, distribute and modify it.
1162_ACEOF
1163 exit 0
1164fi
1165exec 5>config.log
1166cat >&5 <<_ACEOF
1167This file contains any messages produced by compilers while
1168running configure, to aid debugging if configure makes a mistake.
1169
1170It was created by $as_me, which was
1171generated by GNU Autoconf 2.59. Invocation command line was
1172
1173 $ $0 $@
1174
1175_ACEOF
1176{
1177cat <<_ASUNAME
1178## --------- ##
1179## Platform. ##
1180## --------- ##
1181
1182hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187
1188/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190
1191/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198
1199_ASUNAME
1200
1201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202for as_dir in $PATH
1203do
1204 IFS=$as_save_IFS
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1207done
1208
1209} >&5
1210
1211cat >&5 <<_ACEOF
1212
1213
1214## ----------- ##
1215## Core tests. ##
1216## ----------- ##
1217
1218_ACEOF
1219
1220
1221# Keep a trace of the command line.
1222# Strip out --no-create and --no-recursion so they do not pile up.
1223# Strip out --silent because we don't want to record it for future runs.
1224# Also quote any args containing shell meta-characters.
1225# Make two passes to allow for proper duplicate-argument suppression.
1226ac_configure_args=
1227ac_configure_args0=
1228ac_configure_args1=
1229ac_sep=
1230ac_must_keep_next=false
1231for ac_pass in 1 2
1232do
1233 for ac_arg
1234 do
1235 case $ac_arg in
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 continue ;;
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 esac
1243 case $ac_pass in
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 2)
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1249 else
1250 case $ac_arg in
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257 esac
1258 ;;
1259 -* ) ac_must_keep_next=true ;;
1260 esac
1261 fi
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1264 ac_sep=" "
1265 ;;
1266 esac
1267 done
1268done
1269$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271
1272# When interrupted or exit'd, cleanup temporary files, and complete
1273# config.log. We remove comments because anyway the quotes in there
1274# would cause problems or look ugly.
1275# WARNING: Be sure not to use single quotes in there, as some shells,
1276# such as our DU 5.0 friend, will then `close' the trap.
1277trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1279 {
1280 echo
1281
1282 cat <<\_ASBOX
1283## ---------------- ##
1284## Cache variables. ##
1285## ---------------- ##
1286_ASBOX
1287 echo
1288 # The following way of writing the cache mishandles newlines in values,
1289{
1290 (set) 2>&1 |
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292 *ac_space=\ *)
1293 sed -n \
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1296 ;;
1297 *)
1298 sed -n \
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300 ;;
1301 esac;
1302}
1303 echo
1304
1305 cat <<\_ASBOX
1306## ----------------- ##
1307## Output variables. ##
1308## ----------------- ##
1309_ASBOX
1310 echo
1311 for ac_var in $ac_subst_vars
1312 do
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1317
1318 if test -n "$ac_subst_files"; then
1319 cat <<\_ASBOX
1320## ------------- ##
1321## Output files. ##
1322## ------------- ##
1323_ASBOX
1324 echo
1325 for ac_var in $ac_subst_files
1326 do
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1329 done | sort
1330 echo
1331 fi
1332
1333 if test -s confdefs.h; then
1334 cat <<\_ASBOX
1335## ----------- ##
1336## confdefs.h. ##
1337## ----------- ##
1338_ASBOX
1339 echo
1340 sed "/^$/d" confdefs.h | sort
1341 echo
1342 fi
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1346 } >&5
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1349 exit $exit_status
1350 ' 0
1351for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353done
1354ac_signal=0
1355
1356# confdefs.h avoids OS command line length limits that DEFS can exceed.
1357rm -rf conftest* confdefs.h
1358# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359echo >confdefs.h
1360
1361# Predefined preprocessor variables.
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_NAME "$PACKAGE_NAME"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_VERSION "$PACKAGE_VERSION"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_STRING "$PACKAGE_STRING"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385_ACEOF
1386
1387
1388# Let the site file select an alternate cache file if it wants to.
a0da8069 1389# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1390if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 else
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1395 fi
1396fi
1397for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
c6b750e1
DJ
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1402 . "$ac_site_file"
1403 fi
1404done
1405
1406if test -r "$cache_file"; then
c6b750e1
DJ
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411echo "$as_me: loading cache $cache_file" >&6;}
1412 case $cache_file in
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1415 esac
1416 fi
a0da8069 1417else
c6b750e1
DJ
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419echo "$as_me: creating cache $cache_file" >&6;}
1420 >$cache_file
1421fi
1422
1423# Check that the precious variables saved in the cache have kept the same
1424# value.
1425ac_cache_corrupted=false
1426for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1433 set,)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,set)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,);;
1442 *)
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1444 # differences in whitespace do not lead to failure.
1445 ac_old_val_w=`echo x $ac_old_val`
1446 ac_new_val_w=`echo x $ac_new_val`
1447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1450 ac_cache_corrupted=:
1451 else
1452 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1453echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1454 eval $ac_var=\$ac_old_val
1455 fi
1456 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1457echo "$as_me: former value: \`$ac_old_val'" >&2;}
1458 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1459echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1473 fi
1474done
1475if $ac_cache_corrupted; then
7a283e07
RW
1476 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1477echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
a0da8069
NN
1483fi
1484
1485ac_ext=c
a0da8069 1486ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
a0da8069
NN
1503
1504
75778ec4 1505
c6b750e1 1506
7a283e07
RW
1507
1508
1509
c6b750e1
DJ
1510
1511
34a0f3cf 1512
c6b750e1 1513
5b553f7e
RW
1514
1515progname=$0
1516# if PWD already has a value, it is probably wrong.
1517if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1518
1519# Export original configure arguments for use by sub-configures.
1520# Quote arguments with shell meta charatcers.
1521TOPLEVEL_CONFIGURE_ARGUMENTS=
1522set -- "$progname" "$@"
1523for ac_arg
1524do
1525 case "$ac_arg" in
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1528 # if the argument is of the form -foo=baz, quote the baz part only
1529 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1530 *) ;;
1531 esac
1532 # Add the quoted argument to the list.
1533 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1534done
1535if test "$silent" = yes; then
1536 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1537fi
1538# Remove the initial space we just introduced and, as these will be
1539# expanded by make, quote '$'.
1540TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1541
c6b750e1
DJ
1542
1543# Find the build, host, and target systems.
a0da8069 1544ac_aux_dir=
315b3b02 1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
c6b750e1
DJ
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
a0da8069
NN
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
a0da8069 1564fi
c6b750e1
DJ
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1568
c6b750e1
DJ
1569# Make sure we can run config.sub.
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1599
a0da8069 1600
c6b750e1
DJ
1601 case ${build_alias} in
1602 "") build_noncanonical=${build} ;;
1603 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1604esac
1605
1606
cac3d6c4 1607
c6b750e1
DJ
1608 case ${host_alias} in
1609 "") host_noncanonical=${build_noncanonical} ;;
1610 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1611esac
1612
cac3d6c4 1613
c6b750e1
DJ
1614
1615 case ${target_alias} in
1616 "") target_noncanonical=${host_noncanonical} ;;
1617 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1618esac
1619
cac3d6c4 1620
c6b750e1
DJ
1621
1622
1623test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1624 test "$program_prefix$program_suffix$program_transform_name" = \
1625 NONENONEs,x,x, &&
c6b750e1 1626 program_transform_name=s,y,y,
cac3d6c4 1627
c6b750e1
DJ
1628echo "$as_me:$LINENO: checking host system type" >&5
1629echo $ECHO_N "checking host system type... $ECHO_C" >&6
1630if test "${ac_cv_host+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1632else
c6b750e1
DJ
1633 ac_cv_host_alias=$host_alias
1634test -z "$ac_cv_host_alias" &&
1635 ac_cv_host_alias=$ac_cv_build_alias
1636ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1643echo "${ECHO_T}$ac_cv_host" >&6
1644host=$ac_cv_host
1645host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking target system type" >&5
1651echo $ECHO_N "checking target system type... $ECHO_C" >&6
1652if test "${ac_cv_target+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 ac_cv_target_alias=$target_alias
1656test "x$ac_cv_target_alias" = "x" &&
1657 ac_cv_target_alias=$ac_cv_host_alias
1658ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1662
cac3d6c4 1663fi
c6b750e1
DJ
1664echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1665echo "${ECHO_T}$ac_cv_target" >&6
1666target=$ac_cv_target
1667target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672# The aliases save the names the user supplied, while $host etc.
1673# will get canonicalized.
1674test -n "$target_alias" &&
1675 test "$program_prefix$program_suffix$program_transform_name" = \
1676 NONENONEs,x,x, &&
1677 program_prefix=${target_alias}-
a0da8069 1678test "$program_prefix" != NONE &&
c6b750e1 1679 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1680# Use a double $ so make ignores it.
1681test "$program_suffix" != NONE &&
c6b750e1
DJ
1682 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1683# Double any \ or $. echo might interpret backslashes.
1684# By default was `s,x,x', remove it if useless.
1685cat <<\_ACEOF >conftest.sed
1686s/[\\$]/&&/g;s/;s,x,x,$//
1687_ACEOF
1688program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1689rm conftest.sed
cac3d6c4 1690
a0da8069
NN
1691
1692
e5c3f801
NN
1693# Get 'install' or 'install-sh' and its variants.
1694# Find a good install program. We prefer a C program (faster),
1695# so one script is as good as another. But avoid the broken or
1696# incompatible versions:
1697# SysV /etc/install, /usr/sbin/install
1698# SunOS /usr/etc/install
1699# IRIX /sbin/install
1700# AIX /bin/install
c6b750e1 1701# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1702# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1705# OS/2's system install, which has a completely different semantic
e5c3f801 1706# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1707# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1708echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1710if test -z "$INSTALL"; then
c6b750e1
DJ
1711if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1720case $as_dir/ in
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724 /usr/ucb/* ) ;;
1725 *)
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1728 # by default.
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1732 if test $ac_prog = install &&
c6b750e1 1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1734 # AIX install. It has an incompatible calling convention.
1735 :
c6b750e1
DJ
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1739 :
e5c3f801 1740 else
58c85be7
RW
1741 rm -rf conftest.one conftest.two conftest.dir
1742 echo one > conftest.one
1743 echo two > conftest.two
1744 mkdir conftest.dir
1745 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1746 test -s conftest.one && test -s conftest.two &&
1747 test -s conftest.dir/conftest.one &&
1748 test -s conftest.dir/conftest.two
1749 then
1750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1751 break 3
1752 fi
e5c3f801
NN
1753 fi
1754 fi
1755 done
c6b750e1
DJ
1756 done
1757 ;;
1758esac
1759done
1760
58c85be7 1761rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1762
1763fi
1764 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1765 INSTALL=$ac_cv_path_install
e5c3f801 1766 else
58c85be7
RW
1767 # As a last resort, use the slow shell script. Don't cache a
1768 # value for INSTALL within a source directory, because that will
e5c3f801 1769 # break other packages using the cache if that directory is
58c85be7 1770 # removed, or if the value is a relative name.
c6b750e1 1771 INSTALL=$ac_install_sh
e5c3f801
NN
1772 fi
1773fi
c6b750e1
DJ
1774echo "$as_me:$LINENO: result: $INSTALL" >&5
1775echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1776
1777# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1778# It thinks the first close brace ends the variable substitution.
1779test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1780
c6b750e1 1781test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1782
1783test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1784
c6b750e1
DJ
1785echo "$as_me:$LINENO: checking whether ln works" >&5
1786echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1787if test "${acx_cv_prog_LN+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1789else
1790 rm -f conftestdata_t
1791echo >conftestdata_f
1792if ln conftestdata_f conftestdata_t 2>/dev/null
1793then
1794 acx_cv_prog_LN=ln
1795else
1796 acx_cv_prog_LN=no
1797fi
1798rm -f conftestdata_f conftestdata_t
1799
1800fi
1801if test $acx_cv_prog_LN = no; then
1802 LN="cp"
c6b750e1
DJ
1803 echo "$as_me:$LINENO: result: no, using $LN" >&5
1804echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1805else
1806 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1807 echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
656fdd47
PB
1809fi
1810
c6b750e1
DJ
1811echo "$as_me:$LINENO: checking whether ln -s works" >&5
1812echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1813LN_S=$as_ln_s
1814if test "$LN_S" = "ln -s"; then
1815 echo "$as_me:$LINENO: result: yes" >&5
1816echo "${ECHO_T}yes" >&6
cac3d6c4 1817else
c6b750e1
DJ
1818 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1819echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1820fi
1821
e5c3f801 1822
252b5132 1823### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1824### If we are on Windows, search for the shell. This will permit people
1825### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1826### without also having to set CONFIG_SHELL. This code will work when
1827### using bash, which sets OSTYPE.
1828case "${OSTYPE}" in
1829*win32*)
a0da8069
NN
1830 if test x${CONFIG_SHELL} = x ; then
1831 if test ! -f /bin/sh ; then
1832 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1833 CONFIG_SHELL=${SHELL}
1834 export CONFIG_SHELL
1835 else
1836 for prog in sh sh.exe bash bash.exe; do
1837 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1838 for dir in $PATH; do
1839 test -z "$dir" && dir=.
1840 if test -f $dir/$prog; then
1841 CONFIG_SHELL=$dir/$prog
1842 export CONFIG_SHELL
1843 break
1844 fi
1845 done
1846 IFS="$save_ifs"
1847 test -n "${CONFIG_SHELL}" && break
1848 done
1849 fi
1850 fi
1851 fi
1852 ;;
1853esac
1854
1855config_shell=${CONFIG_SHELL-/bin/sh}
1856
a0da8069 1857moveifchange=${srcdir}/move-if-change
252b5132 1858
0fdbe983
DJ
1859srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1860
1861# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1862# a relative path.
1863if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1864 INSTALL="${srcpwd}/install-sh -c"
1865fi
1866
a0da8069
NN
1867# Set srcdir to "." if that's what it is.
1868# This is important for multilib support.
1869pwd=`${PWDCMD-pwd}`
a0da8069
NN
1870if test "${pwd}" = "${srcpwd}" ; then
1871 srcdir=.
252b5132
RH
1872fi
1873
a0da8069 1874topsrcdir=$srcpwd
252b5132 1875
a0da8069 1876extra_host_args=
afefada0 1877
a0da8069
NN
1878### To add a new directory to the tree, first choose whether it is a target
1879### or a host dependent tool. Then put it into the appropriate list
1880### (library or tools, host or target), doing a dependency sort.
252b5132 1881
c6b750e1 1882# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1883# configdirs, or target_configdirs; see the serialization section below.
252b5132 1884
c6b750e1
DJ
1885# Dependency sorting is only needed when *configuration* must be done in
1886# a particular order. In all cases a dependency should be specified in
a0da8069 1887# the Makefile, whether or not it's implicitly specified here.
252b5132 1888
a0da8069
NN
1889# Double entries in build_configdirs, configdirs, or target_configdirs may
1890# cause circular dependencies and break everything horribly.
252b5132 1891
6a9cf61e
PB
1892# these library is used by various programs built for the build
1893# environment
1894#
1895build_libs="build-libiberty"
1896
1897# these tools are built for the build environment
ee025550 1898build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1899
a0da8069
NN
1900# these libraries are used by various programs built for the host environment
1901#
e8a5fa9c 1902host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
a0da8069 1903
a0da8069
NN
1904# these tools are built for the host environment
1905# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1906# know that we are building the simulator.
1907# binutils, gas and ld appear in that order because it makes sense to run
1908# "make check" in that particular order.
93f9b408 1909# If --enable-gold is used, "gold" will replace "ld".
f9806fa5 1910host_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
1911
1912# libgcj represents the runtime libraries only used by gcj.
1913libgcj="target-libffi \
a0da8069
NN
1914 target-zlib \
1915 target-qthreads \
1916 target-libjava"
1917
1918# these libraries are built for the target environment, and are built after
1919# the host libraries and the host tools (which may be a cross compiler)
1920#
b1299c4e
DJ
1921target_libraries="target-libgcc \
1922 target-libiberty \
a0da8069
NN
1923 target-libgloss \
1924 target-newlib \
cff87f51 1925 target-libgomp \
b9459e83 1926 target-libstdc++-v3 \
4b1cb4fe 1927 target-libmudflap \
bb780410 1928 target-libssp \
4b1cb4fe 1929 target-libgfortran \
4f0ef2d8 1930 target-boehm-gc \
83326456 1931 ${libgcj} \
a2592b1b 1932 target-libobjc \
cff87f51 1933 target-libada"
a0da8069 1934
9c14acb8
NN
1935# these tools are built using the target libraries, and are intended to
1936# run only in the target environment
a0da8069 1937#
9c14acb8 1938# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1939# list belongs in this list. those programs are also very likely
1940# candidates for the "native_only" list which follows
1941#
a3dd767d 1942target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1943
a0da8069 1944################################################################################
252b5132 1945
a0da8069
NN
1946## All tools belong in one of the four categories, and are assigned above
1947## We assign ${configdirs} this way to remove all embedded newlines. This
1948## is important because configure will choke if they ever get through.
1949## ${configdirs} is directories we build using the host tools.
1950## ${target_configdirs} is directories we build using the target tools.
a0da8069 1951configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1952target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1953build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1954
9cc8ae67
PB
1955
1956
a0da8069 1957################################################################################
252b5132 1958
a0da8069 1959srcname="gnu development package"
252b5132 1960
a0da8069
NN
1961# This gets set non-empty for some net releases of packages.
1962appdirs=""
252b5132 1963
a0da8069
NN
1964# Define is_cross_compiler to save on calls to 'test'.
1965is_cross_compiler=
1966if test x"${host}" = x"${target}" ; then
1967 is_cross_compiler=no
252b5132 1968else
a0da8069 1969 is_cross_compiler=yes
c6b750e1 1970fi
252b5132 1971
9175bfc0 1972# Find the build and target subdir names.
dd12c3a8 1973
66a79c16
DJ
1974# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1975# have matching libraries, they should use host libraries: Makefile.tpl
1976# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1977# However, they still use the build modules, because the corresponding
1978# host modules (e.g. bison) are only built for the host when bootstrap
1979# finishes. So:
1980# - build_subdir is where we find build modules, and never changes.
1981# - build_libsubdir is where we find build libraries, and can be overridden.
1982
1983# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1984build_subdir="build-${build_noncanonical}"
c6b750e1 1985
66a79c16
DJ
1986# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1987if test "${with_build_libsubdir+set}" = set; then
1988 withval="$with_build_libsubdir"
1989 build_libsubdir="$withval"
1990else
1991 build_libsubdir="$build_subdir"
c6b750e1 1992fi;
b00612cc
PB
1993# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1994if ( test $srcdir = . && test -d gcc ) \
1995 || test -d $srcdir/../host-${host_noncanonical}; then
1996 host_subdir="host-${host_noncanonical}"
1997else
1998 host_subdir=.
1999fi
dd12c3a8
NN
2000# No prefix.
2001target_subdir=${target_noncanonical}
c6b750e1 2002
252b5132 2003
a0da8069
NN
2004# Skipdirs are removed silently.
2005skipdirs=
2006# Noconfigdirs are removed loudly.
2007noconfigdirs=""
252b5132 2008
a0da8069
NN
2009use_gnu_ld=
2010# Make sure we don't let GNU ld be added if we didn't want it.
2011if test x$with_gnu_ld = xno ; then
2012 use_gnu_ld=no
93f9b408 2013 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2014fi
2015
a0da8069
NN
2016use_gnu_as=
2017# Make sure we don't let GNU as be added if we didn't want it.
2018if test x$with_gnu_as = xno ; then
2019 use_gnu_as=no
2020 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2021fi
2022
c6b750e1 2023# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2024# it's not even worth trying to configure, much less build, that tool.
252b5132 2025
a0da8069
NN
2026case ${with_x} in
2027 yes | "") ;; # the default value for this tree is that X11 is available
2028 no)
675c6968 2029 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2030 # We won't be able to build gdbtk without X.
c6b750e1 2031 enable_gdbtk=no
a0da8069
NN
2032 ;;
2033 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2034esac
252b5132 2035
a0da8069 2036# Some tools are only suitable for building in a "native" situation.
c6b750e1 2037# Remove these if host!=target.
701628f5 2038native_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 2039
a0da8069
NN
2040# Similarly, some are only suitable for cross toolchains.
2041# Remove these if host=target.
2042cross_only="target-libgloss target-newlib target-opcodes"
2043
2044case $is_cross_compiler in
2045 no) skipdirs="${skipdirs} ${cross_only}" ;;
2046 yes) skipdirs="${skipdirs} ${native_only}" ;;
2047esac
252b5132 2048
a0da8069
NN
2049# If both --with-headers and --with-libs are specified, default to
2050# --without-newlib.
32be62b5
RS
2051if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2052 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2053 if test x"${with_newlib}" = x ; then
2054 with_newlib=no
2055 fi
252b5132
RH
2056fi
2057
a0da8069
NN
2058# Recognize --with-newlib/--without-newlib.
2059case ${with_newlib} in
2060 no) skipdirs="${skipdirs} target-newlib" ;;
2061 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2062esac
252b5132 2063
93f9b408
ILT
2064# Handle --enable-gold.
2065
2066# Check whether --enable-gold or --disable-gold was given.
2067if test "${enable_gold+set}" = set; then
2068 enableval="$enable_gold"
2069 ENABLE_GOLD=$enableval
2070else
2071 ENABLE_GOLD=no
2072fi;
2073if test "${ENABLE_GOLD}" = "yes"; then
2074 # Check for ELF target.
2075 is_elf=no
2076 case "${target}" in
2077 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2078 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8bcf2718 2079 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
2080 case "${target}" in
2081 *-*-linux*aout* | *-*-linux*oldld*)
2082 ;;
2083 *)
2084 is_elf=yes
2085 ;;
2086 esac
2087 esac
2088
2089 if test "$is_elf" = "yes"; then
2090 # Check for target supported by gold.
2091 case "${target}" in
4a657b0d 2092 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
93f9b408
ILT
2093 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2094 ;;
2095 esac
2096 fi
2097fi
2098
a0da8069 2099# Configure extra directories which are host specific
252b5132 2100
a0da8069
NN
2101case "${host}" in
2102 *-cygwin*)
2103 configdirs="$configdirs libtermcap" ;;
2104esac
252b5132 2105
59f7ec45
HPN
2106# A target can indicate whether a language isn't supported for some reason.
2107# Only spaces may be used in this macro; not newlines or tabs.
2108unsupported_languages=
2109
c6b750e1 2110# Remove more programs from consideration, based on the host or
a0da8069
NN
2111# target this usually means that a port of the program doesn't
2112# exist yet.
252b5132 2113
a0da8069
NN
2114case "${host}" in
2115 hppa*64*-*-*)
2116 noconfigdirs="$noconfigdirs byacc"
2117 ;;
ec11bdc6 2118 i[3456789]86-*-vsta)
675c6968 2119 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2120 ;;
ec11bdc6 2121 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2122 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2123 ;;
2d1e8239
NC
2124 x86_64-*-mingw*)
2125 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2126 ;;
ec11bdc6 2127 i[3456789]86-*-mingw32*)
675c6968 2128 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2129 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2130 ;;
ec11bdc6 2131 i[3456789]86-*-beos*)
675c6968 2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2133 ;;
a0da8069 2134 *-*-cygwin*)
a92834c8 2135 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2136 ;;
2137 *-*-netbsd*)
a92834c8 2138 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2139 ;;
2140 ppc*-*-pe)
675c6968 2141 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2142 ;;
2143 powerpc-*-beos*)
675c6968 2144 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2145 ;;
a0da8069 2146esac
252b5132 2147
4b1cb4fe 2148
a2592b1b
DD
2149# Check whether --enable-libada or --disable-libada was given.
2150if test "${enable_libada+set}" = set; then
2151 enableval="$enable_libada"
2152 ENABLE_LIBADA=$enableval
2153else
2154 ENABLE_LIBADA=yes
c6b750e1 2155fi;
a2592b1b 2156if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2157 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2158fi
2159
5f128533
KH
2160# Check whether --enable-libssp or --disable-libssp was given.
2161if test "${enable_libssp+set}" = set; then
2162 enableval="$enable_libssp"
2163 ENABLE_LIBSSP=$enableval
2164else
2165 ENABLE_LIBSSP=yes
c6b750e1 2166fi;
5f128533 2167
a0da8069
NN
2168# Save it here so that, even in case of --enable-libgcj, if the Java
2169# front-end isn't enabled, we still get libgcj disabled.
2170libgcj_saved=$libgcj
2171case $enable_libgcj in
2172yes)
2173 # If we reset it here, it won't get added to noconfigdirs in the
2174 # target-specific build rules, so it will be forcibly enabled
2175 # (unless the Java language itself isn't enabled).
2176 libgcj=
2177 ;;
2178no)
2179 # Make sure we get it printed in the list of not supported target libs.
2180 noconfigdirs="$noconfigdirs ${libgcj}"
2181 ;;
2182esac
252b5132 2183
4b1cb4fe 2184
a6df5a19
PB
2185# Disable libmudflap on some systems.
2186if test x$enable_libmudflap = x ; then
3e707e94 2187 case "${target}" in
29383458 2188 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2189 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2190 ;;
2191 *-*-freebsd*)
2192 # Enable libmudflap by default in FreeBSD.
2193 ;;
2194 *)
2195 # Disable it by default everywhere else.
2196 noconfigdirs="$noconfigdirs target-libmudflap"
2197 ;;
2198 esac
a6df5a19 2199fi
4b1cb4fe 2200
a6df5a19
PB
2201# Disable libgomp on non POSIX hosted systems.
2202if test x$enable_libgomp = x ; then
b3ded179
PB
2203 # Enable libgomp by default on hosted POSIX systems.
2204 case "${target}" in
29383458 2205 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2206 ;;
2207 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2208 ;;
64ce424c 2209 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2210 ;;
2211 *-*-darwin* | *-*-aix*)
2212 ;;
2213 *)
2214 noconfigdirs="$noconfigdirs target-libgomp"
2215 ;;
2216 esac
a6df5a19 2217fi
b3ded179 2218
691bb5a1
DD
2219# Default libgloss CPU subdirectory.
2220libgloss_dir="$target_cpu"
4b1cb4fe 2221
a0da8069
NN
2222case "${target}" in
2223 *-*-chorusos)
54d1c879 2224 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2225 ;;
24741ab2 2226 powerpc-*-darwin*)
9d39db92 2227 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2228 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2229 ;;
85bd1942
TG
2230 i[3456789]86-*-darwin*)
2231 noconfigdirs="$noconfigdirs ld gprof"
2232 noconfigdirs="$noconfigdirs sim target-rda"
2233 ;;
e8a5fa9c 2234 x86_64-*-darwin[912]*)
652dec25
TG
2235 noconfigdirs="$noconfigdirs ld gas gprof"
2236 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2237 ;;
04d1ab34 2238 *-*-darwin*)
d320aacb 2239 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2240 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2241 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2242 ;;
a0da8069 2243 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2244 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2245 ;;
de0b4a87 2246 *-*-freebsd*)
4b1cb4fe
DD
2247 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2248 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2249 && test -f /usr/local/include/gmp.h; then
2250 with_gmp=/usr/local
2251 fi
2252
2253 # Skip some stuff that's unsupported on some FreeBSD configurations.
2254 case "${target}" in
2255 i*86-*-*) ;;
2256 alpha*-*-*) ;;
2257 *)
54d1c879 2258 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2259 ;;
2260 esac
2261 ;;
f8a495c8
NC
2262 *-*-kaos*)
2263 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2264 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2265 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2266 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2267 noconfigdirs="$noconfigdirs target-libgloss"
2268 ;;
a0da8069
NN
2269 *-*-netbsd*)
2270 # Skip some stuff on all NetBSD configurations.
2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2272
2273 # Skip some stuff that's unsupported on some NetBSD configurations.
2274 case "${target}" in
2275 i*86-*-netbsdelf*) ;;
5b474aa8 2276 arm*-*-netbsdelf*) ;;
a0da8069 2277 *)
54d1c879 2278 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2279 ;;
2280 esac
2281 ;;
2a3124ca 2282 *-*-netware*)
54d1c879 2283 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2284 ;;
2285 *-*-rtems*)
54d1c879 2286 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2287 ;;
1587117a
EC
2288 # The tpf target doesn't support gdb yet.
2289 *-*-tpf*)
54d1c879 2290 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2291 ;;
c1968181 2292 *-*-uclinux*)
54d1c879 2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2294 ;;
a0da8069 2295 *-*-vxworks*)
54d1c879 2296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2297 ;;
2298 alpha*-dec-osf*)
2299 # ld works, but does not support shared libraries.
2300 # newlib is not 64 bit ready. I'm not sure about fileutils.
2301 # gas doesn't generate exception information.
2302 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2303 ;;
2304 alpha*-*-*vms*)
54d1c879 2305 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2306 ;;
2307 alpha*-*-linux*)
2308 # newlib is not 64 bit ready
2309 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2310 ;;
a0da8069
NN
2311 alpha*-*-*)
2312 # newlib is not 64 bit ready
54d1c879 2313 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2314 ;;
4a18bd6b 2315 am33_2.0-*-linux*)
54d1c879 2316 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2317 ;;
a0da8069 2318 sh-*-linux*)
54d1c879 2319 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2320 ;;
a0da8069 2321 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2322 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2323 noconfigdirs="$noconfigdirs target-examples"
2324 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2325 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2326 noconfigdirs="$noconfigdirs expect dejagnu"
2327 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2329 noconfigdirs="$noconfigdirs target-newlib"
2330 case "${host}" in
2331 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2332 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2333 ;;
2334 esac
691bb5a1 2335 libgloss_dir=wince
a0da8069
NN
2336 ;;
2337 arc-*-*)
54d1c879 2338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2339 ;;
caeba88f 2340 arm-semi-aof )
caeba88f 2341 ;;
a0da8069 2342 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2343 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2344 libgloss_dir=arm
a0da8069 2345 ;;
11b04d1f 2346 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2347 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2348 libgloss_dir=arm
a0da8069 2349 ;;
bd70a46f 2350 arm*-*-linux-gnueabi)
6d18b86b 2351 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2352 case ${with_newlib} in
2353 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2354 esac
691bb5a1 2355 libgloss_dir=arm
bd70a46f 2356 ;;
df4a6958 2357 arm*-*-symbianelf*)
54d1c879 2358 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2359 libgloss_dir=arm
df4a6958 2360 ;;
a0da8069 2361 arm-*-pe*)
54d1c879 2362 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2363 ;;
a0da8069 2364 thumb-*-coff)
54d1c879 2365 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2366 ;;
2367 thumb-*-elf)
54d1c879 2368 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2369 ;;
a0da8069 2370 thumb-*-pe)
54d1c879 2371 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2372 ;;
2373 arm-*-riscix*)
54d1c879 2374 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2375 ;;
2376 avr-*-*)
266df637 2377 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2378 ;;
376a0e54 2379 bfin-*-*)
00d89675 2380 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2381 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2382 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2383 fi
2384 ;;
a0da8069 2385 c4x-*-* | tic4x-*-*)
54d1c879 2386 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2387 ;;
2388 c54x*-*-* | tic54x-*-*)
54d1c879 2389 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2390 ;;
52310858
NC
2391 cr16-*-*)
2392 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2393 ;;
c7e66c6d 2394 cris-*-* | crisv32-*-*)
59f7ec45 2395 unsupported_languages="$unsupported_languages java"
c7e66c6d 2396 case "${target}" in
2faa2958 2397 *-*-aout)
096f7d00 2398 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2399 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2400 *-*-elf)
5e818318 2401 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2402 *-*-linux*)
5e818318 2403 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2404 *)
096f7d00 2405 unsupported_languages="$unsupported_languages fortran"
54d1c879 2406 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2407 esac
691bb5a1 2408 libgloss_dir=cris
a0da8069 2409 ;;
3e707e94 2410 crx-*-*)
54d1c879 2411 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2412 ;;
a0da8069 2413 d10v-*-*)
54d1c879 2414 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2415 ;;
2416 d30v-*-*)
54d1c879 2417 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2418 ;;
691bb5a1
DD
2419 ep9312-*-elf | ep9312-*-coff)
2420 libgloss_dir=arm
2421 ;;
a0da8069 2422 fr30-*-elf*)
54d1c879 2423 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2424 ;;
2425 frv-*-*)
54d1c879 2426 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2427 ;;
20135e4c
NC
2428 moxie-*-*)
2429 noconfigdirs="$noconfigdirs ${libgcj}"
2430 noconfigdirs="$noconfigdirs gprof"
2431 ;;
a0da8069 2432 h8300*-*-*)
54d1c879 2433 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2434 ;;
2435 h8500-*-*)
54d1c879 2436 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2437 ;;
caeba88f 2438 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2439 ;;
a0da8069
NN
2440 hppa*64*-*-linux* | parisc*64*-*-linux*)
2441 # In this case, it's because the hppa64-linux target is for
2442 # the kernel only at this point and has no libc, and thus no
2443 # headers, crt*.o, etc., all of which are needed by these.
2444 noconfigdirs="$noconfigdirs target-zlib"
2445 ;;
5dcac624
DA
2446 parisc*-*-linux* | hppa*-*-linux*)
2447 ;;
a0da8069 2448 hppa*-*-*elf* | \
a0da8069
NN
2449 hppa*-*-lites* | \
2450 hppa*-*-openbsd* | \
2451 hppa*64*-*-*)
54d1c879 2452 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2453 ;;
2454 hppa*-hp-hpux11*)
2455 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2456 ;;
691bb5a1
DD
2457 hppa*-*-pro*)
2458 libgloss_dir=pa
2459 ;;
a0da8069
NN
2460 hppa*-*-*)
2461 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2462 # build on HP-UX 10.20.
54d1c879 2463 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2464 ;;
b07c2aad 2465 i960-*-*)
54d1c879 2466 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2467 ;;
a0da8069
NN
2468 ia64*-*-elf*)
2469 # No gdb support yet.
675c6968 2470 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2471 ;;
2472 ia64*-**-hpux*)
2473 # No gdb or ld support yet.
54d1c879 2474 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2475 ;;
19e99079
NC
2476 ia64*-*-*vms*)
2477 # No gdb or ld support yet.
2478 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2479 ;;
caeba88f 2480 i370-*-opened*)
caeba88f 2481 ;;
ec11bdc6 2482 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2483 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2484 libgloss_dir=i386
a0da8069 2485 ;;
ec11bdc6 2486 i[3456789]86-*-linux*)
a0da8069
NN
2487 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2488 # not build java stuff by default.
2489 case "${target}" in
2490 *-*-*libc1*)
54d1c879 2491 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2492 esac
2493
2494 # This section makes it possible to build newlib natively on linux.
2495 # If we are using a cross compiler then don't configure newlib.
2496 if test x${is_cross_compiler} != xno ; then
bba45b8b 2497 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2498 fi
2499 noconfigdirs="$noconfigdirs target-libgloss"
2500 # If we are not using a cross compiler, do configure newlib.
2501 # Note however, that newlib will only be configured in this situation
2502 # if the --with-newlib option has been given, because otherwise
2503 # 'target-newlib' will appear in skipdirs.
2504 ;;
ec11bdc6 2505 i[3456789]86-*-mingw32*)
45055374
CV
2506 target_configdirs="$target_configdirs target-winsup"
2507 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2508 ;;
2d1e8239
NC
2509 x86_64-*-mingw*)
2510 target_configdirs="$target_configdirs target-winsup"
2511 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2512 ;;
a0da8069
NN
2513 *-*-cygwin*)
2514 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 2515 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 2516 # always build newlib if winsup directory is present.
45055374 2517 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2518 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2519 elif test -d "$srcdir/newlib"; then
45055374 2520 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2521 fi
c6b750e1 2522 ;;
caeba88f
AL
2523 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2524 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2525 ;;
ec11bdc6 2526 i[3456789]86-*-pe)
54d1c879 2527 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2528 ;;
ec11bdc6 2529 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2530 # The linker does not yet know about weak symbols in COFF,
2531 # and is not configured to handle mixed ELF and COFF.
54d1c879 2532 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2533 ;;
ec11bdc6 2534 i[3456789]86-*-sco*)
54d1c879 2535 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2536 ;;
ec11bdc6 2537 i[3456789]86-*-solaris2*)
a0da8069
NN
2538 noconfigdirs="$noconfigdirs target-libgloss"
2539 ;;
ec11bdc6 2540 i[3456789]86-*-sysv4*)
54d1c879 2541 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2542 ;;
ec11bdc6 2543 i[3456789]86-*-beos*)
54d1c879 2544 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2545 ;;
b59bea8a 2546 i[3456789]86-*-rdos*)
2429c060
PB
2547 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2548 ;;
b07c2aad 2549 m32r-*-*)
54d1c879 2550 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2551 ;;
a0da8069 2552 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2553 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2554 libgloss_dir=m68hc11
a0da8069
NN
2555 ;;
2556 m68k-*-elf*)
54d1c879 2557 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2558 ;;
2559 m68k-*-coff*)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2561 ;;
691bb5a1
DD
2562 m68*-*-* | fido-*-*)
2563 libgloss_dir=m68k
2564 ;;
a0da8069
NN
2565 mcore-*-pe*)
2566 # The EPOC C++ environment does not support exceptions or rtti,
2567 # and so building libstdc++-v3 tends not to always work.
2568 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2569 ;;
2570 mmix-*-*)
59f7ec45 2571 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2572 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2573 ;;
2574 mn10200-*-*)
54d1c879 2575 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2576 ;;
2577 mn10300-*-*)
54d1c879 2578 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2579 ;;
4970f871 2580 mt-*-*)
cdb9b172
AH
2581 noconfigdirs="$noconfigdirs sim"
2582 ;;
a0da8069
NN
2583 powerpc-*-aix*)
2584 # copied from rs6000-*-* entry
e8a5fa9c 2585 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
2586 ;;
2587 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2588 target_configdirs="$target_configdirs target-winsup"
54d1c879 2589 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2590 # always build newlib.
2591 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2592 ;;
2593 # This is temporary until we can link against shared libraries
2594 powerpcle-*-solaris*)
54d1c879 2595 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2596 libgloss_dir=rs6000
a0da8069
NN
2597 ;;
2598 powerpc-*-beos*)
54d1c879 2599 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2600 ;;
a0da8069 2601 powerpc-*-eabi)
54d1c879 2602 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2603 libgloss_dir=rs6000
caeba88f
AL
2604 ;;
2605 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2606 libgloss_dir=rs6000
a0da8069 2607 ;;
a0da8069 2608 rs6000-*-lynxos*)
54d1c879 2609 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2610 ;;
2611 rs6000-*-aix*)
e8a5fa9c 2612 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
2613 ;;
2614 rs6000-*-*)
54d1c879 2615 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2616 ;;
2617 m68k-apollo-*)
54d1c879 2618 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2619 ;;
25a07265
NC
2620 microblaze*)
2621 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2622 ;;
5bd8be13
RS
2623 mips*-sde-elf*)
2624 skipdirs="$skipdirs target-libiberty"
2625 noconfigdirs="$noconfigdirs ${libgcj}"
2626 if test x$with_newlib = xyes; then
2627 noconfigdirs="$noconfigdirs gprof"
2628 fi
2629 libgloss_dir=mips
2630 ;;
a0da8069 2631 mips*-*-irix5*)
54d1c879 2632 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2633 ;;
2634 mips*-*-irix6*)
a0da8069
NN
2635 # Linking libjava exceeds command-line length limits on at least
2636 # IRIX 6.2, but not on IRIX 6.5.
2637 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2638 # <oldham@codesourcery.com>
54d1c879 2639 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2640 ;;
a0da8069 2641 mips*-*-bsd*)
54d1c879 2642 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2643 ;;
a0da8069
NN
2644 mips*-*-linux*)
2645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2646 ;;
2647 mips*-*-*)
54d1c879 2648 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2649 libgloss_dir=mips
a0da8069
NN
2650 ;;
2651 romp-*-*)
54d1c879 2652 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2653 ;;
dbf85af7 2654 sh-*-* | sh64-*-*)
a0da8069 2655 case "${host}" in
ec11bdc6
DD
2656 i[3456789]86-*-vsta) ;; # don't add gprof back in
2657 i[3456789]86-*-go32*) ;; # don't add gprof back in
2658 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2659 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2660 esac
e8a5fa9c
RW
2661 case "${target}" in
2662 sh*-*-elf)
2663 noconfigdirs="$noconfigdirs ${libgcj}" ;;
2664 *)
2665 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
2666 esac
a0da8069 2667 ;;
691bb5a1
DD
2668 sparclet-*-aout* | sparc86x-*-*)
2669 libgloss_dir=sparc
2670 ;;
a0da8069 2671 sparc-*-elf*)
54d1c879 2672 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2673 ;;
2674 sparc64-*-elf*)
54d1c879 2675 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2676 libgloss_dir=sparc
a0da8069
NN
2677 ;;
2678 sparclite-*-*)
54d1c879 2679 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2680 libgloss_dir=sparc
a0da8069
NN
2681 ;;
2682 sparc-*-sunos4*)
54d1c879 2683 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2684 if test x${is_cross_compiler} != xno ; then
2685 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2686 else
2687 use_gnu_ld=no
2688 fi
2689 ;;
e3c770b1 2690 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2691 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2692 ;;
a0da8069
NN
2693 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2694 ;;
2695 v810-*-*)
54d1c879 2696 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2697 ;;
2698 v850-*-*)
54d1c879 2699 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2700 ;;
2701 v850e-*-*)
54d1c879 2702 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2703 ;;
2704 v850ea-*-*)
54d1c879 2705 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2706 ;;
2707 vax-*-vms)
54d1c879 2708 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2709 ;;
2710 vax-*-*)
54d1c879 2711 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2712 ;;
8b66833e 2713 xtensa*-*-*)
54d1c879 2714 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2715 ;;
a0da8069 2716 ip2k-*-*)
54d1c879 2717 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2718 ;;
29383458 2719 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
2720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2721 ;;
2722 *-*-lynxos*)
54d1c879 2723 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2724 ;;
a0da8069 2725 *-*-*)
54d1c879 2726 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2727 ;;
2728esac
252b5132 2729
a0da8069
NN
2730# If we aren't building newlib, then don't build libgloss, since libgloss
2731# depends upon some newlib header files.
2732case "${noconfigdirs}" in
2733 *target-libgloss*) ;;
2734 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2735esac
2736
a0da8069
NN
2737# Work in distributions that contain no compiler tools, like Autoconf.
2738tentative_cc=""
2739host_makefile_frag=/dev/null
2740if test -d ${srcdir}/config ; then
2741case "${host}" in
2742 m68k-hp-hpux*)
2743 # Avoid "too much defining" errors from HPUX compiler.
2744 tentative_cc="cc -Wp,-H256000"
2745 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2746 # If it's HP/UX ar, this should be harmless.
2747 RANLIB="ar ts"
2748 ;;
2749 m68k-apollo-sysv*)
2750 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2751 ;;
2752 m68k-apollo-bsd*)
2753 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2754 # chokes on bfd, the compiler won't let you assign integers to enums, and
2755 # other problems. Defining CC to gcc is a questionable way to say "don't use
2756 # the apollo compiler" (the preferred version of GCC could be called cc,
2757 # or whatever), but I'm not sure leaving CC as cc is any better...
2758 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2759 # Used to have BISON=yacc.
2760 tentative_cc=gcc
2761 ;;
2762 m88k-dg-dgux*)
2763 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2764 ;;
2765 m88k-harris-cxux*)
2766 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2767 tentative_cc="cc -Xa"
2768 host_makefile_frag="config/mh-cxux"
2769 ;;
2770 m88k-motorola-sysv*)
2771 ;;
2772 mips*-dec-ultrix*)
2773 tentative_cc="cc -Wf,-XNg1000"
2774 host_makefile_frag="config/mh-decstation"
2775 ;;
2776 mips*-nec-sysv4*)
2777 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2778 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2779 host_makefile_frag="config/mh-necv4"
2780 ;;
2781 mips*-sgi-irix4*)
2782 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2783 # environment. Also bump switch table size so that cp-parse will
2784 # compile. Bump string length limit so linker builds.
2785 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2786 ;;
2787 mips*-*-sysv4*)
2788 host_makefile_frag="config/mh-sysv4"
2789 ;;
2790 mips*-*-sysv*)
2791 # This is for a MIPS running RISC/os 4.52C.
2792
2793 # This is needed for GDB, but needs to be in the top-level make because
2794 # if a library is compiled with the bsd headers and gets linked with the
2795 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2796 # a different size).
2797 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2798 # known except to select the sysv environment. Could we use /proc instead?
2799 # These "sysv environments" and "bsd environments" often end up being a pain.
2800 #
2801 # This is not part of CFLAGS because perhaps not all C compilers have this
2802 # option.
2803 tentative_cc="cc -systype sysv"
2804 ;;
2805 i370-ibm-opened*)
2806 tentative_cc="c89"
2807 ;;
ec11bdc6 2808 i[3456789]86-*-sysv5*)
a0da8069
NN
2809 host_makefile_frag="config/mh-sysv5"
2810 ;;
ec11bdc6 2811 i[3456789]86-*-dgux*)
a0da8069
NN
2812 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2813 host_makefile_frag="config/mh-dgux386"
2814 ;;
ec11bdc6 2815 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2816 # The MetaWare compiler will generate a copyright message unless you
2817 # turn it off by adding the -Hnocopyr flag.
2818 tentative_cc="cc -Hnocopyr"
2819 ;;
ec11bdc6 2820 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2821 # for an NCR 3000 (i486/SVR4) system.
2822 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2823 # This compiler not only emits obnoxious copyright messages every time
2824 # you run it, but it chokes and dies on a whole bunch of GNU source
2825 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2826 tentative_cc="/usr/ccs/ATT/cc"
2827 host_makefile_frag="config/mh-ncr3000"
2828 ;;
ec11bdc6 2829 i[3456789]86-*-sco3.2v5*)
a0da8069 2830 ;;
ec11bdc6 2831 i[3456789]86-*-sco*)
a0da8069
NN
2832 # The native C compiler botches some simple uses of const. Unfortunately,
2833 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2834 tentative_cc="cc -Dconst="
2835 host_makefile_frag="config/mh-sco"
2836 ;;
ec11bdc6 2837 i[3456789]86-*-udk*)
a0da8069
NN
2838 host_makefile_frag="config/mh-sysv5"
2839 ;;
ec11bdc6 2840 i[3456789]86-*-solaris2*)
a0da8069
NN
2841 host_makefile_frag="config/mh-sysv4"
2842 ;;
ec11bdc6 2843 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2844 host_makefile_frag="config/mh-djgpp"
2845 ;;
2846 *-cygwin*)
e33b51a6
NC
2847
2848echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2849echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2850echo a >cygwin-cat-check
2851if test `cat cygwin-cat-check` == a ; then
8ade07e9 2852 rm cygwin-cat-check
e33b51a6
NC
2853 echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6
2855else
8ade07e9 2856 rm cygwin-cat-check
e33b51a6
NC
2857 echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6
2859 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2860 Please either mount the build directory in binary mode or run the following
2861 commands before running any configure script:
2862set -o igncr
2863export SHELLOPTS
2864 " >&5
2865echo "$as_me: error: The cat command does not ignore carriage return characters.
2866 Please either mount the build directory in binary mode or run the following
2867 commands before running any configure script:
2868set -o igncr
2869export SHELLOPTS
2870 " >&2;}
2871 { (exit 1); exit 1; }; }
2872fi
e33b51a6 2873
a0da8069
NN
2874 host_makefile_frag="config/mh-cygwin"
2875 ;;
8a1599ab 2876 *-mingw*)
84e7906e 2877 host_makefile_frag="config/mh-mingw"
2d1e8239 2878 ;;
a0da8069
NN
2879 *-interix*)
2880 host_makefile_frag="config/mh-interix"
2881 ;;
2882 vax-*-ultrix2*)
2883 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2884 tentative_cc=gcc
2885 ;;
2886 *-*-solaris2*)
2887 host_makefile_frag="config/mh-solaris"
2888 ;;
2889 m68k-sun-sunos*)
2890 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2891 # without overflowing the jump tables (-J says to use a 32 bit table)
2892 tentative_cc="cc -J"
2893 ;;
da888c87 2894 hppa*-hp-hpux10*)
a0da8069 2895 tentative_cc="cc -Wp,-H256000"
da888c87 2896 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2897 ;;
da888c87
PB
2898 hppa*-hp-hpux* | hppa*-*-hiux*)
2899 tentative_cc="cc -Wp,-H256000"
2900 host_makefile_frag="config/mh-pa"
2901 ;;
2902 hppa*-*)
2903 host_makefile_frag="config/mh-pa"
2904 ;;
2905 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2906 tentative_cc="cc -Wp,-H256000"
2907 ;;
2908 rs6000-*-lynxos*)
2909 # /bin/cc is less than useful for our purposes. Always use GCC
2910 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2911 host_makefile_frag="config/mh-lynxrs6k"
2912 ;;
0df3d27f
PB
2913 powerpc-*-darwin*)
2914 host_makefile_frag="config/mh-ppc-darwin"
2915 ;;
f6d183c0
PB
2916 powerpc-*-aix*)
2917 host_makefile_frag="config/mh-ppc-aix"
2918 ;;
2919 rs6000-*-aix*)
2920 host_makefile_frag="config/mh-ppc-aix"
2921 ;;
a0da8069
NN
2922 *-*-lynxos*)
2923 # /bin/cc is less than useful for our purposes. Always use GCC
2924 tentative_cc="/bin/gcc"
2925 ;;
2926 *-*-sysv4*)
2927 host_makefile_frag="config/mh-sysv4"
2928 ;;
fe69863c
DD
2929 # This is placed last to prevent interfering with the cases above.
2930 i[3456789]86-*-*)
2931 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2932 host_makefile_frag="config/mh-x86omitfp"
2933 ;;
a0da8069
NN
2934esac
2935fi
2936
9e07f89d
NN
2937# If we aren't going to be using gcc, see if we can extract a definition
2938# of CC from the fragment.
2939# Actually, use the 'pre-extracted' version above.
2940if test -z "${CC}" && test "${build}" = "${host}" ; then
2941 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2942 found=
2943 for dir in $PATH; do
2944 test -z "$dir" && dir=.
2945 if test -f $dir/gcc; then
2946 found=yes
2947 break
2948 fi
2949 done
2950 IFS="$save_ifs"
2951 if test -z "${found}" && test -n "${tentative_cc}" ; then
2952 CC=$tentative_cc
2953 fi
2954fi
2955
2956if test "${build}" != "${host}" ; then
1576798e
PB
2957 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2958 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2959 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2960 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2961 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2962 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2963 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2964 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2965 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2966 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2967 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2968 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2969else
2970 AR_FOR_BUILD="\$(AR)"
2971 AS_FOR_BUILD="\$(AS)"
512b7dfb 2972 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2973 CXX_FOR_BUILD="\$(CXX)"
2974 GCJ_FOR_BUILD="\$(GCJ)"
2975 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2976 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2977 LD_FOR_BUILD="\$(LD)"
2978 NM_FOR_BUILD="\$(NM)"
2979 RANLIB_FOR_BUILD="\$(RANLIB)"
2980 WINDRES_FOR_BUILD="\$(WINDRES)"
2981 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2982fi
2983
2984ac_ext=c
c6b750e1
DJ
2985ac_cpp='$CPP $CPPFLAGS'
2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992echo "$as_me:$LINENO: checking for $ac_word" >&5
2993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994if test "${ac_cv_prog_CC+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011done
3012done
3013
3014fi
3015fi
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
3018 echo "$as_me:$LINENO: result: $CC" >&5
3019echo "${ECHO_T}$CC" >&6
3020else
3021 echo "$as_me:$LINENO: result: no" >&5
3022echo "${ECHO_T}no" >&6
3023fi
3024
3025fi
3026if test -z "$ac_cv_prog_CC"; then
3027 ac_ct_CC=$CC
6a9cf61e 3028 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3029set dummy gcc; ac_word=$2
c6b750e1
DJ
3030echo "$as_me:$LINENO: checking for $ac_word" >&5
3031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_CC="gcc"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049done
3050done
3051
3052fi
3053fi
3054ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055if test -n "$ac_ct_CC"; then
3056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3057echo "${ECHO_T}$ac_ct_CC" >&6
3058else
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061fi
3062
3063 CC=$ac_ct_CC
3064else
3065 CC="$ac_cv_prog_CC"
3066fi
3067
3068if test -z "$CC"; then
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3071set dummy ${ac_tool_prefix}cc; ac_word=$2
3072echo "$as_me:$LINENO: checking for $ac_word" >&5
3073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074if test "${ac_cv_prog_CC+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3076else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079else
c6b750e1
DJ
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_CC="${ac_tool_prefix}cc"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092done
3093
9e07f89d
NN
3094fi
3095fi
c6b750e1 3096CC=$ac_cv_prog_CC
9e07f89d 3097if test -n "$CC"; then
c6b750e1
DJ
3098 echo "$as_me:$LINENO: result: $CC" >&5
3099echo "${ECHO_T}$CC" >&6
9e07f89d 3100else
c6b750e1
DJ
3101 echo "$as_me:$LINENO: result: no" >&5
3102echo "${ECHO_T}no" >&6
9e07f89d
NN
3103fi
3104
c6b750e1
DJ
3105fi
3106if test -z "$ac_cv_prog_CC"; then
3107 ac_ct_CC=$CC
3108 # Extract the first word of "cc", so it can be a program name with args.
3109set dummy cc; ac_word=$2
3110echo "$as_me:$LINENO: checking for $ac_word" >&5
3111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="cc"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130done
3131
3132fi
3133fi
3134ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135if test -n "$ac_ct_CC"; then
3136 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3137echo "${ECHO_T}$ac_ct_CC" >&6
3138else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141fi
3142
3143 CC=$ac_ct_CC
3144else
3145 CC="$ac_cv_prog_CC"
3146fi
3147
3148fi
9e07f89d
NN
3149if test -z "$CC"; then
3150 # Extract the first word of "cc", so it can be a program name with args.
3151set dummy cc; ac_word=$2
c6b750e1
DJ
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154if test "${ac_cv_prog_CC+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3156else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159else
9e07f89d 3160 ac_prog_rejected=no
c6b750e1
DJ
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3169 ac_prog_rejected=yes
3170 continue
3171 fi
3172 ac_cv_prog_CC="cc"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176done
3177done
3178
9e07f89d
NN
3179if test $ac_prog_rejected = yes; then
3180 # We found a bogon in the path, so make sure we never use it.
3181 set dummy $ac_cv_prog_CC
3182 shift
c6b750e1 3183 if test $# != 0; then
9e07f89d
NN
3184 # We chose a different compiler from the bogus one.
3185 # However, it has the same basename, so the bogon will be chosen
3186 # first if we set CC to just the basename; use the full file name.
3187 shift
c6b750e1 3188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3189 fi
3190fi
3191fi
3192fi
c6b750e1 3193CC=$ac_cv_prog_CC
9e07f89d 3194if test -n "$CC"; then
c6b750e1
DJ
3195 echo "$as_me:$LINENO: result: $CC" >&5
3196echo "${ECHO_T}$CC" >&6
9e07f89d 3197else
c6b750e1
DJ
3198 echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
9e07f89d
NN
3200fi
3201
c6b750e1
DJ
3202fi
3203if test -z "$CC"; then
3204 if test -n "$ac_tool_prefix"; then
3205 for ac_prog in cl
3206 do
3207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3209echo "$as_me:$LINENO: checking for $ac_word" >&5
3210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211if test "${ac_cv_prog_CC+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3213else
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3216else
c6b750e1
DJ
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
376a0e54 3227 fi
c6b750e1
DJ
3228done
3229done
cac3d6c4 3230
c6b750e1
DJ
3231fi
3232fi
3233CC=$ac_cv_prog_CC
3234if test -n "$CC"; then
3235 echo "$as_me:$LINENO: result: $CC" >&5
3236echo "${ECHO_T}$CC" >&6
cac3d6c4 3237else
c6b750e1
DJ
3238 echo "$as_me:$LINENO: result: no" >&5
3239echo "${ECHO_T}no" >&6
9e07f89d 3240fi
cac3d6c4 3241
c6b750e1
DJ
3242 test -n "$CC" && break
3243 done
cac3d6c4 3244fi
c6b750e1
DJ
3245if test -z "$CC"; then
3246 ac_ct_CC=$CC
3247 for ac_prog in cl
3248do
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250set dummy $ac_prog; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3255else
c6b750e1
DJ
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3258else
c6b750e1
DJ
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_ac_ct_CC="$ac_prog"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270done
3271done
3272
cac3d6c4
CM
3273fi
3274fi
c6b750e1
DJ
3275ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276if test -n "$ac_ct_CC"; then
3277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3278echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3279else
c6b750e1
DJ
3280 echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
cac3d6c4 3282fi
376a0e54 3283
c6b750e1
DJ
3284 test -n "$ac_ct_CC" && break
3285done
3286
3287 CC=$ac_ct_CC
3288fi
3289
3290fi
3291
3292
7a283e07
RW
3293test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3294echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3296See \`config.log' for more details." >&5
3297echo "$as_me: error: no acceptable C compiler found in \$PATH
3298See \`config.log' for more details." >&2;}
7a283e07 3299 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3300
3301# Provide some information about the compiler.
3302echo "$as_me:$LINENO:" \
3303 "checking for C compiler version" >&5
3304ac_compiler=`set X $ac_compile; echo $2`
3305{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3306 (eval $ac_compiler --version </dev/null >&5) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }
3310{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3311 (eval $ac_compiler -v </dev/null >&5) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }
3315{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3316 (eval $ac_compiler -V </dev/null >&5) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }
3320
3321cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
3327
3328int
3329main ()
3330{
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336ac_clean_files_save=$ac_clean_files
3337ac_clean_files="$ac_clean_files a.out a.exe b.out"
3338# Try to create an executable without -o first, disregard a.out.
3339# It will help us diagnose broken compilers, and finding out an intuition
3340# of exeext.
3341echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3342echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3343ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3345 (eval $ac_link_default) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; then
3349 # Find the output, starting from the most likely. This scheme is
3350# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3351# resort.
3352
3353# Be careful to initialize this variable, since it used to be cached.
3354# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3355ac_cv_exeext=
3356# b.out is created by i960 compilers.
3357for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3358do
3359 test -f "$ac_file" || continue
3360 case $ac_file in
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3362 ;;
3363 conftest.$ac_ext )
3364 # This is the source file.
3365 ;;
3366 [ab].out )
3367 # We found the default executable, but exeext='' is most
3368 # certainly right.
3369 break;;
3370 *.* )
3371 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 # FIXME: I believe we export ac_cv_exeext for Libtool,
3373 # but it would be cool to find out if it's true. Does anybody
3374 # maintain Libtool? --akim.
3375 export ac_cv_exeext
3376 break;;
3377 * )
3378 break;;
3379 esac
3380done
3381else
3382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
7a283e07
RW
3385{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3386echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3387{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3388See \`config.log' for more details." >&5
3389echo "$as_me: error: C compiler cannot create executables
3390See \`config.log' for more details." >&2;}
7a283e07 3391 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3392fi
3393
3394ac_exeext=$ac_cv_exeext
3395echo "$as_me:$LINENO: result: $ac_file" >&5
3396echo "${ECHO_T}$ac_file" >&6
3397
3398# Check the compiler produces executables we can run. If not, either
3399# the compiler is broken, or we cross compile.
3400echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3401echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3402# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3403# If not cross compiling, check that we can run a simple program.
3404if test "$cross_compiling" != yes; then
3405 if { ac_try='./$ac_file'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
7a283e07
RW
3416 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3417echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3419If you meant to cross compile, use \`--host'.
3420See \`config.log' for more details." >&5
3421echo "$as_me: error: cannot run C compiled programs.
3422If you meant to cross compile, use \`--host'.
3423See \`config.log' for more details." >&2;}
7a283e07 3424 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3425 fi
3426 fi
3427fi
3428echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
3430
3431rm -f a.out a.exe conftest$ac_cv_exeext b.out
3432ac_clean_files=$ac_clean_files_save
3433# Check the compiler produces executables we can run. If not, either
3434# the compiler is broken, or we cross compile.
3435echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3436echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3437echo "$as_me:$LINENO: result: $cross_compiling" >&5
3438echo "${ECHO_T}$cross_compiling" >&6
3439
3440echo "$as_me:$LINENO: checking for suffix of executables" >&5
3441echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; then
3447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3448# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3449# work properly (i.e., refer to `conftest.exe'), while it won't with
3450# `rm'.
3451for ac_file in conftest.exe conftest conftest.*; do
3452 test -f "$ac_file" || continue
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 export ac_cv_exeext
3457 break;;
3458 * ) break;;
3459 esac
3460done
3461else
7a283e07
RW
3462 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3463echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3465See \`config.log' for more details." >&5
3466echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3467See \`config.log' for more details." >&2;}
7a283e07 3468 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3469fi
3470
3471rm -f conftest$ac_cv_exeext
3472echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3473echo "${ECHO_T}$ac_cv_exeext" >&6
3474
3475rm -f conftest.$ac_ext
3476EXEEXT=$ac_cv_exeext
3477ac_exeext=$EXEEXT
3478echo "$as_me:$LINENO: checking for suffix of object files" >&5
3479echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3480if test "${ac_cv_objext+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483 cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h. */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h. */
3489
3490int
3491main ()
3492{
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
3498rm -f conftest.o conftest.obj
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; then
3504 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3505 case $ac_file in
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3508 break;;
3509 esac
3510done
cac3d6c4 3511else
c6b750e1
DJ
3512 echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
7a283e07
RW
3515{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3517{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3518See \`config.log' for more details." >&5
3519echo "$as_me: error: cannot compute suffix of object files: cannot compile
3520See \`config.log' for more details." >&2;}
7a283e07 3521 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3522fi
3523
3524rm -f conftest.$ac_cv_objext conftest.$ac_ext
3525fi
3526echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3527echo "${ECHO_T}$ac_cv_objext" >&6
3528OBJEXT=$ac_cv_objext
3529ac_objext=$OBJEXT
3530echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3531echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3532if test "${ac_cv_c_compiler_gnu+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534else
3535 cat >conftest.$ac_ext <<_ACEOF
3536/* confdefs.h. */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h. */
3541
3542int
3543main ()
3544{
3545#ifndef __GNUC__
3546 choke me
3547#endif
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 ac_compiler_gnu=yes
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580ac_compiler_gnu=no
3581fi
3582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3583ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584
3585fi
3586echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3587echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3588GCC=`test $ac_compiler_gnu = yes && echo yes`
3589ac_test_CFLAGS=${CFLAGS+set}
3590ac_save_CFLAGS=$CFLAGS
3591CFLAGS="-g"
3592echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3593echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3594if test "${ac_cv_prog_cc_g+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597 cat >conftest.$ac_ext <<_ACEOF
3598/* confdefs.h. */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h. */
3603
3604int
3605main ()
3606{
3607
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612rm -f conftest.$ac_objext
3613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
9e07f89d
NN
3634 ac_cv_prog_cc_g=yes
3635else
c6b750e1
DJ
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3638
c6b750e1 3639ac_cv_prog_cc_g=no
376a0e54 3640fi
c6b750e1
DJ
3641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642fi
3643echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3645if test "$ac_test_CFLAGS" = set; then
c6b750e1 3646 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3647elif test $ac_cv_prog_cc_g = yes; then
3648 if test "$GCC" = yes; then
3649 CFLAGS="-g -O2"
3650 else
3651 CFLAGS="-g"
3652 fi
3653else
3654 if test "$GCC" = yes; then
3655 CFLAGS="-O2"
3656 else
3657 CFLAGS=
3658 fi
3659fi
c6b750e1
DJ
3660echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3661echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3662if test "${ac_cv_prog_cc_stdc+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665 ac_cv_prog_cc_stdc=no
3666ac_save_CC=$CC
3667cat >conftest.$ac_ext <<_ACEOF
3668/* confdefs.h. */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h. */
3673#include <stdarg.h>
3674#include <stdio.h>
3675#include <sys/types.h>
3676#include <sys/stat.h>
3677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678struct buf { int x; };
3679FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680static char *e (p, i)
3681 char **p;
3682 int i;
3683{
3684 return p[i];
3685}
3686static char *f (char * (*g) (char **, int), char **p, ...)
3687{
3688 char *s;
3689 va_list v;
3690 va_start (v,p);
3691 s = g (p, va_arg (v,int));
3692 va_end (v);
3693 return s;
3694}
3695
3696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
3699 as 'x'. The following induces an error, until -std1 is added to get
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
3702 that's true only with -std1. */
3703int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704
3705int test (int i, double x);
3706struct s1 {int (*f) (int a);};
3707struct s2 {int (*f) (double a);};
3708int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709int argc;
3710char **argv;
3711int
3712main ()
3713{
3714return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3715 ;
3716 return 0;
3717}
3718_ACEOF
3719# Don't try gcc -ansi; that turns off useful extensions and
3720# breaks some systems' header files.
3721# AIX -qlanglvl=ansi
3722# Ultrix and OSF/1 -std1
3723# HP-UX 10.20 and later -Ae
3724# HP-UX older versions -Aa -D_HPUX_SOURCE
3725# SVR4 -Xc -D__EXTENSIONS__
3726for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727do
3728 CC="$ac_save_CC $ac_arg"
3729 rm -f conftest.$ac_objext
3730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>conftest.er1
3732 ac_status=$?
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_cv_prog_cc_stdc=$ac_arg
3752break
3753else
3754 echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757fi
3758rm -f conftest.err conftest.$ac_objext
3759done
3760rm -f conftest.$ac_ext conftest.$ac_objext
3761CC=$ac_save_CC
3762
3763fi
3764
3765case "x$ac_cv_prog_cc_stdc" in
3766 x|xno)
3767 echo "$as_me:$LINENO: result: none needed" >&5
3768echo "${ECHO_T}none needed" >&6 ;;
3769 *)
3770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3771echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3772 CC="$CC $ac_cv_prog_cc_stdc" ;;
3773esac
3774
3775# Some people use a C++ compiler to compile C. Since we use `exit',
3776# in C++ we need to declare it. In case someone uses the same compiler
3777# for both compiling C and C++ we need to have the C++ compiler decide
3778# the declaration of exit, since it's the most demanding environment.
3779cat >conftest.$ac_ext <<_ACEOF
3780#ifndef __cplusplus
3781 choke me
3782#endif
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 for ac_declaration in \
3807 '' \
3808 'extern "C" void std::exit (int) throw (); using std::exit;' \
3809 'extern "C" void std::exit (int); using std::exit;' \
3810 'extern "C" void exit (int) throw ();' \
3811 'extern "C" void exit (int);' \
3812 'void exit (int);'
3813do
3814 cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
3820$ac_declaration
3821#include <stdlib.h>
3822int
3823main ()
3824{
3825exit (42);
3826 ;
3827 return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext
3831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 :
3853else
3854 echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857continue
3858fi
3859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860 cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
3866$ac_declaration
3867int
3868main ()
3869{
3870exit (42);
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
3876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_c_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 break
3898else
3899 echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902fi
3903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3904done
3905rm -f conftest*
3906if test -n "$ac_declaration"; then
3907 echo '#ifdef __cplusplus' >>confdefs.h
3908 echo $ac_declaration >>confdefs.h
3909 echo '#endif' >>confdefs.h
3910fi
3911
3912else
3913 echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916fi
3917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918ac_ext=c
3919ac_cpp='$CPP $CPPFLAGS'
3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3923
18f6b6ee
PB
3924ac_ext=cc
3925ac_cpp='$CXXCPP $CPPFLAGS'
3926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3929if test -n "$ac_tool_prefix"; then
3930 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3931 do
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934echo "$as_me:$LINENO: checking for $ac_word" >&5
3935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3936if test "${ac_cv_prog_CXX+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 if test -n "$CXX"; then
3940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3941else
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953done
3954done
512b7dfb 3955
18f6b6ee
PB
3956fi
3957fi
3958CXX=$ac_cv_prog_CXX
3959if test -n "$CXX"; then
3960 echo "$as_me:$LINENO: result: $CXX" >&5
3961echo "${ECHO_T}$CXX" >&6
3962else
3963 echo "$as_me:$LINENO: result: no" >&5
3964echo "${ECHO_T}no" >&6
3965fi
3966
3967 test -n "$CXX" && break
3968 done
3969fi
3970if test -z "$CXX"; then
3971 ac_ct_CXX=$CXX
3972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3973do
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975set dummy $ac_prog; ac_word=$2
3976echo "$as_me:$LINENO: checking for $ac_word" >&5
3977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981 if test -n "$ac_ct_CXX"; then
3982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_ac_ct_CXX="$ac_prog"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
512b7dfb 3994 fi
18f6b6ee
PB
3995done
3996done
512b7dfb 3997
18f6b6ee
PB
3998fi
3999fi
4000ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4001if test -n "$ac_ct_CXX"; then
4002 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4003echo "${ECHO_T}$ac_ct_CXX" >&6
4004else
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
4007fi
4008
4009 test -n "$ac_ct_CXX" && break
4010done
4011test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4012
4013 CXX=$ac_ct_CXX
4014fi
4015
4016
4017# Provide some information about the compiler.
4018echo "$as_me:$LINENO:" \
4019 "checking for C++ compiler version" >&5
4020ac_compiler=`set X $ac_compile; echo $2`
4021{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4022 (eval $ac_compiler --version </dev/null >&5) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }
4026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4027 (eval $ac_compiler -v </dev/null >&5) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
4031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4032 (eval $ac_compiler -V </dev/null >&5) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }
4036
4037echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4038echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4039if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048
4049int
4050main ()
4051{
4052#ifndef __GNUC__
4053 choke me
4054#endif
4055
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_compiler_gnu=yes
4083else
4084 echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087ac_compiler_gnu=no
4088fi
4089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4091
4092fi
4093echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4094echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4095GXX=`test $ac_compiler_gnu = yes && echo yes`
4096ac_test_CXXFLAGS=${CXXFLAGS+set}
4097ac_save_CXXFLAGS=$CXXFLAGS
4098CXXFLAGS="-g"
4099echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4100echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4101if test "${ac_cv_prog_cxx_g+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110
4111int
4112main ()
4113{
4114
4115 ;
4116 return 0;
4117}
4118_ACEOF
4119rm -f conftest.$ac_objext
4120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_cxx_werror_flag"
4129 || test ! -s conftest.err'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 (eval $ac_try) 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4141 ac_cv_prog_cxx_g=yes
4142else
4143 echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
4146ac_cv_prog_cxx_g=no
4147fi
4148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149fi
4150echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4151echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4152if test "$ac_test_CXXFLAGS" = set; then
4153 CXXFLAGS=$ac_save_CXXFLAGS
4154elif test $ac_cv_prog_cxx_g = yes; then
4155 if test "$GXX" = yes; then
4156 CXXFLAGS="-g -O2"
4157 else
4158 CXXFLAGS="-g"
4159 fi
4160else
4161 if test "$GXX" = yes; then
4162 CXXFLAGS="-O2"
4163 else
4164 CXXFLAGS=
4165 fi
4166fi
4167for ac_declaration in \
4168 '' \
4169 'extern "C" void std::exit (int) throw (); using std::exit;' \
4170 'extern "C" void std::exit (int); using std::exit;' \
4171 'extern "C" void exit (int) throw ();' \
4172 'extern "C" void exit (int);' \
4173 'void exit (int);'
4174do
4175 cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h. */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h. */
4181$ac_declaration
4182#include <stdlib.h>
4183int
4184main ()
4185{
4186exit (42);
4187 ;
4188 return 0;
4189}
4190_ACEOF
4191rm -f conftest.$ac_objext
4192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_cxx_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 :
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218continue
4219fi
4220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h. */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h. */
4227$ac_declaration
4228int
4229main ()
4230{
4231exit (42);
4232 ;
4233 return 0;
4234}
4235_ACEOF
4236rm -f conftest.$ac_objext
4237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_cxx_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 break
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263fi
4264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265done
4266rm -f conftest*
4267if test -n "$ac_declaration"; then
4268 echo '#ifdef __cplusplus' >>confdefs.h
4269 echo $ac_declaration >>confdefs.h
4270 echo '#endif' >>confdefs.h
4271fi
4272
4273ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279
4280# We must set the default linker to the linker used by gcc for the correct
4281# operation of libtool. If LD is not defined and we are using gcc, try to
4282# set the LD default to the ld used by gcc.
4283if test -z "$LD"; then
4284 if test "$GCC" = yes; then
4285 case $build in
4286 *-*-mingw*)
4287 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4288 *)
4289 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4290 esac
4291 case $gcc_prog_ld in
4292 # Accept absolute paths.
4293 [\\/]* | [A-Za-z]:[\\/]*)
4294 LD="$gcc_prog_ld" ;;
4295 esac
4296 fi
512b7dfb
PB
4297fi
4298
4299
4300
4301
c6b750e1 4302if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4303 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4304set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4305echo "$as_me:$LINENO: checking for $ac_word" >&5
4306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4307if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4308 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4309else
512b7dfb
PB
4310 if test -n "$GNATBIND"; then
4311 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4312else
c6b750e1
DJ
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4320 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325done
4326
9e07f89d
NN
4327fi
4328fi
512b7dfb
PB
4329GNATBIND=$ac_cv_prog_GNATBIND
4330if test -n "$GNATBIND"; then
4331 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4332echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4333else
c6b750e1
DJ
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
9e07f89d
NN
4336fi
4337
c6b750e1 4338fi
512b7dfb
PB
4339if test -z "$ac_cv_prog_GNATBIND"; then
4340 ac_ct_GNATBIND=$GNATBIND
4341 # Extract the first word of "gnatbind", so it can be a program name with args.
4342set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4343echo "$as_me:$LINENO: checking for $ac_word" >&5
4344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4345if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4346 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4347else
512b7dfb
PB
4348 if test -n "$ac_ct_GNATBIND"; then
4349 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4350else
c6b750e1
DJ
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4358 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362done
4363done
4364
512b7dfb 4365 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4366fi
4367fi
512b7dfb
PB
4368ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4369if test -n "$ac_ct_GNATBIND"; then
4370 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4371echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4372else
c6b750e1
DJ
4373 echo "$as_me:$LINENO: result: no" >&5
4374echo "${ECHO_T}no" >&6
9e07f89d
NN
4375fi
4376
512b7dfb 4377 GNATBIND=$ac_ct_GNATBIND
24ff9987 4378else
512b7dfb 4379 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4380fi
4381
7df2cd5d 4382if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4383 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4384set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4385echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4387if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
512b7dfb
PB
4390 if test -n "$GNATMAKE"; then
4391 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4400 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404done
4405done
4406
4407fi
4408fi
512b7dfb
PB
4409GNATMAKE=$ac_cv_prog_GNATMAKE
4410if test -n "$GNATMAKE"; then
4411 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4412echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4413else
4414 echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6
4416fi
4417
4418fi
512b7dfb
PB
4419if test -z "$ac_cv_prog_GNATMAKE"; then
4420 ac_ct_GNATMAKE=$GNATMAKE
4421 # Extract the first word of "gnatmake", so it can be a program name with args.
4422set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4423echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4425if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427else
512b7dfb
PB
4428 if test -n "$ac_ct_GNATMAKE"; then
4429 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4438 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
4443done
4444
512b7dfb 4445 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4446fi
4447fi
512b7dfb
PB
4448ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4449if test -n "$ac_ct_GNATMAKE"; then
4450 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4451echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4452else
4453 echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6
4455fi
4456
512b7dfb 4457 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4458else
512b7dfb 4459 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4460fi
4461
c6b750e1
DJ
4462echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4463echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4464if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4466else
4467 cat >conftest.adb <<EOF
4468procedure conftest is begin null; end conftest;
4469EOF
4470acx_cv_cc_gcc_supports_ada=no
4471# There is a bug in old released versions of GCC which causes the
4472# driver to exit successfully when the appropriate language module
4473# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4474# Therefore we must check for the error message as well as an
4475# unsuccessful exit.
b8908782
DD
4476# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4477# given a .adb file, but produce no object file. So we must check
4478# if an object file was really produced to guard against this.
9e07f89d 4479errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4480if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4481 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4482fi
4483rm -f conftest.*
4484fi
c6b750e1
DJ
4485echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4486echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4487
512b7dfb 4488if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4489 have_gnat=yes
4490else
4491 have_gnat=no
4492fi
4493
c6b750e1
DJ
4494echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4495echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4496if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4498else
4499 echo abfoo >t1
4500 echo cdfoo >t2
4501 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4502 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4503 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4504 :
4505 else
4506 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4507 fi
4508 fi
b8908782
DD
4509 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4510 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4511 :
b8908782
DD
4512 else
4513 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4514 fi
4515 fi
4516 rm t1 t2
4517
4518fi
c6b750e1
DJ
4519echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4520echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4521do_compare="$gcc_cv_prog_cmp_skip"
4522
4523
9e07f89d 4524
e8a5fa9c
RW
4525# See if we are building gcc with C++.
4526# Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
4527if test "${enable_build_with_cxx+set}" = set; then
4528 enableval="$enable_build_with_cxx"
4529 ENABLE_BUILD_WITH_CXX=$enableval
4530else
4531 ENABLE_BUILD_WITH_CXX=no
4532fi;
4533
4534# Check for GMP, MPFR and MPC
4b900473 4535gmplibs="-lmpfr -lgmp"
4b1cb4fe 4536gmpinc=
4b900473 4537have_gmp=no
e8a5fa9c
RW
4538mpclibs=-lmpc
4539mpcinc=
4540have_mpc=no
4541
4542# Specify a location for mpc
4543# check for this first so it ends up on the link line before mpfr.
4544
4545# Check whether --with-mpc or --without-mpc was given.
4546if test "${with_mpc+set}" = set; then
4547 withval="$with_mpc"
4548
4549fi;
4550
4551# Check whether --with-mpc_include or --without-mpc_include was given.
4552if test "${with_mpc_include+set}" = set; then
4553 withval="$with_mpc_include"
4554
4555fi;
4556
4557# Check whether --with-mpc_lib or --without-mpc_lib was given.
4558if test "${with_mpc_lib+set}" = set; then
4559 withval="$with_mpc_lib"
4560
4561fi;
4562
4563if test "x$with_mpc" != x; then
4564 mpclibs="-L$with_mpc/lib -lmpc"
4565 mpcinc="-I$with_mpc/include $mpcinc"
4566fi
4567if test "x$with_mpc_include" != x; then
4568 mpcinc="-I$with_mpc_include $mpcinc"
4569fi
4570if test "x$with_mpc_lib" != x; then
4571 mpclibs="-L$with_mpc_lib -lmpc"
4572fi
4573if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4574 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4575 mpcinc='-I$$s/mpc/src '"$mpcinc"
4576 # Do not test the mpc version. Assume that it is sufficient, since
4577 # it is in the source tree, and the library has not been built yet
4578 # but it would be included on the link line in the version check below
4579 # hence making the test fail.
4580 have_mpc=yes
4581fi
4b900473 4582
11b04d1f
DD
4583# Specify a location for mpfr
4584# check for this first so it ends up on the link line before gmp.
c6b750e1 4585
11b04d1f
DD
4586# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4587if test "${with_mpfr_dir+set}" = set; then
4588 withval="$with_mpfr_dir"
c6b750e1
DJ
4589 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4590Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4591echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4592Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4593 { (exit 1); exit 1; }; }
4594fi;
11b04d1f
DD
4595
4596
11b04d1f
DD
4597# Check whether --with-mpfr or --without-mpfr was given.
4598if test "${with_mpfr+set}" = set; then
4599 withval="$with_mpfr"
c6b750e1
DJ
4600
4601fi;
11b04d1f 4602
8a0d8a5c
PB
4603# Check whether --with-mpfr_include or --without-mpfr_include was given.
4604if test "${with_mpfr_include+set}" = set; then
4605 withval="$with_mpfr_include"
c6b750e1
DJ
4606
4607fi;
8a0d8a5c
PB
4608
4609# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4610if test "${with_mpfr_lib+set}" = set; then
4611 withval="$with_mpfr_lib"
8a0d8a5c 4612
c6b750e1 4613fi;
11b04d1f
DD
4614
4615if test "x$with_mpfr" != x; then
4616 gmplibs="-L$with_mpfr/lib $gmplibs"
4617 gmpinc="-I$with_mpfr/include"
4618fi
8a0d8a5c
PB
4619if test "x$with_mpfr_include" != x; then
4620 gmpinc="-I$with_mpfr_include"
4621fi
4622if test "x$with_mpfr_lib" != x; then
4623 gmplibs="-L$with_mpfr_lib $gmplibs"
4624fi
4b900473
PB
4625if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4626 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4627 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
e8a5fa9c 4628 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4b900473
PB
4629 # Do not test the mpfr version. Assume that it is sufficient, since
4630 # it is in the source tree, and the library has not been built yet
4631 # but it would be included on the link line in the version check below
4632 # hence making the test fail.
4633 have_gmp=yes
4634fi
11b04d1f 4635
4b1cb4fe 4636# Specify a location for gmp
c6b750e1 4637
4b1cb4fe
DD
4638# Check whether --with-gmp-dir or --without-gmp-dir was given.
4639if test "${with_gmp_dir+set}" = set; then
4640 withval="$with_gmp_dir"
c6b750e1
DJ
4641 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4642Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4643echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4644Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4645 { (exit 1); exit 1; }; }
4646fi;
4b1cb4fe
DD
4647
4648
4b1cb4fe
DD
4649# Check whether --with-gmp or --without-gmp was given.
4650if test "${with_gmp+set}" = set; then
4651 withval="$with_gmp"
c6b750e1
DJ
4652
4653fi;
4b1cb4fe 4654
8a0d8a5c
PB
4655# Check whether --with-gmp_include or --without-gmp_include was given.
4656if test "${with_gmp_include+set}" = set; then
4657 withval="$with_gmp_include"
c6b750e1
DJ
4658
4659fi;
8a0d8a5c
PB
4660
4661# Check whether --with-gmp_lib or --without-gmp_lib was given.
4662if test "${with_gmp_lib+set}" = set; then
4663 withval="$with_gmp_lib"
8a0d8a5c 4664
c6b750e1 4665fi;
8a0d8a5c 4666
4b1cb4fe 4667
11b04d1f
DD
4668if test "x$with_gmp" != x; then
4669 gmplibs="-L$with_gmp/lib $gmplibs"
4670 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4671fi
8a0d8a5c
PB
4672if test "x$with_gmp_include" != x; then
4673 gmpinc="-I$with_gmp_include $gmpinc"
4674fi
4675if test "x$with_gmp_lib" != x; then
4676 gmplibs="-L$with_gmp_lib $gmplibs"
4677fi
4b900473
PB
4678if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4679 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4680 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
e8a5fa9c
RW
4681 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
4682 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
4683 # Do not test the gmp version. Assume that it is sufficient, since
4684 # it is in the source tree, and the library has not been built yet
4685 # but it would be included on the link line in the version check below
4686 # hence making the test fail.
4687 have_gmp=yes
4688fi
4b1cb4fe 4689
ceb92e78 4690if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4691 have_gmp=yes
4692 saved_CFLAGS="$CFLAGS"
4693 CFLAGS="$CFLAGS $gmpinc"
4694 # Check GMP actually works
c6b750e1
DJ
4695 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4696echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4697
4698cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
4b1cb4fe 4704#include "gmp.h"
c6b750e1
DJ
4705int
4706main ()
4707{
4b1cb4fe 4708
ef699244 4709 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
4710 choke me
4711 #endif
c6b750e1
DJ
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
4717rm -f conftest.$ac_objext
4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 echo "$as_me:$LINENO: result: yes" >&5
4740echo "${ECHO_T}yes" >&6
4741else
4742 echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
4745echo "$as_me:$LINENO: result: no" >&5
4746echo "${ECHO_T}no" >&6; have_gmp=no
4747fi
4748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4749
e8a5fa9c 4750 # If we have GMP, check the MPFR version.
4b900473 4751 if test x"$have_gmp" = xyes; then
c6b750e1
DJ
4752 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4753echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
9b134994 4760#include <gmp.h>
4b900473 4761 #include <mpfr.h>
c6b750e1
DJ
4762int
4763main ()
4764{
9b134994 4765
ef699244 4766 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
4767 choke me
4768 #endif
c6b750e1
DJ
4769
4770 ;
4771 return 0;
4772}
4773_ACEOF
e8a5fa9c
RW
4774rm -f conftest.$ac_objext
4775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>conftest.er1
c6b750e1
DJ
4777 ac_status=$?
4778 grep -v '^ *+' conftest.er1 >conftest.err
4779 rm -f conftest.er1
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -z "$ac_c_werror_flag"
4784 || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
e8a5fa9c 4790 { ac_try='test -s conftest.$ac_objext'
c6b750e1
DJ
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 cat >conftest.$ac_ext <<_ACEOF
4797/* confdefs.h. */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h. */
4b1cb4fe 4802#include <gmp.h>
4b900473 4803 #include <mpfr.h>
c6b750e1
DJ
4804int
4805main ()
4806{
9dbaa842 4807
e28c595f 4808 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
4809 choke me
4810 #endif
e8a5fa9c
RW
4811
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816rm -f conftest.$ac_objext
4817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 echo "$as_me:$LINENO: result: yes" >&5
4839echo "${ECHO_T}yes" >&6
4840else
4841 echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4845echo "${ECHO_T}buggy but acceptable" >&6
4846fi
4847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848else
4849 echo "$as_me: failed program was:" >&5
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6; have_gmp=no
4854fi
4855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857
4858 # Check for the MPC header version.
4859 if test x"$have_mpc" != xyes ; then
4860 CFLAGS="$CFLAGS $mpcinc"
4861 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4862echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864/* confdefs.h. */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
4868/* end confdefs.h. */
4869#include <mpc.h>
4870int
4871main ()
4872{
4873
4874 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4875 choke me
4876 #endif
4877
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905echo "${ECHO_T}yes" >&6; have_mpc=maybe
4906else
4907 echo "$as_me: failed program was:" >&5
4908sed 's/^/| /' conftest.$ac_ext >&5
4909
4910echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4912fi
4913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914 fi
4915
4916 # Now check the MPFR library.
4917 if test x"$have_gmp" = xyes; then
4918 saved_LIBS="$LIBS"
4919 LIBS="$LIBS $gmplibs"
4920 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4921echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#include <gmp.h>
4929 #include <mpfr.h>
4930int
4931main ()
4932{
4933
4934 mpfr_t n;
4935 mpfr_t x;
4936 int t;
4937 mpfr_init (n);
4938 mpfr_init (x);
4939 mpfr_atan2 (n, n, x, GMP_RNDN);
4940 mpfr_erfc (n, x, GMP_RNDN);
4941 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4942
4943 ;
4944 return 0;
4945}
4946_ACEOF
4947rm -f conftest.$ac_objext conftest$ac_exeext
4948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949 (eval $ac_link) 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -z "$ac_c_werror_flag"
4957 || test ! -s conftest.err'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; } &&
4963 { ac_try='test -s conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
e8a5fa9c
RW
4975echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6; have_gmp=no
c6b750e1
DJ
4977fi
4978rm -f conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
4980 LIBS="$saved_LIBS"
4981 fi
4982
4983 if test x"$have_mpc" = xmaybe; then
4984 saved_LIBS="$LIBS"
4985 LIBS="$LIBS $mpclibs $gmplibs"
4986 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4987echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4988 cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994#include <mpc.h>
4995int
4996main ()
4997{
4998
4999 mpc_t n;
5000 mpc_init2 (n, 53);
5001 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5002 mpc_sin (n, n, MPC_RNDNN);
5003 mpc_cos (n, n, MPC_RNDNN);
5004 mpc_tan (n, n, MPC_RNDNN);
5005 mpc_sinh (n, n, MPC_RNDNN);
5006 mpc_cosh (n, n, MPC_RNDNN);
5007 mpc_tanh (n, n, MPC_RNDNN);
5008 mpc_exp (n, n, MPC_RNDNN);
5009 mpc_log (n, n, MPC_RNDNN);
5010 mpc_sqrt (n, n, MPC_RNDNN);
5011 mpc_proj (n, n, MPC_RNDNN);
5012 mpc_neg (n, n, MPC_RNDNN);
5013 mpc_sqr (n, n, MPC_RNDNN);
5014 mpc_clear (n);
5015
5016 ;
5017 return 0;
5018}
5019_ACEOF
5020rm -f conftest.$ac_objext conftest$ac_exeext
5021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6; have_mpc=yes
c6b750e1
DJ
5044else
5045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048echo "$as_me:$LINENO: result: no" >&5
e8a5fa9c 5049echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
c6b750e1
DJ
5050fi
5051rm -f conftest.err conftest.$ac_objext \
5052 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c 5053 LIBS="$saved_LIBS"
4b900473 5054 fi
e8a5fa9c 5055
4b900473 5056 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5057
4b900473 5058 if test x$have_gmp != xyes; then
ef699244 5059 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
c6b750e1
DJ
5060Try the --with-gmp and/or --with-mpfr options to specify their locations.
5061Copies of these libraries' source code can be found at their respective
5062hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5063See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5064If you obtained GMP and/or MPFR from a vendor distribution package, make
5065sure that you have installed both the libraries and the header files.
5066They may be located in separate packages." >&5
ef699244 5067echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
5068Try the --with-gmp and/or --with-mpfr options to specify their locations.
5069Copies of these libraries' source code can be found at their respective
5070hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
5071See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5072If you obtained GMP and/or MPFR from a vendor distribution package, make
5073sure that you have installed both the libraries and the header files.
c6b750e1
DJ
5074They may be located in separate packages." >&2;}
5075 { (exit 1); exit 1; }; }
4b900473 5076 fi
9dbaa842
DD
5077fi
5078
e8a5fa9c
RW
5079if test x$have_mpc != xyes ; then
5080 mpcinc=
5081 mpclibs=
5082fi
5083
5084gmpinc="$mpcinc $gmpinc"
5085gmplibs="$mpclibs $gmplibs"
5086
5087# Flags needed for both GMP, MPFR and/or MPC.
5088
5089
5090
4b1cb4fe
DD
5091
5092
5093
29383458
JM
5094# Allow host libstdc++ to be specified for static linking with PPL.
5095
5096# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5097if test "${with_host_libstdcxx+set}" = set; then
5098 withval="$with_host_libstdcxx"
5099
5100fi;
5101
5102case $with_host_libstdcxx in
5103 no|yes)
5104 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5105echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5106 { (exit 1); exit 1; }; }
5107 ;;
5108esac
e28c595f 5109
e8a5fa9c
RW
5110# Linker flags to use for stage1 or when not boostrapping.
5111
5112# Check whether --with-stage1-ldflags or --without-stage1-ldflags was given.
5113if test "${with_stage1_ldflags+set}" = set; then
5114 withval="$with_stage1_ldflags"
5115 if test "$withval" = "no" -o "$withval" = "yes"; then
5116 stage1_ldflags=
5117 else
5118 stage1_ldflags=$withval
5119 fi
5120else
5121 stage1_ldflags=
5122fi;
5123
5124
5125# Libraries to use for stage1 or when not bootstrapping.
5126
5127# Check whether --with-stage1-libs or --without-stage1-libs was given.
5128if test "${with_stage1_libs+set}" = set; then
5129 withval="$with_stage1_libs"
5130 if test "$withval" = "no" -o "$withval" = "yes"; then
5131 stage1_libs=
5132 else
5133 stage1_libs=$withval
5134 fi
5135else
5136 stage1_libs=$with_host_libstdcxx
5137fi;
5138
5139
5140# Linker flags to use for stage2 and later builds.
5141
5142# Check whether --with-boot-ldflags or --without-boot-ldflags was given.
5143if test "${with_boot_ldflags+set}" = set; then
5144 withval="$with_boot_ldflags"
5145 if test "$withval" = "no" -o "$withval" = "yes"; then
5146 poststage1_ldflags=
5147 else
5148 poststage1_ldflags=$withval
5149 fi
5150else
5151 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5152 poststage1_ldflags=-static-libstdc++
5153 else
5154 poststage1_ldflags=
5155 fi
5156fi;
5157
5158
5159# Libraries to use for stage2 and later builds. This defaults to the
5160# argument passed to --with-host-libstdcxx.
5161
5162# Check whether --with-boot-libs or --without-boot-libs was given.
5163if test "${with_boot_libs+set}" = set; then
5164 withval="$with_boot_libs"
5165 if test "$withval" = "no" -o "$withval" = "yes"; then
5166 poststage1_libs=
5167 else
5168 poststage1_libs=$withval
5169 fi
5170else
5171 poststage1_libs=$with_host_libstdcxx
5172fi;
5173
5174
e28c595f
JM
5175# Check for PPL
5176ppl_major_version=0
5177ppl_minor_version=10
e8a5fa9c 5178ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5179pplinc=
5180
5181
5182# Check whether --with-ppl or --without-ppl was given.
5183if test "${with_ppl+set}" = set; then
5184 withval="$with_ppl"
5185
e8a5fa9c
RW
5186else
5187 with_ppl=no
e28c595f
JM
5188fi;
5189
5190# Check whether --with-ppl_include or --without-ppl_include was given.
5191if test "${with_ppl_include+set}" = set; then
5192 withval="$with_ppl_include"
5193
5194fi;
5195
5196# Check whether --with-ppl_lib or --without-ppl_lib was given.
5197if test "${with_ppl_lib+set}" = set; then
5198 withval="$with_ppl_lib"
5199
5200fi;
5201
29383458
JM
5202case $with_ppl in
5203 no)
5204 ppllibs=
5205 ;;
5206 *)
e8a5fa9c 5207 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458
JM
5208 pplinc="-I$with_ppl/include $pplinc"
5209 LIBS="$ppllibs $LIBS"
5210 ;;
5211esac
e28c595f
JM
5212if test "x$with_ppl_include" != x; then
5213 pplinc="-I$with_ppl_include $pplinc"
5214fi
5215if test "x$with_ppl_lib" != x; then
e8a5fa9c 5216 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5217 LIBS="$ppllibs $LIBS"
5218fi
5219if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
e8a5fa9c 5220 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
e28c595f
JM
5221 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5222 LIBS="$ppllibs $LIBS"
5223fi
5224
5225# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5226if test "${enable_ppl_version_check+set}" = set; then
5227 enableval="$enable_ppl_version_check"
5228 ENABLE_PPL_CHECK=$enableval
5229else
5230 ENABLE_PPL_CHECK=yes
5231fi;
5232
5233if test "${ENABLE_PPL_CHECK}" = "yes"; then
5234 saved_CFLAGS="$CFLAGS"
5235 CFLAGS="$CFLAGS $pplinc $gmpinc"
5236 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5237echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244#include "ppl_c.h"
5245int
5246main ()
5247{
5248
5249 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5250 choke me
5251 #endif
5252
5253 ;
5254 return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
5281else
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
5287fi
5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 CFLAGS="$saved_CFLAGS"
5290fi
5291
5292# Flags needed for PPL
5293
5294
5295
5296
5297# Check for CLOOG
5298clooglibs=" -lcloog "
5299clooginc=" -DCLOOG_PPL_BACKEND "
5300
5301
5302# Check whether --with-cloog or --without-cloog was given.
5303if test "${with_cloog+set}" = set; then
5304 withval="$with_cloog"
5305
e8a5fa9c
RW
5306else
5307 with_cloog=no
e28c595f
JM
5308fi;
5309
5310# Check whether --with-cloog_include or --without-cloog_include was given.
5311if test "${with_cloog_include+set}" = set; then
5312 withval="$with_cloog_include"
5313
5314fi;
5315
5316# Check whether --with-cloog_lib or --without-cloog_lib was given.
5317if test "${with_cloog_lib+set}" = set; then
5318 withval="$with_cloog_lib"
5319
5320fi;
5321
29383458
JM
5322case $with_cloog in
5323 no)
5324 clooglibs=
5325 clooginc=
5326 ;;
5327 *)
5328 clooglibs="-L$with_cloog/lib -lcloog"
5329 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5330 LIBS="$clooglibs $LIBS"
5331 ;;
5332esac
e28c595f
JM
5333if test "x$with_cloog_include" != x; then
5334 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5335fi
5336if test "x$with_cloog_lib" != x; then
5337 clooglibs="-L$with_cloog_lib -lcloog"
5338 LIBS="$clooglibs $LIBS"
5339fi
5340if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5341 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5342 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5343 LIBS="$clooglibs $LIBS"
5344fi
5345
5346# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5347if test "${enable_cloog_version_check+set}" = set; then
5348 enableval="$enable_cloog_version_check"
5349 ENABLE_CLOOG_CHECK=$enableval
5350else
5351 ENABLE_CLOOG_CHECK=yes
5352fi;
5353
5354if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5355 saved_CFLAGS="$CFLAGS"
5356 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5357 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5358echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5360/* confdefs.h. */
5361_ACEOF
5362cat confdefs.h >>conftest.$ac_ext
5363cat >>conftest.$ac_ext <<_ACEOF
5364/* end confdefs.h. */
5365#include "cloog/cloog.h"
5366int
5367main ()
5368{
5369
5370 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5371 choke me
5372 #endif
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 echo "$as_me:$LINENO: result: yes" >&5
5401echo "${ECHO_T}yes" >&6
5402else
5403 echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5408fi
5409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5410 CFLAGS="$saved_CFLAGS"
5411fi
5412
5413# Flags needed for CLOOG
5414
5415
5416
5417
947f426e 5418# By default, C is the only stage 1 language.
9b134994 5419stage1_languages=,c,
1d39f329 5420
e8a5fa9c
RW
5421# Target libraries that we bootstrap.
5422bootstrap_target_libs=,target-libgcc,
5423
9e07f89d
NN
5424# Figure out what language subdirectories are present.
5425# Look if the user specified --enable-languages="..."; if not, use
5426# the environment variable $LANGUAGES if defined. $LANGUAGES might
5427# go away some day.
5428# NB: embedded tabs in this IF block -- do not untabify
5429if test -d ${srcdir}/gcc; then
5430 if test x"${enable_languages+set}" != xset; then
5431 if test x"${LANGUAGES+set}" = xset; then
5432 enable_languages="${LANGUAGES}"
5433 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5434 else
5435 enable_languages=all
5436 fi
5437 else
5438 if test x"${enable_languages}" = x ||
5439 test x"${enable_languages}" = xyes;
5440 then
5441 echo configure.in: --enable-languages needs at least one language argument 1>&2
5442 exit 1
5443 fi
5444 fi
5445 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5446
096f7d00
DE
5447 # 'f95' is the old name for the 'fortran' language. We issue a warning
5448 # and make the substitution.
5449 case ,${enable_languages}, in
5450 *,f95,*)
5451 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5452 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5453 ;;
5454 esac
5455
9e07f89d
NN
5456 # First scan to see if an enabled language requires some other language.
5457 # We assume that a given config-lang.in will list all the language
5458 # front ends it requires, even if some are required indirectly.
5459 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5460 case ${lang_frag} in
5461 ..) ;;
5462 # The odd quoting in the next line works around
5463 # an apparent bug in bash 1.12 on linux.
5464 ${srcdir}/gcc/[*]/config-lang.in) ;;
5465 *)
5466 # From the config-lang.in, get $language, $lang_requires
5467 language=
5468 lang_requires=
5469 . ${lang_frag}
5470 for other in ${lang_requires} ; do
5471 case ,${enable_languages}, in
5472 *,$other,*) ;;
5473 *,all,*) ;;
5474 *,$language,*)
5475 echo " \`$other' language required by \`$language'; enabling" 1>&2
5476 enable_languages="${enable_languages},${other}"
5477 ;;
5478 esac
5479 done
5480 ;;
5481 esac
5482 done
5483
9b134994 5484 new_enable_languages=,c,
9e07f89d 5485 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5486 potential_languages=,c,
9e07f89d
NN
5487
5488 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5489 case ${lang_frag} in
5490 ..) ;;
5491 # The odd quoting in the next line works around
5492 # an apparent bug in bash 1.12 on linux.
5493 ${srcdir}/gcc/[*]/config-lang.in) ;;
5494 *)
c6b750e1 5495 # From the config-lang.in, get $language, $target_libs,
1d39f329 5496 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5497 language=
5498 target_libs=
5499 lang_dirs=
64ce424c 5500 subdir_requires=
9b134994
PB
5501 boot_language=no
5502 build_by_default=yes
9e07f89d 5503 . ${lang_frag}
9b134994
PB
5504 if test x${language} = x; then
5505 echo "${lang_frag} doesn't set \$language." 1>&2
5506 exit 1
5507 fi
5508
e8a5fa9c
RW
5509 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5510 boot_language=yes
5511 fi
5512
9b134994
PB
5513 case ,${enable_languages}, in
5514 *,${language},*)
9e07f89d
NN
5515 # Language was explicitly selected; include it.
5516 add_this_lang=yes
5517 ;;
9b134994
PB
5518 *,all,*)
5519 # 'all' was selected, select it if it is a default language
5520 add_this_lang=${build_by_default}
9e07f89d
NN
5521 ;;
5522 *)
5523 add_this_lang=no
5524 ;;
5525 esac
4b1cb4fe 5526
64ce424c 5527 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5528 for i in $subdir_requires; do
3d3adb43 5529 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5530 case ,${enable_languages}, in
5531 *,${language},*)
5532 # Specifically requested language; tell them.
c6b750e1
DJ
5533 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5534echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5535 { (exit 1); exit 1; }; }
64ce424c
PB
5536 ;;
5537 *)
5538 # Silently disable.
9b134994 5539 add_this_lang=unsupported
64ce424c
PB
5540 ;;
5541 esac
5542 done
5543
9b134994
PB
5544 # Disable Ada if no preexisting GNAT is available.
5545 case ,${enable_languages},:${language}:${have_gnat} in
5546 *,${language},*:ada:no)
5547 # Specifically requested language; tell them.
c6b750e1
DJ
5548 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5549echo "$as_me: error: GNAT is required to build $language" >&2;}
5550 { (exit 1); exit 1; }; }
9b134994
PB
5551 ;;
5552 *:ada:no)
5553 # Silently disable.
5554 add_this_lang=unsupported
5555 ;;
5556 esac
5557
59f7ec45
HPN
5558 # Disable a language that is unsupported by the target.
5559 case " $unsupported_languages " in
5560 *" $language "*)
9b134994 5561 add_this_lang=unsupported
59f7ec45
HPN
5562 ;;
5563 esac
5564
4b1cb4fe 5565 case $add_this_lang in
9b134994 5566 unsupported)
9e07f89d 5567 # Remove language-dependent dirs.
1d39f329
NN
5568 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5569 ;;
9b134994
PB
5570 no)
5571 # Remove language-dependent dirs; still show language as supported.
5572 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5573 potential_languages="${potential_languages}${language},"
5574 ;;
5575 yes)
5576 new_enable_languages="${new_enable_languages}${language},"
5577 potential_languages="${potential_languages}${language},"
1d39f329
NN
5578 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5579 case ${boot_language} in
5580 yes)
4fa63067 5581 # Add to (comma-separated) list of stage 1 languages.
9b134994 5582 stage1_languages="${stage1_languages}${language},"
e8a5fa9c
RW
5583 # We need to bootstrap any supporting libraries.
5584 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
5585 ;;
5586 esac
5587 ;;
9e07f89d
NN
5588 esac
5589 ;;
5590 esac
5591 done
5592
9b134994
PB
5593 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5594if test "${enable_stage1_languages+set}" = set; then
5595 enableval="$enable_stage1_languages"
5596 case ,${enable_stage1_languages}, in
5597 ,no,|,,)
5598 # Set it to something that will have no effect in the loop below
5599 enable_stage1_languages=c ;;
5600 ,yes,)
5601 enable_stage1_languages=`echo $new_enable_languages | \
5602 sed -e "s/^,//" -e "s/,$//" ` ;;
5603 *,all,*)
5604 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5605 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5606 esac
5607
5608 # Add "good" languages from enable_stage1_languages to stage1_languages,
5609 # while "bad" languages go in missing_languages. Leave no duplicates.
5610 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5611 case $potential_languages in
5612 *,$i,*)
5613 case $stage1_languages in
5614 *,$i,*) ;;
5615 *) stage1_languages="$stage1_languages$i," ;;
5616 esac ;;
5617 *)
5618 case $missing_languages in
5619 *,$i,*) ;;
5620 *) missing_languages="$missing_languages$i," ;;
5621 esac ;;
5622 esac
5623 done
c6b750e1 5624fi;
9b134994
PB
5625
5626 # Remove leading/trailing commas that were added for simplicity
5627 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5628 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5629 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5630 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5631
9e07f89d 5632 if test "x$missing_languages" != x; then
c6b750e1 5633 { { echo "$as_me:$LINENO: error:
27258dd4 5634The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5635Supported languages are: ${potential_languages}" >&5
5636echo "$as_me: error:
5637The following requested languages could not be built: ${missing_languages}
5638Supported languages are: ${potential_languages}" >&2;}
5639 { (exit 1); exit 1; }; }
9e07f89d 5640 fi
9e07f89d
NN
5641 if test "x$new_enable_languages" != "x$enable_languages"; then
5642 echo The following languages will be built: ${new_enable_languages}
9b134994 5643 enable_languages="$new_enable_languages"
9e07f89d 5644 fi
9b134994 5645
c6b750e1 5646
81ec575a 5647 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5648fi
5649
a6df5a19
PB
5650# Handle --disable-<component> generically.
5651for dir in $configdirs $build_configdirs $target_configdirs ; do
5652 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5653 varname=`echo $dirname | sed -e s/+/_/g`
5654 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5655 noconfigdirs="$noconfigdirs $dir"
5656 fi
5657done
5658
4f0ef2d8
CD
5659# Check for Boehm's garbage collector
5660# Check whether --enable-objc-gc or --disable-objc-gc was given.
5661if test "${enable_objc_gc+set}" = set; then
5662 enableval="$enable_objc_gc"
5663 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5664 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5665 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5666echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5667 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5668 ;;
5669esac
c6b750e1 5670fi;
4f0ef2d8
CD
5671
5672# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5673case ,${enable_languages},:${enable_objc_gc} in
5674 *,objc,*:yes)
4f0ef2d8
CD
5675 # Keep target-boehm-gc if requested for Objective-C.
5676 ;;
4f0ef2d8 5677 *)
d42c4017
DA
5678 # Otherwise remove target-boehm-gc depending on target-libjava.
5679 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5680 noconfigdirs="$noconfigdirs target-boehm-gc"
5681 fi
4f0ef2d8
CD
5682 ;;
5683esac
5684
caeba88f
AL
5685# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5686# $build_configdirs and $target_configdirs.
9e07f89d
NN
5687# If we have the source for $noconfigdirs entries, add them to $notsupp.
5688
5689notsupp=""
5690for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5691 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5692 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5693 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5694 if test -r $srcdir/$dirname/configure ; then
5695 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5696 true
5697 else
5698 notsupp="$notsupp $dir"
5699 fi
5700 fi
5701 fi
caeba88f
AL
5702 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5703 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5704 if test -r $srcdir/$dirname/configure ; then
5705 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5706 true
5707 else
5708 notsupp="$notsupp $dir"
5709 fi
5710 fi
5711 fi
9e07f89d
NN
5712 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5713 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5714 if test -r $srcdir/$dirname/configure ; then
5715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5716 true
5717 else
5718 notsupp="$notsupp $dir"
5719 fi
5720 fi
5721 fi
5722done
5723
5724# Sometimes the tools are distributed with libiberty but with no other
5725# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5726# Don't let libgcc imply libiberty either.
9e07f89d 5727if test -n "${target_configdirs}" ; then
f86e35b8 5728 libgcc=
9e07f89d
NN
5729 others=
5730 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5731 if test "$i" = "libgcc"; then
5732 libgcc=target-libgcc
5733 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5734 if test -r $srcdir/$i/configure ; then
5735 others=yes;
5736 break;
5737 fi
5738 fi
5739 done
5740 if test -z "${others}" ; then
f86e35b8 5741 target_configdirs=$libgcc
9e07f89d
NN
5742 fi
5743fi
5744
5745# Quietly strip out all directories which aren't configurable in this tree.
5746# This relies on all configurable subdirectories being autoconfiscated, which
5747# is now the case.
6a9cf61e
PB
5748build_configdirs_all="$build_configdirs"
5749build_configdirs=
5750for i in ${build_configdirs_all} ; do
c6b750e1 5751 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5752 if test -f ${srcdir}/$j/configure ; then
5753 build_configdirs="${build_configdirs} $i"
5754 fi
5755done
5756
9e07f89d
NN
5757configdirs_all="$configdirs"
5758configdirs=
5759for i in ${configdirs_all} ; do
5760 if test -f ${srcdir}/$i/configure ; then
5761 configdirs="${configdirs} $i"
5762 fi
5763done
6a9cf61e 5764
9e07f89d
NN
5765target_configdirs_all="$target_configdirs"
5766target_configdirs=
5767for i in ${target_configdirs_all} ; do
c6b750e1 5768 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5769 if test -f ${srcdir}/$j/configure ; then
5770 target_configdirs="${target_configdirs} $i"
5771 fi
5772done
5773
5774# Produce a warning message for the subdirs we can't configure.
5775# This isn't especially interesting in the Cygnus tree, but in the individual
5776# FSF releases, it's important to let people know when their machine isn't
5777# supported by the one or two programs in a package.
5778
5779if test -n "${notsupp}" && test -z "${norecursion}" ; then
5780 # If $appdirs is non-empty, at least one of those directories must still
5781 # be configured, or we error out. (E.g., if the gas release supports a
5782 # specified target in some subdirs but not the gas subdir, we shouldn't
5783 # pretend that all is well.)
5784 if test -n "$appdirs" ; then
5785 for dir in $appdirs ; do
5786 if test -r $dir/Makefile.in ; then
5787 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5788 appdirs=""
5789 break
5790 fi
6a9cf61e 5791 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5792 appdirs=""
5793 break
5794 fi
5795 fi
5796 done
5797 if test -n "$appdirs" ; then
5798 echo "*** This configuration is not supported by this package." 1>&2
5799 exit 1
5800 fi
5801 fi
5802 # Okay, some application will build, or we don't care to check. Still
5803 # notify of subdirs not getting built.
5804 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5805 echo " ${notsupp}" 1>&2
5806 echo " (Any other directories should still work fine.)" 1>&2
5807fi
5808
5809case "$host" in
5810 *msdosdjgpp*)
5811 enable_gdbtk=no ;;
5812esac
5813
18f6b6ee
PB
5814# To find our prefix, in gcc_cv_tool_prefix.
5815
5816# The user is always right.
5817if test "${PATH_SEPARATOR+set}" != set; then
5818 echo "#! /bin/sh" >conf$$.sh
5819 echo "exit 0" >>conf$$.sh
5820 chmod +x conf$$.sh
5821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5822 PATH_SEPARATOR=';'
5823 else
5824 PATH_SEPARATOR=:
5825 fi
5826 rm -f conf$$.sh
5827fi
5828
5829
5830
5831if test "x$exec_prefix" = xNONE; then
5832 if test "x$prefix" = xNONE; then
5833 gcc_cv_tool_prefix=$ac_default_prefix
5834 else
5835 gcc_cv_tool_prefix=$prefix
5836 fi
5837else
5838 gcc_cv_tool_prefix=$exec_prefix
5839fi
5840
5841# If there is no compiler in the tree, use the PATH only. In any
5842# case, if there is no compiler in the tree nobody should use
5843# AS_FOR_TARGET and LD_FOR_TARGET.
5844if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5845 gcc_version=`cat $srcdir/gcc/BASE-VER`
5846 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5847 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5848 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5849 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5850 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5851 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5852else
5853 gcc_cv_tool_dirs=
5854fi
5855
5856if test x$build = x$target && test -n "$md_exec_prefix"; then
5857 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5858fi
5859
5860
5861
9e07f89d
NN
5862copy_dirs=
5863
c6b750e1 5864
a19b6204
MM
5865# Check whether --with-build-sysroot or --without-build-sysroot was given.
5866if test "${with_build_sysroot+set}" = set; then
5867 withval="$with_build_sysroot"
5868 if test x"$withval" != x ; then
5869 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5870 fi
5871else
5872 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5873fi;
a19b6204
MM
5874
5875
8a6ee3ab
JM
5876
5877# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5878if test "${with_debug_prefix_map+set}" = set; then
5879 withval="$with_debug_prefix_map"
5880 if test x"$withval" != x; then
5881 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5882 for debug_map in $withval; do
5883 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5884 done
5885 fi
5886else
5887 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5888fi;
5889
5890
7f6ef0c0
PB
5891# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5892# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5893# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5894# We want to ensure that TARGET libraries (which we know are built with
5895# gcc) are built with "-O2 -g", so include those options when setting
5896# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5897if test "x$CFLAGS_FOR_TARGET" = x; then
5898 CFLAGS_FOR_TARGET=$CFLAGS
5899 case " $CFLAGS " in
5900 *" -O2 "*) ;;
5901 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5902 esac
5903 case " $CFLAGS " in
5904 *" -g "* | *" -g3 "*) ;;
5905 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5906 esac
5907fi
5908
5909
5910if test "x$CXXFLAGS_FOR_TARGET" = x; then
5911 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5912 case " $CXXFLAGS " in
5913 *" -O2 "*) ;;
5914 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5915 esac
5916 case " $CXXFLAGS " in
5917 *" -g "* | *" -g3 "*) ;;
5918 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5919 esac
5920fi
5921
5922
9e07f89d
NN
5923# Handle --with-headers=XXX. If the value is not "yes", the contents of
5924# the named directory are copied to $(tooldir)/sys-include.
5925if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5926 if test x${is_cross_compiler} = xno ; then
5927 echo 1>&2 '***' --with-headers is only supported when cross compiling
5928 exit 1
5929 fi
5930 if test x"${with_headers}" != xyes ; then
18f6b6ee 5931 x=${gcc_cv_tool_prefix}
c6b750e1 5932 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5933 fi
5934fi
5935
5936# Handle --with-libs=XXX. If the value is not "yes", the contents of
5937# the name directories are copied to $(tooldir)/lib. Multiple directories
5938# are permitted.
5939if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5940 if test x${is_cross_compiler} = xno ; then
5941 echo 1>&2 '***' --with-libs is only supported when cross compiling
5942 exit 1
5943 fi
5944 if test x"${with_libs}" != xyes ; then
5945 # Copy the libraries in reverse order, so that files in the first named
5946 # library override files in subsequent libraries.
18f6b6ee 5947 x=${gcc_cv_tool_prefix}
9e07f89d 5948 for l in ${with_libs}; do
c6b750e1 5949 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5950 done
5951 fi
5952fi
5953
2429c060
PB
5954# Set with_gnu_as and with_gnu_ld as appropriate.
5955#
5956# This is done by determining whether or not the appropriate directory
5957# is available, and by checking whether or not specific configurations
5958# have requested that this magic not happen.
c6b750e1
DJ
5959#
5960# The command line options always override the explicit settings in
2429c060
PB
5961# configure.in, and the settings in configure.in override this magic.
5962#
c6b750e1 5963# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5964# want to do that, then you should use the --without-gnu-as and
5965# --without-gnu-ld options for the configure script.
5966
5967if test x${use_gnu_as} = x &&
5968 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5969 with_gnu_as=yes
5970 extra_host_args="$extra_host_args --with-gnu-as"
5971fi
5972
5973if test x${use_gnu_ld} = x &&
93f9b408 5974 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5975 with_gnu_ld=yes
5976 extra_host_args="$extra_host_args --with-gnu-ld"
5977fi
5978
5979# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5980# can detect this case.
5981
5982if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5983 with_newlib=yes
5984 extra_host_args="$extra_host_args --with-newlib"
5985fi
5986
9e07f89d
NN
5987# Handle ${copy_dirs}
5988set fnord ${copy_dirs}
5989shift
5990while test $# != 0 ; do
5991 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5992 :
5993 else
5994 echo Copying $1 to $2
5995
5996 # Use the install script to create the directory and all required
5997 # parent directories.
5998 if test -d $2 ; then
5999 :
6000 else
6001 echo >config.temp
6002 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6003 fi
6004
6005 # Copy the directory, assuming we have tar.
6006 # FIXME: Should we use B in the second tar? Not all systems support it.
6007 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6008
6009 # It is the responsibility of the user to correctly adjust all
6010 # symlinks. If somebody can figure out how to handle them correctly
6011 # here, feel free to add the code.
6012
6013 echo $1 > $2/COPIED
6014 fi
6015 shift; shift
6016done
6017
2429c060
PB
6018# Determine a target-dependent exec_prefix that the installed
6019# gcc will search in. Keep this list sorted by triplet, with
6020# the *-*-osname triplets last.
6021md_exec_prefix=
6022case "${target}" in
6023 alpha*-*-*vms*)
6024 md_exec_prefix=/gnu/lib/gcc-lib
6025 ;;
521ec477 6026 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6027 md_exec_prefix=/dev/env/DJDIR/bin
6028 ;;
521ec477 6029 i[34567]86-*-sco3.2v5*)
2429c060
PB
6030 if test $with_gnu_as = yes; then
6031 md_exec_prefix=/usr/gnu/bin
6032 else
6033 md_exec_prefix=/usr/ccs/bin/elf
6034 fi
6035 ;;
6036
6037 mn10300-*-* | \
6038 powerpc-*-chorusos* | \
6039 powerpc*-*-eabi* | \
6040 powerpc*-*-sysv* | \
6041 powerpc*-*-kaos* | \
6042 s390x-ibm-tpf*)
6043 md_exec_prefix=/usr/ccs/bin
6044 ;;
6045 sparc64-*-elf*)
6046 ;;
6047 v850*-*-*)
6048 md_exec_prefix=/usr/ccs/bin
6049 ;;
8b66833e 6050 xtensa*-*-elf*)
2429c060
PB
6051 ;;
6052
6053 *-*-beos* | \
6054 *-*-elf* | \
6055 *-*-hpux* | \
6056 *-*-netware* | \
6057 *-*-nto-qnx* | \
6058 *-*-rtems* | \
6059 *-*-solaris2* | \
521ec477 6060 *-*-sysv[45]* | \
2429c060
PB
6061 *-*-vxworks* | \
6062 *-wrs-windiss)
6063 md_exec_prefix=/usr/ccs/bin
6064 ;;
6065esac
6066
a0da8069
NN
6067extra_arflags_for_target=
6068extra_nmflags_for_target=
6069extra_ranlibflags_for_target=
6070target_makefile_frag=/dev/null
6071case "${target}" in
4e206d7e
DB
6072 mep*-*-*)
6073 target_makefile_frag="config/mt-mep"
6074 ;;
77d7106f
AM
6075 spu-*-*)
6076 target_makefile_frag="config/mt-spu"
6077 ;;
429acdec
RS
6078 mips*-sde-elf*)
6079 target_makefile_frag="config/mt-sde"
6080 ;;
f3b1e08e
RS
6081 mipsisa*-*-elfoabi*)
6082 target_makefile_frag="config/mt-mips-elfoabi"
6083 ;;
e7c8859c
RS
6084 mips*-*-*linux* | mips*-*-gnu*)
6085 target_makefile_frag="config/mt-mips-gnu"
6086 ;;
2a3124ca 6087 *-*-netware*)
a0da8069
NN
6088 target_makefile_frag="config/mt-netware"
6089 ;;
29383458 6090 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6091 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6092 ;;
6093 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6094 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6095 # commands to handle both 32-bit and 64-bit objects. These flags are
6096 # harmless if we're using GNU nm or ar.
6097 extra_arflags_for_target=" -X32_64"
6098 extra_nmflags_for_target=" -B -X32_64"
6099 ;;
6100 *-*-darwin*)
6101 # ranlib from Darwin requires the -c flag to look at common symbols.
6102 extra_ranlibflags_for_target=" -c"
6103 ;;
6104 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6105 target_makefile_frag="config/mt-wince"
6106 ;;
6107esac
6108
6109alphaieee_frag=/dev/null
6110case $target in
6111 alpha*-*-*)
6112 # This just makes sure to use the -mieee option to build target libs.
6113 # This should probably be set individually by each library.
6114 alphaieee_frag="config/mt-alphaieee"
6115 ;;
6116esac
6117
6118# If --enable-target-optspace always use -Os instead of -O2 to build
6119# the target libraries, similarly if it is not specified, use -Os
6120# on selected platforms.
6121ospace_frag=/dev/null
6122case "${enable_target_optspace}:${target}" in
6123 yes:*)
6124 ospace_frag="config/mt-ospace"
6125 ;;
6126 :d30v-*)
6127 ospace_frag="config/mt-d30v"
6128 ;;
6129 :m32r-* | :d10v-* | :fr30-*)
6130 ospace_frag="config/mt-ospace"
6131 ;;
6132 no:* | :*)
6133 ;;
6134 *)
6135 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6136 ;;
6137esac
6138
a0da8069
NN
6139# Default to using --with-stabs for certain targets.
6140if test x${with_stabs} = x ; then
6141 case "${target}" in
e31d1ea3 6142 mips*-*-irix[56]*)
a0da8069
NN
6143 ;;
6144 mips*-*-* | alpha*-*-osf*)
6145 with_stabs=yes;
6146 extra_host_args="${extra_host_args} --with-stabs"
6147 ;;
6148 esac
6149fi
6150
6151# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6152# them automatically.
6153case "${host}" in
c6b750e1 6154 hppa*64*-*-hpux11*)
a0da8069
NN
6155 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6156 ;;
6157esac
6158
a0da8069
NN
6159# Some systems (e.g., one of the i386-aix systems the gas testers are
6160# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6161tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6162build_tooldir=${tooldir}
6163
a0da8069
NN
6164# Create a .gdbinit file which runs the one in srcdir
6165# and tells GDB to look there for source files.
6166
6167if test -r ${srcdir}/.gdbinit ; then
6168 case ${srcdir} in
6169 .) ;;
6170 *) cat > ./.gdbinit <<EOF
6171# ${NO_EDIT}
6172dir ${srcdir}
6173dir .
6174source ${srcdir}/.gdbinit
6175EOF
6176 ;;
6177 esac
6178fi
6179
a0da8069
NN
6180# Make sure that the compiler is able to generate an executable. If it
6181# can't, we are probably in trouble. We don't care whether we can run the
6182# executable--we might be using a cross compiler--we only care whether it
6183# can be created. At this point the main configure script has set CC.
6184we_are_ok=no
6185echo "int main () { return 0; }" > conftest.c
6186${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6187if test $? = 0 ; then
6188 if test -s conftest || test -s conftest.exe ; then
6189 we_are_ok=yes
6190 fi
c6b750e1 6191fi
a0da8069
NN
6192case $we_are_ok in
6193 no)
6194 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6195 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6196 rm -f conftest*
6197 exit 1
6198 ;;
6199esac
6200rm -f conftest*
6201
6202# The Solaris /usr/ucb/cc compiler does not appear to work.
6203case "${host}" in
6204 sparc-sun-solaris2*)
6205 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6206 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6207 could_use=
6208 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6209 if test -d /opt/cygnus/bin ; then
6210 if test "$could_use" = "" ; then
6211 could_use="/opt/cygnus/bin"
6212 else
6213 could_use="$could_use or /opt/cygnus/bin"
6214 fi
6215 fi
6216 if test "$could_use" = "" ; then
6217 echo "Warning: compilation may fail because you're using"
6218 echo "/usr/ucb/cc. You should change your PATH or CC "
6219 echo "variable and rerun configure."
6220 else
6221 echo "Warning: compilation may fail because you're using"
6222 echo "/usr/ucb/cc, when you should use the C compiler from"
6223 echo "$could_use. You should change your"
6224 echo "PATH or CC variable and rerun configure."
6225 fi
6226 fi
6227 ;;
6228esac
6229
3bbd2f8f 6230# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6231case "${host}" in
6232 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6233 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6234 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6235 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6236esac
6237
3bbd2f8f 6238# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6239# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6240# built executables to PATH.
3bbd2f8f
AL
6241if test "$RPATH_ENVVAR" = PATH; then
6242 GCC_SHLIB_SUBDIR=/shlib
6243else
6244 GCC_SHLIB_SUBDIR=
6245fi
6246
a0da8069
NN
6247# Record target_configdirs and the configure arguments for target and
6248# build configuration in Makefile.
6249target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6250build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6251
a0da8069
NN
6252# Determine whether gdb needs tk/tcl or not.
6253# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6254# and in that case we want gdb to be built without tk. Ugh!
6255# In fact I believe gdb is the *only* package directly dependent on tk,
6256# so we should be able to put the 'maybe's in unconditionally and
6257# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6258# 100% sure that that's safe though.
c180f501 6259
675c6968 6260gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6261case "$enable_gdbtk" in
6262 no)
6263 GDB_TK="" ;;
c180f501
AC
6264 yes)
6265 GDB_TK="${gdb_tk}" ;;
a0da8069 6266 *)
c180f501
AC
6267 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6268 # distro. Eventually someone will fix this and move Insight, nee
6269 # gdbtk to a separate directory.
6270 if test -d ${srcdir}/gdb/gdbtk ; then
6271 GDB_TK="${gdb_tk}"
6272 else
6273 GDB_TK=""
6274 fi
6275 ;;
a0da8069 6276esac
907be67c
DJ
6277CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6278INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6279
6bd3dfaa 6280# Strip out unwanted targets.
dd12c3a8
NN
6281
6282# While at that, we remove Makefiles if we were started for recursive
6283# configuration, so that the top-level Makefile reconfigures them,
6284# like we used to do when configure itself was recursive.
dd12c3a8 6285
6bd3dfaa
PB
6286# Loop over modules. $extrasub must be used with care, limiting as
6287# much as possible the usage of range addresses. That's because autoconf
6288# splits the sed script to overcome limits in the number of commands,
6289# and relying on carefully-timed sed passes may turn out to be very hard
6290# to maintain later. In this particular case, you just have to be careful
6291# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6292
319cab08
PB
6293# Check whether --enable-bootstrap or --disable-bootstrap was given.
6294if test "${enable_bootstrap+set}" = set; then
6295 enableval="$enable_bootstrap"
c6b750e1 6296
319cab08 6297else
9cb3fa6f 6298 enable_bootstrap=default
c6b750e1 6299fi;
319cab08 6300
9cb3fa6f
PB
6301# Issue errors and warnings for invalid/strange bootstrap combinations.
6302case "$configdirs" in
6303 *gcc*) have_compiler=yes ;;
6304 *) have_compiler=no ;;
6305esac
6306
6307case "$have_compiler:$host:$target:$enable_bootstrap" in
6308 *:*:*:no) ;;
6309
0aed8855 6310 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6311 # and we are in a native configuration.
6312 yes:$build:$build:default)
0aed8855 6313 enable_bootstrap=yes ;;
9cb3fa6f
PB
6314
6315 *:*:*:default)
6316 enable_bootstrap=no ;;
6317
6318 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6319 yes:$build:$build:yes)
9cb3fa6f
PB
6320 ;;
6321
6322 # Other configurations, but we have a compiler. Assume the user knows
6323 # what he's doing.
80911fe1 6324 yes:*:*:yes)
c6b750e1
DJ
6325 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6326echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6327 ;;
6328
6329 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6330 no:*:*:yes)
c6b750e1
DJ
6331 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6332echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6333 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
6334
6335 # Fail if wrong command line
6336 *)
c6b750e1
DJ
6337 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6338echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6339 { (exit 1); exit 1; }; }
9cb3fa6f
PB
6340 ;;
6341esac
6342
6343# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
6344case "$enable_bootstrap" in
6345 yes)
498d4a71 6346 bootstrap_suffix=bootstrap ;;
319cab08 6347 no)
498d4a71 6348 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
6349esac
6350
6a9cf61e 6351for module in ${build_configdirs} ; do
498d4a71
CF
6352 if test -z "${no_recursion}" \
6353 && test -f ${build_subdir}/${module}/Makefile; then
6354 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6355 rm -f ${build_subdir}/${module}/Makefile
6356 fi
6357 extrasub="$extrasub
6358/^@if build-$module\$/d
6359/^@endif build-$module\$/d
6360/^@if build-$module-$bootstrap_suffix\$/d
6361/^@endif build-$module-$bootstrap_suffix\$/d"
6362done
6363for module in ${configdirs} ; do
80911fe1 6364 if test -z "${no_recursion}"; then
8cf39b1b 6365 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6366 if test -f ${file}; then
6367 echo 1>&2 "*** removing ${file} to force reconfigure"
6368 rm -f ${file}
6369 fi
6370 done
498d4a71
CF
6371 fi
6372 extrasub="$extrasub
6373/^@if $module\$/d
6374/^@endif $module\$/d
6375/^@if $module-$bootstrap_suffix\$/d
6376/^@endif $module-$bootstrap_suffix\$/d"
6377done
6378for module in ${target_configdirs} ; do
6379 if test -z "${no_recursion}" \
6380 && test -f ${target_subdir}/${module}/Makefile; then
6381 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6382 rm -f ${target_subdir}/${module}/Makefile
6383 fi
e8a5fa9c
RW
6384
6385 # We only bootstrap target libraries listed in bootstrap_target_libs.
6386 case $bootstrap_target_libs in
6387 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6388 *) target_bootstrap_suffix=no-bootstrap ;;
6389 esac
6390
498d4a71
CF
6391 extrasub="$extrasub
6392/^@if target-$module\$/d
6393/^@endif target-$module\$/d
e8a5fa9c
RW
6394/^@if target-$module-$target_bootstrap_suffix\$/d
6395/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6396done
6397
6bd3dfaa
PB
6398extrasub="$extrasub
6399/^@if /,/^@endif /d"
a0da8069
NN
6400
6401# Create the serialization dependencies. This uses a temporary file.
6402
e6bfb94a
AO
6403# Check whether --enable-serial-configure or --disable-serial-configure was given.
6404if test "${enable_serial_configure+set}" = set; then
6405 enableval="$enable_serial_configure"
e6bfb94a 6406
c6b750e1 6407fi;
e6bfb94a 6408
1047cb91
DD
6409case ${enable_serial_configure} in
6410 yes)
6411 enable_serial_build_configure=yes
6412 enable_serial_host_configure=yes
6413 enable_serial_target_configure=yes
6414 ;;
6415esac
6416
a0da8069
NN
6417# These force 'configure's to be done one at a time, to avoid problems
6418# with contention over a shared config.cache.
6419rm -f serdep.tmp
e6bfb94a 6420echo '# serdep.tmp' > serdep.tmp
a0da8069 6421olditem=
1047cb91 6422test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6423for item in ${build_configdirs} ; do
6424 case ${olditem} in
6425 "") ;;
e6bfb94a 6426 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6427 esac
6428 olditem=${item}
6429done
6430olditem=
1047cb91 6431test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6432for item in ${configdirs} ; do
6433 case ${olditem} in
6434 "") ;;
e6bfb94a 6435 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6436 esac
6437 olditem=${item}
6438done
6439olditem=
1047cb91 6440test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6441for item in ${target_configdirs} ; do
6442 case ${olditem} in
6443 "") ;;
e6bfb94a 6444 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6445 esac
6446 olditem=${item}
6447done
6448serialization_dependencies=serdep.tmp
6449
6450
e6bfb94a 6451# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6452# target, nonopt, and variable assignments. These are the ones we
6453# might not want to pass down to subconfigures. Also strip
6454# program-prefix, program-suffix, and program-transform-name, so that
6455# we can pass down a consistent program-transform-name.
6456baseargs=
6457keep_next=no
6458skip_next=no
6459eval "set -- $ac_configure_args"
18f6b6ee
PB
6460for ac_arg
6461do
c6b750e1
DJ
6462 if test X"$skip_next" = X"yes"; then
6463 skip_next=no
6464 continue
6465 fi
6466 if test X"$keep_next" = X"yes"; then
6467 case $ac_arg in
6468 *\'*)
6469 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6470 esac
6471 baseargs="$baseargs '$ac_arg'"
6472 keep_next=no
6473 continue
6474 fi
6475
6476 # Handle separated arguments. Based on the logic generated by
6477 # autoconf 2.59.
6478 case $ac_arg in
6479 *=* | --config-cache | -C | -disable-* | --disable-* \
6480 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6481 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6482 | -with-* | --with-* | -without-* | --without-* | --x)
6483 separate_arg=no
6484 ;;
6485 -*)
6486 separate_arg=yes
6487 ;;
6488 *)
6489 separate_arg=no
6490 ;;
6491 esac
6492
6493 case "$ac_arg" in
6494 --no*)
6495 continue
6496 ;;
6497 --c* | \
6498 --sr* | \
6499 --ho* | \
6500 --bu* | \
6501 --t* | \
6502 --program-* | \
6503 -cache_file* | \
6504 -srcdir* | \
6505 -host* | \
6506 -build* | \
6507 -target* | \
6508 -program-prefix* | \
6509 -program-suffix* | \
6510 -program-transform-name* )
6511 skip_next=$separate_arg
6512 continue
6513 ;;
6514 -*)
6515 # An option. Add it.
6516 case $ac_arg in
6517 *\'*)
6518 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6519 esac
6520 baseargs="$baseargs '$ac_arg'"
6521 keep_next=$separate_arg
6522 ;;
6523 *)
6524 # Either a variable assignment, or a nonopt (triplet). Don't
6525 # pass it down; let the Makefile handle this.
6526 continue
6527 ;;
6528 esac
6529done
6530# Remove the initial space we just introduced and, as these will be
6531# expanded by make, quote '$'.
6532baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6533
f27d4f92
DJ
6534# Add in --program-transform-name, after --program-prefix and
6535# --program-suffix have been applied to it. Autoconf has already
6536# doubled dollar signs and backslashes in program_transform_name; we want
6537# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6538# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6539# Also, because we want to override the logic in subdir configure scripts to
6540# choose program_transform_name, replace any s,x,x, with s,y,y,.
6541sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6542${program_transform_name}
6543EOF_SED
6544gcc_transform_name=`cat conftestsed.out`
6545rm -f conftestsed.out
6546baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6547if test "$silent" = yes; then
6548 baseargs="$baseargs --silent"
6549fi
34a0f3cf 6550baseargs="$baseargs --disable-option-checking"
f27d4f92 6551
a0da8069
NN
6552# For the build-side libraries, we just need to pretend we're native,
6553# and not use the same cache file. Multilibs are neither needed nor
6554# desired.
4b900473 6555build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6556
6557# For host modules, accept cache file option, or specification as blank.
6558case "${cache_file}" in
6559"") # empty
6560 cache_file_option="" ;;
6561/* | [A-Za-z]:[\\/]* ) # absolute path
6562 cache_file_option="--cache-file=${cache_file}" ;;
6563*) # relative path
6564 cache_file_option="--cache-file=../${cache_file}" ;;
6565esac
6566
82252c06
NN
6567# Host dirs don't like to share a cache file either, horribly enough.
6568# This seems to be due to autoconf 2.5x stupidity.
4b900473 6569host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6570
6571target_configargs=${baseargs}
6572
6573# Passing a --with-cross-host argument lets the target libraries know
6574# whether they are being built with a cross-compiler or being built
6575# native. However, it would be better to use other mechanisms to make the
6576# sorts of decisions they want to make on this basis. Please consider
6577# this option to be deprecated. FIXME.
6578if test x${is_cross_compiler} = xyes ; then
c6b750e1 6579 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6580fi
6581
6582# Default to --enable-multilib.
6583if test x${enable_multilib} = x ; then
6584 target_configargs="--enable-multilib ${target_configargs}"
6585fi
6586
6587# Pass --with-newlib if appropriate. Note that target_configdirs has
6588# changed from the earlier setting of with_newlib.
6589if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6590 target_configargs="--with-newlib ${target_configargs}"
6591fi
6592
95036d20
NN
6593# Different target subdirs use different values of certain variables
6594# (notably CXX). Worse, multilibs use *lots* of different values.
6595# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6596# it doesn't automatically accept command-line overrides of them.
6597# This means it's not safe for target subdirs to share a cache file,
6598# which is disgusting, but there you have it. Hopefully this can be
6599# fixed in future. It's still worthwhile to use a cache file for each
6600# directory. I think.
6601
ae380b45
MS
6602# Pass the appropriate --build, --host, --target and --cache-file arguments.
6603# We need to pass --target, as newer autoconf's requires consistency
6604# for target_alias and gcc doesn't manage it consistently.
4b900473 6605target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6606
a0da8069
NN
6607FLAGS_FOR_TARGET=
6608case " $target_configdirs " in
6609 *" newlib "*)
6610 case " $target_configargs " in
6611 *" --with-newlib "*)
6612 case "$target" in
6613 *-cygwin*)
564b43e5 6614 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
6615 esac
6616
6617 # If we're not building GCC, don't discard standard headers.
6618 if test -d ${srcdir}/gcc; then
6619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6620
6621 if test "${build}" != "${host}"; then
6622 # On Canadian crosses, CC_FOR_TARGET will have already been set
6623 # by `configure', so we won't have an opportunity to add -Bgcc/
6624 # to it. This is right: we don't want to search that directory
6625 # for binaries, but we want the header files in there, so add
6626 # them explicitly.
b00612cc 6627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6628
6629 # Someone might think of using the pre-installed headers on
6630 # Canadian crosses, in case the installed compiler is not fully
6631 # compatible with the compiler being built. In this case, it
6632 # would be better to flag an error than risking having
6633 # incompatible object files being constructed. We can't
6634 # guarantee that an error will be flagged, but let's hope the
6635 # compiler will do it, when presented with incompatible header
6636 # files.
6637 fi
6638 fi
6639
6640 case "${target}-${is_cross_compiler}" in
ec11bdc6 6641 i[3456789]86-*-linux*-no)
a0da8069
NN
6642 # Here host == target, so we don't need to build gcc,
6643 # so we don't want to discard standard headers.
6644 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6645 ;;
6646 *)
6647 # If we're building newlib, use its generic headers last, but search
6648 # for any libc-related directories first (so make it the last -B
6649 # switch).
6650 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
6651
6652 # If we're building libgloss, find the startup file, simulator library
6653 # and linker script.
6654 case " $target_configdirs " in
6655 *" libgloss "*)
6656 # Look for startup file, simulator library and maybe linker script.
6657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6658 # Look for libnosys.a in case the target needs it.
6659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6660 # Most targets have the linker script in the source directory.
6661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6662 ;;
6663 esac
a0da8069
NN
6664 ;;
6665 esac
6666 ;;
6667 esac
6668 ;;
6669esac
45055374
CV
6670case "$target" in
6671*-mingw*)
6672 # Can't be handled as Cygwin above since Mingw does not use newlib.
6673 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' ;;
6674esac
a0da8069 6675
5fbad20a
DD
6676# Allow the user to override the flags for
6677# our build compiler if desired.
c66487f8
NC
6678if test x"${build}" = x"${host}" ; then
6679 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6680 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6681 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6682fi
5fbad20a 6683
a0da8069
NN
6684# On Canadian crosses, we'll be searching the right directories for
6685# the previously-installed cross compiler, so don't bother to add
6686# flags for directories within the install tree of the compiler
6687# being built; programs in there won't even run.
6688if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6689 # Search for pre-installed headers if nothing else fits.
bba45b8b 6690 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
6691fi
6692
6693if test "x${use_gnu_ld}" = x &&
6694 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6695 # Arrange for us to find uninstalled linker scripts.
b00612cc 6696 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6697fi
6698
a481dbb7
DD
6699# Search for other target-specific linker scripts and such.
6700case "${target}" in
4e206d7e
DB
6701 mep*)
6702 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6703 ;;
6704esac
6705
a0da8069 6706# Makefile fragments.
3e707e94
PB
6707for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6708do
6709 eval fragval=\$$frag
6710 if test $fragval != /dev/null; then
6711 eval $frag=${srcdir}/$fragval
6712 fi
6713done
a0da8069
NN
6714
6715
6716
6717
6718
6719# Miscellanea: directories, flags, etc.
6720
6721
6722
6723
6724
6725
6726
3bbd2f8f 6727
6a9cf61e 6728# Build module lists & subconfigure args.
a0da8069
NN
6729
6730
6731
be01d343
PB
6732# Host module lists & subconfigure args.
6733
6734
6735
6736# Target module lists & subconfigure args.
6737
6738
6739
6740# Build tools.
6741
6742
6743
1576798e
PB
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
be01d343
PB
6758# Generate default definitions for YACC, M4, LEX and other programs that run
6759# on the build machine. These are used if the Makefile can't locate these
6760# programs in objdir.
6761MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6762
6763for ac_prog in 'bison -y' byacc yacc
6764do
c6b750e1 6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6766set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6767echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6769if test "${ac_cv_prog_YACC+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6771else
6772 if test -n "$YACC"; then
6773 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6774else
c6b750e1
DJ
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_YACC="$ac_prog"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788
be01d343
PB
6789fi
6790fi
c6b750e1 6791YACC=$ac_cv_prog_YACC
be01d343 6792if test -n "$YACC"; then
c6b750e1
DJ
6793 echo "$as_me:$LINENO: result: $YACC" >&5
6794echo "${ECHO_T}$YACC" >&6
be01d343 6795else
c6b750e1
DJ
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
be01d343
PB
6798fi
6799
c6b750e1 6800 test -n "$YACC" && break
be01d343
PB
6801done
6802test -n "$YACC" || YACC="$MISSING bison -y"
6803
6804case " $build_configdirs " in
6805 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6806 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6807esac
6808
6809for ac_prog in bison
6810do
c6b750e1 6811 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6812set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6813echo "$as_me:$LINENO: checking for $ac_word" >&5
6814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6815if test "${ac_cv_prog_BISON+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6817else
6818 if test -n "$BISON"; then
6819 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6820else
c6b750e1
DJ
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_BISON="$ac_prog"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833done
6834
be01d343
PB
6835fi
6836fi
c6b750e1 6837BISON=$ac_cv_prog_BISON
be01d343 6838if test -n "$BISON"; then
c6b750e1
DJ
6839 echo "$as_me:$LINENO: result: $BISON" >&5
6840echo "${ECHO_T}$BISON" >&6
be01d343 6841else
c6b750e1
DJ
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
be01d343
PB
6844fi
6845
c6b750e1 6846 test -n "$BISON" && break
be01d343
PB
6847done
6848test -n "$BISON" || BISON="$MISSING bison"
6849
6850case " $build_configdirs " in
6851 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6852esac
6853
6854for ac_prog in gm4 gnum4 m4
6855do
c6b750e1 6856 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6857set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6858echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6860if test "${ac_cv_prog_M4+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6862else
6863 if test -n "$M4"; then
6864 ac_cv_prog_M4="$M4" # Let the user override the test.
6865else
c6b750e1
DJ
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_M4="$ac_prog"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878done
6879
be01d343
PB
6880fi
6881fi
c6b750e1 6882M4=$ac_cv_prog_M4
be01d343 6883if test -n "$M4"; then
c6b750e1
DJ
6884 echo "$as_me:$LINENO: result: $M4" >&5
6885echo "${ECHO_T}$M4" >&6
be01d343 6886else
c6b750e1
DJ
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
be01d343
PB
6889fi
6890
c6b750e1 6891 test -n "$M4" && break
be01d343
PB
6892done
6893test -n "$M4" || M4="$MISSING m4"
6894
6895case " $build_configdirs " in
6896 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6897esac
6898
6899for ac_prog in flex lex
6900do
c6b750e1 6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6902set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6903echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6905if test "${ac_cv_prog_LEX+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6907else
6908 if test -n "$LEX"; then
6909 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6910else
c6b750e1
DJ
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_LEX="$ac_prog"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923done
6924
be01d343
PB
6925fi
6926fi
c6b750e1 6927LEX=$ac_cv_prog_LEX
be01d343 6928if test -n "$LEX"; then
c6b750e1
DJ
6929 echo "$as_me:$LINENO: result: $LEX" >&5
6930echo "${ECHO_T}$LEX" >&6
be01d343 6931else
c6b750e1
DJ
6932 echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6
be01d343
PB
6934fi
6935
c6b750e1 6936 test -n "$LEX" && break
be01d343
PB
6937done
6938test -n "$LEX" || LEX="$MISSING flex"
6939
6940case " $build_configdirs " in
6941 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6942 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6943esac
6944
6945for ac_prog in flex
6946do
c6b750e1 6947 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6948set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6949echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6951if test "${ac_cv_prog_FLEX+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6953else
6954 if test -n "$FLEX"; then
6955 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6956else
c6b750e1
DJ
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_FLEX="$ac_prog"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970
be01d343
PB
6971fi
6972fi
c6b750e1 6973FLEX=$ac_cv_prog_FLEX
be01d343 6974if test -n "$FLEX"; then
c6b750e1
DJ
6975 echo "$as_me:$LINENO: result: $FLEX" >&5
6976echo "${ECHO_T}$FLEX" >&6
be01d343 6977else
c6b750e1
DJ
6978 echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6
be01d343
PB
6980fi
6981
c6b750e1 6982 test -n "$FLEX" && break
be01d343
PB
6983done
6984test -n "$FLEX" || FLEX="$MISSING flex"
6985
6986case " $build_configdirs " in
6987 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6988esac
6989
6990for ac_prog in makeinfo
6991do
c6b750e1 6992 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6993set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6994echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6996if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6998else
6999 if test -n "$MAKEINFO"; then
7000 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7001else
c6b750e1
DJ
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_MAKEINFO="$ac_prog"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015
be01d343
PB
7016fi
7017fi
c6b750e1 7018MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7019if test -n "$MAKEINFO"; then
c6b750e1
DJ
7020 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7021echo "${ECHO_T}$MAKEINFO" >&6
be01d343 7022else
c6b750e1
DJ
7023 echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6
be01d343
PB
7025fi
7026
c6b750e1 7027 test -n "$MAKEINFO" && break
be01d343
PB
7028done
7029test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7030
7031case " $build_configdirs " in
7032 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7033 *)
7034
10ad8ef3 7035 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7036 # higher, else we use the "missing" dummy.
7037 if ${MAKEINFO} --version \
10ad8ef3 7038 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7039 :
7040 else
7041 MAKEINFO="$MISSING makeinfo"
7042 fi
7043 ;;
7044
7045esac
a0da8069 7046
be01d343 7047# FIXME: expect and dejagnu may become build tools?
a0da8069 7048
be01d343
PB
7049for ac_prog in expect
7050do
c6b750e1 7051 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7052set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
7053echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7055if test "${ac_cv_prog_EXPECT+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7057else
7058 if test -n "$EXPECT"; then
7059 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7060else
c6b750e1
DJ
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068 ac_cv_prog_EXPECT="$ac_prog"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073done
7074
be01d343
PB
7075fi
7076fi
c6b750e1 7077EXPECT=$ac_cv_prog_EXPECT
be01d343 7078if test -n "$EXPECT"; then
c6b750e1
DJ
7079 echo "$as_me:$LINENO: result: $EXPECT" >&5
7080echo "${ECHO_T}$EXPECT" >&6
be01d343 7081else
c6b750e1
DJ
7082 echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
be01d343 7084fi
a0da8069 7085
c6b750e1 7086 test -n "$EXPECT" && break
be01d343
PB
7087done
7088test -n "$EXPECT" || EXPECT="expect"
a0da8069 7089
be01d343
PB
7090case " $configdirs " in
7091 *" expect "*)
7092 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7093 ;;
7094esac
a0da8069 7095
be01d343
PB
7096for ac_prog in runtest
7097do
c6b750e1 7098 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7099set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
7100echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102if test "${ac_cv_prog_RUNTEST+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7104else
7105 if test -n "$RUNTEST"; then
7106 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7107else
c6b750e1
DJ
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_RUNTEST="$ac_prog"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121
be01d343
PB
7122fi
7123fi
c6b750e1 7124RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7125if test -n "$RUNTEST"; then
c6b750e1
DJ
7126 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7127echo "${ECHO_T}$RUNTEST" >&6
be01d343 7128else
c6b750e1
DJ
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
be01d343 7131fi
a0da8069 7132
c6b750e1 7133 test -n "$RUNTEST" && break
be01d343
PB
7134done
7135test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7136
be01d343
PB
7137case " $configdirs " in
7138 *" dejagnu "*)
6b89cc21 7139 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7140 ;;
7141esac
a0da8069
NN
7142
7143
a0da8069 7144# Host tools.
859789af
AC
7145ncn_tool_prefix=
7146test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7147ncn_target_tool_prefix=
7148test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7149
9a819804
AO
7150
7151
7152if test -n "$AR"; then
7153 ac_cv_prog_AR=$AR
7154elif test -n "$ac_cv_prog_AR"; then
7155 AR=$ac_cv_prog_AR
7156fi
7157
7158if test -n "$ac_cv_prog_AR"; then
7159 for ncn_progname in ar; do
7160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7161set dummy ${ncn_progname}; ac_word=$2
7162echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164if test "${ac_cv_prog_AR+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 if test -n "$AR"; then
7168 ac_cv_prog_AR="$AR" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_AR="${ncn_progname}"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183
7184fi
7185fi
7186AR=$ac_cv_prog_AR
7187if test -n "$AR"; then
7188 echo "$as_me:$LINENO: result: $AR" >&5
7189echo "${ECHO_T}$AR" >&6
7190else
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
7193fi
7194
7195 done
7196fi
7197
7198for ncn_progname in ar; do
05cbd757
PB
7199 if test -n "$ncn_tool_prefix"; then
7200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7201set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7202echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204if test "${ac_cv_prog_AR+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7206else
7207 if test -n "$AR"; then
7208 ac_cv_prog_AR="$AR" # Let the user override the test.
7209else
c6b750e1
DJ
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221done
7222done
7223
859789af
AC
7224fi
7225fi
c6b750e1 7226AR=$ac_cv_prog_AR
859789af 7227if test -n "$AR"; then
c6b750e1
DJ
7228 echo "$as_me:$LINENO: result: $AR" >&5
7229echo "${ECHO_T}$AR" >&6
859789af 7230else
c6b750e1
DJ
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
859789af
AC
7233fi
7234
05cbd757
PB
7235 fi
7236 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7238set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7239echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241if test "${ac_cv_prog_AR+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7243else
05cbd757
PB
7244 if test -n "$AR"; then
7245 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7246else
c6b750e1
DJ
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_AR="${ncn_progname}"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258done
7259done
7260
859789af
AC
7261fi
7262fi
c6b750e1 7263AR=$ac_cv_prog_AR
05cbd757 7264if test -n "$AR"; then
c6b750e1
DJ
7265 echo "$as_me:$LINENO: result: $AR" >&5
7266echo "${ECHO_T}$AR" >&6
859789af 7267else
c6b750e1
DJ
7268 echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6
859789af 7270fi
c6b750e1 7271
05cbd757
PB
7272 fi
7273 test -n "$ac_cv_prog_AR" && break
7274done
7275
7276if test -z "$ac_cv_prog_AR" ; then
7277 set dummy ar
7278 if test $build = $host ; then
7279 AR="$2"
859789af 7280 else
05cbd757 7281 AR="${ncn_tool_prefix}$2"
859789af 7282 fi
859789af
AC
7283fi
7284
9a819804
AO
7285
7286
7287if test -n "$AS"; then
7288 ac_cv_prog_AS=$AS
7289elif test -n "$ac_cv_prog_AS"; then
7290 AS=$ac_cv_prog_AS
7291fi
7292
7293if test -n "$ac_cv_prog_AS"; then
7294 for ncn_progname in as; do
7295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7296set dummy ${ncn_progname}; ac_word=$2
7297echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7299if test "${ac_cv_prog_AS+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 if test -n "$AS"; then
7303 ac_cv_prog_AS="$AS" # Let the user override the test.
7304else
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_AS="${ncn_progname}"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316done
7317done
7318
7319fi
7320fi
7321AS=$ac_cv_prog_AS
7322if test -n "$AS"; then
7323 echo "$as_me:$LINENO: result: $AS" >&5
7324echo "${ECHO_T}$AS" >&6
7325else
7326 echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
7328fi
7329
7330 done
7331fi
7332
7333for ncn_progname in as; do
05cbd757
PB
7334 if test -n "$ncn_tool_prefix"; then
7335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7336set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7337echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339if test "${ac_cv_prog_AS+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7341else
7342 if test -n "$AS"; then
7343 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7344else
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357done
7358
859789af
AC
7359fi
7360fi
c6b750e1 7361AS=$ac_cv_prog_AS
859789af 7362if test -n "$AS"; then
c6b750e1
DJ
7363 echo "$as_me:$LINENO: result: $AS" >&5
7364echo "${ECHO_T}$AS" >&6
859789af 7365else
c6b750e1
DJ
7366 echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6
859789af
AC
7368fi
7369
05cbd757
PB
7370 fi
7371 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7373set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7374echo "$as_me:$LINENO: checking for $ac_word" >&5
7375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7376if test "${ac_cv_prog_AS+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7378else
05cbd757
PB
7379 if test -n "$AS"; then
7380 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7381else
c6b750e1
DJ
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_AS="${ncn_progname}"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393done
7394done
7395
859789af
AC
7396fi
7397fi
c6b750e1 7398AS=$ac_cv_prog_AS
05cbd757 7399if test -n "$AS"; then
c6b750e1
DJ
7400 echo "$as_me:$LINENO: result: $AS" >&5
7401echo "${ECHO_T}$AS" >&6
859789af 7402else
c6b750e1
DJ
7403 echo "$as_me:$LINENO: result: no" >&5
7404echo "${ECHO_T}no" >&6
859789af 7405fi
c6b750e1 7406
05cbd757
PB
7407 fi
7408 test -n "$ac_cv_prog_AS" && break
7409done
7410
7411if test -z "$ac_cv_prog_AS" ; then
7412 set dummy as
7413 if test $build = $host ; then
7414 AS="$2"
859789af 7415 else
05cbd757 7416 AS="${ncn_tool_prefix}$2"
859789af 7417 fi
859789af
AC
7418fi
7419
9a819804
AO
7420
7421
7422if test -n "$DLLTOOL"; then
7423 ac_cv_prog_DLLTOOL=$DLLTOOL
7424elif test -n "$ac_cv_prog_DLLTOOL"; then
7425 DLLTOOL=$ac_cv_prog_DLLTOOL
7426fi
7427
7428if test -n "$ac_cv_prog_DLLTOOL"; then
7429 for ncn_progname in dlltool; do
7430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7431set dummy ${ncn_progname}; ac_word=$2
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 if test -n "$DLLTOOL"; then
7438 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_DLLTOOL="${ncn_progname}"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
7454fi
7455fi
7456DLLTOOL=$ac_cv_prog_DLLTOOL
7457if test -n "$DLLTOOL"; then
7458 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7459echo "${ECHO_T}$DLLTOOL" >&6
7460else
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
7463fi
7464
7465 done
7466fi
7467
7468for ncn_progname in dlltool; do
05cbd757
PB
7469 if test -n "$ncn_tool_prefix"; then
7470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7471set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7472echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7476else
7477 if test -n "$DLLTOOL"; then
7478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7479else
c6b750e1
DJ
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493
859789af
AC
7494fi
7495fi
c6b750e1 7496DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7497if test -n "$DLLTOOL"; then
c6b750e1
DJ
7498 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7499echo "${ECHO_T}$DLLTOOL" >&6
859789af 7500else
c6b750e1
DJ
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
859789af
AC
7503fi
7504
05cbd757
PB
7505 fi
7506 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7508set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7509echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7511if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7513else
05cbd757
PB
7514 if test -n "$DLLTOOL"; then
7515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7516else
c6b750e1
DJ
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_DLLTOOL="${ncn_progname}"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528done
7529done
7530
859789af
AC
7531fi
7532fi
c6b750e1 7533DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7534if test -n "$DLLTOOL"; then
c6b750e1
DJ
7535 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7536echo "${ECHO_T}$DLLTOOL" >&6
859789af 7537else
c6b750e1
DJ
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
859789af 7540fi
c6b750e1 7541
05cbd757
PB
7542 fi
7543 test -n "$ac_cv_prog_DLLTOOL" && break
7544done
7545
7546if test -z "$ac_cv_prog_DLLTOOL" ; then
7547 set dummy dlltool
7548 if test $build = $host ; then
7549 DLLTOOL="$2"
859789af 7550 else
05cbd757 7551 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7552 fi
859789af
AC
7553fi
7554
9a819804
AO
7555
7556
7557if test -n "$LD"; then
7558 ac_cv_prog_LD=$LD
7559elif test -n "$ac_cv_prog_LD"; then
7560 LD=$ac_cv_prog_LD
7561fi
7562
7563if test -n "$ac_cv_prog_LD"; then
7564 for ncn_progname in ld; do
7565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7566set dummy ${ncn_progname}; ac_word=$2
7567echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569if test "${ac_cv_prog_LD+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 if test -n "$LD"; then
7573 ac_cv_prog_LD="$LD" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_LD="${ncn_progname}"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588
7589fi
7590fi
7591LD=$ac_cv_prog_LD
7592if test -n "$LD"; then
7593 echo "$as_me:$LINENO: result: $LD" >&5
7594echo "${ECHO_T}$LD" >&6
7595else
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598fi
7599
7600 done
7601fi
7602
7603for ncn_progname in ld; do
05cbd757
PB
7604 if test -n "$ncn_tool_prefix"; then
7605 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7606set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7607echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7609if test "${ac_cv_prog_LD+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7611else
7612 if test -n "$LD"; then
7613 ac_cv_prog_LD="$LD" # Let the user override the test.
7614else
c6b750e1
DJ
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627done
7628
859789af
AC
7629fi
7630fi
c6b750e1 7631LD=$ac_cv_prog_LD
859789af 7632if test -n "$LD"; then
c6b750e1
DJ
7633 echo "$as_me:$LINENO: result: $LD" >&5
7634echo "${ECHO_T}$LD" >&6
859789af 7635else
c6b750e1
DJ
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
859789af
AC
7638fi
7639
05cbd757
PB
7640 fi
7641 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7643set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7644echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7646if test "${ac_cv_prog_LD+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7648else
05cbd757
PB
7649 if test -n "$LD"; then
7650 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7651else
c6b750e1
DJ
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_LD="${ncn_progname}"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664done
7665
859789af
AC
7666fi
7667fi
c6b750e1 7668LD=$ac_cv_prog_LD
05cbd757 7669if test -n "$LD"; then
c6b750e1
DJ
7670 echo "$as_me:$LINENO: result: $LD" >&5
7671echo "${ECHO_T}$LD" >&6
859789af 7672else
c6b750e1
DJ
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
859789af 7675fi
c6b750e1 7676
05cbd757
PB
7677 fi
7678 test -n "$ac_cv_prog_LD" && break
7679done
7680
7681if test -z "$ac_cv_prog_LD" ; then
7682 set dummy ld
7683 if test $build = $host ; then
7684 LD="$2"
859789af 7685 else
05cbd757 7686 LD="${ncn_tool_prefix}$2"
859789af 7687 fi
859789af
AC
7688fi
7689
9a819804
AO
7690
7691
7692if test -n "$LIPO"; then
7693 ac_cv_prog_LIPO=$LIPO
7694elif test -n "$ac_cv_prog_LIPO"; then
7695 LIPO=$ac_cv_prog_LIPO
7696fi
7697
7698if test -n "$ac_cv_prog_LIPO"; then
7699 for ncn_progname in lipo; do
7700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7701set dummy ${ncn_progname}; ac_word=$2
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704if test "${ac_cv_prog_LIPO+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 if test -n "$LIPO"; then
7708 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_LIPO="${ncn_progname}"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
7724fi
7725fi
7726LIPO=$ac_cv_prog_LIPO
7727if test -n "$LIPO"; then
7728 echo "$as_me:$LINENO: result: $LIPO" >&5
7729echo "${ECHO_T}$LIPO" >&6
7730else
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
7733fi
7734
7735 done
7736fi
7737
7738for ncn_progname in lipo; do
be01d343
PB
7739 if test -n "$ncn_tool_prefix"; then
7740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7742echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7744if test "${ac_cv_prog_LIPO+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7746else
7747 if test -n "$LIPO"; then
7748 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7749else
c6b750e1
DJ
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761done
7762done
7763
be01d343
PB
7764fi
7765fi
c6b750e1 7766LIPO=$ac_cv_prog_LIPO
be01d343 7767if test -n "$LIPO"; then
c6b750e1
DJ
7768 echo "$as_me:$LINENO: result: $LIPO" >&5
7769echo "${ECHO_T}$LIPO" >&6
be01d343 7770else
c6b750e1
DJ
7771 echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
be01d343
PB
7773fi
7774
7775 fi
7776 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7778set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781if test "${ac_cv_prog_LIPO+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7783else
7784 if test -n "$LIPO"; then
7785 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7786else
c6b750e1
DJ
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_LIPO="${ncn_progname}"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798done
7799done
7800
be01d343
PB
7801fi
7802fi
c6b750e1 7803LIPO=$ac_cv_prog_LIPO
be01d343 7804if test -n "$LIPO"; then
c6b750e1
DJ
7805 echo "$as_me:$LINENO: result: $LIPO" >&5
7806echo "${ECHO_T}$LIPO" >&6
be01d343 7807else
c6b750e1
DJ
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
be01d343 7810fi
c6b750e1 7811
be01d343
PB
7812 fi
7813 test -n "$ac_cv_prog_LIPO" && break
7814done
7815
7816if test -z "$ac_cv_prog_LIPO" ; then
7817 set dummy lipo
7818 if test $build = $host ; then
7819 LIPO="$2"
7820 else
7821 LIPO="${ncn_tool_prefix}$2"
7822 fi
7823fi
7824
9a819804
AO
7825
7826
7827if test -n "$NM"; then
7828 ac_cv_prog_NM=$NM
7829elif test -n "$ac_cv_prog_NM"; then
7830 NM=$ac_cv_prog_NM
7831fi
7832
7833if test -n "$ac_cv_prog_NM"; then
7834 for ncn_progname in nm; do
7835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7836set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_prog_NM+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7841else
7842 if test -n "$NM"; then
7843 ac_cv_prog_NM="$NM" # Let the user override the test.
7844else
c6b750e1
DJ
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7852 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858
859789af
AC
7859fi
7860fi
c6b750e1 7861NM=$ac_cv_prog_NM
859789af 7862if test -n "$NM"; then
c6b750e1
DJ
7863 echo "$as_me:$LINENO: result: $NM" >&5
7864echo "${ECHO_T}$NM" >&6
859789af 7865else
c6b750e1
DJ
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
859789af
AC
7868fi
7869
9a819804
AO
7870 done
7871fi
7872
7873for ncn_progname in nm; do
7874 if test -n "$ncn_tool_prefix"; then
7875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7876set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7877echo "$as_me:$LINENO: checking for $ac_word" >&5
7878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7879if test "${ac_cv_prog_NM+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7881else
05cbd757
PB
7882 if test -n "$NM"; then
7883 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7884else
c6b750e1
DJ
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7892 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896done
7897done
7898
859789af
AC
7899fi
7900fi
c6b750e1 7901NM=$ac_cv_prog_NM
05cbd757 7902if test -n "$NM"; then
c6b750e1
DJ
7903 echo "$as_me:$LINENO: result: $NM" >&5
7904echo "${ECHO_T}$NM" >&6
859789af 7905else
c6b750e1
DJ
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
859789af 7908fi
c6b750e1 7909
05cbd757 7910 fi
9a819804
AO
7911 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913set dummy ${ncn_progname}; ac_word=$2
7914echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916if test "${ac_cv_prog_NM+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919 if test -n "$NM"; then
7920 ac_cv_prog_NM="$NM" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_NM="${ncn_progname}"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934done
7935
7936fi
7937fi
7938NM=$ac_cv_prog_NM
7939if test -n "$NM"; then
7940 echo "$as_me:$LINENO: result: $NM" >&5
7941echo "${ECHO_T}$NM" >&6
7942else
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
7945fi
7946
7947 fi
7948 test -n "$ac_cv_prog_NM" && break
7949done
7950
7951if test -z "$ac_cv_prog_NM" ; then
7952 set dummy nm
7953 if test $build = $host ; then
7954 NM="$2"
7955 else
7956 NM="${ncn_tool_prefix}$2"
7957 fi
7958fi
7959
7960
7961
7962if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB=$RANLIB
7964elif test -n "$ac_cv_prog_RANLIB"; then
7965 RANLIB=$ac_cv_prog_RANLIB
7966fi
7967
7968if test -n "$ac_cv_prog_RANLIB"; then
7969 for ncn_progname in ranlib; do
7970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971set dummy ${ncn_progname}; ac_word=$2
7972echo "$as_me:$LINENO: checking for $ac_word" >&5
7973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7974if test "${ac_cv_prog_RANLIB+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976else
7977 if test -n "$RANLIB"; then
7978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_RANLIB="${ncn_progname}"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993
7994fi
7995fi
7996RANLIB=$ac_cv_prog_RANLIB
7997if test -n "$RANLIB"; then
7998 echo "$as_me:$LINENO: result: $RANLIB" >&5
7999echo "${ECHO_T}$RANLIB" >&6
8000else
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
8003fi
8004
8005 done
8006fi
859789af 8007
9a819804 8008for ncn_progname in ranlib; do
05cbd757
PB
8009 if test -n "$ncn_tool_prefix"; then
8010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8011set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8012echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8014if test "${ac_cv_prog_RANLIB+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8016else
8017 if test -n "$RANLIB"; then
8018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8019else
c6b750e1
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033
859789af
AC
8034fi
8035fi
c6b750e1 8036RANLIB=$ac_cv_prog_RANLIB
859789af 8037if test -n "$RANLIB"; then
c6b750e1
DJ
8038 echo "$as_me:$LINENO: result: $RANLIB" >&5
8039echo "${ECHO_T}$RANLIB" >&6
859789af 8040else
c6b750e1
DJ
8041 echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6
859789af
AC
8043fi
8044
05cbd757
PB
8045 fi
8046 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8048set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8051if test "${ac_cv_prog_RANLIB+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8053else
05cbd757
PB
8054 if test -n "$RANLIB"; then
8055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8056else
c6b750e1
DJ
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_RANLIB="${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
859789af
AC
8071fi
8072fi
c6b750e1 8073RANLIB=$ac_cv_prog_RANLIB
05cbd757 8074if test -n "$RANLIB"; then
c6b750e1
DJ
8075 echo "$as_me:$LINENO: result: $RANLIB" >&5
8076echo "${ECHO_T}$RANLIB" >&6
859789af 8077else
c6b750e1
DJ
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
859789af 8080fi
c6b750e1 8081
859789af 8082 fi
05cbd757
PB
8083 test -n "$ac_cv_prog_RANLIB" && break
8084done
8085
8086if test -z "$ac_cv_prog_RANLIB" ; then
8087 RANLIB=":"
859789af
AC
8088fi
8089
9a819804
AO
8090
8091
8092if test -n "$STRIP"; then
8093 ac_cv_prog_STRIP=$STRIP
8094elif test -n "$ac_cv_prog_STRIP"; then
8095 STRIP=$ac_cv_prog_STRIP
8096fi
8097
8098if test -n "$ac_cv_prog_STRIP"; then
8099 for ncn_progname in strip; do
8100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101set dummy ${ncn_progname}; ac_word=$2
8102echo "$as_me:$LINENO: checking for $ac_word" >&5
8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104if test "${ac_cv_prog_STRIP+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 if test -n "$STRIP"; then
8108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_STRIP="${ncn_progname}"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121done
8122done
8123
8124fi
8125fi
8126STRIP=$ac_cv_prog_STRIP
8127if test -n "$STRIP"; then
8128 echo "$as_me:$LINENO: result: $STRIP" >&5
8129echo "${ECHO_T}$STRIP" >&6
8130else
8131 echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
8133fi
8134
8135 done
8136fi
8137
8138for ncn_progname in strip; do
be01d343
PB
8139 if test -n "$ncn_tool_prefix"; then
8140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8141set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8142echo "$as_me:$LINENO: checking for $ac_word" >&5
8143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8144if test "${ac_cv_prog_STRIP+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
8146else
8147 if test -n "$STRIP"; then
8148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8149else
c6b750e1
DJ
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161done
8162done
8163
be01d343
PB
8164fi
8165fi
c6b750e1 8166STRIP=$ac_cv_prog_STRIP
be01d343 8167if test -n "$STRIP"; then
c6b750e1
DJ
8168 echo "$as_me:$LINENO: result: $STRIP" >&5
8169echo "${ECHO_T}$STRIP" >&6
be01d343 8170else
c6b750e1
DJ
8171 echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
be01d343
PB
8173fi
8174
8175 fi
8176 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8178set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8179echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181if test "${ac_cv_prog_STRIP+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
8183else
8184 if test -n "$STRIP"; then
8185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8186else
c6b750e1
DJ
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_STRIP="${ncn_progname}"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198done
8199done
8200
be01d343
PB
8201fi
8202fi
c6b750e1 8203STRIP=$ac_cv_prog_STRIP
be01d343 8204if test -n "$STRIP"; then
c6b750e1
DJ
8205 echo "$as_me:$LINENO: result: $STRIP" >&5
8206echo "${ECHO_T}$STRIP" >&6
be01d343 8207else
c6b750e1
DJ
8208 echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6
be01d343 8210fi
c6b750e1 8211
be01d343
PB
8212 fi
8213 test -n "$ac_cv_prog_STRIP" && break
8214done
8215
8216if test -z "$ac_cv_prog_STRIP" ; then
8217 STRIP=":"
8218fi
8219
9a819804
AO
8220
8221
8222if test -n "$WINDRES"; then
8223 ac_cv_prog_WINDRES=$WINDRES
8224elif test -n "$ac_cv_prog_WINDRES"; then
8225 WINDRES=$ac_cv_prog_WINDRES
8226fi
8227
8228if test -n "$ac_cv_prog_WINDRES"; then
8229 for ncn_progname in windres; do
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231set dummy ${ncn_progname}; ac_word=$2
8232echo "$as_me:$LINENO: checking for $ac_word" >&5
8233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8234if test "${ac_cv_prog_WINDRES+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237 if test -n "$WINDRES"; then
8238 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8239else
8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241for as_dir in $PATH
8242do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_WINDRES="${ncn_progname}"
8248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251done
8252done
8253
8254fi
8255fi
8256WINDRES=$ac_cv_prog_WINDRES
8257if test -n "$WINDRES"; then
8258 echo "$as_me:$LINENO: result: $WINDRES" >&5
8259echo "${ECHO_T}$WINDRES" >&6
8260else
8261 echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6
8263fi
8264
8265 done
8266fi
8267
8268for ncn_progname in windres; do
05cbd757
PB
8269 if test -n "$ncn_tool_prefix"; then
8270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8272echo "$as_me:$LINENO: checking for $ac_word" >&5
8273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274if test "${ac_cv_prog_WINDRES+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8276else
8277 if test -n "$WINDRES"; then
8278 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8279else
c6b750e1
DJ
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291done
8292done
8293
859789af
AC
8294fi
8295fi
c6b750e1 8296WINDRES=$ac_cv_prog_WINDRES
859789af 8297if test -n "$WINDRES"; then
c6b750e1
DJ
8298 echo "$as_me:$LINENO: result: $WINDRES" >&5
8299echo "${ECHO_T}$WINDRES" >&6
859789af 8300else
c6b750e1
DJ
8301 echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6
859789af
AC
8303fi
8304
05cbd757
PB
8305 fi
8306 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8309echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311if test "${ac_cv_prog_WINDRES+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8313else
05cbd757
PB
8314 if test -n "$WINDRES"; then
8315 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8316else
c6b750e1
DJ
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_WINDRES="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329done
8330
859789af
AC
8331fi
8332fi
c6b750e1 8333WINDRES=$ac_cv_prog_WINDRES
05cbd757 8334if test -n "$WINDRES"; then
c6b750e1
DJ
8335 echo "$as_me:$LINENO: result: $WINDRES" >&5
8336echo "${ECHO_T}$WINDRES" >&6
859789af 8337else
c6b750e1
DJ
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
859789af 8340fi
c6b750e1 8341
05cbd757
PB
8342 fi
8343 test -n "$ac_cv_prog_WINDRES" && break
8344done
8345
8346if test -z "$ac_cv_prog_WINDRES" ; then
8347 set dummy windres
8348 if test $build = $host ; then
8349 WINDRES="$2"
859789af 8350 else
05cbd757 8351 WINDRES="${ncn_tool_prefix}$2"
859789af 8352 fi
859789af
AC
8353fi
8354
9a819804
AO
8355
8356
0c24b341
NC
8357if test -n "$WINDMC"; then
8358 ac_cv_prog_WINDMC=$WINDMC
8359elif test -n "$ac_cv_prog_WINDMC"; then
8360 WINDMC=$ac_cv_prog_WINDMC
8361fi
8362
8363if test -n "$ac_cv_prog_WINDMC"; then
8364 for ncn_progname in windmc; do
8365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8366set dummy ${ncn_progname}; ac_word=$2
8367echo "$as_me:$LINENO: checking for $ac_word" >&5
8368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8369if test "${ac_cv_prog_WINDMC+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371else
8372 if test -n "$WINDMC"; then
8373 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8374else
8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376for as_dir in $PATH
8377do
8378 IFS=$as_save_IFS
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_WINDMC="${ncn_progname}"
8383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386done
8387done
8388
8389fi
8390fi
8391WINDMC=$ac_cv_prog_WINDMC
8392if test -n "$WINDMC"; then
8393 echo "$as_me:$LINENO: result: $WINDMC" >&5
8394echo "${ECHO_T}$WINDMC" >&6
8395else
8396 echo "$as_me:$LINENO: result: no" >&5
8397echo "${ECHO_T}no" >&6
8398fi
8399
8400 done
8401fi
8402
8403for ncn_progname in windmc; do
8404 if test -n "$ncn_tool_prefix"; then
8405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8407echo "$as_me:$LINENO: checking for $ac_word" >&5
8408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8409if test "${ac_cv_prog_WINDMC+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 if test -n "$WINDMC"; then
8413 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426done
8427done
8428
8429fi
8430fi
8431WINDMC=$ac_cv_prog_WINDMC
8432if test -n "$WINDMC"; then
8433 echo "$as_me:$LINENO: result: $WINDMC" >&5
8434echo "${ECHO_T}$WINDMC" >&6
8435else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438fi
8439
8440 fi
8441 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443set dummy ${ncn_progname}; ac_word=$2
8444echo "$as_me:$LINENO: checking for $ac_word" >&5
8445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8446if test "${ac_cv_prog_WINDMC+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 if test -n "$WINDMC"; then
8450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459 ac_cv_prog_WINDMC="${ncn_progname}"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8462 fi
8463done
8464done
8465
8466fi
8467fi
8468WINDMC=$ac_cv_prog_WINDMC
8469if test -n "$WINDMC"; then
8470 echo "$as_me:$LINENO: result: $WINDMC" >&5
8471echo "${ECHO_T}$WINDMC" >&6
8472else
8473 echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6
8475fi
8476
8477 fi
8478 test -n "$ac_cv_prog_WINDMC" && break
8479done
8480
8481if test -z "$ac_cv_prog_WINDMC" ; then
8482 set dummy windmc
8483 if test $build = $host ; then
8484 WINDMC="$2"
8485 else
8486 WINDMC="${ncn_tool_prefix}$2"
8487 fi
8488fi
8489
8490
8491
9a819804
AO
8492if test -n "$OBJCOPY"; then
8493 ac_cv_prog_OBJCOPY=$OBJCOPY
8494elif test -n "$ac_cv_prog_OBJCOPY"; then
8495 OBJCOPY=$ac_cv_prog_OBJCOPY
8496fi
8497
8498if test -n "$ac_cv_prog_OBJCOPY"; then
8499 for ncn_progname in objcopy; do
8500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501set dummy ${ncn_progname}; ac_word=$2
8502echo "$as_me:$LINENO: checking for $ac_word" >&5
8503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8504if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507 if test -n "$OBJCOPY"; then
8508 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_OBJCOPY="${ncn_progname}"
8518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521done
8522done
8523
8524fi
8525fi
8526OBJCOPY=$ac_cv_prog_OBJCOPY
8527if test -n "$OBJCOPY"; then
8528 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8529echo "${ECHO_T}$OBJCOPY" >&6
8530else
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
8533fi
8534
8535 done
8536fi
8537
8538for ncn_progname in objcopy; do
05cbd757
PB
8539 if test -n "$ncn_tool_prefix"; then
8540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8541set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8542echo "$as_me:$LINENO: checking for $ac_word" >&5
8543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8544if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8546else
8547 if test -n "$OBJCOPY"; then
8548 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8549else
c6b750e1
DJ
8550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
8552do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561done
8562done
8563
859789af
AC
8564fi
8565fi
c6b750e1 8566OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8567if test -n "$OBJCOPY"; then
c6b750e1
DJ
8568 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8569echo "${ECHO_T}$OBJCOPY" >&6
859789af 8570else
c6b750e1
DJ
8571 echo "$as_me:$LINENO: result: no" >&5
8572echo "${ECHO_T}no" >&6
859789af
AC
8573fi
8574
05cbd757
PB
8575 fi
8576 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8579echo "$as_me:$LINENO: checking for $ac_word" >&5
8580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8581if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8583else
05cbd757
PB
8584 if test -n "$OBJCOPY"; then
8585 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8586else
c6b750e1
DJ
8587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588for as_dir in $PATH
8589do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_OBJCOPY="${ncn_progname}"
8595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8597 fi
8598done
8599done
8600
859789af
AC
8601fi
8602fi
c6b750e1 8603OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8604if test -n "$OBJCOPY"; then
c6b750e1
DJ
8605 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8606echo "${ECHO_T}$OBJCOPY" >&6
859789af 8607else
c6b750e1
DJ
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
859789af 8610fi
c6b750e1 8611
05cbd757
PB
8612 fi
8613 test -n "$ac_cv_prog_OBJCOPY" && break
8614done
8615
8616if test -z "$ac_cv_prog_OBJCOPY" ; then
8617 set dummy objcopy
8618 if test $build = $host ; then
8619 OBJCOPY="$2"
859789af 8620 else
05cbd757 8621 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8622 fi
859789af
AC
8623fi
8624
9a819804
AO
8625
8626
8627if test -n "$OBJDUMP"; then
8628 ac_cv_prog_OBJDUMP=$OBJDUMP
8629elif test -n "$ac_cv_prog_OBJDUMP"; then
8630 OBJDUMP=$ac_cv_prog_OBJDUMP
8631fi
8632
8633if test -n "$ac_cv_prog_OBJDUMP"; then
8634 for ncn_progname in objdump; do
8635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8636set dummy ${ncn_progname}; ac_word=$2
8637echo "$as_me:$LINENO: checking for $ac_word" >&5
8638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8639if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641else
8642 if test -n "$OBJDUMP"; then
8643 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8644else
8645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646for as_dir in $PATH
8647do
8648 IFS=$as_save_IFS
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_OBJDUMP="${ncn_progname}"
8653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8654 break 2
8655 fi
8656done
8657done
8658
8659fi
8660fi
8661OBJDUMP=$ac_cv_prog_OBJDUMP
8662if test -n "$OBJDUMP"; then
8663 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8664echo "${ECHO_T}$OBJDUMP" >&6
8665else
8666 echo "$as_me:$LINENO: result: no" >&5
8667echo "${ECHO_T}no" >&6
8668fi
8669
8670 done
8671fi
8672
8673for ncn_progname in objdump; do
05cbd757
PB
8674 if test -n "$ncn_tool_prefix"; then
8675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8676set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8677echo "$as_me:$LINENO: checking for $ac_word" >&5
8678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8679if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8681else
8682 if test -n "$OBJDUMP"; then
8683 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8684else
c6b750e1
DJ
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696done
8697done
8698
859789af
AC
8699fi
8700fi
c6b750e1 8701OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8702if test -n "$OBJDUMP"; then
c6b750e1
DJ
8703 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8704echo "${ECHO_T}$OBJDUMP" >&6
859789af 8705else
c6b750e1
DJ
8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
859789af
AC
8708fi
8709
05cbd757
PB
8710 fi
8711 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8713set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8714echo "$as_me:$LINENO: checking for $ac_word" >&5
8715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8716if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8718else
05cbd757
PB
8719 if test -n "$OBJDUMP"; then
8720 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8721else
c6b750e1
DJ
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729 ac_cv_prog_OBJDUMP="${ncn_progname}"
8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8732 fi
8733done
8734done
8735
859789af
AC
8736fi
8737fi
c6b750e1 8738OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8739if test -n "$OBJDUMP"; then
c6b750e1
DJ
8740 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8741echo "${ECHO_T}$OBJDUMP" >&6
859789af 8742else
c6b750e1
DJ
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
859789af 8745fi
c6b750e1 8746
05cbd757
PB
8747 fi
8748 test -n "$ac_cv_prog_OBJDUMP" && break
8749done
8750
8751if test -z "$ac_cv_prog_OBJDUMP" ; then
8752 set dummy objdump
8753 if test $build = $host ; then
8754 OBJDUMP="$2"
859789af 8755 else
05cbd757 8756 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8757 fi
859789af
AC
8758fi
8759
a0da8069
NN
8760
8761
8762
8763
8764
be01d343 8765# Target tools.
c6b750e1 8766
2429c060
PB
8767# Check whether --with-build-time-tools or --without-build-time-tools was given.
8768if test "${with_build_time_tools+set}" = set; then
8769 withval="$with_build_time_tools"
8770 case x"$withval" in
8771 x/*) ;;
8772 *)
8773 with_build_time_tools=
c6b750e1
DJ
8774 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8775echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8776 ;;
8777 esac
859789af 8778else
2429c060 8779 with_build_time_tools=
c6b750e1 8780fi;
859789af 8781
9a819804
AO
8782
8783
8784if test -n "$CC_FOR_TARGET"; then
8785 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8786elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8787 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8788fi
8789
8790if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8791 for ncn_progname in cc gcc; do
8792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793set dummy ${ncn_progname}; ac_word=$2
8794echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798else
8799 if test -n "$CC_FOR_TARGET"; then
8800 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
8816fi
8817fi
8818CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8819if test -n "$CC_FOR_TARGET"; then
8820 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8821echo "${ECHO_T}$CC_FOR_TARGET" >&6
8822else
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
8825fi
8826
8827 done
8828fi
8829
8830if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8831 for ncn_progname in cc gcc; do
c6b750e1
DJ
8832 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8833echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8834 if test -x $with_build_time_tools/${ncn_progname}; then
8835 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8836 echo "$as_me:$LINENO: result: yes" >&5
8837echo "${ECHO_T}yes" >&6
cac3d6c4 8838 break
2429c060 8839 else
c6b750e1
DJ
8840 echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
cac3d6c4
CM
8842 fi
8843 done
55db4b87
PB
8844fi
8845
2429c060
PB
8846if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8847 for ncn_progname in cc gcc; do
8848 if test -n "$ncn_target_tool_prefix"; then
8849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8850set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8851echo "$as_me:$LINENO: checking for $ac_word" >&5
8852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8853if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8855else
8856 if test -n "$CC_FOR_TARGET"; then
8857 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8858else
c6b750e1
DJ
8859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870done
8871done
8872
55db4b87
PB
8873fi
8874fi
c6b750e1 8875CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8876if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8877 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8878echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8879else
c6b750e1
DJ
8880 echo "$as_me:$LINENO: result: no" >&5
8881echo "${ECHO_T}no" >&6
55db4b87
PB
8882fi
8883
2429c060
PB
8884 fi
8885 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8887set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8888echo "$as_me:$LINENO: checking for $ac_word" >&5
8889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8890if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8892else
05cbd757
PB
8893 if test -n "$CC_FOR_TARGET"; then
8894 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8895else
c6b750e1
DJ
8896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897for as_dir in $PATH
8898do
8899 IFS=$as_save_IFS
8900 test -z "$as_dir" && as_dir=.
8901 for ac_exec_ext in '' $ac_executable_extensions; do
8902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8903 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 break 2
8906 fi
8907done
8908done
8909
55db4b87
PB
8910fi
8911fi
c6b750e1 8912CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8913if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8914 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8915echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8916else
c6b750e1
DJ
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
55db4b87 8919fi
c6b750e1 8920
2429c060
PB
8921 fi
8922 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8923 done
8924fi
c6b750e1 8925
05cbd757
PB
8926if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8927 set dummy cc gcc
8928 if test $build = $target ; then
8929 CC_FOR_TARGET="$2"
55db4b87 8930 else
05cbd757 8931 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8932 fi
d3f5afc4
MS
8933else
8934 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8935fi
8936
9a819804
AO
8937
8938
8939if test -n "$CXX_FOR_TARGET"; then
8940 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8941elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8942 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8943fi
8944
8945if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8946 for ncn_progname in c++ g++ cxx gxx; do
8947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8948set dummy ${ncn_progname}; ac_word=$2
8949echo "$as_me:$LINENO: checking for $ac_word" >&5
8950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8951if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954 if test -n "$CXX_FOR_TARGET"; then
8955 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8956else
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8967 fi
8968done
8969done
8970
8971fi
8972fi
8973CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8974if test -n "$CXX_FOR_TARGET"; then
8975 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8976echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8977else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980fi
8981
8982 done
8983fi
8984
8985if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8986 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8987 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8988echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8989 if test -x $with_build_time_tools/${ncn_progname}; then
8990 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8991 echo "$as_me:$LINENO: result: yes" >&5
8992echo "${ECHO_T}yes" >&6
2429c060
PB
8993 break
8994 else
c6b750e1
DJ
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
2429c060
PB
8997 fi
8998 done
8999fi
9000
9001if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9002 for ncn_progname in c++ g++ cxx gxx; do
9003 if test -n "$ncn_target_tool_prefix"; then
9004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9005set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9006echo "$as_me:$LINENO: checking for $ac_word" >&5
9007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9008if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9010else
9011 if test -n "$CXX_FOR_TARGET"; then
9012 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9013else
c6b750e1
DJ
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9024 fi
9025done
9026done
9027
55db4b87
PB
9028fi
9029fi
c6b750e1 9030CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9031if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
9032 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9033echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 9034else
c6b750e1
DJ
9035 echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
55db4b87
PB
9037fi
9038
2429c060
PB
9039 fi
9040 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9042set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9043echo "$as_me:$LINENO: checking for $ac_word" >&5
9044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9045if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9047else
05cbd757
PB
9048 if test -n "$CXX_FOR_TARGET"; then
9049 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9050else
c6b750e1
DJ
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9061 fi
9062done
9063done
9064
55db4b87
PB
9065fi
9066fi
c6b750e1 9067CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9068if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
9069 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9070echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 9071else
c6b750e1
DJ
9072 echo "$as_me:$LINENO: result: no" >&5
9073echo "${ECHO_T}no" >&6
55db4b87 9074fi
c6b750e1 9075
2429c060
PB
9076 fi
9077 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9078 done
9079fi
c6b750e1 9080
05cbd757
PB
9081if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9082 set dummy c++ g++ cxx gxx
9083 if test $build = $target ; then
9084 CXX_FOR_TARGET="$2"
55db4b87 9085 else
05cbd757 9086 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9087 fi
d3f5afc4
MS
9088else
9089 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9090fi
9091
9a819804
AO
9092
9093
9094if test -n "$GCC_FOR_TARGET"; then
9095 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9096elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9097 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9098fi
9099
9100if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9101 for ncn_progname in gcc; do
9102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9103set dummy ${ncn_progname}; ac_word=$2
9104echo "$as_me:$LINENO: checking for $ac_word" >&5
9105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else
9109 if test -n "$GCC_FOR_TARGET"; then
9110 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9111else
9112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113for as_dir in $PATH
9114do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9122 fi
9123done
9124done
9125
9126fi
9127fi
9128GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9129if test -n "$GCC_FOR_TARGET"; then
9130 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9131echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9132else
9133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
9135fi
9136
9137 done
9138fi
9139
9140if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9141 for ncn_progname in gcc; do
c6b750e1
DJ
9142 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9143echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9144 if test -x $with_build_time_tools/${ncn_progname}; then
9145 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9146 echo "$as_me:$LINENO: result: yes" >&5
9147echo "${ECHO_T}yes" >&6
2429c060
PB
9148 break
9149 else
c6b750e1
DJ
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
2429c060
PB
9152 fi
9153 done
9154fi
9155
9156if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9157 for ncn_progname in gcc; do
9158 if test -n "$ncn_target_tool_prefix"; then
9159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9160set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9161echo "$as_me:$LINENO: checking for $ac_word" >&5
9162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9163if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9165else
2429c060
PB
9166 if test -n "$GCC_FOR_TARGET"; then
9167 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9168else
c6b750e1
DJ
9169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $PATH
9171do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180done
9181done
9182
55db4b87
PB
9183fi
9184fi
c6b750e1 9185GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 9186if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
9187 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9188echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 9189else
c6b750e1
DJ
9190 echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6
55db4b87
PB
9192fi
9193
2429c060
PB
9194 fi
9195 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9197set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9198echo "$as_me:$LINENO: checking for $ac_word" >&5
9199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9200if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9202else
05cbd757
PB
9203 if test -n "$GCC_FOR_TARGET"; then
9204 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9205else
c6b750e1
DJ
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217done
9218done
9219
55db4b87
PB
9220fi
9221fi
c6b750e1 9222GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 9223if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
9224 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9225echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 9226else
c6b750e1
DJ
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
55db4b87 9229fi
c6b750e1 9230
2429c060
PB
9231 fi
9232 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9233 done
9234fi
c6b750e1 9235
05cbd757
PB
9236if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9237 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
9238else
9239 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
9240fi
9241
9a819804
AO
9242
9243
9244if test -n "$GCJ_FOR_TARGET"; then
9245 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9246elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9247 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9248fi
9249
9250if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9251 for ncn_progname in gcj; do
9252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9253set dummy ${ncn_progname}; ac_word=$2
9254echo "$as_me:$LINENO: checking for $ac_word" >&5
9255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9256if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258else
9259 if test -n "$GCJ_FOR_TARGET"; then
9260 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9261else
9262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263for as_dir in $PATH
9264do
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9272 fi
9273done
9274done
9275
9276fi
9277fi
9278GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9279if test -n "$GCJ_FOR_TARGET"; then
9280 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9281echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9282else
9283 echo "$as_me:$LINENO: result: no" >&5
9284echo "${ECHO_T}no" >&6
9285fi
9286
9287 done
9288fi
9289
9290if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9291 for ncn_progname in gcj; do
c6b750e1
DJ
9292 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9293echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9294 if test -x $with_build_time_tools/${ncn_progname}; then
9295 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9296 echo "$as_me:$LINENO: result: yes" >&5
9297echo "${ECHO_T}yes" >&6
2429c060
PB
9298 break
9299 else
c6b750e1
DJ
9300 echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
2429c060
PB
9302 fi
9303 done
9304fi
9305
9306if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9307 for ncn_progname in gcj; do
9308 if test -n "$ncn_target_tool_prefix"; then
9309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9311echo "$as_me:$LINENO: checking for $ac_word" >&5
9312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9313if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9315else
9316 if test -n "$GCJ_FOR_TARGET"; then
9317 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9318else
c6b750e1
DJ
9319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9329 fi
9330done
9331done
9332
55db4b87
PB
9333fi
9334fi
9a819804
AO
9335GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9336if test -n "$GCJ_FOR_TARGET"; then
9337 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9338echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9339else
9340 echo "$as_me:$LINENO: result: no" >&5
9341echo "${ECHO_T}no" >&6
9342fi
9343
9344 fi
9345 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347set dummy ${ncn_progname}; ac_word=$2
9348echo "$as_me:$LINENO: checking for $ac_word" >&5
9349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9350if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353 if test -n "$GCJ_FOR_TARGET"; then
9354 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9366 fi
9367done
9368done
9369
9370fi
9371fi
9372GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9373if test -n "$GCJ_FOR_TARGET"; then
9374 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9375echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9376else
9377 echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
9379fi
9380
9381 fi
9382 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9383 done
9384fi
9385
9386if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9387 set dummy gcj
9388 if test $build = $target ; then
9389 GCJ_FOR_TARGET="$2"
9390 else
9391 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9392 fi
d3f5afc4
MS
9393else
9394 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9395fi
9396
9397
9398
9399if test -n "$GFORTRAN_FOR_TARGET"; then
9400 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9401elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9402 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9403fi
9404
9a819804
AO
9405if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9406 for ncn_progname in gfortran; do
9407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9408set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9409echo "$as_me:$LINENO: checking for $ac_word" >&5
9410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9411if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 9412 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9413else
9a819804
AO
9414 if test -n "$GFORTRAN_FOR_TARGET"; then
9415 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9416else
c6b750e1
DJ
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9424 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428done
9429done
9430
55db4b87
PB
9431fi
9432fi
9a819804
AO
9433GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9434if test -n "$GFORTRAN_FOR_TARGET"; then
9435 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9436echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9437else
c6b750e1
DJ
9438 echo "$as_me:$LINENO: result: no" >&5
9439echo "${ECHO_T}no" >&6
55db4b87 9440fi
c6b750e1 9441
2429c060
PB
9442 done
9443fi
c6b750e1 9444
9a819804 9445if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9446 for ncn_progname in gfortran; do
c6b750e1
DJ
9447 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9448echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9449 if test -x $with_build_time_tools/${ncn_progname}; then
9450 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9451 echo "$as_me:$LINENO: result: yes" >&5
9452echo "${ECHO_T}yes" >&6
2429c060
PB
9453 break
9454 else
c6b750e1
DJ
9455 echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
2429c060
PB
9457 fi
9458 done
9459fi
9460
9461if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9462 for ncn_progname in gfortran; do
9463 if test -n "$ncn_target_tool_prefix"; then
9464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9465set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9466echo "$as_me:$LINENO: checking for $ac_word" >&5
9467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9468if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9470else
9471 if test -n "$GFORTRAN_FOR_TARGET"; then
9472 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9473else
c6b750e1
DJ
9474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475for as_dir in $PATH
9476do
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9481 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9484 fi
9485done
9486done
9487
55db4b87
PB
9488fi
9489fi
c6b750e1 9490GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9491if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9492 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9493echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9494else
c6b750e1
DJ
9495 echo "$as_me:$LINENO: result: no" >&5
9496echo "${ECHO_T}no" >&6
55db4b87
PB
9497fi
9498
2429c060
PB
9499 fi
9500 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9502set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9503echo "$as_me:$LINENO: checking for $ac_word" >&5
9504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9505if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9507else
05cbd757 9508 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9509 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9510else
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9521 fi
9522done
9523done
9524
55db4b87
PB
9525fi
9526fi
c6b750e1 9527GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9528if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9529 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9530echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9531else
c6b750e1
DJ
9532 echo "$as_me:$LINENO: result: no" >&5
9533echo "${ECHO_T}no" >&6
55db4b87 9534fi
c6b750e1 9535
2429c060
PB
9536 fi
9537 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9538 done
9539fi
c6b750e1 9540
05cbd757
PB
9541if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9542 set dummy gfortran
9543 if test $build = $target ; then
9544 GFORTRAN_FOR_TARGET="$2"
55db4b87 9545 else
05cbd757 9546 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9547 fi
d3f5afc4
MS
9548else
9549 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9550fi
9551
2429c060
PB
9552
9553
2429c060
PB
9554cat > conftest.c << \EOF
9555#ifdef __GNUC__
9556 gcc_yay;
9557#endif
9558EOF
9559if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9560 have_gcc_for_target=yes
859789af 9561else
2429c060
PB
9562 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9563 have_gcc_for_target=no
859789af 9564fi
2429c060
PB
9565rm conftest.c
9566
9567
9568
859789af 9569
2429c060
PB
9570if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9571 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9572 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9573echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9574 if test -x $with_build_time_tools/ar; then
9575 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9576 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
9577 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9578echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 9579 else
c6b750e1
DJ
9580 echo "$as_me:$LINENO: result: no" >&5
9581echo "${ECHO_T}no" >&6
3a35eeb3 9582 fi
2429c060
PB
9583 elif test $build != $host && test $have_gcc_for_target = yes; then
9584 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9585 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9586 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9587 fi
2429c060 9588fi
c6b750e1 9589if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9590 # Extract the first word of "ar", so it can be a program name with args.
9591set dummy ar; ac_word=$2
c6b750e1
DJ
9592echo "$as_me:$LINENO: checking for $ac_word" >&5
9593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9594if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9596else
c6b750e1
DJ
9597 case $AR_FOR_TARGET in
9598 [\\/]* | ?:[\\/]*)
2429c060
PB
9599 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9600 ;;
2429c060 9601 *)
c6b750e1
DJ
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603for as_dir in $gcc_cv_tool_dirs
9604do
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9609 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9612 fi
9613done
9614done
9615
2429c060
PB
9616 ;;
9617esac
859789af 9618fi
c6b750e1
DJ
9619AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9620
2429c060 9621if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9622 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9623echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 9624else
c6b750e1
DJ
9625 echo "$as_me:$LINENO: result: no" >&5
9626echo "${ECHO_T}no" >&6
859789af 9627fi
05cbd757 9628
2429c060
PB
9629fi
9630if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9631
9632
9633if test -n "$AR_FOR_TARGET"; then
9634 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9635elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9636 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9637fi
9638
9639if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9640 for ncn_progname in ar; do
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642set dummy ${ncn_progname}; ac_word=$2
9643echo "$as_me:$LINENO: checking for $ac_word" >&5
9644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9645if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648 if test -n "$AR_FOR_TARGET"; then
9649 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9650else
9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652for as_dir in $PATH
9653do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9661 fi
9662done
9663done
9664
9665fi
9666fi
9667AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9668if test -n "$AR_FOR_TARGET"; then
9669 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9670echo "${ECHO_T}$AR_FOR_TARGET" >&6
9671else
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
9674fi
9675
9676 done
9677fi
9678
9679if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9680 for ncn_progname in ar; do
c6b750e1
DJ
9681 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9682echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9683 if test -x $with_build_time_tools/${ncn_progname}; then
9684 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9685 echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6
2429c060
PB
9687 break
9688 else
c6b750e1
DJ
9689 echo "$as_me:$LINENO: result: no" >&5
9690echo "${ECHO_T}no" >&6
2429c060
PB
9691 fi
9692 done
859789af
AC
9693fi
9694
2429c060
PB
9695if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9696 for ncn_progname in ar; do
9697 if test -n "$ncn_target_tool_prefix"; then
9698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9699set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9700echo "$as_me:$LINENO: checking for $ac_word" >&5
9701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9702if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9704else
2429c060
PB
9705 if test -n "$AR_FOR_TARGET"; then
9706 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9707else
c6b750e1
DJ
9708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709for as_dir in $PATH
9710do
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9715 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9718 fi
9719done
9720done
9721
7e0f7140
GK
9722fi
9723fi
c6b750e1 9724AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9725if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9726 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9727echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9728else
c6b750e1
DJ
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
7e0f7140
GK
9731fi
9732
2429c060
PB
9733 fi
9734 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9736set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9737echo "$as_me:$LINENO: checking for $ac_word" >&5
9738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9739if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9741else
2429c060
PB
9742 if test -n "$AR_FOR_TARGET"; then
9743 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9744else
c6b750e1
DJ
9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746for as_dir in $PATH
9747do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756done
9757done
9758
7e0f7140
GK
9759fi
9760fi
c6b750e1 9761AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9762if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9763 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9764echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9765else
c6b750e1
DJ
9766 echo "$as_me:$LINENO: result: no" >&5
9767echo "${ECHO_T}no" >&6
7e0f7140 9768fi
c6b750e1 9769
2429c060
PB
9770 fi
9771 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9772 done
9773fi
c6b750e1 9774
2429c060
PB
9775if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9776 set dummy ar
7e0f7140 9777 if test $build = $target ; then
2429c060 9778 AR_FOR_TARGET="$2"
7e0f7140 9779 else
2429c060 9780 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9781 fi
d3f5afc4
MS
9782else
9783 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9784fi
9785
3a35eeb3
PB
9786else
9787 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9788fi
9789
9790
9791
9792
9793if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9794 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9795 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9796echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9797 if test -x $with_build_time_tools/as; then
9798 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9799 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9800 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9801echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9802 else
c6b750e1
DJ
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
3a35eeb3 9805 fi
2429c060
PB
9806 elif test $build != $host && test $have_gcc_for_target = yes; then
9807 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9808 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9809 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9810 fi
9811fi
c6b750e1 9812if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9813 # Extract the first word of "as", so it can be a program name with args.
9814set dummy as; ac_word=$2
c6b750e1
DJ
9815echo "$as_me:$LINENO: checking for $ac_word" >&5
9816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9817if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9819else
c6b750e1
DJ
9820 case $AS_FOR_TARGET in
9821 [\\/]* | ?:[\\/]*)
2429c060
PB
9822 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9823 ;;
2429c060 9824 *)
c6b750e1
DJ
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $gcc_cv_tool_dirs
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9832 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836done
9837done
9838
2429c060
PB
9839 ;;
9840esac
9841fi
c6b750e1
DJ
9842AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9843
2429c060 9844if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9845 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9846echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9847else
c6b750e1
DJ
9848 echo "$as_me:$LINENO: result: no" >&5
9849echo "${ECHO_T}no" >&6
2429c060
PB
9850fi
9851
9852fi
9853if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9854
9855
9856if test -n "$AS_FOR_TARGET"; then
9857 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9858elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9859 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9860fi
9861
9862if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9863 for ncn_progname in as; do
9864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9865set dummy ${ncn_progname}; ac_word=$2
9866echo "$as_me:$LINENO: checking for $ac_word" >&5
9867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9868if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870else
9871 if test -n "$AS_FOR_TARGET"; then
9872 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9884 fi
9885done
9886done
9887
9888fi
9889fi
9890AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9891if test -n "$AS_FOR_TARGET"; then
9892 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9893echo "${ECHO_T}$AS_FOR_TARGET" >&6
9894else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897fi
9898
9899 done
9900fi
9901
9902if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9903 for ncn_progname in as; do
c6b750e1
DJ
9904 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9905echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9906 if test -x $with_build_time_tools/${ncn_progname}; then
9907 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9908 echo "$as_me:$LINENO: result: yes" >&5
9909echo "${ECHO_T}yes" >&6
2429c060
PB
9910 break
9911 else
c6b750e1
DJ
9912 echo "$as_me:$LINENO: result: no" >&5
9913echo "${ECHO_T}no" >&6
2429c060
PB
9914 fi
9915 done
9916fi
9917
9918if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9919 for ncn_progname in as; do
9920 if test -n "$ncn_target_tool_prefix"; then
9921 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9922set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9923echo "$as_me:$LINENO: checking for $ac_word" >&5
9924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9925if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9927else
9928 if test -n "$AS_FOR_TARGET"; then
9929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9930else
c6b750e1
DJ
9931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932for as_dir in $PATH
9933do
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9941 fi
9942done
9943done
9944
2429c060
PB
9945fi
9946fi
c6b750e1 9947AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9948if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9949 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9950echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9951else
c6b750e1
DJ
9952 echo "$as_me:$LINENO: result: no" >&5
9953echo "${ECHO_T}no" >&6
2429c060
PB
9954fi
9955
9956 fi
9957 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9959set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9960echo "$as_me:$LINENO: checking for $ac_word" >&5
9961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9962if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9964else
9965 if test -n "$AS_FOR_TARGET"; then
9966 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9967else
c6b750e1
DJ
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 break 2
9978 fi
9979done
9980done
9981
2429c060
PB
9982fi
9983fi
c6b750e1 9984AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9985if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9986 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9987echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9988else
c6b750e1
DJ
9989 echo "$as_me:$LINENO: result: no" >&5
9990echo "${ECHO_T}no" >&6
2429c060 9991fi
c6b750e1 9992
2429c060
PB
9993 fi
9994 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9995 done
9996fi
c6b750e1 9997
2429c060
PB
9998if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9999 set dummy as
10000 if test $build = $target ; then
10001 AS_FOR_TARGET="$2"
10002 else
10003 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10004 fi
d3f5afc4
MS
10005else
10006 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
10007fi
10008
3a35eeb3
PB
10009else
10010 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
10011fi
10012
10013
10014
10015
10016if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10017 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10018 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
10019echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10020 if test -x $with_build_time_tools/dlltool; then
10021 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10022 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
10023 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10024echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 10025 else
c6b750e1
DJ
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
3a35eeb3 10028 fi
2429c060
PB
10029 elif test $build != $host && test $have_gcc_for_target = yes; then
10030 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
10031 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10032 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
10033 fi
10034fi
c6b750e1 10035if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10036 # Extract the first word of "dlltool", so it can be a program name with args.
10037set dummy dlltool; ac_word=$2
c6b750e1
DJ
10038echo "$as_me:$LINENO: checking for $ac_word" >&5
10039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10040if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10042else
c6b750e1
DJ
10043 case $DLLTOOL_FOR_TARGET in
10044 [\\/]* | ?:[\\/]*)
2429c060
PB
10045 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10046 ;;
2429c060 10047 *)
c6b750e1
DJ
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $gcc_cv_tool_dirs
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10055 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059done
10060done
10061
2429c060
PB
10062 ;;
10063esac
10064fi
c6b750e1
DJ
10065DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10066
2429c060 10067if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
10068 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10069echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 10070else
c6b750e1
DJ
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
2429c060
PB
10073fi
10074
10075fi
10076if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
10077
10078
10079if test -n "$DLLTOOL_FOR_TARGET"; then
10080 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10081elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10082 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10083fi
10084
10085if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10086 for ncn_progname in dlltool; do
10087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10088set dummy ${ncn_progname}; ac_word=$2
10089echo "$as_me:$LINENO: checking for $ac_word" >&5
10090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094 if test -n "$DLLTOOL_FOR_TARGET"; then
10095 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10096else
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10107 fi
10108done
10109done
10110
10111fi
10112fi
10113DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10114if test -n "$DLLTOOL_FOR_TARGET"; then
10115 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10116echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10117else
10118 echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
10120fi
10121
10122 done
10123fi
10124
10125if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10126 for ncn_progname in dlltool; do
c6b750e1
DJ
10127 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10128echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10129 if test -x $with_build_time_tools/${ncn_progname}; then
10130 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10131 echo "$as_me:$LINENO: result: yes" >&5
10132echo "${ECHO_T}yes" >&6
2429c060
PB
10133 break
10134 else
c6b750e1
DJ
10135 echo "$as_me:$LINENO: result: no" >&5
10136echo "${ECHO_T}no" >&6
2429c060
PB
10137 fi
10138 done
10139fi
10140
10141if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10142 for ncn_progname in dlltool; do
10143 if test -n "$ncn_target_tool_prefix"; then
10144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10145set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10146echo "$as_me:$LINENO: checking for $ac_word" >&5
10147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10148if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10150else
10151 if test -n "$DLLTOOL_FOR_TARGET"; then
10152 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10153else
c6b750e1
DJ
10154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155for as_dir in $PATH
10156do
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10164 fi
10165done
10166done
10167
2429c060
PB
10168fi
10169fi
c6b750e1 10170DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10171if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
10172 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10173echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 10174else
c6b750e1
DJ
10175 echo "$as_me:$LINENO: result: no" >&5
10176echo "${ECHO_T}no" >&6
2429c060
PB
10177fi
10178
10179 fi
10180 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10182set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10183echo "$as_me:$LINENO: checking for $ac_word" >&5
10184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10185if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10187else
10188 if test -n "$DLLTOOL_FOR_TARGET"; then
10189 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10190else
c6b750e1
DJ
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10198 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202done
10203done
10204
2429c060
PB
10205fi
10206fi
c6b750e1 10207DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10208if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
10209 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10210echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 10211else
c6b750e1
DJ
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
2429c060 10214fi
c6b750e1 10215
2429c060
PB
10216 fi
10217 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10218 done
10219fi
c6b750e1 10220
2429c060
PB
10221if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10222 set dummy dlltool
10223 if test $build = $target ; then
10224 DLLTOOL_FOR_TARGET="$2"
10225 else
10226 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10227 fi
d3f5afc4
MS
10228else
10229 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
10230fi
10231
3a35eeb3
PB
10232else
10233 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
10234fi
10235
10236
10237
10238
10239if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10240 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10241 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10242echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10243 if test -x $with_build_time_tools/ld; then
10244 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10245 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
10246 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10247echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 10248 else
c6b750e1
DJ
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
3a35eeb3 10251 fi
2429c060
PB
10252 elif test $build != $host && test $have_gcc_for_target = yes; then
10253 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
10254 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10255 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
10256 fi
10257fi
c6b750e1 10258if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10259 # Extract the first word of "ld", so it can be a program name with args.
10260set dummy ld; ac_word=$2
c6b750e1
DJ
10261echo "$as_me:$LINENO: checking for $ac_word" >&5
10262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10263if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10265else
c6b750e1
DJ
10266 case $LD_FOR_TARGET in
10267 [\\/]* | ?:[\\/]*)
2429c060
PB
10268 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10269 ;;
2429c060 10270 *)
c6b750e1
DJ
10271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272for as_dir in $gcc_cv_tool_dirs
10273do
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10278 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10281 fi
10282done
10283done
10284
2429c060
PB
10285 ;;
10286esac
10287fi
c6b750e1
DJ
10288LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10289
2429c060 10290if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10291 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10292echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10293else
c6b750e1
DJ
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
2429c060
PB
10296fi
10297
10298fi
10299if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
10300
10301
10302if test -n "$LD_FOR_TARGET"; then
10303 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10304elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10305 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10306fi
10307
10308if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10309 for ncn_progname in ld; do
10310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10311set dummy ${ncn_progname}; ac_word=$2
10312echo "$as_me:$LINENO: checking for $ac_word" >&5
10313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10314if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317 if test -n "$LD_FOR_TARGET"; then
10318 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10319else
10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321for as_dir in $PATH
10322do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331done
10332done
10333
10334fi
10335fi
10336LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10337if test -n "$LD_FOR_TARGET"; then
10338 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10339echo "${ECHO_T}$LD_FOR_TARGET" >&6
10340else
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
10343fi
10344
10345 done
10346fi
10347
10348if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10349 for ncn_progname in ld; do
c6b750e1
DJ
10350 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10351echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10352 if test -x $with_build_time_tools/${ncn_progname}; then
10353 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10354 echo "$as_me:$LINENO: result: yes" >&5
10355echo "${ECHO_T}yes" >&6
2429c060
PB
10356 break
10357 else
c6b750e1
DJ
10358 echo "$as_me:$LINENO: result: no" >&5
10359echo "${ECHO_T}no" >&6
2429c060
PB
10360 fi
10361 done
10362fi
10363
10364if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10365 for ncn_progname in ld; do
10366 if test -n "$ncn_target_tool_prefix"; then
10367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10368set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10369echo "$as_me:$LINENO: checking for $ac_word" >&5
10370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10371if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10373else
10374 if test -n "$LD_FOR_TARGET"; then
10375 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10376else
c6b750e1
DJ
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10384 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10387 fi
10388done
10389done
10390
2429c060
PB
10391fi
10392fi
c6b750e1 10393LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10394if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10395 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10396echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10397else
c6b750e1
DJ
10398 echo "$as_me:$LINENO: result: no" >&5
10399echo "${ECHO_T}no" >&6
2429c060
PB
10400fi
10401
10402 fi
10403 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10405set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10406echo "$as_me:$LINENO: checking for $ac_word" >&5
10407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10408if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10410else
10411 if test -n "$LD_FOR_TARGET"; then
10412 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10413else
c6b750e1
DJ
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425done
10426done
10427
2429c060
PB
10428fi
10429fi
c6b750e1 10430LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10431if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10432 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10433echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10434else
c6b750e1
DJ
10435 echo "$as_me:$LINENO: result: no" >&5
10436echo "${ECHO_T}no" >&6
2429c060 10437fi
c6b750e1 10438
2429c060
PB
10439 fi
10440 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10441 done
10442fi
c6b750e1 10443
2429c060
PB
10444if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10445 set dummy ld
10446 if test $build = $target ; then
10447 LD_FOR_TARGET="$2"
10448 else
10449 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10450 fi
d3f5afc4
MS
10451else
10452 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10453fi
10454
3a35eeb3
PB
10455else
10456 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10457fi
10458
10459
10460
10461
10462if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10463 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10464 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10465echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10466 if test -x $with_build_time_tools/lipo; then
10467 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10468 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
10469 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10470echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 10471 else
c6b750e1
DJ
10472 echo "$as_me:$LINENO: result: no" >&5
10473echo "${ECHO_T}no" >&6
3a35eeb3 10474 fi
2429c060
PB
10475 elif test $build != $host && test $have_gcc_for_target = yes; then
10476 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10477 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10478 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10479 fi
10480fi
9a819804
AO
10481if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10482 # Extract the first word of "lipo", so it can be a program name with args.
10483set dummy lipo; ac_word=$2
10484echo "$as_me:$LINENO: checking for $ac_word" >&5
10485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10486if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488else
10489 case $LIPO_FOR_TARGET in
10490 [\\/]* | ?:[\\/]*)
10491 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10492 ;;
10493 *)
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $gcc_cv_tool_dirs
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505done
10506done
10507
10508 ;;
10509esac
10510fi
10511LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10512
10513if test -n "$LIPO_FOR_TARGET"; then
10514 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10515echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10516else
10517 echo "$as_me:$LINENO: result: no" >&5
10518echo "${ECHO_T}no" >&6
10519fi
10520
10521fi
10522if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10523
10524
10525if test -n "$LIPO_FOR_TARGET"; then
10526 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10527elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10528 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10529fi
10530
10531if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10532 for ncn_progname in lipo; do
10533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10534set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10535echo "$as_me:$LINENO: checking for $ac_word" >&5
10536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 10537if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 10538 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10539else
9a819804
AO
10540 if test -n "$LIPO_FOR_TARGET"; then
10541 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
c6b750e1
DJ
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10550 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
10551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555done
10556
2429c060 10557fi
9a819804
AO
10558fi
10559LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10560if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10561 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10562echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10563else
c6b750e1
DJ
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
2429c060
PB
10566fi
10567
9a819804 10568 done
2429c060 10569fi
9a819804
AO
10570
10571if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10572 for ncn_progname in lipo; do
c6b750e1
DJ
10573 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10574echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10575 if test -x $with_build_time_tools/${ncn_progname}; then
10576 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10577 echo "$as_me:$LINENO: result: yes" >&5
10578echo "${ECHO_T}yes" >&6
2429c060
PB
10579 break
10580 else
c6b750e1
DJ
10581 echo "$as_me:$LINENO: result: no" >&5
10582echo "${ECHO_T}no" >&6
2429c060
PB
10583 fi
10584 done
10585fi
10586
10587if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10588 for ncn_progname in lipo; do
10589 if test -n "$ncn_target_tool_prefix"; then
10590 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10591set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10592echo "$as_me:$LINENO: checking for $ac_word" >&5
10593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10594if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10596else
10597 if test -n "$LIPO_FOR_TARGET"; then
10598 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10599else
c6b750e1
DJ
10600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601for as_dir in $PATH
10602do
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10610 fi
10611done
10612done
10613
2429c060
PB
10614fi
10615fi
c6b750e1 10616LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10617if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10618 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10619echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10620else
c6b750e1
DJ
10621 echo "$as_me:$LINENO: result: no" >&5
10622echo "${ECHO_T}no" >&6
2429c060
PB
10623fi
10624
10625 fi
10626 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10628set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10629echo "$as_me:$LINENO: checking for $ac_word" >&5
10630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10631if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10633else
10634 if test -n "$LIPO_FOR_TARGET"; then
10635 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10636else
c6b750e1
DJ
10637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638for as_dir in $PATH
10639do
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10644 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10647 fi
10648done
10649done
10650
2429c060
PB
10651fi
10652fi
c6b750e1 10653LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10654if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10655 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10656echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10657else
c6b750e1
DJ
10658 echo "$as_me:$LINENO: result: no" >&5
10659echo "${ECHO_T}no" >&6
2429c060 10660fi
c6b750e1 10661
2429c060
PB
10662 fi
10663 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10664 done
10665fi
c6b750e1 10666
2429c060
PB
10667if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10668 set dummy lipo
10669 if test $build = $target ; then
10670 LIPO_FOR_TARGET="$2"
10671 else
10672 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10673 fi
d3f5afc4
MS
10674else
10675 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10676fi
10677
3a35eeb3
PB
10678else
10679 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10680fi
10681
10682
10683
10684
10685if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10687 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10688echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10689 if test -x $with_build_time_tools/nm; then
10690 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10691 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10692 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10693echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10694 else
c6b750e1
DJ
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
3a35eeb3 10697 fi
2429c060
PB
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10700 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10701 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10702 fi
10703fi
c6b750e1 10704if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10705 # Extract the first word of "nm", so it can be a program name with args.
10706set dummy nm; ac_word=$2
c6b750e1
DJ
10707echo "$as_me:$LINENO: checking for $ac_word" >&5
10708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10709if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10711else
c6b750e1
DJ
10712 case $NM_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
2429c060
PB
10714 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10715 ;;
2429c060 10716 *)
c6b750e1
DJ
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $gcc_cv_tool_dirs
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10727 fi
10728done
10729done
10730
2429c060
PB
10731 ;;
10732esac
10733fi
c6b750e1
DJ
10734NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10735
2429c060 10736if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10737 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10738echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10739else
c6b750e1
DJ
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
2429c060
PB
10742fi
10743
10744fi
10745if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10746
10747
10748if test -n "$NM_FOR_TARGET"; then
10749 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10750elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10751 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10752fi
10753
10754if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10755 for ncn_progname in nm; do
10756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10757set dummy ${ncn_progname}; ac_word=$2
10758echo "$as_me:$LINENO: checking for $ac_word" >&5
10759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10760if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762else
10763 if test -n "$NM_FOR_TARGET"; then
10764 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10765else
10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10773 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10776 fi
10777done
10778done
10779
10780fi
10781fi
10782NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10783if test -n "$NM_FOR_TARGET"; then
10784 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10785echo "${ECHO_T}$NM_FOR_TARGET" >&6
10786else
10787 echo "$as_me:$LINENO: result: no" >&5
10788echo "${ECHO_T}no" >&6
10789fi
10790
10791 done
10792fi
10793
10794if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10795 for ncn_progname in nm; do
c6b750e1
DJ
10796 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10797echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10798 if test -x $with_build_time_tools/${ncn_progname}; then
10799 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10800 echo "$as_me:$LINENO: result: yes" >&5
10801echo "${ECHO_T}yes" >&6
2429c060
PB
10802 break
10803 else
c6b750e1
DJ
10804 echo "$as_me:$LINENO: result: no" >&5
10805echo "${ECHO_T}no" >&6
2429c060
PB
10806 fi
10807 done
10808fi
10809
10810if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10811 for ncn_progname in nm; do
10812 if test -n "$ncn_target_tool_prefix"; then
10813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10814set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10815echo "$as_me:$LINENO: checking for $ac_word" >&5
10816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10817if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10819else
55db4b87
PB
10820 if test -n "$NM_FOR_TARGET"; then
10821 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10822else
c6b750e1
DJ
10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834done
10835done
10836
859789af
AC
10837fi
10838fi
c6b750e1 10839NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10840if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10841 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10842echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10843else
c6b750e1
DJ
10844 echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6
859789af
AC
10846fi
10847
2429c060
PB
10848 fi
10849 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10851set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10852echo "$as_me:$LINENO: checking for $ac_word" >&5
10853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10854if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10856else
05cbd757
PB
10857 if test -n "$NM_FOR_TARGET"; then
10858 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10859else
c6b750e1
DJ
10860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861for as_dir in $PATH
10862do
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10867 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10870 fi
10871done
10872done
10873
859789af
AC
10874fi
10875fi
c6b750e1 10876NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10877if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10878 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10879echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10880else
c6b750e1
DJ
10881 echo "$as_me:$LINENO: result: no" >&5
10882echo "${ECHO_T}no" >&6
859789af 10883fi
c6b750e1 10884
2429c060
PB
10885 fi
10886 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10887 done
10888fi
c6b750e1 10889
05cbd757
PB
10890if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10891 set dummy nm
10892 if test $build = $target ; then
10893 NM_FOR_TARGET="$2"
859789af 10894 else
05cbd757 10895 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10896 fi
d3f5afc4
MS
10897else
10898 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10899fi
10900
3a35eeb3
PB
10901else
10902 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10903fi
10904
10905
10906
10907
10908if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10909 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10910 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10911echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10912 if test -x $with_build_time_tools/objdump; then
10913 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10914 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10915 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10916echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10917 else
c6b750e1
DJ
10918 echo "$as_me:$LINENO: result: no" >&5
10919echo "${ECHO_T}no" >&6
3a35eeb3 10920 fi
2429c060
PB
10921 elif test $build != $host && test $have_gcc_for_target = yes; then
10922 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10923 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10924 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10925 fi
10926fi
c6b750e1 10927if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10928 # Extract the first word of "objdump", so it can be a program name with args.
10929set dummy objdump; ac_word=$2
c6b750e1
DJ
10930echo "$as_me:$LINENO: checking for $ac_word" >&5
10931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10932if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10934else
c6b750e1
DJ
10935 case $OBJDUMP_FOR_TARGET in
10936 [\\/]* | ?:[\\/]*)
2429c060
PB
10937 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10938 ;;
2429c060 10939 *)
c6b750e1
DJ
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $gcc_cv_tool_dirs
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951done
10952done
10953
2429c060
PB
10954 ;;
10955esac
10956fi
c6b750e1
DJ
10957OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10958
2429c060 10959if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10960 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10961echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10962else
c6b750e1
DJ
10963 echo "$as_me:$LINENO: result: no" >&5
10964echo "${ECHO_T}no" >&6
2429c060
PB
10965fi
10966
10967fi
10968if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10969
10970
10971if test -n "$OBJDUMP_FOR_TARGET"; then
10972 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10973elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10974 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10975fi
10976
10977if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10978 for ncn_progname in objdump; do
10979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10980set dummy ${ncn_progname}; ac_word=$2
10981echo "$as_me:$LINENO: checking for $ac_word" >&5
10982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10983if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985else
10986 if test -n "$OBJDUMP_FOR_TARGET"; then
10987 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10988else
10989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990for as_dir in $PATH
10991do
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
10995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10996 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
10999 fi
11000done
11001done
11002
11003fi
11004fi
11005OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11006if test -n "$OBJDUMP_FOR_TARGET"; then
11007 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11008echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11009else
11010 echo "$as_me:$LINENO: result: no" >&5
11011echo "${ECHO_T}no" >&6
11012fi
11013
11014 done
11015fi
11016
11017if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11018 for ncn_progname in objdump; do
c6b750e1
DJ
11019 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11020echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11021 if test -x $with_build_time_tools/${ncn_progname}; then
11022 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11023 echo "$as_me:$LINENO: result: yes" >&5
11024echo "${ECHO_T}yes" >&6
2429c060
PB
11025 break
11026 else
c6b750e1
DJ
11027 echo "$as_me:$LINENO: result: no" >&5
11028echo "${ECHO_T}no" >&6
2429c060
PB
11029 fi
11030 done
11031fi
11032
11033if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11034 for ncn_progname in objdump; do
11035 if test -n "$ncn_target_tool_prefix"; then
11036 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11037set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11038echo "$as_me:$LINENO: checking for $ac_word" >&5
11039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11040if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
11042else
11043 if test -n "$OBJDUMP_FOR_TARGET"; then
11044 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11045else
c6b750e1
DJ
11046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11056 fi
11057done
11058done
11059
5ae72758
DJ
11060fi
11061fi
c6b750e1 11062OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11063if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
11064 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11065echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 11066else
c6b750e1
DJ
11067 echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6
5ae72758
DJ
11069fi
11070
2429c060
PB
11071 fi
11072 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 11074set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11075echo "$as_me:$LINENO: checking for $ac_word" >&5
11076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11077if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
11079else
11080 if test -n "$OBJDUMP_FOR_TARGET"; then
11081 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11082else
c6b750e1
DJ
11083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $PATH
11085do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11093 fi
11094done
11095done
11096
5ae72758
DJ
11097fi
11098fi
c6b750e1 11099OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11100if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
11101 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11102echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 11103else
c6b750e1
DJ
11104 echo "$as_me:$LINENO: result: no" >&5
11105echo "${ECHO_T}no" >&6
5ae72758 11106fi
c6b750e1 11107
2429c060
PB
11108 fi
11109 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11110 done
11111fi
c6b750e1 11112
5ae72758
DJ
11113if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11114 set dummy objdump
11115 if test $build = $target ; then
11116 OBJDUMP_FOR_TARGET="$2"
11117 else
11118 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11119 fi
d3f5afc4
MS
11120else
11121 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
11122fi
11123
3a35eeb3
PB
11124else
11125 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
11126fi
11127
11128
11129
11130
11131if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11132 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11133 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11134echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11135 if test -x $with_build_time_tools/ranlib; then
11136 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11137 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
11138 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11139echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 11140 else
c6b750e1
DJ
11141 echo "$as_me:$LINENO: result: no" >&5
11142echo "${ECHO_T}no" >&6
3a35eeb3 11143 fi
2429c060
PB
11144 elif test $build != $host && test $have_gcc_for_target = yes; then
11145 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
11146 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11147 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
11148 fi
11149fi
c6b750e1 11150if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11151 # Extract the first word of "ranlib", so it can be a program name with args.
11152set dummy ranlib; ac_word=$2
c6b750e1
DJ
11153echo "$as_me:$LINENO: checking for $ac_word" >&5
11154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11155if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11157else
c6b750e1
DJ
11158 case $RANLIB_FOR_TARGET in
11159 [\\/]* | ?:[\\/]*)
2429c060
PB
11160 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11161 ;;
2429c060 11162 *)
c6b750e1
DJ
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $gcc_cv_tool_dirs
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175done
11176
2429c060
PB
11177 ;;
11178esac
11179fi
c6b750e1
DJ
11180RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11181
2429c060 11182if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
11183 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11184echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 11185else
c6b750e1
DJ
11186 echo "$as_me:$LINENO: result: no" >&5
11187echo "${ECHO_T}no" >&6
2429c060
PB
11188fi
11189
11190fi
11191if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
11192
11193
11194if test -n "$RANLIB_FOR_TARGET"; then
11195 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11196elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11197 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11198fi
11199
11200if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11201 for ncn_progname in ranlib; do
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11203set dummy ${ncn_progname}; ac_word=$2
11204echo "$as_me:$LINENO: checking for $ac_word" >&5
11205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11206if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 if test -n "$RANLIB_FOR_TARGET"; then
11210 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11211else
11212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213for as_dir in $PATH
11214do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11222 fi
11223done
11224done
11225
11226fi
11227fi
11228RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11229if test -n "$RANLIB_FOR_TARGET"; then
11230 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11231echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11232else
11233 echo "$as_me:$LINENO: result: no" >&5
11234echo "${ECHO_T}no" >&6
11235fi
11236
11237 done
11238fi
11239
11240if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11241 for ncn_progname in ranlib; do
c6b750e1
DJ
11242 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11243echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11244 if test -x $with_build_time_tools/${ncn_progname}; then
11245 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11246 echo "$as_me:$LINENO: result: yes" >&5
11247echo "${ECHO_T}yes" >&6
2429c060
PB
11248 break
11249 else
c6b750e1
DJ
11250 echo "$as_me:$LINENO: result: no" >&5
11251echo "${ECHO_T}no" >&6
2429c060
PB
11252 fi
11253 done
11254fi
11255
11256if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11257 for ncn_progname in ranlib; do
11258 if test -n "$ncn_target_tool_prefix"; then
11259 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 11260set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11261echo "$as_me:$LINENO: checking for $ac_word" >&5
11262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11265else
55db4b87
PB
11266 if test -n "$RANLIB_FOR_TARGET"; then
11267 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11268else
c6b750e1
DJ
11269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280done
11281done
11282
859789af
AC
11283fi
11284fi
c6b750e1 11285RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 11286if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
11287 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11288echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 11289else
c6b750e1
DJ
11290 echo "$as_me:$LINENO: result: no" >&5
11291echo "${ECHO_T}no" >&6
859789af
AC
11292fi
11293
2429c060
PB
11294 fi
11295 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11297set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11298echo "$as_me:$LINENO: checking for $ac_word" >&5
11299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11300if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11302else
05cbd757
PB
11303 if test -n "$RANLIB_FOR_TARGET"; then
11304 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11305else
c6b750e1
DJ
11306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $PATH
11308do
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11313 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11316 fi
11317done
11318done
11319
859789af
AC
11320fi
11321fi
c6b750e1 11322RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 11323if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
11324 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11325echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 11326else
c6b750e1
DJ
11327 echo "$as_me:$LINENO: result: no" >&5
11328echo "${ECHO_T}no" >&6
859789af 11329fi
c6b750e1 11330
2429c060
PB
11331 fi
11332 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11333 done
11334fi
c6b750e1 11335
2429c060
PB
11336if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11337 set dummy ranlib
11338 if test $build = $target ; then
11339 RANLIB_FOR_TARGET="$2"
11340 else
11341 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11342 fi
d3f5afc4
MS
11343else
11344 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 11345fi
05cbd757 11346
3a35eeb3
PB
11347else
11348 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
11349fi
11350
2429c060
PB
11351
11352
11353
11354if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11355 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11356 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11357echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11358 if test -x $with_build_time_tools/strip; then
11359 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11360 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
11361 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11362echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 11363 else
c6b750e1
DJ
11364 echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
3a35eeb3 11366 fi
2429c060
PB
11367 elif test $build != $host && test $have_gcc_for_target = yes; then
11368 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11369 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11370 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11371 fi
11372fi
c6b750e1 11373if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11374 # Extract the first word of "strip", so it can be a program name with args.
11375set dummy strip; ac_word=$2
c6b750e1
DJ
11376echo "$as_me:$LINENO: checking for $ac_word" >&5
11377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11378if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11380else
c6b750e1
DJ
11381 case $STRIP_FOR_TARGET in
11382 [\\/]* | ?:[\\/]*)
2429c060
PB
11383 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11384 ;;
2429c060 11385 *)
c6b750e1
DJ
11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387for as_dir in $gcc_cv_tool_dirs
11388do
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11393 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11396 fi
11397done
11398done
11399
2429c060
PB
11400 ;;
11401esac
11402fi
c6b750e1
DJ
11403STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11404
2429c060 11405if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11406 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11407echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 11408else
c6b750e1
DJ
11409 echo "$as_me:$LINENO: result: no" >&5
11410echo "${ECHO_T}no" >&6
2429c060
PB
11411fi
11412
11413fi
11414if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11415
11416
11417if test -n "$STRIP_FOR_TARGET"; then
11418 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11419elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11420 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11421fi
11422
11423if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11424 for ncn_progname in strip; do
11425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11426set dummy ${ncn_progname}; ac_word=$2
11427echo "$as_me:$LINENO: checking for $ac_word" >&5
11428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11429if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431else
11432 if test -n "$STRIP_FOR_TARGET"; then
11433 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446done
11447done
11448
11449fi
11450fi
11451STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11452if test -n "$STRIP_FOR_TARGET"; then
11453 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11454echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11455else
11456 echo "$as_me:$LINENO: result: no" >&5
11457echo "${ECHO_T}no" >&6
11458fi
11459
11460 done
11461fi
11462
11463if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11464 for ncn_progname in strip; do
c6b750e1
DJ
11465 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11466echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11467 if test -x $with_build_time_tools/${ncn_progname}; then
11468 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11469 echo "$as_me:$LINENO: result: yes" >&5
11470echo "${ECHO_T}yes" >&6
2429c060
PB
11471 break
11472 else
c6b750e1
DJ
11473 echo "$as_me:$LINENO: result: no" >&5
11474echo "${ECHO_T}no" >&6
2429c060
PB
11475 fi
11476 done
11477fi
11478
11479if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11480 for ncn_progname in strip; do
11481 if test -n "$ncn_target_tool_prefix"; then
11482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11483set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11484echo "$as_me:$LINENO: checking for $ac_word" >&5
11485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11486if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11488else
11489 if test -n "$STRIP_FOR_TARGET"; then
11490 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11499 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11502 fi
11503done
11504done
11505
7e0f7140
GK
11506fi
11507fi
c6b750e1 11508STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11509if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11510 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11511echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11512else
c6b750e1
DJ
11513 echo "$as_me:$LINENO: result: no" >&5
11514echo "${ECHO_T}no" >&6
7e0f7140
GK
11515fi
11516
2429c060
PB
11517 fi
11518 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11520set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11521echo "$as_me:$LINENO: checking for $ac_word" >&5
11522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11523if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11525else
11526 if test -n "$STRIP_FOR_TARGET"; then
11527 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11528else
c6b750e1
DJ
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11536 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540done
11541done
11542
7e0f7140
GK
11543fi
11544fi
c6b750e1 11545STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11546if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11547 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11548echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11549else
c6b750e1
DJ
11550 echo "$as_me:$LINENO: result: no" >&5
11551echo "${ECHO_T}no" >&6
7e0f7140 11552fi
c6b750e1 11553
2429c060
PB
11554 fi
11555 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11556 done
11557fi
c6b750e1 11558
7e0f7140
GK
11559if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11560 set dummy strip
11561 if test $build = $target ; then
11562 STRIP_FOR_TARGET="$2"
11563 else
11564 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11565 fi
d3f5afc4
MS
11566else
11567 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11568fi
11569
3a35eeb3
PB
11570else
11571 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11572fi
11573
11574
11575
11576
11577if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11578 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11579 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11580echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11581 if test -x $with_build_time_tools/windres; then
11582 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11583 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
11584 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11585echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 11586 else
c6b750e1
DJ
11587 echo "$as_me:$LINENO: result: no" >&5
11588echo "${ECHO_T}no" >&6
3a35eeb3 11589 fi
2429c060
PB
11590 elif test $build != $host && test $have_gcc_for_target = yes; then
11591 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11592 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11593 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11594 fi
11595fi
c6b750e1 11596if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11597 # Extract the first word of "windres", so it can be a program name with args.
11598set dummy windres; ac_word=$2
c6b750e1
DJ
11599echo "$as_me:$LINENO: checking for $ac_word" >&5
11600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11601if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11603else
c6b750e1
DJ
11604 case $WINDRES_FOR_TARGET in
11605 [\\/]* | ?:[\\/]*)
2429c060
PB
11606 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11607 ;;
2429c060 11608 *)
c6b750e1
DJ
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $gcc_cv_tool_dirs
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 break 2
11619 fi
11620done
11621done
11622
2429c060
PB
11623 ;;
11624esac
11625fi
c6b750e1
DJ
11626WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11627
2429c060 11628if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11629 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11630echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 11631else
c6b750e1
DJ
11632 echo "$as_me:$LINENO: result: no" >&5
11633echo "${ECHO_T}no" >&6
2429c060
PB
11634fi
11635
11636fi
11637if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11638
11639
11640if test -n "$WINDRES_FOR_TARGET"; then
11641 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11642elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11643 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11644fi
11645
11646if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11647 for ncn_progname in windres; do
11648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11649set dummy ${ncn_progname}; ac_word=$2
11650echo "$as_me:$LINENO: checking for $ac_word" >&5
11651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11652if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 if test -n "$WINDRES_FOR_TARGET"; then
11656 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11657else
11658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659for as_dir in $PATH
11660do
11661 IFS=$as_save_IFS
11662 test -z "$as_dir" && as_dir=.
11663 for ac_exec_ext in '' $ac_executable_extensions; do
11664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11665 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11667 break 2
11668 fi
11669done
11670done
11671
11672fi
11673fi
11674WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11675if test -n "$WINDRES_FOR_TARGET"; then
11676 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11677echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11678else
11679 echo "$as_me:$LINENO: result: no" >&5
11680echo "${ECHO_T}no" >&6
11681fi
11682
11683 done
11684fi
11685
11686if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11687 for ncn_progname in windres; do
c6b750e1
DJ
11688 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11689echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11690 if test -x $with_build_time_tools/${ncn_progname}; then
11691 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11692 echo "$as_me:$LINENO: result: yes" >&5
11693echo "${ECHO_T}yes" >&6
2429c060
PB
11694 break
11695 else
c6b750e1
DJ
11696 echo "$as_me:$LINENO: result: no" >&5
11697echo "${ECHO_T}no" >&6
2429c060
PB
11698 fi
11699 done
11700fi
11701
11702if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11703 for ncn_progname in windres; do
11704 if test -n "$ncn_target_tool_prefix"; then
11705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11706set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11707echo "$as_me:$LINENO: checking for $ac_word" >&5
11708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11709if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11711else
55db4b87
PB
11712 if test -n "$WINDRES_FOR_TARGET"; then
11713 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11714else
c6b750e1
DJ
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727done
11728
859789af
AC
11729fi
11730fi
c6b750e1 11731WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11732if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11733 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11734echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11735else
c6b750e1
DJ
11736 echo "$as_me:$LINENO: result: no" >&5
11737echo "${ECHO_T}no" >&6
859789af
AC
11738fi
11739
2429c060
PB
11740 fi
11741 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11743set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11744echo "$as_me:$LINENO: checking for $ac_word" >&5
11745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11746if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11748else
05cbd757
PB
11749 if test -n "$WINDRES_FOR_TARGET"; then
11750 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11751else
c6b750e1
DJ
11752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $PATH
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11762 fi
11763done
11764done
11765
859789af
AC
11766fi
11767fi
c6b750e1 11768WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11769if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11770 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11771echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11772else
c6b750e1
DJ
11773 echo "$as_me:$LINENO: result: no" >&5
11774echo "${ECHO_T}no" >&6
859789af 11775fi
c6b750e1 11776
2429c060
PB
11777 fi
11778 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11779 done
11780fi
c6b750e1 11781
05cbd757
PB
11782if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11783 set dummy windres
11784 if test $build = $target ; then
11785 WINDRES_FOR_TARGET="$2"
859789af 11786 else
05cbd757 11787 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11788 fi
d3f5afc4
MS
11789else
11790 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11791fi
11792
3a35eeb3
PB
11793else
11794 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11795fi
11796
852e5f18 11797
0c24b341
NC
11798
11799
11800if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11801 if test -n "$with_build_time_tools"; then
11802 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11803echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11804 if test -x $with_build_time_tools/windmc; then
11805 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11806 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11807 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11808echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11809 else
11810 echo "$as_me:$LINENO: result: no" >&5
11811echo "${ECHO_T}no" >&6
11812 fi
11813 elif test $build != $host && test $have_gcc_for_target = yes; then
11814 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11815 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11816 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11817 fi
11818fi
11819if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11820 # Extract the first word of "windmc", so it can be a program name with args.
11821set dummy windmc; ac_word=$2
11822echo "$as_me:$LINENO: checking for $ac_word" >&5
11823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11824if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826else
11827 case $WINDMC_FOR_TARGET in
11828 [\\/]* | ?:[\\/]*)
11829 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11830 ;;
11831 *)
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $gcc_cv_tool_dirs
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
11844done
11845
11846 ;;
11847esac
11848fi
11849WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11850
11851if test -n "$WINDMC_FOR_TARGET"; then
11852 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11853echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11854else
11855 echo "$as_me:$LINENO: result: no" >&5
11856echo "${ECHO_T}no" >&6
11857fi
11858
11859fi
11860if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11861
11862
11863if test -n "$WINDMC_FOR_TARGET"; then
11864 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11865elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11866 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11867fi
11868
11869if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11870 for ncn_progname in windmc; do
11871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11872set dummy ${ncn_progname}; ac_word=$2
11873echo "$as_me:$LINENO: checking for $ac_word" >&5
11874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11875if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878 if test -n "$WINDMC_FOR_TARGET"; then
11879 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11880else
11881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882for as_dir in $PATH
11883do
11884 IFS=$as_save_IFS
11885 test -z "$as_dir" && as_dir=.
11886 for ac_exec_ext in '' $ac_executable_extensions; do
11887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11890 break 2
11891 fi
11892done
11893done
11894
11895fi
11896fi
11897WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11898if test -n "$WINDMC_FOR_TARGET"; then
11899 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11900echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11901else
11902 echo "$as_me:$LINENO: result: no" >&5
11903echo "${ECHO_T}no" >&6
11904fi
11905
11906 done
11907fi
11908
11909if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11910 for ncn_progname in windmc; do
11911 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11912echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11913 if test -x $with_build_time_tools/${ncn_progname}; then
11914 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11915 echo "$as_me:$LINENO: result: yes" >&5
11916echo "${ECHO_T}yes" >&6
11917 break
11918 else
11919 echo "$as_me:$LINENO: result: no" >&5
11920echo "${ECHO_T}no" >&6
11921 fi
11922 done
11923fi
11924
11925if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11926 for ncn_progname in windmc; do
11927 if test -n "$ncn_target_tool_prefix"; then
11928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11929set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11930echo "$as_me:$LINENO: checking for $ac_word" >&5
11931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11932if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 if test -n "$WINDMC_FOR_TARGET"; then
11936 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11937else
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11945 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11948 fi
11949done
11950done
11951
11952fi
11953fi
11954WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11955if test -n "$WINDMC_FOR_TARGET"; then
11956 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11957echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11958else
11959 echo "$as_me:$LINENO: result: no" >&5
11960echo "${ECHO_T}no" >&6
11961fi
11962
11963 fi
11964 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11966set dummy ${ncn_progname}; ac_word=$2
11967echo "$as_me:$LINENO: checking for $ac_word" >&5
11968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11969if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972 if test -n "$WINDMC_FOR_TARGET"; then
11973 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11974else
11975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $PATH
11977do
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11985 fi
11986done
11987done
11988
11989fi
11990fi
11991WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11992if test -n "$WINDMC_FOR_TARGET"; then
11993 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11994echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11995else
11996 echo "$as_me:$LINENO: result: no" >&5
11997echo "${ECHO_T}no" >&6
11998fi
11999
12000 fi
12001 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12002 done
12003fi
12004
12005if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12006 set dummy windmc
12007 if test $build = $target ; then
12008 WINDMC_FOR_TARGET="$2"
12009 else
12010 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12011 fi
12012else
12013 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12014fi
12015
12016else
12017 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12018fi
12019
12020
be01d343
PB
12021RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12022
c6b750e1
DJ
12023echo "$as_me:$LINENO: checking where to find the target ar" >&5
12024echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 12025if test "x${build}" != "x${host}" ; then
2429c060
PB
12026 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12027 # We already found the complete path
b8025f34
AS
12028 ac_dir=`dirname $AR_FOR_TARGET`
12029 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12030echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12031 else
12032 # Canadian cross, just use what we found
c6b750e1
DJ
12033 echo "$as_me:$LINENO: result: pre-installed" >&5
12034echo "${ECHO_T}pre-installed" >&6
2429c060 12035 fi
be01d343
PB
12036else
12037 ok=yes
12038 case " ${configdirs} " in
12039 *" binutils "*) ;;
12040 *) ok=no ;;
12041 esac
c6b750e1 12042
be01d343
PB
12043 if test $ok = yes; then
12044 # An in-tree tool is available and we can use it
12045 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
12046 echo "$as_me:$LINENO: result: just compiled" >&5
12047echo "${ECHO_T}just compiled" >&6
2429c060
PB
12048 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12049 # We already found the complete path
b8025f34
AS
12050 ac_dir=`dirname $AR_FOR_TARGET`
12051 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12052echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12053 elif test "x$target" = "x$host"; then
12054 # We can use an host tool
12055 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
12056 echo "$as_me:$LINENO: result: host tool" >&5
12057echo "${ECHO_T}host tool" >&6
be01d343
PB
12058 else
12059 # We need a cross tool
c6b750e1
DJ
12060 echo "$as_me:$LINENO: result: pre-installed" >&5
12061echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12062 fi
12063fi
4b900473 12064
c6b750e1
DJ
12065echo "$as_me:$LINENO: checking where to find the target as" >&5
12066echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 12067if test "x${build}" != "x${host}" ; then
2429c060
PB
12068 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12069 # We already found the complete path
b8025f34
AS
12070 ac_dir=`dirname $AS_FOR_TARGET`
12071 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12072echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12073 else
12074 # Canadian cross, just use what we found
c6b750e1
DJ
12075 echo "$as_me:$LINENO: result: pre-installed" >&5
12076echo "${ECHO_T}pre-installed" >&6
2429c060 12077 fi
be01d343
PB
12078else
12079 ok=yes
12080 case " ${configdirs} " in
12081 *" gas "*) ;;
12082 *) ok=no ;;
12083 esac
c6b750e1 12084
be01d343
PB
12085 if test $ok = yes; then
12086 # An in-tree tool is available and we can use it
12087 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
12088 echo "$as_me:$LINENO: result: just compiled" >&5
12089echo "${ECHO_T}just compiled" >&6
2429c060
PB
12090 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12091 # We already found the complete path
b8025f34
AS
12092 ac_dir=`dirname $AS_FOR_TARGET`
12093 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12094echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12095 elif test "x$target" = "x$host"; then
12096 # We can use an host tool
12097 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
12098 echo "$as_me:$LINENO: result: host tool" >&5
12099echo "${ECHO_T}host tool" >&6
be01d343
PB
12100 else
12101 # We need a cross tool
c6b750e1
DJ
12102 echo "$as_me:$LINENO: result: pre-installed" >&5
12103echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12104 fi
12105fi
4b900473 12106
c6b750e1
DJ
12107echo "$as_me:$LINENO: checking where to find the target cc" >&5
12108echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 12109if test "x${build}" != "x${host}" ; then
2429c060
PB
12110 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12111 # We already found the complete path
b8025f34
AS
12112 ac_dir=`dirname $CC_FOR_TARGET`
12113 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12114echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12115 else
12116 # Canadian cross, just use what we found
c6b750e1
DJ
12117 echo "$as_me:$LINENO: result: pre-installed" >&5
12118echo "${ECHO_T}pre-installed" >&6
2429c060 12119 fi
be01d343
PB
12120else
12121 ok=yes
12122 case " ${configdirs} " in
12123 *" gcc "*) ;;
12124 *) ok=no ;;
12125 esac
c6b750e1 12126
be01d343
PB
12127 if test $ok = yes; then
12128 # An in-tree tool is available and we can use it
12129 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12130 echo "$as_me:$LINENO: result: just compiled" >&5
12131echo "${ECHO_T}just compiled" >&6
2429c060
PB
12132 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12133 # We already found the complete path
b8025f34
AS
12134 ac_dir=`dirname $CC_FOR_TARGET`
12135 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12136echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12137 elif test "x$target" = "x$host"; then
12138 # We can use an host tool
12139 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
12140 echo "$as_me:$LINENO: result: host tool" >&5
12141echo "${ECHO_T}host tool" >&6
be01d343
PB
12142 else
12143 # We need a cross tool
c6b750e1
DJ
12144 echo "$as_me:$LINENO: result: pre-installed" >&5
12145echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12146 fi
12147fi
4b900473 12148
c6b750e1
DJ
12149echo "$as_me:$LINENO: checking where to find the target c++" >&5
12150echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 12151if test "x${build}" != "x${host}" ; then
2429c060
PB
12152 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12153 # We already found the complete path
b8025f34
AS
12154 ac_dir=`dirname $CXX_FOR_TARGET`
12155 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12156echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12157 else
12158 # Canadian cross, just use what we found
c6b750e1
DJ
12159 echo "$as_me:$LINENO: result: pre-installed" >&5
12160echo "${ECHO_T}pre-installed" >&6
2429c060 12161 fi
be01d343
PB
12162else
12163 ok=yes
12164 case " ${configdirs} " in
12165 *" gcc "*) ;;
12166 *) ok=no ;;
12167 esac
12168 case ,${enable_languages}, in
12169 *,c++,*) ;;
12170 *) ok=no ;;
12171 esac
12172 if test $ok = yes; then
12173 # An in-tree tool is available and we can use it
12174 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
12175 echo "$as_me:$LINENO: result: just compiled" >&5
12176echo "${ECHO_T}just compiled" >&6
2429c060
PB
12177 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12178 # We already found the complete path
b8025f34
AS
12179 ac_dir=`dirname $CXX_FOR_TARGET`
12180 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12181echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12182 elif test "x$target" = "x$host"; then
12183 # We can use an host tool
12184 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
12185 echo "$as_me:$LINENO: result: host tool" >&5
12186echo "${ECHO_T}host tool" >&6
be01d343
PB
12187 else
12188 # We need a cross tool
c6b750e1
DJ
12189 echo "$as_me:$LINENO: result: pre-installed" >&5
12190echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12191 fi
12192fi
4b900473 12193
c6b750e1
DJ
12194echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12195echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 12196if test "x${build}" != "x${host}" ; then
2429c060
PB
12197 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12198 # We already found the complete path
b8025f34
AS
12199 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12200 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12201echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12202 else
12203 # Canadian cross, just use what we found
c6b750e1
DJ
12204 echo "$as_me:$LINENO: result: pre-installed" >&5
12205echo "${ECHO_T}pre-installed" >&6
2429c060 12206 fi
be01d343
PB
12207else
12208 ok=yes
12209 case " ${configdirs} " in
12210 *" gcc "*) ;;
12211 *) ok=no ;;
12212 esac
12213 case ,${enable_languages}, in
12214 *,c++,*) ;;
12215 *) ok=no ;;
12216 esac
12217 if test $ok = yes; then
12218 # An in-tree tool is available and we can use it
12219 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
12220 echo "$as_me:$LINENO: result: just compiled" >&5
12221echo "${ECHO_T}just compiled" >&6
2429c060
PB
12222 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12223 # We already found the complete path
b8025f34
AS
12224 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12225 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12226echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12227 elif test "x$target" = "x$host"; then
12228 # We can use an host tool
12229 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
12230 echo "$as_me:$LINENO: result: host tool" >&5
12231echo "${ECHO_T}host tool" >&6
be01d343
PB
12232 else
12233 # We need a cross tool
c6b750e1
DJ
12234 echo "$as_me:$LINENO: result: pre-installed" >&5
12235echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12236 fi
12237fi
4b900473 12238
c6b750e1
DJ
12239echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12240echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 12241if test "x${build}" != "x${host}" ; then
2429c060
PB
12242 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12243 # We already found the complete path
b8025f34
AS
12244 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12245 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12246echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12247 else
12248 # Canadian cross, just use what we found
c6b750e1
DJ
12249 echo "$as_me:$LINENO: result: pre-installed" >&5
12250echo "${ECHO_T}pre-installed" >&6
2429c060 12251 fi
be01d343
PB
12252else
12253 ok=yes
12254 case " ${configdirs} " in
12255 *" binutils "*) ;;
12256 *) ok=no ;;
12257 esac
c6b750e1 12258
be01d343
PB
12259 if test $ok = yes; then
12260 # An in-tree tool is available and we can use it
12261 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
12262 echo "$as_me:$LINENO: result: just compiled" >&5
12263echo "${ECHO_T}just compiled" >&6
2429c060
PB
12264 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12265 # We already found the complete path
b8025f34
AS
12266 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12267 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12268echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12269 elif test "x$target" = "x$host"; then
12270 # We can use an host tool
12271 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
12272 echo "$as_me:$LINENO: result: host tool" >&5
12273echo "${ECHO_T}host tool" >&6
be01d343
PB
12274 else
12275 # We need a cross tool
c6b750e1
DJ
12276 echo "$as_me:$LINENO: result: pre-installed" >&5
12277echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12278 fi
12279fi
4b900473 12280
c6b750e1
DJ
12281echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12282echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 12283if test "x${build}" != "x${host}" ; then
2429c060
PB
12284 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12285 # We already found the complete path
b8025f34
AS
12286 ac_dir=`dirname $GCC_FOR_TARGET`
12287 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12288echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12289 else
12290 # Canadian cross, just use what we found
c6b750e1
DJ
12291 echo "$as_me:$LINENO: result: pre-installed" >&5
12292echo "${ECHO_T}pre-installed" >&6
2429c060 12293 fi
be01d343
PB
12294else
12295 ok=yes
12296 case " ${configdirs} " in
12297 *" gcc "*) ;;
12298 *) ok=no ;;
12299 esac
c6b750e1 12300
be01d343
PB
12301 if test $ok = yes; then
12302 # An in-tree tool is available and we can use it
12303 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12304 echo "$as_me:$LINENO: result: just compiled" >&5
12305echo "${ECHO_T}just compiled" >&6
2429c060
PB
12306 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12307 # We already found the complete path
b8025f34
AS
12308 ac_dir=`dirname $GCC_FOR_TARGET`
12309 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12310echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12311 elif test "x$target" = "x$host"; then
12312 # We can use an host tool
12313 GCC_FOR_TARGET='$()'
c6b750e1
DJ
12314 echo "$as_me:$LINENO: result: host tool" >&5
12315echo "${ECHO_T}host tool" >&6
be01d343
PB
12316 else
12317 # We need a cross tool
c6b750e1
DJ
12318 echo "$as_me:$LINENO: result: pre-installed" >&5
12319echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12320 fi
12321fi
4b900473 12322
c6b750e1
DJ
12323echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12324echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 12325if test "x${build}" != "x${host}" ; then
2429c060
PB
12326 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12327 # We already found the complete path
b8025f34
AS
12328 ac_dir=`dirname $GCJ_FOR_TARGET`
12329 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12330echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12331 else
12332 # Canadian cross, just use what we found
c6b750e1
DJ
12333 echo "$as_me:$LINENO: result: pre-installed" >&5
12334echo "${ECHO_T}pre-installed" >&6
2429c060 12335 fi
be01d343
PB
12336else
12337 ok=yes
12338 case " ${configdirs} " in
12339 *" gcc "*) ;;
12340 *) ok=no ;;
12341 esac
12342 case ,${enable_languages}, in
12343 *,java,*) ;;
12344 *) ok=no ;;
12345 esac
12346 if test $ok = yes; then
12347 # An in-tree tool is available and we can use it
12348 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12349 echo "$as_me:$LINENO: result: just compiled" >&5
12350echo "${ECHO_T}just compiled" >&6
2429c060
PB
12351 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12352 # We already found the complete path
b8025f34
AS
12353 ac_dir=`dirname $GCJ_FOR_TARGET`
12354 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12355echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12356 elif test "x$target" = "x$host"; then
12357 # We can use an host tool
12358 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
12359 echo "$as_me:$LINENO: result: host tool" >&5
12360echo "${ECHO_T}host tool" >&6
be01d343
PB
12361 else
12362 # We need a cross tool
c6b750e1
DJ
12363 echo "$as_me:$LINENO: result: pre-installed" >&5
12364echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12365 fi
12366fi
4b900473 12367
c6b750e1
DJ
12368echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12369echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 12370if test "x${build}" != "x${host}" ; then
2429c060
PB
12371 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12372 # We already found the complete path
b8025f34
AS
12373 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12374 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12375echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12376 else
12377 # Canadian cross, just use what we found
c6b750e1
DJ
12378 echo "$as_me:$LINENO: result: pre-installed" >&5
12379echo "${ECHO_T}pre-installed" >&6
2429c060 12380 fi
be01d343
PB
12381else
12382 ok=yes
12383 case " ${configdirs} " in
12384 *" gcc "*) ;;
12385 *) ok=no ;;
12386 esac
12387 case ,${enable_languages}, in
12388 *,fortran,*) ;;
12389 *) ok=no ;;
12390 esac
12391 if test $ok = yes; then
12392 # An in-tree tool is available and we can use it
12393 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12394 echo "$as_me:$LINENO: result: just compiled" >&5
12395echo "${ECHO_T}just compiled" >&6
2429c060
PB
12396 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12397 # We already found the complete path
b8025f34
AS
12398 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12399 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12400echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12401 elif test "x$target" = "x$host"; then
12402 # We can use an host tool
12403 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
12404 echo "$as_me:$LINENO: result: host tool" >&5
12405echo "${ECHO_T}host tool" >&6
be01d343
PB
12406 else
12407 # We need a cross tool
c6b750e1
DJ
12408 echo "$as_me:$LINENO: result: pre-installed" >&5
12409echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12410 fi
12411fi
4b900473 12412
c6b750e1
DJ
12413echo "$as_me:$LINENO: checking where to find the target ld" >&5
12414echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 12415if test "x${build}" != "x${host}" ; then
2429c060
PB
12416 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12417 # We already found the complete path
b8025f34
AS
12418 ac_dir=`dirname $LD_FOR_TARGET`
12419 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12420echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12421 else
12422 # Canadian cross, just use what we found
c6b750e1
DJ
12423 echo "$as_me:$LINENO: result: pre-installed" >&5
12424echo "${ECHO_T}pre-installed" >&6
2429c060 12425 fi
be01d343
PB
12426else
12427 ok=yes
12428 case " ${configdirs} " in
12429 *" ld "*) ;;
12430 *) ok=no ;;
12431 esac
c6b750e1 12432
be01d343
PB
12433 if test $ok = yes; then
12434 # An in-tree tool is available and we can use it
12435 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
12436 echo "$as_me:$LINENO: result: just compiled" >&5
12437echo "${ECHO_T}just compiled" >&6
2429c060
PB
12438 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12439 # We already found the complete path
b8025f34
AS
12440 ac_dir=`dirname $LD_FOR_TARGET`
12441 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12442echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12443 elif test "x$target" = "x$host"; then
12444 # We can use an host tool
12445 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
12446 echo "$as_me:$LINENO: result: host tool" >&5
12447echo "${ECHO_T}host tool" >&6
be01d343
PB
12448 else
12449 # We need a cross tool
c6b750e1
DJ
12450 echo "$as_me:$LINENO: result: pre-installed" >&5
12451echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12452 fi
12453fi
4b900473 12454
c6b750e1
DJ
12455echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12456echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 12457if test "x${build}" != "x${host}" ; then
2429c060
PB
12458 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12459 # We already found the complete path
b8025f34
AS
12460 ac_dir=`dirname $LIPO_FOR_TARGET`
12461 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12462echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12463 else
12464 # Canadian cross, just use what we found
c6b750e1
DJ
12465 echo "$as_me:$LINENO: result: pre-installed" >&5
12466echo "${ECHO_T}pre-installed" >&6
2429c060 12467 fi
be01d343 12468else
2429c060
PB
12469 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12470 # We already found the complete path
b8025f34
AS
12471 ac_dir=`dirname $LIPO_FOR_TARGET`
12472 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12473echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 12474 elif test "x$target" = "x$host"; then
be01d343
PB
12475 # We can use an host tool
12476 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
12477 echo "$as_me:$LINENO: result: host tool" >&5
12478echo "${ECHO_T}host tool" >&6
be01d343
PB
12479 else
12480 # We need a cross tool
c6b750e1
DJ
12481 echo "$as_me:$LINENO: result: pre-installed" >&5
12482echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12483 fi
12484fi
4b900473 12485
c6b750e1
DJ
12486echo "$as_me:$LINENO: checking where to find the target nm" >&5
12487echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 12488if test "x${build}" != "x${host}" ; then
2429c060
PB
12489 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12490 # We already found the complete path
b8025f34
AS
12491 ac_dir=`dirname $NM_FOR_TARGET`
12492 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12493echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12494 else
12495 # Canadian cross, just use what we found
c6b750e1
DJ
12496 echo "$as_me:$LINENO: result: pre-installed" >&5
12497echo "${ECHO_T}pre-installed" >&6
2429c060 12498 fi
be01d343
PB
12499else
12500 ok=yes
12501 case " ${configdirs} " in
12502 *" binutils "*) ;;
12503 *) ok=no ;;
12504 esac
c6b750e1 12505
be01d343
PB
12506 if test $ok = yes; then
12507 # An in-tree tool is available and we can use it
12508 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
12509 echo "$as_me:$LINENO: result: just compiled" >&5
12510echo "${ECHO_T}just compiled" >&6
2429c060
PB
12511 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12512 # We already found the complete path
b8025f34
AS
12513 ac_dir=`dirname $NM_FOR_TARGET`
12514 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12515echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12516 elif test "x$target" = "x$host"; then
12517 # We can use an host tool
12518 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
12519 echo "$as_me:$LINENO: result: host tool" >&5
12520echo "${ECHO_T}host tool" >&6
be01d343
PB
12521 else
12522 # We need a cross tool
c6b750e1
DJ
12523 echo "$as_me:$LINENO: result: pre-installed" >&5
12524echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12525 fi
12526fi
4b900473 12527
c6b750e1
DJ
12528echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12529echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 12530if test "x${build}" != "x${host}" ; then
2429c060
PB
12531 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12532 # We already found the complete path
b8025f34
AS
12533 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12534 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12535echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12536 else
12537 # Canadian cross, just use what we found
c6b750e1
DJ
12538 echo "$as_me:$LINENO: result: pre-installed" >&5
12539echo "${ECHO_T}pre-installed" >&6
2429c060 12540 fi
be01d343
PB
12541else
12542 ok=yes
12543 case " ${configdirs} " in
12544 *" binutils "*) ;;
12545 *) ok=no ;;
12546 esac
c6b750e1 12547
be01d343
PB
12548 if test $ok = yes; then
12549 # An in-tree tool is available and we can use it
12550 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
12551 echo "$as_me:$LINENO: result: just compiled" >&5
12552echo "${ECHO_T}just compiled" >&6
2429c060
PB
12553 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12554 # We already found the complete path
b8025f34
AS
12555 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12556 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12557echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12558 elif test "x$target" = "x$host"; then
12559 # We can use an host tool
12560 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
12561 echo "$as_me:$LINENO: result: host tool" >&5
12562echo "${ECHO_T}host tool" >&6
be01d343
PB
12563 else
12564 # We need a cross tool
c6b750e1
DJ
12565 echo "$as_me:$LINENO: result: pre-installed" >&5
12566echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12567 fi
12568fi
4b900473 12569
c6b750e1
DJ
12570echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12571echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 12572if test "x${build}" != "x${host}" ; then
2429c060
PB
12573 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12574 # We already found the complete path
b8025f34
AS
12575 ac_dir=`dirname $RANLIB_FOR_TARGET`
12576 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12577echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12578 else
12579 # Canadian cross, just use what we found
c6b750e1
DJ
12580 echo "$as_me:$LINENO: result: pre-installed" >&5
12581echo "${ECHO_T}pre-installed" >&6
2429c060 12582 fi
be01d343
PB
12583else
12584 ok=yes
12585 case " ${configdirs} " in
12586 *" binutils "*) ;;
12587 *) ok=no ;;
12588 esac
c6b750e1 12589
be01d343
PB
12590 if test $ok = yes; then
12591 # An in-tree tool is available and we can use it
12592 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
12593 echo "$as_me:$LINENO: result: just compiled" >&5
12594echo "${ECHO_T}just compiled" >&6
2429c060
PB
12595 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12596 # We already found the complete path
b8025f34
AS
12597 ac_dir=`dirname $RANLIB_FOR_TARGET`
12598 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12599echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12600 elif test "x$target" = "x$host"; then
12601 # We can use an host tool
12602 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
12603 echo "$as_me:$LINENO: result: host tool" >&5
12604echo "${ECHO_T}host tool" >&6
be01d343
PB
12605 else
12606 # We need a cross tool
c6b750e1
DJ
12607 echo "$as_me:$LINENO: result: pre-installed" >&5
12608echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12609 fi
12610fi
4b900473 12611
c6b750e1
DJ
12612echo "$as_me:$LINENO: checking where to find the target strip" >&5
12613echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 12614if test "x${build}" != "x${host}" ; then
2429c060
PB
12615 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12616 # We already found the complete path
b8025f34
AS
12617 ac_dir=`dirname $STRIP_FOR_TARGET`
12618 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12619echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12620 else
12621 # Canadian cross, just use what we found
c6b750e1
DJ
12622 echo "$as_me:$LINENO: result: pre-installed" >&5
12623echo "${ECHO_T}pre-installed" >&6
2429c060 12624 fi
be01d343
PB
12625else
12626 ok=yes
12627 case " ${configdirs} " in
12628 *" binutils "*) ;;
12629 *) ok=no ;;
12630 esac
c6b750e1 12631
be01d343
PB
12632 if test $ok = yes; then
12633 # An in-tree tool is available and we can use it
12634 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
12635 echo "$as_me:$LINENO: result: just compiled" >&5
12636echo "${ECHO_T}just compiled" >&6
2429c060
PB
12637 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12638 # We already found the complete path
b8025f34
AS
12639 ac_dir=`dirname $STRIP_FOR_TARGET`
12640 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12641echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12642 elif test "x$target" = "x$host"; then
12643 # We can use an host tool
12644 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12645 echo "$as_me:$LINENO: result: host tool" >&5
12646echo "${ECHO_T}host tool" >&6
be01d343
PB
12647 else
12648 # We need a cross tool
c6b750e1
DJ
12649 echo "$as_me:$LINENO: result: pre-installed" >&5
12650echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12651 fi
12652fi
4b900473 12653
c6b750e1
DJ
12654echo "$as_me:$LINENO: checking where to find the target windres" >&5
12655echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12656if test "x${build}" != "x${host}" ; then
2429c060
PB
12657 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12658 # We already found the complete path
b8025f34
AS
12659 ac_dir=`dirname $WINDRES_FOR_TARGET`
12660 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12661echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12662 else
12663 # Canadian cross, just use what we found
c6b750e1
DJ
12664 echo "$as_me:$LINENO: result: pre-installed" >&5
12665echo "${ECHO_T}pre-installed" >&6
2429c060 12666 fi
be01d343
PB
12667else
12668 ok=yes
12669 case " ${configdirs} " in
12670 *" binutils "*) ;;
12671 *) ok=no ;;
12672 esac
c6b750e1 12673
be01d343
PB
12674 if test $ok = yes; then
12675 # An in-tree tool is available and we can use it
12676 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12677 echo "$as_me:$LINENO: result: just compiled" >&5
12678echo "${ECHO_T}just compiled" >&6
2429c060
PB
12679 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12680 # We already found the complete path
b8025f34
AS
12681 ac_dir=`dirname $WINDRES_FOR_TARGET`
12682 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12683echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12684 elif test "x$target" = "x$host"; then
12685 # We can use an host tool
12686 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12687 echo "$as_me:$LINENO: result: host tool" >&5
12688echo "${ECHO_T}host tool" >&6
be01d343
PB
12689 else
12690 # We need a cross tool
c6b750e1
DJ
12691 echo "$as_me:$LINENO: result: pre-installed" >&5
12692echo "${ECHO_T}pre-installed" >&6
be01d343 12693 fi
a0da8069 12694fi
54752a6b 12695
0c24b341
NC
12696echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12697echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12698if test "x${build}" != "x${host}" ; then
12699 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12700 # We already found the complete path
12701 ac_dir=`dirname $WINDMC_FOR_TARGET`
12702 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12703echo "${ECHO_T}pre-installed in $ac_dir" >&6
12704 else
12705 # Canadian cross, just use what we found
12706 echo "$as_me:$LINENO: result: pre-installed" >&5
12707echo "${ECHO_T}pre-installed" >&6
12708 fi
12709else
12710 ok=yes
12711 case " ${configdirs} " in
12712 *" binutils "*) ;;
12713 *) ok=no ;;
12714 esac
12715
12716 if test $ok = yes; then
12717 # An in-tree tool is available and we can use it
12718 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12719 echo "$as_me:$LINENO: result: just compiled" >&5
12720echo "${ECHO_T}just compiled" >&6
12721 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12722 # We already found the complete path
12723 ac_dir=`dirname $WINDMC_FOR_TARGET`
12724 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12725echo "${ECHO_T}pre-installed in $ac_dir" >&6
12726 elif test "x$target" = "x$host"; then
12727 # We can use an host tool
12728 WINDMC_FOR_TARGET='$(WINDMC)'
12729 echo "$as_me:$LINENO: result: host tool" >&5
12730echo "${ECHO_T}host tool" >&6
12731 else
12732 # We need a cross tool
12733 echo "$as_me:$LINENO: result: pre-installed" >&5
12734echo "${ECHO_T}pre-installed" >&6
12735 fi
12736fi
12737
54752a6b
NN
12738
12739
be01d343 12740
4b900473 12741
a0da8069
NN
12742# Certain tools may need extra flags.
12743AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12744RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12745NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12746
be01d343
PB
12747# When building target libraries, except in a Canadian cross, we use
12748# the same toolchain as the compiler we just built.
12749COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12750COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12751COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12752if test $host = $build; then
12753 case " $configdirs " in
12754 *" gcc "*)
12755 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12756 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12757 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12758 ;;
12759 esac
12760fi
12761
12762
12763
12764
12765
c6b750e1
DJ
12766echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12767echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12768# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12769if test "${enable_maintainer_mode+set}" = set; then
12770 enableval="$enable_maintainer_mode"
12771 USE_MAINTAINER_MODE=$enableval
12772else
12773 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12774fi;
12775echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12776echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12777
12778
12779if test "$USE_MAINTAINER_MODE" = yes; then
12780 MAINTAINER_MODE_TRUE=
12781 MAINTAINER_MODE_FALSE='#'
12782else
12783 MAINTAINER_MODE_TRUE='#'
12784 MAINTAINER_MODE_FALSE=
c6b750e1 12785fi
3d5e36ae
AO
12786MAINT=$MAINTAINER_MODE_TRUE
12787
1d39f329
NN
12788# ---------------------
12789# GCC bootstrap support
12790# ---------------------
12791
12792# Stage specific cflags for build.
12793stage1_cflags="-g"
12794case $build in
12795 vax-*-*)
12796 case ${GCC} in
12797 yes) stage1_cflags="-g -Wa,-J" ;;
12798 *) stage1_cflags="-g -J" ;;
12799 esac ;;
1d39f329
NN
12800esac
12801
1d89b610 12802# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 12803if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
12804 saved_CFLAGS="$CFLAGS"
12805
12806 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12807 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12808 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12809echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12810 cat >conftest.$ac_ext <<_ACEOF
12811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
12815/* end confdefs.h. */
12816
2038f525
PB
12817#if (__GNUC__ < 3) \
12818 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12819 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12820#error http://gcc.gnu.org/PR29382
12821#endif
12822
c6b750e1
DJ
12823int
12824main ()
12825{
12826
12827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext
12832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag"
12841 || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 echo "$as_me:$LINENO: result: yes" >&5
12854echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12855else
12856 echo "$as_me: failed program was:" >&5
12857sed 's/^/| /' conftest.$ac_ext >&5
12858
12859echo "$as_me:$LINENO: result: no" >&5
12860echo "${ECHO_T}no" >&6
12861fi
12862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12863
12864 CFLAGS="$saved_CFLAGS"
12865fi
12866
12867
1d39f329 12868
8a0d8a5c
PB
12869# Enable --enable-checking in stage1 of the compiler.
12870# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12871if test "${enable_stage1_checking+set}" = set; then
12872 enableval="$enable_stage1_checking"
12873 stage1_checking=--enable-checking=${enable_stage1_checking}
12874else
5566c1fa 12875 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12876 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12877else
5566c1fa 12878 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12879fi
c6b750e1 12880fi;
8a0d8a5c
PB
12881
12882
1d39f329 12883# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12884# Check whether --enable-werror or --disable-werror was given.
12885if test "${enable_werror+set}" = set; then
12886 enableval="$enable_werror"
c6b750e1 12887
1d39f329 12888else
a0323144 12889 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12890 enable_werror=yes
79fcd0ec
PB
12891else
12892 enable_werror=no
12893fi
c6b750e1 12894fi;
1a6f2dc7
NN
12895case ${enable_werror} in
12896 yes) stage2_werror_flag="--enable-werror-always" ;;
12897 *) stage2_werror_flag="" ;;
1d39f329
NN
12898esac
12899
12900
108a6f8e 12901# Flags needed to enable html installing and building
c6b750e1 12902
108a6f8e
CD
12903# Check whether --with-datarootdir or --without-datarootdir was given.
12904if test "${with_datarootdir+set}" = set; then
12905 withval="$with_datarootdir"
12906 datarootdir="\${prefix}/${withval}"
12907else
12908 datarootdir="\${prefix}/share"
c6b750e1 12909fi;
108a6f8e
CD
12910
12911
12912# Check whether --with-docdir or --without-docdir was given.
12913if test "${with_docdir+set}" = set; then
12914 withval="$with_docdir"
12915 docdir="\${prefix}/${withval}"
12916else
12917 docdir="\${datarootdir}/doc"
c6b750e1 12918fi;
108a6f8e
CD
12919
12920
a3ca38d2
DD
12921# Check whether --with-pdfdir or --without-pdfdir was given.
12922if test "${with_pdfdir+set}" = set; then
12923 withval="$with_pdfdir"
12924 pdfdir="\${prefix}/${withval}"
12925else
12926 pdfdir="\${docdir}"
12927fi;
12928
12929
108a6f8e
CD
12930# Check whether --with-htmldir or --without-htmldir was given.
12931if test "${with_htmldir+set}" = set; then
12932 withval="$with_htmldir"
12933 htmldir="\${prefix}/${withval}"
12934else
12935 htmldir="\${docdir}"
c6b750e1 12936fi;
108a6f8e
CD
12937
12938
12939
12940
12941
b8025f34 12942
e8a5fa9c
RW
12943# Specify what files to not compare during bootstrap.
12944
12945compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
12946case "$target" in
12947 hppa*64*-*-hpux*) ;;
12948 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
12949esac
12950
12951
c6b750e1
DJ
12952 ac_config_files="$ac_config_files Makefile"
12953cat >confcache <<\_ACEOF
a0da8069
NN
12954# This file is a shell script that caches the results of configure
12955# tests run on this system so they can be shared between configure
c6b750e1
DJ
12956# scripts and configure runs, see configure's option --config-cache.
12957# It is not useful on other systems. If it contains results you don't
12958# want to keep, you may remove or edit it.
a0da8069 12959#
c6b750e1
DJ
12960# config.status only pays attention to the cache file if you give it
12961# the --recheck option to rerun configure.
a0da8069 12962#
c6b750e1
DJ
12963# `ac_cv_env_foo' variables (set or unset) will be overridden when
12964# loading this file, other *unset* `ac_cv_foo' will be assigned the
12965# following values.
12966
12967_ACEOF
12968
a0da8069
NN
12969# The following way of writing the cache mishandles newlines in values,
12970# but we know of no workaround that is simple, portable, and efficient.
12971# So, don't put newlines in cache variables' values.
12972# Ultrix sh set writes to stderr and can't be redirected directly,
12973# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12974{
12975 (set) 2>&1 |
12976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12977 *ac_space=\ *)
12978 # `set' does not quote correctly, so add quotes (double-quote
12979 # substitution turns \\\\ into \\, and sed turns \\ into \).
12980 sed -n \
12981 "s/'/'\\\\''/g;
12982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12983 ;;
12984 *)
12985 # `set' quotes correctly as required by POSIX, so do not add quotes.
12986 sed -n \
12987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12988 ;;
12989 esac;
12990} |
12991 sed '
12992 t clear
12993 : clear
12994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12995 t end
12996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12997 : end' >>confcache
12998if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12999 if test -w $cache_file; then
c6b750e1
DJ
13000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13001 cat confcache >$cache_file
a0da8069
NN
13002 else
13003 echo "not updating unwritable cache $cache_file"
13004 fi
852e5f18 13005fi
a0da8069 13006rm -f confcache
852e5f18 13007
a0da8069
NN
13008test "x$prefix" = xNONE && prefix=$ac_default_prefix
13009# Let make expand exec_prefix.
13010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 13011
c6b750e1
DJ
13012# VPATH may cause trouble with some makes, so we remove $(srcdir),
13013# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13014# trailing colons and then remove the whole line if VPATH becomes empty
13015# (actually we leave an empty line to preserve line numbers).
a0da8069 13016if test "x$srcdir" = x.; then
c6b750e1
DJ
13017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13018s/:*\$(srcdir):*/:/;
13019s/:*\${srcdir}:*/:/;
13020s/:*@srcdir@:*/:/;
13021s/^\([^=]*=[ ]*\):*/\1/;
13022s/:*$//;
13023s/^[^=]*=[ ]*$//;
13024}'
a0da8069 13025fi
252b5132 13026
a0da8069
NN
13027# Transform confdefs.h into DEFS.
13028# Protect against shell expansion while executing Makefile rules.
13029# Protect against Makefile macro expansion.
c6b750e1
DJ
13030#
13031# If the first sed substitution is executed (which looks for macros that
13032# take arguments), then we branch to the quote section. Otherwise,
13033# look for a macro that doesn't take arguments.
13034cat >confdef2opt.sed <<\_ACEOF
13035t clear
13036: clear
13037s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
13038t quote
13039s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
13040t quote
13041d
13042: quote
13043s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13044s,\[,\\&,g
13045s,\],\\&,g
13046s,\$,$$,g
13047p
13048_ACEOF
13049# We use echo to avoid assuming a particular line-breaking character.
13050# The extra dot is to prevent the shell from consuming trailing
13051# line-breaks from the sub-command output. A line-break within
13052# single-quotes doesn't work because, if this script is created in a
13053# platform that uses two characters for line-breaks (e.g., DOS), tr
13054# would break.
13055ac_LF_and_DOT=`echo; echo .`
13056DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13057rm -f confdef2opt.sed
13058
13059
13060ac_libobjs=
13061ac_ltlibobjs=
13062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13063 # 1. Remove the extension, and $U if already installed.
13064 ac_i=`echo "$ac_i" |
13065 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13066 # 2. Add them.
13067 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13068 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13069done
13070LIBOBJS=$ac_libobjs
852e5f18 13071
c6b750e1 13072LTLIBOBJS=$ac_ltlibobjs
376a0e54 13073
cac3d6c4 13074
c6b750e1
DJ
13075
13076: ${CONFIG_STATUS=./config.status}
13077ac_clean_files_save=$ac_clean_files
13078ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13079{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13080echo "$as_me: creating $CONFIG_STATUS" >&6;}
13081cat >$CONFIG_STATUS <<_ACEOF
13082#! $SHELL
13083# Generated by $as_me.
a0da8069 13084# Run this file to recreate the current configuration.
a0da8069 13085# Compiler output produced by configure, useful for debugging
c6b750e1 13086# configure, is in config.log if it exists.
376a0e54 13087
c6b750e1
DJ
13088debug=false
13089ac_cs_recheck=false
13090ac_cs_silent=false
13091SHELL=\${CONFIG_SHELL-$SHELL}
13092_ACEOF
13093
13094cat >>$CONFIG_STATUS <<\_ACEOF
13095## --------------------- ##
13096## M4sh Initialization. ##
13097## --------------------- ##
13098
13099# Be Bourne compatible
13100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13101 emulate sh
13102 NULLCMD=:
13103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13104 # is contrary to our usage. Disable this feature.
13105 alias -g '${1+"$@"}'='"$@"'
13106elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13107 set -o posix
13108fi
13109DUALCASE=1; export DUALCASE # for MKS sh
13110
13111# Support unset when possible.
13112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13113 as_unset=unset
13114else
13115 as_unset=false
13116fi
13117
13118
13119# Work around bugs in pre-3.0 UWIN ksh.
13120$as_unset ENV MAIL MAILPATH
13121PS1='$ '
13122PS2='> '
13123PS4='+ '
13124
13125# NLS nuisances.
13126for as_var in \
13127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13129 LC_TELEPHONE LC_TIME
13130do
13131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13132 eval $as_var=C; export $as_var
13133 else
13134 $as_unset $as_var
13135 fi
13136done
13137
13138# Required to use basename.
13139if expr a : '\(a\)' >/dev/null 2>&1; then
13140 as_expr=expr
13141else
13142 as_expr=false
13143fi
13144
13145if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13146 as_basename=basename
13147else
13148 as_basename=false
13149fi
13150
13151
13152# Name of the executable.
13153as_me=`$as_basename "$0" ||
13154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13155 X"$0" : 'X\(//\)$' \| \
13156 X"$0" : 'X\(/\)$' \| \
13157 . : '\(.\)' 2>/dev/null ||
13158echo X/"$0" |
13159 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13160 /^X\/\(\/\/\)$/{ s//\1/; q; }
13161 /^X\/\(\/\).*/{ s//\1/; q; }
13162 s/.*/./; q'`
13163
13164
13165# PATH needs CR, and LINENO needs CR and PATH.
13166# Avoid depending upon Character Ranges.
13167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13170as_cr_digits='0123456789'
13171as_cr_alnum=$as_cr_Letters$as_cr_digits
13172
13173# The user is always right.
13174if test "${PATH_SEPARATOR+set}" != set; then
13175 echo "#! /bin/sh" >conf$$.sh
13176 echo "exit 0" >>conf$$.sh
13177 chmod +x conf$$.sh
13178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13179 PATH_SEPARATOR=';'
13180 else
13181 PATH_SEPARATOR=:
13182 fi
13183 rm -f conf$$.sh
13184fi
13185
13186
13187 as_lineno_1=$LINENO
13188 as_lineno_2=$LINENO
13189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13190 test "x$as_lineno_1" != "x$as_lineno_2" &&
13191 test "x$as_lineno_3" = "x$as_lineno_2" || {
13192 # Find who we are. Look in the path if we contain no path at all
13193 # relative or not.
13194 case $0 in
13195 *[\\/]* ) as_myself=$0 ;;
13196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13202done
13203
13204 ;;
13205 esac
13206 # We did not find ourselves, most probably we were run as `sh COMMAND'
13207 # in which case we are not to be found in the path.
13208 if test "x$as_myself" = x; then
13209 as_myself=$0
13210 fi
13211 if test ! -f "$as_myself"; then
13212 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13213echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13214 { (exit 1); exit 1; }; }
13215 fi
13216 case $CONFIG_SHELL in
13217 '')
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13220do
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for as_base in sh bash ksh sh5; do
13224 case $as_dir in
13225 /*)
13226 if ("$as_dir/$as_base" -c '
13227 as_lineno_1=$LINENO
13228 as_lineno_2=$LINENO
13229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13230 test "x$as_lineno_1" != "x$as_lineno_2" &&
13231 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13232 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13233 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13234 CONFIG_SHELL=$as_dir/$as_base
13235 export CONFIG_SHELL
13236 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13237 fi;;
13238 esac
13239 done
13240done
13241;;
13242 esac
13243
13244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13245 # uniformly replaced by the line number. The first 'sed' inserts a
13246 # line-number line before each line; the second 'sed' does the real
13247 # work. The second script uses 'N' to pair each line-number line
13248 # with the numbered line, and appends trailing '-' during
13249 # substitution so that $LINENO is not a special case at line end.
13250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13251 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13252 sed '=' <$as_myself |
13253 sed '
13254 N
13255 s,$,-,
13256 : loop
13257 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13258 t loop
13259 s,-$,,
13260 s,^['$as_cr_digits']*\n,,
13261 ' >$as_me.lineno &&
13262 chmod +x $as_me.lineno ||
13263 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13264echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13265 { (exit 1); exit 1; }; }
13266
13267 # Don't try to exec as it changes $[0], causing all sort of problems
13268 # (the dirname of $[0] is not the place where we might find the
13269 # original and so on. Autoconf is especially sensible to this).
13270 . ./$as_me.lineno
13271 # Exit status is that of the last command.
13272 exit
13273}
13274
13275
13276case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13277 *c*,-n*) ECHO_N= ECHO_C='
13278' ECHO_T=' ' ;;
13279 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13280 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13281esac
13282
13283if expr a : '\(a\)' >/dev/null 2>&1; then
13284 as_expr=expr
13285else
13286 as_expr=false
13287fi
13288
13289rm -f conf$$ conf$$.exe conf$$.file
13290echo >conf$$.file
13291if ln -s conf$$.file conf$$ 2>/dev/null; then
13292 # We could just check for DJGPP; but this test a) works b) is more generic
13293 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13294 if test -f conf$$.exe; then
13295 # Don't use ln at all; we don't have any links
13296 as_ln_s='cp -p'
13297 else
13298 as_ln_s='ln -s'
13299 fi
13300elif ln conf$$.file conf$$ 2>/dev/null; then
13301 as_ln_s=ln
13302else
13303 as_ln_s='cp -p'
13304fi
13305rm -f conf$$ conf$$.exe conf$$.file
13306
13307if mkdir -p . 2>/dev/null; then
13308 as_mkdir_p=:
13309else
13310 test -d ./-p && rmdir ./-p
13311 as_mkdir_p=false
13312fi
13313
13314as_executable_p="test -f"
13315
13316# Sed expression to map a string onto a valid CPP name.
13317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13318
13319# Sed expression to map a string onto a valid variable name.
13320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13321
13322
13323# IFS
13324# We need space, tab and new line, in precisely that order.
13325as_nl='
13326'
13327IFS=" $as_nl"
13328
13329# CDPATH.
13330$as_unset CDPATH
13331
13332exec 6>&1
13333
13334# Open the log real soon, to keep \$[0] and so on meaningful, and to
13335# report actual input values of CONFIG_FILES etc. instead of their
13336# values after options handling. Logging --version etc. is OK.
13337exec 5>>config.log
13338{
13339 echo
13340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13341## Running $as_me. ##
13342_ASBOX
13343} >&5
13344cat >&5 <<_CSEOF
13345
13346This file was extended by $as_me, which was
13347generated by GNU Autoconf 2.59. Invocation command line was
13348
13349 CONFIG_FILES = $CONFIG_FILES
13350 CONFIG_HEADERS = $CONFIG_HEADERS
13351 CONFIG_LINKS = $CONFIG_LINKS
13352 CONFIG_COMMANDS = $CONFIG_COMMANDS
13353 $ $0 $@
13354
13355_CSEOF
13356echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13357echo >&5
13358_ACEOF
13359
13360# Files that config.status was made for.
13361if test -n "$ac_config_files"; then
13362 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13363fi
13364
13365if test -n "$ac_config_headers"; then
13366 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13367fi
13368
13369if test -n "$ac_config_links"; then
13370 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13371fi
13372
13373if test -n "$ac_config_commands"; then
13374 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13375fi
13376
13377cat >>$CONFIG_STATUS <<\_ACEOF
13378
13379ac_cs_usage="\
13380\`$as_me' instantiates files from templates according to the
13381current configuration.
13382
13383Usage: $0 [OPTIONS] [FILE]...
13384
13385 -h, --help print this help, then exit
13386 -V, --version print version number, then exit
13387 -q, --quiet do not print progress messages
13388 -d, --debug don't remove temporary files
13389 --recheck update $as_me by reconfiguring in the same conditions
13390 --file=FILE[:TEMPLATE]
13391 instantiate the configuration file FILE
13392
13393Configuration files:
13394$config_files
13395
13396Report bugs to <bug-autoconf@gnu.org>."
13397_ACEOF
13398
13399cat >>$CONFIG_STATUS <<_ACEOF
13400ac_cs_version="\\
13401config.status
13402configured by $0, generated by GNU Autoconf 2.59,
13403 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13404
13405Copyright (C) 2003 Free Software Foundation, Inc.
13406This config.status script is free software; the Free Software Foundation
13407gives unlimited permission to copy, distribute and modify it."
13408srcdir=$srcdir
13409INSTALL="$INSTALL"
13410_ACEOF
13411
13412cat >>$CONFIG_STATUS <<\_ACEOF
13413# If no file are specified by the user, then we need to provide default
13414# value. By we need to know if files were specified by the user.
13415ac_need_defaults=:
13416while test $# != 0
a0da8069 13417do
c6b750e1
DJ
13418 case $1 in
13419 --*=*)
13420 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13421 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13422 ac_shift=:
13423 ;;
13424 -*)
13425 ac_option=$1
13426 ac_optarg=$2
13427 ac_shift=shift
13428 ;;
13429 *) # This is not an option, so the user has probably given explicit
13430 # arguments.
13431 ac_option=$1
13432 ac_need_defaults=false;;
13433 esac
13434
13435 case $ac_option in
13436 # Handling of the options.
13437_ACEOF
13438cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 13439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
13440 ac_cs_recheck=: ;;
13441 --version | --vers* | -V )
13442 echo "$ac_cs_version"; exit 0 ;;
13443 --he | --h)
13444 # Conflict between --help and --header
13445 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13446Try \`$0 --help' for more information." >&5
13447echo "$as_me: error: ambiguous option: $1
13448Try \`$0 --help' for more information." >&2;}
13449 { (exit 1); exit 1; }; };;
13450 --help | --hel | -h )
13451 echo "$ac_cs_usage"; exit 0 ;;
13452 --debug | --d* | -d )
13453 debug=: ;;
13454 --file | --fil | --fi | --f )
13455 $ac_shift
13456 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13457 ac_need_defaults=false;;
13458 --header | --heade | --head | --hea )
13459 $ac_shift
13460 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13461 ac_need_defaults=false;;
13462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13464 ac_cs_silent=: ;;
13465
13466 # This is an error.
13467 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13468Try \`$0 --help' for more information." >&5
13469echo "$as_me: error: unrecognized option: $1
13470Try \`$0 --help' for more information." >&2;}
13471 { (exit 1); exit 1; }; } ;;
13472
13473 *) ac_config_targets="$ac_config_targets $1" ;;
13474
376a0e54 13475 esac
c6b750e1 13476 shift
376a0e54
CM
13477done
13478
c6b750e1 13479ac_configure_extra_args=
376a0e54 13480
c6b750e1
DJ
13481if $ac_cs_silent; then
13482 exec 6>/dev/null
13483 ac_configure_extra_args="$ac_configure_extra_args --silent"
13484fi
376a0e54 13485
c6b750e1
DJ
13486_ACEOF
13487cat >>$CONFIG_STATUS <<_ACEOF
13488if \$ac_cs_recheck; then
13489 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13490 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13491fi
13492
13493_ACEOF
13494
13495
13496
13497
13498
13499cat >>$CONFIG_STATUS <<\_ACEOF
13500for ac_config_target in $ac_config_targets
13501do
13502 case "$ac_config_target" in
13503 # Handling of arguments.
13504 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13506echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13507 { (exit 1); exit 1; }; };;
13508 esac
13509done
13510
13511# If the user did not use the arguments to specify the items to instantiate,
13512# then the envvar interface is used. Set only those that are not.
13513# We use the long form for the default assignment because of an extremely
13514# bizarre bug on SunOS 4.1.3.
13515if $ac_need_defaults; then
13516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13517fi
13518
13519# Have a temporary directory for convenience. Make it in the build tree
13520# simply because there is no reason to put it here, and in addition,
13521# creating and moving files from /tmp can sometimes cause problems.
13522# Create a temporary directory, and hook for its removal unless debugging.
13523$debug ||
13524{
13525 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13526 trap '{ (exit 1); exit 1; }' 1 2 13 15
13527}
13528
13529# Create a (secure) tmp directory for tmp files.
13530
13531{
13532 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13533 test -n "$tmp" && test -d "$tmp"
13534} ||
13535{
13536 tmp=./confstat$$-$RANDOM
13537 (umask 077 && mkdir $tmp)
13538} ||
13539{
13540 echo "$me: cannot create a temporary directory in ." >&2
13541 { (exit 1); exit 1; }
13542}
13543
13544_ACEOF
13545
13546cat >>$CONFIG_STATUS <<_ACEOF
13547
13548#
13549# CONFIG_FILES section.
13550#
13551
13552# No need to generate the scripts if there are no CONFIG_FILES.
13553# This happens for instance when ./config.status config.h
13554if test -n "\$CONFIG_FILES"; then
13555 # Protect against being on the right side of a sed subst in config.status.
13556 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13557 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13558s,@SHELL@,$SHELL,;t t
13559s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13560s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13561s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13562s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13563s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13564s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13565s,@exec_prefix@,$exec_prefix,;t t
13566s,@prefix@,$prefix,;t t
13567s,@program_transform_name@,$program_transform_name,;t t
13568s,@bindir@,$bindir,;t t
13569s,@sbindir@,$sbindir,;t t
13570s,@libexecdir@,$libexecdir,;t t
13571s,@datadir@,$datadir,;t t
13572s,@sysconfdir@,$sysconfdir,;t t
13573s,@sharedstatedir@,$sharedstatedir,;t t
13574s,@localstatedir@,$localstatedir,;t t
13575s,@libdir@,$libdir,;t t
13576s,@includedir@,$includedir,;t t
13577s,@oldincludedir@,$oldincludedir,;t t
13578s,@infodir@,$infodir,;t t
13579s,@mandir@,$mandir,;t t
13580s,@build_alias@,$build_alias,;t t
13581s,@host_alias@,$host_alias,;t t
13582s,@target_alias@,$target_alias,;t t
13583s,@DEFS@,$DEFS,;t t
13584s,@ECHO_C@,$ECHO_C,;t t
13585s,@ECHO_N@,$ECHO_N,;t t
13586s,@ECHO_T@,$ECHO_T,;t t
13587s,@LIBS@,$LIBS,;t t
5b553f7e 13588s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
13589s,@build@,$build,;t t
13590s,@build_cpu@,$build_cpu,;t t
13591s,@build_vendor@,$build_vendor,;t t
13592s,@build_os@,$build_os,;t t
13593s,@build_noncanonical@,$build_noncanonical,;t t
13594s,@host_noncanonical@,$host_noncanonical,;t t
13595s,@target_noncanonical@,$target_noncanonical,;t t
13596s,@host@,$host,;t t
13597s,@host_cpu@,$host_cpu,;t t
13598s,@host_vendor@,$host_vendor,;t t
13599s,@host_os@,$host_os,;t t
13600s,@target@,$target,;t t
13601s,@target_cpu@,$target_cpu,;t t
13602s,@target_vendor@,$target_vendor,;t t
13603s,@target_os@,$target_os,;t t
13604s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13605s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13606s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13607s,@LN@,$LN,;t t
13608s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
13609s,@build_libsubdir@,$build_libsubdir,;t t
13610s,@build_subdir@,$build_subdir,;t t
13611s,@host_subdir@,$host_subdir,;t t
13612s,@target_subdir@,$target_subdir,;t t
13613s,@CC@,$CC,;t t
13614s,@CFLAGS@,$CFLAGS,;t t
13615s,@LDFLAGS@,$LDFLAGS,;t t
13616s,@CPPFLAGS@,$CPPFLAGS,;t t
13617s,@ac_ct_CC@,$ac_ct_CC,;t t
13618s,@EXEEXT@,$EXEEXT,;t t
13619s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
13620s,@CXX@,$CXX,;t t
13621s,@CXXFLAGS@,$CXXFLAGS,;t t
13622s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
13623s,@GNATBIND@,$GNATBIND,;t t
13624s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
13625s,@GNATMAKE@,$GNATMAKE,;t t
13626s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
13627s,@do_compare@,$do_compare,;t t
13628s,@gmplibs@,$gmplibs,;t t
13629s,@gmpinc@,$gmpinc,;t t
e8a5fa9c
RW
13630s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
13631s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13632s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
13633s,@stage1_ldflags@,$stage1_ldflags,;t t
13634s,@stage1_libs@,$stage1_libs,;t t
13635s,@poststage1_ldflags@,$poststage1_ldflags,;t t
13636s,@poststage1_libs@,$poststage1_libs,;t t
e28c595f
JM
13637s,@ppllibs@,$ppllibs,;t t
13638s,@pplinc@,$pplinc,;t t
13639s,@clooglibs@,$clooglibs,;t t
13640s,@clooginc@,$clooginc,;t t
c6b750e1
DJ
13641s,@stage1_languages@,$stage1_languages,;t t
13642s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 13643s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
13644s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13645s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1 13646s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 13647s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
13648s,@tooldir@,$tooldir,;t t
13649s,@build_tooldir@,$build_tooldir,;t t
13650s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13651s,@GDB_TK@,$GDB_TK,;t t
13652s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13653s,@build_configargs@,$build_configargs,;t t
13654s,@build_configdirs@,$build_configdirs,;t t
13655s,@host_configargs@,$host_configargs,;t t
13656s,@configdirs@,$configdirs,;t t
13657s,@target_configargs@,$target_configargs,;t t
1576798e
PB
13658s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13659s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13660s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
13661s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13662s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13663s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13664s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13665s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13666s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13667s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13668s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13669s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13670s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13671s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13672s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13673s,@config_shell@,$config_shell,;t t
13674s,@YACC@,$YACC,;t t
13675s,@BISON@,$BISON,;t t
13676s,@M4@,$M4,;t t
13677s,@LEX@,$LEX,;t t
13678s,@FLEX@,$FLEX,;t t
13679s,@MAKEINFO@,$MAKEINFO,;t t
13680s,@EXPECT@,$EXPECT,;t t
13681s,@RUNTEST@,$RUNTEST,;t t
13682s,@AR@,$AR,;t t
13683s,@AS@,$AS,;t t
13684s,@DLLTOOL@,$DLLTOOL,;t t
13685s,@LD@,$LD,;t t
13686s,@LIPO@,$LIPO,;t t
13687s,@NM@,$NM,;t t
13688s,@RANLIB@,$RANLIB,;t t
13689s,@STRIP@,$STRIP,;t t
13690s,@WINDRES@,$WINDRES,;t t
0c24b341 13691s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13692s,@OBJCOPY@,$OBJCOPY,;t t
13693s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13694s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13695s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13696s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13697s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13698s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13699s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13700s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13701s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13702s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13703s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13704s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13705s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13706s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13707s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13708s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13709s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13710s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13711s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13712s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13713s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13714s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13715s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13716s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13717s,@MAINT@,$MAINT,;t t
13718s,@stage1_cflags@,$stage1_cflags,;t t
13719s,@stage1_checking@,$stage1_checking,;t t
13720s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13721s,@datarootdir@,$datarootdir,;t t
13722s,@docdir@,$docdir,;t t
a3ca38d2 13723s,@pdfdir@,$pdfdir,;t t
c6b750e1 13724s,@htmldir@,$htmldir,;t t
e8a5fa9c 13725s,@compare_exclusions@,$compare_exclusions,;t t
c6b750e1
DJ
13726s,@LIBOBJS@,$LIBOBJS,;t t
13727s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13728/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13729s,@serialization_dependencies@,,;t t
a0da8069 13730/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13731s,@host_makefile_frag@,,;t t
a0da8069 13732/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13733s,@target_makefile_frag@,,;t t
a0da8069 13734/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13735s,@alphaieee_frag@,,;t t
a0da8069 13736/@ospace_frag@/r $ospace_frag
c6b750e1 13737s,@ospace_frag@,,;t t
a0da8069 13738CEOF
252b5132 13739
c6b750e1
DJ
13740_ACEOF
13741
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 # Split the substitutions into bite-sized pieces for seds with
13744 # small command number limits, like on Digital OSF/1 and HP-UX.
13745 ac_max_sed_lines=48
13746 ac_sed_frag=1 # Number of current file.
13747 ac_beg=1 # First line for current file.
13748 ac_end=$ac_max_sed_lines # Line after last line for current file.
13749 ac_more_lines=:
13750 ac_sed_cmds=
13751 while $ac_more_lines; do
13752 if test $ac_beg -gt 1; then
13753 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13754 else
13755 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13756 fi
13757 if test ! -s $tmp/subs.frag; then
13758 ac_more_lines=false
a0da8069 13759 else
c6b750e1
DJ
13760 # The purpose of the label and of the branching condition is to
13761 # speed up the sed processing (if there are no `@' at all, there
13762 # is no need to browse any of the substitutions).
13763 # These are the two extra sed commands mentioned above.
13764 (echo ':t
13765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13766 if test -z "$ac_sed_cmds"; then
13767 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13768 else
13769 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13770 fi
13771 ac_sed_frag=`expr $ac_sed_frag + 1`
13772 ac_beg=$ac_end
13773 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13774 fi
c6b750e1
DJ
13775 done
13776 if test -z "$ac_sed_cmds"; then
13777 ac_sed_cmds=cat
852e5f18 13778 fi
c6b750e1 13779fi # test -n "$CONFIG_FILES"
cac3d6c4 13780
c6b750e1
DJ
13781_ACEOF
13782cat >>$CONFIG_STATUS <<\_ACEOF
13783for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13785 case $ac_file in
13786 - | *:- | *:-:* ) # input from stdin
13787 cat >$tmp/stdin
13788 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13790 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13792 * ) ac_file_in=$ac_file.in ;;
a0da8069 13793 esac
252b5132 13794
c6b750e1
DJ
13795 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13796 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13797$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13798 X"$ac_file" : 'X\(//\)[^/]' \| \
13799 X"$ac_file" : 'X\(//\)$' \| \
13800 X"$ac_file" : 'X\(/\)' \| \
13801 . : '\(.\)' 2>/dev/null ||
13802echo X"$ac_file" |
13803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13805 /^X\(\/\/\)$/{ s//\1/; q; }
13806 /^X\(\/\).*/{ s//\1/; q; }
13807 s/.*/./; q'`
13808 { if $as_mkdir_p; then
13809 mkdir -p "$ac_dir"
cac3d6c4 13810 else
c6b750e1
DJ
13811 as_dir="$ac_dir"
13812 as_dirs=
13813 while test ! -d "$as_dir"; do
13814 as_dirs="$as_dir $as_dirs"
13815 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13817 X"$as_dir" : 'X\(//\)[^/]' \| \
13818 X"$as_dir" : 'X\(//\)$' \| \
13819 X"$as_dir" : 'X\(/\)' \| \
13820 . : '\(.\)' 2>/dev/null ||
13821echo X"$as_dir" |
13822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13824 /^X\(\/\/\)$/{ s//\1/; q; }
13825 /^X\(\/\).*/{ s//\1/; q; }
13826 s/.*/./; q'`
13827 done
13828 test ! -n "$as_dirs" || mkdir $as_dirs
13829 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13830echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13831 { (exit 1); exit 1; }; }; }
13832
13833 ac_builddir=.
252b5132 13834
c6b750e1
DJ
13835if test "$ac_dir" != .; then
13836 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13837 # A "../" for each directory in $ac_dir_suffix.
13838 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13839else
13840 ac_dir_suffix= ac_top_builddir=
13841fi
13842
13843case $srcdir in
13844 .) # No --srcdir option. We are building in place.
13845 ac_srcdir=.
13846 if test -z "$ac_top_builddir"; then
13847 ac_top_srcdir=.
13848 else
13849 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13850 fi ;;
13851 [\\/]* | ?:[\\/]* ) # Absolute path.
13852 ac_srcdir=$srcdir$ac_dir_suffix;
13853 ac_top_srcdir=$srcdir ;;
a0da8069 13854 *) # Relative path.
c6b750e1
DJ
13855 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13856 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13857esac
252b5132 13858
c6b750e1
DJ
13859# Do not use `cd foo && pwd` to compute absolute paths, because
13860# the directories may not exist.
13861case `pwd` in
13862.) ac_abs_builddir="$ac_dir";;
13863*)
13864 case "$ac_dir" in
13865 .) ac_abs_builddir=`pwd`;;
13866 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13867 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13868 esac;;
13869esac
13870case $ac_abs_builddir in
13871.) ac_abs_top_builddir=${ac_top_builddir}.;;
13872*)
13873 case ${ac_top_builddir}. in
13874 .) ac_abs_top_builddir=$ac_abs_builddir;;
13875 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13876 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13877 esac;;
13878esac
13879case $ac_abs_builddir in
13880.) ac_abs_srcdir=$ac_srcdir;;
13881*)
13882 case $ac_srcdir in
13883 .) ac_abs_srcdir=$ac_abs_builddir;;
13884 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13885 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13886 esac;;
13887esac
13888case $ac_abs_builddir in
13889.) ac_abs_top_srcdir=$ac_top_srcdir;;
13890*)
13891 case $ac_top_srcdir in
13892 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13893 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13894 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13895 esac;;
13896esac
252b5132 13897
c6b750e1
DJ
13898
13899 case $INSTALL in
13900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13901 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13902 esac
252b5132 13903
c6b750e1
DJ
13904 if test x"$ac_file" != x-; then
13905 { echo "$as_me:$LINENO: creating $ac_file" >&5
13906echo "$as_me: creating $ac_file" >&6;}
13907 rm -f "$ac_file"
13908 fi
13909 # Let's still pretend it is `configure' which instantiates (i.e., don't
13910 # use $as_me), people would be surprised to read:
13911 # /* config.h. Generated by config.status. */
13912 if test x"$ac_file" = x-; then
13913 configure_input=
13914 else
13915 configure_input="$ac_file. "
13916 fi
13917 configure_input=$configure_input"Generated from `echo $ac_file_in |
13918 sed 's,.*/,,'` by configure."
13919
13920 # First look for the input files in the build tree, otherwise in the
13921 # src tree.
13922 ac_file_inputs=`IFS=:
13923 for f in $ac_file_in; do
13924 case $f in
13925 -) echo $tmp/stdin ;;
13926 [\\/$]*)
13927 # Absolute (can't be DOS-style, as IFS=:)
13928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13929echo "$as_me: error: cannot find input file: $f" >&2;}
13930 { (exit 1); exit 1; }; }
13931 echo "$f";;
13932 *) # Relative
13933 if test -f "$f"; then
13934 # Build tree
13935 echo "$f"
13936 elif test -f "$srcdir/$f"; then
13937 # Source tree
13938 echo "$srcdir/$f"
13939 else
13940 # /dev/null tree
13941 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13942echo "$as_me: error: cannot find input file: $f" >&2;}
13943 { (exit 1); exit 1; }; }
13944 fi;;
13945 esac
13946 done` || { (exit 1); exit 1; }
13947_ACEOF
13948cat >>$CONFIG_STATUS <<_ACEOF
13949 sed "$ac_vpsub
13950$extrasub
13951_ACEOF
13952cat >>$CONFIG_STATUS <<\_ACEOF
13953:t
13954/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13955s,@configure_input@,$configure_input,;t t
13956s,@srcdir@,$ac_srcdir,;t t
13957s,@abs_srcdir@,$ac_abs_srcdir,;t t
13958s,@top_srcdir@,$ac_top_srcdir,;t t
13959s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13960s,@builddir@,$ac_builddir,;t t
13961s,@abs_builddir@,$ac_abs_builddir,;t t
13962s,@top_builddir@,$ac_top_builddir,;t t
13963s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13964s,@INSTALL@,$ac_INSTALL,;t t
13965" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13966 rm -f $tmp/stdin
13967 if test x"$ac_file" != x-; then
13968 mv $tmp/out $ac_file
13969 else
13970 cat $tmp/out
13971 rm -f $tmp/out
13972 fi
c148b4cb 13973
c6b750e1
DJ
13974done
13975_ACEOF
c148b4cb 13976
c6b750e1 13977cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13978
c6b750e1
DJ
13979{ (exit 0); exit 0; }
13980_ACEOF
c148b4cb 13981chmod +x $CONFIG_STATUS
c6b750e1
DJ
13982ac_clean_files=$ac_clean_files_save
13983
13984
13985# configure is writing to config.log, and then calls config.status.
13986# config.status does its own redirection, appending to config.log.
13987# Unfortunately, on DOS this fails, as config.log is still kept open
13988# by configure, so config.status won't be able to write to it; its
13989# output is simply discarded. So we exec the FD to /dev/null,
13990# effectively closing config.log, so it can be properly (re)opened and
13991# appended to by config.status. When coming back to configure, we
13992# need to make the FD available again.
13993if test "$no_create" != yes; then
13994 ac_cs_success=:
13995 ac_config_status_args=
13996 test "$silent" = yes &&
13997 ac_config_status_args="$ac_config_status_args --quiet"
13998 exec 5>/dev/null
13999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14000 exec 5>>config.log
14001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14002 # would make configure fail if this is the last instruction.
14003 $ac_cs_success || { (exit 1); exit 1; }
14004fi
c148b4cb 14005
This page took 1.279591 seconds and 4 git commands to generate.