Fix toplevel target deps.
[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
1512
5b553f7e
RW
1513
1514progname=$0
1515# if PWD already has a value, it is probably wrong.
1516if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1517
1518# Export original configure arguments for use by sub-configures.
1519# Quote arguments with shell meta charatcers.
1520TOPLEVEL_CONFIGURE_ARGUMENTS=
1521set -- "$progname" "$@"
1522for ac_arg
1523do
1524 case "$ac_arg" in
1525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1527 # if the argument is of the form -foo=baz, quote the baz part only
1528 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1529 *) ;;
1530 esac
1531 # Add the quoted argument to the list.
1532 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1533done
1534if test "$silent" = yes; then
1535 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1536fi
1537# Remove the initial space we just introduced and, as these will be
1538# expanded by make, quote '$'.
1539TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1540
c6b750e1
DJ
1541
1542# Find the build, host, and target systems.
a0da8069 1543ac_aux_dir=
315b3b02 1544for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
c6b750e1
DJ
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
a0da8069
NN
1557 fi
1558done
1559if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
a0da8069 1563fi
c6b750e1
DJ
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1567
c6b750e1
DJ
1568# Make sure we can run config.sub.
1569$ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574echo "$as_me:$LINENO: checking build system type" >&5
1575echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_build_alias=$build_alias
1580test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591fi
1592echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593echo "${ECHO_T}$ac_cv_build" >&6
1594build=$ac_cv_build
1595build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1598
a0da8069 1599
c6b750e1
DJ
1600 case ${build_alias} in
1601 "") build_noncanonical=${build} ;;
1602 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1603esac
1604
1605
cac3d6c4 1606
c6b750e1
DJ
1607 case ${host_alias} in
1608 "") host_noncanonical=${build_noncanonical} ;;
1609 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1610esac
1611
cac3d6c4 1612
c6b750e1
DJ
1613
1614 case ${target_alias} in
1615 "") target_noncanonical=${host_noncanonical} ;;
1616 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1617esac
1618
cac3d6c4 1619
c6b750e1
DJ
1620
1621
1622test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1624 NONENONEs,x,x, &&
c6b750e1 1625 program_transform_name=s,y,y,
cac3d6c4 1626
c6b750e1
DJ
1627echo "$as_me:$LINENO: checking host system type" >&5
1628echo $ECHO_N "checking host system type... $ECHO_C" >&6
1629if test "${ac_cv_host+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1631else
c6b750e1
DJ
1632 ac_cv_host_alias=$host_alias
1633test -z "$ac_cv_host_alias" &&
1634 ac_cv_host_alias=$ac_cv_build_alias
1635ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1642echo "${ECHO_T}$ac_cv_host" >&6
1643host=$ac_cv_host
1644host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649echo "$as_me:$LINENO: checking target system type" >&5
1650echo $ECHO_N "checking target system type... $ECHO_C" >&6
1651if test "${ac_cv_target+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 ac_cv_target_alias=$target_alias
1655test "x$ac_cv_target_alias" = "x" &&
1656 ac_cv_target_alias=$ac_cv_host_alias
1657ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1659echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
cac3d6c4 1662fi
c6b750e1
DJ
1663echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1664echo "${ECHO_T}$ac_cv_target" >&6
1665target=$ac_cv_target
1666target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671# The aliases save the names the user supplied, while $host etc.
1672# will get canonicalized.
1673test -n "$target_alias" &&
1674 test "$program_prefix$program_suffix$program_transform_name" = \
1675 NONENONEs,x,x, &&
1676 program_prefix=${target_alias}-
a0da8069 1677test "$program_prefix" != NONE &&
c6b750e1 1678 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1679# Use a double $ so make ignores it.
1680test "$program_suffix" != NONE &&
c6b750e1
DJ
1681 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1682# Double any \ or $. echo might interpret backslashes.
1683# By default was `s,x,x', remove it if useless.
1684cat <<\_ACEOF >conftest.sed
1685s/[\\$]/&&/g;s/;s,x,x,$//
1686_ACEOF
1687program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1688rm conftest.sed
cac3d6c4 1689
a0da8069
NN
1690
1691
e5c3f801
NN
1692# Get 'install' or 'install-sh' and its variants.
1693# Find a good install program. We prefer a C program (faster),
1694# so one script is as good as another. But avoid the broken or
1695# incompatible versions:
1696# SysV /etc/install, /usr/sbin/install
1697# SunOS /usr/etc/install
1698# IRIX /sbin/install
1699# AIX /bin/install
c6b750e1 1700# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1701# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1704# OS/2's system install, which has a completely different semantic
e5c3f801 1705# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1706# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1707echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1709if test -z "$INSTALL"; then
c6b750e1
DJ
1710if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714for as_dir in $PATH
1715do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1719case $as_dir/ in
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 /usr/ucb/* ) ;;
1724 *)
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1727 # by default.
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1731 if test $ac_prog = install &&
c6b750e1 1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1733 # AIX install. It has an incompatible calling convention.
1734 :
c6b750e1
DJ
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1738 :
e5c3f801 1739 else
58c85be7
RW
1740 rm -rf conftest.one conftest.two conftest.dir
1741 echo one > conftest.one
1742 echo two > conftest.two
1743 mkdir conftest.dir
1744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1745 test -s conftest.one && test -s conftest.two &&
1746 test -s conftest.dir/conftest.one &&
1747 test -s conftest.dir/conftest.two
1748 then
1749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 break 3
1751 fi
e5c3f801
NN
1752 fi
1753 fi
1754 done
c6b750e1
DJ
1755 done
1756 ;;
1757esac
1758done
1759
58c85be7 1760rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1761
1762fi
1763 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1764 INSTALL=$ac_cv_path_install
e5c3f801 1765 else
58c85be7
RW
1766 # As a last resort, use the slow shell script. Don't cache a
1767 # value for INSTALL within a source directory, because that will
e5c3f801 1768 # break other packages using the cache if that directory is
58c85be7 1769 # removed, or if the value is a relative name.
c6b750e1 1770 INSTALL=$ac_install_sh
e5c3f801
NN
1771 fi
1772fi
c6b750e1
DJ
1773echo "$as_me:$LINENO: result: $INSTALL" >&5
1774echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1775
1776# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1777# It thinks the first close brace ends the variable substitution.
1778test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1779
c6b750e1 1780test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1781
1782test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1783
c6b750e1
DJ
1784echo "$as_me:$LINENO: checking whether ln works" >&5
1785echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1786if test "${acx_cv_prog_LN+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1788else
1789 rm -f conftestdata_t
1790echo >conftestdata_f
1791if ln conftestdata_f conftestdata_t 2>/dev/null
1792then
1793 acx_cv_prog_LN=ln
1794else
1795 acx_cv_prog_LN=no
1796fi
1797rm -f conftestdata_f conftestdata_t
1798
1799fi
1800if test $acx_cv_prog_LN = no; then
1801 LN="cp"
c6b750e1
DJ
1802 echo "$as_me:$LINENO: result: no, using $LN" >&5
1803echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1804else
1805 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1806 echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
656fdd47
PB
1808fi
1809
c6b750e1
DJ
1810echo "$as_me:$LINENO: checking whether ln -s works" >&5
1811echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1812LN_S=$as_ln_s
1813if test "$LN_S" = "ln -s"; then
1814 echo "$as_me:$LINENO: result: yes" >&5
1815echo "${ECHO_T}yes" >&6
cac3d6c4 1816else
c6b750e1
DJ
1817 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1818echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1819fi
1820
e5c3f801 1821
252b5132 1822### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1823### If we are on Windows, search for the shell. This will permit people
1824### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1825### without also having to set CONFIG_SHELL. This code will work when
1826### using bash, which sets OSTYPE.
1827case "${OSTYPE}" in
1828*win32*)
a0da8069
NN
1829 if test x${CONFIG_SHELL} = x ; then
1830 if test ! -f /bin/sh ; then
1831 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1832 CONFIG_SHELL=${SHELL}
1833 export CONFIG_SHELL
1834 else
1835 for prog in sh sh.exe bash bash.exe; do
1836 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1837 for dir in $PATH; do
1838 test -z "$dir" && dir=.
1839 if test -f $dir/$prog; then
1840 CONFIG_SHELL=$dir/$prog
1841 export CONFIG_SHELL
1842 break
1843 fi
1844 done
1845 IFS="$save_ifs"
1846 test -n "${CONFIG_SHELL}" && break
1847 done
1848 fi
1849 fi
1850 fi
1851 ;;
1852esac
1853
1854config_shell=${CONFIG_SHELL-/bin/sh}
1855
a0da8069 1856moveifchange=${srcdir}/move-if-change
252b5132 1857
0fdbe983
DJ
1858srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1859
1860# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1861# a relative path.
1862if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1863 INSTALL="${srcpwd}/install-sh -c"
1864fi
1865
a0da8069
NN
1866# Set srcdir to "." if that's what it is.
1867# This is important for multilib support.
1868pwd=`${PWDCMD-pwd}`
a0da8069
NN
1869if test "${pwd}" = "${srcpwd}" ; then
1870 srcdir=.
252b5132
RH
1871fi
1872
a0da8069 1873topsrcdir=$srcpwd
252b5132 1874
a0da8069 1875extra_host_args=
afefada0 1876
a0da8069
NN
1877### To add a new directory to the tree, first choose whether it is a target
1878### or a host dependent tool. Then put it into the appropriate list
1879### (library or tools, host or target), doing a dependency sort.
252b5132 1880
c6b750e1 1881# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1882# configdirs, or target_configdirs; see the serialization section below.
252b5132 1883
c6b750e1
DJ
1884# Dependency sorting is only needed when *configuration* must be done in
1885# a particular order. In all cases a dependency should be specified in
a0da8069 1886# the Makefile, whether or not it's implicitly specified here.
252b5132 1887
a0da8069
NN
1888# Double entries in build_configdirs, configdirs, or target_configdirs may
1889# cause circular dependencies and break everything horribly.
252b5132 1890
6a9cf61e
PB
1891# these library is used by various programs built for the build
1892# environment
1893#
1894build_libs="build-libiberty"
1895
1896# these tools are built for the build environment
ee025550 1897build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1898
a0da8069
NN
1899# these libraries are used by various programs built for the host environment
1900#
e8a5fa9c 1901host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
a0da8069 1902
a0da8069
NN
1903# these tools are built for the host environment
1904# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1905# know that we are building the simulator.
1906# binutils, gas and ld appear in that order because it makes sense to run
1907# "make check" in that particular order.
93f9b408 1908# If --enable-gold is used, "gold" will replace "ld".
f9806fa5 1909host_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
1910
1911# libgcj represents the runtime libraries only used by gcj.
1912libgcj="target-libffi \
a0da8069
NN
1913 target-zlib \
1914 target-qthreads \
1915 target-libjava"
1916
1917# these libraries are built for the target environment, and are built after
1918# the host libraries and the host tools (which may be a cross compiler)
1919#
b1299c4e
DJ
1920target_libraries="target-libgcc \
1921 target-libiberty \
a0da8069
NN
1922 target-libgloss \
1923 target-newlib \
cff87f51 1924 target-libgomp \
b9459e83 1925 target-libstdc++-v3 \
4b1cb4fe 1926 target-libmudflap \
bb780410 1927 target-libssp \
4b1cb4fe 1928 target-libgfortran \
4f0ef2d8 1929 target-boehm-gc \
83326456 1930 ${libgcj} \
a2592b1b 1931 target-libobjc \
cff87f51 1932 target-libada"
a0da8069 1933
9c14acb8
NN
1934# these tools are built using the target libraries, and are intended to
1935# run only in the target environment
a0da8069 1936#
9c14acb8 1937# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1938# list belongs in this list. those programs are also very likely
1939# candidates for the "native_only" list which follows
1940#
a3dd767d 1941target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1942
a0da8069 1943################################################################################
252b5132 1944
a0da8069
NN
1945## All tools belong in one of the four categories, and are assigned above
1946## We assign ${configdirs} this way to remove all embedded newlines. This
1947## is important because configure will choke if they ever get through.
1948## ${configdirs} is directories we build using the host tools.
1949## ${target_configdirs} is directories we build using the target tools.
a0da8069 1950configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1951target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1952build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1953
9cc8ae67
PB
1954
1955
a0da8069 1956################################################################################
252b5132 1957
a0da8069 1958srcname="gnu development package"
252b5132 1959
a0da8069
NN
1960# This gets set non-empty for some net releases of packages.
1961appdirs=""
252b5132 1962
a0da8069
NN
1963# Define is_cross_compiler to save on calls to 'test'.
1964is_cross_compiler=
1965if test x"${host}" = x"${target}" ; then
1966 is_cross_compiler=no
252b5132 1967else
a0da8069 1968 is_cross_compiler=yes
c6b750e1 1969fi
252b5132 1970
9175bfc0 1971# Find the build and target subdir names.
dd12c3a8 1972
66a79c16
DJ
1973# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1974# have matching libraries, they should use host libraries: Makefile.tpl
1975# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1976# However, they still use the build modules, because the corresponding
1977# host modules (e.g. bison) are only built for the host when bootstrap
1978# finishes. So:
1979# - build_subdir is where we find build modules, and never changes.
1980# - build_libsubdir is where we find build libraries, and can be overridden.
1981
1982# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1983build_subdir="build-${build_noncanonical}"
c6b750e1 1984
66a79c16
DJ
1985# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1986if test "${with_build_libsubdir+set}" = set; then
1987 withval="$with_build_libsubdir"
1988 build_libsubdir="$withval"
1989else
1990 build_libsubdir="$build_subdir"
c6b750e1 1991fi;
b00612cc
PB
1992# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1993if ( test $srcdir = . && test -d gcc ) \
1994 || test -d $srcdir/../host-${host_noncanonical}; then
1995 host_subdir="host-${host_noncanonical}"
1996else
1997 host_subdir=.
1998fi
dd12c3a8
NN
1999# No prefix.
2000target_subdir=${target_noncanonical}
c6b750e1 2001
252b5132 2002
a0da8069
NN
2003# Skipdirs are removed silently.
2004skipdirs=
2005# Noconfigdirs are removed loudly.
2006noconfigdirs=""
252b5132 2007
a0da8069
NN
2008use_gnu_ld=
2009# Make sure we don't let GNU ld be added if we didn't want it.
2010if test x$with_gnu_ld = xno ; then
2011 use_gnu_ld=no
93f9b408 2012 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2013fi
2014
a0da8069
NN
2015use_gnu_as=
2016# Make sure we don't let GNU as be added if we didn't want it.
2017if test x$with_gnu_as = xno ; then
2018 use_gnu_as=no
2019 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2020fi
2021
c6b750e1 2022# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2023# it's not even worth trying to configure, much less build, that tool.
252b5132 2024
a0da8069
NN
2025case ${with_x} in
2026 yes | "") ;; # the default value for this tree is that X11 is available
2027 no)
675c6968 2028 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2029 # We won't be able to build gdbtk without X.
c6b750e1 2030 enable_gdbtk=no
a0da8069
NN
2031 ;;
2032 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2033esac
252b5132 2034
a0da8069 2035# Some tools are only suitable for building in a "native" situation.
c6b750e1 2036# Remove these if host!=target.
701628f5 2037native_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 2038
a0da8069
NN
2039# Similarly, some are only suitable for cross toolchains.
2040# Remove these if host=target.
2041cross_only="target-libgloss target-newlib target-opcodes"
2042
2043case $is_cross_compiler in
2044 no) skipdirs="${skipdirs} ${cross_only}" ;;
2045 yes) skipdirs="${skipdirs} ${native_only}" ;;
2046esac
252b5132 2047
a0da8069
NN
2048# If both --with-headers and --with-libs are specified, default to
2049# --without-newlib.
32be62b5
RS
2050if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2051 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2052 if test x"${with_newlib}" = x ; then
2053 with_newlib=no
2054 fi
252b5132
RH
2055fi
2056
a0da8069
NN
2057# Recognize --with-newlib/--without-newlib.
2058case ${with_newlib} in
2059 no) skipdirs="${skipdirs} target-newlib" ;;
2060 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2061esac
252b5132 2062
93f9b408
ILT
2063# Handle --enable-gold.
2064
2065# Check whether --enable-gold or --disable-gold was given.
2066if test "${enable_gold+set}" = set; then
2067 enableval="$enable_gold"
2068 ENABLE_GOLD=$enableval
2069else
2070 ENABLE_GOLD=no
2071fi;
2072if test "${ENABLE_GOLD}" = "yes"; then
2073 # Check for ELF target.
2074 is_elf=no
2075 case "${target}" in
2076 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2077 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8bcf2718 2078 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
2079 case "${target}" in
2080 *-*-linux*aout* | *-*-linux*oldld*)
2081 ;;
2082 *)
2083 is_elf=yes
2084 ;;
2085 esac
2086 esac
2087
2088 if test "$is_elf" = "yes"; then
2089 # Check for target supported by gold.
2090 case "${target}" in
4a657b0d 2091 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
93f9b408
ILT
2092 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2093 ;;
2094 esac
2095 fi
2096fi
2097
a0da8069 2098# Configure extra directories which are host specific
252b5132 2099
a0da8069
NN
2100case "${host}" in
2101 *-cygwin*)
2102 configdirs="$configdirs libtermcap" ;;
2103esac
252b5132 2104
59f7ec45
HPN
2105# A target can indicate whether a language isn't supported for some reason.
2106# Only spaces may be used in this macro; not newlines or tabs.
2107unsupported_languages=
2108
c6b750e1 2109# Remove more programs from consideration, based on the host or
a0da8069
NN
2110# target this usually means that a port of the program doesn't
2111# exist yet.
252b5132 2112
a0da8069
NN
2113case "${host}" in
2114 hppa*64*-*-*)
2115 noconfigdirs="$noconfigdirs byacc"
2116 ;;
ec11bdc6 2117 i[3456789]86-*-vsta)
675c6968 2118 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2119 ;;
ec11bdc6 2120 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2121 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2122 ;;
2d1e8239
NC
2123 x86_64-*-mingw*)
2124 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2125 ;;
ec11bdc6 2126 i[3456789]86-*-mingw32*)
675c6968 2127 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2128 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2129 ;;
ec11bdc6 2130 i[3456789]86-*-beos*)
675c6968 2131 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2132 ;;
a0da8069 2133 *-*-cygwin*)
a92834c8 2134 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2135 ;;
2136 *-*-netbsd*)
a92834c8 2137 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2138 ;;
2139 ppc*-*-pe)
675c6968 2140 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2141 ;;
2142 powerpc-*-beos*)
675c6968 2143 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2144 ;;
a0da8069 2145esac
252b5132 2146
4b1cb4fe 2147
a2592b1b
DD
2148# Check whether --enable-libada or --disable-libada was given.
2149if test "${enable_libada+set}" = set; then
2150 enableval="$enable_libada"
2151 ENABLE_LIBADA=$enableval
2152else
2153 ENABLE_LIBADA=yes
c6b750e1 2154fi;
a2592b1b 2155if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2156 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2157fi
2158
5f128533
KH
2159# Check whether --enable-libssp or --disable-libssp was given.
2160if test "${enable_libssp+set}" = set; then
2161 enableval="$enable_libssp"
2162 ENABLE_LIBSSP=$enableval
2163else
2164 ENABLE_LIBSSP=yes
c6b750e1 2165fi;
5f128533 2166
a0da8069
NN
2167# Save it here so that, even in case of --enable-libgcj, if the Java
2168# front-end isn't enabled, we still get libgcj disabled.
2169libgcj_saved=$libgcj
2170case $enable_libgcj in
2171yes)
2172 # If we reset it here, it won't get added to noconfigdirs in the
2173 # target-specific build rules, so it will be forcibly enabled
2174 # (unless the Java language itself isn't enabled).
2175 libgcj=
2176 ;;
2177no)
2178 # Make sure we get it printed in the list of not supported target libs.
2179 noconfigdirs="$noconfigdirs ${libgcj}"
2180 ;;
2181esac
252b5132 2182
4b1cb4fe 2183
a6df5a19
PB
2184# Disable libmudflap on some systems.
2185if test x$enable_libmudflap = x ; then
3e707e94 2186 case "${target}" in
29383458 2187 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2188 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2189 ;;
2190 *-*-freebsd*)
2191 # Enable libmudflap by default in FreeBSD.
2192 ;;
2193 *)
2194 # Disable it by default everywhere else.
2195 noconfigdirs="$noconfigdirs target-libmudflap"
2196 ;;
2197 esac
a6df5a19 2198fi
4b1cb4fe 2199
a6df5a19
PB
2200# Disable libgomp on non POSIX hosted systems.
2201if test x$enable_libgomp = x ; then
b3ded179
PB
2202 # Enable libgomp by default on hosted POSIX systems.
2203 case "${target}" in
29383458 2204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2205 ;;
2206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2207 ;;
64ce424c 2208 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2209 ;;
2210 *-*-darwin* | *-*-aix*)
2211 ;;
2212 *)
2213 noconfigdirs="$noconfigdirs target-libgomp"
2214 ;;
2215 esac
a6df5a19 2216fi
b3ded179 2217
691bb5a1
DD
2218# Default libgloss CPU subdirectory.
2219libgloss_dir="$target_cpu"
4b1cb4fe 2220
a0da8069
NN
2221case "${target}" in
2222 *-*-chorusos)
54d1c879 2223 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2224 ;;
24741ab2 2225 powerpc-*-darwin*)
9d39db92 2226 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2227 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2228 ;;
85bd1942
TG
2229 i[3456789]86-*-darwin*)
2230 noconfigdirs="$noconfigdirs ld gprof"
2231 noconfigdirs="$noconfigdirs sim target-rda"
2232 ;;
e8a5fa9c 2233 x86_64-*-darwin[912]*)
652dec25
TG
2234 noconfigdirs="$noconfigdirs ld gas gprof"
2235 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2236 ;;
04d1ab34 2237 *-*-darwin*)
d320aacb 2238 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2239 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2240 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2241 ;;
a0da8069 2242 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2243 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2244 ;;
de0b4a87 2245 *-*-freebsd*)
4b1cb4fe
DD
2246 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2247 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2248 && test -f /usr/local/include/gmp.h; then
2249 with_gmp=/usr/local
2250 fi
2251
2252 # Skip some stuff that's unsupported on some FreeBSD configurations.
2253 case "${target}" in
2254 i*86-*-*) ;;
2255 alpha*-*-*) ;;
2256 *)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2258 ;;
2259 esac
2260 ;;
f8a495c8
NC
2261 *-*-kaos*)
2262 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2263 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2264 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2265 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2266 noconfigdirs="$noconfigdirs target-libgloss"
2267 ;;
a0da8069
NN
2268 *-*-netbsd*)
2269 # Skip some stuff on all NetBSD configurations.
2270 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2271
2272 # Skip some stuff that's unsupported on some NetBSD configurations.
2273 case "${target}" in
2274 i*86-*-netbsdelf*) ;;
5b474aa8 2275 arm*-*-netbsdelf*) ;;
a0da8069 2276 *)
54d1c879 2277 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2278 ;;
2279 esac
2280 ;;
2a3124ca 2281 *-*-netware*)
54d1c879 2282 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2283 ;;
2284 *-*-rtems*)
54d1c879 2285 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2286 ;;
1587117a
EC
2287 # The tpf target doesn't support gdb yet.
2288 *-*-tpf*)
54d1c879 2289 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2290 ;;
c1968181 2291 *-*-uclinux*)
54d1c879 2292 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2293 ;;
a0da8069 2294 *-*-vxworks*)
54d1c879 2295 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2296 ;;
2297 alpha*-dec-osf*)
2298 # ld works, but does not support shared libraries.
2299 # newlib is not 64 bit ready. I'm not sure about fileutils.
2300 # gas doesn't generate exception information.
2301 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2302 ;;
2303 alpha*-*-*vms*)
54d1c879 2304 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2305 ;;
2306 alpha*-*-linux*)
2307 # newlib is not 64 bit ready
2308 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2309 ;;
a0da8069
NN
2310 alpha*-*-*)
2311 # newlib is not 64 bit ready
54d1c879 2312 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2313 ;;
4a18bd6b 2314 am33_2.0-*-linux*)
54d1c879 2315 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2316 ;;
a0da8069 2317 sh-*-linux*)
54d1c879 2318 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2319 ;;
a0da8069 2320 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2321 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2322 noconfigdirs="$noconfigdirs target-examples"
2323 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2324 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2325 noconfigdirs="$noconfigdirs expect dejagnu"
2326 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2327 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2328 noconfigdirs="$noconfigdirs target-newlib"
2329 case "${host}" in
2330 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2331 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2332 ;;
2333 esac
691bb5a1 2334 libgloss_dir=wince
a0da8069
NN
2335 ;;
2336 arc-*-*)
54d1c879 2337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2338 ;;
caeba88f 2339 arm-semi-aof )
caeba88f 2340 ;;
a0da8069 2341 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2342 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2343 libgloss_dir=arm
a0da8069 2344 ;;
11b04d1f 2345 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2346 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2347 libgloss_dir=arm
a0da8069 2348 ;;
bd70a46f 2349 arm*-*-linux-gnueabi)
6d18b86b 2350 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2351 case ${with_newlib} in
2352 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2353 esac
691bb5a1 2354 libgloss_dir=arm
bd70a46f 2355 ;;
df4a6958 2356 arm*-*-symbianelf*)
54d1c879 2357 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2358 libgloss_dir=arm
df4a6958 2359 ;;
a0da8069 2360 arm-*-pe*)
54d1c879 2361 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2362 ;;
a0da8069 2363 thumb-*-coff)
54d1c879 2364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2365 ;;
2366 thumb-*-elf)
54d1c879 2367 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2368 ;;
a0da8069 2369 thumb-*-pe)
54d1c879 2370 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2371 ;;
2372 arm-*-riscix*)
54d1c879 2373 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2374 ;;
2375 avr-*-*)
266df637 2376 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2377 ;;
376a0e54 2378 bfin-*-*)
00d89675 2379 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2380 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2381 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2382 fi
2383 ;;
a0da8069 2384 c4x-*-* | tic4x-*-*)
54d1c879 2385 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2386 ;;
2387 c54x*-*-* | tic54x-*-*)
54d1c879 2388 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2389 ;;
52310858
NC
2390 cr16-*-*)
2391 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2392 ;;
c7e66c6d 2393 cris-*-* | crisv32-*-*)
59f7ec45 2394 unsupported_languages="$unsupported_languages java"
c7e66c6d 2395 case "${target}" in
2faa2958 2396 *-*-aout)
096f7d00 2397 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2398 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2399 *-*-elf)
5e818318 2400 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2401 *-*-linux*)
5e818318 2402 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2403 *)
096f7d00 2404 unsupported_languages="$unsupported_languages fortran"
54d1c879 2405 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2406 esac
691bb5a1 2407 libgloss_dir=cris
a0da8069 2408 ;;
3e707e94 2409 crx-*-*)
54d1c879 2410 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2411 ;;
a0da8069 2412 d10v-*-*)
54d1c879 2413 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2414 ;;
2415 d30v-*-*)
54d1c879 2416 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2417 ;;
691bb5a1
DD
2418 ep9312-*-elf | ep9312-*-coff)
2419 libgloss_dir=arm
2420 ;;
a0da8069 2421 fr30-*-elf*)
54d1c879 2422 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2423 ;;
2424 frv-*-*)
54d1c879 2425 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2426 ;;
20135e4c
NC
2427 moxie-*-*)
2428 noconfigdirs="$noconfigdirs ${libgcj}"
2429 noconfigdirs="$noconfigdirs gprof"
2430 ;;
a0da8069 2431 h8300*-*-*)
54d1c879 2432 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2433 ;;
2434 h8500-*-*)
54d1c879 2435 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2436 ;;
caeba88f 2437 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2438 ;;
a0da8069
NN
2439 hppa*64*-*-linux* | parisc*64*-*-linux*)
2440 # In this case, it's because the hppa64-linux target is for
2441 # the kernel only at this point and has no libc, and thus no
2442 # headers, crt*.o, etc., all of which are needed by these.
2443 noconfigdirs="$noconfigdirs target-zlib"
2444 ;;
5dcac624
DA
2445 parisc*-*-linux* | hppa*-*-linux*)
2446 ;;
a0da8069 2447 hppa*-*-*elf* | \
a0da8069
NN
2448 hppa*-*-lites* | \
2449 hppa*-*-openbsd* | \
2450 hppa*64*-*-*)
54d1c879 2451 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2452 ;;
2453 hppa*-hp-hpux11*)
2454 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2455 ;;
691bb5a1
DD
2456 hppa*-*-pro*)
2457 libgloss_dir=pa
2458 ;;
a0da8069
NN
2459 hppa*-*-*)
2460 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2461 # build on HP-UX 10.20.
54d1c879 2462 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2463 ;;
b07c2aad 2464 i960-*-*)
54d1c879 2465 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2466 ;;
a0da8069
NN
2467 ia64*-*-elf*)
2468 # No gdb support yet.
675c6968 2469 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2470 ;;
2471 ia64*-**-hpux*)
2472 # No gdb or ld support yet.
54d1c879 2473 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2474 ;;
19e99079
NC
2475 ia64*-*-*vms*)
2476 # No gdb or ld support yet.
2477 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2478 ;;
caeba88f 2479 i370-*-opened*)
caeba88f 2480 ;;
ec11bdc6 2481 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2482 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2483 libgloss_dir=i386
a0da8069 2484 ;;
ec11bdc6 2485 i[3456789]86-*-linux*)
a0da8069
NN
2486 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2487 # not build java stuff by default.
2488 case "${target}" in
2489 *-*-*libc1*)
54d1c879 2490 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2491 esac
2492
2493 # This section makes it possible to build newlib natively on linux.
2494 # If we are using a cross compiler then don't configure newlib.
2495 if test x${is_cross_compiler} != xno ; then
bba45b8b 2496 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2497 fi
2498 noconfigdirs="$noconfigdirs target-libgloss"
2499 # If we are not using a cross compiler, do configure newlib.
2500 # Note however, that newlib will only be configured in this situation
2501 # if the --with-newlib option has been given, because otherwise
2502 # 'target-newlib' will appear in skipdirs.
2503 ;;
ec11bdc6 2504 i[3456789]86-*-mingw32*)
45055374
CV
2505 target_configdirs="$target_configdirs target-winsup"
2506 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2507 ;;
2d1e8239
NC
2508 x86_64-*-mingw*)
2509 target_configdirs="$target_configdirs target-winsup"
2510 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2511 ;;
a0da8069
NN
2512 *-*-cygwin*)
2513 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 2514 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 2515 # always build newlib if winsup directory is present.
45055374 2516 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2517 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2518 elif test -d "$srcdir/newlib"; then
45055374 2519 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2520 fi
c6b750e1 2521 ;;
caeba88f
AL
2522 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2523 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2524 ;;
ec11bdc6 2525 i[3456789]86-*-pe)
54d1c879 2526 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2527 ;;
ec11bdc6 2528 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2529 # The linker does not yet know about weak symbols in COFF,
2530 # and is not configured to handle mixed ELF and COFF.
54d1c879 2531 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2532 ;;
ec11bdc6 2533 i[3456789]86-*-sco*)
54d1c879 2534 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2535 ;;
ec11bdc6 2536 i[3456789]86-*-solaris2*)
a0da8069
NN
2537 noconfigdirs="$noconfigdirs target-libgloss"
2538 ;;
ec11bdc6 2539 i[3456789]86-*-sysv4*)
54d1c879 2540 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2541 ;;
ec11bdc6 2542 i[3456789]86-*-beos*)
54d1c879 2543 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2544 ;;
b59bea8a 2545 i[3456789]86-*-rdos*)
2429c060
PB
2546 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2547 ;;
b07c2aad 2548 m32r-*-*)
54d1c879 2549 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2550 ;;
a0da8069 2551 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2552 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2553 libgloss_dir=m68hc11
a0da8069
NN
2554 ;;
2555 m68k-*-elf*)
54d1c879 2556 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2557 ;;
2558 m68k-*-coff*)
54d1c879 2559 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2560 ;;
691bb5a1
DD
2561 m68*-*-* | fido-*-*)
2562 libgloss_dir=m68k
2563 ;;
a0da8069
NN
2564 mcore-*-pe*)
2565 # The EPOC C++ environment does not support exceptions or rtti,
2566 # and so building libstdc++-v3 tends not to always work.
2567 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2568 ;;
2569 mmix-*-*)
59f7ec45 2570 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2571 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2572 ;;
2573 mn10200-*-*)
54d1c879 2574 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2575 ;;
2576 mn10300-*-*)
54d1c879 2577 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2578 ;;
4970f871 2579 mt-*-*)
cdb9b172
AH
2580 noconfigdirs="$noconfigdirs sim"
2581 ;;
a0da8069
NN
2582 powerpc-*-aix*)
2583 # copied from rs6000-*-* entry
e8a5fa9c 2584 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
2585 ;;
2586 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2587 target_configdirs="$target_configdirs target-winsup"
54d1c879 2588 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2589 # always build newlib.
2590 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2591 ;;
2592 # This is temporary until we can link against shared libraries
2593 powerpcle-*-solaris*)
54d1c879 2594 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2595 libgloss_dir=rs6000
a0da8069
NN
2596 ;;
2597 powerpc-*-beos*)
54d1c879 2598 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2599 ;;
a0da8069 2600 powerpc-*-eabi)
54d1c879 2601 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2602 libgloss_dir=rs6000
caeba88f
AL
2603 ;;
2604 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2605 libgloss_dir=rs6000
a0da8069 2606 ;;
a0da8069 2607 rs6000-*-lynxos*)
54d1c879 2608 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2609 ;;
2610 rs6000-*-aix*)
e8a5fa9c 2611 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
2612 ;;
2613 rs6000-*-*)
54d1c879 2614 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2615 ;;
2616 m68k-apollo-*)
54d1c879 2617 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2618 ;;
25a07265
NC
2619 microblaze*)
2620 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2621 ;;
5bd8be13
RS
2622 mips*-sde-elf*)
2623 skipdirs="$skipdirs target-libiberty"
2624 noconfigdirs="$noconfigdirs ${libgcj}"
2625 if test x$with_newlib = xyes; then
2626 noconfigdirs="$noconfigdirs gprof"
2627 fi
2628 libgloss_dir=mips
2629 ;;
a0da8069 2630 mips*-*-irix5*)
54d1c879 2631 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2632 ;;
2633 mips*-*-irix6*)
a0da8069
NN
2634 # Linking libjava exceeds command-line length limits on at least
2635 # IRIX 6.2, but not on IRIX 6.5.
2636 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2637 # <oldham@codesourcery.com>
54d1c879 2638 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2639 ;;
a0da8069 2640 mips*-*-bsd*)
54d1c879 2641 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2642 ;;
a0da8069
NN
2643 mips*-*-linux*)
2644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2645 ;;
2646 mips*-*-*)
54d1c879 2647 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2648 libgloss_dir=mips
a0da8069
NN
2649 ;;
2650 romp-*-*)
54d1c879 2651 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2652 ;;
dbf85af7 2653 sh-*-* | sh64-*-*)
a0da8069 2654 case "${host}" in
ec11bdc6
DD
2655 i[3456789]86-*-vsta) ;; # don't add gprof back in
2656 i[3456789]86-*-go32*) ;; # don't add gprof back in
2657 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2658 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2659 esac
e8a5fa9c
RW
2660 case "${target}" in
2661 sh*-*-elf)
2662 noconfigdirs="$noconfigdirs ${libgcj}" ;;
2663 *)
2664 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
2665 esac
a0da8069 2666 ;;
691bb5a1
DD
2667 sparclet-*-aout* | sparc86x-*-*)
2668 libgloss_dir=sparc
2669 ;;
a0da8069 2670 sparc-*-elf*)
54d1c879 2671 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2672 ;;
2673 sparc64-*-elf*)
54d1c879 2674 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2675 libgloss_dir=sparc
a0da8069
NN
2676 ;;
2677 sparclite-*-*)
54d1c879 2678 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2679 libgloss_dir=sparc
a0da8069
NN
2680 ;;
2681 sparc-*-sunos4*)
54d1c879 2682 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2683 if test x${is_cross_compiler} != xno ; then
2684 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2685 else
2686 use_gnu_ld=no
2687 fi
2688 ;;
e3c770b1 2689 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2690 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2691 ;;
a0da8069
NN
2692 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2693 ;;
2694 v810-*-*)
54d1c879 2695 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2696 ;;
2697 v850-*-*)
54d1c879 2698 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2699 ;;
2700 v850e-*-*)
54d1c879 2701 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2702 ;;
2703 v850ea-*-*)
54d1c879 2704 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2705 ;;
2706 vax-*-vms)
54d1c879 2707 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2708 ;;
2709 vax-*-*)
54d1c879 2710 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2711 ;;
8b66833e 2712 xtensa*-*-*)
54d1c879 2713 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2714 ;;
a0da8069 2715 ip2k-*-*)
54d1c879 2716 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2717 ;;
29383458 2718 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
2719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2720 ;;
2721 *-*-lynxos*)
54d1c879 2722 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2723 ;;
a0da8069 2724 *-*-*)
54d1c879 2725 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2726 ;;
2727esac
252b5132 2728
a0da8069
NN
2729# If we aren't building newlib, then don't build libgloss, since libgloss
2730# depends upon some newlib header files.
2731case "${noconfigdirs}" in
2732 *target-libgloss*) ;;
2733 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2734esac
2735
a0da8069
NN
2736# Work in distributions that contain no compiler tools, like Autoconf.
2737tentative_cc=""
2738host_makefile_frag=/dev/null
2739if test -d ${srcdir}/config ; then
2740case "${host}" in
2741 m68k-hp-hpux*)
2742 # Avoid "too much defining" errors from HPUX compiler.
2743 tentative_cc="cc -Wp,-H256000"
2744 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2745 # If it's HP/UX ar, this should be harmless.
2746 RANLIB="ar ts"
2747 ;;
2748 m68k-apollo-sysv*)
2749 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2750 ;;
2751 m68k-apollo-bsd*)
2752 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2753 # chokes on bfd, the compiler won't let you assign integers to enums, and
2754 # other problems. Defining CC to gcc is a questionable way to say "don't use
2755 # the apollo compiler" (the preferred version of GCC could be called cc,
2756 # or whatever), but I'm not sure leaving CC as cc is any better...
2757 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2758 # Used to have BISON=yacc.
2759 tentative_cc=gcc
2760 ;;
2761 m88k-dg-dgux*)
2762 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2763 ;;
2764 m88k-harris-cxux*)
2765 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2766 tentative_cc="cc -Xa"
2767 host_makefile_frag="config/mh-cxux"
2768 ;;
2769 m88k-motorola-sysv*)
2770 ;;
2771 mips*-dec-ultrix*)
2772 tentative_cc="cc -Wf,-XNg1000"
2773 host_makefile_frag="config/mh-decstation"
2774 ;;
2775 mips*-nec-sysv4*)
2776 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2777 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2778 host_makefile_frag="config/mh-necv4"
2779 ;;
2780 mips*-sgi-irix4*)
2781 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2782 # environment. Also bump switch table size so that cp-parse will
2783 # compile. Bump string length limit so linker builds.
2784 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2785 ;;
2786 mips*-*-sysv4*)
2787 host_makefile_frag="config/mh-sysv4"
2788 ;;
2789 mips*-*-sysv*)
2790 # This is for a MIPS running RISC/os 4.52C.
2791
2792 # This is needed for GDB, but needs to be in the top-level make because
2793 # if a library is compiled with the bsd headers and gets linked with the
2794 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2795 # a different size).
2796 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2797 # known except to select the sysv environment. Could we use /proc instead?
2798 # These "sysv environments" and "bsd environments" often end up being a pain.
2799 #
2800 # This is not part of CFLAGS because perhaps not all C compilers have this
2801 # option.
2802 tentative_cc="cc -systype sysv"
2803 ;;
2804 i370-ibm-opened*)
2805 tentative_cc="c89"
2806 ;;
ec11bdc6 2807 i[3456789]86-*-sysv5*)
a0da8069
NN
2808 host_makefile_frag="config/mh-sysv5"
2809 ;;
ec11bdc6 2810 i[3456789]86-*-dgux*)
a0da8069
NN
2811 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2812 host_makefile_frag="config/mh-dgux386"
2813 ;;
ec11bdc6 2814 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2815 # The MetaWare compiler will generate a copyright message unless you
2816 # turn it off by adding the -Hnocopyr flag.
2817 tentative_cc="cc -Hnocopyr"
2818 ;;
ec11bdc6 2819 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2820 # for an NCR 3000 (i486/SVR4) system.
2821 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2822 # This compiler not only emits obnoxious copyright messages every time
2823 # you run it, but it chokes and dies on a whole bunch of GNU source
2824 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2825 tentative_cc="/usr/ccs/ATT/cc"
2826 host_makefile_frag="config/mh-ncr3000"
2827 ;;
ec11bdc6 2828 i[3456789]86-*-sco3.2v5*)
a0da8069 2829 ;;
ec11bdc6 2830 i[3456789]86-*-sco*)
a0da8069
NN
2831 # The native C compiler botches some simple uses of const. Unfortunately,
2832 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2833 tentative_cc="cc -Dconst="
2834 host_makefile_frag="config/mh-sco"
2835 ;;
ec11bdc6 2836 i[3456789]86-*-udk*)
a0da8069
NN
2837 host_makefile_frag="config/mh-sysv5"
2838 ;;
ec11bdc6 2839 i[3456789]86-*-solaris2*)
a0da8069
NN
2840 host_makefile_frag="config/mh-sysv4"
2841 ;;
ec11bdc6 2842 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2843 host_makefile_frag="config/mh-djgpp"
2844 ;;
2845 *-cygwin*)
e33b51a6
NC
2846
2847echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2848echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2849echo a >cygwin-cat-check
2850if test `cat cygwin-cat-check` == a ; then
8ade07e9 2851 rm cygwin-cat-check
e33b51a6
NC
2852 echo "$as_me:$LINENO: result: yes" >&5
2853echo "${ECHO_T}yes" >&6
2854else
8ade07e9 2855 rm cygwin-cat-check
e33b51a6
NC
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2859 Please either mount the build directory in binary mode or run the following
2860 commands before running any configure script:
2861set -o igncr
2862export SHELLOPTS
2863 " >&5
2864echo "$as_me: error: The cat command does not ignore carriage return characters.
2865 Please either mount the build directory in binary mode or run the following
2866 commands before running any configure script:
2867set -o igncr
2868export SHELLOPTS
2869 " >&2;}
2870 { (exit 1); exit 1; }; }
2871fi
e33b51a6 2872
a0da8069
NN
2873 host_makefile_frag="config/mh-cygwin"
2874 ;;
8a1599ab 2875 *-mingw*)
84e7906e 2876 host_makefile_frag="config/mh-mingw"
2d1e8239 2877 ;;
a0da8069
NN
2878 *-interix*)
2879 host_makefile_frag="config/mh-interix"
2880 ;;
2881 vax-*-ultrix2*)
2882 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2883 tentative_cc=gcc
2884 ;;
2885 *-*-solaris2*)
2886 host_makefile_frag="config/mh-solaris"
2887 ;;
2888 m68k-sun-sunos*)
2889 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2890 # without overflowing the jump tables (-J says to use a 32 bit table)
2891 tentative_cc="cc -J"
2892 ;;
da888c87 2893 hppa*-hp-hpux10*)
a0da8069 2894 tentative_cc="cc -Wp,-H256000"
da888c87 2895 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2896 ;;
da888c87
PB
2897 hppa*-hp-hpux* | hppa*-*-hiux*)
2898 tentative_cc="cc -Wp,-H256000"
2899 host_makefile_frag="config/mh-pa"
2900 ;;
2901 hppa*-*)
2902 host_makefile_frag="config/mh-pa"
2903 ;;
2904 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2905 tentative_cc="cc -Wp,-H256000"
2906 ;;
2907 rs6000-*-lynxos*)
2908 # /bin/cc is less than useful for our purposes. Always use GCC
2909 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2910 host_makefile_frag="config/mh-lynxrs6k"
2911 ;;
0df3d27f
PB
2912 powerpc-*-darwin*)
2913 host_makefile_frag="config/mh-ppc-darwin"
2914 ;;
f6d183c0
PB
2915 powerpc-*-aix*)
2916 host_makefile_frag="config/mh-ppc-aix"
2917 ;;
2918 rs6000-*-aix*)
2919 host_makefile_frag="config/mh-ppc-aix"
2920 ;;
a0da8069
NN
2921 *-*-lynxos*)
2922 # /bin/cc is less than useful for our purposes. Always use GCC
2923 tentative_cc="/bin/gcc"
2924 ;;
2925 *-*-sysv4*)
2926 host_makefile_frag="config/mh-sysv4"
2927 ;;
fe69863c
DD
2928 # This is placed last to prevent interfering with the cases above.
2929 i[3456789]86-*-*)
2930 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2931 host_makefile_frag="config/mh-x86omitfp"
2932 ;;
a0da8069
NN
2933esac
2934fi
2935
9e07f89d
NN
2936# If we aren't going to be using gcc, see if we can extract a definition
2937# of CC from the fragment.
2938# Actually, use the 'pre-extracted' version above.
2939if test -z "${CC}" && test "${build}" = "${host}" ; then
2940 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2941 found=
2942 for dir in $PATH; do
2943 test -z "$dir" && dir=.
2944 if test -f $dir/gcc; then
2945 found=yes
2946 break
2947 fi
2948 done
2949 IFS="$save_ifs"
2950 if test -z "${found}" && test -n "${tentative_cc}" ; then
2951 CC=$tentative_cc
2952 fi
2953fi
2954
2955if test "${build}" != "${host}" ; then
1576798e
PB
2956 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2957 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2958 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2959 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2960 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2961 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2962 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2963 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2964 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2965 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2966 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2967 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2968else
2969 AR_FOR_BUILD="\$(AR)"
2970 AS_FOR_BUILD="\$(AS)"
512b7dfb 2971 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2972 CXX_FOR_BUILD="\$(CXX)"
2973 GCJ_FOR_BUILD="\$(GCJ)"
2974 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2975 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2976 LD_FOR_BUILD="\$(LD)"
2977 NM_FOR_BUILD="\$(NM)"
2978 RANLIB_FOR_BUILD="\$(RANLIB)"
2979 WINDRES_FOR_BUILD="\$(WINDRES)"
2980 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2981fi
2982
2983ac_ext=c
c6b750e1
DJ
2984ac_cpp='$CPP $CPPFLAGS'
2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2990set dummy ${ac_tool_prefix}gcc; ac_word=$2
2991echo "$as_me:$LINENO: checking for $ac_word" >&5
2992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2993if test "${ac_cv_prog_CC+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010done
3011done
3012
3013fi
3014fi
3015CC=$ac_cv_prog_CC
3016if test -n "$CC"; then
3017 echo "$as_me:$LINENO: result: $CC" >&5
3018echo "${ECHO_T}$CC" >&6
3019else
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
3022fi
3023
3024fi
3025if test -z "$ac_cv_prog_CC"; then
3026 ac_ct_CC=$CC
6a9cf61e 3027 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3028set dummy gcc; ac_word=$2
c6b750e1
DJ
3029echo "$as_me:$LINENO: checking for $ac_word" >&5
3030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 if test -n "$ac_ct_CC"; then
3035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_ac_ct_CC="gcc"
3045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048done
3049done
3050
3051fi
3052fi
3053ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054if test -n "$ac_ct_CC"; then
3055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3056echo "${ECHO_T}$ac_ct_CC" >&6
3057else
3058 echo "$as_me:$LINENO: result: no" >&5
3059echo "${ECHO_T}no" >&6
3060fi
3061
3062 CC=$ac_ct_CC
3063else
3064 CC="$ac_cv_prog_CC"
3065fi
3066
3067if test -z "$CC"; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3070set dummy ${ac_tool_prefix}cc; ac_word=$2
3071echo "$as_me:$LINENO: checking for $ac_word" >&5
3072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073if test "${ac_cv_prog_CC+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3075else
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3078else
c6b750e1
DJ
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_CC="${ac_tool_prefix}cc"
3087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090done
3091done
3092
9e07f89d
NN
3093fi
3094fi
c6b750e1 3095CC=$ac_cv_prog_CC
9e07f89d 3096if test -n "$CC"; then
c6b750e1
DJ
3097 echo "$as_me:$LINENO: result: $CC" >&5
3098echo "${ECHO_T}$CC" >&6
9e07f89d 3099else
c6b750e1
DJ
3100 echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
9e07f89d
NN
3102fi
3103
c6b750e1
DJ
3104fi
3105if test -z "$ac_cv_prog_CC"; then
3106 ac_ct_CC=$CC
3107 # Extract the first word of "cc", so it can be a program name with args.
3108set dummy cc; ac_word=$2
3109echo "$as_me:$LINENO: checking for $ac_word" >&5
3110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114 if test -n "$ac_ct_CC"; then
3115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_ac_ct_CC="cc"
3125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128done
3129done
3130
3131fi
3132fi
3133ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134if test -n "$ac_ct_CC"; then
3135 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3136echo "${ECHO_T}$ac_ct_CC" >&6
3137else
3138 echo "$as_me:$LINENO: result: no" >&5
3139echo "${ECHO_T}no" >&6
3140fi
3141
3142 CC=$ac_ct_CC
3143else
3144 CC="$ac_cv_prog_CC"
3145fi
3146
3147fi
9e07f89d
NN
3148if test -z "$CC"; then
3149 # Extract the first word of "cc", so it can be a program name with args.
3150set dummy cc; ac_word=$2
c6b750e1
DJ
3151echo "$as_me:$LINENO: checking for $ac_word" >&5
3152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153if test "${ac_cv_prog_CC+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3155else
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158else
9e07f89d 3159 ac_prog_rejected=no
c6b750e1
DJ
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3168 ac_prog_rejected=yes
3169 continue
3170 fi
3171 ac_cv_prog_CC="cc"
3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175done
3176done
3177
9e07f89d
NN
3178if test $ac_prog_rejected = yes; then
3179 # We found a bogon in the path, so make sure we never use it.
3180 set dummy $ac_cv_prog_CC
3181 shift
c6b750e1 3182 if test $# != 0; then
9e07f89d
NN
3183 # We chose a different compiler from the bogus one.
3184 # However, it has the same basename, so the bogon will be chosen
3185 # first if we set CC to just the basename; use the full file name.
3186 shift
c6b750e1 3187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3188 fi
3189fi
3190fi
3191fi
c6b750e1 3192CC=$ac_cv_prog_CC
9e07f89d 3193if test -n "$CC"; then
c6b750e1
DJ
3194 echo "$as_me:$LINENO: result: $CC" >&5
3195echo "${ECHO_T}$CC" >&6
9e07f89d 3196else
c6b750e1
DJ
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
9e07f89d
NN
3199fi
3200
c6b750e1
DJ
3201fi
3202if test -z "$CC"; then
3203 if test -n "$ac_tool_prefix"; then
3204 for ac_prog in cl
3205 do
3206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208echo "$as_me:$LINENO: checking for $ac_word" >&5
3209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210if test "${ac_cv_prog_CC+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3212else
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3215else
c6b750e1
DJ
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
376a0e54 3226 fi
c6b750e1
DJ
3227done
3228done
cac3d6c4 3229
c6b750e1
DJ
3230fi
3231fi
3232CC=$ac_cv_prog_CC
3233if test -n "$CC"; then
3234 echo "$as_me:$LINENO: result: $CC" >&5
3235echo "${ECHO_T}$CC" >&6
cac3d6c4 3236else
c6b750e1
DJ
3237 echo "$as_me:$LINENO: result: no" >&5
3238echo "${ECHO_T}no" >&6
9e07f89d 3239fi
cac3d6c4 3240
c6b750e1
DJ
3241 test -n "$CC" && break
3242 done
cac3d6c4 3243fi
c6b750e1
DJ
3244if test -z "$CC"; then
3245 ac_ct_CC=$CC
3246 for ac_prog in cl
3247do
3248 # Extract the first word of "$ac_prog", so it can be a program name with args.
3249set dummy $ac_prog; ac_word=$2
3250echo "$as_me:$LINENO: checking for $ac_word" >&5
3251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3252if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3254else
c6b750e1
DJ
3255 if test -n "$ac_ct_CC"; then
3256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3257else
c6b750e1
DJ
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259for as_dir in $PATH
3260do
3261 IFS=$as_save_IFS
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_ac_ct_CC="$ac_prog"
3266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 break 2
3268 fi
3269done
3270done
3271
cac3d6c4
CM
3272fi
3273fi
c6b750e1
DJ
3274ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275if test -n "$ac_ct_CC"; then
3276 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3277echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3278else
c6b750e1
DJ
3279 echo "$as_me:$LINENO: result: no" >&5
3280echo "${ECHO_T}no" >&6
cac3d6c4 3281fi
376a0e54 3282
c6b750e1
DJ
3283 test -n "$ac_ct_CC" && break
3284done
3285
3286 CC=$ac_ct_CC
3287fi
3288
3289fi
3290
3291
7a283e07
RW
3292test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3293echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3295See \`config.log' for more details." >&5
3296echo "$as_me: error: no acceptable C compiler found in \$PATH
3297See \`config.log' for more details." >&2;}
7a283e07 3298 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3299
3300# Provide some information about the compiler.
3301echo "$as_me:$LINENO:" \
3302 "checking for C compiler version" >&5
3303ac_compiler=`set X $ac_compile; echo $2`
3304{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3305 (eval $ac_compiler --version </dev/null >&5) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3309{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3310 (eval $ac_compiler -v </dev/null >&5) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }
3314{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3315 (eval $ac_compiler -V </dev/null >&5) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }
3319
3320cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326
3327int
3328main ()
3329{
3330
3331 ;
3332 return 0;
3333}
3334_ACEOF
3335ac_clean_files_save=$ac_clean_files
3336ac_clean_files="$ac_clean_files a.out a.exe b.out"
3337# Try to create an executable without -o first, disregard a.out.
3338# It will help us diagnose broken compilers, and finding out an intuition
3339# of exeext.
3340echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3341echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3342ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3344 (eval $ac_link_default) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; then
3348 # Find the output, starting from the most likely. This scheme is
3349# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3350# resort.
3351
3352# Be careful to initialize this variable, since it used to be cached.
3353# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3354ac_cv_exeext=
3355# b.out is created by i960 compilers.
3356for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3357do
3358 test -f "$ac_file" || continue
3359 case $ac_file in
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3361 ;;
3362 conftest.$ac_ext )
3363 # This is the source file.
3364 ;;
3365 [ab].out )
3366 # We found the default executable, but exeext='' is most
3367 # certainly right.
3368 break;;
3369 *.* )
3370 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371 # FIXME: I believe we export ac_cv_exeext for Libtool,
3372 # but it would be cool to find out if it's true. Does anybody
3373 # maintain Libtool? --akim.
3374 export ac_cv_exeext
3375 break;;
3376 * )
3377 break;;
3378 esac
3379done
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
7a283e07
RW
3384{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3385echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3386{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3387See \`config.log' for more details." >&5
3388echo "$as_me: error: C compiler cannot create executables
3389See \`config.log' for more details." >&2;}
7a283e07 3390 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3391fi
3392
3393ac_exeext=$ac_cv_exeext
3394echo "$as_me:$LINENO: result: $ac_file" >&5
3395echo "${ECHO_T}$ac_file" >&6
3396
3397# Check the compiler produces executables we can run. If not, either
3398# the compiler is broken, or we cross compile.
3399echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3400echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3401# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3402# If not cross compiling, check that we can run a simple program.
3403if test "$cross_compiling" != yes; then
3404 if { ac_try='./$ac_file'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 cross_compiling=no
3411 else
3412 if test "$cross_compiling" = maybe; then
3413 cross_compiling=yes
3414 else
7a283e07
RW
3415 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3416echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3418If you meant to cross compile, use \`--host'.
3419See \`config.log' for more details." >&5
3420echo "$as_me: error: cannot run C compiled programs.
3421If you meant to cross compile, use \`--host'.
3422See \`config.log' for more details." >&2;}
7a283e07 3423 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3424 fi
3425 fi
3426fi
3427echo "$as_me:$LINENO: result: yes" >&5
3428echo "${ECHO_T}yes" >&6
3429
3430rm -f a.out a.exe conftest$ac_cv_exeext b.out
3431ac_clean_files=$ac_clean_files_save
3432# Check the compiler produces executables we can run. If not, either
3433# the compiler is broken, or we cross compile.
3434echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3435echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3436echo "$as_me:$LINENO: result: $cross_compiling" >&5
3437echo "${ECHO_T}$cross_compiling" >&6
3438
3439echo "$as_me:$LINENO: checking for suffix of executables" >&5
3440echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3442 (eval $ac_link) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; then
3446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3447# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3448# work properly (i.e., refer to `conftest.exe'), while it won't with
3449# `rm'.
3450for ac_file in conftest.exe conftest conftest.*; do
3451 test -f "$ac_file" || continue
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455 export ac_cv_exeext
3456 break;;
3457 * ) break;;
3458 esac
3459done
3460else
7a283e07
RW
3461 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3462echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3464See \`config.log' for more details." >&5
3465echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3466See \`config.log' for more details." >&2;}
7a283e07 3467 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3468fi
3469
3470rm -f conftest$ac_cv_exeext
3471echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3472echo "${ECHO_T}$ac_cv_exeext" >&6
3473
3474rm -f conftest.$ac_ext
3475EXEEXT=$ac_cv_exeext
3476ac_exeext=$EXEEXT
3477echo "$as_me:$LINENO: checking for suffix of object files" >&5
3478echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3479if test "${ac_cv_objext+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482 cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h. */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h. */
3488
3489int
3490main ()
3491{
3492
3493 ;
3494 return 0;
3495}
3496_ACEOF
3497rm -f conftest.o conftest.obj
3498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; then
3503 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3506 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507 break;;
3508 esac
3509done
cac3d6c4 3510else
c6b750e1
DJ
3511 echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
7a283e07
RW
3514{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3515echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3516{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3517See \`config.log' for more details." >&5
3518echo "$as_me: error: cannot compute suffix of object files: cannot compile
3519See \`config.log' for more details." >&2;}
7a283e07 3520 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3521fi
3522
3523rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524fi
3525echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3526echo "${ECHO_T}$ac_cv_objext" >&6
3527OBJEXT=$ac_cv_objext
3528ac_objext=$OBJEXT
3529echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3530echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3531if test "${ac_cv_c_compiler_gnu+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540
3541int
3542main ()
3543{
3544#ifndef __GNUC__
3545 choke me
3546#endif
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
3552rm -f conftest.$ac_objext
3553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554 (eval $ac_compile) 2>conftest.er1
3555 ac_status=$?
3556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } &&
3561 { ac_try='test -z "$ac_c_werror_flag"
3562 || test ! -s conftest.err'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; } &&
3568 { ac_try='test -s conftest.$ac_objext'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3574 ac_compiler_gnu=yes
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579ac_compiler_gnu=no
3580fi
3581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3582ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583
3584fi
3585echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3586echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3587GCC=`test $ac_compiler_gnu = yes && echo yes`
3588ac_test_CFLAGS=${CFLAGS+set}
3589ac_save_CFLAGS=$CFLAGS
3590CFLAGS="-g"
3591echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3592echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3593if test "${ac_cv_prog_cc_g+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596 cat >conftest.$ac_ext <<_ACEOF
3597/* confdefs.h. */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h. */
3602
3603int
3604main ()
3605{
3606
3607 ;
3608 return 0;
3609}
3610_ACEOF
3611rm -f conftest.$ac_objext
3612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -z "$ac_c_werror_flag"
3621 || test ! -s conftest.err'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
9e07f89d
NN
3633 ac_cv_prog_cc_g=yes
3634else
c6b750e1
DJ
3635 echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3637
c6b750e1 3638ac_cv_prog_cc_g=no
376a0e54 3639fi
c6b750e1
DJ
3640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3641fi
3642echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3643echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3644if test "$ac_test_CFLAGS" = set; then
c6b750e1 3645 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3646elif test $ac_cv_prog_cc_g = yes; then
3647 if test "$GCC" = yes; then
3648 CFLAGS="-g -O2"
3649 else
3650 CFLAGS="-g"
3651 fi
3652else
3653 if test "$GCC" = yes; then
3654 CFLAGS="-O2"
3655 else
3656 CFLAGS=
3657 fi
3658fi
c6b750e1
DJ
3659echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3660echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3661if test "${ac_cv_prog_cc_stdc+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664 ac_cv_prog_cc_stdc=no
3665ac_save_CC=$CC
3666cat >conftest.$ac_ext <<_ACEOF
3667/* confdefs.h. */
3668_ACEOF
3669cat confdefs.h >>conftest.$ac_ext
3670cat >>conftest.$ac_ext <<_ACEOF
3671/* end confdefs.h. */
3672#include <stdarg.h>
3673#include <stdio.h>
3674#include <sys/types.h>
3675#include <sys/stat.h>
3676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3677struct buf { int x; };
3678FILE * (*rcsopen) (struct buf *, struct stat *, int);
3679static char *e (p, i)
3680 char **p;
3681 int i;
3682{
3683 return p[i];
3684}
3685static char *f (char * (*g) (char **, int), char **p, ...)
3686{
3687 char *s;
3688 va_list v;
3689 va_start (v,p);
3690 s = g (p, va_arg (v,int));
3691 va_end (v);
3692 return s;
3693}
3694
3695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3696 function prototypes and stuff, but not '\xHH' hex character constants.
3697 These don't provoke an error unfortunately, instead are silently treated
3698 as 'x'. The following induces an error, until -std1 is added to get
3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3700 array size at least. It's necessary to write '\x00'==0 to get something
3701 that's true only with -std1. */
3702int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3703
3704int test (int i, double x);
3705struct s1 {int (*f) (int a);};
3706struct s2 {int (*f) (double a);};
3707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708int argc;
3709char **argv;
3710int
3711main ()
3712{
3713return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 ;
3715 return 0;
3716}
3717_ACEOF
3718# Don't try gcc -ansi; that turns off useful extensions and
3719# breaks some systems' header files.
3720# AIX -qlanglvl=ansi
3721# Ultrix and OSF/1 -std1
3722# HP-UX 10.20 and later -Ae
3723# HP-UX older versions -Aa -D_HPUX_SOURCE
3724# SVR4 -Xc -D__EXTENSIONS__
3725for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726do
3727 CC="$ac_save_CC $ac_arg"
3728 rm -f conftest.$ac_objext
3729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try='test -z "$ac_c_werror_flag"
3738 || test ! -s conftest.err'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; } &&
3744 { ac_try='test -s conftest.$ac_objext'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 ac_cv_prog_cc_stdc=$ac_arg
3751break
3752else
3753 echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756fi
3757rm -f conftest.err conftest.$ac_objext
3758done
3759rm -f conftest.$ac_ext conftest.$ac_objext
3760CC=$ac_save_CC
3761
3762fi
3763
3764case "x$ac_cv_prog_cc_stdc" in
3765 x|xno)
3766 echo "$as_me:$LINENO: result: none needed" >&5
3767echo "${ECHO_T}none needed" >&6 ;;
3768 *)
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3770echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3771 CC="$CC $ac_cv_prog_cc_stdc" ;;
3772esac
3773
3774# Some people use a C++ compiler to compile C. Since we use `exit',
3775# in C++ we need to declare it. In case someone uses the same compiler
3776# for both compiling C and C++ we need to have the C++ compiler decide
3777# the declaration of exit, since it's the most demanding environment.
3778cat >conftest.$ac_ext <<_ACEOF
3779#ifndef __cplusplus
3780 choke me
3781#endif
3782_ACEOF
3783rm -f conftest.$ac_objext
3784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 for ac_declaration in \
3806 '' \
3807 'extern "C" void std::exit (int) throw (); using std::exit;' \
3808 'extern "C" void std::exit (int); using std::exit;' \
3809 'extern "C" void exit (int) throw ();' \
3810 'extern "C" void exit (int);' \
3811 'void exit (int);'
3812do
3813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h. */
3819$ac_declaration
3820#include <stdlib.h>
3821int
3822main ()
3823{
3824exit (42);
3825 ;
3826 return 0;
3827}
3828_ACEOF
3829rm -f conftest.$ac_objext
3830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 :
3852else
3853 echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856continue
3857fi
3858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h. */
3865$ac_declaration
3866int
3867main ()
3868{
3869exit (42);
3870 ;
3871 return 0;
3872}
3873_ACEOF
3874rm -f conftest.$ac_objext
3875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3876 (eval $ac_compile) 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 { ac_try='test -z "$ac_c_werror_flag"
3884 || test ! -s conftest.err'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 (eval $ac_try) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 break
3897else
3898 echo "$as_me: failed program was:" >&5
3899sed 's/^/| /' conftest.$ac_ext >&5
3900
3901fi
3902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3903done
3904rm -f conftest*
3905if test -n "$ac_declaration"; then
3906 echo '#ifdef __cplusplus' >>confdefs.h
3907 echo $ac_declaration >>confdefs.h
3908 echo '#endif' >>confdefs.h
3909fi
3910
3911else
3912 echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915fi
3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3922
18f6b6ee
PB
3923ac_ext=cc
3924ac_cpp='$CXXCPP $CPPFLAGS'
3925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3928if test -n "$ac_tool_prefix"; then
3929 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3930 do
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933echo "$as_me:$LINENO: checking for $ac_word" >&5
3934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3935if test "${ac_cv_prog_CXX+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938 if test -n "$CXX"; then
3939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953done
512b7dfb 3954
18f6b6ee
PB
3955fi
3956fi
3957CXX=$ac_cv_prog_CXX
3958if test -n "$CXX"; then
3959 echo "$as_me:$LINENO: result: $CXX" >&5
3960echo "${ECHO_T}$CXX" >&6
3961else
3962 echo "$as_me:$LINENO: result: no" >&5
3963echo "${ECHO_T}no" >&6
3964fi
3965
3966 test -n "$CXX" && break
3967 done
3968fi
3969if test -z "$CXX"; then
3970 ac_ct_CXX=$CXX
3971 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3972do
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974set dummy $ac_prog; ac_word=$2
3975echo "$as_me:$LINENO: checking for $ac_word" >&5
3976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980 if test -n "$ac_ct_CXX"; then
3981 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_ac_ct_CXX="$ac_prog"
3991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
512b7dfb 3993 fi
18f6b6ee
PB
3994done
3995done
512b7dfb 3996
18f6b6ee
PB
3997fi
3998fi
3999ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4000if test -n "$ac_ct_CXX"; then
4001 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4002echo "${ECHO_T}$ac_ct_CXX" >&6
4003else
4004 echo "$as_me:$LINENO: result: no" >&5
4005echo "${ECHO_T}no" >&6
4006fi
4007
4008 test -n "$ac_ct_CXX" && break
4009done
4010test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4011
4012 CXX=$ac_ct_CXX
4013fi
4014
4015
4016# Provide some information about the compiler.
4017echo "$as_me:$LINENO:" \
4018 "checking for C++ compiler version" >&5
4019ac_compiler=`set X $ac_compile; echo $2`
4020{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4021 (eval $ac_compiler --version </dev/null >&5) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }
4025{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4026 (eval $ac_compiler -v </dev/null >&5) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }
4030{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4031 (eval $ac_compiler -V </dev/null >&5) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }
4035
4036echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4037echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4038if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047
4048int
4049main ()
4050{
4051#ifndef __GNUC__
4052 choke me
4053#endif
4054
4055 ;
4056 return 0;
4057}
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_cxx_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_compiler_gnu=yes
4082else
4083 echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086ac_compiler_gnu=no
4087fi
4088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4090
4091fi
4092echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4093echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4094GXX=`test $ac_compiler_gnu = yes && echo yes`
4095ac_test_CXXFLAGS=${CXXFLAGS+set}
4096ac_save_CXXFLAGS=$CXXFLAGS
4097CXXFLAGS="-g"
4098echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4099echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4100if test "${ac_cv_prog_cxx_g+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109
4110int
4111main ()
4112{
4113
4114 ;
4115 return 0;
4116}
4117_ACEOF
4118rm -f conftest.$ac_objext
4119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_cxx_werror_flag"
4128 || test ! -s conftest.err'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 ac_cv_prog_cxx_g=yes
4141else
4142 echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145ac_cv_prog_cxx_g=no
4146fi
4147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4148fi
4149echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4150echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4151if test "$ac_test_CXXFLAGS" = set; then
4152 CXXFLAGS=$ac_save_CXXFLAGS
4153elif test $ac_cv_prog_cxx_g = yes; then
4154 if test "$GXX" = yes; then
4155 CXXFLAGS="-g -O2"
4156 else
4157 CXXFLAGS="-g"
4158 fi
4159else
4160 if test "$GXX" = yes; then
4161 CXXFLAGS="-O2"
4162 else
4163 CXXFLAGS=
4164 fi
4165fi
4166for ac_declaration in \
4167 '' \
4168 'extern "C" void std::exit (int) throw (); using std::exit;' \
4169 'extern "C" void std::exit (int); using std::exit;' \
4170 'extern "C" void exit (int) throw ();' \
4171 'extern "C" void exit (int);' \
4172 'void exit (int);'
4173do
4174 cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
4180$ac_declaration
4181#include <stdlib.h>
4182int
4183main ()
4184{
4185exit (42);
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190rm -f conftest.$ac_objext
4191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_cxx_werror_flag"
4200 || test ! -s conftest.err'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 (eval $ac_try) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 :
4213else
4214 echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
4217continue
4218fi
4219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226$ac_declaration
4227int
4228main ()
4229{
4230exit (42);
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235rm -f conftest.$ac_objext
4236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -z "$ac_cxx_werror_flag"
4245 || test ! -s conftest.err'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; } &&
4251 { ac_try='test -s conftest.$ac_objext'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 break
4258else
4259 echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262fi
4263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4264done
4265rm -f conftest*
4266if test -n "$ac_declaration"; then
4267 echo '#ifdef __cplusplus' >>confdefs.h
4268 echo $ac_declaration >>confdefs.h
4269 echo '#endif' >>confdefs.h
4270fi
4271
4272ac_ext=c
4273ac_cpp='$CPP $CPPFLAGS'
4274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277
4278
4279# We must set the default linker to the linker used by gcc for the correct
4280# operation of libtool. If LD is not defined and we are using gcc, try to
4281# set the LD default to the ld used by gcc.
4282if test -z "$LD"; then
4283 if test "$GCC" = yes; then
4284 case $build in
4285 *-*-mingw*)
4286 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4287 *)
4288 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4289 esac
4290 case $gcc_prog_ld in
4291 # Accept absolute paths.
4292 [\\/]* | [A-Za-z]:[\\/]*)
4293 LD="$gcc_prog_ld" ;;
4294 esac
4295 fi
512b7dfb
PB
4296fi
4297
4298
4299
4300
c6b750e1 4301if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4302 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4303set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4304echo "$as_me:$LINENO: checking for $ac_word" >&5
4305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4306if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4307 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4308else
512b7dfb
PB
4309 if test -n "$GNATBIND"; then
4310 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4311else
c6b750e1
DJ
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4319 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4322 fi
4323done
4324done
4325
9e07f89d
NN
4326fi
4327fi
512b7dfb
PB
4328GNATBIND=$ac_cv_prog_GNATBIND
4329if test -n "$GNATBIND"; then
4330 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4331echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4332else
c6b750e1
DJ
4333 echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6
9e07f89d
NN
4335fi
4336
c6b750e1 4337fi
512b7dfb
PB
4338if test -z "$ac_cv_prog_GNATBIND"; then
4339 ac_ct_GNATBIND=$GNATBIND
4340 # Extract the first word of "gnatbind", so it can be a program name with args.
4341set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4342echo "$as_me:$LINENO: checking for $ac_word" >&5
4343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4344if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4345 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4346else
512b7dfb
PB
4347 if test -n "$ac_ct_GNATBIND"; then
4348 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4349else
c6b750e1
DJ
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4357 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361done
4362done
4363
512b7dfb 4364 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4365fi
4366fi
512b7dfb
PB
4367ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4368if test -n "$ac_ct_GNATBIND"; then
4369 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4370echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4371else
c6b750e1
DJ
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
9e07f89d
NN
4374fi
4375
512b7dfb 4376 GNATBIND=$ac_ct_GNATBIND
24ff9987 4377else
512b7dfb 4378 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4379fi
4380
7df2cd5d 4381if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4382 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4383set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4384echo "$as_me:$LINENO: checking for $ac_word" >&5
4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4386if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
512b7dfb
PB
4389 if test -n "$GNATMAKE"; then
4390 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4399 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403done
4404done
4405
4406fi
4407fi
512b7dfb
PB
4408GNATMAKE=$ac_cv_prog_GNATMAKE
4409if test -n "$GNATMAKE"; then
4410 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4411echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4412else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415fi
4416
4417fi
512b7dfb
PB
4418if test -z "$ac_cv_prog_GNATMAKE"; then
4419 ac_ct_GNATMAKE=$GNATMAKE
4420 # Extract the first word of "gnatmake", so it can be a program name with args.
4421set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4422echo "$as_me:$LINENO: checking for $ac_word" >&5
4423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4424if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
512b7dfb
PB
4427 if test -n "$ac_ct_GNATMAKE"; then
4428 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4437 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
4443
512b7dfb 4444 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4445fi
4446fi
512b7dfb
PB
4447ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4448if test -n "$ac_ct_GNATMAKE"; then
4449 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4450echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4451else
4452 echo "$as_me:$LINENO: result: no" >&5
4453echo "${ECHO_T}no" >&6
4454fi
4455
512b7dfb 4456 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4457else
512b7dfb 4458 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4459fi
4460
c6b750e1
DJ
4461echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4462echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4463if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4465else
4466 cat >conftest.adb <<EOF
4467procedure conftest is begin null; end conftest;
4468EOF
4469acx_cv_cc_gcc_supports_ada=no
4470# There is a bug in old released versions of GCC which causes the
4471# driver to exit successfully when the appropriate language module
4472# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4473# Therefore we must check for the error message as well as an
4474# unsuccessful exit.
b8908782
DD
4475# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4476# given a .adb file, but produce no object file. So we must check
4477# if an object file was really produced to guard against this.
9e07f89d 4478errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4479if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4480 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4481fi
4482rm -f conftest.*
4483fi
c6b750e1
DJ
4484echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4485echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4486
512b7dfb 4487if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4488 have_gnat=yes
4489else
4490 have_gnat=no
4491fi
4492
c6b750e1
DJ
4493echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4494echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4495if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4497else
4498 echo abfoo >t1
4499 echo cdfoo >t2
4500 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4501 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4502 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4503 :
4504 else
4505 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4506 fi
4507 fi
b8908782
DD
4508 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4509 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4510 :
b8908782
DD
4511 else
4512 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4513 fi
4514 fi
4515 rm t1 t2
4516
4517fi
c6b750e1
DJ
4518echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4519echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4520do_compare="$gcc_cv_prog_cmp_skip"
4521
4522
9e07f89d 4523
e8a5fa9c
RW
4524# See if we are building gcc with C++.
4525# Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
4526if test "${enable_build_with_cxx+set}" = set; then
4527 enableval="$enable_build_with_cxx"
4528 ENABLE_BUILD_WITH_CXX=$enableval
4529else
4530 ENABLE_BUILD_WITH_CXX=no
4531fi;
4532
4533# Check for GMP, MPFR and MPC
4b900473 4534gmplibs="-lmpfr -lgmp"
4b1cb4fe 4535gmpinc=
4b900473 4536have_gmp=no
e8a5fa9c
RW
4537mpclibs=-lmpc
4538mpcinc=
4539have_mpc=no
4540
4541# Specify a location for mpc
4542# check for this first so it ends up on the link line before mpfr.
4543
4544# Check whether --with-mpc or --without-mpc was given.
4545if test "${with_mpc+set}" = set; then
4546 withval="$with_mpc"
4547
4548fi;
4549
4550# Check whether --with-mpc_include or --without-mpc_include was given.
4551if test "${with_mpc_include+set}" = set; then
4552 withval="$with_mpc_include"
4553
4554fi;
4555
4556# Check whether --with-mpc_lib or --without-mpc_lib was given.
4557if test "${with_mpc_lib+set}" = set; then
4558 withval="$with_mpc_lib"
4559
4560fi;
4561
4562if test "x$with_mpc" != x; then
4563 mpclibs="-L$with_mpc/lib -lmpc"
4564 mpcinc="-I$with_mpc/include $mpcinc"
4565fi
4566if test "x$with_mpc_include" != x; then
4567 mpcinc="-I$with_mpc_include $mpcinc"
4568fi
4569if test "x$with_mpc_lib" != x; then
4570 mpclibs="-L$with_mpc_lib -lmpc"
4571fi
4572if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4573 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4574 mpcinc='-I$$s/mpc/src '"$mpcinc"
4575 # Do not test the mpc version. Assume that it is sufficient, since
4576 # it is in the source tree, and the library has not been built yet
4577 # but it would be included on the link line in the version check below
4578 # hence making the test fail.
4579 have_mpc=yes
4580fi
4b900473 4581
11b04d1f
DD
4582# Specify a location for mpfr
4583# check for this first so it ends up on the link line before gmp.
c6b750e1 4584
11b04d1f
DD
4585# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4586if test "${with_mpfr_dir+set}" = set; then
4587 withval="$with_mpfr_dir"
c6b750e1
DJ
4588 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4589Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4590echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4591Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4592 { (exit 1); exit 1; }; }
4593fi;
11b04d1f
DD
4594
4595
11b04d1f
DD
4596# Check whether --with-mpfr or --without-mpfr was given.
4597if test "${with_mpfr+set}" = set; then
4598 withval="$with_mpfr"
c6b750e1
DJ
4599
4600fi;
11b04d1f 4601
8a0d8a5c
PB
4602# Check whether --with-mpfr_include or --without-mpfr_include was given.
4603if test "${with_mpfr_include+set}" = set; then
4604 withval="$with_mpfr_include"
c6b750e1
DJ
4605
4606fi;
8a0d8a5c
PB
4607
4608# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4609if test "${with_mpfr_lib+set}" = set; then
4610 withval="$with_mpfr_lib"
8a0d8a5c 4611
c6b750e1 4612fi;
11b04d1f
DD
4613
4614if test "x$with_mpfr" != x; then
4615 gmplibs="-L$with_mpfr/lib $gmplibs"
4616 gmpinc="-I$with_mpfr/include"
4617fi
8a0d8a5c
PB
4618if test "x$with_mpfr_include" != x; then
4619 gmpinc="-I$with_mpfr_include"
4620fi
4621if test "x$with_mpfr_lib" != x; then
4622 gmplibs="-L$with_mpfr_lib $gmplibs"
4623fi
4b900473
PB
4624if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4625 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4626 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
e8a5fa9c 4627 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4b900473
PB
4628 # Do not test the mpfr version. Assume that it is sufficient, since
4629 # it is in the source tree, and the library has not been built yet
4630 # but it would be included on the link line in the version check below
4631 # hence making the test fail.
4632 have_gmp=yes
4633fi
11b04d1f 4634
4b1cb4fe 4635# Specify a location for gmp
c6b750e1 4636
4b1cb4fe
DD
4637# Check whether --with-gmp-dir or --without-gmp-dir was given.
4638if test "${with_gmp_dir+set}" = set; then
4639 withval="$with_gmp_dir"
c6b750e1
DJ
4640 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4641Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4642echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4643Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4644 { (exit 1); exit 1; }; }
4645fi;
4b1cb4fe
DD
4646
4647
4b1cb4fe
DD
4648# Check whether --with-gmp or --without-gmp was given.
4649if test "${with_gmp+set}" = set; then
4650 withval="$with_gmp"
c6b750e1
DJ
4651
4652fi;
4b1cb4fe 4653
8a0d8a5c
PB
4654# Check whether --with-gmp_include or --without-gmp_include was given.
4655if test "${with_gmp_include+set}" = set; then
4656 withval="$with_gmp_include"
c6b750e1
DJ
4657
4658fi;
8a0d8a5c
PB
4659
4660# Check whether --with-gmp_lib or --without-gmp_lib was given.
4661if test "${with_gmp_lib+set}" = set; then
4662 withval="$with_gmp_lib"
8a0d8a5c 4663
c6b750e1 4664fi;
8a0d8a5c 4665
4b1cb4fe 4666
11b04d1f
DD
4667if test "x$with_gmp" != x; then
4668 gmplibs="-L$with_gmp/lib $gmplibs"
4669 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4670fi
8a0d8a5c
PB
4671if test "x$with_gmp_include" != x; then
4672 gmpinc="-I$with_gmp_include $gmpinc"
4673fi
4674if test "x$with_gmp_lib" != x; then
4675 gmplibs="-L$with_gmp_lib $gmplibs"
4676fi
4b900473
PB
4677if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4678 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4679 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
e8a5fa9c
RW
4680 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
4681 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
4682 # Do not test the gmp version. Assume that it is sufficient, since
4683 # it is in the source tree, and the library has not been built yet
4684 # but it would be included on the link line in the version check below
4685 # hence making the test fail.
4686 have_gmp=yes
4687fi
4b1cb4fe 4688
ceb92e78 4689if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4690 have_gmp=yes
4691 saved_CFLAGS="$CFLAGS"
4692 CFLAGS="$CFLAGS $gmpinc"
4693 # Check GMP actually works
c6b750e1
DJ
4694 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4695echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4696
4697cat >conftest.$ac_ext <<_ACEOF
4698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
4b1cb4fe 4703#include "gmp.h"
c6b750e1
DJ
4704int
4705main ()
4706{
4b1cb4fe 4707
ef699244 4708 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
4709 choke me
4710 #endif
c6b750e1
DJ
4711
4712 ;
4713 return 0;
4714}
4715_ACEOF
4716rm -f conftest.$ac_objext
4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 echo "$as_me:$LINENO: result: yes" >&5
4739echo "${ECHO_T}yes" >&6
4740else
4741 echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
4744echo "$as_me:$LINENO: result: no" >&5
4745echo "${ECHO_T}no" >&6; have_gmp=no
4746fi
4747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4748
e8a5fa9c 4749 # If we have GMP, check the MPFR version.
4b900473 4750 if test x"$have_gmp" = xyes; then
c6b750e1
DJ
4751 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4752echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
9b134994 4759#include <gmp.h>
4b900473 4760 #include <mpfr.h>
c6b750e1
DJ
4761int
4762main ()
4763{
9b134994 4764
ef699244 4765 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
4766 choke me
4767 #endif
c6b750e1
DJ
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
e8a5fa9c
RW
4773rm -f conftest.$ac_objext
4774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
c6b750e1
DJ
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
e8a5fa9c 4789 { ac_try='test -s conftest.$ac_objext'
c6b750e1
DJ
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 cat >conftest.$ac_ext <<_ACEOF
4796/* confdefs.h. */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h. */
4b1cb4fe 4801#include <gmp.h>
4b900473 4802 #include <mpfr.h>
c6b750e1
DJ
4803int
4804main ()
4805{
9dbaa842 4806
e28c595f 4807 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
4808 choke me
4809 #endif
e8a5fa9c
RW
4810
4811 ;
4812 return 0;
4813}
4814_ACEOF
4815rm -f conftest.$ac_objext
4816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4818 ac_status=$?
4819 grep -v '^ *+' conftest.er1 >conftest.err
4820 rm -f conftest.er1
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -z "$ac_c_werror_flag"
4825 || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 echo "$as_me:$LINENO: result: yes" >&5
4838echo "${ECHO_T}yes" >&6
4839else
4840 echo "$as_me: failed program was:" >&5
4841sed 's/^/| /' conftest.$ac_ext >&5
4842
4843echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4844echo "${ECHO_T}buggy but acceptable" >&6
4845fi
4846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4847else
4848 echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6; have_gmp=no
4853fi
4854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4855 fi
4856
4857 # Check for the MPC header version.
4858 if test x"$have_mpc" != xyes ; then
4859 CFLAGS="$CFLAGS $mpcinc"
4860 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4861echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4862 cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h. */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h. */
4868#include <mpc.h>
4869int
4870main ()
4871{
4872
4873 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4874 choke me
4875 #endif
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 echo "$as_me:$LINENO: result: yes" >&5
4904echo "${ECHO_T}yes" >&6; have_mpc=maybe
4905else
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909echo "$as_me:$LINENO: result: no" >&5
4910echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4911fi
4912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 fi
4914
4915 # Now check the MPFR library.
4916 if test x"$have_gmp" = xyes; then
4917 saved_LIBS="$LIBS"
4918 LIBS="$LIBS $gmplibs"
4919 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4920echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4921 cat >conftest.$ac_ext <<_ACEOF
4922/* confdefs.h. */
4923_ACEOF
4924cat confdefs.h >>conftest.$ac_ext
4925cat >>conftest.$ac_ext <<_ACEOF
4926/* end confdefs.h. */
4927#include <gmp.h>
4928 #include <mpfr.h>
4929int
4930main ()
4931{
4932
4933 mpfr_t n;
4934 mpfr_t x;
4935 int t;
4936 mpfr_init (n);
4937 mpfr_init (x);
4938 mpfr_atan2 (n, n, x, GMP_RNDN);
4939 mpfr_erfc (n, x, GMP_RNDN);
4940 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4941
4942 ;
4943 return 0;
4944}
4945_ACEOF
4946rm -f conftest.$ac_objext conftest$ac_exeext
4947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948 (eval $ac_link) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 echo "$as_me:$LINENO: result: yes" >&5
4969echo "${ECHO_T}yes" >&6
4970else
4971 echo "$as_me: failed program was:" >&5
4972sed 's/^/| /' conftest.$ac_ext >&5
4973
e8a5fa9c
RW
4974echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6; have_gmp=no
c6b750e1
DJ
4976fi
4977rm -f conftest.err conftest.$ac_objext \
4978 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
4979 LIBS="$saved_LIBS"
4980 fi
4981
4982 if test x"$have_mpc" = xmaybe; then
4983 saved_LIBS="$LIBS"
4984 LIBS="$LIBS $mpclibs $gmplibs"
4985 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4986echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4987 cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h. */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h. */
4993#include <mpc.h>
4994int
4995main ()
4996{
4997
4998 mpc_t n;
4999 mpc_init2 (n, 53);
5000 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5001 mpc_sin (n, n, MPC_RNDNN);
5002 mpc_cos (n, n, MPC_RNDNN);
5003 mpc_tan (n, n, MPC_RNDNN);
5004 mpc_sinh (n, n, MPC_RNDNN);
5005 mpc_cosh (n, n, MPC_RNDNN);
5006 mpc_tanh (n, n, MPC_RNDNN);
5007 mpc_exp (n, n, MPC_RNDNN);
5008 mpc_log (n, n, MPC_RNDNN);
5009 mpc_sqrt (n, n, MPC_RNDNN);
5010 mpc_proj (n, n, MPC_RNDNN);
5011 mpc_neg (n, n, MPC_RNDNN);
5012 mpc_sqr (n, n, MPC_RNDNN);
5013 mpc_clear (n);
5014
5015 ;
5016 return 0;
5017}
5018_ACEOF
5019rm -f conftest.$ac_objext conftest$ac_exeext
5020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5021 (eval $ac_link) 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest$ac_exeext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 echo "$as_me:$LINENO: result: yes" >&5
5042echo "${ECHO_T}yes" >&6; have_mpc=yes
c6b750e1
DJ
5043else
5044 echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047echo "$as_me:$LINENO: result: no" >&5
e8a5fa9c 5048echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
c6b750e1
DJ
5049fi
5050rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c 5052 LIBS="$saved_LIBS"
4b900473 5053 fi
e8a5fa9c 5054
4b900473 5055 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5056
4b900473 5057 if test x$have_gmp != xyes; then
ef699244 5058 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
c6b750e1
DJ
5059Try the --with-gmp and/or --with-mpfr options to specify their locations.
5060Copies of these libraries' source code can be found at their respective
5061hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5062See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5063If you obtained GMP and/or MPFR from a vendor distribution package, make
5064sure that you have installed both the libraries and the header files.
5065They may be located in separate packages." >&5
ef699244 5066echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
5067Try the --with-gmp and/or --with-mpfr options to specify their locations.
5068Copies of these libraries' source code can be found at their respective
5069hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
5070See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5071If you obtained GMP and/or MPFR from a vendor distribution package, make
5072sure that you have installed both the libraries and the header files.
c6b750e1
DJ
5073They may be located in separate packages." >&2;}
5074 { (exit 1); exit 1; }; }
4b900473 5075 fi
9dbaa842
DD
5076fi
5077
e8a5fa9c
RW
5078if test x$have_mpc != xyes ; then
5079 mpcinc=
5080 mpclibs=
5081fi
5082
5083gmpinc="$mpcinc $gmpinc"
5084gmplibs="$mpclibs $gmplibs"
5085
5086# Flags needed for both GMP, MPFR and/or MPC.
5087
5088
5089
4b1cb4fe
DD
5090
5091
5092
29383458
JM
5093# Allow host libstdc++ to be specified for static linking with PPL.
5094
5095# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5096if test "${with_host_libstdcxx+set}" = set; then
5097 withval="$with_host_libstdcxx"
5098
5099fi;
5100
5101case $with_host_libstdcxx in
5102 no|yes)
5103 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5104echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5105 { (exit 1); exit 1; }; }
5106 ;;
5107esac
e28c595f 5108
e8a5fa9c
RW
5109# Linker flags to use for stage1 or when not boostrapping.
5110
5111# Check whether --with-stage1-ldflags or --without-stage1-ldflags was given.
5112if test "${with_stage1_ldflags+set}" = set; then
5113 withval="$with_stage1_ldflags"
5114 if test "$withval" = "no" -o "$withval" = "yes"; then
5115 stage1_ldflags=
5116 else
5117 stage1_ldflags=$withval
5118 fi
5119else
5120 stage1_ldflags=
5121fi;
5122
5123
5124# Libraries to use for stage1 or when not bootstrapping.
5125
5126# Check whether --with-stage1-libs or --without-stage1-libs was given.
5127if test "${with_stage1_libs+set}" = set; then
5128 withval="$with_stage1_libs"
5129 if test "$withval" = "no" -o "$withval" = "yes"; then
5130 stage1_libs=
5131 else
5132 stage1_libs=$withval
5133 fi
5134else
5135 stage1_libs=$with_host_libstdcxx
5136fi;
5137
5138
5139# Linker flags to use for stage2 and later builds.
5140
5141# Check whether --with-boot-ldflags or --without-boot-ldflags was given.
5142if test "${with_boot_ldflags+set}" = set; then
5143 withval="$with_boot_ldflags"
5144 if test "$withval" = "no" -o "$withval" = "yes"; then
5145 poststage1_ldflags=
5146 else
5147 poststage1_ldflags=$withval
5148 fi
5149else
5150 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5151 poststage1_ldflags=-static-libstdc++
5152 else
5153 poststage1_ldflags=
5154 fi
5155fi;
5156
5157
5158# Libraries to use for stage2 and later builds. This defaults to the
5159# argument passed to --with-host-libstdcxx.
5160
5161# Check whether --with-boot-libs or --without-boot-libs was given.
5162if test "${with_boot_libs+set}" = set; then
5163 withval="$with_boot_libs"
5164 if test "$withval" = "no" -o "$withval" = "yes"; then
5165 poststage1_libs=
5166 else
5167 poststage1_libs=$withval
5168 fi
5169else
5170 poststage1_libs=$with_host_libstdcxx
5171fi;
5172
5173
e28c595f
JM
5174# Check for PPL
5175ppl_major_version=0
5176ppl_minor_version=10
e8a5fa9c 5177ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5178pplinc=
5179
5180
5181# Check whether --with-ppl or --without-ppl was given.
5182if test "${with_ppl+set}" = set; then
5183 withval="$with_ppl"
5184
e8a5fa9c
RW
5185else
5186 with_ppl=no
e28c595f
JM
5187fi;
5188
5189# Check whether --with-ppl_include or --without-ppl_include was given.
5190if test "${with_ppl_include+set}" = set; then
5191 withval="$with_ppl_include"
5192
5193fi;
5194
5195# Check whether --with-ppl_lib or --without-ppl_lib was given.
5196if test "${with_ppl_lib+set}" = set; then
5197 withval="$with_ppl_lib"
5198
5199fi;
5200
29383458
JM
5201case $with_ppl in
5202 no)
5203 ppllibs=
5204 ;;
5205 *)
e8a5fa9c 5206 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458
JM
5207 pplinc="-I$with_ppl/include $pplinc"
5208 LIBS="$ppllibs $LIBS"
5209 ;;
5210esac
e28c595f
JM
5211if test "x$with_ppl_include" != x; then
5212 pplinc="-I$with_ppl_include $pplinc"
5213fi
5214if test "x$with_ppl_lib" != x; then
e8a5fa9c 5215 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5216 LIBS="$ppllibs $LIBS"
5217fi
5218if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
e8a5fa9c 5219 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
e28c595f
JM
5220 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5221 LIBS="$ppllibs $LIBS"
5222fi
5223
5224# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5225if test "${enable_ppl_version_check+set}" = set; then
5226 enableval="$enable_ppl_version_check"
5227 ENABLE_PPL_CHECK=$enableval
5228else
5229 ENABLE_PPL_CHECK=yes
5230fi;
5231
5232if test "${ENABLE_PPL_CHECK}" = "yes"; then
5233 saved_CFLAGS="$CFLAGS"
5234 CFLAGS="$CFLAGS $pplinc $gmpinc"
5235 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5236echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
5237 cat >conftest.$ac_ext <<_ACEOF
5238/* confdefs.h. */
5239_ACEOF
5240cat confdefs.h >>conftest.$ac_ext
5241cat >>conftest.$ac_ext <<_ACEOF
5242/* end confdefs.h. */
5243#include "ppl_c.h"
5244int
5245main ()
5246{
5247
5248 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5249 choke me
5250 #endif
5251
5252 ;
5253 return 0;
5254}
5255_ACEOF
5256rm -f conftest.$ac_objext
5257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279echo "${ECHO_T}yes" >&6
5280else
5281 echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
5286fi
5287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5288 CFLAGS="$saved_CFLAGS"
5289fi
5290
5291# Flags needed for PPL
5292
5293
5294
5295
5296# Check for CLOOG
5297clooglibs=" -lcloog "
5298clooginc=" -DCLOOG_PPL_BACKEND "
5299
5300
5301# Check whether --with-cloog or --without-cloog was given.
5302if test "${with_cloog+set}" = set; then
5303 withval="$with_cloog"
5304
e8a5fa9c
RW
5305else
5306 with_cloog=no
e28c595f
JM
5307fi;
5308
5309# Check whether --with-cloog_include or --without-cloog_include was given.
5310if test "${with_cloog_include+set}" = set; then
5311 withval="$with_cloog_include"
5312
5313fi;
5314
5315# Check whether --with-cloog_lib or --without-cloog_lib was given.
5316if test "${with_cloog_lib+set}" = set; then
5317 withval="$with_cloog_lib"
5318
5319fi;
5320
29383458
JM
5321case $with_cloog in
5322 no)
5323 clooglibs=
5324 clooginc=
5325 ;;
5326 *)
5327 clooglibs="-L$with_cloog/lib -lcloog"
5328 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5329 LIBS="$clooglibs $LIBS"
5330 ;;
5331esac
e28c595f
JM
5332if test "x$with_cloog_include" != x; then
5333 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5334fi
5335if test "x$with_cloog_lib" != x; then
5336 clooglibs="-L$with_cloog_lib -lcloog"
5337 LIBS="$clooglibs $LIBS"
5338fi
5339if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5340 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5341 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5342 LIBS="$clooglibs $LIBS"
5343fi
5344
5345# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5346if test "${enable_cloog_version_check+set}" = set; then
5347 enableval="$enable_cloog_version_check"
5348 ENABLE_CLOOG_CHECK=$enableval
5349else
5350 ENABLE_CLOOG_CHECK=yes
5351fi;
5352
5353if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5354 saved_CFLAGS="$CFLAGS"
5355 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5356 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5357echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359/* confdefs.h. */
5360_ACEOF
5361cat confdefs.h >>conftest.$ac_ext
5362cat >>conftest.$ac_ext <<_ACEOF
5363/* end confdefs.h. */
5364#include "cloog/cloog.h"
5365int
5366main ()
5367{
5368
5369 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5370 choke me
5371 #endif
5372
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377rm -f conftest.$ac_objext
5378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -z "$ac_c_werror_flag"
5387 || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5407fi
5408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5409 CFLAGS="$saved_CFLAGS"
5410fi
5411
5412# Flags needed for CLOOG
5413
5414
5415
5416
947f426e 5417# By default, C is the only stage 1 language.
9b134994 5418stage1_languages=,c,
1d39f329 5419
e8a5fa9c
RW
5420# Target libraries that we bootstrap.
5421bootstrap_target_libs=,target-libgcc,
5422
9e07f89d
NN
5423# Figure out what language subdirectories are present.
5424# Look if the user specified --enable-languages="..."; if not, use
5425# the environment variable $LANGUAGES if defined. $LANGUAGES might
5426# go away some day.
5427# NB: embedded tabs in this IF block -- do not untabify
5428if test -d ${srcdir}/gcc; then
5429 if test x"${enable_languages+set}" != xset; then
5430 if test x"${LANGUAGES+set}" = xset; then
5431 enable_languages="${LANGUAGES}"
5432 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5433 else
5434 enable_languages=all
5435 fi
5436 else
5437 if test x"${enable_languages}" = x ||
5438 test x"${enable_languages}" = xyes;
5439 then
5440 echo configure.in: --enable-languages needs at least one language argument 1>&2
5441 exit 1
5442 fi
5443 fi
5444 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5445
096f7d00
DE
5446 # 'f95' is the old name for the 'fortran' language. We issue a warning
5447 # and make the substitution.
5448 case ,${enable_languages}, in
5449 *,f95,*)
5450 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5451 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5452 ;;
5453 esac
5454
9e07f89d
NN
5455 # First scan to see if an enabled language requires some other language.
5456 # We assume that a given config-lang.in will list all the language
5457 # front ends it requires, even if some are required indirectly.
5458 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5459 case ${lang_frag} in
5460 ..) ;;
5461 # The odd quoting in the next line works around
5462 # an apparent bug in bash 1.12 on linux.
5463 ${srcdir}/gcc/[*]/config-lang.in) ;;
5464 *)
5465 # From the config-lang.in, get $language, $lang_requires
5466 language=
5467 lang_requires=
5468 . ${lang_frag}
5469 for other in ${lang_requires} ; do
5470 case ,${enable_languages}, in
5471 *,$other,*) ;;
5472 *,all,*) ;;
5473 *,$language,*)
5474 echo " \`$other' language required by \`$language'; enabling" 1>&2
5475 enable_languages="${enable_languages},${other}"
5476 ;;
5477 esac
5478 done
5479 ;;
5480 esac
5481 done
5482
9b134994 5483 new_enable_languages=,c,
9e07f89d 5484 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5485 potential_languages=,c,
9e07f89d
NN
5486
5487 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5488 case ${lang_frag} in
5489 ..) ;;
5490 # The odd quoting in the next line works around
5491 # an apparent bug in bash 1.12 on linux.
5492 ${srcdir}/gcc/[*]/config-lang.in) ;;
5493 *)
c6b750e1 5494 # From the config-lang.in, get $language, $target_libs,
1d39f329 5495 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5496 language=
5497 target_libs=
5498 lang_dirs=
64ce424c 5499 subdir_requires=
9b134994
PB
5500 boot_language=no
5501 build_by_default=yes
9e07f89d 5502 . ${lang_frag}
9b134994
PB
5503 if test x${language} = x; then
5504 echo "${lang_frag} doesn't set \$language." 1>&2
5505 exit 1
5506 fi
5507
e8a5fa9c
RW
5508 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5509 boot_language=yes
5510 fi
5511
9b134994
PB
5512 case ,${enable_languages}, in
5513 *,${language},*)
9e07f89d
NN
5514 # Language was explicitly selected; include it.
5515 add_this_lang=yes
5516 ;;
9b134994
PB
5517 *,all,*)
5518 # 'all' was selected, select it if it is a default language
5519 add_this_lang=${build_by_default}
9e07f89d
NN
5520 ;;
5521 *)
5522 add_this_lang=no
5523 ;;
5524 esac
4b1cb4fe 5525
64ce424c 5526 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5527 for i in $subdir_requires; do
3d3adb43 5528 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5529 case ,${enable_languages}, in
5530 *,${language},*)
5531 # Specifically requested language; tell them.
c6b750e1
DJ
5532 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5533echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5534 { (exit 1); exit 1; }; }
64ce424c
PB
5535 ;;
5536 *)
5537 # Silently disable.
9b134994 5538 add_this_lang=unsupported
64ce424c
PB
5539 ;;
5540 esac
5541 done
5542
9b134994
PB
5543 # Disable Ada if no preexisting GNAT is available.
5544 case ,${enable_languages},:${language}:${have_gnat} in
5545 *,${language},*:ada:no)
5546 # Specifically requested language; tell them.
c6b750e1
DJ
5547 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5548echo "$as_me: error: GNAT is required to build $language" >&2;}
5549 { (exit 1); exit 1; }; }
9b134994
PB
5550 ;;
5551 *:ada:no)
5552 # Silently disable.
5553 add_this_lang=unsupported
5554 ;;
5555 esac
5556
59f7ec45
HPN
5557 # Disable a language that is unsupported by the target.
5558 case " $unsupported_languages " in
5559 *" $language "*)
9b134994 5560 add_this_lang=unsupported
59f7ec45
HPN
5561 ;;
5562 esac
5563
4b1cb4fe 5564 case $add_this_lang in
9b134994 5565 unsupported)
9e07f89d 5566 # Remove language-dependent dirs.
1d39f329
NN
5567 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5568 ;;
9b134994
PB
5569 no)
5570 # Remove language-dependent dirs; still show language as supported.
5571 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5572 potential_languages="${potential_languages}${language},"
5573 ;;
5574 yes)
5575 new_enable_languages="${new_enable_languages}${language},"
5576 potential_languages="${potential_languages}${language},"
1d39f329
NN
5577 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5578 case ${boot_language} in
5579 yes)
4fa63067 5580 # Add to (comma-separated) list of stage 1 languages.
9b134994 5581 stage1_languages="${stage1_languages}${language},"
e8a5fa9c
RW
5582 # We need to bootstrap any supporting libraries.
5583 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
5584 ;;
5585 esac
5586 ;;
9e07f89d
NN
5587 esac
5588 ;;
5589 esac
5590 done
5591
9b134994
PB
5592 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5593if test "${enable_stage1_languages+set}" = set; then
5594 enableval="$enable_stage1_languages"
5595 case ,${enable_stage1_languages}, in
5596 ,no,|,,)
5597 # Set it to something that will have no effect in the loop below
5598 enable_stage1_languages=c ;;
5599 ,yes,)
5600 enable_stage1_languages=`echo $new_enable_languages | \
5601 sed -e "s/^,//" -e "s/,$//" ` ;;
5602 *,all,*)
5603 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5604 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5605 esac
5606
5607 # Add "good" languages from enable_stage1_languages to stage1_languages,
5608 # while "bad" languages go in missing_languages. Leave no duplicates.
5609 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5610 case $potential_languages in
5611 *,$i,*)
5612 case $stage1_languages in
5613 *,$i,*) ;;
5614 *) stage1_languages="$stage1_languages$i," ;;
5615 esac ;;
5616 *)
5617 case $missing_languages in
5618 *,$i,*) ;;
5619 *) missing_languages="$missing_languages$i," ;;
5620 esac ;;
5621 esac
5622 done
c6b750e1 5623fi;
9b134994
PB
5624
5625 # Remove leading/trailing commas that were added for simplicity
5626 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5627 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5628 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5629 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5630
9e07f89d 5631 if test "x$missing_languages" != x; then
c6b750e1 5632 { { echo "$as_me:$LINENO: error:
27258dd4 5633The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5634Supported languages are: ${potential_languages}" >&5
5635echo "$as_me: error:
5636The following requested languages could not be built: ${missing_languages}
5637Supported languages are: ${potential_languages}" >&2;}
5638 { (exit 1); exit 1; }; }
9e07f89d 5639 fi
9e07f89d
NN
5640 if test "x$new_enable_languages" != "x$enable_languages"; then
5641 echo The following languages will be built: ${new_enable_languages}
9b134994 5642 enable_languages="$new_enable_languages"
9e07f89d 5643 fi
9b134994 5644
c6b750e1 5645
81ec575a 5646 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5647fi
5648
a6df5a19
PB
5649# Handle --disable-<component> generically.
5650for dir in $configdirs $build_configdirs $target_configdirs ; do
5651 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5652 varname=`echo $dirname | sed -e s/+/_/g`
5653 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5654 noconfigdirs="$noconfigdirs $dir"
5655 fi
5656done
5657
4f0ef2d8
CD
5658# Check for Boehm's garbage collector
5659# Check whether --enable-objc-gc or --disable-objc-gc was given.
5660if test "${enable_objc_gc+set}" = set; then
5661 enableval="$enable_objc_gc"
5662 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5663 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5664 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5665echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5666 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5667 ;;
5668esac
c6b750e1 5669fi;
4f0ef2d8
CD
5670
5671# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5672case ,${enable_languages},:${enable_objc_gc} in
5673 *,objc,*:yes)
4f0ef2d8
CD
5674 # Keep target-boehm-gc if requested for Objective-C.
5675 ;;
4f0ef2d8 5676 *)
d42c4017
DA
5677 # Otherwise remove target-boehm-gc depending on target-libjava.
5678 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5679 noconfigdirs="$noconfigdirs target-boehm-gc"
5680 fi
4f0ef2d8
CD
5681 ;;
5682esac
5683
caeba88f
AL
5684# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5685# $build_configdirs and $target_configdirs.
9e07f89d
NN
5686# If we have the source for $noconfigdirs entries, add them to $notsupp.
5687
5688notsupp=""
5689for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5690 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5691 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5692 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5693 if test -r $srcdir/$dirname/configure ; then
5694 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5695 true
5696 else
5697 notsupp="$notsupp $dir"
5698 fi
5699 fi
5700 fi
caeba88f
AL
5701 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5702 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5703 if test -r $srcdir/$dirname/configure ; then
5704 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5705 true
5706 else
5707 notsupp="$notsupp $dir"
5708 fi
5709 fi
5710 fi
9e07f89d
NN
5711 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5712 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5713 if test -r $srcdir/$dirname/configure ; then
5714 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5715 true
5716 else
5717 notsupp="$notsupp $dir"
5718 fi
5719 fi
5720 fi
5721done
5722
5723# Sometimes the tools are distributed with libiberty but with no other
5724# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5725# Don't let libgcc imply libiberty either.
9e07f89d 5726if test -n "${target_configdirs}" ; then
f86e35b8 5727 libgcc=
9e07f89d
NN
5728 others=
5729 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5730 if test "$i" = "libgcc"; then
5731 libgcc=target-libgcc
5732 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5733 if test -r $srcdir/$i/configure ; then
5734 others=yes;
5735 break;
5736 fi
5737 fi
5738 done
5739 if test -z "${others}" ; then
f86e35b8 5740 target_configdirs=$libgcc
9e07f89d
NN
5741 fi
5742fi
5743
5744# Quietly strip out all directories which aren't configurable in this tree.
5745# This relies on all configurable subdirectories being autoconfiscated, which
5746# is now the case.
6a9cf61e
PB
5747build_configdirs_all="$build_configdirs"
5748build_configdirs=
5749for i in ${build_configdirs_all} ; do
c6b750e1 5750 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5751 if test -f ${srcdir}/$j/configure ; then
5752 build_configdirs="${build_configdirs} $i"
5753 fi
5754done
5755
9e07f89d
NN
5756configdirs_all="$configdirs"
5757configdirs=
5758for i in ${configdirs_all} ; do
5759 if test -f ${srcdir}/$i/configure ; then
5760 configdirs="${configdirs} $i"
5761 fi
5762done
6a9cf61e 5763
9e07f89d
NN
5764target_configdirs_all="$target_configdirs"
5765target_configdirs=
5766for i in ${target_configdirs_all} ; do
c6b750e1 5767 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5768 if test -f ${srcdir}/$j/configure ; then
5769 target_configdirs="${target_configdirs} $i"
5770 fi
5771done
5772
5773# Produce a warning message for the subdirs we can't configure.
5774# This isn't especially interesting in the Cygnus tree, but in the individual
5775# FSF releases, it's important to let people know when their machine isn't
5776# supported by the one or two programs in a package.
5777
5778if test -n "${notsupp}" && test -z "${norecursion}" ; then
5779 # If $appdirs is non-empty, at least one of those directories must still
5780 # be configured, or we error out. (E.g., if the gas release supports a
5781 # specified target in some subdirs but not the gas subdir, we shouldn't
5782 # pretend that all is well.)
5783 if test -n "$appdirs" ; then
5784 for dir in $appdirs ; do
5785 if test -r $dir/Makefile.in ; then
5786 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5787 appdirs=""
5788 break
5789 fi
6a9cf61e 5790 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5791 appdirs=""
5792 break
5793 fi
5794 fi
5795 done
5796 if test -n "$appdirs" ; then
5797 echo "*** This configuration is not supported by this package." 1>&2
5798 exit 1
5799 fi
5800 fi
5801 # Okay, some application will build, or we don't care to check. Still
5802 # notify of subdirs not getting built.
5803 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5804 echo " ${notsupp}" 1>&2
5805 echo " (Any other directories should still work fine.)" 1>&2
5806fi
5807
5808case "$host" in
5809 *msdosdjgpp*)
5810 enable_gdbtk=no ;;
5811esac
5812
18f6b6ee
PB
5813# To find our prefix, in gcc_cv_tool_prefix.
5814
5815# The user is always right.
5816if test "${PATH_SEPARATOR+set}" != set; then
5817 echo "#! /bin/sh" >conf$$.sh
5818 echo "exit 0" >>conf$$.sh
5819 chmod +x conf$$.sh
5820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5821 PATH_SEPARATOR=';'
5822 else
5823 PATH_SEPARATOR=:
5824 fi
5825 rm -f conf$$.sh
5826fi
5827
5828
5829
5830if test "x$exec_prefix" = xNONE; then
5831 if test "x$prefix" = xNONE; then
5832 gcc_cv_tool_prefix=$ac_default_prefix
5833 else
5834 gcc_cv_tool_prefix=$prefix
5835 fi
5836else
5837 gcc_cv_tool_prefix=$exec_prefix
5838fi
5839
5840# If there is no compiler in the tree, use the PATH only. In any
5841# case, if there is no compiler in the tree nobody should use
5842# AS_FOR_TARGET and LD_FOR_TARGET.
5843if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5844 gcc_version=`cat $srcdir/gcc/BASE-VER`
5845 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5846 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5847 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5848 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5849 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5850 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5851else
5852 gcc_cv_tool_dirs=
5853fi
5854
5855if test x$build = x$target && test -n "$md_exec_prefix"; then
5856 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5857fi
5858
5859
5860
9e07f89d
NN
5861copy_dirs=
5862
c6b750e1 5863
a19b6204
MM
5864# Check whether --with-build-sysroot or --without-build-sysroot was given.
5865if test "${with_build_sysroot+set}" = set; then
5866 withval="$with_build_sysroot"
5867 if test x"$withval" != x ; then
5868 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5869 fi
5870else
5871 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5872fi;
a19b6204
MM
5873
5874
8a6ee3ab
JM
5875
5876# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5877if test "${with_debug_prefix_map+set}" = set; then
5878 withval="$with_debug_prefix_map"
5879 if test x"$withval" != x; then
5880 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5881 for debug_map in $withval; do
5882 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5883 done
5884 fi
5885else
5886 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5887fi;
5888
5889
7f6ef0c0
PB
5890# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5891# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5892# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5893# We want to ensure that TARGET libraries (which we know are built with
5894# gcc) are built with "-O2 -g", so include those options when setting
5895# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5896if test "x$CFLAGS_FOR_TARGET" = x; then
5897 CFLAGS_FOR_TARGET=$CFLAGS
5898 case " $CFLAGS " in
5899 *" -O2 "*) ;;
5900 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5901 esac
5902 case " $CFLAGS " in
5903 *" -g "* | *" -g3 "*) ;;
5904 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5905 esac
5906fi
5907
5908
5909if test "x$CXXFLAGS_FOR_TARGET" = x; then
5910 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5911 case " $CXXFLAGS " in
5912 *" -O2 "*) ;;
5913 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5914 esac
5915 case " $CXXFLAGS " in
5916 *" -g "* | *" -g3 "*) ;;
5917 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5918 esac
5919fi
5920
5921
9e07f89d
NN
5922# Handle --with-headers=XXX. If the value is not "yes", the contents of
5923# the named directory are copied to $(tooldir)/sys-include.
5924if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5925 if test x${is_cross_compiler} = xno ; then
5926 echo 1>&2 '***' --with-headers is only supported when cross compiling
5927 exit 1
5928 fi
5929 if test x"${with_headers}" != xyes ; then
18f6b6ee 5930 x=${gcc_cv_tool_prefix}
c6b750e1 5931 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5932 fi
5933fi
5934
5935# Handle --with-libs=XXX. If the value is not "yes", the contents of
5936# the name directories are copied to $(tooldir)/lib. Multiple directories
5937# are permitted.
5938if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5939 if test x${is_cross_compiler} = xno ; then
5940 echo 1>&2 '***' --with-libs is only supported when cross compiling
5941 exit 1
5942 fi
5943 if test x"${with_libs}" != xyes ; then
5944 # Copy the libraries in reverse order, so that files in the first named
5945 # library override files in subsequent libraries.
18f6b6ee 5946 x=${gcc_cv_tool_prefix}
9e07f89d 5947 for l in ${with_libs}; do
c6b750e1 5948 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5949 done
5950 fi
5951fi
5952
2429c060
PB
5953# Set with_gnu_as and with_gnu_ld as appropriate.
5954#
5955# This is done by determining whether or not the appropriate directory
5956# is available, and by checking whether or not specific configurations
5957# have requested that this magic not happen.
c6b750e1
DJ
5958#
5959# The command line options always override the explicit settings in
2429c060
PB
5960# configure.in, and the settings in configure.in override this magic.
5961#
c6b750e1 5962# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5963# want to do that, then you should use the --without-gnu-as and
5964# --without-gnu-ld options for the configure script.
5965
5966if test x${use_gnu_as} = x &&
5967 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5968 with_gnu_as=yes
5969 extra_host_args="$extra_host_args --with-gnu-as"
5970fi
5971
5972if test x${use_gnu_ld} = x &&
93f9b408 5973 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5974 with_gnu_ld=yes
5975 extra_host_args="$extra_host_args --with-gnu-ld"
5976fi
5977
5978# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5979# can detect this case.
5980
5981if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5982 with_newlib=yes
5983 extra_host_args="$extra_host_args --with-newlib"
5984fi
5985
9e07f89d
NN
5986# Handle ${copy_dirs}
5987set fnord ${copy_dirs}
5988shift
5989while test $# != 0 ; do
5990 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5991 :
5992 else
5993 echo Copying $1 to $2
5994
5995 # Use the install script to create the directory and all required
5996 # parent directories.
5997 if test -d $2 ; then
5998 :
5999 else
6000 echo >config.temp
6001 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6002 fi
6003
6004 # Copy the directory, assuming we have tar.
6005 # FIXME: Should we use B in the second tar? Not all systems support it.
6006 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6007
6008 # It is the responsibility of the user to correctly adjust all
6009 # symlinks. If somebody can figure out how to handle them correctly
6010 # here, feel free to add the code.
6011
6012 echo $1 > $2/COPIED
6013 fi
6014 shift; shift
6015done
6016
2429c060
PB
6017# Determine a target-dependent exec_prefix that the installed
6018# gcc will search in. Keep this list sorted by triplet, with
6019# the *-*-osname triplets last.
6020md_exec_prefix=
6021case "${target}" in
6022 alpha*-*-*vms*)
6023 md_exec_prefix=/gnu/lib/gcc-lib
6024 ;;
521ec477 6025 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6026 md_exec_prefix=/dev/env/DJDIR/bin
6027 ;;
521ec477 6028 i[34567]86-*-sco3.2v5*)
2429c060
PB
6029 if test $with_gnu_as = yes; then
6030 md_exec_prefix=/usr/gnu/bin
6031 else
6032 md_exec_prefix=/usr/ccs/bin/elf
6033 fi
6034 ;;
6035
6036 mn10300-*-* | \
6037 powerpc-*-chorusos* | \
6038 powerpc*-*-eabi* | \
6039 powerpc*-*-sysv* | \
6040 powerpc*-*-kaos* | \
6041 s390x-ibm-tpf*)
6042 md_exec_prefix=/usr/ccs/bin
6043 ;;
6044 sparc64-*-elf*)
6045 ;;
6046 v850*-*-*)
6047 md_exec_prefix=/usr/ccs/bin
6048 ;;
8b66833e 6049 xtensa*-*-elf*)
2429c060
PB
6050 ;;
6051
6052 *-*-beos* | \
6053 *-*-elf* | \
6054 *-*-hpux* | \
6055 *-*-netware* | \
6056 *-*-nto-qnx* | \
6057 *-*-rtems* | \
6058 *-*-solaris2* | \
521ec477 6059 *-*-sysv[45]* | \
2429c060
PB
6060 *-*-vxworks* | \
6061 *-wrs-windiss)
6062 md_exec_prefix=/usr/ccs/bin
6063 ;;
6064esac
6065
a0da8069
NN
6066extra_arflags_for_target=
6067extra_nmflags_for_target=
6068extra_ranlibflags_for_target=
6069target_makefile_frag=/dev/null
6070case "${target}" in
4e206d7e
DB
6071 mep*-*-*)
6072 target_makefile_frag="config/mt-mep"
6073 ;;
77d7106f
AM
6074 spu-*-*)
6075 target_makefile_frag="config/mt-spu"
6076 ;;
429acdec
RS
6077 mips*-sde-elf*)
6078 target_makefile_frag="config/mt-sde"
6079 ;;
f3b1e08e
RS
6080 mipsisa*-*-elfoabi*)
6081 target_makefile_frag="config/mt-mips-elfoabi"
6082 ;;
e7c8859c
RS
6083 mips*-*-*linux* | mips*-*-gnu*)
6084 target_makefile_frag="config/mt-mips-gnu"
6085 ;;
2a3124ca 6086 *-*-netware*)
a0da8069
NN
6087 target_makefile_frag="config/mt-netware"
6088 ;;
29383458 6089 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6090 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6091 ;;
6092 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6093 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6094 # commands to handle both 32-bit and 64-bit objects. These flags are
6095 # harmless if we're using GNU nm or ar.
6096 extra_arflags_for_target=" -X32_64"
6097 extra_nmflags_for_target=" -B -X32_64"
6098 ;;
6099 *-*-darwin*)
6100 # ranlib from Darwin requires the -c flag to look at common symbols.
6101 extra_ranlibflags_for_target=" -c"
6102 ;;
6103 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6104 target_makefile_frag="config/mt-wince"
6105 ;;
6106esac
6107
6108alphaieee_frag=/dev/null
6109case $target in
6110 alpha*-*-*)
6111 # This just makes sure to use the -mieee option to build target libs.
6112 # This should probably be set individually by each library.
6113 alphaieee_frag="config/mt-alphaieee"
6114 ;;
6115esac
6116
6117# If --enable-target-optspace always use -Os instead of -O2 to build
6118# the target libraries, similarly if it is not specified, use -Os
6119# on selected platforms.
6120ospace_frag=/dev/null
6121case "${enable_target_optspace}:${target}" in
6122 yes:*)
6123 ospace_frag="config/mt-ospace"
6124 ;;
6125 :d30v-*)
6126 ospace_frag="config/mt-d30v"
6127 ;;
6128 :m32r-* | :d10v-* | :fr30-*)
6129 ospace_frag="config/mt-ospace"
6130 ;;
6131 no:* | :*)
6132 ;;
6133 *)
6134 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6135 ;;
6136esac
6137
a0da8069
NN
6138# Default to using --with-stabs for certain targets.
6139if test x${with_stabs} = x ; then
6140 case "${target}" in
e31d1ea3 6141 mips*-*-irix[56]*)
a0da8069
NN
6142 ;;
6143 mips*-*-* | alpha*-*-osf*)
6144 with_stabs=yes;
6145 extra_host_args="${extra_host_args} --with-stabs"
6146 ;;
6147 esac
6148fi
6149
6150# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6151# them automatically.
6152case "${host}" in
c6b750e1 6153 hppa*64*-*-hpux11*)
a0da8069
NN
6154 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6155 ;;
6156esac
6157
a0da8069
NN
6158# Some systems (e.g., one of the i386-aix systems the gas testers are
6159# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6160tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6161build_tooldir=${tooldir}
6162
a0da8069
NN
6163# Create a .gdbinit file which runs the one in srcdir
6164# and tells GDB to look there for source files.
6165
6166if test -r ${srcdir}/.gdbinit ; then
6167 case ${srcdir} in
6168 .) ;;
6169 *) cat > ./.gdbinit <<EOF
6170# ${NO_EDIT}
6171dir ${srcdir}
6172dir .
6173source ${srcdir}/.gdbinit
6174EOF
6175 ;;
6176 esac
6177fi
6178
a0da8069
NN
6179# Make sure that the compiler is able to generate an executable. If it
6180# can't, we are probably in trouble. We don't care whether we can run the
6181# executable--we might be using a cross compiler--we only care whether it
6182# can be created. At this point the main configure script has set CC.
6183we_are_ok=no
6184echo "int main () { return 0; }" > conftest.c
6185${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6186if test $? = 0 ; then
6187 if test -s conftest || test -s conftest.exe ; then
6188 we_are_ok=yes
6189 fi
c6b750e1 6190fi
a0da8069
NN
6191case $we_are_ok in
6192 no)
6193 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6194 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6195 rm -f conftest*
6196 exit 1
6197 ;;
6198esac
6199rm -f conftest*
6200
6201# The Solaris /usr/ucb/cc compiler does not appear to work.
6202case "${host}" in
6203 sparc-sun-solaris2*)
6204 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6205 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6206 could_use=
6207 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6208 if test -d /opt/cygnus/bin ; then
6209 if test "$could_use" = "" ; then
6210 could_use="/opt/cygnus/bin"
6211 else
6212 could_use="$could_use or /opt/cygnus/bin"
6213 fi
6214 fi
6215 if test "$could_use" = "" ; then
6216 echo "Warning: compilation may fail because you're using"
6217 echo "/usr/ucb/cc. You should change your PATH or CC "
6218 echo "variable and rerun configure."
6219 else
6220 echo "Warning: compilation may fail because you're using"
6221 echo "/usr/ucb/cc, when you should use the C compiler from"
6222 echo "$could_use. You should change your"
6223 echo "PATH or CC variable and rerun configure."
6224 fi
6225 fi
6226 ;;
6227esac
6228
3bbd2f8f 6229# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6230case "${host}" in
6231 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6232 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6233 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6234 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6235esac
6236
3bbd2f8f 6237# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6238# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6239# built executables to PATH.
3bbd2f8f
AL
6240if test "$RPATH_ENVVAR" = PATH; then
6241 GCC_SHLIB_SUBDIR=/shlib
6242else
6243 GCC_SHLIB_SUBDIR=
6244fi
6245
a0da8069
NN
6246# Record target_configdirs and the configure arguments for target and
6247# build configuration in Makefile.
6248target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6249build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6250
a0da8069
NN
6251# Determine whether gdb needs tk/tcl or not.
6252# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6253# and in that case we want gdb to be built without tk. Ugh!
6254# In fact I believe gdb is the *only* package directly dependent on tk,
6255# so we should be able to put the 'maybe's in unconditionally and
6256# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6257# 100% sure that that's safe though.
c180f501 6258
675c6968 6259gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6260case "$enable_gdbtk" in
6261 no)
6262 GDB_TK="" ;;
c180f501
AC
6263 yes)
6264 GDB_TK="${gdb_tk}" ;;
a0da8069 6265 *)
c180f501
AC
6266 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6267 # distro. Eventually someone will fix this and move Insight, nee
6268 # gdbtk to a separate directory.
6269 if test -d ${srcdir}/gdb/gdbtk ; then
6270 GDB_TK="${gdb_tk}"
6271 else
6272 GDB_TK=""
6273 fi
6274 ;;
a0da8069 6275esac
907be67c
DJ
6276CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6277INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6278
6bd3dfaa 6279# Strip out unwanted targets.
dd12c3a8
NN
6280
6281# While at that, we remove Makefiles if we were started for recursive
6282# configuration, so that the top-level Makefile reconfigures them,
6283# like we used to do when configure itself was recursive.
dd12c3a8 6284
6bd3dfaa
PB
6285# Loop over modules. $extrasub must be used with care, limiting as
6286# much as possible the usage of range addresses. That's because autoconf
6287# splits the sed script to overcome limits in the number of commands,
6288# and relying on carefully-timed sed passes may turn out to be very hard
6289# to maintain later. In this particular case, you just have to be careful
6290# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6291
319cab08
PB
6292# Check whether --enable-bootstrap or --disable-bootstrap was given.
6293if test "${enable_bootstrap+set}" = set; then
6294 enableval="$enable_bootstrap"
c6b750e1 6295
319cab08 6296else
9cb3fa6f 6297 enable_bootstrap=default
c6b750e1 6298fi;
319cab08 6299
9cb3fa6f
PB
6300# Issue errors and warnings for invalid/strange bootstrap combinations.
6301case "$configdirs" in
6302 *gcc*) have_compiler=yes ;;
6303 *) have_compiler=no ;;
6304esac
6305
6306case "$have_compiler:$host:$target:$enable_bootstrap" in
6307 *:*:*:no) ;;
6308
0aed8855 6309 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6310 # and we are in a native configuration.
6311 yes:$build:$build:default)
0aed8855 6312 enable_bootstrap=yes ;;
9cb3fa6f
PB
6313
6314 *:*:*:default)
6315 enable_bootstrap=no ;;
6316
6317 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6318 yes:$build:$build:yes)
9cb3fa6f
PB
6319 ;;
6320
6321 # Other configurations, but we have a compiler. Assume the user knows
6322 # what he's doing.
80911fe1 6323 yes:*:*:yes)
c6b750e1
DJ
6324 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6325echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6326 ;;
6327
6328 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6329 no:*:*:yes)
c6b750e1
DJ
6330 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6331echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6332 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
6333
6334 # Fail if wrong command line
6335 *)
c6b750e1
DJ
6336 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6337echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6338 { (exit 1); exit 1; }; }
9cb3fa6f
PB
6339 ;;
6340esac
6341
6342# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
6343case "$enable_bootstrap" in
6344 yes)
498d4a71 6345 bootstrap_suffix=bootstrap ;;
319cab08 6346 no)
498d4a71 6347 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
6348esac
6349
6a9cf61e 6350for module in ${build_configdirs} ; do
498d4a71
CF
6351 if test -z "${no_recursion}" \
6352 && test -f ${build_subdir}/${module}/Makefile; then
6353 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6354 rm -f ${build_subdir}/${module}/Makefile
6355 fi
6356 extrasub="$extrasub
6357/^@if build-$module\$/d
6358/^@endif build-$module\$/d
6359/^@if build-$module-$bootstrap_suffix\$/d
6360/^@endif build-$module-$bootstrap_suffix\$/d"
6361done
6362for module in ${configdirs} ; do
80911fe1 6363 if test -z "${no_recursion}"; then
8cf39b1b 6364 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6365 if test -f ${file}; then
6366 echo 1>&2 "*** removing ${file} to force reconfigure"
6367 rm -f ${file}
6368 fi
6369 done
498d4a71
CF
6370 fi
6371 extrasub="$extrasub
6372/^@if $module\$/d
6373/^@endif $module\$/d
6374/^@if $module-$bootstrap_suffix\$/d
6375/^@endif $module-$bootstrap_suffix\$/d"
6376done
6377for module in ${target_configdirs} ; do
6378 if test -z "${no_recursion}" \
6379 && test -f ${target_subdir}/${module}/Makefile; then
6380 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6381 rm -f ${target_subdir}/${module}/Makefile
6382 fi
e8a5fa9c
RW
6383
6384 # We only bootstrap target libraries listed in bootstrap_target_libs.
6385 case $bootstrap_target_libs in
6386 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6387 *) target_bootstrap_suffix=no-bootstrap ;;
6388 esac
6389
498d4a71
CF
6390 extrasub="$extrasub
6391/^@if target-$module\$/d
6392/^@endif target-$module\$/d
e8a5fa9c
RW
6393/^@if target-$module-$target_bootstrap_suffix\$/d
6394/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6395done
6396
6bd3dfaa
PB
6397extrasub="$extrasub
6398/^@if /,/^@endif /d"
a0da8069
NN
6399
6400# Create the serialization dependencies. This uses a temporary file.
6401
e6bfb94a
AO
6402# Check whether --enable-serial-configure or --disable-serial-configure was given.
6403if test "${enable_serial_configure+set}" = set; then
6404 enableval="$enable_serial_configure"
e6bfb94a 6405
c6b750e1 6406fi;
e6bfb94a 6407
1047cb91
DD
6408case ${enable_serial_configure} in
6409 yes)
6410 enable_serial_build_configure=yes
6411 enable_serial_host_configure=yes
6412 enable_serial_target_configure=yes
6413 ;;
6414esac
6415
a0da8069
NN
6416# These force 'configure's to be done one at a time, to avoid problems
6417# with contention over a shared config.cache.
6418rm -f serdep.tmp
e6bfb94a 6419echo '# serdep.tmp' > serdep.tmp
a0da8069 6420olditem=
1047cb91 6421test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6422for item in ${build_configdirs} ; do
6423 case ${olditem} in
6424 "") ;;
e6bfb94a 6425 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6426 esac
6427 olditem=${item}
6428done
6429olditem=
1047cb91 6430test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6431for item in ${configdirs} ; do
6432 case ${olditem} in
6433 "") ;;
e6bfb94a 6434 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6435 esac
6436 olditem=${item}
6437done
6438olditem=
1047cb91 6439test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6440for item in ${target_configdirs} ; do
6441 case ${olditem} in
6442 "") ;;
e6bfb94a 6443 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6444 esac
6445 olditem=${item}
6446done
6447serialization_dependencies=serdep.tmp
6448
6449
e6bfb94a 6450# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6451# target, nonopt, and variable assignments. These are the ones we
6452# might not want to pass down to subconfigures. Also strip
6453# program-prefix, program-suffix, and program-transform-name, so that
6454# we can pass down a consistent program-transform-name.
6455baseargs=
6456keep_next=no
6457skip_next=no
6458eval "set -- $ac_configure_args"
18f6b6ee
PB
6459for ac_arg
6460do
c6b750e1
DJ
6461 if test X"$skip_next" = X"yes"; then
6462 skip_next=no
6463 continue
6464 fi
6465 if test X"$keep_next" = X"yes"; then
6466 case $ac_arg in
6467 *\'*)
6468 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6469 esac
6470 baseargs="$baseargs '$ac_arg'"
6471 keep_next=no
6472 continue
6473 fi
6474
6475 # Handle separated arguments. Based on the logic generated by
6476 # autoconf 2.59.
6477 case $ac_arg in
6478 *=* | --config-cache | -C | -disable-* | --disable-* \
6479 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6480 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6481 | -with-* | --with-* | -without-* | --without-* | --x)
6482 separate_arg=no
6483 ;;
6484 -*)
6485 separate_arg=yes
6486 ;;
6487 *)
6488 separate_arg=no
6489 ;;
6490 esac
6491
6492 case "$ac_arg" in
6493 --no*)
6494 continue
6495 ;;
6496 --c* | \
6497 --sr* | \
6498 --ho* | \
6499 --bu* | \
6500 --t* | \
6501 --program-* | \
6502 -cache_file* | \
6503 -srcdir* | \
6504 -host* | \
6505 -build* | \
6506 -target* | \
6507 -program-prefix* | \
6508 -program-suffix* | \
6509 -program-transform-name* )
6510 skip_next=$separate_arg
6511 continue
6512 ;;
6513 -*)
6514 # An option. Add it.
6515 case $ac_arg in
6516 *\'*)
6517 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6518 esac
6519 baseargs="$baseargs '$ac_arg'"
6520 keep_next=$separate_arg
6521 ;;
6522 *)
6523 # Either a variable assignment, or a nonopt (triplet). Don't
6524 # pass it down; let the Makefile handle this.
6525 continue
6526 ;;
6527 esac
6528done
6529# Remove the initial space we just introduced and, as these will be
6530# expanded by make, quote '$'.
6531baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6532
f27d4f92
DJ
6533# Add in --program-transform-name, after --program-prefix and
6534# --program-suffix have been applied to it. Autoconf has already
6535# doubled dollar signs and backslashes in program_transform_name; we want
6536# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6537# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6538# Also, because we want to override the logic in subdir configure scripts to
6539# choose program_transform_name, replace any s,x,x, with s,y,y,.
6540sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6541${program_transform_name}
6542EOF_SED
6543gcc_transform_name=`cat conftestsed.out`
6544rm -f conftestsed.out
6545baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6546if test "$silent" = yes; then
6547 baseargs="$baseargs --silent"
6548fi
f27d4f92 6549
a0da8069
NN
6550# For the build-side libraries, we just need to pretend we're native,
6551# and not use the same cache file. Multilibs are neither needed nor
6552# desired.
4b900473 6553build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6554
6555# For host modules, accept cache file option, or specification as blank.
6556case "${cache_file}" in
6557"") # empty
6558 cache_file_option="" ;;
6559/* | [A-Za-z]:[\\/]* ) # absolute path
6560 cache_file_option="--cache-file=${cache_file}" ;;
6561*) # relative path
6562 cache_file_option="--cache-file=../${cache_file}" ;;
6563esac
6564
82252c06
NN
6565# Host dirs don't like to share a cache file either, horribly enough.
6566# This seems to be due to autoconf 2.5x stupidity.
4b900473 6567host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6568
6569target_configargs=${baseargs}
6570
6571# Passing a --with-cross-host argument lets the target libraries know
6572# whether they are being built with a cross-compiler or being built
6573# native. However, it would be better to use other mechanisms to make the
6574# sorts of decisions they want to make on this basis. Please consider
6575# this option to be deprecated. FIXME.
6576if test x${is_cross_compiler} = xyes ; then
c6b750e1 6577 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6578fi
6579
6580# Default to --enable-multilib.
6581if test x${enable_multilib} = x ; then
6582 target_configargs="--enable-multilib ${target_configargs}"
6583fi
6584
6585# Pass --with-newlib if appropriate. Note that target_configdirs has
6586# changed from the earlier setting of with_newlib.
6587if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6588 target_configargs="--with-newlib ${target_configargs}"
6589fi
6590
95036d20
NN
6591# Different target subdirs use different values of certain variables
6592# (notably CXX). Worse, multilibs use *lots* of different values.
6593# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6594# it doesn't automatically accept command-line overrides of them.
6595# This means it's not safe for target subdirs to share a cache file,
6596# which is disgusting, but there you have it. Hopefully this can be
6597# fixed in future. It's still worthwhile to use a cache file for each
6598# directory. I think.
6599
ae380b45
MS
6600# Pass the appropriate --build, --host, --target and --cache-file arguments.
6601# We need to pass --target, as newer autoconf's requires consistency
6602# for target_alias and gcc doesn't manage it consistently.
4b900473 6603target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6604
a0da8069
NN
6605FLAGS_FOR_TARGET=
6606case " $target_configdirs " in
6607 *" newlib "*)
6608 case " $target_configargs " in
6609 *" --with-newlib "*)
6610 case "$target" in
6611 *-cygwin*)
564b43e5 6612 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
6613 esac
6614
6615 # If we're not building GCC, don't discard standard headers.
6616 if test -d ${srcdir}/gcc; then
6617 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6618
6619 if test "${build}" != "${host}"; then
6620 # On Canadian crosses, CC_FOR_TARGET will have already been set
6621 # by `configure', so we won't have an opportunity to add -Bgcc/
6622 # to it. This is right: we don't want to search that directory
6623 # for binaries, but we want the header files in there, so add
6624 # them explicitly.
b00612cc 6625 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6626
6627 # Someone might think of using the pre-installed headers on
6628 # Canadian crosses, in case the installed compiler is not fully
6629 # compatible with the compiler being built. In this case, it
6630 # would be better to flag an error than risking having
6631 # incompatible object files being constructed. We can't
6632 # guarantee that an error will be flagged, but let's hope the
6633 # compiler will do it, when presented with incompatible header
6634 # files.
6635 fi
6636 fi
6637
6638 case "${target}-${is_cross_compiler}" in
ec11bdc6 6639 i[3456789]86-*-linux*-no)
a0da8069
NN
6640 # Here host == target, so we don't need to build gcc,
6641 # so we don't want to discard standard headers.
6642 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6643 ;;
6644 *)
6645 # If we're building newlib, use its generic headers last, but search
6646 # for any libc-related directories first (so make it the last -B
6647 # switch).
6648 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
6649
6650 # If we're building libgloss, find the startup file, simulator library
6651 # and linker script.
6652 case " $target_configdirs " in
6653 *" libgloss "*)
6654 # Look for startup file, simulator library and maybe linker script.
6655 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6656 # Look for libnosys.a in case the target needs it.
6657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6658 # Most targets have the linker script in the source directory.
6659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6660 ;;
6661 esac
a0da8069
NN
6662 ;;
6663 esac
6664 ;;
6665 esac
6666 ;;
6667esac
45055374
CV
6668case "$target" in
6669*-mingw*)
6670 # Can't be handled as Cygwin above since Mingw does not use newlib.
6671 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' ;;
6672esac
a0da8069 6673
5fbad20a
DD
6674# Allow the user to override the flags for
6675# our build compiler if desired.
c66487f8
NC
6676if test x"${build}" = x"${host}" ; then
6677 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6678 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6679 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6680fi
5fbad20a 6681
a0da8069
NN
6682# On Canadian crosses, we'll be searching the right directories for
6683# the previously-installed cross compiler, so don't bother to add
6684# flags for directories within the install tree of the compiler
6685# being built; programs in there won't even run.
6686if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6687 # Search for pre-installed headers if nothing else fits.
bba45b8b 6688 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
6689fi
6690
6691if test "x${use_gnu_ld}" = x &&
6692 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6693 # Arrange for us to find uninstalled linker scripts.
b00612cc 6694 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6695fi
6696
a481dbb7
DD
6697# Search for other target-specific linker scripts and such.
6698case "${target}" in
4e206d7e
DB
6699 mep*)
6700 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6701 ;;
6702esac
6703
a0da8069 6704# Makefile fragments.
3e707e94
PB
6705for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6706do
6707 eval fragval=\$$frag
6708 if test $fragval != /dev/null; then
6709 eval $frag=${srcdir}/$fragval
6710 fi
6711done
a0da8069
NN
6712
6713
6714
6715
6716
6717# Miscellanea: directories, flags, etc.
6718
6719
6720
6721
6722
6723
6724
3bbd2f8f 6725
6a9cf61e 6726# Build module lists & subconfigure args.
a0da8069
NN
6727
6728
6729
be01d343
PB
6730# Host module lists & subconfigure args.
6731
6732
6733
6734# Target module lists & subconfigure args.
6735
6736
6737
6738# Build tools.
6739
6740
6741
1576798e
PB
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
be01d343
PB
6756# Generate default definitions for YACC, M4, LEX and other programs that run
6757# on the build machine. These are used if the Makefile can't locate these
6758# programs in objdir.
6759MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6760
6761for ac_prog in 'bison -y' byacc yacc
6762do
c6b750e1 6763 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6764set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6765echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6767if test "${ac_cv_prog_YACC+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6769else
6770 if test -n "$YACC"; then
6771 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6772else
c6b750e1
DJ
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_YACC="$ac_prog"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784done
6785done
6786
be01d343
PB
6787fi
6788fi
c6b750e1 6789YACC=$ac_cv_prog_YACC
be01d343 6790if test -n "$YACC"; then
c6b750e1
DJ
6791 echo "$as_me:$LINENO: result: $YACC" >&5
6792echo "${ECHO_T}$YACC" >&6
be01d343 6793else
c6b750e1
DJ
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
be01d343
PB
6796fi
6797
c6b750e1 6798 test -n "$YACC" && break
be01d343
PB
6799done
6800test -n "$YACC" || YACC="$MISSING bison -y"
6801
6802case " $build_configdirs " in
6803 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6804 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6805esac
6806
6807for ac_prog in bison
6808do
c6b750e1 6809 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6810set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6811echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6813if test "${ac_cv_prog_BISON+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6815else
6816 if test -n "$BISON"; then
6817 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6818else
c6b750e1
DJ
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_BISON="$ac_prog"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832
be01d343
PB
6833fi
6834fi
c6b750e1 6835BISON=$ac_cv_prog_BISON
be01d343 6836if test -n "$BISON"; then
c6b750e1
DJ
6837 echo "$as_me:$LINENO: result: $BISON" >&5
6838echo "${ECHO_T}$BISON" >&6
be01d343 6839else
c6b750e1
DJ
6840 echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6
be01d343
PB
6842fi
6843
c6b750e1 6844 test -n "$BISON" && break
be01d343
PB
6845done
6846test -n "$BISON" || BISON="$MISSING bison"
6847
6848case " $build_configdirs " in
6849 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6850esac
6851
6852for ac_prog in gm4 gnum4 m4
6853do
c6b750e1 6854 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6855set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6856echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6858if test "${ac_cv_prog_M4+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6860else
6861 if test -n "$M4"; then
6862 ac_cv_prog_M4="$M4" # Let the user override the test.
6863else
c6b750e1
DJ
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_M4="$ac_prog"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
6877
be01d343
PB
6878fi
6879fi
c6b750e1 6880M4=$ac_cv_prog_M4
be01d343 6881if test -n "$M4"; then
c6b750e1
DJ
6882 echo "$as_me:$LINENO: result: $M4" >&5
6883echo "${ECHO_T}$M4" >&6
be01d343 6884else
c6b750e1
DJ
6885 echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6
be01d343
PB
6887fi
6888
c6b750e1 6889 test -n "$M4" && break
be01d343
PB
6890done
6891test -n "$M4" || M4="$MISSING m4"
6892
6893case " $build_configdirs " in
6894 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6895esac
6896
6897for ac_prog in flex lex
6898do
c6b750e1 6899 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6900set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6901echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903if test "${ac_cv_prog_LEX+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6905else
6906 if test -n "$LEX"; then
6907 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6908else
c6b750e1
DJ
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_LEX="$ac_prog"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921done
6922
be01d343
PB
6923fi
6924fi
c6b750e1 6925LEX=$ac_cv_prog_LEX
be01d343 6926if test -n "$LEX"; then
c6b750e1
DJ
6927 echo "$as_me:$LINENO: result: $LEX" >&5
6928echo "${ECHO_T}$LEX" >&6
be01d343 6929else
c6b750e1
DJ
6930 echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
be01d343
PB
6932fi
6933
c6b750e1 6934 test -n "$LEX" && break
be01d343
PB
6935done
6936test -n "$LEX" || LEX="$MISSING flex"
6937
6938case " $build_configdirs " in
6939 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6940 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6941esac
6942
6943for ac_prog in flex
6944do
c6b750e1 6945 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6946set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6947echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6949if test "${ac_cv_prog_FLEX+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6951else
6952 if test -n "$FLEX"; then
6953 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6954else
c6b750e1
DJ
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962 ac_cv_prog_FLEX="$ac_prog"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966done
6967done
6968
be01d343
PB
6969fi
6970fi
c6b750e1 6971FLEX=$ac_cv_prog_FLEX
be01d343 6972if test -n "$FLEX"; then
c6b750e1
DJ
6973 echo "$as_me:$LINENO: result: $FLEX" >&5
6974echo "${ECHO_T}$FLEX" >&6
be01d343 6975else
c6b750e1
DJ
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
be01d343
PB
6978fi
6979
c6b750e1 6980 test -n "$FLEX" && break
be01d343
PB
6981done
6982test -n "$FLEX" || FLEX="$MISSING flex"
6983
6984case " $build_configdirs " in
6985 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6986esac
6987
6988for ac_prog in makeinfo
6989do
c6b750e1 6990 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6991set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6992echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6994if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6996else
6997 if test -n "$MAKEINFO"; then
6998 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6999else
c6b750e1
DJ
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_MAKEINFO="$ac_prog"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011done
7012done
7013
be01d343
PB
7014fi
7015fi
c6b750e1 7016MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7017if test -n "$MAKEINFO"; then
c6b750e1
DJ
7018 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7019echo "${ECHO_T}$MAKEINFO" >&6
be01d343 7020else
c6b750e1
DJ
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
be01d343
PB
7023fi
7024
c6b750e1 7025 test -n "$MAKEINFO" && break
be01d343
PB
7026done
7027test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7028
7029case " $build_configdirs " in
7030 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7031 *)
7032
10ad8ef3 7033 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7034 # higher, else we use the "missing" dummy.
7035 if ${MAKEINFO} --version \
10ad8ef3 7036 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7037 :
7038 else
7039 MAKEINFO="$MISSING makeinfo"
7040 fi
7041 ;;
7042
7043esac
a0da8069 7044
be01d343 7045# FIXME: expect and dejagnu may become build tools?
a0da8069 7046
be01d343
PB
7047for ac_prog in expect
7048do
c6b750e1 7049 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7050set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
7051echo "$as_me:$LINENO: checking for $ac_word" >&5
7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7053if test "${ac_cv_prog_EXPECT+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7055else
7056 if test -n "$EXPECT"; then
7057 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7058else
c6b750e1
DJ
7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_EXPECT="$ac_prog"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7069 fi
7070done
7071done
7072
be01d343
PB
7073fi
7074fi
c6b750e1 7075EXPECT=$ac_cv_prog_EXPECT
be01d343 7076if test -n "$EXPECT"; then
c6b750e1
DJ
7077 echo "$as_me:$LINENO: result: $EXPECT" >&5
7078echo "${ECHO_T}$EXPECT" >&6
be01d343 7079else
c6b750e1
DJ
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
be01d343 7082fi
a0da8069 7083
c6b750e1 7084 test -n "$EXPECT" && break
be01d343
PB
7085done
7086test -n "$EXPECT" || EXPECT="expect"
a0da8069 7087
be01d343
PB
7088case " $configdirs " in
7089 *" expect "*)
7090 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7091 ;;
7092esac
a0da8069 7093
be01d343
PB
7094for ac_prog in runtest
7095do
c6b750e1 7096 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7097set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
7098echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7100if test "${ac_cv_prog_RUNTEST+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7102else
7103 if test -n "$RUNTEST"; then
7104 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7105else
c6b750e1
DJ
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_RUNTEST="$ac_prog"
7114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118done
7119
be01d343
PB
7120fi
7121fi
c6b750e1 7122RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7123if test -n "$RUNTEST"; then
c6b750e1
DJ
7124 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7125echo "${ECHO_T}$RUNTEST" >&6
be01d343 7126else
c6b750e1
DJ
7127 echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6
be01d343 7129fi
a0da8069 7130
c6b750e1 7131 test -n "$RUNTEST" && break
be01d343
PB
7132done
7133test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7134
be01d343
PB
7135case " $configdirs " in
7136 *" dejagnu "*)
6b89cc21 7137 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7138 ;;
7139esac
a0da8069
NN
7140
7141
a0da8069 7142# Host tools.
859789af
AC
7143ncn_tool_prefix=
7144test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7145ncn_target_tool_prefix=
7146test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7147
9a819804
AO
7148
7149
7150if test -n "$AR"; then
7151 ac_cv_prog_AR=$AR
7152elif test -n "$ac_cv_prog_AR"; then
7153 AR=$ac_cv_prog_AR
7154fi
7155
7156if test -n "$ac_cv_prog_AR"; then
7157 for ncn_progname in ar; do
7158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7159set dummy ${ncn_progname}; ac_word=$2
7160echo "$as_me:$LINENO: checking for $ac_word" >&5
7161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7162if test "${ac_cv_prog_AR+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165 if test -n "$AR"; then
7166 ac_cv_prog_AR="$AR" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_AR="${ncn_progname}"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179done
7180done
7181
7182fi
7183fi
7184AR=$ac_cv_prog_AR
7185if test -n "$AR"; then
7186 echo "$as_me:$LINENO: result: $AR" >&5
7187echo "${ECHO_T}$AR" >&6
7188else
7189 echo "$as_me:$LINENO: result: no" >&5
7190echo "${ECHO_T}no" >&6
7191fi
7192
7193 done
7194fi
7195
7196for ncn_progname in ar; do
05cbd757
PB
7197 if test -n "$ncn_tool_prefix"; then
7198 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7199set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7200echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202if test "${ac_cv_prog_AR+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7204else
7205 if test -n "$AR"; then
7206 ac_cv_prog_AR="$AR" # Let the user override the test.
7207else
c6b750e1
DJ
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220done
7221
859789af
AC
7222fi
7223fi
c6b750e1 7224AR=$ac_cv_prog_AR
859789af 7225if test -n "$AR"; then
c6b750e1
DJ
7226 echo "$as_me:$LINENO: result: $AR" >&5
7227echo "${ECHO_T}$AR" >&6
859789af 7228else
c6b750e1
DJ
7229 echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6
859789af
AC
7231fi
7232
05cbd757
PB
7233 fi
7234 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7236set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7237echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239if test "${ac_cv_prog_AR+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7241else
05cbd757
PB
7242 if test -n "$AR"; then
7243 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7244else
c6b750e1
DJ
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_AR="${ncn_progname}"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256done
7257done
7258
859789af
AC
7259fi
7260fi
c6b750e1 7261AR=$ac_cv_prog_AR
05cbd757 7262if test -n "$AR"; then
c6b750e1
DJ
7263 echo "$as_me:$LINENO: result: $AR" >&5
7264echo "${ECHO_T}$AR" >&6
859789af 7265else
c6b750e1
DJ
7266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
859789af 7268fi
c6b750e1 7269
05cbd757
PB
7270 fi
7271 test -n "$ac_cv_prog_AR" && break
7272done
7273
7274if test -z "$ac_cv_prog_AR" ; then
7275 set dummy ar
7276 if test $build = $host ; then
7277 AR="$2"
859789af 7278 else
05cbd757 7279 AR="${ncn_tool_prefix}$2"
859789af 7280 fi
859789af
AC
7281fi
7282
9a819804
AO
7283
7284
7285if test -n "$AS"; then
7286 ac_cv_prog_AS=$AS
7287elif test -n "$ac_cv_prog_AS"; then
7288 AS=$ac_cv_prog_AS
7289fi
7290
7291if test -n "$ac_cv_prog_AS"; then
7292 for ncn_progname in as; do
7293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7294set dummy ${ncn_progname}; ac_word=$2
7295echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7297if test "${ac_cv_prog_AS+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300 if test -n "$AS"; then
7301 ac_cv_prog_AS="$AS" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_AS="${ncn_progname}"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314done
7315done
7316
7317fi
7318fi
7319AS=$ac_cv_prog_AS
7320if test -n "$AS"; then
7321 echo "$as_me:$LINENO: result: $AS" >&5
7322echo "${ECHO_T}$AS" >&6
7323else
7324 echo "$as_me:$LINENO: result: no" >&5
7325echo "${ECHO_T}no" >&6
7326fi
7327
7328 done
7329fi
7330
7331for ncn_progname in as; do
05cbd757
PB
7332 if test -n "$ncn_tool_prefix"; then
7333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7335echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337if test "${ac_cv_prog_AS+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7339else
7340 if test -n "$AS"; then
7341 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355done
7356
859789af
AC
7357fi
7358fi
c6b750e1 7359AS=$ac_cv_prog_AS
859789af 7360if test -n "$AS"; then
c6b750e1
DJ
7361 echo "$as_me:$LINENO: result: $AS" >&5
7362echo "${ECHO_T}$AS" >&6
859789af 7363else
c6b750e1
DJ
7364 echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
859789af
AC
7366fi
7367
05cbd757
PB
7368 fi
7369 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7371set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7372echo "$as_me:$LINENO: checking for $ac_word" >&5
7373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7374if test "${ac_cv_prog_AS+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7376else
05cbd757
PB
7377 if test -n "$AS"; then
7378 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7379else
c6b750e1
DJ
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_prog_AS="${ncn_progname}"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391done
7392done
7393
859789af
AC
7394fi
7395fi
c6b750e1 7396AS=$ac_cv_prog_AS
05cbd757 7397if test -n "$AS"; then
c6b750e1
DJ
7398 echo "$as_me:$LINENO: result: $AS" >&5
7399echo "${ECHO_T}$AS" >&6
859789af 7400else
c6b750e1
DJ
7401 echo "$as_me:$LINENO: result: no" >&5
7402echo "${ECHO_T}no" >&6
859789af 7403fi
c6b750e1 7404
05cbd757
PB
7405 fi
7406 test -n "$ac_cv_prog_AS" && break
7407done
7408
7409if test -z "$ac_cv_prog_AS" ; then
7410 set dummy as
7411 if test $build = $host ; then
7412 AS="$2"
859789af 7413 else
05cbd757 7414 AS="${ncn_tool_prefix}$2"
859789af 7415 fi
859789af
AC
7416fi
7417
9a819804
AO
7418
7419
7420if test -n "$DLLTOOL"; then
7421 ac_cv_prog_DLLTOOL=$DLLTOOL
7422elif test -n "$ac_cv_prog_DLLTOOL"; then
7423 DLLTOOL=$ac_cv_prog_DLLTOOL
7424fi
7425
7426if test -n "$ac_cv_prog_DLLTOOL"; then
7427 for ncn_progname in dlltool; do
7428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7429set dummy ${ncn_progname}; ac_word=$2
7430echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7432if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 if test -n "$DLLTOOL"; then
7436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_DLLTOOL="${ncn_progname}"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449done
7450done
7451
7452fi
7453fi
7454DLLTOOL=$ac_cv_prog_DLLTOOL
7455if test -n "$DLLTOOL"; then
7456 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7457echo "${ECHO_T}$DLLTOOL" >&6
7458else
7459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
7461fi
7462
7463 done
7464fi
7465
7466for ncn_progname in dlltool; do
05cbd757
PB
7467 if test -n "$ncn_tool_prefix"; then
7468 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7469set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7470echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7474else
7475 if test -n "$DLLTOOL"; then
7476 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7477else
c6b750e1
DJ
7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
7491
859789af
AC
7492fi
7493fi
c6b750e1 7494DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7495if test -n "$DLLTOOL"; then
c6b750e1
DJ
7496 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7497echo "${ECHO_T}$DLLTOOL" >&6
859789af 7498else
c6b750e1
DJ
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
859789af
AC
7501fi
7502
05cbd757
PB
7503 fi
7504 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7506set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7507echo "$as_me:$LINENO: checking for $ac_word" >&5
7508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7509if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7511else
05cbd757
PB
7512 if test -n "$DLLTOOL"; then
7513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7514else
c6b750e1
DJ
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_DLLTOOL="${ncn_progname}"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528
859789af
AC
7529fi
7530fi
c6b750e1 7531DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7532if test -n "$DLLTOOL"; then
c6b750e1
DJ
7533 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7534echo "${ECHO_T}$DLLTOOL" >&6
859789af 7535else
c6b750e1
DJ
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
859789af 7538fi
c6b750e1 7539
05cbd757
PB
7540 fi
7541 test -n "$ac_cv_prog_DLLTOOL" && break
7542done
7543
7544if test -z "$ac_cv_prog_DLLTOOL" ; then
7545 set dummy dlltool
7546 if test $build = $host ; then
7547 DLLTOOL="$2"
859789af 7548 else
05cbd757 7549 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7550 fi
859789af
AC
7551fi
7552
9a819804
AO
7553
7554
7555if test -n "$LD"; then
7556 ac_cv_prog_LD=$LD
7557elif test -n "$ac_cv_prog_LD"; then
7558 LD=$ac_cv_prog_LD
7559fi
7560
7561if test -n "$ac_cv_prog_LD"; then
7562 for ncn_progname in ld; do
7563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7564set dummy ${ncn_progname}; ac_word=$2
7565echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7567if test "${ac_cv_prog_LD+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 if test -n "$LD"; then
7571 ac_cv_prog_LD="$LD" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_LD="${ncn_progname}"
7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584done
7585done
7586
7587fi
7588fi
7589LD=$ac_cv_prog_LD
7590if test -n "$LD"; then
7591 echo "$as_me:$LINENO: result: $LD" >&5
7592echo "${ECHO_T}$LD" >&6
7593else
7594 echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6
7596fi
7597
7598 done
7599fi
7600
7601for ncn_progname in ld; do
05cbd757
PB
7602 if test -n "$ncn_tool_prefix"; then
7603 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7604set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7605echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7607if test "${ac_cv_prog_LD+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7609else
7610 if test -n "$LD"; then
7611 ac_cv_prog_LD="$LD" # Let the user override the test.
7612else
c6b750e1
DJ
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624done
7625done
7626
859789af
AC
7627fi
7628fi
c6b750e1 7629LD=$ac_cv_prog_LD
859789af 7630if test -n "$LD"; then
c6b750e1
DJ
7631 echo "$as_me:$LINENO: result: $LD" >&5
7632echo "${ECHO_T}$LD" >&6
859789af 7633else
c6b750e1
DJ
7634 echo "$as_me:$LINENO: result: no" >&5
7635echo "${ECHO_T}no" >&6
859789af
AC
7636fi
7637
05cbd757
PB
7638 fi
7639 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7641set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7642echo "$as_me:$LINENO: checking for $ac_word" >&5
7643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644if test "${ac_cv_prog_LD+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7646else
05cbd757
PB
7647 if test -n "$LD"; then
7648 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7649else
c6b750e1
DJ
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_LD="${ncn_progname}"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662done
7663
859789af
AC
7664fi
7665fi
c6b750e1 7666LD=$ac_cv_prog_LD
05cbd757 7667if test -n "$LD"; then
c6b750e1
DJ
7668 echo "$as_me:$LINENO: result: $LD" >&5
7669echo "${ECHO_T}$LD" >&6
859789af 7670else
c6b750e1
DJ
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
859789af 7673fi
c6b750e1 7674
05cbd757
PB
7675 fi
7676 test -n "$ac_cv_prog_LD" && break
7677done
7678
7679if test -z "$ac_cv_prog_LD" ; then
7680 set dummy ld
7681 if test $build = $host ; then
7682 LD="$2"
859789af 7683 else
05cbd757 7684 LD="${ncn_tool_prefix}$2"
859789af 7685 fi
859789af
AC
7686fi
7687
9a819804
AO
7688
7689
7690if test -n "$LIPO"; then
7691 ac_cv_prog_LIPO=$LIPO
7692elif test -n "$ac_cv_prog_LIPO"; then
7693 LIPO=$ac_cv_prog_LIPO
7694fi
7695
7696if test -n "$ac_cv_prog_LIPO"; then
7697 for ncn_progname in lipo; do
7698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7699set dummy ${ncn_progname}; ac_word=$2
7700echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7702if test "${ac_cv_prog_LIPO+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 if test -n "$LIPO"; then
7706 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_LIPO="${ncn_progname}"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720done
7721
7722fi
7723fi
7724LIPO=$ac_cv_prog_LIPO
7725if test -n "$LIPO"; then
7726 echo "$as_me:$LINENO: result: $LIPO" >&5
7727echo "${ECHO_T}$LIPO" >&6
7728else
7729 echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6
7731fi
7732
7733 done
7734fi
7735
7736for ncn_progname in lipo; do
be01d343
PB
7737 if test -n "$ncn_tool_prefix"; then
7738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7739set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7740echo "$as_me:$LINENO: checking for $ac_word" >&5
7741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7742if test "${ac_cv_prog_LIPO+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7744else
7745 if test -n "$LIPO"; then
7746 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7747else
c6b750e1
DJ
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759done
7760done
7761
be01d343
PB
7762fi
7763fi
c6b750e1 7764LIPO=$ac_cv_prog_LIPO
be01d343 7765if test -n "$LIPO"; then
c6b750e1
DJ
7766 echo "$as_me:$LINENO: result: $LIPO" >&5
7767echo "${ECHO_T}$LIPO" >&6
be01d343 7768else
c6b750e1
DJ
7769 echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6
be01d343
PB
7771fi
7772
7773 fi
7774 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7776set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7777echo "$as_me:$LINENO: checking for $ac_word" >&5
7778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779if test "${ac_cv_prog_LIPO+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7781else
7782 if test -n "$LIPO"; then
7783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7784else
c6b750e1
DJ
7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_LIPO="${ncn_progname}"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796done
7797done
7798
be01d343
PB
7799fi
7800fi
c6b750e1 7801LIPO=$ac_cv_prog_LIPO
be01d343 7802if test -n "$LIPO"; then
c6b750e1
DJ
7803 echo "$as_me:$LINENO: result: $LIPO" >&5
7804echo "${ECHO_T}$LIPO" >&6
be01d343 7805else
c6b750e1
DJ
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
be01d343 7808fi
c6b750e1 7809
be01d343
PB
7810 fi
7811 test -n "$ac_cv_prog_LIPO" && break
7812done
7813
7814if test -z "$ac_cv_prog_LIPO" ; then
7815 set dummy lipo
7816 if test $build = $host ; then
7817 LIPO="$2"
7818 else
7819 LIPO="${ncn_tool_prefix}$2"
7820 fi
7821fi
7822
9a819804
AO
7823
7824
7825if test -n "$NM"; then
7826 ac_cv_prog_NM=$NM
7827elif test -n "$ac_cv_prog_NM"; then
7828 NM=$ac_cv_prog_NM
7829fi
7830
7831if test -n "$ac_cv_prog_NM"; then
7832 for ncn_progname in nm; do
7833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7834set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7835echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7837if test "${ac_cv_prog_NM+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7839else
7840 if test -n "$NM"; then
7841 ac_cv_prog_NM="$NM" # Let the user override the test.
7842else
c6b750e1
DJ
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7850 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854done
7855done
7856
859789af
AC
7857fi
7858fi
c6b750e1 7859NM=$ac_cv_prog_NM
859789af 7860if test -n "$NM"; then
c6b750e1
DJ
7861 echo "$as_me:$LINENO: result: $NM" >&5
7862echo "${ECHO_T}$NM" >&6
859789af 7863else
c6b750e1
DJ
7864 echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
859789af
AC
7866fi
7867
9a819804
AO
7868 done
7869fi
7870
7871for ncn_progname in nm; do
7872 if test -n "$ncn_tool_prefix"; then
7873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7874set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7875echo "$as_me:$LINENO: checking for $ac_word" >&5
7876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7877if test "${ac_cv_prog_NM+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7879else
05cbd757
PB
7880 if test -n "$NM"; then
7881 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7882else
c6b750e1
DJ
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7890 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894done
7895done
7896
859789af
AC
7897fi
7898fi
c6b750e1 7899NM=$ac_cv_prog_NM
05cbd757 7900if test -n "$NM"; then
c6b750e1
DJ
7901 echo "$as_me:$LINENO: result: $NM" >&5
7902echo "${ECHO_T}$NM" >&6
859789af 7903else
c6b750e1
DJ
7904 echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
859789af 7906fi
c6b750e1 7907
05cbd757 7908 fi
9a819804
AO
7909 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7911set dummy ${ncn_progname}; ac_word=$2
7912echo "$as_me:$LINENO: checking for $ac_word" >&5
7913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7914if test "${ac_cv_prog_NM+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917 if test -n "$NM"; then
7918 ac_cv_prog_NM="$NM" # Let the user override the test.
7919else
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_NM="${ncn_progname}"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931done
7932done
7933
7934fi
7935fi
7936NM=$ac_cv_prog_NM
7937if test -n "$NM"; then
7938 echo "$as_me:$LINENO: result: $NM" >&5
7939echo "${ECHO_T}$NM" >&6
7940else
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
7943fi
7944
7945 fi
7946 test -n "$ac_cv_prog_NM" && break
7947done
7948
7949if test -z "$ac_cv_prog_NM" ; then
7950 set dummy nm
7951 if test $build = $host ; then
7952 NM="$2"
7953 else
7954 NM="${ncn_tool_prefix}$2"
7955 fi
7956fi
7957
7958
7959
7960if test -n "$RANLIB"; then
7961 ac_cv_prog_RANLIB=$RANLIB
7962elif test -n "$ac_cv_prog_RANLIB"; then
7963 RANLIB=$ac_cv_prog_RANLIB
7964fi
7965
7966if test -n "$ac_cv_prog_RANLIB"; then
7967 for ncn_progname in ranlib; do
7968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7969set dummy ${ncn_progname}; ac_word=$2
7970echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7972if test "${ac_cv_prog_RANLIB+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 if test -n "$RANLIB"; then
7976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7977else
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_RANLIB="${ncn_progname}"
7986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989done
7990done
7991
7992fi
7993fi
7994RANLIB=$ac_cv_prog_RANLIB
7995if test -n "$RANLIB"; then
7996 echo "$as_me:$LINENO: result: $RANLIB" >&5
7997echo "${ECHO_T}$RANLIB" >&6
7998else
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
8001fi
8002
8003 done
8004fi
859789af 8005
9a819804 8006for ncn_progname in ranlib; do
05cbd757
PB
8007 if test -n "$ncn_tool_prefix"; then
8008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8009set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8010echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8012if test "${ac_cv_prog_RANLIB+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8014else
8015 if test -n "$RANLIB"; then
8016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8017else
c6b750e1
DJ
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029done
8030done
8031
859789af
AC
8032fi
8033fi
c6b750e1 8034RANLIB=$ac_cv_prog_RANLIB
859789af 8035if test -n "$RANLIB"; then
c6b750e1
DJ
8036 echo "$as_me:$LINENO: result: $RANLIB" >&5
8037echo "${ECHO_T}$RANLIB" >&6
859789af 8038else
c6b750e1
DJ
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
859789af
AC
8041fi
8042
05cbd757
PB
8043 fi
8044 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8046set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8047echo "$as_me:$LINENO: checking for $ac_word" >&5
8048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8049if test "${ac_cv_prog_RANLIB+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8051else
05cbd757
PB
8052 if test -n "$RANLIB"; then
8053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8054else
c6b750e1
DJ
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_RANLIB="${ncn_progname}"
8063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066done
8067done
8068
859789af
AC
8069fi
8070fi
c6b750e1 8071RANLIB=$ac_cv_prog_RANLIB
05cbd757 8072if test -n "$RANLIB"; then
c6b750e1
DJ
8073 echo "$as_me:$LINENO: result: $RANLIB" >&5
8074echo "${ECHO_T}$RANLIB" >&6
859789af 8075else
c6b750e1
DJ
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
859789af 8078fi
c6b750e1 8079
859789af 8080 fi
05cbd757
PB
8081 test -n "$ac_cv_prog_RANLIB" && break
8082done
8083
8084if test -z "$ac_cv_prog_RANLIB" ; then
8085 RANLIB=":"
859789af
AC
8086fi
8087
9a819804
AO
8088
8089
8090if test -n "$STRIP"; then
8091 ac_cv_prog_STRIP=$STRIP
8092elif test -n "$ac_cv_prog_STRIP"; then
8093 STRIP=$ac_cv_prog_STRIP
8094fi
8095
8096if test -n "$ac_cv_prog_STRIP"; then
8097 for ncn_progname in strip; do
8098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8099set dummy ${ncn_progname}; ac_word=$2
8100echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8102if test "${ac_cv_prog_STRIP+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105 if test -n "$STRIP"; then
8106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_STRIP="${ncn_progname}"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119done
8120done
8121
8122fi
8123fi
8124STRIP=$ac_cv_prog_STRIP
8125if test -n "$STRIP"; then
8126 echo "$as_me:$LINENO: result: $STRIP" >&5
8127echo "${ECHO_T}$STRIP" >&6
8128else
8129 echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
8131fi
8132
8133 done
8134fi
8135
8136for ncn_progname in strip; do
be01d343
PB
8137 if test -n "$ncn_tool_prefix"; then
8138 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8139set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8140echo "$as_me:$LINENO: checking for $ac_word" >&5
8141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8142if test "${ac_cv_prog_STRIP+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
8144else
8145 if test -n "$STRIP"; then
8146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8147else
c6b750e1
DJ
8148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159done
8160done
8161
be01d343
PB
8162fi
8163fi
c6b750e1 8164STRIP=$ac_cv_prog_STRIP
be01d343 8165if test -n "$STRIP"; then
c6b750e1
DJ
8166 echo "$as_me:$LINENO: result: $STRIP" >&5
8167echo "${ECHO_T}$STRIP" >&6
be01d343 8168else
c6b750e1
DJ
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
be01d343
PB
8171fi
8172
8173 fi
8174 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8176set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8177echo "$as_me:$LINENO: checking for $ac_word" >&5
8178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8179if test "${ac_cv_prog_STRIP+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
8181else
8182 if test -n "$STRIP"; then
8183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8184else
c6b750e1
DJ
8185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_STRIP="${ncn_progname}"
8193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196done
8197done
8198
be01d343
PB
8199fi
8200fi
c6b750e1 8201STRIP=$ac_cv_prog_STRIP
be01d343 8202if test -n "$STRIP"; then
c6b750e1
DJ
8203 echo "$as_me:$LINENO: result: $STRIP" >&5
8204echo "${ECHO_T}$STRIP" >&6
be01d343 8205else
c6b750e1
DJ
8206 echo "$as_me:$LINENO: result: no" >&5
8207echo "${ECHO_T}no" >&6
be01d343 8208fi
c6b750e1 8209
be01d343
PB
8210 fi
8211 test -n "$ac_cv_prog_STRIP" && break
8212done
8213
8214if test -z "$ac_cv_prog_STRIP" ; then
8215 STRIP=":"
8216fi
8217
9a819804
AO
8218
8219
8220if test -n "$WINDRES"; then
8221 ac_cv_prog_WINDRES=$WINDRES
8222elif test -n "$ac_cv_prog_WINDRES"; then
8223 WINDRES=$ac_cv_prog_WINDRES
8224fi
8225
8226if test -n "$ac_cv_prog_WINDRES"; then
8227 for ncn_progname in windres; do
8228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8229set dummy ${ncn_progname}; ac_word=$2
8230echo "$as_me:$LINENO: checking for $ac_word" >&5
8231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8232if test "${ac_cv_prog_WINDRES+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234else
8235 if test -n "$WINDRES"; then
8236 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245 ac_cv_prog_WINDRES="${ncn_progname}"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8248 fi
8249done
8250done
8251
8252fi
8253fi
8254WINDRES=$ac_cv_prog_WINDRES
8255if test -n "$WINDRES"; then
8256 echo "$as_me:$LINENO: result: $WINDRES" >&5
8257echo "${ECHO_T}$WINDRES" >&6
8258else
8259 echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6
8261fi
8262
8263 done
8264fi
8265
8266for ncn_progname in windres; do
05cbd757
PB
8267 if test -n "$ncn_tool_prefix"; then
8268 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8270echo "$as_me:$LINENO: checking for $ac_word" >&5
8271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272if test "${ac_cv_prog_WINDRES+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8274else
8275 if test -n "$WINDRES"; then
8276 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8277else
c6b750e1
DJ
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289done
8290done
8291
859789af
AC
8292fi
8293fi
c6b750e1 8294WINDRES=$ac_cv_prog_WINDRES
859789af 8295if test -n "$WINDRES"; then
c6b750e1
DJ
8296 echo "$as_me:$LINENO: result: $WINDRES" >&5
8297echo "${ECHO_T}$WINDRES" >&6
859789af 8298else
c6b750e1
DJ
8299 echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
859789af
AC
8301fi
8302
05cbd757
PB
8303 fi
8304 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8306set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8307echo "$as_me:$LINENO: checking for $ac_word" >&5
8308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8309if test "${ac_cv_prog_WINDRES+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8311else
05cbd757
PB
8312 if test -n "$WINDRES"; then
8313 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8314else
c6b750e1
DJ
8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_WINDRES="${ncn_progname}"
8323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326done
8327done
8328
859789af
AC
8329fi
8330fi
c6b750e1 8331WINDRES=$ac_cv_prog_WINDRES
05cbd757 8332if test -n "$WINDRES"; then
c6b750e1
DJ
8333 echo "$as_me:$LINENO: result: $WINDRES" >&5
8334echo "${ECHO_T}$WINDRES" >&6
859789af 8335else
c6b750e1
DJ
8336 echo "$as_me:$LINENO: result: no" >&5
8337echo "${ECHO_T}no" >&6
859789af 8338fi
c6b750e1 8339
05cbd757
PB
8340 fi
8341 test -n "$ac_cv_prog_WINDRES" && break
8342done
8343
8344if test -z "$ac_cv_prog_WINDRES" ; then
8345 set dummy windres
8346 if test $build = $host ; then
8347 WINDRES="$2"
859789af 8348 else
05cbd757 8349 WINDRES="${ncn_tool_prefix}$2"
859789af 8350 fi
859789af
AC
8351fi
8352
9a819804
AO
8353
8354
0c24b341
NC
8355if test -n "$WINDMC"; then
8356 ac_cv_prog_WINDMC=$WINDMC
8357elif test -n "$ac_cv_prog_WINDMC"; then
8358 WINDMC=$ac_cv_prog_WINDMC
8359fi
8360
8361if test -n "$ac_cv_prog_WINDMC"; then
8362 for ncn_progname in windmc; do
8363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8364set dummy ${ncn_progname}; ac_word=$2
8365echo "$as_me:$LINENO: checking for $ac_word" >&5
8366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8367if test "${ac_cv_prog_WINDMC+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369else
8370 if test -n "$WINDMC"; then
8371 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_WINDMC="${ncn_progname}"
8381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384done
8385done
8386
8387fi
8388fi
8389WINDMC=$ac_cv_prog_WINDMC
8390if test -n "$WINDMC"; then
8391 echo "$as_me:$LINENO: result: $WINDMC" >&5
8392echo "${ECHO_T}$WINDMC" >&6
8393else
8394 echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6
8396fi
8397
8398 done
8399fi
8400
8401for ncn_progname in windmc; do
8402 if test -n "$ncn_tool_prefix"; then
8403 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8404set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8405echo "$as_me:$LINENO: checking for $ac_word" >&5
8406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8407if test "${ac_cv_prog_WINDMC+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410 if test -n "$WINDMC"; then
8411 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424done
8425done
8426
8427fi
8428fi
8429WINDMC=$ac_cv_prog_WINDMC
8430if test -n "$WINDMC"; then
8431 echo "$as_me:$LINENO: result: $WINDMC" >&5
8432echo "${ECHO_T}$WINDMC" >&6
8433else
8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
8436fi
8437
8438 fi
8439 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441set dummy ${ncn_progname}; ac_word=$2
8442echo "$as_me:$LINENO: checking for $ac_word" >&5
8443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8444if test "${ac_cv_prog_WINDMC+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447 if test -n "$WINDMC"; then
8448 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8449else
8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8457 ac_cv_prog_WINDMC="${ncn_progname}"
8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461done
8462done
8463
8464fi
8465fi
8466WINDMC=$ac_cv_prog_WINDMC
8467if test -n "$WINDMC"; then
8468 echo "$as_me:$LINENO: result: $WINDMC" >&5
8469echo "${ECHO_T}$WINDMC" >&6
8470else
8471 echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6
8473fi
8474
8475 fi
8476 test -n "$ac_cv_prog_WINDMC" && break
8477done
8478
8479if test -z "$ac_cv_prog_WINDMC" ; then
8480 set dummy windmc
8481 if test $build = $host ; then
8482 WINDMC="$2"
8483 else
8484 WINDMC="${ncn_tool_prefix}$2"
8485 fi
8486fi
8487
8488
8489
9a819804
AO
8490if test -n "$OBJCOPY"; then
8491 ac_cv_prog_OBJCOPY=$OBJCOPY
8492elif test -n "$ac_cv_prog_OBJCOPY"; then
8493 OBJCOPY=$ac_cv_prog_OBJCOPY
8494fi
8495
8496if test -n "$ac_cv_prog_OBJCOPY"; then
8497 for ncn_progname in objcopy; do
8498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8499set dummy ${ncn_progname}; ac_word=$2
8500echo "$as_me:$LINENO: checking for $ac_word" >&5
8501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8502if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8504else
8505 if test -n "$OBJCOPY"; then
8506 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8507else
8508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509for as_dir in $PATH
8510do
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515 ac_cv_prog_OBJCOPY="${ncn_progname}"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8518 fi
8519done
8520done
8521
8522fi
8523fi
8524OBJCOPY=$ac_cv_prog_OBJCOPY
8525if test -n "$OBJCOPY"; then
8526 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8527echo "${ECHO_T}$OBJCOPY" >&6
8528else
8529 echo "$as_me:$LINENO: result: no" >&5
8530echo "${ECHO_T}no" >&6
8531fi
8532
8533 done
8534fi
8535
8536for ncn_progname in objcopy; do
05cbd757
PB
8537 if test -n "$ncn_tool_prefix"; then
8538 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8539set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8540echo "$as_me:$LINENO: checking for $ac_word" >&5
8541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8542if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8544else
8545 if test -n "$OBJCOPY"; then
8546 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8547else
c6b750e1
DJ
8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549for as_dir in $PATH
8550do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559done
8560done
8561
859789af
AC
8562fi
8563fi
c6b750e1 8564OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8565if test -n "$OBJCOPY"; then
c6b750e1
DJ
8566 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8567echo "${ECHO_T}$OBJCOPY" >&6
859789af 8568else
c6b750e1
DJ
8569 echo "$as_me:$LINENO: result: no" >&5
8570echo "${ECHO_T}no" >&6
859789af
AC
8571fi
8572
05cbd757
PB
8573 fi
8574 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8576set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8577echo "$as_me:$LINENO: checking for $ac_word" >&5
8578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8579if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8581else
05cbd757
PB
8582 if test -n "$OBJCOPY"; then
8583 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8584else
c6b750e1
DJ
8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_OBJCOPY="${ncn_progname}"
8593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596done
8597done
8598
859789af
AC
8599fi
8600fi
c6b750e1 8601OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8602if test -n "$OBJCOPY"; then
c6b750e1
DJ
8603 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8604echo "${ECHO_T}$OBJCOPY" >&6
859789af 8605else
c6b750e1
DJ
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
859789af 8608fi
c6b750e1 8609
05cbd757
PB
8610 fi
8611 test -n "$ac_cv_prog_OBJCOPY" && break
8612done
8613
8614if test -z "$ac_cv_prog_OBJCOPY" ; then
8615 set dummy objcopy
8616 if test $build = $host ; then
8617 OBJCOPY="$2"
859789af 8618 else
05cbd757 8619 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8620 fi
859789af
AC
8621fi
8622
9a819804
AO
8623
8624
8625if test -n "$OBJDUMP"; then
8626 ac_cv_prog_OBJDUMP=$OBJDUMP
8627elif test -n "$ac_cv_prog_OBJDUMP"; then
8628 OBJDUMP=$ac_cv_prog_OBJDUMP
8629fi
8630
8631if test -n "$ac_cv_prog_OBJDUMP"; then
8632 for ncn_progname in objdump; do
8633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8634set dummy ${ncn_progname}; ac_word=$2
8635echo "$as_me:$LINENO: checking for $ac_word" >&5
8636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639else
8640 if test -n "$OBJDUMP"; then
8641 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8642else
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650 ac_cv_prog_OBJDUMP="${ncn_progname}"
8651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654done
8655done
8656
8657fi
8658fi
8659OBJDUMP=$ac_cv_prog_OBJDUMP
8660if test -n "$OBJDUMP"; then
8661 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8662echo "${ECHO_T}$OBJDUMP" >&6
8663else
8664 echo "$as_me:$LINENO: result: no" >&5
8665echo "${ECHO_T}no" >&6
8666fi
8667
8668 done
8669fi
8670
8671for ncn_progname in objdump; do
05cbd757
PB
8672 if test -n "$ncn_tool_prefix"; then
8673 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8674set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8675echo "$as_me:$LINENO: checking for $ac_word" >&5
8676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8677if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8679else
8680 if test -n "$OBJDUMP"; then
8681 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8682else
c6b750e1
DJ
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694done
8695done
8696
859789af
AC
8697fi
8698fi
c6b750e1 8699OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8700if test -n "$OBJDUMP"; then
c6b750e1
DJ
8701 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8702echo "${ECHO_T}$OBJDUMP" >&6
859789af 8703else
c6b750e1
DJ
8704 echo "$as_me:$LINENO: result: no" >&5
8705echo "${ECHO_T}no" >&6
859789af
AC
8706fi
8707
05cbd757
PB
8708 fi
8709 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8711set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8712echo "$as_me:$LINENO: checking for $ac_word" >&5
8713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8714if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8716else
05cbd757
PB
8717 if test -n "$OBJDUMP"; then
8718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8719else
c6b750e1
DJ
8720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721for as_dir in $PATH
8722do
8723 IFS=$as_save_IFS
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_OBJDUMP="${ncn_progname}"
8728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 break 2
8730 fi
8731done
8732done
8733
859789af
AC
8734fi
8735fi
c6b750e1 8736OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8737if test -n "$OBJDUMP"; then
c6b750e1
DJ
8738 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8739echo "${ECHO_T}$OBJDUMP" >&6
859789af 8740else
c6b750e1
DJ
8741 echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
859789af 8743fi
c6b750e1 8744
05cbd757
PB
8745 fi
8746 test -n "$ac_cv_prog_OBJDUMP" && break
8747done
8748
8749if test -z "$ac_cv_prog_OBJDUMP" ; then
8750 set dummy objdump
8751 if test $build = $host ; then
8752 OBJDUMP="$2"
859789af 8753 else
05cbd757 8754 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8755 fi
859789af
AC
8756fi
8757
a0da8069
NN
8758
8759
8760
8761
8762
be01d343 8763# Target tools.
c6b750e1 8764
2429c060
PB
8765# Check whether --with-build-time-tools or --without-build-time-tools was given.
8766if test "${with_build_time_tools+set}" = set; then
8767 withval="$with_build_time_tools"
8768 case x"$withval" in
8769 x/*) ;;
8770 *)
8771 with_build_time_tools=
c6b750e1
DJ
8772 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8773echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8774 ;;
8775 esac
859789af 8776else
2429c060 8777 with_build_time_tools=
c6b750e1 8778fi;
859789af 8779
9a819804
AO
8780
8781
8782if test -n "$CC_FOR_TARGET"; then
8783 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8784elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8785 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8786fi
8787
8788if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8789 for ncn_progname in cc gcc; do
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791set dummy ${ncn_progname}; ac_word=$2
8792echo "$as_me:$LINENO: checking for $ac_word" >&5
8793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8794if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796else
8797 if test -n "$CC_FOR_TARGET"; then
8798 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8799else
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811done
8812done
8813
8814fi
8815fi
8816CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8817if test -n "$CC_FOR_TARGET"; then
8818 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8819echo "${ECHO_T}$CC_FOR_TARGET" >&6
8820else
8821 echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
8823fi
8824
8825 done
8826fi
8827
8828if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8829 for ncn_progname in cc gcc; do
c6b750e1
DJ
8830 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8831echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8832 if test -x $with_build_time_tools/${ncn_progname}; then
8833 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8834 echo "$as_me:$LINENO: result: yes" >&5
8835echo "${ECHO_T}yes" >&6
cac3d6c4 8836 break
2429c060 8837 else
c6b750e1
DJ
8838 echo "$as_me:$LINENO: result: no" >&5
8839echo "${ECHO_T}no" >&6
cac3d6c4
CM
8840 fi
8841 done
55db4b87
PB
8842fi
8843
2429c060
PB
8844if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8845 for ncn_progname in cc gcc; do
8846 if test -n "$ncn_target_tool_prefix"; then
8847 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8848set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8849echo "$as_me:$LINENO: checking for $ac_word" >&5
8850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8853else
8854 if test -n "$CC_FOR_TARGET"; then
8855 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8856else
c6b750e1
DJ
8857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858for as_dir in $PATH
8859do
8860 IFS=$as_save_IFS
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8864 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 break 2
8867 fi
8868done
8869done
8870
55db4b87
PB
8871fi
8872fi
c6b750e1 8873CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8874if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8875 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8876echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8877else
c6b750e1
DJ
8878 echo "$as_me:$LINENO: result: no" >&5
8879echo "${ECHO_T}no" >&6
55db4b87
PB
8880fi
8881
2429c060
PB
8882 fi
8883 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8885set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8886echo "$as_me:$LINENO: checking for $ac_word" >&5
8887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8888if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8890else
05cbd757
PB
8891 if test -n "$CC_FOR_TARGET"; then
8892 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8893else
c6b750e1
DJ
8894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8901 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 break 2
8904 fi
8905done
8906done
8907
55db4b87
PB
8908fi
8909fi
c6b750e1 8910CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8911if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8912 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8913echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8914else
c6b750e1
DJ
8915 echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
55db4b87 8917fi
c6b750e1 8918
2429c060
PB
8919 fi
8920 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8921 done
8922fi
c6b750e1 8923
05cbd757
PB
8924if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8925 set dummy cc gcc
8926 if test $build = $target ; then
8927 CC_FOR_TARGET="$2"
55db4b87 8928 else
05cbd757 8929 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8930 fi
d3f5afc4
MS
8931else
8932 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8933fi
8934
9a819804
AO
8935
8936
8937if test -n "$CXX_FOR_TARGET"; then
8938 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8939elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8940 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8941fi
8942
8943if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8944 for ncn_progname in c++ g++ cxx gxx; do
8945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8946set dummy ${ncn_progname}; ac_word=$2
8947echo "$as_me:$LINENO: checking for $ac_word" >&5
8948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8949if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951else
8952 if test -n "$CXX_FOR_TARGET"; then
8953 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8954else
8955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956for as_dir in $PATH
8957do
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 break 2
8965 fi
8966done
8967done
8968
8969fi
8970fi
8971CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8972if test -n "$CXX_FOR_TARGET"; then
8973 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8974echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8975else
8976 echo "$as_me:$LINENO: result: no" >&5
8977echo "${ECHO_T}no" >&6
8978fi
8979
8980 done
8981fi
8982
8983if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8984 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8985 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8986echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8987 if test -x $with_build_time_tools/${ncn_progname}; then
8988 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8989 echo "$as_me:$LINENO: result: yes" >&5
8990echo "${ECHO_T}yes" >&6
2429c060
PB
8991 break
8992 else
c6b750e1
DJ
8993 echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
2429c060
PB
8995 fi
8996 done
8997fi
8998
8999if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9000 for ncn_progname in c++ g++ cxx gxx; do
9001 if test -n "$ncn_target_tool_prefix"; then
9002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9003set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9004echo "$as_me:$LINENO: checking for $ac_word" >&5
9005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9006if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9008else
9009 if test -n "$CXX_FOR_TARGET"; then
9010 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9011else
c6b750e1
DJ
9012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013for as_dir in $PATH
9014do
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9019 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 break 2
9022 fi
9023done
9024done
9025
55db4b87
PB
9026fi
9027fi
c6b750e1 9028CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9029if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
9030 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9031echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 9032else
c6b750e1
DJ
9033 echo "$as_me:$LINENO: result: no" >&5
9034echo "${ECHO_T}no" >&6
55db4b87
PB
9035fi
9036
2429c060
PB
9037 fi
9038 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9040set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9041echo "$as_me:$LINENO: checking for $ac_word" >&5
9042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9043if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9045else
05cbd757
PB
9046 if test -n "$CXX_FOR_TARGET"; then
9047 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9048else
c6b750e1
DJ
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9059 fi
9060done
9061done
9062
55db4b87
PB
9063fi
9064fi
c6b750e1 9065CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9066if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
9067 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9068echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 9069else
c6b750e1
DJ
9070 echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
55db4b87 9072fi
c6b750e1 9073
2429c060
PB
9074 fi
9075 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9076 done
9077fi
c6b750e1 9078
05cbd757
PB
9079if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9080 set dummy c++ g++ cxx gxx
9081 if test $build = $target ; then
9082 CXX_FOR_TARGET="$2"
55db4b87 9083 else
05cbd757 9084 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9085 fi
d3f5afc4
MS
9086else
9087 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9088fi
9089
9a819804
AO
9090
9091
9092if test -n "$GCC_FOR_TARGET"; then
9093 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9094elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9095 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9096fi
9097
9098if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9099 for ncn_progname in gcc; do
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101set dummy ${ncn_progname}; ac_word=$2
9102echo "$as_me:$LINENO: checking for $ac_word" >&5
9103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9104if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107 if test -n "$GCC_FOR_TARGET"; then
9108 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9109else
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121done
9122done
9123
9124fi
9125fi
9126GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9127if test -n "$GCC_FOR_TARGET"; then
9128 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9129echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9130else
9131 echo "$as_me:$LINENO: result: no" >&5
9132echo "${ECHO_T}no" >&6
9133fi
9134
9135 done
9136fi
9137
9138if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9139 for ncn_progname in gcc; do
c6b750e1
DJ
9140 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9141echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9142 if test -x $with_build_time_tools/${ncn_progname}; then
9143 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9144 echo "$as_me:$LINENO: result: yes" >&5
9145echo "${ECHO_T}yes" >&6
2429c060
PB
9146 break
9147 else
c6b750e1
DJ
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
2429c060
PB
9150 fi
9151 done
9152fi
9153
9154if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9155 for ncn_progname in gcc; do
9156 if test -n "$ncn_target_tool_prefix"; then
9157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9158set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9159echo "$as_me:$LINENO: checking for $ac_word" >&5
9160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9161if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9163else
2429c060
PB
9164 if test -n "$GCC_FOR_TARGET"; then
9165 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9166else
c6b750e1
DJ
9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168for as_dir in $PATH
9169do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178done
9179done
9180
55db4b87
PB
9181fi
9182fi
c6b750e1 9183GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 9184if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
9185 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9186echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 9187else
c6b750e1
DJ
9188 echo "$as_me:$LINENO: result: no" >&5
9189echo "${ECHO_T}no" >&6
55db4b87
PB
9190fi
9191
2429c060
PB
9192 fi
9193 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9195set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9196echo "$as_me:$LINENO: checking for $ac_word" >&5
9197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9198if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9200else
05cbd757
PB
9201 if test -n "$GCC_FOR_TARGET"; then
9202 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9203else
c6b750e1
DJ
9204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205for as_dir in $PATH
9206do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9214 fi
9215done
9216done
9217
55db4b87
PB
9218fi
9219fi
c6b750e1 9220GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 9221if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
9222 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9223echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 9224else
c6b750e1
DJ
9225 echo "$as_me:$LINENO: result: no" >&5
9226echo "${ECHO_T}no" >&6
55db4b87 9227fi
c6b750e1 9228
2429c060
PB
9229 fi
9230 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9231 done
9232fi
c6b750e1 9233
05cbd757
PB
9234if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9235 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
9236else
9237 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
9238fi
9239
9a819804
AO
9240
9241
9242if test -n "$GCJ_FOR_TARGET"; then
9243 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9244elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9245 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9246fi
9247
9248if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9249 for ncn_progname in gcj; do
9250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9251set dummy ${ncn_progname}; ac_word=$2
9252echo "$as_me:$LINENO: checking for $ac_word" >&5
9253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9254if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256else
9257 if test -n "$GCJ_FOR_TARGET"; then
9258 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9259else
9260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261for as_dir in $PATH
9262do
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9267 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9270 fi
9271done
9272done
9273
9274fi
9275fi
9276GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9277if test -n "$GCJ_FOR_TARGET"; then
9278 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9279echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9280else
9281 echo "$as_me:$LINENO: result: no" >&5
9282echo "${ECHO_T}no" >&6
9283fi
9284
9285 done
9286fi
9287
9288if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9289 for ncn_progname in gcj; do
c6b750e1
DJ
9290 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9291echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9292 if test -x $with_build_time_tools/${ncn_progname}; then
9293 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9294 echo "$as_me:$LINENO: result: yes" >&5
9295echo "${ECHO_T}yes" >&6
2429c060
PB
9296 break
9297 else
c6b750e1
DJ
9298 echo "$as_me:$LINENO: result: no" >&5
9299echo "${ECHO_T}no" >&6
2429c060
PB
9300 fi
9301 done
9302fi
9303
9304if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9305 for ncn_progname in gcj; do
9306 if test -n "$ncn_target_tool_prefix"; then
9307 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9308set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9309echo "$as_me:$LINENO: checking for $ac_word" >&5
9310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9311if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9313else
9314 if test -n "$GCJ_FOR_TARGET"; then
9315 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9316else
c6b750e1
DJ
9317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318for as_dir in $PATH
9319do
9320 IFS=$as_save_IFS
9321 test -z "$as_dir" && as_dir=.
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9324 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9326 break 2
9327 fi
9328done
9329done
9330
55db4b87
PB
9331fi
9332fi
9a819804
AO
9333GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9334if test -n "$GCJ_FOR_TARGET"; then
9335 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9336echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9337else
9338 echo "$as_me:$LINENO: result: no" >&5
9339echo "${ECHO_T}no" >&6
9340fi
9341
9342 fi
9343 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_progname}; ac_word=$2
9346echo "$as_me:$LINENO: checking for $ac_word" >&5
9347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9348if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351 if test -n "$GCJ_FOR_TARGET"; then
9352 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9353else
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9361 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 break 2
9364 fi
9365done
9366done
9367
9368fi
9369fi
9370GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9371if test -n "$GCJ_FOR_TARGET"; then
9372 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9373echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9374else
9375 echo "$as_me:$LINENO: result: no" >&5
9376echo "${ECHO_T}no" >&6
9377fi
9378
9379 fi
9380 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9381 done
9382fi
9383
9384if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9385 set dummy gcj
9386 if test $build = $target ; then
9387 GCJ_FOR_TARGET="$2"
9388 else
9389 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9390 fi
d3f5afc4
MS
9391else
9392 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9393fi
9394
9395
9396
9397if test -n "$GFORTRAN_FOR_TARGET"; then
9398 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9399elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9400 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9401fi
9402
9a819804
AO
9403if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9404 for ncn_progname in gfortran; do
9405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9406set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9407echo "$as_me:$LINENO: checking for $ac_word" >&5
9408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9409if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 9410 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9411else
9a819804
AO
9412 if test -n "$GFORTRAN_FOR_TARGET"; then
9413 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9414else
c6b750e1
DJ
9415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416for as_dir in $PATH
9417do
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9422 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9425 fi
9426done
9427done
9428
55db4b87
PB
9429fi
9430fi
9a819804
AO
9431GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9432if test -n "$GFORTRAN_FOR_TARGET"; then
9433 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9434echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9435else
c6b750e1
DJ
9436 echo "$as_me:$LINENO: result: no" >&5
9437echo "${ECHO_T}no" >&6
55db4b87 9438fi
c6b750e1 9439
2429c060
PB
9440 done
9441fi
c6b750e1 9442
9a819804 9443if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9444 for ncn_progname in gfortran; do
c6b750e1
DJ
9445 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9446echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9447 if test -x $with_build_time_tools/${ncn_progname}; then
9448 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9449 echo "$as_me:$LINENO: result: yes" >&5
9450echo "${ECHO_T}yes" >&6
2429c060
PB
9451 break
9452 else
c6b750e1
DJ
9453 echo "$as_me:$LINENO: result: no" >&5
9454echo "${ECHO_T}no" >&6
2429c060
PB
9455 fi
9456 done
9457fi
9458
9459if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9460 for ncn_progname in gfortran; do
9461 if test -n "$ncn_target_tool_prefix"; then
9462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9463set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9464echo "$as_me:$LINENO: checking for $ac_word" >&5
9465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9466if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9468else
9469 if test -n "$GFORTRAN_FOR_TARGET"; then
9470 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9471else
c6b750e1
DJ
9472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473for as_dir in $PATH
9474do
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9482 fi
9483done
9484done
9485
55db4b87
PB
9486fi
9487fi
c6b750e1 9488GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9489if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9490 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9491echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9492else
c6b750e1
DJ
9493 echo "$as_me:$LINENO: result: no" >&5
9494echo "${ECHO_T}no" >&6
55db4b87
PB
9495fi
9496
2429c060
PB
9497 fi
9498 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9500set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9501echo "$as_me:$LINENO: checking for $ac_word" >&5
9502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9503if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9505else
05cbd757 9506 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9507 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9508else
9509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510for as_dir in $PATH
9511do
9512 IFS=$as_save_IFS
9513 test -z "$as_dir" && as_dir=.
9514 for ac_exec_ext in '' $ac_executable_extensions; do
9515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9516 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9518 break 2
9519 fi
9520done
9521done
9522
55db4b87
PB
9523fi
9524fi
c6b750e1 9525GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9526if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9527 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9528echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9529else
c6b750e1
DJ
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
55db4b87 9532fi
c6b750e1 9533
2429c060
PB
9534 fi
9535 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9536 done
9537fi
c6b750e1 9538
05cbd757
PB
9539if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9540 set dummy gfortran
9541 if test $build = $target ; then
9542 GFORTRAN_FOR_TARGET="$2"
55db4b87 9543 else
05cbd757 9544 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9545 fi
d3f5afc4
MS
9546else
9547 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9548fi
9549
2429c060
PB
9550
9551
2429c060
PB
9552cat > conftest.c << \EOF
9553#ifdef __GNUC__
9554 gcc_yay;
9555#endif
9556EOF
9557if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9558 have_gcc_for_target=yes
859789af 9559else
2429c060
PB
9560 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9561 have_gcc_for_target=no
859789af 9562fi
2429c060
PB
9563rm conftest.c
9564
9565
9566
859789af 9567
2429c060
PB
9568if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9569 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9570 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9571echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9572 if test -x $with_build_time_tools/ar; then
9573 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9574 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
9575 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9576echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 9577 else
c6b750e1
DJ
9578 echo "$as_me:$LINENO: result: no" >&5
9579echo "${ECHO_T}no" >&6
3a35eeb3 9580 fi
2429c060
PB
9581 elif test $build != $host && test $have_gcc_for_target = yes; then
9582 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9583 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9584 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9585 fi
2429c060 9586fi
c6b750e1 9587if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9588 # Extract the first word of "ar", so it can be a program name with args.
9589set dummy ar; ac_word=$2
c6b750e1
DJ
9590echo "$as_me:$LINENO: checking for $ac_word" >&5
9591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9592if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9594else
c6b750e1
DJ
9595 case $AR_FOR_TARGET in
9596 [\\/]* | ?:[\\/]*)
2429c060
PB
9597 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9598 ;;
2429c060 9599 *)
c6b750e1
DJ
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $gcc_cv_tool_dirs
9602do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9607 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 break 2
9610 fi
9611done
9612done
9613
2429c060
PB
9614 ;;
9615esac
859789af 9616fi
c6b750e1
DJ
9617AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9618
2429c060 9619if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9620 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9621echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 9622else
c6b750e1
DJ
9623 echo "$as_me:$LINENO: result: no" >&5
9624echo "${ECHO_T}no" >&6
859789af 9625fi
05cbd757 9626
2429c060
PB
9627fi
9628if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9629
9630
9631if test -n "$AR_FOR_TARGET"; then
9632 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9633elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9634 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9635fi
9636
9637if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9638 for ncn_progname in ar; do
9639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9640set dummy ${ncn_progname}; ac_word=$2
9641echo "$as_me:$LINENO: checking for $ac_word" >&5
9642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9643if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645else
9646 if test -n "$AR_FOR_TARGET"; then
9647 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9648else
9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9656 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9659 fi
9660done
9661done
9662
9663fi
9664fi
9665AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9666if test -n "$AR_FOR_TARGET"; then
9667 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9668echo "${ECHO_T}$AR_FOR_TARGET" >&6
9669else
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
9672fi
9673
9674 done
9675fi
9676
9677if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9678 for ncn_progname in ar; do
c6b750e1
DJ
9679 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9680echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9681 if test -x $with_build_time_tools/${ncn_progname}; then
9682 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9683 echo "$as_me:$LINENO: result: yes" >&5
9684echo "${ECHO_T}yes" >&6
2429c060
PB
9685 break
9686 else
c6b750e1
DJ
9687 echo "$as_me:$LINENO: result: no" >&5
9688echo "${ECHO_T}no" >&6
2429c060
PB
9689 fi
9690 done
859789af
AC
9691fi
9692
2429c060
PB
9693if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9694 for ncn_progname in ar; do
9695 if test -n "$ncn_target_tool_prefix"; then
9696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9697set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9698echo "$as_me:$LINENO: checking for $ac_word" >&5
9699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9700if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9702else
2429c060
PB
9703 if test -n "$AR_FOR_TARGET"; then
9704 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9705else
c6b750e1
DJ
9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707for as_dir in $PATH
9708do
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9715 break 2
9716 fi
9717done
9718done
9719
7e0f7140
GK
9720fi
9721fi
c6b750e1 9722AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9723if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9724 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9725echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9726else
c6b750e1
DJ
9727 echo "$as_me:$LINENO: result: no" >&5
9728echo "${ECHO_T}no" >&6
7e0f7140
GK
9729fi
9730
2429c060
PB
9731 fi
9732 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9734set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9735echo "$as_me:$LINENO: checking for $ac_word" >&5
9736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9737if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9739else
2429c060
PB
9740 if test -n "$AR_FOR_TARGET"; then
9741 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9742else
c6b750e1
DJ
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9750 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754done
9755done
9756
7e0f7140
GK
9757fi
9758fi
c6b750e1 9759AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9760if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9761 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9762echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9763else
c6b750e1
DJ
9764 echo "$as_me:$LINENO: result: no" >&5
9765echo "${ECHO_T}no" >&6
7e0f7140 9766fi
c6b750e1 9767
2429c060
PB
9768 fi
9769 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9770 done
9771fi
c6b750e1 9772
2429c060
PB
9773if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9774 set dummy ar
7e0f7140 9775 if test $build = $target ; then
2429c060 9776 AR_FOR_TARGET="$2"
7e0f7140 9777 else
2429c060 9778 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9779 fi
d3f5afc4
MS
9780else
9781 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9782fi
9783
3a35eeb3
PB
9784else
9785 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9786fi
9787
9788
9789
9790
9791if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9792 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9793 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9794echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9795 if test -x $with_build_time_tools/as; then
9796 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9797 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9798 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9799echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9800 else
c6b750e1
DJ
9801 echo "$as_me:$LINENO: result: no" >&5
9802echo "${ECHO_T}no" >&6
3a35eeb3 9803 fi
2429c060
PB
9804 elif test $build != $host && test $have_gcc_for_target = yes; then
9805 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9806 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9807 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9808 fi
9809fi
c6b750e1 9810if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9811 # Extract the first word of "as", so it can be a program name with args.
9812set dummy as; ac_word=$2
c6b750e1
DJ
9813echo "$as_me:$LINENO: checking for $ac_word" >&5
9814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9815if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9817else
c6b750e1
DJ
9818 case $AS_FOR_TARGET in
9819 [\\/]* | ?:[\\/]*)
2429c060
PB
9820 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9821 ;;
2429c060 9822 *)
c6b750e1
DJ
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $gcc_cv_tool_dirs
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834done
9835done
9836
2429c060
PB
9837 ;;
9838esac
9839fi
c6b750e1
DJ
9840AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9841
2429c060 9842if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9843 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9844echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9845else
c6b750e1
DJ
9846 echo "$as_me:$LINENO: result: no" >&5
9847echo "${ECHO_T}no" >&6
2429c060
PB
9848fi
9849
9850fi
9851if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9852
9853
9854if test -n "$AS_FOR_TARGET"; then
9855 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9856elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9857 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9858fi
9859
9860if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9861 for ncn_progname in as; do
9862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9863set dummy ${ncn_progname}; ac_word=$2
9864echo "$as_me:$LINENO: checking for $ac_word" >&5
9865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9866if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869 if test -n "$AS_FOR_TARGET"; then
9870 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9871else
9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9882 fi
9883done
9884done
9885
9886fi
9887fi
9888AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9889if test -n "$AS_FOR_TARGET"; then
9890 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9891echo "${ECHO_T}$AS_FOR_TARGET" >&6
9892else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895fi
9896
9897 done
9898fi
9899
9900if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9901 for ncn_progname in as; do
c6b750e1
DJ
9902 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9903echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9904 if test -x $with_build_time_tools/${ncn_progname}; then
9905 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9906 echo "$as_me:$LINENO: result: yes" >&5
9907echo "${ECHO_T}yes" >&6
2429c060
PB
9908 break
9909 else
c6b750e1
DJ
9910 echo "$as_me:$LINENO: result: no" >&5
9911echo "${ECHO_T}no" >&6
2429c060
PB
9912 fi
9913 done
9914fi
9915
9916if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9917 for ncn_progname in as; do
9918 if test -n "$ncn_target_tool_prefix"; then
9919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9920set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9921echo "$as_me:$LINENO: checking for $ac_word" >&5
9922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9923if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9925else
9926 if test -n "$AS_FOR_TARGET"; then
9927 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9928else
c6b750e1
DJ
9929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930for as_dir in $PATH
9931do
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9939 fi
9940done
9941done
9942
2429c060
PB
9943fi
9944fi
c6b750e1 9945AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9946if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9947 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9948echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9949else
c6b750e1
DJ
9950 echo "$as_me:$LINENO: result: no" >&5
9951echo "${ECHO_T}no" >&6
2429c060
PB
9952fi
9953
9954 fi
9955 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9957set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9958echo "$as_me:$LINENO: checking for $ac_word" >&5
9959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9960if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9962else
9963 if test -n "$AS_FOR_TARGET"; then
9964 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9965else
c6b750e1
DJ
9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967for as_dir in $PATH
9968do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977done
9978done
9979
2429c060
PB
9980fi
9981fi
c6b750e1 9982AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9983if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9984 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9985echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9986else
c6b750e1
DJ
9987 echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
2429c060 9989fi
c6b750e1 9990
2429c060
PB
9991 fi
9992 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9993 done
9994fi
c6b750e1 9995
2429c060
PB
9996if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9997 set dummy as
9998 if test $build = $target ; then
9999 AS_FOR_TARGET="$2"
10000 else
10001 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10002 fi
d3f5afc4
MS
10003else
10004 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
10005fi
10006
3a35eeb3
PB
10007else
10008 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
10009fi
10010
10011
10012
10013
10014if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10015 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10016 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
10017echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10018 if test -x $with_build_time_tools/dlltool; then
10019 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10020 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
10021 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10022echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 10023 else
c6b750e1
DJ
10024 echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
3a35eeb3 10026 fi
2429c060
PB
10027 elif test $build != $host && test $have_gcc_for_target = yes; then
10028 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
10029 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10030 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
10031 fi
10032fi
c6b750e1 10033if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10034 # Extract the first word of "dlltool", so it can be a program name with args.
10035set dummy dlltool; ac_word=$2
c6b750e1
DJ
10036echo "$as_me:$LINENO: checking for $ac_word" >&5
10037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10038if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10040else
c6b750e1
DJ
10041 case $DLLTOOL_FOR_TARGET in
10042 [\\/]* | ?:[\\/]*)
2429c060
PB
10043 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10044 ;;
2429c060 10045 *)
c6b750e1
DJ
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047for as_dir in $gcc_cv_tool_dirs
10048do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057done
10058done
10059
2429c060
PB
10060 ;;
10061esac
10062fi
c6b750e1
DJ
10063DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10064
2429c060 10065if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
10066 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10067echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 10068else
c6b750e1
DJ
10069 echo "$as_me:$LINENO: result: no" >&5
10070echo "${ECHO_T}no" >&6
2429c060
PB
10071fi
10072
10073fi
10074if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
10075
10076
10077if test -n "$DLLTOOL_FOR_TARGET"; then
10078 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10079elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10080 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10081fi
10082
10083if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10084 for ncn_progname in dlltool; do
10085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10086set dummy ${ncn_progname}; ac_word=$2
10087echo "$as_me:$LINENO: checking for $ac_word" >&5
10088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10089if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091else
10092 if test -n "$DLLTOOL_FOR_TARGET"; then
10093 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10094else
10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10105 fi
10106done
10107done
10108
10109fi
10110fi
10111DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10112if test -n "$DLLTOOL_FOR_TARGET"; then
10113 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10114echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10115else
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
10118fi
10119
10120 done
10121fi
10122
10123if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10124 for ncn_progname in dlltool; do
c6b750e1
DJ
10125 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10126echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10127 if test -x $with_build_time_tools/${ncn_progname}; then
10128 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10129 echo "$as_me:$LINENO: result: yes" >&5
10130echo "${ECHO_T}yes" >&6
2429c060
PB
10131 break
10132 else
c6b750e1
DJ
10133 echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
2429c060
PB
10135 fi
10136 done
10137fi
10138
10139if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10140 for ncn_progname in dlltool; do
10141 if test -n "$ncn_target_tool_prefix"; then
10142 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10143set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10144echo "$as_me:$LINENO: checking for $ac_word" >&5
10145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10146if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10148else
10149 if test -n "$DLLTOOL_FOR_TARGET"; then
10150 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10151else
c6b750e1
DJ
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163done
10164done
10165
2429c060
PB
10166fi
10167fi
c6b750e1 10168DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10169if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
10170 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10171echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 10172else
c6b750e1
DJ
10173 echo "$as_me:$LINENO: result: no" >&5
10174echo "${ECHO_T}no" >&6
2429c060
PB
10175fi
10176
10177 fi
10178 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10180set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10181echo "$as_me:$LINENO: checking for $ac_word" >&5
10182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10183if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10185else
10186 if test -n "$DLLTOOL_FOR_TARGET"; then
10187 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10188else
c6b750e1
DJ
10189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190for as_dir in $PATH
10191do
10192 IFS=$as_save_IFS
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10199 fi
10200done
10201done
10202
2429c060
PB
10203fi
10204fi
c6b750e1 10205DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10206if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
10207 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10208echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 10209else
c6b750e1
DJ
10210 echo "$as_me:$LINENO: result: no" >&5
10211echo "${ECHO_T}no" >&6
2429c060 10212fi
c6b750e1 10213
2429c060
PB
10214 fi
10215 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10216 done
10217fi
c6b750e1 10218
2429c060
PB
10219if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10220 set dummy dlltool
10221 if test $build = $target ; then
10222 DLLTOOL_FOR_TARGET="$2"
10223 else
10224 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10225 fi
d3f5afc4
MS
10226else
10227 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
10228fi
10229
3a35eeb3
PB
10230else
10231 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
10232fi
10233
10234
10235
10236
10237if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10238 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10239 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10240echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10241 if test -x $with_build_time_tools/ld; then
10242 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10243 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
10244 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10245echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 10246 else
c6b750e1
DJ
10247 echo "$as_me:$LINENO: result: no" >&5
10248echo "${ECHO_T}no" >&6
3a35eeb3 10249 fi
2429c060
PB
10250 elif test $build != $host && test $have_gcc_for_target = yes; then
10251 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
10252 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10253 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
10254 fi
10255fi
c6b750e1 10256if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10257 # Extract the first word of "ld", so it can be a program name with args.
10258set dummy ld; ac_word=$2
c6b750e1
DJ
10259echo "$as_me:$LINENO: checking for $ac_word" >&5
10260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10261if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10263else
c6b750e1
DJ
10264 case $LD_FOR_TARGET in
10265 [\\/]* | ?:[\\/]*)
2429c060
PB
10266 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10267 ;;
2429c060 10268 *)
c6b750e1
DJ
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270for as_dir in $gcc_cv_tool_dirs
10271do
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10276 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10279 fi
10280done
10281done
10282
2429c060
PB
10283 ;;
10284esac
10285fi
c6b750e1
DJ
10286LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10287
2429c060 10288if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10289 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10290echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10291else
c6b750e1
DJ
10292 echo "$as_me:$LINENO: result: no" >&5
10293echo "${ECHO_T}no" >&6
2429c060
PB
10294fi
10295
10296fi
10297if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
10298
10299
10300if test -n "$LD_FOR_TARGET"; then
10301 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10302elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10303 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10304fi
10305
10306if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10307 for ncn_progname in ld; do
10308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10309set dummy ${ncn_progname}; ac_word=$2
10310echo "$as_me:$LINENO: checking for $ac_word" >&5
10311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10312if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314else
10315 if test -n "$LD_FOR_TARGET"; then
10316 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10317else
10318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319for as_dir in $PATH
10320do
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10328 fi
10329done
10330done
10331
10332fi
10333fi
10334LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10335if test -n "$LD_FOR_TARGET"; then
10336 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10337echo "${ECHO_T}$LD_FOR_TARGET" >&6
10338else
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
10341fi
10342
10343 done
10344fi
10345
10346if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10347 for ncn_progname in ld; do
c6b750e1
DJ
10348 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10349echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10350 if test -x $with_build_time_tools/${ncn_progname}; then
10351 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10352 echo "$as_me:$LINENO: result: yes" >&5
10353echo "${ECHO_T}yes" >&6
2429c060
PB
10354 break
10355 else
c6b750e1
DJ
10356 echo "$as_me:$LINENO: result: no" >&5
10357echo "${ECHO_T}no" >&6
2429c060
PB
10358 fi
10359 done
10360fi
10361
10362if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10363 for ncn_progname in ld; do
10364 if test -n "$ncn_target_tool_prefix"; then
10365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10366set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10367echo "$as_me:$LINENO: checking for $ac_word" >&5
10368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10369if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10371else
10372 if test -n "$LD_FOR_TARGET"; then
10373 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10374else
c6b750e1
DJ
10375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386done
10387done
10388
2429c060
PB
10389fi
10390fi
c6b750e1 10391LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10392if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10393 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10394echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10395else
c6b750e1
DJ
10396 echo "$as_me:$LINENO: result: no" >&5
10397echo "${ECHO_T}no" >&6
2429c060
PB
10398fi
10399
10400 fi
10401 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10403set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10404echo "$as_me:$LINENO: checking for $ac_word" >&5
10405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10406if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10408else
10409 if test -n "$LD_FOR_TARGET"; then
10410 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10411else
c6b750e1
DJ
10412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10419 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 break 2
10422 fi
10423done
10424done
10425
2429c060
PB
10426fi
10427fi
c6b750e1 10428LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10429if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10430 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10431echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10432else
c6b750e1
DJ
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
2429c060 10435fi
c6b750e1 10436
2429c060
PB
10437 fi
10438 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10439 done
10440fi
c6b750e1 10441
2429c060
PB
10442if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10443 set dummy ld
10444 if test $build = $target ; then
10445 LD_FOR_TARGET="$2"
10446 else
10447 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10448 fi
d3f5afc4
MS
10449else
10450 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10451fi
10452
3a35eeb3
PB
10453else
10454 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10455fi
10456
10457
10458
10459
10460if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10461 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10462 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10463echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10464 if test -x $with_build_time_tools/lipo; then
10465 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10466 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
10467 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10468echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 10469 else
c6b750e1
DJ
10470 echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6
3a35eeb3 10472 fi
2429c060
PB
10473 elif test $build != $host && test $have_gcc_for_target = yes; then
10474 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10475 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10476 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10477 fi
10478fi
9a819804
AO
10479if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10480 # Extract the first word of "lipo", so it can be a program name with args.
10481set dummy lipo; ac_word=$2
10482echo "$as_me:$LINENO: checking for $ac_word" >&5
10483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10484if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486else
10487 case $LIPO_FOR_TARGET in
10488 [\\/]* | ?:[\\/]*)
10489 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10490 ;;
10491 *)
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493for as_dir in $gcc_cv_tool_dirs
10494do
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10499 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10502 fi
10503done
10504done
10505
10506 ;;
10507esac
10508fi
10509LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10510
10511if test -n "$LIPO_FOR_TARGET"; then
10512 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10513echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10514else
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
10517fi
10518
10519fi
10520if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10521
10522
10523if test -n "$LIPO_FOR_TARGET"; then
10524 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10525elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10526 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10527fi
10528
10529if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10530 for ncn_progname in lipo; do
10531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10532set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10533echo "$as_me:$LINENO: checking for $ac_word" >&5
10534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 10535if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 10536 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10537else
9a819804
AO
10538 if test -n "$LIPO_FOR_TARGET"; then
10539 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10540else
10541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542for as_dir in $PATH
c6b750e1
DJ
10543do
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10548 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
10549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10551 fi
10552done
10553done
10554
2429c060 10555fi
9a819804
AO
10556fi
10557LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10558if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10559 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10560echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10561else
c6b750e1
DJ
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
2429c060
PB
10564fi
10565
9a819804 10566 done
2429c060 10567fi
9a819804
AO
10568
10569if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10570 for ncn_progname in lipo; do
c6b750e1
DJ
10571 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10572echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10573 if test -x $with_build_time_tools/${ncn_progname}; then
10574 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10575 echo "$as_me:$LINENO: result: yes" >&5
10576echo "${ECHO_T}yes" >&6
2429c060
PB
10577 break
10578 else
c6b750e1
DJ
10579 echo "$as_me:$LINENO: result: no" >&5
10580echo "${ECHO_T}no" >&6
2429c060
PB
10581 fi
10582 done
10583fi
10584
10585if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10586 for ncn_progname in lipo; do
10587 if test -n "$ncn_target_tool_prefix"; then
10588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10589set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10590echo "$as_me:$LINENO: checking for $ac_word" >&5
10591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10592if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10594else
10595 if test -n "$LIPO_FOR_TARGET"; then
10596 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10597else
c6b750e1
DJ
10598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599for as_dir in $PATH
10600do
10601 IFS=$as_save_IFS
10602 test -z "$as_dir" && as_dir=.
10603 for ac_exec_ext in '' $ac_executable_extensions; do
10604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10605 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 break 2
10608 fi
10609done
10610done
10611
2429c060
PB
10612fi
10613fi
c6b750e1 10614LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10615if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10616 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10617echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10618else
c6b750e1
DJ
10619 echo "$as_me:$LINENO: result: no" >&5
10620echo "${ECHO_T}no" >&6
2429c060
PB
10621fi
10622
10623 fi
10624 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10626set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10627echo "$as_me:$LINENO: checking for $ac_word" >&5
10628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10631else
10632 if test -n "$LIPO_FOR_TARGET"; then
10633 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10634else
c6b750e1
DJ
10635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636for as_dir in $PATH
10637do
10638 IFS=$as_save_IFS
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10642 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 break 2
10645 fi
10646done
10647done
10648
2429c060
PB
10649fi
10650fi
c6b750e1 10651LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10652if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10653 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10654echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10655else
c6b750e1
DJ
10656 echo "$as_me:$LINENO: result: no" >&5
10657echo "${ECHO_T}no" >&6
2429c060 10658fi
c6b750e1 10659
2429c060
PB
10660 fi
10661 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10662 done
10663fi
c6b750e1 10664
2429c060
PB
10665if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10666 set dummy lipo
10667 if test $build = $target ; then
10668 LIPO_FOR_TARGET="$2"
10669 else
10670 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10671 fi
d3f5afc4
MS
10672else
10673 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10674fi
10675
3a35eeb3
PB
10676else
10677 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10678fi
10679
10680
10681
10682
10683if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10684 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10685 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10686echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10687 if test -x $with_build_time_tools/nm; then
10688 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10689 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10690 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10691echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10692 else
c6b750e1
DJ
10693 echo "$as_me:$LINENO: result: no" >&5
10694echo "${ECHO_T}no" >&6
3a35eeb3 10695 fi
2429c060
PB
10696 elif test $build != $host && test $have_gcc_for_target = yes; then
10697 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10698 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10699 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10700 fi
10701fi
c6b750e1 10702if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10703 # Extract the first word of "nm", so it can be a program name with args.
10704set dummy nm; ac_word=$2
c6b750e1
DJ
10705echo "$as_me:$LINENO: checking for $ac_word" >&5
10706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10707if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10709else
c6b750e1
DJ
10710 case $NM_FOR_TARGET in
10711 [\\/]* | ?:[\\/]*)
2429c060
PB
10712 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10713 ;;
2429c060 10714 *)
c6b750e1
DJ
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716for as_dir in $gcc_cv_tool_dirs
10717do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10722 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10725 fi
10726done
10727done
10728
2429c060
PB
10729 ;;
10730esac
10731fi
c6b750e1
DJ
10732NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10733
2429c060 10734if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10735 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10736echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10737else
c6b750e1
DJ
10738 echo "$as_me:$LINENO: result: no" >&5
10739echo "${ECHO_T}no" >&6
2429c060
PB
10740fi
10741
10742fi
10743if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10744
10745
10746if test -n "$NM_FOR_TARGET"; then
10747 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10748elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10749 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10750fi
10751
10752if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10753 for ncn_progname in nm; do
10754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10755set dummy ${ncn_progname}; ac_word=$2
10756echo "$as_me:$LINENO: checking for $ac_word" >&5
10757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10758if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760else
10761 if test -n "$NM_FOR_TARGET"; then
10762 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10763else
10764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765for as_dir in $PATH
10766do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10774 fi
10775done
10776done
10777
10778fi
10779fi
10780NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10781if test -n "$NM_FOR_TARGET"; then
10782 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10783echo "${ECHO_T}$NM_FOR_TARGET" >&6
10784else
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
10787fi
10788
10789 done
10790fi
10791
10792if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10793 for ncn_progname in nm; do
c6b750e1
DJ
10794 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10795echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10796 if test -x $with_build_time_tools/${ncn_progname}; then
10797 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10798 echo "$as_me:$LINENO: result: yes" >&5
10799echo "${ECHO_T}yes" >&6
2429c060
PB
10800 break
10801 else
c6b750e1
DJ
10802 echo "$as_me:$LINENO: result: no" >&5
10803echo "${ECHO_T}no" >&6
2429c060
PB
10804 fi
10805 done
10806fi
10807
10808if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10809 for ncn_progname in nm; do
10810 if test -n "$ncn_target_tool_prefix"; then
10811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10812set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10813echo "$as_me:$LINENO: checking for $ac_word" >&5
10814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10815if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10817else
55db4b87
PB
10818 if test -n "$NM_FOR_TARGET"; then
10819 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10820else
c6b750e1
DJ
10821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822for as_dir in $PATH
10823do
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 break 2
10831 fi
10832done
10833done
10834
859789af
AC
10835fi
10836fi
c6b750e1 10837NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10838if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10839 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10840echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10841else
c6b750e1
DJ
10842 echo "$as_me:$LINENO: result: no" >&5
10843echo "${ECHO_T}no" >&6
859789af
AC
10844fi
10845
2429c060
PB
10846 fi
10847 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10849set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10850echo "$as_me:$LINENO: checking for $ac_word" >&5
10851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10852if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10854else
05cbd757
PB
10855 if test -n "$NM_FOR_TARGET"; then
10856 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10857else
c6b750e1
DJ
10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859for as_dir in $PATH
10860do
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10868 fi
10869done
10870done
10871
859789af
AC
10872fi
10873fi
c6b750e1 10874NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10875if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10876 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10877echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10878else
c6b750e1
DJ
10879 echo "$as_me:$LINENO: result: no" >&5
10880echo "${ECHO_T}no" >&6
859789af 10881fi
c6b750e1 10882
2429c060
PB
10883 fi
10884 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10885 done
10886fi
c6b750e1 10887
05cbd757
PB
10888if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10889 set dummy nm
10890 if test $build = $target ; then
10891 NM_FOR_TARGET="$2"
859789af 10892 else
05cbd757 10893 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10894 fi
d3f5afc4
MS
10895else
10896 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10897fi
10898
3a35eeb3
PB
10899else
10900 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10901fi
10902
10903
10904
10905
10906if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10907 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10908 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10909echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10910 if test -x $with_build_time_tools/objdump; then
10911 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10912 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10913 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10914echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10915 else
c6b750e1
DJ
10916 echo "$as_me:$LINENO: result: no" >&5
10917echo "${ECHO_T}no" >&6
3a35eeb3 10918 fi
2429c060
PB
10919 elif test $build != $host && test $have_gcc_for_target = yes; then
10920 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10921 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10922 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10923 fi
10924fi
c6b750e1 10925if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10926 # Extract the first word of "objdump", so it can be a program name with args.
10927set dummy objdump; ac_word=$2
c6b750e1
DJ
10928echo "$as_me:$LINENO: checking for $ac_word" >&5
10929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10930if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10932else
c6b750e1
DJ
10933 case $OBJDUMP_FOR_TARGET in
10934 [\\/]* | ?:[\\/]*)
2429c060
PB
10935 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10936 ;;
2429c060 10937 *)
c6b750e1
DJ
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939for as_dir in $gcc_cv_tool_dirs
10940do
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10945 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10948 fi
10949done
10950done
10951
2429c060
PB
10952 ;;
10953esac
10954fi
c6b750e1
DJ
10955OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10956
2429c060 10957if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10958 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10959echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10960else
c6b750e1
DJ
10961 echo "$as_me:$LINENO: result: no" >&5
10962echo "${ECHO_T}no" >&6
2429c060
PB
10963fi
10964
10965fi
10966if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10967
10968
10969if test -n "$OBJDUMP_FOR_TARGET"; then
10970 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10971elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10972 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10973fi
10974
10975if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10976 for ncn_progname in objdump; do
10977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10978set dummy ${ncn_progname}; ac_word=$2
10979echo "$as_me:$LINENO: checking for $ac_word" >&5
10980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10981if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983else
10984 if test -n "$OBJDUMP_FOR_TARGET"; then
10985 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10986else
10987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988for as_dir in $PATH
10989do
10990 IFS=$as_save_IFS
10991 test -z "$as_dir" && as_dir=.
10992 for ac_exec_ext in '' $ac_executable_extensions; do
10993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10994 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 break 2
10997 fi
10998done
10999done
11000
11001fi
11002fi
11003OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11004if test -n "$OBJDUMP_FOR_TARGET"; then
11005 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11006echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11007else
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
11010fi
11011
11012 done
11013fi
11014
11015if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11016 for ncn_progname in objdump; do
c6b750e1
DJ
11017 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11018echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11019 if test -x $with_build_time_tools/${ncn_progname}; then
11020 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11021 echo "$as_me:$LINENO: result: yes" >&5
11022echo "${ECHO_T}yes" >&6
2429c060
PB
11023 break
11024 else
c6b750e1
DJ
11025 echo "$as_me:$LINENO: result: no" >&5
11026echo "${ECHO_T}no" >&6
2429c060
PB
11027 fi
11028 done
11029fi
11030
11031if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11032 for ncn_progname in objdump; do
11033 if test -n "$ncn_target_tool_prefix"; then
11034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11036echo "$as_me:$LINENO: checking for $ac_word" >&5
11037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11038if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
11040else
11041 if test -n "$OBJDUMP_FOR_TARGET"; then
11042 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11043else
c6b750e1
DJ
11044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045for as_dir in $PATH
11046do
11047 IFS=$as_save_IFS
11048 test -z "$as_dir" && as_dir=.
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11051 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11053 break 2
11054 fi
11055done
11056done
11057
5ae72758
DJ
11058fi
11059fi
c6b750e1 11060OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11061if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
11062 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11063echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 11064else
c6b750e1
DJ
11065 echo "$as_me:$LINENO: result: no" >&5
11066echo "${ECHO_T}no" >&6
5ae72758
DJ
11067fi
11068
2429c060
PB
11069 fi
11070 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 11072set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11073echo "$as_me:$LINENO: checking for $ac_word" >&5
11074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11075if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
11077else
11078 if test -n "$OBJDUMP_FOR_TARGET"; then
11079 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11080else
c6b750e1
DJ
11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $PATH
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11091 fi
11092done
11093done
11094
5ae72758
DJ
11095fi
11096fi
c6b750e1 11097OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11098if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
11099 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11100echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 11101else
c6b750e1
DJ
11102 echo "$as_me:$LINENO: result: no" >&5
11103echo "${ECHO_T}no" >&6
5ae72758 11104fi
c6b750e1 11105
2429c060
PB
11106 fi
11107 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11108 done
11109fi
c6b750e1 11110
5ae72758
DJ
11111if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11112 set dummy objdump
11113 if test $build = $target ; then
11114 OBJDUMP_FOR_TARGET="$2"
11115 else
11116 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11117 fi
d3f5afc4
MS
11118else
11119 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
11120fi
11121
3a35eeb3
PB
11122else
11123 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
11124fi
11125
11126
11127
11128
11129if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11130 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11131 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11132echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11133 if test -x $with_build_time_tools/ranlib; then
11134 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11135 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
11136 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11137echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 11138 else
c6b750e1
DJ
11139 echo "$as_me:$LINENO: result: no" >&5
11140echo "${ECHO_T}no" >&6
3a35eeb3 11141 fi
2429c060
PB
11142 elif test $build != $host && test $have_gcc_for_target = yes; then
11143 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
11144 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11145 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
11146 fi
11147fi
c6b750e1 11148if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11149 # Extract the first word of "ranlib", so it can be a program name with args.
11150set dummy ranlib; ac_word=$2
c6b750e1
DJ
11151echo "$as_me:$LINENO: checking for $ac_word" >&5
11152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11153if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11155else
c6b750e1
DJ
11156 case $RANLIB_FOR_TARGET in
11157 [\\/]* | ?:[\\/]*)
2429c060
PB
11158 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11159 ;;
2429c060 11160 *)
c6b750e1
DJ
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $gcc_cv_tool_dirs
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 break 2
11171 fi
11172done
11173done
11174
2429c060
PB
11175 ;;
11176esac
11177fi
c6b750e1
DJ
11178RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11179
2429c060 11180if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
11181 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11182echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 11183else
c6b750e1
DJ
11184 echo "$as_me:$LINENO: result: no" >&5
11185echo "${ECHO_T}no" >&6
2429c060
PB
11186fi
11187
11188fi
11189if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
11190
11191
11192if test -n "$RANLIB_FOR_TARGET"; then
11193 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11194elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11195 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11196fi
11197
11198if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11199 for ncn_progname in ranlib; do
11200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11201set dummy ${ncn_progname}; ac_word=$2
11202echo "$as_me:$LINENO: checking for $ac_word" >&5
11203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11204if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207 if test -n "$RANLIB_FOR_TARGET"; then
11208 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11209else
11210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211for as_dir in $PATH
11212do
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11220 fi
11221done
11222done
11223
11224fi
11225fi
11226RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11227if test -n "$RANLIB_FOR_TARGET"; then
11228 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11229echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11230else
11231 echo "$as_me:$LINENO: result: no" >&5
11232echo "${ECHO_T}no" >&6
11233fi
11234
11235 done
11236fi
11237
11238if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11239 for ncn_progname in ranlib; do
c6b750e1
DJ
11240 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11241echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11242 if test -x $with_build_time_tools/${ncn_progname}; then
11243 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11244 echo "$as_me:$LINENO: result: yes" >&5
11245echo "${ECHO_T}yes" >&6
2429c060
PB
11246 break
11247 else
c6b750e1
DJ
11248 echo "$as_me:$LINENO: result: no" >&5
11249echo "${ECHO_T}no" >&6
2429c060
PB
11250 fi
11251 done
11252fi
11253
11254if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11255 for ncn_progname in ranlib; do
11256 if test -n "$ncn_target_tool_prefix"; then
11257 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 11258set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11259echo "$as_me:$LINENO: checking for $ac_word" >&5
11260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11261if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11263else
55db4b87
PB
11264 if test -n "$RANLIB_FOR_TARGET"; then
11265 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11266else
c6b750e1
DJ
11267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268for as_dir in $PATH
11269do
11270 IFS=$as_save_IFS
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 break 2
11277 fi
11278done
11279done
11280
859789af
AC
11281fi
11282fi
c6b750e1 11283RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 11284if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
11285 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11286echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 11287else
c6b750e1
DJ
11288 echo "$as_me:$LINENO: result: no" >&5
11289echo "${ECHO_T}no" >&6
859789af
AC
11290fi
11291
2429c060
PB
11292 fi
11293 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11295set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11296echo "$as_me:$LINENO: checking for $ac_word" >&5
11297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11298if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11300else
05cbd757
PB
11301 if test -n "$RANLIB_FOR_TARGET"; then
11302 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11303else
c6b750e1
DJ
11304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305for as_dir in $PATH
11306do
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 break 2
11314 fi
11315done
11316done
11317
859789af
AC
11318fi
11319fi
c6b750e1 11320RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 11321if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
11322 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11323echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 11324else
c6b750e1
DJ
11325 echo "$as_me:$LINENO: result: no" >&5
11326echo "${ECHO_T}no" >&6
859789af 11327fi
c6b750e1 11328
2429c060
PB
11329 fi
11330 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11331 done
11332fi
c6b750e1 11333
2429c060
PB
11334if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11335 set dummy ranlib
11336 if test $build = $target ; then
11337 RANLIB_FOR_TARGET="$2"
11338 else
11339 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11340 fi
d3f5afc4
MS
11341else
11342 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 11343fi
05cbd757 11344
3a35eeb3
PB
11345else
11346 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
11347fi
11348
2429c060
PB
11349
11350
11351
11352if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11353 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11354 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11355echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11356 if test -x $with_build_time_tools/strip; then
11357 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11358 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
11359 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11360echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 11361 else
c6b750e1
DJ
11362 echo "$as_me:$LINENO: result: no" >&5
11363echo "${ECHO_T}no" >&6
3a35eeb3 11364 fi
2429c060
PB
11365 elif test $build != $host && test $have_gcc_for_target = yes; then
11366 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11367 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11368 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11369 fi
11370fi
c6b750e1 11371if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11372 # Extract the first word of "strip", so it can be a program name with args.
11373set dummy strip; ac_word=$2
c6b750e1
DJ
11374echo "$as_me:$LINENO: checking for $ac_word" >&5
11375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11376if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11378else
c6b750e1
DJ
11379 case $STRIP_FOR_TARGET in
11380 [\\/]* | ?:[\\/]*)
2429c060
PB
11381 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11382 ;;
2429c060 11383 *)
c6b750e1
DJ
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385for as_dir in $gcc_cv_tool_dirs
11386do
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 break 2
11394 fi
11395done
11396done
11397
2429c060
PB
11398 ;;
11399esac
11400fi
c6b750e1
DJ
11401STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11402
2429c060 11403if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11404 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11405echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 11406else
c6b750e1
DJ
11407 echo "$as_me:$LINENO: result: no" >&5
11408echo "${ECHO_T}no" >&6
2429c060
PB
11409fi
11410
11411fi
11412if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11413
11414
11415if test -n "$STRIP_FOR_TARGET"; then
11416 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11417elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11418 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11419fi
11420
11421if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11422 for ncn_progname in strip; do
11423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424set dummy ${ncn_progname}; ac_word=$2
11425echo "$as_me:$LINENO: checking for $ac_word" >&5
11426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11427if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429else
11430 if test -n "$STRIP_FOR_TARGET"; then
11431 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11432else
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444done
11445done
11446
11447fi
11448fi
11449STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11450if test -n "$STRIP_FOR_TARGET"; then
11451 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11452echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11453else
11454 echo "$as_me:$LINENO: result: no" >&5
11455echo "${ECHO_T}no" >&6
11456fi
11457
11458 done
11459fi
11460
11461if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11462 for ncn_progname in strip; do
c6b750e1
DJ
11463 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11464echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11465 if test -x $with_build_time_tools/${ncn_progname}; then
11466 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11467 echo "$as_me:$LINENO: result: yes" >&5
11468echo "${ECHO_T}yes" >&6
2429c060
PB
11469 break
11470 else
c6b750e1
DJ
11471 echo "$as_me:$LINENO: result: no" >&5
11472echo "${ECHO_T}no" >&6
2429c060
PB
11473 fi
11474 done
11475fi
11476
11477if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11478 for ncn_progname in strip; do
11479 if test -n "$ncn_target_tool_prefix"; then
11480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11481set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11482echo "$as_me:$LINENO: checking for $ac_word" >&5
11483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11484if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11486else
11487 if test -n "$STRIP_FOR_TARGET"; then
11488 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11489else
11490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH
11492do
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11497 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11500 fi
11501done
11502done
11503
7e0f7140
GK
11504fi
11505fi
c6b750e1 11506STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11507if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11508 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11509echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11510else
c6b750e1
DJ
11511 echo "$as_me:$LINENO: result: no" >&5
11512echo "${ECHO_T}no" >&6
7e0f7140
GK
11513fi
11514
2429c060
PB
11515 fi
11516 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11518set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11519echo "$as_me:$LINENO: checking for $ac_word" >&5
11520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11521if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11523else
11524 if test -n "$STRIP_FOR_TARGET"; then
11525 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11526else
c6b750e1
DJ
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11534 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11537 fi
11538done
11539done
11540
7e0f7140
GK
11541fi
11542fi
c6b750e1 11543STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11544if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11545 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11546echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11547else
c6b750e1
DJ
11548 echo "$as_me:$LINENO: result: no" >&5
11549echo "${ECHO_T}no" >&6
7e0f7140 11550fi
c6b750e1 11551
2429c060
PB
11552 fi
11553 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11554 done
11555fi
c6b750e1 11556
7e0f7140
GK
11557if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11558 set dummy strip
11559 if test $build = $target ; then
11560 STRIP_FOR_TARGET="$2"
11561 else
11562 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11563 fi
d3f5afc4
MS
11564else
11565 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11566fi
11567
3a35eeb3
PB
11568else
11569 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11570fi
11571
11572
11573
11574
11575if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11576 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11577 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11578echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11579 if test -x $with_build_time_tools/windres; then
11580 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11581 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
11582 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11583echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 11584 else
c6b750e1
DJ
11585 echo "$as_me:$LINENO: result: no" >&5
11586echo "${ECHO_T}no" >&6
3a35eeb3 11587 fi
2429c060
PB
11588 elif test $build != $host && test $have_gcc_for_target = yes; then
11589 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11590 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11591 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11592 fi
11593fi
c6b750e1 11594if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11595 # Extract the first word of "windres", so it can be a program name with args.
11596set dummy windres; ac_word=$2
c6b750e1
DJ
11597echo "$as_me:$LINENO: checking for $ac_word" >&5
11598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11599if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11601else
c6b750e1
DJ
11602 case $WINDRES_FOR_TARGET in
11603 [\\/]* | ?:[\\/]*)
2429c060
PB
11604 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11605 ;;
2429c060 11606 *)
c6b750e1
DJ
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608for as_dir in $gcc_cv_tool_dirs
11609do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11617 fi
11618done
11619done
11620
2429c060
PB
11621 ;;
11622esac
11623fi
c6b750e1
DJ
11624WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11625
2429c060 11626if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11627 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11628echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 11629else
c6b750e1
DJ
11630 echo "$as_me:$LINENO: result: no" >&5
11631echo "${ECHO_T}no" >&6
2429c060
PB
11632fi
11633
11634fi
11635if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11636
11637
11638if test -n "$WINDRES_FOR_TARGET"; then
11639 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11640elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11641 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11642fi
11643
11644if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11645 for ncn_progname in windres; do
11646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11647set dummy ${ncn_progname}; ac_word=$2
11648echo "$as_me:$LINENO: checking for $ac_word" >&5
11649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11650if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653 if test -n "$WINDRES_FOR_TARGET"; then
11654 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11655else
11656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11666 fi
11667done
11668done
11669
11670fi
11671fi
11672WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11673if test -n "$WINDRES_FOR_TARGET"; then
11674 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11675echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11676else
11677 echo "$as_me:$LINENO: result: no" >&5
11678echo "${ECHO_T}no" >&6
11679fi
11680
11681 done
11682fi
11683
11684if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11685 for ncn_progname in windres; do
c6b750e1
DJ
11686 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11687echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11688 if test -x $with_build_time_tools/${ncn_progname}; then
11689 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11690 echo "$as_me:$LINENO: result: yes" >&5
11691echo "${ECHO_T}yes" >&6
2429c060
PB
11692 break
11693 else
c6b750e1
DJ
11694 echo "$as_me:$LINENO: result: no" >&5
11695echo "${ECHO_T}no" >&6
2429c060
PB
11696 fi
11697 done
11698fi
11699
11700if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11701 for ncn_progname in windres; do
11702 if test -n "$ncn_target_tool_prefix"; then
11703 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11704set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11705echo "$as_me:$LINENO: checking for $ac_word" >&5
11706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11707if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11709else
55db4b87
PB
11710 if test -n "$WINDRES_FOR_TARGET"; then
11711 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11712else
c6b750e1
DJ
11713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714for as_dir in $PATH
11715do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11720 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11723 fi
11724done
11725done
11726
859789af
AC
11727fi
11728fi
c6b750e1 11729WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11730if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11731 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11732echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11733else
c6b750e1
DJ
11734 echo "$as_me:$LINENO: result: no" >&5
11735echo "${ECHO_T}no" >&6
859789af
AC
11736fi
11737
2429c060
PB
11738 fi
11739 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11741set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11742echo "$as_me:$LINENO: checking for $ac_word" >&5
11743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11744if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11746else
05cbd757
PB
11747 if test -n "$WINDRES_FOR_TARGET"; then
11748 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11749else
c6b750e1
DJ
11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751for as_dir in $PATH
11752do
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11757 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11760 fi
11761done
11762done
11763
859789af
AC
11764fi
11765fi
c6b750e1 11766WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11767if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11768 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11769echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11770else
c6b750e1
DJ
11771 echo "$as_me:$LINENO: result: no" >&5
11772echo "${ECHO_T}no" >&6
859789af 11773fi
c6b750e1 11774
2429c060
PB
11775 fi
11776 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11777 done
11778fi
c6b750e1 11779
05cbd757
PB
11780if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11781 set dummy windres
11782 if test $build = $target ; then
11783 WINDRES_FOR_TARGET="$2"
859789af 11784 else
05cbd757 11785 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11786 fi
d3f5afc4
MS
11787else
11788 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11789fi
11790
3a35eeb3
PB
11791else
11792 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11793fi
11794
852e5f18 11795
0c24b341
NC
11796
11797
11798if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11799 if test -n "$with_build_time_tools"; then
11800 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11801echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11802 if test -x $with_build_time_tools/windmc; then
11803 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11804 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11805 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11806echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11807 else
11808 echo "$as_me:$LINENO: result: no" >&5
11809echo "${ECHO_T}no" >&6
11810 fi
11811 elif test $build != $host && test $have_gcc_for_target = yes; then
11812 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11813 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11814 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11815 fi
11816fi
11817if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11818 # Extract the first word of "windmc", so it can be a program name with args.
11819set dummy windmc; ac_word=$2
11820echo "$as_me:$LINENO: checking for $ac_word" >&5
11821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11822if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824else
11825 case $WINDMC_FOR_TARGET in
11826 [\\/]* | ?:[\\/]*)
11827 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11828 ;;
11829 *)
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831for as_dir in $gcc_cv_tool_dirs
11832do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 break 2
11840 fi
11841done
11842done
11843
11844 ;;
11845esac
11846fi
11847WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11848
11849if test -n "$WINDMC_FOR_TARGET"; then
11850 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11851echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11852else
11853 echo "$as_me:$LINENO: result: no" >&5
11854echo "${ECHO_T}no" >&6
11855fi
11856
11857fi
11858if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11859
11860
11861if test -n "$WINDMC_FOR_TARGET"; then
11862 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11863elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11864 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11865fi
11866
11867if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11868 for ncn_progname in windmc; do
11869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11870set dummy ${ncn_progname}; ac_word=$2
11871echo "$as_me:$LINENO: checking for $ac_word" >&5
11872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11873if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875else
11876 if test -n "$WINDMC_FOR_TARGET"; then
11877 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11878else
11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880for as_dir in $PATH
11881do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11889 fi
11890done
11891done
11892
11893fi
11894fi
11895WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11896if test -n "$WINDMC_FOR_TARGET"; then
11897 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11898echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11899else
11900 echo "$as_me:$LINENO: result: no" >&5
11901echo "${ECHO_T}no" >&6
11902fi
11903
11904 done
11905fi
11906
11907if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11908 for ncn_progname in windmc; do
11909 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11910echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11911 if test -x $with_build_time_tools/${ncn_progname}; then
11912 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11913 echo "$as_me:$LINENO: result: yes" >&5
11914echo "${ECHO_T}yes" >&6
11915 break
11916 else
11917 echo "$as_me:$LINENO: result: no" >&5
11918echo "${ECHO_T}no" >&6
11919 fi
11920 done
11921fi
11922
11923if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11924 for ncn_progname in windmc; do
11925 if test -n "$ncn_target_tool_prefix"; then
11926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11927set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11928echo "$as_me:$LINENO: checking for $ac_word" >&5
11929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
11933 if test -n "$WINDMC_FOR_TARGET"; then
11934 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948done
11949
11950fi
11951fi
11952WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11953if test -n "$WINDMC_FOR_TARGET"; then
11954 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11955echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11956else
11957 echo "$as_me:$LINENO: result: no" >&5
11958echo "${ECHO_T}no" >&6
11959fi
11960
11961 fi
11962 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11964set dummy ${ncn_progname}; ac_word=$2
11965echo "$as_me:$LINENO: checking for $ac_word" >&5
11966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11967if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970 if test -n "$WINDMC_FOR_TARGET"; then
11971 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11972else
11973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974for as_dir in $PATH
11975do
11976 IFS=$as_save_IFS
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11982 break 2
11983 fi
11984done
11985done
11986
11987fi
11988fi
11989WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11990if test -n "$WINDMC_FOR_TARGET"; then
11991 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11992echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11993else
11994 echo "$as_me:$LINENO: result: no" >&5
11995echo "${ECHO_T}no" >&6
11996fi
11997
11998 fi
11999 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12000 done
12001fi
12002
12003if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12004 set dummy windmc
12005 if test $build = $target ; then
12006 WINDMC_FOR_TARGET="$2"
12007 else
12008 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12009 fi
12010else
12011 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12012fi
12013
12014else
12015 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12016fi
12017
12018
be01d343
PB
12019RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12020
c6b750e1
DJ
12021echo "$as_me:$LINENO: checking where to find the target ar" >&5
12022echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 12023if test "x${build}" != "x${host}" ; then
2429c060
PB
12024 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12025 # We already found the complete path
b8025f34
AS
12026 ac_dir=`dirname $AR_FOR_TARGET`
12027 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12028echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12029 else
12030 # Canadian cross, just use what we found
c6b750e1
DJ
12031 echo "$as_me:$LINENO: result: pre-installed" >&5
12032echo "${ECHO_T}pre-installed" >&6
2429c060 12033 fi
be01d343
PB
12034else
12035 ok=yes
12036 case " ${configdirs} " in
12037 *" binutils "*) ;;
12038 *) ok=no ;;
12039 esac
c6b750e1 12040
be01d343
PB
12041 if test $ok = yes; then
12042 # An in-tree tool is available and we can use it
12043 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
12044 echo "$as_me:$LINENO: result: just compiled" >&5
12045echo "${ECHO_T}just compiled" >&6
2429c060
PB
12046 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12047 # We already found the complete path
b8025f34
AS
12048 ac_dir=`dirname $AR_FOR_TARGET`
12049 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12050echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12051 elif test "x$target" = "x$host"; then
12052 # We can use an host tool
12053 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
12054 echo "$as_me:$LINENO: result: host tool" >&5
12055echo "${ECHO_T}host tool" >&6
be01d343
PB
12056 else
12057 # We need a cross tool
c6b750e1
DJ
12058 echo "$as_me:$LINENO: result: pre-installed" >&5
12059echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12060 fi
12061fi
4b900473 12062
c6b750e1
DJ
12063echo "$as_me:$LINENO: checking where to find the target as" >&5
12064echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 12065if test "x${build}" != "x${host}" ; then
2429c060
PB
12066 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12067 # We already found the complete path
b8025f34
AS
12068 ac_dir=`dirname $AS_FOR_TARGET`
12069 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12070echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12071 else
12072 # Canadian cross, just use what we found
c6b750e1
DJ
12073 echo "$as_me:$LINENO: result: pre-installed" >&5
12074echo "${ECHO_T}pre-installed" >&6
2429c060 12075 fi
be01d343
PB
12076else
12077 ok=yes
12078 case " ${configdirs} " in
12079 *" gas "*) ;;
12080 *) ok=no ;;
12081 esac
c6b750e1 12082
be01d343
PB
12083 if test $ok = yes; then
12084 # An in-tree tool is available and we can use it
12085 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
12086 echo "$as_me:$LINENO: result: just compiled" >&5
12087echo "${ECHO_T}just compiled" >&6
2429c060
PB
12088 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12089 # We already found the complete path
b8025f34
AS
12090 ac_dir=`dirname $AS_FOR_TARGET`
12091 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12092echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12093 elif test "x$target" = "x$host"; then
12094 # We can use an host tool
12095 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
12096 echo "$as_me:$LINENO: result: host tool" >&5
12097echo "${ECHO_T}host tool" >&6
be01d343
PB
12098 else
12099 # We need a cross tool
c6b750e1
DJ
12100 echo "$as_me:$LINENO: result: pre-installed" >&5
12101echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12102 fi
12103fi
4b900473 12104
c6b750e1
DJ
12105echo "$as_me:$LINENO: checking where to find the target cc" >&5
12106echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 12107if test "x${build}" != "x${host}" ; then
2429c060
PB
12108 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12109 # We already found the complete path
b8025f34
AS
12110 ac_dir=`dirname $CC_FOR_TARGET`
12111 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12112echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12113 else
12114 # Canadian cross, just use what we found
c6b750e1
DJ
12115 echo "$as_me:$LINENO: result: pre-installed" >&5
12116echo "${ECHO_T}pre-installed" >&6
2429c060 12117 fi
be01d343
PB
12118else
12119 ok=yes
12120 case " ${configdirs} " in
12121 *" gcc "*) ;;
12122 *) ok=no ;;
12123 esac
c6b750e1 12124
be01d343
PB
12125 if test $ok = yes; then
12126 # An in-tree tool is available and we can use it
12127 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12128 echo "$as_me:$LINENO: result: just compiled" >&5
12129echo "${ECHO_T}just compiled" >&6
2429c060
PB
12130 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12131 # We already found the complete path
b8025f34
AS
12132 ac_dir=`dirname $CC_FOR_TARGET`
12133 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12134echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12135 elif test "x$target" = "x$host"; then
12136 # We can use an host tool
12137 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
12138 echo "$as_me:$LINENO: result: host tool" >&5
12139echo "${ECHO_T}host tool" >&6
be01d343
PB
12140 else
12141 # We need a cross tool
c6b750e1
DJ
12142 echo "$as_me:$LINENO: result: pre-installed" >&5
12143echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12144 fi
12145fi
4b900473 12146
c6b750e1
DJ
12147echo "$as_me:$LINENO: checking where to find the target c++" >&5
12148echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 12149if test "x${build}" != "x${host}" ; then
2429c060
PB
12150 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12151 # We already found the complete path
b8025f34
AS
12152 ac_dir=`dirname $CXX_FOR_TARGET`
12153 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12154echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12155 else
12156 # Canadian cross, just use what we found
c6b750e1
DJ
12157 echo "$as_me:$LINENO: result: pre-installed" >&5
12158echo "${ECHO_T}pre-installed" >&6
2429c060 12159 fi
be01d343
PB
12160else
12161 ok=yes
12162 case " ${configdirs} " in
12163 *" gcc "*) ;;
12164 *) ok=no ;;
12165 esac
12166 case ,${enable_languages}, in
12167 *,c++,*) ;;
12168 *) ok=no ;;
12169 esac
12170 if test $ok = yes; then
12171 # An in-tree tool is available and we can use it
12172 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
12173 echo "$as_me:$LINENO: result: just compiled" >&5
12174echo "${ECHO_T}just compiled" >&6
2429c060
PB
12175 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12176 # We already found the complete path
b8025f34
AS
12177 ac_dir=`dirname $CXX_FOR_TARGET`
12178 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12179echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12180 elif test "x$target" = "x$host"; then
12181 # We can use an host tool
12182 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
12183 echo "$as_me:$LINENO: result: host tool" >&5
12184echo "${ECHO_T}host tool" >&6
be01d343
PB
12185 else
12186 # We need a cross tool
c6b750e1
DJ
12187 echo "$as_me:$LINENO: result: pre-installed" >&5
12188echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12189 fi
12190fi
4b900473 12191
c6b750e1
DJ
12192echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12193echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 12194if test "x${build}" != "x${host}" ; then
2429c060
PB
12195 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12196 # We already found the complete path
b8025f34
AS
12197 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12198 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12199echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12200 else
12201 # Canadian cross, just use what we found
c6b750e1
DJ
12202 echo "$as_me:$LINENO: result: pre-installed" >&5
12203echo "${ECHO_T}pre-installed" >&6
2429c060 12204 fi
be01d343
PB
12205else
12206 ok=yes
12207 case " ${configdirs} " in
12208 *" gcc "*) ;;
12209 *) ok=no ;;
12210 esac
12211 case ,${enable_languages}, in
12212 *,c++,*) ;;
12213 *) ok=no ;;
12214 esac
12215 if test $ok = yes; then
12216 # An in-tree tool is available and we can use it
12217 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
12218 echo "$as_me:$LINENO: result: just compiled" >&5
12219echo "${ECHO_T}just compiled" >&6
2429c060
PB
12220 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12221 # We already found the complete path
b8025f34
AS
12222 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12223 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12224echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12225 elif test "x$target" = "x$host"; then
12226 # We can use an host tool
12227 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
12228 echo "$as_me:$LINENO: result: host tool" >&5
12229echo "${ECHO_T}host tool" >&6
be01d343
PB
12230 else
12231 # We need a cross tool
c6b750e1
DJ
12232 echo "$as_me:$LINENO: result: pre-installed" >&5
12233echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12234 fi
12235fi
4b900473 12236
c6b750e1
DJ
12237echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12238echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 12239if test "x${build}" != "x${host}" ; then
2429c060
PB
12240 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12241 # We already found the complete path
b8025f34
AS
12242 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12243 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12244echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12245 else
12246 # Canadian cross, just use what we found
c6b750e1
DJ
12247 echo "$as_me:$LINENO: result: pre-installed" >&5
12248echo "${ECHO_T}pre-installed" >&6
2429c060 12249 fi
be01d343
PB
12250else
12251 ok=yes
12252 case " ${configdirs} " in
12253 *" binutils "*) ;;
12254 *) ok=no ;;
12255 esac
c6b750e1 12256
be01d343
PB
12257 if test $ok = yes; then
12258 # An in-tree tool is available and we can use it
12259 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
12260 echo "$as_me:$LINENO: result: just compiled" >&5
12261echo "${ECHO_T}just compiled" >&6
2429c060
PB
12262 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12263 # We already found the complete path
b8025f34
AS
12264 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12265 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12266echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12267 elif test "x$target" = "x$host"; then
12268 # We can use an host tool
12269 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
12270 echo "$as_me:$LINENO: result: host tool" >&5
12271echo "${ECHO_T}host tool" >&6
be01d343
PB
12272 else
12273 # We need a cross tool
c6b750e1
DJ
12274 echo "$as_me:$LINENO: result: pre-installed" >&5
12275echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12276 fi
12277fi
4b900473 12278
c6b750e1
DJ
12279echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12280echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 12281if test "x${build}" != "x${host}" ; then
2429c060
PB
12282 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12283 # We already found the complete path
b8025f34
AS
12284 ac_dir=`dirname $GCC_FOR_TARGET`
12285 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12286echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12287 else
12288 # Canadian cross, just use what we found
c6b750e1
DJ
12289 echo "$as_me:$LINENO: result: pre-installed" >&5
12290echo "${ECHO_T}pre-installed" >&6
2429c060 12291 fi
be01d343
PB
12292else
12293 ok=yes
12294 case " ${configdirs} " in
12295 *" gcc "*) ;;
12296 *) ok=no ;;
12297 esac
c6b750e1 12298
be01d343
PB
12299 if test $ok = yes; then
12300 # An in-tree tool is available and we can use it
12301 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12302 echo "$as_me:$LINENO: result: just compiled" >&5
12303echo "${ECHO_T}just compiled" >&6
2429c060
PB
12304 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12305 # We already found the complete path
b8025f34
AS
12306 ac_dir=`dirname $GCC_FOR_TARGET`
12307 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12308echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12309 elif test "x$target" = "x$host"; then
12310 # We can use an host tool
12311 GCC_FOR_TARGET='$()'
c6b750e1
DJ
12312 echo "$as_me:$LINENO: result: host tool" >&5
12313echo "${ECHO_T}host tool" >&6
be01d343
PB
12314 else
12315 # We need a cross tool
c6b750e1
DJ
12316 echo "$as_me:$LINENO: result: pre-installed" >&5
12317echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12318 fi
12319fi
4b900473 12320
c6b750e1
DJ
12321echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12322echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 12323if test "x${build}" != "x${host}" ; then
2429c060
PB
12324 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12325 # We already found the complete path
b8025f34
AS
12326 ac_dir=`dirname $GCJ_FOR_TARGET`
12327 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12328echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12329 else
12330 # Canadian cross, just use what we found
c6b750e1
DJ
12331 echo "$as_me:$LINENO: result: pre-installed" >&5
12332echo "${ECHO_T}pre-installed" >&6
2429c060 12333 fi
be01d343
PB
12334else
12335 ok=yes
12336 case " ${configdirs} " in
12337 *" gcc "*) ;;
12338 *) ok=no ;;
12339 esac
12340 case ,${enable_languages}, in
12341 *,java,*) ;;
12342 *) ok=no ;;
12343 esac
12344 if test $ok = yes; then
12345 # An in-tree tool is available and we can use it
12346 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12347 echo "$as_me:$LINENO: result: just compiled" >&5
12348echo "${ECHO_T}just compiled" >&6
2429c060
PB
12349 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12350 # We already found the complete path
b8025f34
AS
12351 ac_dir=`dirname $GCJ_FOR_TARGET`
12352 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12353echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12354 elif test "x$target" = "x$host"; then
12355 # We can use an host tool
12356 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
12357 echo "$as_me:$LINENO: result: host tool" >&5
12358echo "${ECHO_T}host tool" >&6
be01d343
PB
12359 else
12360 # We need a cross tool
c6b750e1
DJ
12361 echo "$as_me:$LINENO: result: pre-installed" >&5
12362echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12363 fi
12364fi
4b900473 12365
c6b750e1
DJ
12366echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12367echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 12368if test "x${build}" != "x${host}" ; then
2429c060
PB
12369 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12370 # We already found the complete path
b8025f34
AS
12371 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12372 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12373echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12374 else
12375 # Canadian cross, just use what we found
c6b750e1
DJ
12376 echo "$as_me:$LINENO: result: pre-installed" >&5
12377echo "${ECHO_T}pre-installed" >&6
2429c060 12378 fi
be01d343
PB
12379else
12380 ok=yes
12381 case " ${configdirs} " in
12382 *" gcc "*) ;;
12383 *) ok=no ;;
12384 esac
12385 case ,${enable_languages}, in
12386 *,fortran,*) ;;
12387 *) ok=no ;;
12388 esac
12389 if test $ok = yes; then
12390 # An in-tree tool is available and we can use it
12391 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12392 echo "$as_me:$LINENO: result: just compiled" >&5
12393echo "${ECHO_T}just compiled" >&6
2429c060
PB
12394 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12395 # We already found the complete path
b8025f34
AS
12396 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12397 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12398echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12399 elif test "x$target" = "x$host"; then
12400 # We can use an host tool
12401 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
12402 echo "$as_me:$LINENO: result: host tool" >&5
12403echo "${ECHO_T}host tool" >&6
be01d343
PB
12404 else
12405 # We need a cross tool
c6b750e1
DJ
12406 echo "$as_me:$LINENO: result: pre-installed" >&5
12407echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12408 fi
12409fi
4b900473 12410
c6b750e1
DJ
12411echo "$as_me:$LINENO: checking where to find the target ld" >&5
12412echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 12413if test "x${build}" != "x${host}" ; then
2429c060
PB
12414 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12415 # We already found the complete path
b8025f34
AS
12416 ac_dir=`dirname $LD_FOR_TARGET`
12417 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12418echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12419 else
12420 # Canadian cross, just use what we found
c6b750e1
DJ
12421 echo "$as_me:$LINENO: result: pre-installed" >&5
12422echo "${ECHO_T}pre-installed" >&6
2429c060 12423 fi
be01d343
PB
12424else
12425 ok=yes
12426 case " ${configdirs} " in
12427 *" ld "*) ;;
12428 *) ok=no ;;
12429 esac
c6b750e1 12430
be01d343
PB
12431 if test $ok = yes; then
12432 # An in-tree tool is available and we can use it
12433 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
12434 echo "$as_me:$LINENO: result: just compiled" >&5
12435echo "${ECHO_T}just compiled" >&6
2429c060
PB
12436 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12437 # We already found the complete path
b8025f34
AS
12438 ac_dir=`dirname $LD_FOR_TARGET`
12439 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12440echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12441 elif test "x$target" = "x$host"; then
12442 # We can use an host tool
12443 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
12444 echo "$as_me:$LINENO: result: host tool" >&5
12445echo "${ECHO_T}host tool" >&6
be01d343
PB
12446 else
12447 # We need a cross tool
c6b750e1
DJ
12448 echo "$as_me:$LINENO: result: pre-installed" >&5
12449echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12450 fi
12451fi
4b900473 12452
c6b750e1
DJ
12453echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12454echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 12455if test "x${build}" != "x${host}" ; then
2429c060
PB
12456 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12457 # We already found the complete path
b8025f34
AS
12458 ac_dir=`dirname $LIPO_FOR_TARGET`
12459 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12460echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12461 else
12462 # Canadian cross, just use what we found
c6b750e1
DJ
12463 echo "$as_me:$LINENO: result: pre-installed" >&5
12464echo "${ECHO_T}pre-installed" >&6
2429c060 12465 fi
be01d343 12466else
2429c060
PB
12467 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12468 # We already found the complete path
b8025f34
AS
12469 ac_dir=`dirname $LIPO_FOR_TARGET`
12470 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12471echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 12472 elif test "x$target" = "x$host"; then
be01d343
PB
12473 # We can use an host tool
12474 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
12475 echo "$as_me:$LINENO: result: host tool" >&5
12476echo "${ECHO_T}host tool" >&6
be01d343
PB
12477 else
12478 # We need a cross tool
c6b750e1
DJ
12479 echo "$as_me:$LINENO: result: pre-installed" >&5
12480echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12481 fi
12482fi
4b900473 12483
c6b750e1
DJ
12484echo "$as_me:$LINENO: checking where to find the target nm" >&5
12485echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 12486if test "x${build}" != "x${host}" ; then
2429c060
PB
12487 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12488 # We already found the complete path
b8025f34
AS
12489 ac_dir=`dirname $NM_FOR_TARGET`
12490 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12491echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12492 else
12493 # Canadian cross, just use what we found
c6b750e1
DJ
12494 echo "$as_me:$LINENO: result: pre-installed" >&5
12495echo "${ECHO_T}pre-installed" >&6
2429c060 12496 fi
be01d343
PB
12497else
12498 ok=yes
12499 case " ${configdirs} " in
12500 *" binutils "*) ;;
12501 *) ok=no ;;
12502 esac
c6b750e1 12503
be01d343
PB
12504 if test $ok = yes; then
12505 # An in-tree tool is available and we can use it
12506 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
12507 echo "$as_me:$LINENO: result: just compiled" >&5
12508echo "${ECHO_T}just compiled" >&6
2429c060
PB
12509 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12510 # We already found the complete path
b8025f34
AS
12511 ac_dir=`dirname $NM_FOR_TARGET`
12512 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12513echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12514 elif test "x$target" = "x$host"; then
12515 # We can use an host tool
12516 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
12517 echo "$as_me:$LINENO: result: host tool" >&5
12518echo "${ECHO_T}host tool" >&6
be01d343
PB
12519 else
12520 # We need a cross tool
c6b750e1
DJ
12521 echo "$as_me:$LINENO: result: pre-installed" >&5
12522echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12523 fi
12524fi
4b900473 12525
c6b750e1
DJ
12526echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12527echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 12528if test "x${build}" != "x${host}" ; then
2429c060
PB
12529 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12530 # We already found the complete path
b8025f34
AS
12531 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12532 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12533echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12534 else
12535 # Canadian cross, just use what we found
c6b750e1
DJ
12536 echo "$as_me:$LINENO: result: pre-installed" >&5
12537echo "${ECHO_T}pre-installed" >&6
2429c060 12538 fi
be01d343
PB
12539else
12540 ok=yes
12541 case " ${configdirs} " in
12542 *" binutils "*) ;;
12543 *) ok=no ;;
12544 esac
c6b750e1 12545
be01d343
PB
12546 if test $ok = yes; then
12547 # An in-tree tool is available and we can use it
12548 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
12549 echo "$as_me:$LINENO: result: just compiled" >&5
12550echo "${ECHO_T}just compiled" >&6
2429c060
PB
12551 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12552 # We already found the complete path
b8025f34
AS
12553 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12554 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12555echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12556 elif test "x$target" = "x$host"; then
12557 # We can use an host tool
12558 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
12559 echo "$as_me:$LINENO: result: host tool" >&5
12560echo "${ECHO_T}host tool" >&6
be01d343
PB
12561 else
12562 # We need a cross tool
c6b750e1
DJ
12563 echo "$as_me:$LINENO: result: pre-installed" >&5
12564echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12565 fi
12566fi
4b900473 12567
c6b750e1
DJ
12568echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12569echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 12570if test "x${build}" != "x${host}" ; then
2429c060
PB
12571 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12572 # We already found the complete path
b8025f34
AS
12573 ac_dir=`dirname $RANLIB_FOR_TARGET`
12574 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12575echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12576 else
12577 # Canadian cross, just use what we found
c6b750e1
DJ
12578 echo "$as_me:$LINENO: result: pre-installed" >&5
12579echo "${ECHO_T}pre-installed" >&6
2429c060 12580 fi
be01d343
PB
12581else
12582 ok=yes
12583 case " ${configdirs} " in
12584 *" binutils "*) ;;
12585 *) ok=no ;;
12586 esac
c6b750e1 12587
be01d343
PB
12588 if test $ok = yes; then
12589 # An in-tree tool is available and we can use it
12590 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
12591 echo "$as_me:$LINENO: result: just compiled" >&5
12592echo "${ECHO_T}just compiled" >&6
2429c060
PB
12593 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12594 # We already found the complete path
b8025f34
AS
12595 ac_dir=`dirname $RANLIB_FOR_TARGET`
12596 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12597echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12598 elif test "x$target" = "x$host"; then
12599 # We can use an host tool
12600 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
12601 echo "$as_me:$LINENO: result: host tool" >&5
12602echo "${ECHO_T}host tool" >&6
be01d343
PB
12603 else
12604 # We need a cross tool
c6b750e1
DJ
12605 echo "$as_me:$LINENO: result: pre-installed" >&5
12606echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12607 fi
12608fi
4b900473 12609
c6b750e1
DJ
12610echo "$as_me:$LINENO: checking where to find the target strip" >&5
12611echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 12612if test "x${build}" != "x${host}" ; then
2429c060
PB
12613 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12614 # We already found the complete path
b8025f34
AS
12615 ac_dir=`dirname $STRIP_FOR_TARGET`
12616 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12617echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12618 else
12619 # Canadian cross, just use what we found
c6b750e1
DJ
12620 echo "$as_me:$LINENO: result: pre-installed" >&5
12621echo "${ECHO_T}pre-installed" >&6
2429c060 12622 fi
be01d343
PB
12623else
12624 ok=yes
12625 case " ${configdirs} " in
12626 *" binutils "*) ;;
12627 *) ok=no ;;
12628 esac
c6b750e1 12629
be01d343
PB
12630 if test $ok = yes; then
12631 # An in-tree tool is available and we can use it
12632 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
12633 echo "$as_me:$LINENO: result: just compiled" >&5
12634echo "${ECHO_T}just compiled" >&6
2429c060
PB
12635 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12636 # We already found the complete path
b8025f34
AS
12637 ac_dir=`dirname $STRIP_FOR_TARGET`
12638 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12639echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12640 elif test "x$target" = "x$host"; then
12641 # We can use an host tool
12642 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12643 echo "$as_me:$LINENO: result: host tool" >&5
12644echo "${ECHO_T}host tool" >&6
be01d343
PB
12645 else
12646 # We need a cross tool
c6b750e1
DJ
12647 echo "$as_me:$LINENO: result: pre-installed" >&5
12648echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12649 fi
12650fi
4b900473 12651
c6b750e1
DJ
12652echo "$as_me:$LINENO: checking where to find the target windres" >&5
12653echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12654if test "x${build}" != "x${host}" ; then
2429c060
PB
12655 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12656 # We already found the complete path
b8025f34
AS
12657 ac_dir=`dirname $WINDRES_FOR_TARGET`
12658 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12659echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12660 else
12661 # Canadian cross, just use what we found
c6b750e1
DJ
12662 echo "$as_me:$LINENO: result: pre-installed" >&5
12663echo "${ECHO_T}pre-installed" >&6
2429c060 12664 fi
be01d343
PB
12665else
12666 ok=yes
12667 case " ${configdirs} " in
12668 *" binutils "*) ;;
12669 *) ok=no ;;
12670 esac
c6b750e1 12671
be01d343
PB
12672 if test $ok = yes; then
12673 # An in-tree tool is available and we can use it
12674 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12675 echo "$as_me:$LINENO: result: just compiled" >&5
12676echo "${ECHO_T}just compiled" >&6
2429c060
PB
12677 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12678 # We already found the complete path
b8025f34
AS
12679 ac_dir=`dirname $WINDRES_FOR_TARGET`
12680 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12681echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12682 elif test "x$target" = "x$host"; then
12683 # We can use an host tool
12684 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12685 echo "$as_me:$LINENO: result: host tool" >&5
12686echo "${ECHO_T}host tool" >&6
be01d343
PB
12687 else
12688 # We need a cross tool
c6b750e1
DJ
12689 echo "$as_me:$LINENO: result: pre-installed" >&5
12690echo "${ECHO_T}pre-installed" >&6
be01d343 12691 fi
a0da8069 12692fi
54752a6b 12693
0c24b341
NC
12694echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12695echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12696if test "x${build}" != "x${host}" ; then
12697 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12698 # We already found the complete path
12699 ac_dir=`dirname $WINDMC_FOR_TARGET`
12700 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12701echo "${ECHO_T}pre-installed in $ac_dir" >&6
12702 else
12703 # Canadian cross, just use what we found
12704 echo "$as_me:$LINENO: result: pre-installed" >&5
12705echo "${ECHO_T}pre-installed" >&6
12706 fi
12707else
12708 ok=yes
12709 case " ${configdirs} " in
12710 *" binutils "*) ;;
12711 *) ok=no ;;
12712 esac
12713
12714 if test $ok = yes; then
12715 # An in-tree tool is available and we can use it
12716 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12717 echo "$as_me:$LINENO: result: just compiled" >&5
12718echo "${ECHO_T}just compiled" >&6
12719 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12720 # We already found the complete path
12721 ac_dir=`dirname $WINDMC_FOR_TARGET`
12722 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12723echo "${ECHO_T}pre-installed in $ac_dir" >&6
12724 elif test "x$target" = "x$host"; then
12725 # We can use an host tool
12726 WINDMC_FOR_TARGET='$(WINDMC)'
12727 echo "$as_me:$LINENO: result: host tool" >&5
12728echo "${ECHO_T}host tool" >&6
12729 else
12730 # We need a cross tool
12731 echo "$as_me:$LINENO: result: pre-installed" >&5
12732echo "${ECHO_T}pre-installed" >&6
12733 fi
12734fi
12735
54752a6b
NN
12736
12737
be01d343 12738
4b900473 12739
a0da8069
NN
12740# Certain tools may need extra flags.
12741AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12742RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12743NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12744
be01d343
PB
12745# When building target libraries, except in a Canadian cross, we use
12746# the same toolchain as the compiler we just built.
12747COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12748COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12749COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12750if test $host = $build; then
12751 case " $configdirs " in
12752 *" gcc "*)
12753 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12754 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12755 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12756 ;;
12757 esac
12758fi
12759
12760
12761
12762
12763
c6b750e1
DJ
12764echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12765echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12766# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12767if test "${enable_maintainer_mode+set}" = set; then
12768 enableval="$enable_maintainer_mode"
12769 USE_MAINTAINER_MODE=$enableval
12770else
12771 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12772fi;
12773echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12774echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12775
12776
12777if test "$USE_MAINTAINER_MODE" = yes; then
12778 MAINTAINER_MODE_TRUE=
12779 MAINTAINER_MODE_FALSE='#'
12780else
12781 MAINTAINER_MODE_TRUE='#'
12782 MAINTAINER_MODE_FALSE=
c6b750e1 12783fi
3d5e36ae
AO
12784MAINT=$MAINTAINER_MODE_TRUE
12785
1d39f329
NN
12786# ---------------------
12787# GCC bootstrap support
12788# ---------------------
12789
12790# Stage specific cflags for build.
12791stage1_cflags="-g"
12792case $build in
12793 vax-*-*)
12794 case ${GCC} in
12795 yes) stage1_cflags="-g -Wa,-J" ;;
12796 *) stage1_cflags="-g -J" ;;
12797 esac ;;
1d39f329
NN
12798esac
12799
1d89b610 12800# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 12801if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
12802 saved_CFLAGS="$CFLAGS"
12803
12804 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12805 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12806 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12807echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814
2038f525
PB
12815#if (__GNUC__ < 3) \
12816 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12817 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12818#error http://gcc.gnu.org/PR29382
12819#endif
12820
c6b750e1
DJ
12821int
12822main ()
12823{
12824
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829rm -f conftest.$ac_objext
12830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831 (eval $ac_compile) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -z "$ac_c_werror_flag"
12839 || test ! -s conftest.err'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 echo "$as_me:$LINENO: result: yes" >&5
12852echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12853else
12854 echo "$as_me: failed program was:" >&5
12855sed 's/^/| /' conftest.$ac_ext >&5
12856
12857echo "$as_me:$LINENO: result: no" >&5
12858echo "${ECHO_T}no" >&6
12859fi
12860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12861
12862 CFLAGS="$saved_CFLAGS"
12863fi
12864
12865
1d39f329 12866
8a0d8a5c
PB
12867# Enable --enable-checking in stage1 of the compiler.
12868# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12869if test "${enable_stage1_checking+set}" = set; then
12870 enableval="$enable_stage1_checking"
12871 stage1_checking=--enable-checking=${enable_stage1_checking}
12872else
5566c1fa 12873 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12874 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12875else
5566c1fa 12876 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12877fi
c6b750e1 12878fi;
8a0d8a5c
PB
12879
12880
1d39f329 12881# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12882# Check whether --enable-werror or --disable-werror was given.
12883if test "${enable_werror+set}" = set; then
12884 enableval="$enable_werror"
c6b750e1 12885
1d39f329 12886else
a0323144 12887 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12888 enable_werror=yes
79fcd0ec
PB
12889else
12890 enable_werror=no
12891fi
c6b750e1 12892fi;
1a6f2dc7
NN
12893case ${enable_werror} in
12894 yes) stage2_werror_flag="--enable-werror-always" ;;
12895 *) stage2_werror_flag="" ;;
1d39f329
NN
12896esac
12897
12898
108a6f8e 12899# Flags needed to enable html installing and building
c6b750e1 12900
108a6f8e
CD
12901# Check whether --with-datarootdir or --without-datarootdir was given.
12902if test "${with_datarootdir+set}" = set; then
12903 withval="$with_datarootdir"
12904 datarootdir="\${prefix}/${withval}"
12905else
12906 datarootdir="\${prefix}/share"
c6b750e1 12907fi;
108a6f8e
CD
12908
12909
12910# Check whether --with-docdir or --without-docdir was given.
12911if test "${with_docdir+set}" = set; then
12912 withval="$with_docdir"
12913 docdir="\${prefix}/${withval}"
12914else
12915 docdir="\${datarootdir}/doc"
c6b750e1 12916fi;
108a6f8e
CD
12917
12918
a3ca38d2
DD
12919# Check whether --with-pdfdir or --without-pdfdir was given.
12920if test "${with_pdfdir+set}" = set; then
12921 withval="$with_pdfdir"
12922 pdfdir="\${prefix}/${withval}"
12923else
12924 pdfdir="\${docdir}"
12925fi;
12926
12927
108a6f8e
CD
12928# Check whether --with-htmldir or --without-htmldir was given.
12929if test "${with_htmldir+set}" = set; then
12930 withval="$with_htmldir"
12931 htmldir="\${prefix}/${withval}"
12932else
12933 htmldir="\${docdir}"
c6b750e1 12934fi;
108a6f8e
CD
12935
12936
12937
12938
12939
b8025f34 12940
e8a5fa9c
RW
12941# Specify what files to not compare during bootstrap.
12942
12943compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
12944case "$target" in
12945 hppa*64*-*-hpux*) ;;
12946 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
12947esac
12948
12949
c6b750e1
DJ
12950 ac_config_files="$ac_config_files Makefile"
12951cat >confcache <<\_ACEOF
a0da8069
NN
12952# This file is a shell script that caches the results of configure
12953# tests run on this system so they can be shared between configure
c6b750e1
DJ
12954# scripts and configure runs, see configure's option --config-cache.
12955# It is not useful on other systems. If it contains results you don't
12956# want to keep, you may remove or edit it.
a0da8069 12957#
c6b750e1
DJ
12958# config.status only pays attention to the cache file if you give it
12959# the --recheck option to rerun configure.
a0da8069 12960#
c6b750e1
DJ
12961# `ac_cv_env_foo' variables (set or unset) will be overridden when
12962# loading this file, other *unset* `ac_cv_foo' will be assigned the
12963# following values.
12964
12965_ACEOF
12966
a0da8069
NN
12967# The following way of writing the cache mishandles newlines in values,
12968# but we know of no workaround that is simple, portable, and efficient.
12969# So, don't put newlines in cache variables' values.
12970# Ultrix sh set writes to stderr and can't be redirected directly,
12971# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12972{
12973 (set) 2>&1 |
12974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12975 *ac_space=\ *)
12976 # `set' does not quote correctly, so add quotes (double-quote
12977 # substitution turns \\\\ into \\, and sed turns \\ into \).
12978 sed -n \
12979 "s/'/'\\\\''/g;
12980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12981 ;;
12982 *)
12983 # `set' quotes correctly as required by POSIX, so do not add quotes.
12984 sed -n \
12985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12986 ;;
12987 esac;
12988} |
12989 sed '
12990 t clear
12991 : clear
12992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12993 t end
12994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12995 : end' >>confcache
12996if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12997 if test -w $cache_file; then
c6b750e1
DJ
12998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12999 cat confcache >$cache_file
a0da8069
NN
13000 else
13001 echo "not updating unwritable cache $cache_file"
13002 fi
852e5f18 13003fi
a0da8069 13004rm -f confcache
852e5f18 13005
a0da8069
NN
13006test "x$prefix" = xNONE && prefix=$ac_default_prefix
13007# Let make expand exec_prefix.
13008test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 13009
c6b750e1
DJ
13010# VPATH may cause trouble with some makes, so we remove $(srcdir),
13011# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13012# trailing colons and then remove the whole line if VPATH becomes empty
13013# (actually we leave an empty line to preserve line numbers).
a0da8069 13014if test "x$srcdir" = x.; then
c6b750e1
DJ
13015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13016s/:*\$(srcdir):*/:/;
13017s/:*\${srcdir}:*/:/;
13018s/:*@srcdir@:*/:/;
13019s/^\([^=]*=[ ]*\):*/\1/;
13020s/:*$//;
13021s/^[^=]*=[ ]*$//;
13022}'
a0da8069 13023fi
252b5132 13024
a0da8069
NN
13025# Transform confdefs.h into DEFS.
13026# Protect against shell expansion while executing Makefile rules.
13027# Protect against Makefile macro expansion.
c6b750e1
DJ
13028#
13029# If the first sed substitution is executed (which looks for macros that
13030# take arguments), then we branch to the quote section. Otherwise,
13031# look for a macro that doesn't take arguments.
13032cat >confdef2opt.sed <<\_ACEOF
13033t clear
13034: clear
13035s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
13036t quote
13037s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
13038t quote
13039d
13040: quote
13041s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13042s,\[,\\&,g
13043s,\],\\&,g
13044s,\$,$$,g
13045p
13046_ACEOF
13047# We use echo to avoid assuming a particular line-breaking character.
13048# The extra dot is to prevent the shell from consuming trailing
13049# line-breaks from the sub-command output. A line-break within
13050# single-quotes doesn't work because, if this script is created in a
13051# platform that uses two characters for line-breaks (e.g., DOS), tr
13052# would break.
13053ac_LF_and_DOT=`echo; echo .`
13054DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13055rm -f confdef2opt.sed
13056
13057
13058ac_libobjs=
13059ac_ltlibobjs=
13060for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13061 # 1. Remove the extension, and $U if already installed.
13062 ac_i=`echo "$ac_i" |
13063 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13064 # 2. Add them.
13065 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13066 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13067done
13068LIBOBJS=$ac_libobjs
852e5f18 13069
c6b750e1 13070LTLIBOBJS=$ac_ltlibobjs
376a0e54 13071
cac3d6c4 13072
c6b750e1
DJ
13073
13074: ${CONFIG_STATUS=./config.status}
13075ac_clean_files_save=$ac_clean_files
13076ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13077{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13078echo "$as_me: creating $CONFIG_STATUS" >&6;}
13079cat >$CONFIG_STATUS <<_ACEOF
13080#! $SHELL
13081# Generated by $as_me.
a0da8069 13082# Run this file to recreate the current configuration.
a0da8069 13083# Compiler output produced by configure, useful for debugging
c6b750e1 13084# configure, is in config.log if it exists.
376a0e54 13085
c6b750e1
DJ
13086debug=false
13087ac_cs_recheck=false
13088ac_cs_silent=false
13089SHELL=\${CONFIG_SHELL-$SHELL}
13090_ACEOF
13091
13092cat >>$CONFIG_STATUS <<\_ACEOF
13093## --------------------- ##
13094## M4sh Initialization. ##
13095## --------------------- ##
13096
13097# Be Bourne compatible
13098if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13099 emulate sh
13100 NULLCMD=:
13101 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13102 # is contrary to our usage. Disable this feature.
13103 alias -g '${1+"$@"}'='"$@"'
13104elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13105 set -o posix
13106fi
13107DUALCASE=1; export DUALCASE # for MKS sh
13108
13109# Support unset when possible.
13110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13111 as_unset=unset
13112else
13113 as_unset=false
13114fi
13115
13116
13117# Work around bugs in pre-3.0 UWIN ksh.
13118$as_unset ENV MAIL MAILPATH
13119PS1='$ '
13120PS2='> '
13121PS4='+ '
13122
13123# NLS nuisances.
13124for as_var in \
13125 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13126 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13127 LC_TELEPHONE LC_TIME
13128do
13129 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13130 eval $as_var=C; export $as_var
13131 else
13132 $as_unset $as_var
13133 fi
13134done
13135
13136# Required to use basename.
13137if expr a : '\(a\)' >/dev/null 2>&1; then
13138 as_expr=expr
13139else
13140 as_expr=false
13141fi
13142
13143if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13144 as_basename=basename
13145else
13146 as_basename=false
13147fi
13148
13149
13150# Name of the executable.
13151as_me=`$as_basename "$0" ||
13152$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13153 X"$0" : 'X\(//\)$' \| \
13154 X"$0" : 'X\(/\)$' \| \
13155 . : '\(.\)' 2>/dev/null ||
13156echo X/"$0" |
13157 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13158 /^X\/\(\/\/\)$/{ s//\1/; q; }
13159 /^X\/\(\/\).*/{ s//\1/; q; }
13160 s/.*/./; q'`
13161
13162
13163# PATH needs CR, and LINENO needs CR and PATH.
13164# Avoid depending upon Character Ranges.
13165as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13166as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13167as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13168as_cr_digits='0123456789'
13169as_cr_alnum=$as_cr_Letters$as_cr_digits
13170
13171# The user is always right.
13172if test "${PATH_SEPARATOR+set}" != set; then
13173 echo "#! /bin/sh" >conf$$.sh
13174 echo "exit 0" >>conf$$.sh
13175 chmod +x conf$$.sh
13176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13177 PATH_SEPARATOR=';'
13178 else
13179 PATH_SEPARATOR=:
13180 fi
13181 rm -f conf$$.sh
13182fi
13183
13184
13185 as_lineno_1=$LINENO
13186 as_lineno_2=$LINENO
13187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13188 test "x$as_lineno_1" != "x$as_lineno_2" &&
13189 test "x$as_lineno_3" = "x$as_lineno_2" || {
13190 # Find who we are. Look in the path if we contain no path at all
13191 # relative or not.
13192 case $0 in
13193 *[\\/]* ) as_myself=$0 ;;
13194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in $PATH
13196do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13200done
13201
13202 ;;
13203 esac
13204 # We did not find ourselves, most probably we were run as `sh COMMAND'
13205 # in which case we are not to be found in the path.
13206 if test "x$as_myself" = x; then
13207 as_myself=$0
13208 fi
13209 if test ! -f "$as_myself"; then
13210 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13211echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13212 { (exit 1); exit 1; }; }
13213 fi
13214 case $CONFIG_SHELL in
13215 '')
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13218do
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
13221 for as_base in sh bash ksh sh5; do
13222 case $as_dir in
13223 /*)
13224 if ("$as_dir/$as_base" -c '
13225 as_lineno_1=$LINENO
13226 as_lineno_2=$LINENO
13227 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13228 test "x$as_lineno_1" != "x$as_lineno_2" &&
13229 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13230 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13231 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13232 CONFIG_SHELL=$as_dir/$as_base
13233 export CONFIG_SHELL
13234 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13235 fi;;
13236 esac
13237 done
13238done
13239;;
13240 esac
13241
13242 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13243 # uniformly replaced by the line number. The first 'sed' inserts a
13244 # line-number line before each line; the second 'sed' does the real
13245 # work. The second script uses 'N' to pair each line-number line
13246 # with the numbered line, and appends trailing '-' during
13247 # substitution so that $LINENO is not a special case at line end.
13248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13249 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13250 sed '=' <$as_myself |
13251 sed '
13252 N
13253 s,$,-,
13254 : loop
13255 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13256 t loop
13257 s,-$,,
13258 s,^['$as_cr_digits']*\n,,
13259 ' >$as_me.lineno &&
13260 chmod +x $as_me.lineno ||
13261 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13262echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13263 { (exit 1); exit 1; }; }
13264
13265 # Don't try to exec as it changes $[0], causing all sort of problems
13266 # (the dirname of $[0] is not the place where we might find the
13267 # original and so on. Autoconf is especially sensible to this).
13268 . ./$as_me.lineno
13269 # Exit status is that of the last command.
13270 exit
13271}
13272
13273
13274case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13275 *c*,-n*) ECHO_N= ECHO_C='
13276' ECHO_T=' ' ;;
13277 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13278 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13279esac
13280
13281if expr a : '\(a\)' >/dev/null 2>&1; then
13282 as_expr=expr
13283else
13284 as_expr=false
13285fi
13286
13287rm -f conf$$ conf$$.exe conf$$.file
13288echo >conf$$.file
13289if ln -s conf$$.file conf$$ 2>/dev/null; then
13290 # We could just check for DJGPP; but this test a) works b) is more generic
13291 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13292 if test -f conf$$.exe; then
13293 # Don't use ln at all; we don't have any links
13294 as_ln_s='cp -p'
13295 else
13296 as_ln_s='ln -s'
13297 fi
13298elif ln conf$$.file conf$$ 2>/dev/null; then
13299 as_ln_s=ln
13300else
13301 as_ln_s='cp -p'
13302fi
13303rm -f conf$$ conf$$.exe conf$$.file
13304
13305if mkdir -p . 2>/dev/null; then
13306 as_mkdir_p=:
13307else
13308 test -d ./-p && rmdir ./-p
13309 as_mkdir_p=false
13310fi
13311
13312as_executable_p="test -f"
13313
13314# Sed expression to map a string onto a valid CPP name.
13315as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13316
13317# Sed expression to map a string onto a valid variable name.
13318as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13319
13320
13321# IFS
13322# We need space, tab and new line, in precisely that order.
13323as_nl='
13324'
13325IFS=" $as_nl"
13326
13327# CDPATH.
13328$as_unset CDPATH
13329
13330exec 6>&1
13331
13332# Open the log real soon, to keep \$[0] and so on meaningful, and to
13333# report actual input values of CONFIG_FILES etc. instead of their
13334# values after options handling. Logging --version etc. is OK.
13335exec 5>>config.log
13336{
13337 echo
13338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13339## Running $as_me. ##
13340_ASBOX
13341} >&5
13342cat >&5 <<_CSEOF
13343
13344This file was extended by $as_me, which was
13345generated by GNU Autoconf 2.59. Invocation command line was
13346
13347 CONFIG_FILES = $CONFIG_FILES
13348 CONFIG_HEADERS = $CONFIG_HEADERS
13349 CONFIG_LINKS = $CONFIG_LINKS
13350 CONFIG_COMMANDS = $CONFIG_COMMANDS
13351 $ $0 $@
13352
13353_CSEOF
13354echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13355echo >&5
13356_ACEOF
13357
13358# Files that config.status was made for.
13359if test -n "$ac_config_files"; then
13360 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13361fi
13362
13363if test -n "$ac_config_headers"; then
13364 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13365fi
13366
13367if test -n "$ac_config_links"; then
13368 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13369fi
13370
13371if test -n "$ac_config_commands"; then
13372 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13373fi
13374
13375cat >>$CONFIG_STATUS <<\_ACEOF
13376
13377ac_cs_usage="\
13378\`$as_me' instantiates files from templates according to the
13379current configuration.
13380
13381Usage: $0 [OPTIONS] [FILE]...
13382
13383 -h, --help print this help, then exit
13384 -V, --version print version number, then exit
13385 -q, --quiet do not print progress messages
13386 -d, --debug don't remove temporary files
13387 --recheck update $as_me by reconfiguring in the same conditions
13388 --file=FILE[:TEMPLATE]
13389 instantiate the configuration file FILE
13390
13391Configuration files:
13392$config_files
13393
13394Report bugs to <bug-autoconf@gnu.org>."
13395_ACEOF
13396
13397cat >>$CONFIG_STATUS <<_ACEOF
13398ac_cs_version="\\
13399config.status
13400configured by $0, generated by GNU Autoconf 2.59,
13401 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13402
13403Copyright (C) 2003 Free Software Foundation, Inc.
13404This config.status script is free software; the Free Software Foundation
13405gives unlimited permission to copy, distribute and modify it."
13406srcdir=$srcdir
13407INSTALL="$INSTALL"
13408_ACEOF
13409
13410cat >>$CONFIG_STATUS <<\_ACEOF
13411# If no file are specified by the user, then we need to provide default
13412# value. By we need to know if files were specified by the user.
13413ac_need_defaults=:
13414while test $# != 0
a0da8069 13415do
c6b750e1
DJ
13416 case $1 in
13417 --*=*)
13418 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13419 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13420 ac_shift=:
13421 ;;
13422 -*)
13423 ac_option=$1
13424 ac_optarg=$2
13425 ac_shift=shift
13426 ;;
13427 *) # This is not an option, so the user has probably given explicit
13428 # arguments.
13429 ac_option=$1
13430 ac_need_defaults=false;;
13431 esac
13432
13433 case $ac_option in
13434 # Handling of the options.
13435_ACEOF
13436cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 13437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
13438 ac_cs_recheck=: ;;
13439 --version | --vers* | -V )
13440 echo "$ac_cs_version"; exit 0 ;;
13441 --he | --h)
13442 # Conflict between --help and --header
13443 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13444Try \`$0 --help' for more information." >&5
13445echo "$as_me: error: ambiguous option: $1
13446Try \`$0 --help' for more information." >&2;}
13447 { (exit 1); exit 1; }; };;
13448 --help | --hel | -h )
13449 echo "$ac_cs_usage"; exit 0 ;;
13450 --debug | --d* | -d )
13451 debug=: ;;
13452 --file | --fil | --fi | --f )
13453 $ac_shift
13454 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13455 ac_need_defaults=false;;
13456 --header | --heade | --head | --hea )
13457 $ac_shift
13458 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13459 ac_need_defaults=false;;
13460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13462 ac_cs_silent=: ;;
13463
13464 # This is an error.
13465 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13466Try \`$0 --help' for more information." >&5
13467echo "$as_me: error: unrecognized option: $1
13468Try \`$0 --help' for more information." >&2;}
13469 { (exit 1); exit 1; }; } ;;
13470
13471 *) ac_config_targets="$ac_config_targets $1" ;;
13472
376a0e54 13473 esac
c6b750e1 13474 shift
376a0e54
CM
13475done
13476
c6b750e1 13477ac_configure_extra_args=
376a0e54 13478
c6b750e1
DJ
13479if $ac_cs_silent; then
13480 exec 6>/dev/null
13481 ac_configure_extra_args="$ac_configure_extra_args --silent"
13482fi
376a0e54 13483
c6b750e1
DJ
13484_ACEOF
13485cat >>$CONFIG_STATUS <<_ACEOF
13486if \$ac_cs_recheck; then
13487 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13488 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13489fi
13490
13491_ACEOF
13492
13493
13494
13495
13496
13497cat >>$CONFIG_STATUS <<\_ACEOF
13498for ac_config_target in $ac_config_targets
13499do
13500 case "$ac_config_target" in
13501 # Handling of arguments.
13502 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13503 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13504echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13505 { (exit 1); exit 1; }; };;
13506 esac
13507done
13508
13509# If the user did not use the arguments to specify the items to instantiate,
13510# then the envvar interface is used. Set only those that are not.
13511# We use the long form for the default assignment because of an extremely
13512# bizarre bug on SunOS 4.1.3.
13513if $ac_need_defaults; then
13514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13515fi
13516
13517# Have a temporary directory for convenience. Make it in the build tree
13518# simply because there is no reason to put it here, and in addition,
13519# creating and moving files from /tmp can sometimes cause problems.
13520# Create a temporary directory, and hook for its removal unless debugging.
13521$debug ||
13522{
13523 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13524 trap '{ (exit 1); exit 1; }' 1 2 13 15
13525}
13526
13527# Create a (secure) tmp directory for tmp files.
13528
13529{
13530 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13531 test -n "$tmp" && test -d "$tmp"
13532} ||
13533{
13534 tmp=./confstat$$-$RANDOM
13535 (umask 077 && mkdir $tmp)
13536} ||
13537{
13538 echo "$me: cannot create a temporary directory in ." >&2
13539 { (exit 1); exit 1; }
13540}
13541
13542_ACEOF
13543
13544cat >>$CONFIG_STATUS <<_ACEOF
13545
13546#
13547# CONFIG_FILES section.
13548#
13549
13550# No need to generate the scripts if there are no CONFIG_FILES.
13551# This happens for instance when ./config.status config.h
13552if test -n "\$CONFIG_FILES"; then
13553 # Protect against being on the right side of a sed subst in config.status.
13554 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13555 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13556s,@SHELL@,$SHELL,;t t
13557s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13558s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13559s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13560s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13561s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13562s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13563s,@exec_prefix@,$exec_prefix,;t t
13564s,@prefix@,$prefix,;t t
13565s,@program_transform_name@,$program_transform_name,;t t
13566s,@bindir@,$bindir,;t t
13567s,@sbindir@,$sbindir,;t t
13568s,@libexecdir@,$libexecdir,;t t
13569s,@datadir@,$datadir,;t t
13570s,@sysconfdir@,$sysconfdir,;t t
13571s,@sharedstatedir@,$sharedstatedir,;t t
13572s,@localstatedir@,$localstatedir,;t t
13573s,@libdir@,$libdir,;t t
13574s,@includedir@,$includedir,;t t
13575s,@oldincludedir@,$oldincludedir,;t t
13576s,@infodir@,$infodir,;t t
13577s,@mandir@,$mandir,;t t
13578s,@build_alias@,$build_alias,;t t
13579s,@host_alias@,$host_alias,;t t
13580s,@target_alias@,$target_alias,;t t
13581s,@DEFS@,$DEFS,;t t
13582s,@ECHO_C@,$ECHO_C,;t t
13583s,@ECHO_N@,$ECHO_N,;t t
13584s,@ECHO_T@,$ECHO_T,;t t
13585s,@LIBS@,$LIBS,;t t
5b553f7e 13586s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
13587s,@build@,$build,;t t
13588s,@build_cpu@,$build_cpu,;t t
13589s,@build_vendor@,$build_vendor,;t t
13590s,@build_os@,$build_os,;t t
13591s,@build_noncanonical@,$build_noncanonical,;t t
13592s,@host_noncanonical@,$host_noncanonical,;t t
13593s,@target_noncanonical@,$target_noncanonical,;t t
13594s,@host@,$host,;t t
13595s,@host_cpu@,$host_cpu,;t t
13596s,@host_vendor@,$host_vendor,;t t
13597s,@host_os@,$host_os,;t t
13598s,@target@,$target,;t t
13599s,@target_cpu@,$target_cpu,;t t
13600s,@target_vendor@,$target_vendor,;t t
13601s,@target_os@,$target_os,;t t
13602s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13603s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13604s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13605s,@LN@,$LN,;t t
13606s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
13607s,@build_libsubdir@,$build_libsubdir,;t t
13608s,@build_subdir@,$build_subdir,;t t
13609s,@host_subdir@,$host_subdir,;t t
13610s,@target_subdir@,$target_subdir,;t t
13611s,@CC@,$CC,;t t
13612s,@CFLAGS@,$CFLAGS,;t t
13613s,@LDFLAGS@,$LDFLAGS,;t t
13614s,@CPPFLAGS@,$CPPFLAGS,;t t
13615s,@ac_ct_CC@,$ac_ct_CC,;t t
13616s,@EXEEXT@,$EXEEXT,;t t
13617s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
13618s,@CXX@,$CXX,;t t
13619s,@CXXFLAGS@,$CXXFLAGS,;t t
13620s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
13621s,@GNATBIND@,$GNATBIND,;t t
13622s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
13623s,@GNATMAKE@,$GNATMAKE,;t t
13624s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
13625s,@do_compare@,$do_compare,;t t
13626s,@gmplibs@,$gmplibs,;t t
13627s,@gmpinc@,$gmpinc,;t t
e8a5fa9c
RW
13628s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
13629s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13630s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
13631s,@stage1_ldflags@,$stage1_ldflags,;t t
13632s,@stage1_libs@,$stage1_libs,;t t
13633s,@poststage1_ldflags@,$poststage1_ldflags,;t t
13634s,@poststage1_libs@,$poststage1_libs,;t t
e28c595f
JM
13635s,@ppllibs@,$ppllibs,;t t
13636s,@pplinc@,$pplinc,;t t
13637s,@clooglibs@,$clooglibs,;t t
13638s,@clooginc@,$clooginc,;t t
c6b750e1
DJ
13639s,@stage1_languages@,$stage1_languages,;t t
13640s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 13641s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
13642s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13643s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1 13644s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 13645s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
13646s,@tooldir@,$tooldir,;t t
13647s,@build_tooldir@,$build_tooldir,;t t
13648s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13649s,@GDB_TK@,$GDB_TK,;t t
13650s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13651s,@build_configargs@,$build_configargs,;t t
13652s,@build_configdirs@,$build_configdirs,;t t
13653s,@host_configargs@,$host_configargs,;t t
13654s,@configdirs@,$configdirs,;t t
13655s,@target_configargs@,$target_configargs,;t t
1576798e
PB
13656s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13657s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13658s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
13659s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13660s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13661s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13662s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13663s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13664s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13665s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13666s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13667s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13668s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13669s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13670s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13671s,@config_shell@,$config_shell,;t t
13672s,@YACC@,$YACC,;t t
13673s,@BISON@,$BISON,;t t
13674s,@M4@,$M4,;t t
13675s,@LEX@,$LEX,;t t
13676s,@FLEX@,$FLEX,;t t
13677s,@MAKEINFO@,$MAKEINFO,;t t
13678s,@EXPECT@,$EXPECT,;t t
13679s,@RUNTEST@,$RUNTEST,;t t
13680s,@AR@,$AR,;t t
13681s,@AS@,$AS,;t t
13682s,@DLLTOOL@,$DLLTOOL,;t t
13683s,@LD@,$LD,;t t
13684s,@LIPO@,$LIPO,;t t
13685s,@NM@,$NM,;t t
13686s,@RANLIB@,$RANLIB,;t t
13687s,@STRIP@,$STRIP,;t t
13688s,@WINDRES@,$WINDRES,;t t
0c24b341 13689s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13690s,@OBJCOPY@,$OBJCOPY,;t t
13691s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13692s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13693s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13694s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13695s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13696s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13697s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13698s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13699s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13700s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13701s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13702s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13703s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13704s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13705s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13706s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13707s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13708s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13709s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13710s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13711s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13712s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13713s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13714s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13715s,@MAINT@,$MAINT,;t t
13716s,@stage1_cflags@,$stage1_cflags,;t t
13717s,@stage1_checking@,$stage1_checking,;t t
13718s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13719s,@datarootdir@,$datarootdir,;t t
13720s,@docdir@,$docdir,;t t
a3ca38d2 13721s,@pdfdir@,$pdfdir,;t t
c6b750e1 13722s,@htmldir@,$htmldir,;t t
e8a5fa9c 13723s,@compare_exclusions@,$compare_exclusions,;t t
c6b750e1
DJ
13724s,@LIBOBJS@,$LIBOBJS,;t t
13725s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13726/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13727s,@serialization_dependencies@,,;t t
a0da8069 13728/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13729s,@host_makefile_frag@,,;t t
a0da8069 13730/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13731s,@target_makefile_frag@,,;t t
a0da8069 13732/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13733s,@alphaieee_frag@,,;t t
a0da8069 13734/@ospace_frag@/r $ospace_frag
c6b750e1 13735s,@ospace_frag@,,;t t
a0da8069 13736CEOF
252b5132 13737
c6b750e1
DJ
13738_ACEOF
13739
13740 cat >>$CONFIG_STATUS <<\_ACEOF
13741 # Split the substitutions into bite-sized pieces for seds with
13742 # small command number limits, like on Digital OSF/1 and HP-UX.
13743 ac_max_sed_lines=48
13744 ac_sed_frag=1 # Number of current file.
13745 ac_beg=1 # First line for current file.
13746 ac_end=$ac_max_sed_lines # Line after last line for current file.
13747 ac_more_lines=:
13748 ac_sed_cmds=
13749 while $ac_more_lines; do
13750 if test $ac_beg -gt 1; then
13751 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13752 else
13753 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13754 fi
13755 if test ! -s $tmp/subs.frag; then
13756 ac_more_lines=false
a0da8069 13757 else
c6b750e1
DJ
13758 # The purpose of the label and of the branching condition is to
13759 # speed up the sed processing (if there are no `@' at all, there
13760 # is no need to browse any of the substitutions).
13761 # These are the two extra sed commands mentioned above.
13762 (echo ':t
13763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13764 if test -z "$ac_sed_cmds"; then
13765 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13766 else
13767 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13768 fi
13769 ac_sed_frag=`expr $ac_sed_frag + 1`
13770 ac_beg=$ac_end
13771 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13772 fi
c6b750e1
DJ
13773 done
13774 if test -z "$ac_sed_cmds"; then
13775 ac_sed_cmds=cat
852e5f18 13776 fi
c6b750e1 13777fi # test -n "$CONFIG_FILES"
cac3d6c4 13778
c6b750e1
DJ
13779_ACEOF
13780cat >>$CONFIG_STATUS <<\_ACEOF
13781for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13783 case $ac_file in
13784 - | *:- | *:-:* ) # input from stdin
13785 cat >$tmp/stdin
13786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13790 * ) ac_file_in=$ac_file.in ;;
a0da8069 13791 esac
252b5132 13792
c6b750e1
DJ
13793 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796 X"$ac_file" : 'X\(//\)[^/]' \| \
13797 X"$ac_file" : 'X\(//\)$' \| \
13798 X"$ac_file" : 'X\(/\)' \| \
13799 . : '\(.\)' 2>/dev/null ||
13800echo X"$ac_file" |
13801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13803 /^X\(\/\/\)$/{ s//\1/; q; }
13804 /^X\(\/\).*/{ s//\1/; q; }
13805 s/.*/./; q'`
13806 { if $as_mkdir_p; then
13807 mkdir -p "$ac_dir"
cac3d6c4 13808 else
c6b750e1
DJ
13809 as_dir="$ac_dir"
13810 as_dirs=
13811 while test ! -d "$as_dir"; do
13812 as_dirs="$as_dir $as_dirs"
13813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13814$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815 X"$as_dir" : 'X\(//\)[^/]' \| \
13816 X"$as_dir" : 'X\(//\)$' \| \
13817 X"$as_dir" : 'X\(/\)' \| \
13818 . : '\(.\)' 2>/dev/null ||
13819echo X"$as_dir" |
13820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13822 /^X\(\/\/\)$/{ s//\1/; q; }
13823 /^X\(\/\).*/{ s//\1/; q; }
13824 s/.*/./; q'`
13825 done
13826 test ! -n "$as_dirs" || mkdir $as_dirs
13827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13828echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13829 { (exit 1); exit 1; }; }; }
13830
13831 ac_builddir=.
252b5132 13832
c6b750e1
DJ
13833if test "$ac_dir" != .; then
13834 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13835 # A "../" for each directory in $ac_dir_suffix.
13836 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13837else
13838 ac_dir_suffix= ac_top_builddir=
13839fi
13840
13841case $srcdir in
13842 .) # No --srcdir option. We are building in place.
13843 ac_srcdir=.
13844 if test -z "$ac_top_builddir"; then
13845 ac_top_srcdir=.
13846 else
13847 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13848 fi ;;
13849 [\\/]* | ?:[\\/]* ) # Absolute path.
13850 ac_srcdir=$srcdir$ac_dir_suffix;
13851 ac_top_srcdir=$srcdir ;;
a0da8069 13852 *) # Relative path.
c6b750e1
DJ
13853 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13854 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13855esac
252b5132 13856
c6b750e1
DJ
13857# Do not use `cd foo && pwd` to compute absolute paths, because
13858# the directories may not exist.
13859case `pwd` in
13860.) ac_abs_builddir="$ac_dir";;
13861*)
13862 case "$ac_dir" in
13863 .) ac_abs_builddir=`pwd`;;
13864 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13865 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13866 esac;;
13867esac
13868case $ac_abs_builddir in
13869.) ac_abs_top_builddir=${ac_top_builddir}.;;
13870*)
13871 case ${ac_top_builddir}. in
13872 .) ac_abs_top_builddir=$ac_abs_builddir;;
13873 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13874 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13875 esac;;
13876esac
13877case $ac_abs_builddir in
13878.) ac_abs_srcdir=$ac_srcdir;;
13879*)
13880 case $ac_srcdir in
13881 .) ac_abs_srcdir=$ac_abs_builddir;;
13882 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13883 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13884 esac;;
13885esac
13886case $ac_abs_builddir in
13887.) ac_abs_top_srcdir=$ac_top_srcdir;;
13888*)
13889 case $ac_top_srcdir in
13890 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13891 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13892 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13893 esac;;
13894esac
252b5132 13895
c6b750e1
DJ
13896
13897 case $INSTALL in
13898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13899 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13900 esac
252b5132 13901
c6b750e1
DJ
13902 if test x"$ac_file" != x-; then
13903 { echo "$as_me:$LINENO: creating $ac_file" >&5
13904echo "$as_me: creating $ac_file" >&6;}
13905 rm -f "$ac_file"
13906 fi
13907 # Let's still pretend it is `configure' which instantiates (i.e., don't
13908 # use $as_me), people would be surprised to read:
13909 # /* config.h. Generated by config.status. */
13910 if test x"$ac_file" = x-; then
13911 configure_input=
13912 else
13913 configure_input="$ac_file. "
13914 fi
13915 configure_input=$configure_input"Generated from `echo $ac_file_in |
13916 sed 's,.*/,,'` by configure."
13917
13918 # First look for the input files in the build tree, otherwise in the
13919 # src tree.
13920 ac_file_inputs=`IFS=:
13921 for f in $ac_file_in; do
13922 case $f in
13923 -) echo $tmp/stdin ;;
13924 [\\/$]*)
13925 # Absolute (can't be DOS-style, as IFS=:)
13926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13927echo "$as_me: error: cannot find input file: $f" >&2;}
13928 { (exit 1); exit 1; }; }
13929 echo "$f";;
13930 *) # Relative
13931 if test -f "$f"; then
13932 # Build tree
13933 echo "$f"
13934 elif test -f "$srcdir/$f"; then
13935 # Source tree
13936 echo "$srcdir/$f"
13937 else
13938 # /dev/null tree
13939 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13940echo "$as_me: error: cannot find input file: $f" >&2;}
13941 { (exit 1); exit 1; }; }
13942 fi;;
13943 esac
13944 done` || { (exit 1); exit 1; }
13945_ACEOF
13946cat >>$CONFIG_STATUS <<_ACEOF
13947 sed "$ac_vpsub
13948$extrasub
13949_ACEOF
13950cat >>$CONFIG_STATUS <<\_ACEOF
13951:t
13952/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13953s,@configure_input@,$configure_input,;t t
13954s,@srcdir@,$ac_srcdir,;t t
13955s,@abs_srcdir@,$ac_abs_srcdir,;t t
13956s,@top_srcdir@,$ac_top_srcdir,;t t
13957s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13958s,@builddir@,$ac_builddir,;t t
13959s,@abs_builddir@,$ac_abs_builddir,;t t
13960s,@top_builddir@,$ac_top_builddir,;t t
13961s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13962s,@INSTALL@,$ac_INSTALL,;t t
13963" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13964 rm -f $tmp/stdin
13965 if test x"$ac_file" != x-; then
13966 mv $tmp/out $ac_file
13967 else
13968 cat $tmp/out
13969 rm -f $tmp/out
13970 fi
c148b4cb 13971
c6b750e1
DJ
13972done
13973_ACEOF
c148b4cb 13974
c6b750e1 13975cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13976
c6b750e1
DJ
13977{ (exit 0); exit 0; }
13978_ACEOF
c148b4cb 13979chmod +x $CONFIG_STATUS
c6b750e1
DJ
13980ac_clean_files=$ac_clean_files_save
13981
13982
13983# configure is writing to config.log, and then calls config.status.
13984# config.status does its own redirection, appending to config.log.
13985# Unfortunately, on DOS this fails, as config.log is still kept open
13986# by configure, so config.status won't be able to write to it; its
13987# output is simply discarded. So we exec the FD to /dev/null,
13988# effectively closing config.log, so it can be properly (re)opened and
13989# appended to by config.status. When coming back to configure, we
13990# need to make the FD available again.
13991if test "$no_create" != yes; then
13992 ac_cs_success=:
13993 ac_config_status_args=
13994 test "$silent" = yes &&
13995 ac_config_status_args="$ac_config_status_args --quiet"
13996 exec 5>/dev/null
13997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13998 exec 5>>config.log
13999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14000 # would make configure fail if this is the last instruction.
14001 $ac_cs_success || { (exit 1); exit 1; }
14002fi
c148b4cb 14003
This page took 1.212074 seconds and 4 git commands to generate.