* include/elf/ia64.h (SHT_IA_64_VMS_DISPLAY_NAME_INFO,
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
e28c595f 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
7a283e07 277ac_pwd=`pwd`
a0da8069
NN
278
279# Initialize some variables set by options.
c6b750e1
DJ
280ac_init_help=
281ac_init_version=false
a0da8069
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
c6b750e1 284cache_file=/dev/null
a0da8069 285exec_prefix=NONE
a0da8069 286no_create=
a0da8069
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
a0da8069
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
c6b750e1
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
252b5132 316
a0da8069
NN
317ac_prev=
318for ac_option
319do
a0da8069
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
252b5132 326
c6b750e1 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
c6b750e1 331 case $ac_option in
a0da8069
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 336 bindir=$ac_optarg ;;
a0da8069
NN
337
338 -build | --build | --buil | --bui | --bu)
c6b750e1 339 ac_prev=build_alias ;;
a0da8069 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 341 build_alias=$ac_optarg ;;
a0da8069
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
a0da8069
NN
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
c6b750e1 357 datadir=$ac_optarg ;;
a0da8069
NN
358
359 -disable-* | --disable-*)
c6b750e1 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 361 # Reject names that are not valid shell variable names.
c6b750e1
DJ
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
a0da8069
NN
367
368 -enable-* | --enable-*)
c6b750e1 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 370 # Reject names that are not valid shell variable names.
c6b750e1
DJ
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
377 *) ac_optarg=yes ;;
378 esac
c6b750e1 379 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
c6b750e1 388 exec_prefix=$ac_optarg ;;
a0da8069
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
c6b750e1
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
a0da8069
NN
400
401 -host | --host | --hos | --ho)
c6b750e1 402 ac_prev=host_alias ;;
a0da8069 403 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 404 host_alias=$ac_optarg ;;
a0da8069
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 411 includedir=$ac_optarg ;;
a0da8069
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 416 infodir=$ac_optarg ;;
a0da8069
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 421 libdir=$ac_optarg ;;
a0da8069
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
c6b750e1 428 libexecdir=$ac_optarg ;;
a0da8069
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 437 localstatedir=$ac_optarg ;;
a0da8069
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 442 mandir=$ac_optarg ;;
a0da8069
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 449 | --no-cr | --no-c | -n)
a0da8069
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 463 oldincludedir=$ac_optarg ;;
a0da8069
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 468 prefix=$ac_optarg ;;
a0da8069
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 475 program_prefix=$ac_optarg ;;
a0da8069
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 482 program_suffix=$ac_optarg ;;
a0da8069
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 499 program_transform_name=$ac_optarg ;;
a0da8069
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
c6b750e1 509 sbindir=$ac_optarg ;;
a0da8069
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
c6b750e1 520 sharedstatedir=$ac_optarg ;;
a0da8069
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
c6b750e1 525 site=$ac_optarg ;;
a0da8069
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 530 srcdir=$ac_optarg ;;
a0da8069
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 537 sysconfdir=$ac_optarg ;;
a0da8069
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 540 ac_prev=target_alias ;;
a0da8069 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 542 target_alias=$ac_optarg ;;
a0da8069
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
c6b750e1
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
a0da8069
NN
549
550 -with-* | --with-*)
c6b750e1 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 552 # Reject names that are not valid shell variable names.
c6b750e1
DJ
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
a0da8069 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
559 *) ac_optarg=yes ;;
560 esac
c6b750e1 561 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
562
563 -without-* | --without-*)
c6b750e1 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 565 # Reject names that are not valid shell variable names.
c6b750e1
DJ
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
a0da8069
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 581 x_includes=$ac_optarg ;;
a0da8069
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 588 x_libraries=$ac_optarg ;;
a0da8069 589
c6b750e1
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
a0da8069
NN
593 ;;
594
c6b750e1
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
a0da8069 605 *)
c6b750e1
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
c6b750e1
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
a0da8069 620fi
a0da8069 621
c6b750e1
DJ
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
a0da8069 632
c6b750e1
DJ
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 636do
c6b750e1
DJ
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
a0da8069
NN
642 esac
643done
644
c6b750e1
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
376a0e54 651
c6b750e1
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
a0da8069 667
a0da8069
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
c6b750e1
DJ
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
a0da8069
NN
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
a0da8069 696 else
c6b750e1
DJ
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
9cc8ae67
PB
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
c6b750e1
DJ
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883_ACEOF
884
885 cat <<_ACEOF
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
a0da8069 926fi
a0da8069 927
c6b750e1
DJ
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 935 --enable-gold use gold instead of ld
521ec477
DD
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
e28c595f
JM
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
521ec477 940 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 941 stage1. Mostly useful for compiler development.
521ec477
DD
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
c6b750e1 947 sub-packages for the host, target or build
521ec477 948 machine, or all sub-packages
c6b750e1
DJ
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
521ec477
DD
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
c6b750e1
DJ
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
521ec477
DD
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
521ec477
DD
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
e28c595f
JM
972 --with-ppl=PATH Specify prefix directory for the installed PPL package
973 Equivalent to --with-ppl-include=PATH/include
974 plus --with-ppl-lib=PATH/lib
975 --with-ppl-include=PATH Specify directory for installed PPL include files
976 --with-ppl-lib=PATH Specify the directory for the installed PPL library
977 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
978 Equivalent to --with-cloog-include=PATH/include
979 plus --with-cloog-lib=PATH/lib
980 --with-cloog-include=PATH Specify directory for installed CLooG include files
981 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
982 --with-cloog-polylib=PATH Specify prefix directory for the installed CLooG-PolyLib package
521ec477 983 --with-build-sysroot=SYSROOT
c6b750e1 984 use sysroot as the system root during the build
8a6ee3ab
JM
985 --with-debug-prefix-map='A=B C=D ...'
986 map A to B, C to D ... in debug information
521ec477 987 --with-build-time-tools=PATH
c6b750e1 988 use given path to find target tools during the build
521ec477
DD
989 --with-datarootdir use datarootdir as the data root directory.
990 --with-docdir install documentation in this directory.
991 --with-pdfdir install pdf in this directory.
992 --with-htmldir install html in this directory.
c6b750e1
DJ
993
994Some influential environment variables:
995 CC C compiler command
996 CFLAGS C compiler flags
997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
998 nonstandard directory <lib dir>
999 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1000 headers in a nonstandard directory <include dir>
18f6b6ee
PB
1001 CXX C++ compiler command
1002 CXXFLAGS C++ compiler flags
9a819804
AO
1003 AR AR for the host
1004 AS AS for the host
1005 DLLTOOL DLLTOOL for the host
1006 LD LD for the host
1007 LIPO LIPO for the host
1008 NM NM for the host
1009 RANLIB RANLIB for the host
1010 STRIP STRIP for the host
1011 WINDRES WINDRES for the host
0c24b341 1012 WINDMC WINDMC for the host
9a819804
AO
1013 OBJCOPY OBJCOPY for the host
1014 OBJDUMP OBJDUMP for the host
1015 CC_FOR_TARGET
1016 CC for the target
1017 CXX_FOR_TARGET
1018 CXX for the target
1019 GCC_FOR_TARGET
1020 GCC for the target
1021 GCJ_FOR_TARGET
1022 GCJ for the target
1023 GFORTRAN_FOR_TARGET
1024 GFORTRAN for the target
1025 AR_FOR_TARGET
1026 AR for the target
1027 AS_FOR_TARGET
1028 AS for the target
1029 DLLTOOL_FOR_TARGET
1030 DLLTOOL for the target
1031 LD_FOR_TARGET
1032 LD for the target
1033 LIPO_FOR_TARGET
1034 LIPO for the target
1035 NM_FOR_TARGET
1036 NM for the target
1037 OBJDUMP_FOR_TARGET
1038 OBJDUMP for the target
1039 RANLIB_FOR_TARGET
1040 RANLIB for the target
1041 STRIP_FOR_TARGET
1042 STRIP for the target
1043 WINDRES_FOR_TARGET
1044 WINDRES for the target
0c24b341
NC
1045 WINDMC_FOR_TARGET
1046 WINDMC for the target
c6b750e1
DJ
1047
1048Use these variables to override the choices made by `configure' or to help
1049it to find libraries and programs with nonstandard names/locations.
1050
1051_ACEOF
1052fi
1053
1054if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1060
1061if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065else
1066 ac_dir_suffix= ac_top_builddir=
1067fi
1068
1069case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083esac
1084
1085# Do not use `cd foo && pwd` to compute absolute paths, because
1086# the directories may not exist.
1087case `pwd` in
1088.) ac_abs_builddir="$ac_dir";;
1089*)
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_top_builddir=${ac_top_builddir}.;;
1098*)
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_srcdir=$ac_srcdir;;
1107*)
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_srcdir=$ac_top_srcdir;;
1116*)
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122esac
1123
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 fi
1139 cd $ac_popdir
1140 done
1141fi
1142
1143test -n "$ac_init_help" && exit 0
1144if $ac_init_version; then
1145 cat <<\_ACEOF
1146
1147Copyright (C) 2003 Free Software Foundation, Inc.
1148This configure script is free software; the Free Software Foundation
1149gives unlimited permission to copy, distribute and modify it.
1150_ACEOF
1151 exit 0
1152fi
1153exec 5>config.log
1154cat >&5 <<_ACEOF
1155This file contains any messages produced by compilers while
1156running configure, to aid debugging if configure makes a mistake.
1157
1158It was created by $as_me, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
1160
1161 $ $0 $@
1162
1163_ACEOF
1164{
1165cat <<_ASUNAME
1166## --------- ##
1167## Platform. ##
1168## --------- ##
1169
1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187_ASUNAME
1188
1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190for as_dir in $PATH
1191do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195done
1196
1197} >&5
1198
1199cat >&5 <<_ACEOF
1200
1201
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
1205
1206_ACEOF
1207
1208
1209# Keep a trace of the command line.
1210# Strip out --no-create and --no-recursion so they do not pile up.
1211# Strip out --silent because we don't want to record it for future runs.
1212# Also quote any args containing shell meta-characters.
1213# Make two passes to allow for proper duplicate-argument suppression.
1214ac_configure_args=
1215ac_configure_args0=
1216ac_configure_args1=
1217ac_sep=
1218ac_must_keep_next=false
1219for ac_pass in 1 2
1220do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256done
1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260# When interrupted or exit'd, cleanup temporary files, and complete
1261# config.log. We remove comments because anyway the quotes in there
1262# would cause problems or look ugly.
1263# WARNING: Be sure not to use single quotes in there, as some shells,
1264# such as our DU 5.0 friend, will then `close' the trap.
1265trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271## ---------------- ##
1272## Cache variables. ##
1273## ---------------- ##
1274_ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277{
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290}
1291 echo
1292
1293 cat <<\_ASBOX
1294## ----------------- ##
1295## Output variables. ##
1296## ----------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308## ------------- ##
1309## Output files. ##
1310## ------------- ##
1311_ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323## ----------- ##
1324## confdefs.h. ##
1325## ----------- ##
1326_ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341done
1342ac_signal=0
1343
1344# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345rm -rf conftest* confdefs.h
1346# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347echo >confdefs.h
1348
1349# Predefined preprocessor variables.
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_NAME "$PACKAGE_NAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_STRING "$PACKAGE_STRING"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373_ACEOF
1374
1375
1376# Let the site file select an alternate cache file if it wants to.
a0da8069 1377# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1378if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1383 fi
1384fi
1385for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
c6b750e1
DJ
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1390 . "$ac_site_file"
1391 fi
1392done
1393
1394if test -r "$cache_file"; then
c6b750e1
DJ
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
a0da8069 1405else
c6b750e1
DJ
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409fi
1410
1411# Check that the precious variables saved in the cache have kept the same
1412# value.
1413ac_cache_corrupted=false
1414for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1443 fi
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
7a283e07
RW
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
a0da8069
NN
1471fi
1472
1473ac_ext=c
a0da8069 1474ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
a0da8069
NN
1491
1492
75778ec4 1493
c6b750e1 1494
7a283e07
RW
1495
1496
1497
c6b750e1
DJ
1498
1499
1500
5b553f7e
RW
1501
1502progname=$0
1503# if PWD already has a value, it is probably wrong.
1504if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1505
1506# Export original configure arguments for use by sub-configures.
1507# Quote arguments with shell meta charatcers.
1508TOPLEVEL_CONFIGURE_ARGUMENTS=
1509set -- "$progname" "$@"
1510for ac_arg
1511do
1512 case "$ac_arg" in
1513 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1514 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1515 # if the argument is of the form -foo=baz, quote the baz part only
1516 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1517 *) ;;
1518 esac
1519 # Add the quoted argument to the list.
1520 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1521done
1522if test "$silent" = yes; then
1523 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1524fi
1525# Remove the initial space we just introduced and, as these will be
1526# expanded by make, quote '$'.
1527TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1528
c6b750e1
DJ
1529
1530# Find the build, host, and target systems.
a0da8069 1531ac_aux_dir=
315b3b02 1532for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1533 if test -f $ac_dir/install-sh; then
1534 ac_aux_dir=$ac_dir
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1536 break
1537 elif test -f $ac_dir/install.sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1540 break
c6b750e1
DJ
1541 elif test -f $ac_dir/shtool; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1544 break
a0da8069
NN
1545 fi
1546done
1547if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550 { (exit 1); exit 1; }; }
a0da8069 1551fi
c6b750e1
DJ
1552ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1555
c6b750e1
DJ
1556# Make sure we can run config.sub.
1557$ac_config_sub sun4 >/dev/null 2>&1 ||
1558 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1559echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562echo "$as_me:$LINENO: checking build system type" >&5
1563echo $ECHO_N "checking build system type... $ECHO_C" >&6
1564if test "${ac_cv_build+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567 ac_cv_build_alias=$build_alias
1568test -z "$ac_cv_build_alias" &&
1569 ac_cv_build_alias=`$ac_config_guess`
1570test -z "$ac_cv_build_alias" &&
1571 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1572echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1573 { (exit 1); exit 1; }; }
1574ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1576echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1578
1579fi
1580echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1581echo "${ECHO_T}$ac_cv_build" >&6
1582build=$ac_cv_build
1583build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1586
a0da8069 1587
c6b750e1
DJ
1588 case ${build_alias} in
1589 "") build_noncanonical=${build} ;;
1590 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1591esac
1592
1593
cac3d6c4 1594
c6b750e1
DJ
1595 case ${host_alias} in
1596 "") host_noncanonical=${build_noncanonical} ;;
1597 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1598esac
1599
cac3d6c4 1600
c6b750e1
DJ
1601
1602 case ${target_alias} in
1603 "") target_noncanonical=${host_noncanonical} ;;
1604 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1605esac
1606
cac3d6c4 1607
c6b750e1
DJ
1608
1609
1610test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1611 test "$program_prefix$program_suffix$program_transform_name" = \
1612 NONENONEs,x,x, &&
c6b750e1 1613 program_transform_name=s,y,y,
cac3d6c4 1614
c6b750e1
DJ
1615echo "$as_me:$LINENO: checking host system type" >&5
1616echo $ECHO_N "checking host system type... $ECHO_C" >&6
1617if test "${ac_cv_host+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1619else
c6b750e1
DJ
1620 ac_cv_host_alias=$host_alias
1621test -z "$ac_cv_host_alias" &&
1622 ac_cv_host_alias=$ac_cv_build_alias
1623ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1625echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1627
1628fi
1629echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1630echo "${ECHO_T}$ac_cv_host" >&6
1631host=$ac_cv_host
1632host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637echo "$as_me:$LINENO: checking target system type" >&5
1638echo $ECHO_N "checking target system type... $ECHO_C" >&6
1639if test "${ac_cv_target+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 ac_cv_target_alias=$target_alias
1643test "x$ac_cv_target_alias" = "x" &&
1644 ac_cv_target_alias=$ac_cv_host_alias
1645ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1647echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1649
cac3d6c4 1650fi
c6b750e1
DJ
1651echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1652echo "${ECHO_T}$ac_cv_target" >&6
1653target=$ac_cv_target
1654target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659# The aliases save the names the user supplied, while $host etc.
1660# will get canonicalized.
1661test -n "$target_alias" &&
1662 test "$program_prefix$program_suffix$program_transform_name" = \
1663 NONENONEs,x,x, &&
1664 program_prefix=${target_alias}-
a0da8069 1665test "$program_prefix" != NONE &&
c6b750e1 1666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1667# Use a double $ so make ignores it.
1668test "$program_suffix" != NONE &&
c6b750e1
DJ
1669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670# Double any \ or $. echo might interpret backslashes.
1671# By default was `s,x,x', remove it if useless.
1672cat <<\_ACEOF >conftest.sed
1673s/[\\$]/&&/g;s/;s,x,x,$//
1674_ACEOF
1675program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1676rm conftest.sed
cac3d6c4 1677
a0da8069
NN
1678
1679
e5c3f801
NN
1680# Get 'install' or 'install-sh' and its variants.
1681# Find a good install program. We prefer a C program (faster),
1682# so one script is as good as another. But avoid the broken or
1683# incompatible versions:
1684# SysV /etc/install, /usr/sbin/install
1685# SunOS /usr/etc/install
1686# IRIX /sbin/install
1687# AIX /bin/install
c6b750e1 1688# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1692# OS/2's system install, which has a completely different semantic
e5c3f801 1693# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1694# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1695echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1696echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1697if test -z "$INSTALL"; then
c6b750e1
DJ
1698if test "${ac_cv_path_install+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 # Account for people who put trailing slashes in PATH elements.
1707case $as_dir/ in
1708 ./ | .// | /cC/* | \
1709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1710 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1711 /usr/ucb/* ) ;;
1712 *)
1713 # OSF1 and SCO ODT 3.0 have their own names for install.
1714 # Don't use installbsd from OSF since it installs stuff as root
1715 # by default.
1716 for ac_prog in ginstall scoinst install; do
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1719 if test $ac_prog = install &&
c6b750e1 1720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1721 # AIX install. It has an incompatible calling convention.
1722 :
c6b750e1
DJ
1723 elif test $ac_prog = install &&
1724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1725 # program-specific install script used by HP pwplus--don't use.
1726 :
e5c3f801 1727 else
58c85be7
RW
1728 rm -rf conftest.one conftest.two conftest.dir
1729 echo one > conftest.one
1730 echo two > conftest.two
1731 mkdir conftest.dir
1732 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1733 test -s conftest.one && test -s conftest.two &&
1734 test -s conftest.dir/conftest.one &&
1735 test -s conftest.dir/conftest.two
1736 then
1737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1738 break 3
1739 fi
e5c3f801
NN
1740 fi
1741 fi
1742 done
c6b750e1
DJ
1743 done
1744 ;;
1745esac
1746done
1747
58c85be7 1748rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1749
1750fi
1751 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1752 INSTALL=$ac_cv_path_install
e5c3f801 1753 else
58c85be7
RW
1754 # As a last resort, use the slow shell script. Don't cache a
1755 # value for INSTALL within a source directory, because that will
e5c3f801 1756 # break other packages using the cache if that directory is
58c85be7 1757 # removed, or if the value is a relative name.
c6b750e1 1758 INSTALL=$ac_install_sh
e5c3f801
NN
1759 fi
1760fi
c6b750e1
DJ
1761echo "$as_me:$LINENO: result: $INSTALL" >&5
1762echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1763
1764# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765# It thinks the first close brace ends the variable substitution.
1766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
c6b750e1 1768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1769
1770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
c6b750e1
DJ
1772echo "$as_me:$LINENO: checking whether ln works" >&5
1773echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1774if test "${acx_cv_prog_LN+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1776else
1777 rm -f conftestdata_t
1778echo >conftestdata_f
1779if ln conftestdata_f conftestdata_t 2>/dev/null
1780then
1781 acx_cv_prog_LN=ln
1782else
1783 acx_cv_prog_LN=no
1784fi
1785rm -f conftestdata_f conftestdata_t
1786
1787fi
1788if test $acx_cv_prog_LN = no; then
1789 LN="cp"
c6b750e1
DJ
1790 echo "$as_me:$LINENO: result: no, using $LN" >&5
1791echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1792else
1793 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1794 echo "$as_me:$LINENO: result: yes" >&5
1795echo "${ECHO_T}yes" >&6
656fdd47
PB
1796fi
1797
c6b750e1
DJ
1798echo "$as_me:$LINENO: checking whether ln -s works" >&5
1799echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1800LN_S=$as_ln_s
1801if test "$LN_S" = "ln -s"; then
1802 echo "$as_me:$LINENO: result: yes" >&5
1803echo "${ECHO_T}yes" >&6
cac3d6c4 1804else
c6b750e1
DJ
1805 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1806echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1807fi
1808
e5c3f801 1809
252b5132 1810### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1811### If we are on Windows, search for the shell. This will permit people
1812### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1813### without also having to set CONFIG_SHELL. This code will work when
1814### using bash, which sets OSTYPE.
1815case "${OSTYPE}" in
1816*win32*)
a0da8069
NN
1817 if test x${CONFIG_SHELL} = x ; then
1818 if test ! -f /bin/sh ; then
1819 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1820 CONFIG_SHELL=${SHELL}
1821 export CONFIG_SHELL
1822 else
1823 for prog in sh sh.exe bash bash.exe; do
1824 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1825 for dir in $PATH; do
1826 test -z "$dir" && dir=.
1827 if test -f $dir/$prog; then
1828 CONFIG_SHELL=$dir/$prog
1829 export CONFIG_SHELL
1830 break
1831 fi
1832 done
1833 IFS="$save_ifs"
1834 test -n "${CONFIG_SHELL}" && break
1835 done
1836 fi
1837 fi
1838 fi
1839 ;;
1840esac
1841
1842config_shell=${CONFIG_SHELL-/bin/sh}
1843
a0da8069 1844moveifchange=${srcdir}/move-if-change
252b5132 1845
0fdbe983
DJ
1846srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1847
1848# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1849# a relative path.
1850if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1851 INSTALL="${srcpwd}/install-sh -c"
1852fi
1853
a0da8069
NN
1854# Set srcdir to "." if that's what it is.
1855# This is important for multilib support.
1856pwd=`${PWDCMD-pwd}`
a0da8069
NN
1857if test "${pwd}" = "${srcpwd}" ; then
1858 srcdir=.
252b5132
RH
1859fi
1860
a0da8069 1861topsrcdir=$srcpwd
252b5132 1862
a0da8069 1863extra_host_args=
afefada0 1864
a0da8069
NN
1865### To add a new directory to the tree, first choose whether it is a target
1866### or a host dependent tool. Then put it into the appropriate list
1867### (library or tools, host or target), doing a dependency sort.
252b5132 1868
c6b750e1 1869# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1870# configdirs, or target_configdirs; see the serialization section below.
252b5132 1871
c6b750e1
DJ
1872# Dependency sorting is only needed when *configuration* must be done in
1873# a particular order. In all cases a dependency should be specified in
a0da8069 1874# the Makefile, whether or not it's implicitly specified here.
252b5132 1875
a0da8069
NN
1876# Double entries in build_configdirs, configdirs, or target_configdirs may
1877# cause circular dependencies and break everything horribly.
252b5132 1878
6a9cf61e
PB
1879# these library is used by various programs built for the build
1880# environment
1881#
1882build_libs="build-libiberty"
1883
1884# these tools are built for the build environment
ee025550 1885build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1886
a0da8069
NN
1887# these libraries are used by various programs built for the host environment
1888#
e28c595f 1889host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog"
a0da8069 1890
a0da8069
NN
1891# these tools are built for the host environment
1892# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1893# know that we are building the simulator.
1894# binutils, gas and ld appear in that order because it makes sense to run
1895# "make check" in that particular order.
93f9b408 1896# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1897host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1898
1899# libgcj represents the runtime libraries only used by gcj.
1900libgcj="target-libffi \
a0da8069
NN
1901 target-zlib \
1902 target-qthreads \
1903 target-libjava"
1904
1905# these libraries are built for the target environment, and are built after
1906# the host libraries and the host tools (which may be a cross compiler)
1907#
b1299c4e
DJ
1908target_libraries="target-libgcc \
1909 target-libiberty \
a0da8069
NN
1910 target-libgloss \
1911 target-newlib \
cff87f51 1912 target-libgomp \
b9459e83 1913 target-libstdc++-v3 \
4b1cb4fe 1914 target-libmudflap \
bb780410 1915 target-libssp \
4b1cb4fe 1916 target-libgfortran \
4f0ef2d8 1917 target-boehm-gc \
83326456 1918 ${libgcj} \
a2592b1b 1919 target-libobjc \
cff87f51 1920 target-libada"
a0da8069 1921
9c14acb8
NN
1922# these tools are built using the target libraries, and are intended to
1923# run only in the target environment
a0da8069 1924#
9c14acb8 1925# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1926# list belongs in this list. those programs are also very likely
1927# candidates for the "native_only" list which follows
1928#
a3dd767d 1929target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1930
a0da8069 1931################################################################################
252b5132 1932
a0da8069
NN
1933## All tools belong in one of the four categories, and are assigned above
1934## We assign ${configdirs} this way to remove all embedded newlines. This
1935## is important because configure will choke if they ever get through.
1936## ${configdirs} is directories we build using the host tools.
1937## ${target_configdirs} is directories we build using the target tools.
a0da8069 1938configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1939target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1940build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1941
9cc8ae67
PB
1942
1943
a0da8069 1944################################################################################
252b5132 1945
a0da8069 1946srcname="gnu development package"
252b5132 1947
a0da8069
NN
1948# This gets set non-empty for some net releases of packages.
1949appdirs=""
252b5132 1950
a0da8069
NN
1951# Define is_cross_compiler to save on calls to 'test'.
1952is_cross_compiler=
1953if test x"${host}" = x"${target}" ; then
1954 is_cross_compiler=no
252b5132 1955else
a0da8069 1956 is_cross_compiler=yes
c6b750e1 1957fi
252b5132 1958
9175bfc0 1959# Find the build and target subdir names.
dd12c3a8 1960
66a79c16
DJ
1961# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1962# have matching libraries, they should use host libraries: Makefile.tpl
1963# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1964# However, they still use the build modules, because the corresponding
1965# host modules (e.g. bison) are only built for the host when bootstrap
1966# finishes. So:
1967# - build_subdir is where we find build modules, and never changes.
1968# - build_libsubdir is where we find build libraries, and can be overridden.
1969
1970# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1971build_subdir="build-${build_noncanonical}"
c6b750e1 1972
66a79c16
DJ
1973# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1974if test "${with_build_libsubdir+set}" = set; then
1975 withval="$with_build_libsubdir"
1976 build_libsubdir="$withval"
1977else
1978 build_libsubdir="$build_subdir"
c6b750e1 1979fi;
b00612cc
PB
1980# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1981if ( test $srcdir = . && test -d gcc ) \
1982 || test -d $srcdir/../host-${host_noncanonical}; then
1983 host_subdir="host-${host_noncanonical}"
1984else
1985 host_subdir=.
1986fi
dd12c3a8
NN
1987# No prefix.
1988target_subdir=${target_noncanonical}
c6b750e1 1989
252b5132 1990
a0da8069
NN
1991# Skipdirs are removed silently.
1992skipdirs=
1993# Noconfigdirs are removed loudly.
1994noconfigdirs=""
252b5132 1995
a0da8069
NN
1996use_gnu_ld=
1997# Make sure we don't let GNU ld be added if we didn't want it.
1998if test x$with_gnu_ld = xno ; then
1999 use_gnu_ld=no
93f9b408 2000 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2001fi
2002
a0da8069
NN
2003use_gnu_as=
2004# Make sure we don't let GNU as be added if we didn't want it.
2005if test x$with_gnu_as = xno ; then
2006 use_gnu_as=no
2007 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2008fi
2009
c6b750e1 2010# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2011# it's not even worth trying to configure, much less build, that tool.
252b5132 2012
a0da8069
NN
2013case ${with_x} in
2014 yes | "") ;; # the default value for this tree is that X11 is available
2015 no)
675c6968 2016 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2017 # We won't be able to build gdbtk without X.
c6b750e1 2018 enable_gdbtk=no
a0da8069
NN
2019 ;;
2020 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2021esac
252b5132 2022
a0da8069 2023# Some tools are only suitable for building in a "native" situation.
c6b750e1 2024# Remove these if host!=target.
701628f5 2025native_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 2026
a0da8069
NN
2027# Similarly, some are only suitable for cross toolchains.
2028# Remove these if host=target.
2029cross_only="target-libgloss target-newlib target-opcodes"
2030
2031case $is_cross_compiler in
2032 no) skipdirs="${skipdirs} ${cross_only}" ;;
2033 yes) skipdirs="${skipdirs} ${native_only}" ;;
2034esac
252b5132 2035
a0da8069
NN
2036# If both --with-headers and --with-libs are specified, default to
2037# --without-newlib.
32be62b5
RS
2038if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2039 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2040 if test x"${with_newlib}" = x ; then
2041 with_newlib=no
2042 fi
252b5132
RH
2043fi
2044
a0da8069
NN
2045# Recognize --with-newlib/--without-newlib.
2046case ${with_newlib} in
2047 no) skipdirs="${skipdirs} target-newlib" ;;
2048 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2049esac
252b5132 2050
93f9b408
ILT
2051# Handle --enable-gold.
2052
2053# Check whether --enable-gold or --disable-gold was given.
2054if test "${enable_gold+set}" = set; then
2055 enableval="$enable_gold"
2056 ENABLE_GOLD=$enableval
2057else
2058 ENABLE_GOLD=no
2059fi;
2060if test "${ENABLE_GOLD}" = "yes"; then
2061 # Check for ELF target.
2062 is_elf=no
2063 case "${target}" in
2064 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2065 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2066 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2067 case "${target}" in
2068 *-*-linux*aout* | *-*-linux*oldld*)
2069 ;;
2070 *)
2071 is_elf=yes
2072 ;;
2073 esac
2074 esac
2075
2076 if test "$is_elf" = "yes"; then
2077 # Check for target supported by gold.
2078 case "${target}" in
310213e8 2079 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
93f9b408
ILT
2080 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2081 ;;
2082 esac
2083 fi
2084fi
2085
a0da8069 2086# Configure extra directories which are host specific
252b5132 2087
a0da8069
NN
2088case "${host}" in
2089 *-cygwin*)
2090 configdirs="$configdirs libtermcap" ;;
2091esac
252b5132 2092
59f7ec45
HPN
2093# A target can indicate whether a language isn't supported for some reason.
2094# Only spaces may be used in this macro; not newlines or tabs.
2095unsupported_languages=
2096
c6b750e1 2097# Remove more programs from consideration, based on the host or
a0da8069
NN
2098# target this usually means that a port of the program doesn't
2099# exist yet.
252b5132 2100
a0da8069
NN
2101case "${host}" in
2102 hppa*64*-*-*)
2103 noconfigdirs="$noconfigdirs byacc"
2104 ;;
ec11bdc6 2105 i[3456789]86-*-vsta)
675c6968 2106 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2107 ;;
ec11bdc6 2108 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2109 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2110 ;;
2d1e8239
NC
2111 x86_64-*-mingw*)
2112 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2113 ;;
ec11bdc6 2114 i[3456789]86-*-mingw32*)
675c6968 2115 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2116 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2117 ;;
ec11bdc6 2118 i[3456789]86-*-beos*)
675c6968 2119 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2120 ;;
a0da8069 2121 *-*-cygwin*)
a92834c8 2122 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2123 ;;
2124 *-*-netbsd*)
a92834c8 2125 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2126 ;;
2127 ppc*-*-pe)
675c6968 2128 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2129 ;;
2130 powerpc-*-beos*)
675c6968 2131 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2132 ;;
a0da8069 2133esac
252b5132 2134
4b1cb4fe 2135
a2592b1b
DD
2136# Check whether --enable-libada or --disable-libada was given.
2137if test "${enable_libada+set}" = set; then
2138 enableval="$enable_libada"
2139 ENABLE_LIBADA=$enableval
2140else
2141 ENABLE_LIBADA=yes
c6b750e1 2142fi;
a2592b1b 2143if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2144 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2145fi
2146
5f128533
KH
2147# Check whether --enable-libssp or --disable-libssp was given.
2148if test "${enable_libssp+set}" = set; then
2149 enableval="$enable_libssp"
2150 ENABLE_LIBSSP=$enableval
2151else
2152 ENABLE_LIBSSP=yes
c6b750e1 2153fi;
5f128533 2154
a0da8069
NN
2155# Save it here so that, even in case of --enable-libgcj, if the Java
2156# front-end isn't enabled, we still get libgcj disabled.
2157libgcj_saved=$libgcj
2158case $enable_libgcj in
2159yes)
2160 # If we reset it here, it won't get added to noconfigdirs in the
2161 # target-specific build rules, so it will be forcibly enabled
2162 # (unless the Java language itself isn't enabled).
2163 libgcj=
2164 ;;
2165no)
2166 # Make sure we get it printed in the list of not supported target libs.
2167 noconfigdirs="$noconfigdirs ${libgcj}"
2168 ;;
2169esac
252b5132 2170
4b1cb4fe 2171
a6df5a19
PB
2172# Disable libmudflap on some systems.
2173if test x$enable_libmudflap = x ; then
3e707e94 2174 case "${target}" in
0ebe98fb 2175 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2176 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2177 ;;
2178 *-*-freebsd*)
2179 # Enable libmudflap by default in FreeBSD.
2180 ;;
2181 *)
2182 # Disable it by default everywhere else.
2183 noconfigdirs="$noconfigdirs target-libmudflap"
2184 ;;
2185 esac
a6df5a19 2186fi
4b1cb4fe 2187
a6df5a19
PB
2188# Disable libgomp on non POSIX hosted systems.
2189if test x$enable_libgomp = x ; then
b3ded179
PB
2190 # Enable libgomp by default on hosted POSIX systems.
2191 case "${target}" in
2192 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2193 ;;
2194 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2195 ;;
64ce424c 2196 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2197 ;;
2198 *-*-darwin* | *-*-aix*)
2199 ;;
2200 *)
2201 noconfigdirs="$noconfigdirs target-libgomp"
2202 ;;
2203 esac
a6df5a19 2204fi
b3ded179 2205
691bb5a1
DD
2206# Default libgloss CPU subdirectory.
2207libgloss_dir="$target_cpu"
4b1cb4fe 2208
a0da8069
NN
2209case "${target}" in
2210 *-*-chorusos)
54d1c879 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2212 ;;
af0771d3 2213 powerpc-*-darwin* | x86_64-*-darwin[912]*)
9d39db92 2214 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2215 noconfigdirs="$noconfigdirs sim target-rda"
652dec25
TG
2216 ;;
2217 i[3456789]86-*-darwin*)
2218 noconfigdirs="$noconfigdirs ld gas gprof"
2219 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2220 ;;
04d1ab34 2221 *-*-darwin*)
d320aacb 2222 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2223 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2224 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2225 ;;
a0da8069 2226 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2227 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2228 ;;
de0b4a87 2229 *-*-freebsd*)
4b1cb4fe
DD
2230 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2231 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2232 && test -f /usr/local/include/gmp.h; then
2233 with_gmp=/usr/local
2234 fi
2235
2236 # Skip some stuff that's unsupported on some FreeBSD configurations.
2237 case "${target}" in
2238 i*86-*-*) ;;
2239 alpha*-*-*) ;;
2240 *)
54d1c879 2241 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2242 ;;
2243 esac
2244 ;;
f8a495c8
NC
2245 *-*-kaos*)
2246 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2247 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2248 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2249 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2250 noconfigdirs="$noconfigdirs target-libgloss"
2251 ;;
a0da8069
NN
2252 *-*-netbsd*)
2253 # Skip some stuff on all NetBSD configurations.
2254 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2255
2256 # Skip some stuff that's unsupported on some NetBSD configurations.
2257 case "${target}" in
2258 i*86-*-netbsdelf*) ;;
5b474aa8 2259 arm*-*-netbsdelf*) ;;
a0da8069 2260 *)
54d1c879 2261 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2262 ;;
2263 esac
2264 ;;
2a3124ca 2265 *-*-netware*)
54d1c879 2266 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2267 ;;
2268 *-*-rtems*)
54d1c879 2269 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2270 ;;
1587117a
EC
2271 # The tpf target doesn't support gdb yet.
2272 *-*-tpf*)
54d1c879 2273 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2274 ;;
c1968181 2275 *-*-uclinux*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2277 ;;
a0da8069 2278 *-*-vxworks*)
54d1c879 2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2280 ;;
2281 alpha*-dec-osf*)
2282 # ld works, but does not support shared libraries.
2283 # newlib is not 64 bit ready. I'm not sure about fileutils.
2284 # gas doesn't generate exception information.
2285 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2286 ;;
2287 alpha*-*-*vms*)
54d1c879 2288 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2289 ;;
2290 alpha*-*-linux*)
2291 # newlib is not 64 bit ready
2292 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2293 ;;
a0da8069
NN
2294 alpha*-*-*)
2295 # newlib is not 64 bit ready
54d1c879 2296 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2297 ;;
4a18bd6b 2298 am33_2.0-*-linux*)
54d1c879 2299 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2300 ;;
a0da8069 2301 sh-*-linux*)
54d1c879 2302 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2303 ;;
a0da8069 2304 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2305 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2306 noconfigdirs="$noconfigdirs target-examples"
2307 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2308 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2309 noconfigdirs="$noconfigdirs expect dejagnu"
2310 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2312 noconfigdirs="$noconfigdirs target-newlib"
2313 case "${host}" in
2314 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2315 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2316 ;;
2317 esac
691bb5a1 2318 libgloss_dir=wince
a0da8069
NN
2319 ;;
2320 arc-*-*)
54d1c879 2321 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2322 ;;
caeba88f 2323 arm-semi-aof )
caeba88f 2324 ;;
a0da8069 2325 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2326 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2327 libgloss_dir=arm
a0da8069 2328 ;;
11b04d1f 2329 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2330 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2331 libgloss_dir=arm
a0da8069 2332 ;;
bd70a46f 2333 arm*-*-linux-gnueabi)
6d18b86b 2334 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2335 case ${with_newlib} in
2336 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2337 esac
691bb5a1 2338 libgloss_dir=arm
bd70a46f 2339 ;;
df4a6958 2340 arm*-*-symbianelf*)
54d1c879 2341 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2342 libgloss_dir=arm
df4a6958 2343 ;;
a0da8069 2344 arm-*-pe*)
54d1c879 2345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2346 ;;
a0da8069 2347 thumb-*-coff)
54d1c879 2348 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2349 ;;
2350 thumb-*-elf)
54d1c879 2351 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2352 ;;
a0da8069 2353 thumb-*-pe)
54d1c879 2354 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2355 ;;
2356 arm-*-riscix*)
54d1c879 2357 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2358 ;;
2359 avr-*-*)
266df637 2360 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2361 ;;
376a0e54 2362 bfin-*-*)
00d89675 2363 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2364 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2365 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2366 fi
2367 ;;
a0da8069 2368 c4x-*-* | tic4x-*-*)
54d1c879 2369 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2370 ;;
2371 c54x*-*-* | tic54x-*-*)
54d1c879 2372 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2373 ;;
52310858
NC
2374 cr16-*-*)
2375 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2376 ;;
c7e66c6d 2377 cris-*-* | crisv32-*-*)
59f7ec45 2378 unsupported_languages="$unsupported_languages java"
c7e66c6d 2379 case "${target}" in
2faa2958 2380 *-*-aout)
096f7d00 2381 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2382 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2383 *-*-elf)
5e818318 2384 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2385 *-*-linux*)
5e818318 2386 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2387 *)
096f7d00 2388 unsupported_languages="$unsupported_languages fortran"
54d1c879 2389 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2390 esac
691bb5a1 2391 libgloss_dir=cris
a0da8069 2392 ;;
3e707e94 2393 crx-*-*)
54d1c879 2394 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2395 ;;
a0da8069 2396 d10v-*-*)
54d1c879 2397 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2398 ;;
2399 d30v-*-*)
54d1c879 2400 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2401 ;;
691bb5a1
DD
2402 ep9312-*-elf | ep9312-*-coff)
2403 libgloss_dir=arm
2404 ;;
a0da8069 2405 fr30-*-elf*)
54d1c879 2406 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2407 ;;
2408 frv-*-*)
54d1c879 2409 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2410 ;;
2411 h8300*-*-*)
54d1c879 2412 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2413 ;;
2414 h8500-*-*)
54d1c879 2415 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2416 ;;
caeba88f 2417 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2418 ;;
a0da8069
NN
2419 hppa*64*-*-linux* | parisc*64*-*-linux*)
2420 # In this case, it's because the hppa64-linux target is for
2421 # the kernel only at this point and has no libc, and thus no
2422 # headers, crt*.o, etc., all of which are needed by these.
2423 noconfigdirs="$noconfigdirs target-zlib"
2424 ;;
5dcac624
DA
2425 parisc*-*-linux* | hppa*-*-linux*)
2426 ;;
a0da8069 2427 hppa*-*-*elf* | \
a0da8069
NN
2428 hppa*-*-lites* | \
2429 hppa*-*-openbsd* | \
2430 hppa*64*-*-*)
54d1c879 2431 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2432 ;;
2433 hppa*-hp-hpux11*)
2434 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2435 ;;
691bb5a1
DD
2436 hppa*-*-pro*)
2437 libgloss_dir=pa
2438 ;;
a0da8069
NN
2439 hppa*-*-*)
2440 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2441 # build on HP-UX 10.20.
54d1c879 2442 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2443 ;;
b07c2aad 2444 i960-*-*)
54d1c879 2445 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2446 ;;
a0da8069
NN
2447 ia64*-*-elf*)
2448 # No gdb support yet.
675c6968 2449 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2450 ;;
2451 ia64*-**-hpux*)
2452 # No gdb or ld support yet.
54d1c879 2453 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2454 ;;
caeba88f 2455 i370-*-opened*)
caeba88f 2456 ;;
ec11bdc6 2457 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2458 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2459 libgloss_dir=i386
a0da8069 2460 ;;
ec11bdc6 2461 i[3456789]86-*-linux*)
a0da8069
NN
2462 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2463 # not build java stuff by default.
2464 case "${target}" in
2465 *-*-*libc1*)
54d1c879 2466 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2467 esac
2468
2469 # This section makes it possible to build newlib natively on linux.
2470 # If we are using a cross compiler then don't configure newlib.
2471 if test x${is_cross_compiler} != xno ; then
bba45b8b 2472 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2473 fi
2474 noconfigdirs="$noconfigdirs target-libgloss"
2475 # If we are not using a cross compiler, do configure newlib.
2476 # Note however, that newlib will only be configured in this situation
2477 # if the --with-newlib option has been given, because otherwise
2478 # 'target-newlib' will appear in skipdirs.
2479 ;;
ec11bdc6 2480 i[3456789]86-*-mingw32*)
45055374
CV
2481 target_configdirs="$target_configdirs target-winsup"
2482 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2483 ;;
2d1e8239
NC
2484 x86_64-*-mingw*)
2485 target_configdirs="$target_configdirs target-winsup"
2486 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2487 ;;
a0da8069
NN
2488 *-*-cygwin*)
2489 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2490 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2491 # always build newlib if winsup directory is present.
45055374 2492 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2493 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2494 elif test -d "$srcdir/newlib"; then
45055374 2495 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2496 fi
c6b750e1 2497 ;;
caeba88f
AL
2498 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2499 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2500 ;;
ec11bdc6 2501 i[3456789]86-*-pe)
54d1c879 2502 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2503 ;;
ec11bdc6 2504 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2505 # The linker does not yet know about weak symbols in COFF,
2506 # and is not configured to handle mixed ELF and COFF.
54d1c879 2507 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2508 ;;
ec11bdc6 2509 i[3456789]86-*-sco*)
54d1c879 2510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2511 ;;
ec11bdc6 2512 i[3456789]86-*-solaris2*)
a0da8069
NN
2513 noconfigdirs="$noconfigdirs target-libgloss"
2514 ;;
ec11bdc6 2515 i[3456789]86-*-sysv4*)
54d1c879 2516 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2517 ;;
ec11bdc6 2518 i[3456789]86-*-beos*)
54d1c879 2519 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2520 ;;
b59bea8a 2521 i[3456789]86-*-rdos*)
2429c060
PB
2522 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2523 ;;
b07c2aad 2524 m32r-*-*)
54d1c879 2525 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2526 ;;
a0da8069 2527 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2528 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2529 libgloss_dir=m68hc11
a0da8069
NN
2530 ;;
2531 m68k-*-elf*)
54d1c879 2532 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2533 ;;
2534 m68k-*-coff*)
54d1c879 2535 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2536 ;;
691bb5a1
DD
2537 m68*-*-* | fido-*-*)
2538 libgloss_dir=m68k
2539 ;;
a0da8069
NN
2540 mcore-*-pe*)
2541 # The EPOC C++ environment does not support exceptions or rtti,
2542 # and so building libstdc++-v3 tends not to always work.
2543 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2544 ;;
2545 mmix-*-*)
59f7ec45 2546 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2547 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2548 ;;
2549 mn10200-*-*)
54d1c879 2550 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2551 ;;
2552 mn10300-*-*)
54d1c879 2553 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2554 ;;
4970f871 2555 mt-*-*)
cdb9b172
AH
2556 noconfigdirs="$noconfigdirs sim"
2557 ;;
a0da8069
NN
2558 powerpc-*-aix*)
2559 # copied from rs6000-*-* entry
54d1c879 2560 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2561 ;;
2562 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2563 target_configdirs="$target_configdirs target-winsup"
54d1c879 2564 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2565 # always build newlib.
2566 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2567 ;;
2568 # This is temporary until we can link against shared libraries
2569 powerpcle-*-solaris*)
54d1c879 2570 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2571 libgloss_dir=rs6000
a0da8069
NN
2572 ;;
2573 powerpc-*-beos*)
54d1c879 2574 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2575 ;;
a0da8069 2576 powerpc-*-eabi)
54d1c879 2577 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2578 libgloss_dir=rs6000
caeba88f
AL
2579 ;;
2580 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2581 libgloss_dir=rs6000
a0da8069 2582 ;;
a0da8069 2583 rs6000-*-lynxos*)
54d1c879 2584 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2585 ;;
2586 rs6000-*-aix*)
54d1c879 2587 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2588 ;;
2589 rs6000-*-*)
54d1c879 2590 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2591 ;;
2592 m68k-apollo-*)
54d1c879 2593 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2594 ;;
5bd8be13
RS
2595 mips*-sde-elf*)
2596 skipdirs="$skipdirs target-libiberty"
2597 noconfigdirs="$noconfigdirs ${libgcj}"
2598 if test x$with_newlib = xyes; then
2599 noconfigdirs="$noconfigdirs gprof"
2600 fi
2601 libgloss_dir=mips
2602 ;;
a0da8069 2603 mips*-*-irix5*)
54d1c879 2604 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2605 ;;
2606 mips*-*-irix6*)
a0da8069
NN
2607 # Linking libjava exceeds command-line length limits on at least
2608 # IRIX 6.2, but not on IRIX 6.5.
2609 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2610 # <oldham@codesourcery.com>
54d1c879 2611 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2612 ;;
a0da8069 2613 mips*-*-bsd*)
54d1c879 2614 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2615 ;;
a0da8069
NN
2616 mips*-*-linux*)
2617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2618 ;;
2619 mips*-*-*)
54d1c879 2620 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2621 libgloss_dir=mips
a0da8069
NN
2622 ;;
2623 romp-*-*)
54d1c879 2624 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2625 ;;
dbf85af7 2626 sh-*-* | sh64-*-*)
a0da8069 2627 case "${host}" in
ec11bdc6
DD
2628 i[3456789]86-*-vsta) ;; # don't add gprof back in
2629 i[3456789]86-*-go32*) ;; # don't add gprof back in
2630 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2631 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2632 esac
54d1c879 2633 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2634 ;;
691bb5a1
DD
2635 sparclet-*-aout* | sparc86x-*-*)
2636 libgloss_dir=sparc
2637 ;;
a0da8069 2638 sparc-*-elf*)
54d1c879 2639 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2640 ;;
2641 sparc64-*-elf*)
54d1c879 2642 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2643 libgloss_dir=sparc
a0da8069
NN
2644 ;;
2645 sparclite-*-*)
54d1c879 2646 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2647 libgloss_dir=sparc
a0da8069
NN
2648 ;;
2649 sparc-*-sunos4*)
54d1c879 2650 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2651 if test x${is_cross_compiler} != xno ; then
2652 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2653 else
2654 use_gnu_ld=no
2655 fi
2656 ;;
e3c770b1 2657 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2658 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2659 ;;
a0da8069
NN
2660 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2661 ;;
2662 v810-*-*)
54d1c879 2663 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2664 ;;
2665 v850-*-*)
54d1c879 2666 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2667 ;;
2668 v850e-*-*)
54d1c879 2669 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2670 ;;
2671 v850ea-*-*)
54d1c879 2672 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2673 ;;
2674 vax-*-vms)
54d1c879 2675 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2676 ;;
2677 vax-*-*)
54d1c879 2678 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2679 ;;
8b66833e 2680 xtensa*-*-*)
54d1c879 2681 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2682 ;;
a0da8069 2683 ip2k-*-*)
54d1c879 2684 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2685 ;;
de0b4a87 2686 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2688 ;;
2689 *-*-lynxos*)
54d1c879 2690 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2691 ;;
a0da8069 2692 *-*-*)
54d1c879 2693 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2694 ;;
2695esac
252b5132 2696
a0da8069
NN
2697# If we aren't building newlib, then don't build libgloss, since libgloss
2698# depends upon some newlib header files.
2699case "${noconfigdirs}" in
2700 *target-libgloss*) ;;
2701 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2702esac
2703
a0da8069
NN
2704# Work in distributions that contain no compiler tools, like Autoconf.
2705tentative_cc=""
2706host_makefile_frag=/dev/null
2707if test -d ${srcdir}/config ; then
2708case "${host}" in
2709 m68k-hp-hpux*)
2710 # Avoid "too much defining" errors from HPUX compiler.
2711 tentative_cc="cc -Wp,-H256000"
2712 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2713 # If it's HP/UX ar, this should be harmless.
2714 RANLIB="ar ts"
2715 ;;
2716 m68k-apollo-sysv*)
2717 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2718 ;;
2719 m68k-apollo-bsd*)
2720 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2721 # chokes on bfd, the compiler won't let you assign integers to enums, and
2722 # other problems. Defining CC to gcc is a questionable way to say "don't use
2723 # the apollo compiler" (the preferred version of GCC could be called cc,
2724 # or whatever), but I'm not sure leaving CC as cc is any better...
2725 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2726 # Used to have BISON=yacc.
2727 tentative_cc=gcc
2728 ;;
2729 m88k-dg-dgux*)
2730 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2731 ;;
2732 m88k-harris-cxux*)
2733 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2734 tentative_cc="cc -Xa"
2735 host_makefile_frag="config/mh-cxux"
2736 ;;
2737 m88k-motorola-sysv*)
2738 ;;
2739 mips*-dec-ultrix*)
2740 tentative_cc="cc -Wf,-XNg1000"
2741 host_makefile_frag="config/mh-decstation"
2742 ;;
2743 mips*-nec-sysv4*)
2744 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2745 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2746 host_makefile_frag="config/mh-necv4"
2747 ;;
2748 mips*-sgi-irix4*)
2749 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2750 # environment. Also bump switch table size so that cp-parse will
2751 # compile. Bump string length limit so linker builds.
2752 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2753 ;;
2754 mips*-*-sysv4*)
2755 host_makefile_frag="config/mh-sysv4"
2756 ;;
2757 mips*-*-sysv*)
2758 # This is for a MIPS running RISC/os 4.52C.
2759
2760 # This is needed for GDB, but needs to be in the top-level make because
2761 # if a library is compiled with the bsd headers and gets linked with the
2762 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2763 # a different size).
2764 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2765 # known except to select the sysv environment. Could we use /proc instead?
2766 # These "sysv environments" and "bsd environments" often end up being a pain.
2767 #
2768 # This is not part of CFLAGS because perhaps not all C compilers have this
2769 # option.
2770 tentative_cc="cc -systype sysv"
2771 ;;
2772 i370-ibm-opened*)
2773 tentative_cc="c89"
2774 ;;
ec11bdc6 2775 i[3456789]86-*-sysv5*)
a0da8069
NN
2776 host_makefile_frag="config/mh-sysv5"
2777 ;;
ec11bdc6 2778 i[3456789]86-*-dgux*)
a0da8069
NN
2779 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2780 host_makefile_frag="config/mh-dgux386"
2781 ;;
ec11bdc6 2782 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2783 # The MetaWare compiler will generate a copyright message unless you
2784 # turn it off by adding the -Hnocopyr flag.
2785 tentative_cc="cc -Hnocopyr"
2786 ;;
ec11bdc6 2787 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2788 # for an NCR 3000 (i486/SVR4) system.
2789 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2790 # This compiler not only emits obnoxious copyright messages every time
2791 # you run it, but it chokes and dies on a whole bunch of GNU source
2792 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2793 tentative_cc="/usr/ccs/ATT/cc"
2794 host_makefile_frag="config/mh-ncr3000"
2795 ;;
ec11bdc6 2796 i[3456789]86-*-sco3.2v5*)
a0da8069 2797 ;;
ec11bdc6 2798 i[3456789]86-*-sco*)
a0da8069
NN
2799 # The native C compiler botches some simple uses of const. Unfortunately,
2800 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2801 tentative_cc="cc -Dconst="
2802 host_makefile_frag="config/mh-sco"
2803 ;;
ec11bdc6 2804 i[3456789]86-*-udk*)
a0da8069
NN
2805 host_makefile_frag="config/mh-sysv5"
2806 ;;
ec11bdc6 2807 i[3456789]86-*-solaris2*)
a0da8069
NN
2808 host_makefile_frag="config/mh-sysv4"
2809 ;;
ec11bdc6 2810 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2811 host_makefile_frag="config/mh-djgpp"
2812 ;;
2813 *-cygwin*)
e33b51a6
NC
2814
2815echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2816echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2817echo a >cygwin-cat-check
2818if test `cat cygwin-cat-check` == a ; then
8ade07e9 2819 rm cygwin-cat-check
e33b51a6
NC
2820 echo "$as_me:$LINENO: result: yes" >&5
2821echo "${ECHO_T}yes" >&6
2822else
8ade07e9 2823 rm cygwin-cat-check
e33b51a6
NC
2824 echo "$as_me:$LINENO: result: no" >&5
2825echo "${ECHO_T}no" >&6
2826 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2827 Please either mount the build directory in binary mode or run the following
2828 commands before running any configure script:
2829set -o igncr
2830export SHELLOPTS
2831 " >&5
2832echo "$as_me: error: The cat command does not ignore carriage return characters.
2833 Please either mount the build directory in binary mode or run the following
2834 commands before running any configure script:
2835set -o igncr
2836export SHELLOPTS
2837 " >&2;}
2838 { (exit 1); exit 1; }; }
2839fi
e33b51a6 2840
a0da8069
NN
2841 host_makefile_frag="config/mh-cygwin"
2842 ;;
8a1599ab 2843 *-mingw*)
84e7906e 2844 host_makefile_frag="config/mh-mingw"
2d1e8239 2845 ;;
a0da8069
NN
2846 *-interix*)
2847 host_makefile_frag="config/mh-interix"
2848 ;;
2849 vax-*-ultrix2*)
2850 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2851 tentative_cc=gcc
2852 ;;
2853 *-*-solaris2*)
2854 host_makefile_frag="config/mh-solaris"
2855 ;;
2856 m68k-sun-sunos*)
2857 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2858 # without overflowing the jump tables (-J says to use a 32 bit table)
2859 tentative_cc="cc -J"
2860 ;;
da888c87 2861 hppa*-hp-hpux10*)
a0da8069 2862 tentative_cc="cc -Wp,-H256000"
da888c87 2863 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2864 ;;
da888c87
PB
2865 hppa*-hp-hpux* | hppa*-*-hiux*)
2866 tentative_cc="cc -Wp,-H256000"
2867 host_makefile_frag="config/mh-pa"
2868 ;;
2869 hppa*-*)
2870 host_makefile_frag="config/mh-pa"
2871 ;;
2872 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2873 tentative_cc="cc -Wp,-H256000"
2874 ;;
2875 rs6000-*-lynxos*)
2876 # /bin/cc is less than useful for our purposes. Always use GCC
2877 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2878 host_makefile_frag="config/mh-lynxrs6k"
2879 ;;
0df3d27f
PB
2880 powerpc-*-darwin*)
2881 host_makefile_frag="config/mh-ppc-darwin"
2882 ;;
f6d183c0
PB
2883 powerpc-*-aix*)
2884 host_makefile_frag="config/mh-ppc-aix"
2885 ;;
2886 rs6000-*-aix*)
2887 host_makefile_frag="config/mh-ppc-aix"
2888 ;;
a0da8069
NN
2889 *-*-lynxos*)
2890 # /bin/cc is less than useful for our purposes. Always use GCC
2891 tentative_cc="/bin/gcc"
2892 ;;
2893 *-*-sysv4*)
2894 host_makefile_frag="config/mh-sysv4"
2895 ;;
fe69863c
DD
2896 # This is placed last to prevent interfering with the cases above.
2897 i[3456789]86-*-*)
2898 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2899 host_makefile_frag="config/mh-x86omitfp"
2900 ;;
a0da8069
NN
2901esac
2902fi
2903
9e07f89d
NN
2904# If we aren't going to be using gcc, see if we can extract a definition
2905# of CC from the fragment.
2906# Actually, use the 'pre-extracted' version above.
2907if test -z "${CC}" && test "${build}" = "${host}" ; then
2908 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2909 found=
2910 for dir in $PATH; do
2911 test -z "$dir" && dir=.
2912 if test -f $dir/gcc; then
2913 found=yes
2914 break
2915 fi
2916 done
2917 IFS="$save_ifs"
2918 if test -z "${found}" && test -n "${tentative_cc}" ; then
2919 CC=$tentative_cc
2920 fi
2921fi
2922
2923if test "${build}" != "${host}" ; then
1576798e
PB
2924 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2925 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2926 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2927 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2928 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2929 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2930 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2931 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2932 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2933 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2934 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2935 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2936else
2937 AR_FOR_BUILD="\$(AR)"
2938 AS_FOR_BUILD="\$(AS)"
512b7dfb 2939 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2940 CXX_FOR_BUILD="\$(CXX)"
2941 GCJ_FOR_BUILD="\$(GCJ)"
2942 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2943 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2944 LD_FOR_BUILD="\$(LD)"
2945 NM_FOR_BUILD="\$(NM)"
2946 RANLIB_FOR_BUILD="\$(RANLIB)"
2947 WINDRES_FOR_BUILD="\$(WINDRES)"
2948 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2949fi
2950
2951ac_ext=c
c6b750e1
DJ
2952ac_cpp='$CPP $CPPFLAGS'
2953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2958set dummy ${ac_tool_prefix}gcc; ac_word=$2
2959echo "$as_me:$LINENO: checking for $ac_word" >&5
2960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961if test "${ac_cv_prog_CC+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966else
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978done
2979done
2980
2981fi
2982fi
2983CC=$ac_cv_prog_CC
2984if test -n "$CC"; then
2985 echo "$as_me:$LINENO: result: $CC" >&5
2986echo "${ECHO_T}$CC" >&6
2987else
2988 echo "$as_me:$LINENO: result: no" >&5
2989echo "${ECHO_T}no" >&6
2990fi
2991
2992fi
2993if test -z "$ac_cv_prog_CC"; then
2994 ac_ct_CC=$CC
6a9cf61e 2995 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2996set dummy gcc; ac_word=$2
c6b750e1
DJ
2997echo "$as_me:$LINENO: checking for $ac_word" >&5
2998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_CC="gcc"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016done
3017done
3018
3019fi
3020fi
3021ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022if test -n "$ac_ct_CC"; then
3023 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3024echo "${ECHO_T}$ac_ct_CC" >&6
3025else
3026 echo "$as_me:$LINENO: result: no" >&5
3027echo "${ECHO_T}no" >&6
3028fi
3029
3030 CC=$ac_ct_CC
3031else
3032 CC="$ac_cv_prog_CC"
3033fi
3034
3035if test -z "$CC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3038set dummy ${ac_tool_prefix}cc; ac_word=$2
3039echo "$as_me:$LINENO: checking for $ac_word" >&5
3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
c6b750e1
DJ
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_CC="${ac_tool_prefix}cc"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058done
3059done
3060
9e07f89d
NN
3061fi
3062fi
c6b750e1 3063CC=$ac_cv_prog_CC
9e07f89d 3064if test -n "$CC"; then
c6b750e1
DJ
3065 echo "$as_me:$LINENO: result: $CC" >&5
3066echo "${ECHO_T}$CC" >&6
9e07f89d 3067else
c6b750e1
DJ
3068 echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6
9e07f89d
NN
3070fi
3071
c6b750e1
DJ
3072fi
3073if test -z "$ac_cv_prog_CC"; then
3074 ac_ct_CC=$CC
3075 # Extract the first word of "cc", so it can be a program name with args.
3076set dummy cc; ac_word=$2
3077echo "$as_me:$LINENO: checking for $ac_word" >&5
3078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_CC="cc"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096done
3097done
3098
3099fi
3100fi
3101ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102if test -n "$ac_ct_CC"; then
3103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3104echo "${ECHO_T}$ac_ct_CC" >&6
3105else
3106 echo "$as_me:$LINENO: result: no" >&5
3107echo "${ECHO_T}no" >&6
3108fi
3109
3110 CC=$ac_ct_CC
3111else
3112 CC="$ac_cv_prog_CC"
3113fi
3114
3115fi
9e07f89d
NN
3116if test -z "$CC"; then
3117 # Extract the first word of "cc", so it can be a program name with args.
3118set dummy cc; ac_word=$2
c6b750e1
DJ
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_CC+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3123else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126else
9e07f89d 3127 ac_prog_rejected=no
c6b750e1
DJ
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3136 ac_prog_rejected=yes
3137 continue
3138 fi
3139 ac_cv_prog_CC="cc"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143done
3144done
3145
9e07f89d
NN
3146if test $ac_prog_rejected = yes; then
3147 # We found a bogon in the path, so make sure we never use it.
3148 set dummy $ac_cv_prog_CC
3149 shift
c6b750e1 3150 if test $# != 0; then
9e07f89d
NN
3151 # We chose a different compiler from the bogus one.
3152 # However, it has the same basename, so the bogon will be chosen
3153 # first if we set CC to just the basename; use the full file name.
3154 shift
c6b750e1 3155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3156 fi
3157fi
3158fi
3159fi
c6b750e1 3160CC=$ac_cv_prog_CC
9e07f89d 3161if test -n "$CC"; then
c6b750e1
DJ
3162 echo "$as_me:$LINENO: result: $CC" >&5
3163echo "${ECHO_T}$CC" >&6
9e07f89d 3164else
c6b750e1
DJ
3165 echo "$as_me:$LINENO: result: no" >&5
3166echo "${ECHO_T}no" >&6
9e07f89d
NN
3167fi
3168
c6b750e1
DJ
3169fi
3170if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl
3173 do
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176echo "$as_me:$LINENO: checking for $ac_word" >&5
3177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178if test "${ac_cv_prog_CC+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3180else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
c6b750e1
DJ
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
376a0e54 3194 fi
c6b750e1
DJ
3195done
3196done
cac3d6c4 3197
c6b750e1
DJ
3198fi
3199fi
3200CC=$ac_cv_prog_CC
3201if test -n "$CC"; then
3202 echo "$as_me:$LINENO: result: $CC" >&5
3203echo "${ECHO_T}$CC" >&6
cac3d6c4 3204else
c6b750e1
DJ
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
9e07f89d 3207fi
cac3d6c4 3208
c6b750e1
DJ
3209 test -n "$CC" && break
3210 done
cac3d6c4 3211fi
c6b750e1
DJ
3212if test -z "$CC"; then
3213 ac_ct_CC=$CC
3214 for ac_prog in cl
3215do
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217set dummy $ac_prog; ac_word=$2
3218echo "$as_me:$LINENO: checking for $ac_word" >&5
3219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3222else
c6b750e1
DJ
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3225else
c6b750e1
DJ
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_ac_ct_CC="$ac_prog"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237done
3238done
3239
cac3d6c4
CM
3240fi
3241fi
c6b750e1
DJ
3242ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243if test -n "$ac_ct_CC"; then
3244 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3245echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3246else
c6b750e1
DJ
3247 echo "$as_me:$LINENO: result: no" >&5
3248echo "${ECHO_T}no" >&6
cac3d6c4 3249fi
376a0e54 3250
c6b750e1
DJ
3251 test -n "$ac_ct_CC" && break
3252done
3253
3254 CC=$ac_ct_CC
3255fi
3256
3257fi
3258
3259
7a283e07
RW
3260test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3261echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3263See \`config.log' for more details." >&5
3264echo "$as_me: error: no acceptable C compiler found in \$PATH
3265See \`config.log' for more details." >&2;}
7a283e07 3266 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3267
3268# Provide some information about the compiler.
3269echo "$as_me:$LINENO:" \
3270 "checking for C compiler version" >&5
3271ac_compiler=`set X $ac_compile; echo $2`
3272{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3273 (eval $ac_compiler --version </dev/null >&5) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }
3277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3278 (eval $ac_compiler -v </dev/null >&5) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }
3282{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3283 (eval $ac_compiler -V </dev/null >&5) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287
3288cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303ac_clean_files_save=$ac_clean_files
3304ac_clean_files="$ac_clean_files a.out a.exe b.out"
3305# Try to create an executable without -o first, disregard a.out.
3306# It will help us diagnose broken compilers, and finding out an intuition
3307# of exeext.
3308echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3309echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3310ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3312 (eval $ac_link_default) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; then
3316 # Find the output, starting from the most likely. This scheme is
3317# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3318# resort.
3319
3320# Be careful to initialize this variable, since it used to be cached.
3321# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3322ac_cv_exeext=
3323# b.out is created by i960 compilers.
3324for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3325do
3326 test -f "$ac_file" || continue
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3329 ;;
3330 conftest.$ac_ext )
3331 # This is the source file.
3332 ;;
3333 [ab].out )
3334 # We found the default executable, but exeext='' is most
3335 # certainly right.
3336 break;;
3337 *.* )
3338 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 # FIXME: I believe we export ac_cv_exeext for Libtool,
3340 # but it would be cool to find out if it's true. Does anybody
3341 # maintain Libtool? --akim.
3342 export ac_cv_exeext
3343 break;;
3344 * )
3345 break;;
3346 esac
3347done
3348else
3349 echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
7a283e07
RW
3352{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3353echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3354{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3355See \`config.log' for more details." >&5
3356echo "$as_me: error: C compiler cannot create executables
3357See \`config.log' for more details." >&2;}
7a283e07 3358 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3359fi
3360
3361ac_exeext=$ac_cv_exeext
3362echo "$as_me:$LINENO: result: $ac_file" >&5
3363echo "${ECHO_T}$ac_file" >&6
3364
3365# Check the compiler produces executables we can run. If not, either
3366# the compiler is broken, or we cross compile.
3367echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3368echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3369# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3370# If not cross compiling, check that we can run a simple program.
3371if test "$cross_compiling" != yes; then
3372 if { ac_try='./$ac_file'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 cross_compiling=no
3379 else
3380 if test "$cross_compiling" = maybe; then
3381 cross_compiling=yes
3382 else
7a283e07
RW
3383 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3384echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3386If you meant to cross compile, use \`--host'.
3387See \`config.log' for more details." >&5
3388echo "$as_me: error: cannot run C compiled programs.
3389If you meant to cross compile, use \`--host'.
3390See \`config.log' for more details." >&2;}
7a283e07 3391 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3392 fi
3393 fi
3394fi
3395echo "$as_me:$LINENO: result: yes" >&5
3396echo "${ECHO_T}yes" >&6
3397
3398rm -f a.out a.exe conftest$ac_cv_exeext b.out
3399ac_clean_files=$ac_clean_files_save
3400# Check the compiler produces executables we can run. If not, either
3401# the compiler is broken, or we cross compile.
3402echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3403echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3404echo "$as_me:$LINENO: result: $cross_compiling" >&5
3405echo "${ECHO_T}$cross_compiling" >&6
3406
3407echo "$as_me:$LINENO: checking for suffix of executables" >&5
3408echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3410 (eval $ac_link) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; then
3414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3415# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3416# work properly (i.e., refer to `conftest.exe'), while it won't with
3417# `rm'.
3418for ac_file in conftest.exe conftest conftest.*; do
3419 test -f "$ac_file" || continue
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423 export ac_cv_exeext
3424 break;;
3425 * ) break;;
3426 esac
3427done
3428else
7a283e07
RW
3429 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3430echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3432See \`config.log' for more details." >&5
3433echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3434See \`config.log' for more details." >&2;}
7a283e07 3435 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3436fi
3437
3438rm -f conftest$ac_cv_exeext
3439echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3440echo "${ECHO_T}$ac_cv_exeext" >&6
3441
3442rm -f conftest.$ac_ext
3443EXEEXT=$ac_cv_exeext
3444ac_exeext=$EXEEXT
3445echo "$as_me:$LINENO: checking for suffix of object files" >&5
3446echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3447if test "${ac_cv_objext+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450 cat >conftest.$ac_ext <<_ACEOF
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456
3457int
3458main ()
3459{
3460
3461 ;
3462 return 0;
3463}
3464_ACEOF
3465rm -f conftest.o conftest.obj
3466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; then
3471 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477done
cac3d6c4 3478else
c6b750e1
DJ
3479 echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
7a283e07
RW
3482{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3483echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3484{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3485See \`config.log' for more details." >&5
3486echo "$as_me: error: cannot compute suffix of object files: cannot compile
3487See \`config.log' for more details." >&2;}
7a283e07 3488 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3489fi
3490
3491rm -f conftest.$ac_cv_objext conftest.$ac_ext
3492fi
3493echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3494echo "${ECHO_T}$ac_cv_objext" >&6
3495OBJEXT=$ac_cv_objext
3496ac_objext=$OBJEXT
3497echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3498echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3499if test "${ac_cv_c_compiler_gnu+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502 cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h. */
3508
3509int
3510main ()
3511{
3512#ifndef __GNUC__
3513 choke me
3514#endif
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
3520rm -f conftest.$ac_objext
3521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try='test -z "$ac_c_werror_flag"
3530 || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_compiler_gnu=yes
3543else
3544 echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547ac_compiler_gnu=no
3548fi
3549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550ac_cv_c_compiler_gnu=$ac_compiler_gnu
3551
3552fi
3553echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3554echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3555GCC=`test $ac_compiler_gnu = yes && echo yes`
3556ac_test_CFLAGS=${CFLAGS+set}
3557ac_save_CFLAGS=$CFLAGS
3558CFLAGS="-g"
3559echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3560echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3561if test "${ac_cv_prog_cc_g+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570
3571int
3572main ()
3573{
3574
3575 ;
3576 return 0;
3577}
3578_ACEOF
3579rm -f conftest.$ac_objext
3580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try='test -z "$ac_c_werror_flag"
3589 || test ! -s conftest.err'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; } &&
3595 { ac_try='test -s conftest.$ac_objext'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; }; then
9e07f89d
NN
3601 ac_cv_prog_cc_g=yes
3602else
c6b750e1
DJ
3603 echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3605
c6b750e1 3606ac_cv_prog_cc_g=no
376a0e54 3607fi
c6b750e1
DJ
3608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609fi
3610echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3612if test "$ac_test_CFLAGS" = set; then
c6b750e1 3613 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3614elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3616 CFLAGS="-g -O2"
3617 else
3618 CFLAGS="-g"
3619 fi
3620else
3621 if test "$GCC" = yes; then
3622 CFLAGS="-O2"
3623 else
3624 CFLAGS=
3625 fi
3626fi
c6b750e1
DJ
3627echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3628echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3629if test "${ac_cv_prog_cc_stdc+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 ac_cv_prog_cc_stdc=no
3633ac_save_CC=$CC
3634cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640#include <stdarg.h>
3641#include <stdio.h>
3642#include <sys/types.h>
3643#include <sys/stat.h>
3644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645struct buf { int x; };
3646FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647static char *e (p, i)
3648 char **p;
3649 int i;
3650{
3651 return p[i];
3652}
3653static char *f (char * (*g) (char **, int), char **p, ...)
3654{
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3661}
3662
3663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std1 is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std1. */
3670int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671
3672int test (int i, double x);
3673struct s1 {int (*f) (int a);};
3674struct s2 {int (*f) (double a);};
3675int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676int argc;
3677char **argv;
3678int
3679main ()
3680{
3681return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3682 ;
3683 return 0;
3684}
3685_ACEOF
3686# Don't try gcc -ansi; that turns off useful extensions and
3687# breaks some systems' header files.
3688# AIX -qlanglvl=ansi
3689# Ultrix and OSF/1 -std1
3690# HP-UX 10.20 and later -Ae
3691# HP-UX older versions -Aa -D_HPUX_SOURCE
3692# SVR4 -Xc -D__EXTENSIONS__
3693for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694do
3695 CC="$ac_save_CC $ac_arg"
3696 rm -f conftest.$ac_objext
3697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_prog_cc_stdc=$ac_arg
3719break
3720else
3721 echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724fi
3725rm -f conftest.err conftest.$ac_objext
3726done
3727rm -f conftest.$ac_ext conftest.$ac_objext
3728CC=$ac_save_CC
3729
3730fi
3731
3732case "x$ac_cv_prog_cc_stdc" in
3733 x|xno)
3734 echo "$as_me:$LINENO: result: none needed" >&5
3735echo "${ECHO_T}none needed" >&6 ;;
3736 *)
3737 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3738echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3739 CC="$CC $ac_cv_prog_cc_stdc" ;;
3740esac
3741
3742# Some people use a C++ compiler to compile C. Since we use `exit',
3743# in C++ we need to declare it. In case someone uses the same compiler
3744# for both compiling C and C++ we need to have the C++ compiler decide
3745# the declaration of exit, since it's the most demanding environment.
3746cat >conftest.$ac_ext <<_ACEOF
3747#ifndef __cplusplus
3748 choke me
3749#endif
3750_ACEOF
3751rm -f conftest.$ac_objext
3752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 for ac_declaration in \
3774 '' \
3775 'extern "C" void std::exit (int) throw (); using std::exit;' \
3776 'extern "C" void std::exit (int); using std::exit;' \
3777 'extern "C" void exit (int) throw ();' \
3778 'extern "C" void exit (int);' \
3779 'void exit (int);'
3780do
3781 cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
3787$ac_declaration
3788#include <stdlib.h>
3789int
3790main ()
3791{
3792exit (42);
3793 ;
3794 return 0;
3795}
3796_ACEOF
3797rm -f conftest.$ac_objext
3798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -z "$ac_c_werror_flag"
3807 || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 :
3820else
3821 echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824continue
3825fi
3826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3827 cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h. */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h. */
3833$ac_declaration
3834int
3835main ()
3836{
3837exit (42);
3838 ;
3839 return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext
3843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag"
3852 || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 break
3865else
3866 echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869fi
3870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871done
3872rm -f conftest*
3873if test -n "$ac_declaration"; then
3874 echo '#ifdef __cplusplus' >>confdefs.h
3875 echo $ac_declaration >>confdefs.h
3876 echo '#endif' >>confdefs.h
3877fi
3878
3879else
3880 echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883fi
3884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3885ac_ext=c
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3890
18f6b6ee
PB
3891ac_ext=cc
3892ac_cpp='$CXXCPP $CPPFLAGS'
3893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3896if test -n "$ac_tool_prefix"; then
3897 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3898 do
3899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901echo "$as_me:$LINENO: checking for $ac_word" >&5
3902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903if test "${ac_cv_prog_CXX+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906 if test -n "$CXX"; then
3907 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3908else
3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920done
3921done
512b7dfb 3922
18f6b6ee
PB
3923fi
3924fi
3925CXX=$ac_cv_prog_CXX
3926if test -n "$CXX"; then
3927 echo "$as_me:$LINENO: result: $CXX" >&5
3928echo "${ECHO_T}$CXX" >&6
3929else
3930 echo "$as_me:$LINENO: result: no" >&5
3931echo "${ECHO_T}no" >&6
3932fi
3933
3934 test -n "$CXX" && break
3935 done
3936fi
3937if test -z "$CXX"; then
3938 ac_ct_CXX=$CXX
3939 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3940do
3941 # Extract the first word of "$ac_prog", so it can be a program name with args.
3942set dummy $ac_prog; ac_word=$2
3943echo "$as_me:$LINENO: checking for $ac_word" >&5
3944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948 if test -n "$ac_ct_CXX"; then
3949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_ac_ct_CXX="$ac_prog"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
512b7dfb 3961 fi
18f6b6ee
PB
3962done
3963done
512b7dfb 3964
18f6b6ee
PB
3965fi
3966fi
3967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3968if test -n "$ac_ct_CXX"; then
3969 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3970echo "${ECHO_T}$ac_ct_CXX" >&6
3971else
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
3974fi
3975
3976 test -n "$ac_ct_CXX" && break
3977done
3978test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3979
3980 CXX=$ac_ct_CXX
3981fi
3982
3983
3984# Provide some information about the compiler.
3985echo "$as_me:$LINENO:" \
3986 "checking for C++ compiler version" >&5
3987ac_compiler=`set X $ac_compile; echo $2`
3988{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3989 (eval $ac_compiler --version </dev/null >&5) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }
3993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3994 (eval $ac_compiler -v </dev/null >&5) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }
3998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3999 (eval $ac_compiler -V </dev/null >&5) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }
4003
4004echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4005echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4006if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 cat >conftest.$ac_ext <<_ACEOF
4010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
4015
4016int
4017main ()
4018{
4019#ifndef __GNUC__
4020 choke me
4021#endif
4022
4023 ;
4024 return 0;
4025}
4026_ACEOF
4027rm -f conftest.$ac_objext
4028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_cxx_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest.$ac_objext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 ac_compiler_gnu=yes
4050else
4051 echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054ac_compiler_gnu=no
4055fi
4056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4057ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4058
4059fi
4060echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4061echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4062GXX=`test $ac_compiler_gnu = yes && echo yes`
4063ac_test_CXXFLAGS=${CXXFLAGS+set}
4064ac_save_CXXFLAGS=$CXXFLAGS
4065CXXFLAGS="-g"
4066echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4067echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4068if test "${ac_cv_prog_cxx_g+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071 cat >conftest.$ac_ext <<_ACEOF
4072/* confdefs.h. */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
4076/* end confdefs.h. */
4077
4078int
4079main ()
4080{
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext
4087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_cxx_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 ac_cv_prog_cxx_g=yes
4109else
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113ac_cv_prog_cxx_g=no
4114fi
4115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116fi
4117echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4118echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4119if test "$ac_test_CXXFLAGS" = set; then
4120 CXXFLAGS=$ac_save_CXXFLAGS
4121elif test $ac_cv_prog_cxx_g = yes; then
4122 if test "$GXX" = yes; then
4123 CXXFLAGS="-g -O2"
4124 else
4125 CXXFLAGS="-g"
4126 fi
4127else
4128 if test "$GXX" = yes; then
4129 CXXFLAGS="-O2"
4130 else
4131 CXXFLAGS=
4132 fi
4133fi
4134for ac_declaration in \
4135 '' \
4136 'extern "C" void std::exit (int) throw (); using std::exit;' \
4137 'extern "C" void std::exit (int); using std::exit;' \
4138 'extern "C" void exit (int) throw ();' \
4139 'extern "C" void exit (int);' \
4140 'void exit (int);'
4141do
4142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148$ac_declaration
4149#include <stdlib.h>
4150int
4151main ()
4152{
4153exit (42);
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158rm -f conftest.$ac_objext
4159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_cxx_werror_flag"
4168 || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 :
4181else
4182 echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
4185continue
4186fi
4187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h. */
4194$ac_declaration
4195int
4196main ()
4197{
4198exit (42);
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203rm -f conftest.$ac_objext
4204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205 (eval $ac_compile) 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_cxx_werror_flag"
4213 || test ! -s conftest.err'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest.$ac_objext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 break
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230fi
4231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232done
4233rm -f conftest*
4234if test -n "$ac_declaration"; then
4235 echo '#ifdef __cplusplus' >>confdefs.h
4236 echo $ac_declaration >>confdefs.h
4237 echo '#endif' >>confdefs.h
4238fi
4239
4240ac_ext=c
4241ac_cpp='$CPP $CPPFLAGS'
4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246
4247# We must set the default linker to the linker used by gcc for the correct
4248# operation of libtool. If LD is not defined and we are using gcc, try to
4249# set the LD default to the ld used by gcc.
4250if test -z "$LD"; then
4251 if test "$GCC" = yes; then
4252 case $build in
4253 *-*-mingw*)
4254 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4255 *)
4256 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4257 esac
4258 case $gcc_prog_ld in
4259 # Accept absolute paths.
4260 [\\/]* | [A-Za-z]:[\\/]*)
4261 LD="$gcc_prog_ld" ;;
4262 esac
4263 fi
512b7dfb
PB
4264fi
4265
4266
4267
4268
c6b750e1 4269if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4270 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4271set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4272echo "$as_me:$LINENO: checking for $ac_word" >&5
4273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4274if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4275 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4276else
512b7dfb
PB
4277 if test -n "$GNATBIND"; then
4278 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4279else
c6b750e1
DJ
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4287 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291done
4292done
4293
9e07f89d
NN
4294fi
4295fi
512b7dfb
PB
4296GNATBIND=$ac_cv_prog_GNATBIND
4297if test -n "$GNATBIND"; then
4298 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4299echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4300else
c6b750e1
DJ
4301 echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
9e07f89d
NN
4303fi
4304
c6b750e1 4305fi
512b7dfb
PB
4306if test -z "$ac_cv_prog_GNATBIND"; then
4307 ac_ct_GNATBIND=$GNATBIND
4308 # Extract the first word of "gnatbind", so it can be a program name with args.
4309set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4310echo "$as_me:$LINENO: checking for $ac_word" >&5
4311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4312if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4313 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4314else
512b7dfb
PB
4315 if test -n "$ac_ct_GNATBIND"; then
4316 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4317else
c6b750e1
DJ
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4325 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329done
4330done
4331
512b7dfb 4332 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4333fi
4334fi
512b7dfb
PB
4335ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4336if test -n "$ac_ct_GNATBIND"; then
4337 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4338echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4339else
c6b750e1
DJ
4340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
9e07f89d
NN
4342fi
4343
512b7dfb 4344 GNATBIND=$ac_ct_GNATBIND
24ff9987 4345else
512b7dfb 4346 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4347fi
4348
7df2cd5d 4349if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4350 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4351set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4352echo "$as_me:$LINENO: checking for $ac_word" >&5
4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4354if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
512b7dfb
PB
4357 if test -n "$GNATMAKE"; then
4358 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4367 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371done
4372done
4373
4374fi
4375fi
512b7dfb
PB
4376GNATMAKE=$ac_cv_prog_GNATMAKE
4377if test -n "$GNATMAKE"; then
4378 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4379echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4380else
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383fi
4384
4385fi
512b7dfb
PB
4386if test -z "$ac_cv_prog_GNATMAKE"; then
4387 ac_ct_GNATMAKE=$GNATMAKE
4388 # Extract the first word of "gnatmake", so it can be a program name with args.
4389set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4390echo "$as_me:$LINENO: checking for $ac_word" >&5
4391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4392if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
512b7dfb
PB
4395 if test -n "$ac_ct_GNATMAKE"; then
4396 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4397else
4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4405 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409done
4410done
4411
512b7dfb 4412 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4413fi
4414fi
512b7dfb
PB
4415ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4416if test -n "$ac_ct_GNATMAKE"; then
4417 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4418echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4419else
4420 echo "$as_me:$LINENO: result: no" >&5
4421echo "${ECHO_T}no" >&6
4422fi
4423
512b7dfb 4424 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4425else
512b7dfb 4426 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4427fi
4428
c6b750e1
DJ
4429echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4430echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4431if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4433else
4434 cat >conftest.adb <<EOF
4435procedure conftest is begin null; end conftest;
4436EOF
4437acx_cv_cc_gcc_supports_ada=no
4438# There is a bug in old released versions of GCC which causes the
4439# driver to exit successfully when the appropriate language module
4440# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4441# Therefore we must check for the error message as well as an
4442# unsuccessful exit.
b8908782
DD
4443# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4444# given a .adb file, but produce no object file. So we must check
4445# if an object file was really produced to guard against this.
9e07f89d 4446errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4447if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4448 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4449fi
4450rm -f conftest.*
4451fi
c6b750e1
DJ
4452echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4453echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4454
512b7dfb 4455if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4456 have_gnat=yes
4457else
4458 have_gnat=no
4459fi
4460
c6b750e1
DJ
4461echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4462echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4463if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4465else
4466 echo abfoo >t1
4467 echo cdfoo >t2
4468 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4469 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4470 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4471 :
4472 else
4473 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4474 fi
4475 fi
b8908782
DD
4476 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4477 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4478 :
b8908782
DD
4479 else
4480 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4481 fi
4482 fi
4483 rm t1 t2
4484
4485fi
c6b750e1
DJ
4486echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4487echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4488do_compare="$gcc_cv_prog_cmp_skip"
4489
4490
9e07f89d 4491
11b04d1f 4492# Check for GMP and MPFR
4b900473 4493gmplibs="-lmpfr -lgmp"
4b1cb4fe 4494gmpinc=
4b900473
PB
4495have_gmp=no
4496
11b04d1f
DD
4497# Specify a location for mpfr
4498# check for this first so it ends up on the link line before gmp.
c6b750e1 4499
11b04d1f
DD
4500# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4501if test "${with_mpfr_dir+set}" = set; then
4502 withval="$with_mpfr_dir"
c6b750e1
DJ
4503 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4504Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4505echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4506Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4507 { (exit 1); exit 1; }; }
4508fi;
11b04d1f
DD
4509
4510
11b04d1f
DD
4511# Check whether --with-mpfr or --without-mpfr was given.
4512if test "${with_mpfr+set}" = set; then
4513 withval="$with_mpfr"
c6b750e1
DJ
4514
4515fi;
11b04d1f 4516
8a0d8a5c
PB
4517# Check whether --with-mpfr_include or --without-mpfr_include was given.
4518if test "${with_mpfr_include+set}" = set; then
4519 withval="$with_mpfr_include"
c6b750e1
DJ
4520
4521fi;
8a0d8a5c
PB
4522
4523# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4524if test "${with_mpfr_lib+set}" = set; then
4525 withval="$with_mpfr_lib"
8a0d8a5c 4526
c6b750e1 4527fi;
11b04d1f
DD
4528
4529if test "x$with_mpfr" != x; then
4530 gmplibs="-L$with_mpfr/lib $gmplibs"
4531 gmpinc="-I$with_mpfr/include"
4532fi
8a0d8a5c
PB
4533if test "x$with_mpfr_include" != x; then
4534 gmpinc="-I$with_mpfr_include"
4535fi
4536if test "x$with_mpfr_lib" != x; then
4537 gmplibs="-L$with_mpfr_lib $gmplibs"
4538fi
4b900473
PB
4539if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4540 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4541 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4542 # Do not test the mpfr version. Assume that it is sufficient, since
4543 # it is in the source tree, and the library has not been built yet
4544 # but it would be included on the link line in the version check below
4545 # hence making the test fail.
4546 have_gmp=yes
4547fi
11b04d1f 4548
4b1cb4fe 4549# Specify a location for gmp
c6b750e1 4550
4b1cb4fe
DD
4551# Check whether --with-gmp-dir or --without-gmp-dir was given.
4552if test "${with_gmp_dir+set}" = set; then
4553 withval="$with_gmp_dir"
c6b750e1
DJ
4554 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4555Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4556echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4557Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559fi;
4b1cb4fe
DD
4560
4561
4b1cb4fe
DD
4562# Check whether --with-gmp or --without-gmp was given.
4563if test "${with_gmp+set}" = set; then
4564 withval="$with_gmp"
c6b750e1
DJ
4565
4566fi;
4b1cb4fe 4567
8a0d8a5c
PB
4568# Check whether --with-gmp_include or --without-gmp_include was given.
4569if test "${with_gmp_include+set}" = set; then
4570 withval="$with_gmp_include"
c6b750e1
DJ
4571
4572fi;
8a0d8a5c
PB
4573
4574# Check whether --with-gmp_lib or --without-gmp_lib was given.
4575if test "${with_gmp_lib+set}" = set; then
4576 withval="$with_gmp_lib"
8a0d8a5c 4577
c6b750e1 4578fi;
8a0d8a5c 4579
4b1cb4fe 4580
11b04d1f
DD
4581if test "x$with_gmp" != x; then
4582 gmplibs="-L$with_gmp/lib $gmplibs"
4583 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4584fi
8a0d8a5c
PB
4585if test "x$with_gmp_include" != x; then
4586 gmpinc="-I$with_gmp_include $gmpinc"
4587fi
4588if test "x$with_gmp_lib" != x; then
4589 gmplibs="-L$with_gmp_lib $gmplibs"
4590fi
4b900473
PB
4591if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4592 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4593 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4594 # Do not test the gmp version. Assume that it is sufficient, since
4595 # it is in the source tree, and the library has not been built yet
4596 # but it would be included on the link line in the version check below
4597 # hence making the test fail.
4598 have_gmp=yes
4599fi
4b1cb4fe 4600
ceb92e78 4601if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4602 have_gmp=yes
4603 saved_CFLAGS="$CFLAGS"
4604 CFLAGS="$CFLAGS $gmpinc"
4605 # Check GMP actually works
c6b750e1
DJ
4606 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4607echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4608
4609cat >conftest.$ac_ext <<_ACEOF
4610/* confdefs.h. */
4611_ACEOF
4612cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h. */
4b1cb4fe 4615#include "gmp.h"
c6b750e1
DJ
4616int
4617main ()
4618{
4b1cb4fe 4619
4b900473
PB
4620 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4621 choke me
4622 #endif
c6b750e1
DJ
4623
4624 ;
4625 return 0;
4626}
4627_ACEOF
4628rm -f conftest.$ac_objext
4629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 echo "$as_me:$LINENO: result: yes" >&5
4651echo "${ECHO_T}yes" >&6
4652else
4653 echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6; have_gmp=no
4658fi
4659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4660
4b900473
PB
4661 if test x"$have_gmp" = xyes; then
4662 saved_LIBS="$LIBS"
4663 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4664 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4665echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4666 cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
9b134994 4672#include <gmp.h>
4b900473 4673 #include <mpfr.h>
c6b750e1
DJ
4674int
4675main ()
4676{
9b134994 4677
e28c595f 4678 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4679 choke me
4680 #endif
a3ca38d2
DD
4681 mpfr_t n;
4682 mpfr_t x;
4b900473 4683 int t;
a3ca38d2
DD
4684 mpfr_init (n);
4685 mpfr_init (x);
4b900473
PB
4686 mpfr_atan2 (n, n, x, GMP_RNDN);
4687 mpfr_erfc (n, x, GMP_RNDN);
4688 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4689
4690 ;
4691 return 0;
4692}
4693_ACEOF
4694rm -f conftest.$ac_objext conftest$ac_exeext
4695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4696 (eval $ac_link) 2>conftest.er1
4697 ac_status=$?
4698 grep -v '^ *+' conftest.er1 >conftest.err
4699 rm -f conftest.er1
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -z "$ac_c_werror_flag"
4704 || test ! -s conftest.err'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; } &&
4710 { ac_try='test -s conftest$ac_exeext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 cat >conftest.$ac_ext <<_ACEOF
4717/* confdefs.h. */
4718_ACEOF
4719cat confdefs.h >>conftest.$ac_ext
4720cat >>conftest.$ac_ext <<_ACEOF
4721/* end confdefs.h. */
4b1cb4fe 4722#include <gmp.h>
4b900473 4723 #include <mpfr.h>
c6b750e1
DJ
4724int
4725main ()
4726{
9dbaa842 4727
e28c595f 4728 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
4729 choke me
4730 #endif
4731 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737rm -f conftest.$ac_objext conftest$ac_exeext
4738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739 (eval $ac_link) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 echo "$as_me:$LINENO: result: yes" >&5
4760echo "${ECHO_T}yes" >&6
4761else
4762 echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4766echo "${ECHO_T}buggy but acceptable" >&6
4767fi
4768rm -f conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4770else
4771 echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774echo "$as_me:$LINENO: result: no" >&5
4775echo "${ECHO_T}no" >&6; have_gmp=no
4776fi
4777rm -f conftest.err conftest.$ac_objext \
4778 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4779 LIBS="$saved_LIBS"
4780 fi
4781 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4782
4b900473 4783 if test x$have_gmp != xyes; then
e28c595f 4784 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
c6b750e1
DJ
4785Try the --with-gmp and/or --with-mpfr options to specify their locations.
4786Copies of these libraries' source code can be found at their respective
4787hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4788See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4789If you obtained GMP and/or MPFR from a vendor distribution package, make
4790sure that you have installed both the libraries and the header files.
4791They may be located in separate packages." >&5
e28c595f 4792echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
9dbaa842
DD
4793Try the --with-gmp and/or --with-mpfr options to specify their locations.
4794Copies of these libraries' source code can be found at their respective
4795hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4796See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4797If you obtained GMP and/or MPFR from a vendor distribution package, make
4798sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4799They may be located in separate packages." >&2;}
4800 { (exit 1); exit 1; }; }
4b900473 4801 fi
9dbaa842
DD
4802fi
4803
11b04d1f 4804# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4805
4806
4807
e28c595f
JM
4808
4809# Check for PPL
4810ppl_major_version=0
4811ppl_minor_version=10
af0771d3 4812ppllibs=" -lppl_c -lppl -lgmpxx "
e28c595f
JM
4813pplinc=
4814
4815
4816# Check whether --with-ppl or --without-ppl was given.
4817if test "${with_ppl+set}" = set; then
4818 withval="$with_ppl"
4819
4820fi;
4821
4822# Check whether --with-ppl_include or --without-ppl_include was given.
4823if test "${with_ppl_include+set}" = set; then
4824 withval="$with_ppl_include"
4825
4826fi;
4827
4828# Check whether --with-ppl_lib or --without-ppl_lib was given.
4829if test "${with_ppl_lib+set}" = set; then
4830 withval="$with_ppl_lib"
4831
4832fi;
4833
4834if test "x$with_ppl" != x; then
4835 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
4836 pplinc="-I$with_ppl/include $pplinc"
4837 LIBS="$ppllibs $LIBS"
4838fi
4839if test "x$with_ppl_include" != x; then
4840 pplinc="-I$with_ppl_include $pplinc"
4841fi
4842if test "x$with_ppl_lib" != x; then
4843 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
4844 LIBS="$ppllibs $LIBS"
4845fi
4846if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4847 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
4848 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4849 LIBS="$ppllibs $LIBS"
4850fi
4851
4852# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4853if test "${enable_ppl_version_check+set}" = set; then
4854 enableval="$enable_ppl_version_check"
4855 ENABLE_PPL_CHECK=$enableval
4856else
4857 ENABLE_PPL_CHECK=yes
4858fi;
4859
4860if test "${ENABLE_PPL_CHECK}" = "yes"; then
4861 saved_CFLAGS="$CFLAGS"
4862 CFLAGS="$CFLAGS $pplinc $gmpinc"
4863 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4864echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871#include "ppl_c.h"
4872int
4873main ()
4874{
4875
4876 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4877 choke me
4878 #endif
4879
4880 ;
4881 return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext
4885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 echo "$as_me:$LINENO: result: yes" >&5
4907echo "${ECHO_T}yes" >&6
4908else
4909 echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4914fi
4915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4916 CFLAGS="$saved_CFLAGS"
4917fi
4918
4919# Flags needed for PPL
4920
4921
4922
4923
4924# Check for CLOOG
4925clooglibs=" -lcloog "
4926clooginc=" -DCLOOG_PPL_BACKEND "
4927
4928
4929# Check whether --with-cloog or --without-cloog was given.
4930if test "${with_cloog+set}" = set; then
4931 withval="$with_cloog"
4932
4933fi;
4934
4935# Check whether --with-cloog_include or --without-cloog_include was given.
4936if test "${with_cloog_include+set}" = set; then
4937 withval="$with_cloog_include"
4938
4939fi;
4940
4941# Check whether --with-cloog_lib or --without-cloog_lib was given.
4942if test "${with_cloog_lib+set}" = set; then
4943 withval="$with_cloog_lib"
4944
4945fi;
4946
4947# Check whether --with-cloog-polylib or --without-cloog-polylib was given.
4948if test "${with_cloog_polylib+set}" = set; then
4949 withval="$with_cloog_polylib"
4950
4951fi;
4952
4953if test "x$with_cloog" != x; then
4954 clooglibs="-L$with_cloog/lib -lcloog"
4955 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4956 LIBS="$clooglibs $LIBS"
4957fi
4958if test "x$with_cloog_polylib" != x; then
4959 clooglibs="-L$with_cloog/lib -lcloog"
4960 clooginc="-I$with_cloog/include "
4961 LIBS="$clooglibs $LIBS"
4962fi
4963if test "x$with_cloog_include" != x; then
4964 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4965fi
4966if test "x$with_cloog_lib" != x; then
4967 clooglibs="-L$with_cloog_lib -lcloog"
4968 LIBS="$clooglibs $LIBS"
4969fi
4970if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4971 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
4972 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
4973 LIBS="$clooglibs $LIBS"
4974fi
4975
4976# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
4977if test "${enable_cloog_version_check+set}" = set; then
4978 enableval="$enable_cloog_version_check"
4979 ENABLE_CLOOG_CHECK=$enableval
4980else
4981 ENABLE_CLOOG_CHECK=yes
4982fi;
4983
4984if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
4985 saved_CFLAGS="$CFLAGS"
4986 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
4987 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
4988echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
4989 cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995#include "cloog/cloog.h"
4996int
4997main ()
4998{
4999
5000 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5001 choke me
5002 #endif
5003
5004 ;
5005 return 0;
5006}
5007_ACEOF
5008rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032else
5033 echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5038fi
5039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040 CFLAGS="$saved_CFLAGS"
5041fi
5042
5043# Flags needed for CLOOG
5044
5045
5046
5047
947f426e 5048# By default, C is the only stage 1 language.
9b134994 5049stage1_languages=,c,
1d39f329 5050
9e07f89d
NN
5051# Figure out what language subdirectories are present.
5052# Look if the user specified --enable-languages="..."; if not, use
5053# the environment variable $LANGUAGES if defined. $LANGUAGES might
5054# go away some day.
5055# NB: embedded tabs in this IF block -- do not untabify
5056if test -d ${srcdir}/gcc; then
5057 if test x"${enable_languages+set}" != xset; then
5058 if test x"${LANGUAGES+set}" = xset; then
5059 enable_languages="${LANGUAGES}"
5060 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5061 else
5062 enable_languages=all
5063 fi
5064 else
5065 if test x"${enable_languages}" = x ||
5066 test x"${enable_languages}" = xyes;
5067 then
5068 echo configure.in: --enable-languages needs at least one language argument 1>&2
5069 exit 1
5070 fi
5071 fi
5072 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5073
096f7d00
DE
5074 # 'f95' is the old name for the 'fortran' language. We issue a warning
5075 # and make the substitution.
5076 case ,${enable_languages}, in
5077 *,f95,*)
5078 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5079 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5080 ;;
5081 esac
5082
9e07f89d
NN
5083 # First scan to see if an enabled language requires some other language.
5084 # We assume that a given config-lang.in will list all the language
5085 # front ends it requires, even if some are required indirectly.
5086 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5087 case ${lang_frag} in
5088 ..) ;;
5089 # The odd quoting in the next line works around
5090 # an apparent bug in bash 1.12 on linux.
5091 ${srcdir}/gcc/[*]/config-lang.in) ;;
5092 *)
5093 # From the config-lang.in, get $language, $lang_requires
5094 language=
5095 lang_requires=
5096 . ${lang_frag}
5097 for other in ${lang_requires} ; do
5098 case ,${enable_languages}, in
5099 *,$other,*) ;;
5100 *,all,*) ;;
5101 *,$language,*)
5102 echo " \`$other' language required by \`$language'; enabling" 1>&2
5103 enable_languages="${enable_languages},${other}"
5104 ;;
5105 esac
5106 done
5107 ;;
5108 esac
5109 done
5110
9b134994 5111 new_enable_languages=,c,
9e07f89d 5112 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5113 potential_languages=,c,
9e07f89d
NN
5114
5115 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5116 case ${lang_frag} in
5117 ..) ;;
5118 # The odd quoting in the next line works around
5119 # an apparent bug in bash 1.12 on linux.
5120 ${srcdir}/gcc/[*]/config-lang.in) ;;
5121 *)
c6b750e1 5122 # From the config-lang.in, get $language, $target_libs,
1d39f329 5123 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5124 language=
5125 target_libs=
5126 lang_dirs=
64ce424c 5127 subdir_requires=
9b134994
PB
5128 boot_language=no
5129 build_by_default=yes
9e07f89d 5130 . ${lang_frag}
9b134994
PB
5131 if test x${language} = x; then
5132 echo "${lang_frag} doesn't set \$language." 1>&2
5133 exit 1
5134 fi
5135
5136 case ,${enable_languages}, in
5137 *,${language},*)
9e07f89d
NN
5138 # Language was explicitly selected; include it.
5139 add_this_lang=yes
5140 ;;
9b134994
PB
5141 *,all,*)
5142 # 'all' was selected, select it if it is a default language
5143 add_this_lang=${build_by_default}
9e07f89d
NN
5144 ;;
5145 *)
5146 add_this_lang=no
5147 ;;
5148 esac
4b1cb4fe 5149
64ce424c 5150 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5151 for i in $subdir_requires; do
3d3adb43 5152 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5153 case ,${enable_languages}, in
5154 *,${language},*)
5155 # Specifically requested language; tell them.
c6b750e1
DJ
5156 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5157echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5158 { (exit 1); exit 1; }; }
64ce424c
PB
5159 ;;
5160 *)
5161 # Silently disable.
9b134994 5162 add_this_lang=unsupported
64ce424c
PB
5163 ;;
5164 esac
5165 done
5166
9b134994
PB
5167 # Disable Ada if no preexisting GNAT is available.
5168 case ,${enable_languages},:${language}:${have_gnat} in
5169 *,${language},*:ada:no)
5170 # Specifically requested language; tell them.
c6b750e1
DJ
5171 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5172echo "$as_me: error: GNAT is required to build $language" >&2;}
5173 { (exit 1); exit 1; }; }
9b134994
PB
5174 ;;
5175 *:ada:no)
5176 # Silently disable.
5177 add_this_lang=unsupported
5178 ;;
5179 esac
5180
59f7ec45
HPN
5181 # Disable a language that is unsupported by the target.
5182 case " $unsupported_languages " in
5183 *" $language "*)
9b134994 5184 add_this_lang=unsupported
59f7ec45
HPN
5185 ;;
5186 esac
5187
4b1cb4fe 5188 case $add_this_lang in
9b134994 5189 unsupported)
9e07f89d 5190 # Remove language-dependent dirs.
1d39f329
NN
5191 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5192 ;;
9b134994
PB
5193 no)
5194 # Remove language-dependent dirs; still show language as supported.
5195 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5196 potential_languages="${potential_languages}${language},"
5197 ;;
5198 yes)
5199 new_enable_languages="${new_enable_languages}${language},"
5200 potential_languages="${potential_languages}${language},"
1d39f329
NN
5201 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5202 case ${boot_language} in
5203 yes)
4fa63067 5204 # Add to (comma-separated) list of stage 1 languages.
9b134994 5205 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
5206 ;;
5207 esac
5208 ;;
9e07f89d
NN
5209 esac
5210 ;;
5211 esac
5212 done
5213
9b134994
PB
5214 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5215if test "${enable_stage1_languages+set}" = set; then
5216 enableval="$enable_stage1_languages"
5217 case ,${enable_stage1_languages}, in
5218 ,no,|,,)
5219 # Set it to something that will have no effect in the loop below
5220 enable_stage1_languages=c ;;
5221 ,yes,)
5222 enable_stage1_languages=`echo $new_enable_languages | \
5223 sed -e "s/^,//" -e "s/,$//" ` ;;
5224 *,all,*)
5225 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5226 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5227 esac
5228
5229 # Add "good" languages from enable_stage1_languages to stage1_languages,
5230 # while "bad" languages go in missing_languages. Leave no duplicates.
5231 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5232 case $potential_languages in
5233 *,$i,*)
5234 case $stage1_languages in
5235 *,$i,*) ;;
5236 *) stage1_languages="$stage1_languages$i," ;;
5237 esac ;;
5238 *)
5239 case $missing_languages in
5240 *,$i,*) ;;
5241 *) missing_languages="$missing_languages$i," ;;
5242 esac ;;
5243 esac
5244 done
c6b750e1 5245fi;
9b134994
PB
5246
5247 # Remove leading/trailing commas that were added for simplicity
5248 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5249 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5250 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5251 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5252
9e07f89d 5253 if test "x$missing_languages" != x; then
c6b750e1 5254 { { echo "$as_me:$LINENO: error:
27258dd4 5255The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5256Supported languages are: ${potential_languages}" >&5
5257echo "$as_me: error:
5258The following requested languages could not be built: ${missing_languages}
5259Supported languages are: ${potential_languages}" >&2;}
5260 { (exit 1); exit 1; }; }
9e07f89d 5261 fi
9e07f89d
NN
5262 if test "x$new_enable_languages" != "x$enable_languages"; then
5263 echo The following languages will be built: ${new_enable_languages}
9b134994 5264 enable_languages="$new_enable_languages"
9e07f89d 5265 fi
9b134994 5266
c6b750e1 5267
81ec575a 5268 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5269fi
5270
a6df5a19
PB
5271# Handle --disable-<component> generically.
5272for dir in $configdirs $build_configdirs $target_configdirs ; do
5273 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5274 varname=`echo $dirname | sed -e s/+/_/g`
5275 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5276 noconfigdirs="$noconfigdirs $dir"
5277 fi
5278done
5279
4f0ef2d8
CD
5280# Check for Boehm's garbage collector
5281# Check whether --enable-objc-gc or --disable-objc-gc was given.
5282if test "${enable_objc_gc+set}" = set; then
5283 enableval="$enable_objc_gc"
5284 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5285 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5286 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5287echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5288 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5289 ;;
5290esac
c6b750e1 5291fi;
4f0ef2d8
CD
5292
5293# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5294case ,${enable_languages},:${enable_objc_gc} in
5295 *,objc,*:yes)
4f0ef2d8
CD
5296 # Keep target-boehm-gc if requested for Objective-C.
5297 ;;
4f0ef2d8 5298 *)
d42c4017
DA
5299 # Otherwise remove target-boehm-gc depending on target-libjava.
5300 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5301 noconfigdirs="$noconfigdirs target-boehm-gc"
5302 fi
4f0ef2d8
CD
5303 ;;
5304esac
5305
caeba88f
AL
5306# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5307# $build_configdirs and $target_configdirs.
9e07f89d
NN
5308# If we have the source for $noconfigdirs entries, add them to $notsupp.
5309
5310notsupp=""
5311for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5312 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5313 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5314 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5315 if test -r $srcdir/$dirname/configure ; then
5316 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5317 true
5318 else
5319 notsupp="$notsupp $dir"
5320 fi
5321 fi
5322 fi
caeba88f
AL
5323 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5324 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5325 if test -r $srcdir/$dirname/configure ; then
5326 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5327 true
5328 else
5329 notsupp="$notsupp $dir"
5330 fi
5331 fi
5332 fi
9e07f89d
NN
5333 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5334 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5335 if test -r $srcdir/$dirname/configure ; then
5336 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5337 true
5338 else
5339 notsupp="$notsupp $dir"
5340 fi
5341 fi
5342 fi
5343done
5344
5345# Sometimes the tools are distributed with libiberty but with no other
5346# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5347# Don't let libgcc imply libiberty either.
9e07f89d 5348if test -n "${target_configdirs}" ; then
f86e35b8 5349 libgcc=
9e07f89d
NN
5350 others=
5351 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5352 if test "$i" = "libgcc"; then
5353 libgcc=target-libgcc
5354 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5355 if test -r $srcdir/$i/configure ; then
5356 others=yes;
5357 break;
5358 fi
5359 fi
5360 done
5361 if test -z "${others}" ; then
f86e35b8 5362 target_configdirs=$libgcc
9e07f89d
NN
5363 fi
5364fi
5365
5366# Quietly strip out all directories which aren't configurable in this tree.
5367# This relies on all configurable subdirectories being autoconfiscated, which
5368# is now the case.
6a9cf61e
PB
5369build_configdirs_all="$build_configdirs"
5370build_configdirs=
5371for i in ${build_configdirs_all} ; do
c6b750e1 5372 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5373 if test -f ${srcdir}/$j/configure ; then
5374 build_configdirs="${build_configdirs} $i"
5375 fi
5376done
5377
9e07f89d
NN
5378configdirs_all="$configdirs"
5379configdirs=
5380for i in ${configdirs_all} ; do
5381 if test -f ${srcdir}/$i/configure ; then
5382 configdirs="${configdirs} $i"
5383 fi
5384done
6a9cf61e 5385
9e07f89d
NN
5386target_configdirs_all="$target_configdirs"
5387target_configdirs=
5388for i in ${target_configdirs_all} ; do
c6b750e1 5389 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5390 if test -f ${srcdir}/$j/configure ; then
5391 target_configdirs="${target_configdirs} $i"
5392 fi
5393done
5394
5395# Produce a warning message for the subdirs we can't configure.
5396# This isn't especially interesting in the Cygnus tree, but in the individual
5397# FSF releases, it's important to let people know when their machine isn't
5398# supported by the one or two programs in a package.
5399
5400if test -n "${notsupp}" && test -z "${norecursion}" ; then
5401 # If $appdirs is non-empty, at least one of those directories must still
5402 # be configured, or we error out. (E.g., if the gas release supports a
5403 # specified target in some subdirs but not the gas subdir, we shouldn't
5404 # pretend that all is well.)
5405 if test -n "$appdirs" ; then
5406 for dir in $appdirs ; do
5407 if test -r $dir/Makefile.in ; then
5408 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5409 appdirs=""
5410 break
5411 fi
6a9cf61e 5412 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5413 appdirs=""
5414 break
5415 fi
5416 fi
5417 done
5418 if test -n "$appdirs" ; then
5419 echo "*** This configuration is not supported by this package." 1>&2
5420 exit 1
5421 fi
5422 fi
5423 # Okay, some application will build, or we don't care to check. Still
5424 # notify of subdirs not getting built.
5425 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5426 echo " ${notsupp}" 1>&2
5427 echo " (Any other directories should still work fine.)" 1>&2
5428fi
5429
5430case "$host" in
5431 *msdosdjgpp*)
5432 enable_gdbtk=no ;;
5433esac
5434
18f6b6ee
PB
5435# To find our prefix, in gcc_cv_tool_prefix.
5436
5437# The user is always right.
5438if test "${PATH_SEPARATOR+set}" != set; then
5439 echo "#! /bin/sh" >conf$$.sh
5440 echo "exit 0" >>conf$$.sh
5441 chmod +x conf$$.sh
5442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5443 PATH_SEPARATOR=';'
5444 else
5445 PATH_SEPARATOR=:
5446 fi
5447 rm -f conf$$.sh
5448fi
5449
5450
5451
5452if test "x$exec_prefix" = xNONE; then
5453 if test "x$prefix" = xNONE; then
5454 gcc_cv_tool_prefix=$ac_default_prefix
5455 else
5456 gcc_cv_tool_prefix=$prefix
5457 fi
5458else
5459 gcc_cv_tool_prefix=$exec_prefix
5460fi
5461
5462# If there is no compiler in the tree, use the PATH only. In any
5463# case, if there is no compiler in the tree nobody should use
5464# AS_FOR_TARGET and LD_FOR_TARGET.
5465if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5466 gcc_version=`cat $srcdir/gcc/BASE-VER`
5467 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5468 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5469 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5470 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5472 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5473else
5474 gcc_cv_tool_dirs=
5475fi
5476
5477if test x$build = x$target && test -n "$md_exec_prefix"; then
5478 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5479fi
5480
5481
5482
9e07f89d
NN
5483copy_dirs=
5484
c6b750e1 5485
a19b6204
MM
5486# Check whether --with-build-sysroot or --without-build-sysroot was given.
5487if test "${with_build_sysroot+set}" = set; then
5488 withval="$with_build_sysroot"
5489 if test x"$withval" != x ; then
5490 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5491 fi
5492else
5493 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5494fi;
a19b6204
MM
5495
5496
8a6ee3ab
JM
5497
5498# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5499if test "${with_debug_prefix_map+set}" = set; then
5500 withval="$with_debug_prefix_map"
5501 if test x"$withval" != x; then
5502 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5503 for debug_map in $withval; do
5504 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5505 done
5506 fi
5507else
5508 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5509fi;
5510
5511
7f6ef0c0
PB
5512# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5513# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5514# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5515# We want to ensure that TARGET libraries (which we know are built with
5516# gcc) are built with "-O2 -g", so include those options when setting
5517# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5518if test "x$CFLAGS_FOR_TARGET" = x; then
5519 CFLAGS_FOR_TARGET=$CFLAGS
5520 case " $CFLAGS " in
5521 *" -O2 "*) ;;
5522 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5523 esac
5524 case " $CFLAGS " in
5525 *" -g "* | *" -g3 "*) ;;
5526 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5527 esac
5528fi
5529
5530
5531if test "x$CXXFLAGS_FOR_TARGET" = x; then
5532 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5533 case " $CXXFLAGS " in
5534 *" -O2 "*) ;;
5535 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5536 esac
5537 case " $CXXFLAGS " in
5538 *" -g "* | *" -g3 "*) ;;
5539 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5540 esac
5541fi
5542
5543
9e07f89d
NN
5544# Handle --with-headers=XXX. If the value is not "yes", the contents of
5545# the named directory are copied to $(tooldir)/sys-include.
5546if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5547 if test x${is_cross_compiler} = xno ; then
5548 echo 1>&2 '***' --with-headers is only supported when cross compiling
5549 exit 1
5550 fi
5551 if test x"${with_headers}" != xyes ; then
18f6b6ee 5552 x=${gcc_cv_tool_prefix}
c6b750e1 5553 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5554 fi
5555fi
5556
5557# Handle --with-libs=XXX. If the value is not "yes", the contents of
5558# the name directories are copied to $(tooldir)/lib. Multiple directories
5559# are permitted.
5560if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5561 if test x${is_cross_compiler} = xno ; then
5562 echo 1>&2 '***' --with-libs is only supported when cross compiling
5563 exit 1
5564 fi
5565 if test x"${with_libs}" != xyes ; then
5566 # Copy the libraries in reverse order, so that files in the first named
5567 # library override files in subsequent libraries.
18f6b6ee 5568 x=${gcc_cv_tool_prefix}
9e07f89d 5569 for l in ${with_libs}; do
c6b750e1 5570 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5571 done
5572 fi
5573fi
5574
2429c060
PB
5575# Set with_gnu_as and with_gnu_ld as appropriate.
5576#
5577# This is done by determining whether or not the appropriate directory
5578# is available, and by checking whether or not specific configurations
5579# have requested that this magic not happen.
c6b750e1
DJ
5580#
5581# The command line options always override the explicit settings in
2429c060
PB
5582# configure.in, and the settings in configure.in override this magic.
5583#
c6b750e1 5584# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5585# want to do that, then you should use the --without-gnu-as and
5586# --without-gnu-ld options for the configure script.
5587
5588if test x${use_gnu_as} = x &&
5589 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5590 with_gnu_as=yes
5591 extra_host_args="$extra_host_args --with-gnu-as"
5592fi
5593
5594if test x${use_gnu_ld} = x &&
93f9b408 5595 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5596 with_gnu_ld=yes
5597 extra_host_args="$extra_host_args --with-gnu-ld"
5598fi
5599
5600# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5601# can detect this case.
5602
5603if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5604 with_newlib=yes
5605 extra_host_args="$extra_host_args --with-newlib"
5606fi
5607
9e07f89d
NN
5608# Handle ${copy_dirs}
5609set fnord ${copy_dirs}
5610shift
5611while test $# != 0 ; do
5612 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5613 :
5614 else
5615 echo Copying $1 to $2
5616
5617 # Use the install script to create the directory and all required
5618 # parent directories.
5619 if test -d $2 ; then
5620 :
5621 else
5622 echo >config.temp
5623 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5624 fi
5625
5626 # Copy the directory, assuming we have tar.
5627 # FIXME: Should we use B in the second tar? Not all systems support it.
5628 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5629
5630 # It is the responsibility of the user to correctly adjust all
5631 # symlinks. If somebody can figure out how to handle them correctly
5632 # here, feel free to add the code.
5633
5634 echo $1 > $2/COPIED
5635 fi
5636 shift; shift
5637done
5638
2429c060
PB
5639# Determine a target-dependent exec_prefix that the installed
5640# gcc will search in. Keep this list sorted by triplet, with
5641# the *-*-osname triplets last.
5642md_exec_prefix=
5643case "${target}" in
5644 alpha*-*-*vms*)
5645 md_exec_prefix=/gnu/lib/gcc-lib
5646 ;;
521ec477 5647 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5648 md_exec_prefix=/dev/env/DJDIR/bin
5649 ;;
521ec477 5650 i[34567]86-*-sco3.2v5*)
2429c060
PB
5651 if test $with_gnu_as = yes; then
5652 md_exec_prefix=/usr/gnu/bin
5653 else
5654 md_exec_prefix=/usr/ccs/bin/elf
5655 fi
5656 ;;
5657
5658 mn10300-*-* | \
5659 powerpc-*-chorusos* | \
5660 powerpc*-*-eabi* | \
5661 powerpc*-*-sysv* | \
5662 powerpc*-*-kaos* | \
5663 s390x-ibm-tpf*)
5664 md_exec_prefix=/usr/ccs/bin
5665 ;;
5666 sparc64-*-elf*)
5667 ;;
5668 v850*-*-*)
5669 md_exec_prefix=/usr/ccs/bin
5670 ;;
8b66833e 5671 xtensa*-*-elf*)
2429c060
PB
5672 ;;
5673
5674 *-*-beos* | \
5675 *-*-elf* | \
5676 *-*-hpux* | \
5677 *-*-netware* | \
5678 *-*-nto-qnx* | \
5679 *-*-rtems* | \
5680 *-*-solaris2* | \
521ec477 5681 *-*-sysv[45]* | \
2429c060
PB
5682 *-*-vxworks* | \
5683 *-wrs-windiss)
5684 md_exec_prefix=/usr/ccs/bin
5685 ;;
5686esac
5687
a0da8069
NN
5688extra_arflags_for_target=
5689extra_nmflags_for_target=
5690extra_ranlibflags_for_target=
5691target_makefile_frag=/dev/null
5692case "${target}" in
4e206d7e
DB
5693 mep*-*-*)
5694 target_makefile_frag="config/mt-mep"
5695 ;;
77d7106f
AM
5696 spu-*-*)
5697 target_makefile_frag="config/mt-spu"
5698 ;;
429acdec
RS
5699 mips*-sde-elf*)
5700 target_makefile_frag="config/mt-sde"
5701 ;;
f3b1e08e
RS
5702 mipsisa*-*-elfoabi*)
5703 target_makefile_frag="config/mt-mips-elfoabi"
5704 ;;
e7c8859c
RS
5705 mips*-*-*linux* | mips*-*-gnu*)
5706 target_makefile_frag="config/mt-mips-gnu"
5707 ;;
2a3124ca 5708 *-*-netware*)
a0da8069
NN
5709 target_makefile_frag="config/mt-netware"
5710 ;;
3d6dfe0f
NN
5711 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5712 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5713 ;;
5714 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5715 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5716 # commands to handle both 32-bit and 64-bit objects. These flags are
5717 # harmless if we're using GNU nm or ar.
5718 extra_arflags_for_target=" -X32_64"
5719 extra_nmflags_for_target=" -B -X32_64"
5720 ;;
5721 *-*-darwin*)
5722 # ranlib from Darwin requires the -c flag to look at common symbols.
5723 extra_ranlibflags_for_target=" -c"
5724 ;;
5725 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5726 target_makefile_frag="config/mt-wince"
5727 ;;
5728esac
5729
5730alphaieee_frag=/dev/null
5731case $target in
5732 alpha*-*-*)
5733 # This just makes sure to use the -mieee option to build target libs.
5734 # This should probably be set individually by each library.
5735 alphaieee_frag="config/mt-alphaieee"
5736 ;;
5737esac
5738
5739# If --enable-target-optspace always use -Os instead of -O2 to build
5740# the target libraries, similarly if it is not specified, use -Os
5741# on selected platforms.
5742ospace_frag=/dev/null
5743case "${enable_target_optspace}:${target}" in
5744 yes:*)
5745 ospace_frag="config/mt-ospace"
5746 ;;
5747 :d30v-*)
5748 ospace_frag="config/mt-d30v"
5749 ;;
5750 :m32r-* | :d10v-* | :fr30-*)
5751 ospace_frag="config/mt-ospace"
5752 ;;
5753 no:* | :*)
5754 ;;
5755 *)
5756 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5757 ;;
5758esac
5759
a0da8069
NN
5760# Default to using --with-stabs for certain targets.
5761if test x${with_stabs} = x ; then
5762 case "${target}" in
e31d1ea3 5763 mips*-*-irix[56]*)
a0da8069
NN
5764 ;;
5765 mips*-*-* | alpha*-*-osf*)
5766 with_stabs=yes;
5767 extra_host_args="${extra_host_args} --with-stabs"
5768 ;;
5769 esac
5770fi
5771
5772# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5773# them automatically.
5774case "${host}" in
c6b750e1 5775 hppa*64*-*-hpux11*)
a0da8069
NN
5776 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5777 ;;
5778esac
5779
a0da8069
NN
5780# Some systems (e.g., one of the i386-aix systems the gas testers are
5781# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5782tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5783build_tooldir=${tooldir}
5784
a0da8069
NN
5785# Create a .gdbinit file which runs the one in srcdir
5786# and tells GDB to look there for source files.
5787
5788if test -r ${srcdir}/.gdbinit ; then
5789 case ${srcdir} in
5790 .) ;;
5791 *) cat > ./.gdbinit <<EOF
5792# ${NO_EDIT}
5793dir ${srcdir}
5794dir .
5795source ${srcdir}/.gdbinit
5796EOF
5797 ;;
5798 esac
5799fi
5800
a0da8069
NN
5801# Make sure that the compiler is able to generate an executable. If it
5802# can't, we are probably in trouble. We don't care whether we can run the
5803# executable--we might be using a cross compiler--we only care whether it
5804# can be created. At this point the main configure script has set CC.
5805we_are_ok=no
5806echo "int main () { return 0; }" > conftest.c
5807${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5808if test $? = 0 ; then
5809 if test -s conftest || test -s conftest.exe ; then
5810 we_are_ok=yes
5811 fi
c6b750e1 5812fi
a0da8069
NN
5813case $we_are_ok in
5814 no)
5815 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5816 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5817 rm -f conftest*
5818 exit 1
5819 ;;
5820esac
5821rm -f conftest*
5822
5823# The Solaris /usr/ucb/cc compiler does not appear to work.
5824case "${host}" in
5825 sparc-sun-solaris2*)
5826 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5827 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5828 could_use=
5829 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5830 if test -d /opt/cygnus/bin ; then
5831 if test "$could_use" = "" ; then
5832 could_use="/opt/cygnus/bin"
5833 else
5834 could_use="$could_use or /opt/cygnus/bin"
5835 fi
5836 fi
5837 if test "$could_use" = "" ; then
5838 echo "Warning: compilation may fail because you're using"
5839 echo "/usr/ucb/cc. You should change your PATH or CC "
5840 echo "variable and rerun configure."
5841 else
5842 echo "Warning: compilation may fail because you're using"
5843 echo "/usr/ucb/cc, when you should use the C compiler from"
5844 echo "$could_use. You should change your"
5845 echo "PATH or CC variable and rerun configure."
5846 fi
5847 fi
5848 ;;
5849esac
5850
3bbd2f8f 5851# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
5852case "${host}" in
5853 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5854 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 5855 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
5856 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5857esac
5858
3bbd2f8f 5859# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
5860# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5861# built executables to PATH.
3bbd2f8f
AL
5862if test "$RPATH_ENVVAR" = PATH; then
5863 GCC_SHLIB_SUBDIR=/shlib
5864else
5865 GCC_SHLIB_SUBDIR=
5866fi
5867
a0da8069
NN
5868# Record target_configdirs and the configure arguments for target and
5869# build configuration in Makefile.
5870target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5871build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5872
a0da8069
NN
5873# Determine whether gdb needs tk/tcl or not.
5874# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5875# and in that case we want gdb to be built without tk. Ugh!
5876# In fact I believe gdb is the *only* package directly dependent on tk,
5877# so we should be able to put the 'maybe's in unconditionally and
5878# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5879# 100% sure that that's safe though.
c180f501 5880
675c6968 5881gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5882case "$enable_gdbtk" in
5883 no)
5884 GDB_TK="" ;;
c180f501
AC
5885 yes)
5886 GDB_TK="${gdb_tk}" ;;
a0da8069 5887 *)
c180f501
AC
5888 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5889 # distro. Eventually someone will fix this and move Insight, nee
5890 # gdbtk to a separate directory.
5891 if test -d ${srcdir}/gdb/gdbtk ; then
5892 GDB_TK="${gdb_tk}"
5893 else
5894 GDB_TK=""
5895 fi
5896 ;;
a0da8069 5897esac
907be67c
DJ
5898CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5899INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5900
6bd3dfaa 5901# Strip out unwanted targets.
dd12c3a8
NN
5902
5903# While at that, we remove Makefiles if we were started for recursive
5904# configuration, so that the top-level Makefile reconfigures them,
5905# like we used to do when configure itself was recursive.
dd12c3a8 5906
6bd3dfaa
PB
5907# Loop over modules. $extrasub must be used with care, limiting as
5908# much as possible the usage of range addresses. That's because autoconf
5909# splits the sed script to overcome limits in the number of commands,
5910# and relying on carefully-timed sed passes may turn out to be very hard
5911# to maintain later. In this particular case, you just have to be careful
5912# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5913
319cab08
PB
5914# Check whether --enable-bootstrap or --disable-bootstrap was given.
5915if test "${enable_bootstrap+set}" = set; then
5916 enableval="$enable_bootstrap"
c6b750e1 5917
319cab08 5918else
9cb3fa6f 5919 enable_bootstrap=default
c6b750e1 5920fi;
319cab08 5921
9cb3fa6f
PB
5922# Issue errors and warnings for invalid/strange bootstrap combinations.
5923case "$configdirs" in
5924 *gcc*) have_compiler=yes ;;
5925 *) have_compiler=no ;;
5926esac
5927
5928case "$have_compiler:$host:$target:$enable_bootstrap" in
5929 *:*:*:no) ;;
5930
0aed8855 5931 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5932 # and we are in a native configuration.
5933 yes:$build:$build:default)
0aed8855 5934 enable_bootstrap=yes ;;
9cb3fa6f
PB
5935
5936 *:*:*:default)
5937 enable_bootstrap=no ;;
5938
5939 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5940 yes:$build:$build:yes)
9cb3fa6f
PB
5941 ;;
5942
5943 # Other configurations, but we have a compiler. Assume the user knows
5944 # what he's doing.
80911fe1 5945 yes:*:*:yes)
c6b750e1
DJ
5946 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5947echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5948 ;;
5949
5950 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5951 no:*:*:yes)
c6b750e1
DJ
5952 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5953echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5954 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5955
5956 # Fail if wrong command line
5957 *)
c6b750e1
DJ
5958 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5959echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5960 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5961 ;;
5962esac
5963
5964# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5965case "$enable_bootstrap" in
5966 yes)
498d4a71 5967 bootstrap_suffix=bootstrap ;;
319cab08 5968 no)
498d4a71 5969 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5970esac
5971
6a9cf61e 5972for module in ${build_configdirs} ; do
498d4a71
CF
5973 if test -z "${no_recursion}" \
5974 && test -f ${build_subdir}/${module}/Makefile; then
5975 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5976 rm -f ${build_subdir}/${module}/Makefile
5977 fi
5978 extrasub="$extrasub
5979/^@if build-$module\$/d
5980/^@endif build-$module\$/d
5981/^@if build-$module-$bootstrap_suffix\$/d
5982/^@endif build-$module-$bootstrap_suffix\$/d"
5983done
5984for module in ${configdirs} ; do
80911fe1 5985 if test -z "${no_recursion}"; then
8cf39b1b 5986 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5987 if test -f ${file}; then
5988 echo 1>&2 "*** removing ${file} to force reconfigure"
5989 rm -f ${file}
5990 fi
5991 done
498d4a71
CF
5992 fi
5993 extrasub="$extrasub
5994/^@if $module\$/d
5995/^@endif $module\$/d
5996/^@if $module-$bootstrap_suffix\$/d
5997/^@endif $module-$bootstrap_suffix\$/d"
5998done
5999for module in ${target_configdirs} ; do
6000 if test -z "${no_recursion}" \
6001 && test -f ${target_subdir}/${module}/Makefile; then
6002 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6003 rm -f ${target_subdir}/${module}/Makefile
6004 fi
6005 extrasub="$extrasub
6006/^@if target-$module\$/d
6007/^@endif target-$module\$/d
6008/^@if target-$module-$bootstrap_suffix\$/d
6009/^@endif target-$module-$bootstrap_suffix\$/d"
6010done
6011
6bd3dfaa
PB
6012extrasub="$extrasub
6013/^@if /,/^@endif /d"
a0da8069
NN
6014
6015# Create the serialization dependencies. This uses a temporary file.
6016
e6bfb94a
AO
6017# Check whether --enable-serial-configure or --disable-serial-configure was given.
6018if test "${enable_serial_configure+set}" = set; then
6019 enableval="$enable_serial_configure"
e6bfb94a 6020
c6b750e1 6021fi;
e6bfb94a 6022
1047cb91
DD
6023case ${enable_serial_configure} in
6024 yes)
6025 enable_serial_build_configure=yes
6026 enable_serial_host_configure=yes
6027 enable_serial_target_configure=yes
6028 ;;
6029esac
6030
a0da8069
NN
6031# These force 'configure's to be done one at a time, to avoid problems
6032# with contention over a shared config.cache.
6033rm -f serdep.tmp
e6bfb94a 6034echo '# serdep.tmp' > serdep.tmp
a0da8069 6035olditem=
1047cb91 6036test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6037for item in ${build_configdirs} ; do
6038 case ${olditem} in
6039 "") ;;
e6bfb94a 6040 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6041 esac
6042 olditem=${item}
6043done
6044olditem=
1047cb91 6045test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6046for item in ${configdirs} ; do
6047 case ${olditem} in
6048 "") ;;
e6bfb94a 6049 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6050 esac
6051 olditem=${item}
6052done
6053olditem=
1047cb91 6054test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6055for item in ${target_configdirs} ; do
6056 case ${olditem} in
6057 "") ;;
e6bfb94a 6058 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6059 esac
6060 olditem=${item}
6061done
6062serialization_dependencies=serdep.tmp
6063
6064
e6bfb94a 6065# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6066# target, nonopt, and variable assignments. These are the ones we
6067# might not want to pass down to subconfigures. Also strip
6068# program-prefix, program-suffix, and program-transform-name, so that
6069# we can pass down a consistent program-transform-name.
6070baseargs=
6071keep_next=no
6072skip_next=no
6073eval "set -- $ac_configure_args"
18f6b6ee
PB
6074for ac_arg
6075do
c6b750e1
DJ
6076 if test X"$skip_next" = X"yes"; then
6077 skip_next=no
6078 continue
6079 fi
6080 if test X"$keep_next" = X"yes"; then
6081 case $ac_arg in
6082 *\'*)
6083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6084 esac
6085 baseargs="$baseargs '$ac_arg'"
6086 keep_next=no
6087 continue
6088 fi
6089
6090 # Handle separated arguments. Based on the logic generated by
6091 # autoconf 2.59.
6092 case $ac_arg in
6093 *=* | --config-cache | -C | -disable-* | --disable-* \
6094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6096 | -with-* | --with-* | -without-* | --without-* | --x)
6097 separate_arg=no
6098 ;;
6099 -*)
6100 separate_arg=yes
6101 ;;
6102 *)
6103 separate_arg=no
6104 ;;
6105 esac
6106
6107 case "$ac_arg" in
6108 --no*)
6109 continue
6110 ;;
6111 --c* | \
6112 --sr* | \
6113 --ho* | \
6114 --bu* | \
6115 --t* | \
6116 --program-* | \
6117 -cache_file* | \
6118 -srcdir* | \
6119 -host* | \
6120 -build* | \
6121 -target* | \
6122 -program-prefix* | \
6123 -program-suffix* | \
6124 -program-transform-name* )
6125 skip_next=$separate_arg
6126 continue
6127 ;;
6128 -*)
6129 # An option. Add it.
6130 case $ac_arg in
6131 *\'*)
6132 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6133 esac
6134 baseargs="$baseargs '$ac_arg'"
6135 keep_next=$separate_arg
6136 ;;
6137 *)
6138 # Either a variable assignment, or a nonopt (triplet). Don't
6139 # pass it down; let the Makefile handle this.
6140 continue
6141 ;;
6142 esac
6143done
6144# Remove the initial space we just introduced and, as these will be
6145# expanded by make, quote '$'.
6146baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6147
f27d4f92
DJ
6148# Add in --program-transform-name, after --program-prefix and
6149# --program-suffix have been applied to it. Autoconf has already
6150# doubled dollar signs and backslashes in program_transform_name; we want
6151# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6152# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6153# Also, because we want to override the logic in subdir configure scripts to
6154# choose program_transform_name, replace any s,x,x, with s,y,y,.
6155sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6156${program_transform_name}
6157EOF_SED
6158gcc_transform_name=`cat conftestsed.out`
6159rm -f conftestsed.out
6160baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6161if test "$silent" = yes; then
6162 baseargs="$baseargs --silent"
6163fi
f27d4f92 6164
a0da8069
NN
6165# For the build-side libraries, we just need to pretend we're native,
6166# and not use the same cache file. Multilibs are neither needed nor
6167# desired.
4b900473 6168build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6169
6170# For host modules, accept cache file option, or specification as blank.
6171case "${cache_file}" in
6172"") # empty
6173 cache_file_option="" ;;
6174/* | [A-Za-z]:[\\/]* ) # absolute path
6175 cache_file_option="--cache-file=${cache_file}" ;;
6176*) # relative path
6177 cache_file_option="--cache-file=../${cache_file}" ;;
6178esac
6179
82252c06
NN
6180# Host dirs don't like to share a cache file either, horribly enough.
6181# This seems to be due to autoconf 2.5x stupidity.
4b900473 6182host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6183
6184target_configargs=${baseargs}
6185
6186# Passing a --with-cross-host argument lets the target libraries know
6187# whether they are being built with a cross-compiler or being built
6188# native. However, it would be better to use other mechanisms to make the
6189# sorts of decisions they want to make on this basis. Please consider
6190# this option to be deprecated. FIXME.
6191if test x${is_cross_compiler} = xyes ; then
c6b750e1 6192 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6193fi
6194
6195# Default to --enable-multilib.
6196if test x${enable_multilib} = x ; then
6197 target_configargs="--enable-multilib ${target_configargs}"
6198fi
6199
6200# Pass --with-newlib if appropriate. Note that target_configdirs has
6201# changed from the earlier setting of with_newlib.
6202if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6203 target_configargs="--with-newlib ${target_configargs}"
6204fi
6205
95036d20
NN
6206# Different target subdirs use different values of certain variables
6207# (notably CXX). Worse, multilibs use *lots* of different values.
6208# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6209# it doesn't automatically accept command-line overrides of them.
6210# This means it's not safe for target subdirs to share a cache file,
6211# which is disgusting, but there you have it. Hopefully this can be
6212# fixed in future. It's still worthwhile to use a cache file for each
6213# directory. I think.
6214
ae380b45
MS
6215# Pass the appropriate --build, --host, --target and --cache-file arguments.
6216# We need to pass --target, as newer autoconf's requires consistency
6217# for target_alias and gcc doesn't manage it consistently.
4b900473 6218target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6219
a0da8069
NN
6220FLAGS_FOR_TARGET=
6221case " $target_configdirs " in
6222 *" newlib "*)
6223 case " $target_configargs " in
6224 *" --with-newlib "*)
6225 case "$target" in
6226 *-cygwin*)
564b43e5 6227 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
6228 esac
6229
6230 # If we're not building GCC, don't discard standard headers.
6231 if test -d ${srcdir}/gcc; then
6232 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6233
6234 if test "${build}" != "${host}"; then
6235 # On Canadian crosses, CC_FOR_TARGET will have already been set
6236 # by `configure', so we won't have an opportunity to add -Bgcc/
6237 # to it. This is right: we don't want to search that directory
6238 # for binaries, but we want the header files in there, so add
6239 # them explicitly.
b00612cc 6240 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6241
6242 # Someone might think of using the pre-installed headers on
6243 # Canadian crosses, in case the installed compiler is not fully
6244 # compatible with the compiler being built. In this case, it
6245 # would be better to flag an error than risking having
6246 # incompatible object files being constructed. We can't
6247 # guarantee that an error will be flagged, but let's hope the
6248 # compiler will do it, when presented with incompatible header
6249 # files.
6250 fi
6251 fi
6252
6253 case "${target}-${is_cross_compiler}" in
ec11bdc6 6254 i[3456789]86-*-linux*-no)
a0da8069
NN
6255 # Here host == target, so we don't need to build gcc,
6256 # so we don't want to discard standard headers.
6257 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6258 ;;
6259 *)
6260 # If we're building newlib, use its generic headers last, but search
6261 # for any libc-related directories first (so make it the last -B
6262 # switch).
6263 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
6264
6265 # If we're building libgloss, find the startup file, simulator library
6266 # and linker script.
6267 case " $target_configdirs " in
6268 *" libgloss "*)
6269 # Look for startup file, simulator library and maybe linker script.
6270 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6271 # Look for libnosys.a in case the target needs it.
6272 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6273 # Most targets have the linker script in the source directory.
6274 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6275 ;;
6276 esac
a0da8069
NN
6277 ;;
6278 esac
6279 ;;
6280 esac
6281 ;;
6282esac
45055374
CV
6283case "$target" in
6284*-mingw*)
6285 # Can't be handled as Cygwin above since Mingw does not use newlib.
6286 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' ;;
6287esac
a0da8069 6288
5fbad20a
DD
6289# Allow the user to override the flags for
6290# our build compiler if desired.
c66487f8
NC
6291if test x"${build}" = x"${host}" ; then
6292 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6293 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6294 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6295fi
5fbad20a 6296
a0da8069
NN
6297# On Canadian crosses, we'll be searching the right directories for
6298# the previously-installed cross compiler, so don't bother to add
6299# flags for directories within the install tree of the compiler
6300# being built; programs in there won't even run.
6301if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6302 # Search for pre-installed headers if nothing else fits.
bba45b8b 6303 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
6304fi
6305
6306if test "x${use_gnu_ld}" = x &&
6307 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6308 # Arrange for us to find uninstalled linker scripts.
b00612cc 6309 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6310fi
6311
a481dbb7
DD
6312# Search for other target-specific linker scripts and such.
6313case "${target}" in
4e206d7e
DB
6314 mep*)
6315 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6316 ;;
6317esac
6318
a0da8069 6319# Makefile fragments.
3e707e94
PB
6320for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6321do
6322 eval fragval=\$$frag
6323 if test $fragval != /dev/null; then
6324 eval $frag=${srcdir}/$fragval
6325 fi
6326done
a0da8069
NN
6327
6328
6329
6330
6331
6332# Miscellanea: directories, flags, etc.
6333
6334
6335
6336
6337
6338
6339
3bbd2f8f 6340
6a9cf61e 6341# Build module lists & subconfigure args.
a0da8069
NN
6342
6343
6344
be01d343
PB
6345# Host module lists & subconfigure args.
6346
6347
6348
6349# Target module lists & subconfigure args.
6350
6351
6352
6353# Build tools.
6354
6355
6356
1576798e
PB
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
be01d343
PB
6371# Generate default definitions for YACC, M4, LEX and other programs that run
6372# on the build machine. These are used if the Makefile can't locate these
6373# programs in objdir.
6374MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6375
6376for ac_prog in 'bison -y' byacc yacc
6377do
c6b750e1 6378 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6379set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6380echo "$as_me:$LINENO: checking for $ac_word" >&5
6381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6382if test "${ac_cv_prog_YACC+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6384else
6385 if test -n "$YACC"; then
6386 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6387else
c6b750e1
DJ
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_YACC="$ac_prog"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399done
6400done
6401
be01d343
PB
6402fi
6403fi
c6b750e1 6404YACC=$ac_cv_prog_YACC
be01d343 6405if test -n "$YACC"; then
c6b750e1
DJ
6406 echo "$as_me:$LINENO: result: $YACC" >&5
6407echo "${ECHO_T}$YACC" >&6
be01d343 6408else
c6b750e1
DJ
6409 echo "$as_me:$LINENO: result: no" >&5
6410echo "${ECHO_T}no" >&6
be01d343
PB
6411fi
6412
c6b750e1 6413 test -n "$YACC" && break
be01d343
PB
6414done
6415test -n "$YACC" || YACC="$MISSING bison -y"
6416
6417case " $build_configdirs " in
6418 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6419 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6420esac
6421
6422for ac_prog in bison
6423do
c6b750e1 6424 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6425set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6426echo "$as_me:$LINENO: checking for $ac_word" >&5
6427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6428if test "${ac_cv_prog_BISON+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6430else
6431 if test -n "$BISON"; then
6432 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6433else
c6b750e1
DJ
6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_BISON="$ac_prog"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445done
6446done
6447
be01d343
PB
6448fi
6449fi
c6b750e1 6450BISON=$ac_cv_prog_BISON
be01d343 6451if test -n "$BISON"; then
c6b750e1
DJ
6452 echo "$as_me:$LINENO: result: $BISON" >&5
6453echo "${ECHO_T}$BISON" >&6
be01d343 6454else
c6b750e1
DJ
6455 echo "$as_me:$LINENO: result: no" >&5
6456echo "${ECHO_T}no" >&6
be01d343
PB
6457fi
6458
c6b750e1 6459 test -n "$BISON" && break
be01d343
PB
6460done
6461test -n "$BISON" || BISON="$MISSING bison"
6462
6463case " $build_configdirs " in
6464 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6465esac
6466
6467for ac_prog in gm4 gnum4 m4
6468do
c6b750e1 6469 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6470set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6471echo "$as_me:$LINENO: checking for $ac_word" >&5
6472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6473if test "${ac_cv_prog_M4+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6475else
6476 if test -n "$M4"; then
6477 ac_cv_prog_M4="$M4" # Let the user override the test.
6478else
c6b750e1
DJ
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_M4="$ac_prog"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490done
6491done
6492
be01d343
PB
6493fi
6494fi
c6b750e1 6495M4=$ac_cv_prog_M4
be01d343 6496if test -n "$M4"; then
c6b750e1
DJ
6497 echo "$as_me:$LINENO: result: $M4" >&5
6498echo "${ECHO_T}$M4" >&6
be01d343 6499else
c6b750e1
DJ
6500 echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6
be01d343
PB
6502fi
6503
c6b750e1 6504 test -n "$M4" && break
be01d343
PB
6505done
6506test -n "$M4" || M4="$MISSING m4"
6507
6508case " $build_configdirs " in
6509 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6510esac
6511
6512for ac_prog in flex lex
6513do
c6b750e1 6514 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6515set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6516echo "$as_me:$LINENO: checking for $ac_word" >&5
6517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6518if test "${ac_cv_prog_LEX+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6520else
6521 if test -n "$LEX"; then
6522 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6523else
c6b750e1
DJ
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_LEX="$ac_prog"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536done
6537
be01d343
PB
6538fi
6539fi
c6b750e1 6540LEX=$ac_cv_prog_LEX
be01d343 6541if test -n "$LEX"; then
c6b750e1
DJ
6542 echo "$as_me:$LINENO: result: $LEX" >&5
6543echo "${ECHO_T}$LEX" >&6
be01d343 6544else
c6b750e1
DJ
6545 echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
be01d343
PB
6547fi
6548
c6b750e1 6549 test -n "$LEX" && break
be01d343
PB
6550done
6551test -n "$LEX" || LEX="$MISSING flex"
6552
6553case " $build_configdirs " in
6554 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6555 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6556esac
6557
6558for ac_prog in flex
6559do
c6b750e1 6560 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6561set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6562echo "$as_me:$LINENO: checking for $ac_word" >&5
6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564if test "${ac_cv_prog_FLEX+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6566else
6567 if test -n "$FLEX"; then
6568 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6569else
c6b750e1
DJ
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_FLEX="$ac_prog"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582done
6583
be01d343
PB
6584fi
6585fi
c6b750e1 6586FLEX=$ac_cv_prog_FLEX
be01d343 6587if test -n "$FLEX"; then
c6b750e1
DJ
6588 echo "$as_me:$LINENO: result: $FLEX" >&5
6589echo "${ECHO_T}$FLEX" >&6
be01d343 6590else
c6b750e1
DJ
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
be01d343
PB
6593fi
6594
c6b750e1 6595 test -n "$FLEX" && break
be01d343
PB
6596done
6597test -n "$FLEX" || FLEX="$MISSING flex"
6598
6599case " $build_configdirs " in
6600 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6601esac
6602
6603for ac_prog in makeinfo
6604do
c6b750e1 6605 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6606set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6607echo "$as_me:$LINENO: checking for $ac_word" >&5
6608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6609if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6611else
6612 if test -n "$MAKEINFO"; then
6613 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6614else
c6b750e1
DJ
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_MAKEINFO="$ac_prog"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626done
6627done
6628
be01d343
PB
6629fi
6630fi
c6b750e1 6631MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6632if test -n "$MAKEINFO"; then
c6b750e1
DJ
6633 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6634echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6635else
c6b750e1
DJ
6636 echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6
be01d343
PB
6638fi
6639
c6b750e1 6640 test -n "$MAKEINFO" && break
be01d343
PB
6641done
6642test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6643
6644case " $build_configdirs " in
6645 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6646 *)
6647
625a61cd 6648 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6649 # higher, else we use the "missing" dummy.
6650 if ${MAKEINFO} --version \
625a61cd 6651 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6652 :
6653 else
6654 MAKEINFO="$MISSING makeinfo"
6655 fi
6656 ;;
6657
6658esac
a0da8069 6659
be01d343 6660# FIXME: expect and dejagnu may become build tools?
a0da8069 6661
be01d343
PB
6662for ac_prog in expect
6663do
c6b750e1 6664 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6665set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668if test "${ac_cv_prog_EXPECT+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6670else
6671 if test -n "$EXPECT"; then
6672 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6673else
c6b750e1
DJ
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_EXPECT="$ac_prog"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687
be01d343
PB
6688fi
6689fi
c6b750e1 6690EXPECT=$ac_cv_prog_EXPECT
be01d343 6691if test -n "$EXPECT"; then
c6b750e1
DJ
6692 echo "$as_me:$LINENO: result: $EXPECT" >&5
6693echo "${ECHO_T}$EXPECT" >&6
be01d343 6694else
c6b750e1
DJ
6695 echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
be01d343 6697fi
a0da8069 6698
c6b750e1 6699 test -n "$EXPECT" && break
be01d343
PB
6700done
6701test -n "$EXPECT" || EXPECT="expect"
a0da8069 6702
be01d343
PB
6703case " $configdirs " in
6704 *" expect "*)
6705 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6706 ;;
6707esac
a0da8069 6708
be01d343
PB
6709for ac_prog in runtest
6710do
c6b750e1 6711 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6712set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6713echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6715if test "${ac_cv_prog_RUNTEST+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6717else
6718 if test -n "$RUNTEST"; then
6719 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6720else
c6b750e1
DJ
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_RUNTEST="$ac_prog"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733done
6734
be01d343
PB
6735fi
6736fi
c6b750e1 6737RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6738if test -n "$RUNTEST"; then
c6b750e1
DJ
6739 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6740echo "${ECHO_T}$RUNTEST" >&6
be01d343 6741else
c6b750e1
DJ
6742 echo "$as_me:$LINENO: result: no" >&5
6743echo "${ECHO_T}no" >&6
be01d343 6744fi
a0da8069 6745
c6b750e1 6746 test -n "$RUNTEST" && break
be01d343
PB
6747done
6748test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6749
be01d343
PB
6750case " $configdirs " in
6751 *" dejagnu "*)
6b89cc21 6752 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6753 ;;
6754esac
a0da8069
NN
6755
6756
a0da8069 6757# Host tools.
859789af
AC
6758ncn_tool_prefix=
6759test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6760ncn_target_tool_prefix=
6761test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6762
9a819804
AO
6763
6764
6765if test -n "$AR"; then
6766 ac_cv_prog_AR=$AR
6767elif test -n "$ac_cv_prog_AR"; then
6768 AR=$ac_cv_prog_AR
6769fi
6770
6771if test -n "$ac_cv_prog_AR"; then
6772 for ncn_progname in ar; do
6773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6774set dummy ${ncn_progname}; ac_word=$2
6775echo "$as_me:$LINENO: checking for $ac_word" >&5
6776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6777if test "${ac_cv_prog_AR+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780 if test -n "$AR"; then
6781 ac_cv_prog_AR="$AR" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_AR="${ncn_progname}"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794done
6795done
6796
6797fi
6798fi
6799AR=$ac_cv_prog_AR
6800if test -n "$AR"; then
6801 echo "$as_me:$LINENO: result: $AR" >&5
6802echo "${ECHO_T}$AR" >&6
6803else
6804 echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6
6806fi
6807
6808 done
6809fi
6810
6811for ncn_progname in ar; do
05cbd757
PB
6812 if test -n "$ncn_tool_prefix"; then
6813 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6814set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6815echo "$as_me:$LINENO: checking for $ac_word" >&5
6816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6817if test "${ac_cv_prog_AR+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6819else
6820 if test -n "$AR"; then
6821 ac_cv_prog_AR="$AR" # Let the user override the test.
6822else
c6b750e1
DJ
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834done
6835done
6836
859789af
AC
6837fi
6838fi
c6b750e1 6839AR=$ac_cv_prog_AR
859789af 6840if test -n "$AR"; then
c6b750e1
DJ
6841 echo "$as_me:$LINENO: result: $AR" >&5
6842echo "${ECHO_T}$AR" >&6
859789af 6843else
c6b750e1
DJ
6844 echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6
859789af
AC
6846fi
6847
05cbd757
PB
6848 fi
6849 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6851set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6852echo "$as_me:$LINENO: checking for $ac_word" >&5
6853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6854if test "${ac_cv_prog_AR+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6856else
05cbd757
PB
6857 if test -n "$AR"; then
6858 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6859else
c6b750e1
DJ
6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_AR="${ncn_progname}"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871done
6872done
6873
859789af
AC
6874fi
6875fi
c6b750e1 6876AR=$ac_cv_prog_AR
05cbd757 6877if test -n "$AR"; then
c6b750e1
DJ
6878 echo "$as_me:$LINENO: result: $AR" >&5
6879echo "${ECHO_T}$AR" >&6
859789af 6880else
c6b750e1
DJ
6881 echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6
859789af 6883fi
c6b750e1 6884
05cbd757
PB
6885 fi
6886 test -n "$ac_cv_prog_AR" && break
6887done
6888
6889if test -z "$ac_cv_prog_AR" ; then
6890 set dummy ar
6891 if test $build = $host ; then
6892 AR="$2"
859789af 6893 else
05cbd757 6894 AR="${ncn_tool_prefix}$2"
859789af 6895 fi
859789af
AC
6896fi
6897
9a819804
AO
6898
6899
6900if test -n "$AS"; then
6901 ac_cv_prog_AS=$AS
6902elif test -n "$ac_cv_prog_AS"; then
6903 AS=$ac_cv_prog_AS
6904fi
6905
6906if test -n "$ac_cv_prog_AS"; then
6907 for ncn_progname in as; do
6908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6909set dummy ${ncn_progname}; ac_word=$2
6910echo "$as_me:$LINENO: checking for $ac_word" >&5
6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6912if test "${ac_cv_prog_AS+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914else
6915 if test -n "$AS"; then
6916 ac_cv_prog_AS="$AS" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_AS="${ncn_progname}"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929done
6930done
6931
6932fi
6933fi
6934AS=$ac_cv_prog_AS
6935if test -n "$AS"; then
6936 echo "$as_me:$LINENO: result: $AS" >&5
6937echo "${ECHO_T}$AS" >&6
6938else
6939 echo "$as_me:$LINENO: result: no" >&5
6940echo "${ECHO_T}no" >&6
6941fi
6942
6943 done
6944fi
6945
6946for ncn_progname in as; do
05cbd757
PB
6947 if test -n "$ncn_tool_prefix"; then
6948 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6949set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6950echo "$as_me:$LINENO: checking for $ac_word" >&5
6951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6952if test "${ac_cv_prog_AS+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6954else
6955 if test -n "$AS"; then
6956 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970done
6971
859789af
AC
6972fi
6973fi
c6b750e1 6974AS=$ac_cv_prog_AS
859789af 6975if test -n "$AS"; then
c6b750e1
DJ
6976 echo "$as_me:$LINENO: result: $AS" >&5
6977echo "${ECHO_T}$AS" >&6
859789af 6978else
c6b750e1
DJ
6979 echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
859789af
AC
6981fi
6982
05cbd757
PB
6983 fi
6984 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6986set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6987echo "$as_me:$LINENO: checking for $ac_word" >&5
6988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6989if test "${ac_cv_prog_AS+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6991else
05cbd757
PB
6992 if test -n "$AS"; then
6993 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6994else
c6b750e1
DJ
6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_AS="${ncn_progname}"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006done
7007done
7008
859789af
AC
7009fi
7010fi
c6b750e1 7011AS=$ac_cv_prog_AS
05cbd757 7012if test -n "$AS"; then
c6b750e1
DJ
7013 echo "$as_me:$LINENO: result: $AS" >&5
7014echo "${ECHO_T}$AS" >&6
859789af 7015else
c6b750e1
DJ
7016 echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6
859789af 7018fi
c6b750e1 7019
05cbd757
PB
7020 fi
7021 test -n "$ac_cv_prog_AS" && break
7022done
7023
7024if test -z "$ac_cv_prog_AS" ; then
7025 set dummy as
7026 if test $build = $host ; then
7027 AS="$2"
859789af 7028 else
05cbd757 7029 AS="${ncn_tool_prefix}$2"
859789af 7030 fi
859789af
AC
7031fi
7032
9a819804
AO
7033
7034
7035if test -n "$DLLTOOL"; then
7036 ac_cv_prog_DLLTOOL=$DLLTOOL
7037elif test -n "$ac_cv_prog_DLLTOOL"; then
7038 DLLTOOL=$ac_cv_prog_DLLTOOL
7039fi
7040
7041if test -n "$ac_cv_prog_DLLTOOL"; then
7042 for ncn_progname in dlltool; do
7043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7044set dummy ${ncn_progname}; ac_word=$2
7045echo "$as_me:$LINENO: checking for $ac_word" >&5
7046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7047if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050 if test -n "$DLLTOOL"; then
7051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_DLLTOOL="${ncn_progname}"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065done
7066
7067fi
7068fi
7069DLLTOOL=$ac_cv_prog_DLLTOOL
7070if test -n "$DLLTOOL"; then
7071 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7072echo "${ECHO_T}$DLLTOOL" >&6
7073else
7074 echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6
7076fi
7077
7078 done
7079fi
7080
7081for ncn_progname in dlltool; do
05cbd757
PB
7082 if test -n "$ncn_tool_prefix"; then
7083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7084set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7085echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7087if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7089else
7090 if test -n "$DLLTOOL"; then
7091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7092else
c6b750e1
DJ
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104done
7105done
7106
859789af
AC
7107fi
7108fi
c6b750e1 7109DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7110if test -n "$DLLTOOL"; then
c6b750e1
DJ
7111 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7112echo "${ECHO_T}$DLLTOOL" >&6
859789af 7113else
c6b750e1
DJ
7114 echo "$as_me:$LINENO: result: no" >&5
7115echo "${ECHO_T}no" >&6
859789af
AC
7116fi
7117
05cbd757
PB
7118 fi
7119 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7121set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7122echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7124if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7126else
05cbd757
PB
7127 if test -n "$DLLTOOL"; then
7128 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7129else
c6b750e1
DJ
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_DLLTOOL="${ncn_progname}"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141done
7142done
7143
859789af
AC
7144fi
7145fi
c6b750e1 7146DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7147if test -n "$DLLTOOL"; then
c6b750e1
DJ
7148 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7149echo "${ECHO_T}$DLLTOOL" >&6
859789af 7150else
c6b750e1
DJ
7151 echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6
859789af 7153fi
c6b750e1 7154
05cbd757
PB
7155 fi
7156 test -n "$ac_cv_prog_DLLTOOL" && break
7157done
7158
7159if test -z "$ac_cv_prog_DLLTOOL" ; then
7160 set dummy dlltool
7161 if test $build = $host ; then
7162 DLLTOOL="$2"
859789af 7163 else
05cbd757 7164 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7165 fi
859789af
AC
7166fi
7167
9a819804
AO
7168
7169
7170if test -n "$LD"; then
7171 ac_cv_prog_LD=$LD
7172elif test -n "$ac_cv_prog_LD"; then
7173 LD=$ac_cv_prog_LD
7174fi
7175
7176if test -n "$ac_cv_prog_LD"; then
7177 for ncn_progname in ld; do
7178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7179set dummy ${ncn_progname}; ac_word=$2
7180echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182if test "${ac_cv_prog_LD+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185 if test -n "$LD"; then
7186 ac_cv_prog_LD="$LD" # Let the user override the test.
7187else
7188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_LD="${ncn_progname}"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199done
7200done
7201
7202fi
7203fi
7204LD=$ac_cv_prog_LD
7205if test -n "$LD"; then
7206 echo "$as_me:$LINENO: result: $LD" >&5
7207echo "${ECHO_T}$LD" >&6
7208else
7209 echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6
7211fi
7212
7213 done
7214fi
7215
7216for ncn_progname in ld; do
05cbd757
PB
7217 if test -n "$ncn_tool_prefix"; then
7218 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7219set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7220echo "$as_me:$LINENO: checking for $ac_word" >&5
7221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7222if test "${ac_cv_prog_LD+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7224else
7225 if test -n "$LD"; then
7226 ac_cv_prog_LD="$LD" # Let the user override the test.
7227else
c6b750e1
DJ
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240done
7241
859789af
AC
7242fi
7243fi
c6b750e1 7244LD=$ac_cv_prog_LD
859789af 7245if test -n "$LD"; then
c6b750e1
DJ
7246 echo "$as_me:$LINENO: result: $LD" >&5
7247echo "${ECHO_T}$LD" >&6
859789af 7248else
c6b750e1
DJ
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
859789af
AC
7251fi
7252
05cbd757
PB
7253 fi
7254 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7256set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7257echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259if test "${ac_cv_prog_LD+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7261else
05cbd757
PB
7262 if test -n "$LD"; then
7263 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7264else
c6b750e1
DJ
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_LD="${ncn_progname}"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276done
7277done
7278
859789af
AC
7279fi
7280fi
c6b750e1 7281LD=$ac_cv_prog_LD
05cbd757 7282if test -n "$LD"; then
c6b750e1
DJ
7283 echo "$as_me:$LINENO: result: $LD" >&5
7284echo "${ECHO_T}$LD" >&6
859789af 7285else
c6b750e1
DJ
7286 echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
859789af 7288fi
c6b750e1 7289
05cbd757
PB
7290 fi
7291 test -n "$ac_cv_prog_LD" && break
7292done
7293
7294if test -z "$ac_cv_prog_LD" ; then
7295 set dummy ld
7296 if test $build = $host ; then
7297 LD="$2"
859789af 7298 else
05cbd757 7299 LD="${ncn_tool_prefix}$2"
859789af 7300 fi
859789af
AC
7301fi
7302
9a819804
AO
7303
7304
7305if test -n "$LIPO"; then
7306 ac_cv_prog_LIPO=$LIPO
7307elif test -n "$ac_cv_prog_LIPO"; then
7308 LIPO=$ac_cv_prog_LIPO
7309fi
7310
7311if test -n "$ac_cv_prog_LIPO"; then
7312 for ncn_progname in lipo; do
7313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7314set dummy ${ncn_progname}; ac_word=$2
7315echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317if test "${ac_cv_prog_LIPO+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 if test -n "$LIPO"; then
7321 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_LIPO="${ncn_progname}"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334done
7335done
7336
7337fi
7338fi
7339LIPO=$ac_cv_prog_LIPO
7340if test -n "$LIPO"; then
7341 echo "$as_me:$LINENO: result: $LIPO" >&5
7342echo "${ECHO_T}$LIPO" >&6
7343else
7344 echo "$as_me:$LINENO: result: no" >&5
7345echo "${ECHO_T}no" >&6
7346fi
7347
7348 done
7349fi
7350
7351for ncn_progname in lipo; do
be01d343
PB
7352 if test -n "$ncn_tool_prefix"; then
7353 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7354set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7355echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357if test "${ac_cv_prog_LIPO+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7359else
7360 if test -n "$LIPO"; then
7361 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7362else
c6b750e1
DJ
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375done
7376
be01d343
PB
7377fi
7378fi
c6b750e1 7379LIPO=$ac_cv_prog_LIPO
be01d343 7380if test -n "$LIPO"; then
c6b750e1
DJ
7381 echo "$as_me:$LINENO: result: $LIPO" >&5
7382echo "${ECHO_T}$LIPO" >&6
be01d343 7383else
c6b750e1
DJ
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
be01d343
PB
7386fi
7387
7388 fi
7389 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7391set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7392echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7394if test "${ac_cv_prog_LIPO+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7396else
7397 if test -n "$LIPO"; then
7398 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7399else
c6b750e1
DJ
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_LIPO="${ncn_progname}"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411done
7412done
7413
be01d343
PB
7414fi
7415fi
c6b750e1 7416LIPO=$ac_cv_prog_LIPO
be01d343 7417if test -n "$LIPO"; then
c6b750e1
DJ
7418 echo "$as_me:$LINENO: result: $LIPO" >&5
7419echo "${ECHO_T}$LIPO" >&6
be01d343 7420else
c6b750e1
DJ
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
be01d343 7423fi
c6b750e1 7424
be01d343
PB
7425 fi
7426 test -n "$ac_cv_prog_LIPO" && break
7427done
7428
7429if test -z "$ac_cv_prog_LIPO" ; then
7430 set dummy lipo
7431 if test $build = $host ; then
7432 LIPO="$2"
7433 else
7434 LIPO="${ncn_tool_prefix}$2"
7435 fi
7436fi
7437
9a819804
AO
7438
7439
7440if test -n "$NM"; then
7441 ac_cv_prog_NM=$NM
7442elif test -n "$ac_cv_prog_NM"; then
7443 NM=$ac_cv_prog_NM
7444fi
7445
7446if test -n "$ac_cv_prog_NM"; then
7447 for ncn_progname in nm; do
7448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7449set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7450echo "$as_me:$LINENO: checking for $ac_word" >&5
7451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7452if test "${ac_cv_prog_NM+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7454else
7455 if test -n "$NM"; then
7456 ac_cv_prog_NM="$NM" # Let the user override the test.
7457else
c6b750e1
DJ
7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7465 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469done
7470done
7471
859789af
AC
7472fi
7473fi
c6b750e1 7474NM=$ac_cv_prog_NM
859789af 7475if test -n "$NM"; then
c6b750e1
DJ
7476 echo "$as_me:$LINENO: result: $NM" >&5
7477echo "${ECHO_T}$NM" >&6
859789af 7478else
c6b750e1
DJ
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
859789af
AC
7481fi
7482
9a819804
AO
7483 done
7484fi
7485
7486for ncn_progname in nm; do
7487 if test -n "$ncn_tool_prefix"; then
7488 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7489set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7490echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7492if test "${ac_cv_prog_NM+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7494else
05cbd757
PB
7495 if test -n "$NM"; then
7496 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7497else
c6b750e1
DJ
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7505 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511
859789af
AC
7512fi
7513fi
c6b750e1 7514NM=$ac_cv_prog_NM
05cbd757 7515if test -n "$NM"; then
c6b750e1
DJ
7516 echo "$as_me:$LINENO: result: $NM" >&5
7517echo "${ECHO_T}$NM" >&6
859789af 7518else
c6b750e1
DJ
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
859789af 7521fi
c6b750e1 7522
05cbd757 7523 fi
9a819804
AO
7524 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7526set dummy ${ncn_progname}; ac_word=$2
7527echo "$as_me:$LINENO: checking for $ac_word" >&5
7528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7529if test "${ac_cv_prog_NM+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 if test -n "$NM"; then
7533 ac_cv_prog_NM="$NM" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_NM="${ncn_progname}"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548
7549fi
7550fi
7551NM=$ac_cv_prog_NM
7552if test -n "$NM"; then
7553 echo "$as_me:$LINENO: result: $NM" >&5
7554echo "${ECHO_T}$NM" >&6
7555else
7556 echo "$as_me:$LINENO: result: no" >&5
7557echo "${ECHO_T}no" >&6
7558fi
7559
7560 fi
7561 test -n "$ac_cv_prog_NM" && break
7562done
7563
7564if test -z "$ac_cv_prog_NM" ; then
7565 set dummy nm
7566 if test $build = $host ; then
7567 NM="$2"
7568 else
7569 NM="${ncn_tool_prefix}$2"
7570 fi
7571fi
7572
7573
7574
7575if test -n "$RANLIB"; then
7576 ac_cv_prog_RANLIB=$RANLIB
7577elif test -n "$ac_cv_prog_RANLIB"; then
7578 RANLIB=$ac_cv_prog_RANLIB
7579fi
7580
7581if test -n "$ac_cv_prog_RANLIB"; then
7582 for ncn_progname in ranlib; do
7583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7584set dummy ${ncn_progname}; ac_word=$2
7585echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7587if test "${ac_cv_prog_RANLIB+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7589else
7590 if test -n "$RANLIB"; then
7591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_RANLIB="${ncn_progname}"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605done
7606
7607fi
7608fi
7609RANLIB=$ac_cv_prog_RANLIB
7610if test -n "$RANLIB"; then
7611 echo "$as_me:$LINENO: result: $RANLIB" >&5
7612echo "${ECHO_T}$RANLIB" >&6
7613else
7614 echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6
7616fi
7617
7618 done
7619fi
859789af 7620
9a819804 7621for ncn_progname in ranlib; do
05cbd757
PB
7622 if test -n "$ncn_tool_prefix"; then
7623 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7624set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7625echo "$as_me:$LINENO: checking for $ac_word" >&5
7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7627if test "${ac_cv_prog_RANLIB+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7629else
7630 if test -n "$RANLIB"; then
7631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7632else
c6b750e1
DJ
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644done
7645done
7646
859789af
AC
7647fi
7648fi
c6b750e1 7649RANLIB=$ac_cv_prog_RANLIB
859789af 7650if test -n "$RANLIB"; then
c6b750e1
DJ
7651 echo "$as_me:$LINENO: result: $RANLIB" >&5
7652echo "${ECHO_T}$RANLIB" >&6
859789af 7653else
c6b750e1
DJ
7654 echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6
859789af
AC
7656fi
7657
05cbd757
PB
7658 fi
7659 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7661set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7662echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664if test "${ac_cv_prog_RANLIB+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7666else
05cbd757
PB
7667 if test -n "$RANLIB"; then
7668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7669else
c6b750e1
DJ
7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_RANLIB="${ncn_progname}"
7678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7680 fi
7681done
7682done
7683
859789af
AC
7684fi
7685fi
c6b750e1 7686RANLIB=$ac_cv_prog_RANLIB
05cbd757 7687if test -n "$RANLIB"; then
c6b750e1
DJ
7688 echo "$as_me:$LINENO: result: $RANLIB" >&5
7689echo "${ECHO_T}$RANLIB" >&6
859789af 7690else
c6b750e1
DJ
7691 echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
859789af 7693fi
c6b750e1 7694
859789af 7695 fi
05cbd757
PB
7696 test -n "$ac_cv_prog_RANLIB" && break
7697done
7698
7699if test -z "$ac_cv_prog_RANLIB" ; then
7700 RANLIB=":"
859789af
AC
7701fi
7702
9a819804
AO
7703
7704
7705if test -n "$STRIP"; then
7706 ac_cv_prog_STRIP=$STRIP
7707elif test -n "$ac_cv_prog_STRIP"; then
7708 STRIP=$ac_cv_prog_STRIP
7709fi
7710
7711if test -n "$ac_cv_prog_STRIP"; then
7712 for ncn_progname in strip; do
7713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7714set dummy ${ncn_progname}; ac_word=$2
7715echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717if test "${ac_cv_prog_STRIP+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 if test -n "$STRIP"; then
7721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_STRIP="${ncn_progname}"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734done
7735done
7736
7737fi
7738fi
7739STRIP=$ac_cv_prog_STRIP
7740if test -n "$STRIP"; then
7741 echo "$as_me:$LINENO: result: $STRIP" >&5
7742echo "${ECHO_T}$STRIP" >&6
7743else
7744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746fi
7747
7748 done
7749fi
7750
7751for ncn_progname in strip; do
be01d343
PB
7752 if test -n "$ncn_tool_prefix"; then
7753 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7754set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7755echo "$as_me:$LINENO: checking for $ac_word" >&5
7756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7757if test "${ac_cv_prog_STRIP+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7759else
7760 if test -n "$STRIP"; then
7761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7762else
c6b750e1
DJ
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7773 fi
7774done
7775done
7776
be01d343
PB
7777fi
7778fi
c6b750e1 7779STRIP=$ac_cv_prog_STRIP
be01d343 7780if test -n "$STRIP"; then
c6b750e1
DJ
7781 echo "$as_me:$LINENO: result: $STRIP" >&5
7782echo "${ECHO_T}$STRIP" >&6
be01d343 7783else
c6b750e1
DJ
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
be01d343
PB
7786fi
7787
7788 fi
7789 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7791set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7792echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794if test "${ac_cv_prog_STRIP+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7796else
7797 if test -n "$STRIP"; then
7798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7799else
c6b750e1
DJ
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_STRIP="${ncn_progname}"
7808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811done
7812done
7813
be01d343
PB
7814fi
7815fi
c6b750e1 7816STRIP=$ac_cv_prog_STRIP
be01d343 7817if test -n "$STRIP"; then
c6b750e1
DJ
7818 echo "$as_me:$LINENO: result: $STRIP" >&5
7819echo "${ECHO_T}$STRIP" >&6
be01d343 7820else
c6b750e1
DJ
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
be01d343 7823fi
c6b750e1 7824
be01d343
PB
7825 fi
7826 test -n "$ac_cv_prog_STRIP" && break
7827done
7828
7829if test -z "$ac_cv_prog_STRIP" ; then
7830 STRIP=":"
7831fi
7832
9a819804
AO
7833
7834
7835if test -n "$WINDRES"; then
7836 ac_cv_prog_WINDRES=$WINDRES
7837elif test -n "$ac_cv_prog_WINDRES"; then
7838 WINDRES=$ac_cv_prog_WINDRES
7839fi
7840
7841if test -n "$ac_cv_prog_WINDRES"; then
7842 for ncn_progname in windres; do
7843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7844set dummy ${ncn_progname}; ac_word=$2
7845echo "$as_me:$LINENO: checking for $ac_word" >&5
7846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7847if test "${ac_cv_prog_WINDRES+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850 if test -n "$WINDRES"; then
7851 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_WINDRES="${ncn_progname}"
7861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865done
7866
7867fi
7868fi
7869WINDRES=$ac_cv_prog_WINDRES
7870if test -n "$WINDRES"; then
7871 echo "$as_me:$LINENO: result: $WINDRES" >&5
7872echo "${ECHO_T}$WINDRES" >&6
7873else
7874 echo "$as_me:$LINENO: result: no" >&5
7875echo "${ECHO_T}no" >&6
7876fi
7877
7878 done
7879fi
7880
7881for ncn_progname in windres; do
05cbd757
PB
7882 if test -n "$ncn_tool_prefix"; then
7883 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7884set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7885echo "$as_me:$LINENO: checking for $ac_word" >&5
7886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7887if test "${ac_cv_prog_WINDRES+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7889else
7890 if test -n "$WINDRES"; then
7891 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7892else
c6b750e1
DJ
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904done
7905done
7906
859789af
AC
7907fi
7908fi
c6b750e1 7909WINDRES=$ac_cv_prog_WINDRES
859789af 7910if test -n "$WINDRES"; then
c6b750e1
DJ
7911 echo "$as_me:$LINENO: result: $WINDRES" >&5
7912echo "${ECHO_T}$WINDRES" >&6
859789af 7913else
c6b750e1
DJ
7914 echo "$as_me:$LINENO: result: no" >&5
7915echo "${ECHO_T}no" >&6
859789af
AC
7916fi
7917
05cbd757
PB
7918 fi
7919 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7921set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7922echo "$as_me:$LINENO: checking for $ac_word" >&5
7923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7924if test "${ac_cv_prog_WINDRES+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7926else
05cbd757
PB
7927 if test -n "$WINDRES"; then
7928 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7929else
c6b750e1
DJ
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_WINDRES="${ncn_progname}"
7938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941done
7942done
7943
859789af
AC
7944fi
7945fi
c6b750e1 7946WINDRES=$ac_cv_prog_WINDRES
05cbd757 7947if test -n "$WINDRES"; then
c6b750e1
DJ
7948 echo "$as_me:$LINENO: result: $WINDRES" >&5
7949echo "${ECHO_T}$WINDRES" >&6
859789af 7950else
c6b750e1
DJ
7951 echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6
859789af 7953fi
c6b750e1 7954
05cbd757
PB
7955 fi
7956 test -n "$ac_cv_prog_WINDRES" && break
7957done
7958
7959if test -z "$ac_cv_prog_WINDRES" ; then
7960 set dummy windres
7961 if test $build = $host ; then
7962 WINDRES="$2"
859789af 7963 else
05cbd757 7964 WINDRES="${ncn_tool_prefix}$2"
859789af 7965 fi
859789af
AC
7966fi
7967
9a819804
AO
7968
7969
0c24b341
NC
7970if test -n "$WINDMC"; then
7971 ac_cv_prog_WINDMC=$WINDMC
7972elif test -n "$ac_cv_prog_WINDMC"; then
7973 WINDMC=$ac_cv_prog_WINDMC
7974fi
7975
7976if test -n "$ac_cv_prog_WINDMC"; then
7977 for ncn_progname in windmc; do
7978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7979set dummy ${ncn_progname}; ac_word=$2
7980echo "$as_me:$LINENO: checking for $ac_word" >&5
7981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7982if test "${ac_cv_prog_WINDMC+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984else
7985 if test -n "$WINDMC"; then
7986 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7987else
7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_WINDMC="${ncn_progname}"
7996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999done
8000done
8001
8002fi
8003fi
8004WINDMC=$ac_cv_prog_WINDMC
8005if test -n "$WINDMC"; then
8006 echo "$as_me:$LINENO: result: $WINDMC" >&5
8007echo "${ECHO_T}$WINDMC" >&6
8008else
8009 echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6
8011fi
8012
8013 done
8014fi
8015
8016for ncn_progname in windmc; do
8017 if test -n "$ncn_tool_prefix"; then
8018 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8019set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8020echo "$as_me:$LINENO: checking for $ac_word" >&5
8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8022if test "${ac_cv_prog_WINDMC+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025 if test -n "$WINDMC"; then
8026 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8027else
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039done
8040done
8041
8042fi
8043fi
8044WINDMC=$ac_cv_prog_WINDMC
8045if test -n "$WINDMC"; then
8046 echo "$as_me:$LINENO: result: $WINDMC" >&5
8047echo "${ECHO_T}$WINDMC" >&6
8048else
8049 echo "$as_me:$LINENO: result: no" >&5
8050echo "${ECHO_T}no" >&6
8051fi
8052
8053 fi
8054 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8056set dummy ${ncn_progname}; ac_word=$2
8057echo "$as_me:$LINENO: checking for $ac_word" >&5
8058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8059if test "${ac_cv_prog_WINDMC+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062 if test -n "$WINDMC"; then
8063 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072 ac_cv_prog_WINDMC="${ncn_progname}"
8073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 break 2
8075 fi
8076done
8077done
8078
8079fi
8080fi
8081WINDMC=$ac_cv_prog_WINDMC
8082if test -n "$WINDMC"; then
8083 echo "$as_me:$LINENO: result: $WINDMC" >&5
8084echo "${ECHO_T}$WINDMC" >&6
8085else
8086 echo "$as_me:$LINENO: result: no" >&5
8087echo "${ECHO_T}no" >&6
8088fi
8089
8090 fi
8091 test -n "$ac_cv_prog_WINDMC" && break
8092done
8093
8094if test -z "$ac_cv_prog_WINDMC" ; then
8095 set dummy windmc
8096 if test $build = $host ; then
8097 WINDMC="$2"
8098 else
8099 WINDMC="${ncn_tool_prefix}$2"
8100 fi
8101fi
8102
8103
8104
9a819804
AO
8105if test -n "$OBJCOPY"; then
8106 ac_cv_prog_OBJCOPY=$OBJCOPY
8107elif test -n "$ac_cv_prog_OBJCOPY"; then
8108 OBJCOPY=$ac_cv_prog_OBJCOPY
8109fi
8110
8111if test -n "$ac_cv_prog_OBJCOPY"; then
8112 for ncn_progname in objcopy; do
8113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8114set dummy ${ncn_progname}; ac_word=$2
8115echo "$as_me:$LINENO: checking for $ac_word" >&5
8116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8117if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 if test -n "$OBJCOPY"; then
8121 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_OBJCOPY="${ncn_progname}"
8131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134done
8135done
8136
8137fi
8138fi
8139OBJCOPY=$ac_cv_prog_OBJCOPY
8140if test -n "$OBJCOPY"; then
8141 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8142echo "${ECHO_T}$OBJCOPY" >&6
8143else
8144 echo "$as_me:$LINENO: result: no" >&5
8145echo "${ECHO_T}no" >&6
8146fi
8147
8148 done
8149fi
8150
8151for ncn_progname in objcopy; do
05cbd757
PB
8152 if test -n "$ncn_tool_prefix"; then
8153 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8154set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8155echo "$as_me:$LINENO: checking for $ac_word" >&5
8156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8157if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8159else
8160 if test -n "$OBJCOPY"; then
8161 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8162else
c6b750e1
DJ
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174done
8175done
8176
859789af
AC
8177fi
8178fi
c6b750e1 8179OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8180if test -n "$OBJCOPY"; then
c6b750e1
DJ
8181 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8182echo "${ECHO_T}$OBJCOPY" >&6
859789af 8183else
c6b750e1
DJ
8184 echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6
859789af
AC
8186fi
8187
05cbd757
PB
8188 fi
8189 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8192echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8196else
05cbd757
PB
8197 if test -n "$OBJCOPY"; then
8198 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8199else
c6b750e1
DJ
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_OBJCOPY="${ncn_progname}"
8208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211done
8212done
8213
859789af
AC
8214fi
8215fi
c6b750e1 8216OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8217if test -n "$OBJCOPY"; then
c6b750e1
DJ
8218 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8219echo "${ECHO_T}$OBJCOPY" >&6
859789af 8220else
c6b750e1
DJ
8221 echo "$as_me:$LINENO: result: no" >&5
8222echo "${ECHO_T}no" >&6
859789af 8223fi
c6b750e1 8224
05cbd757
PB
8225 fi
8226 test -n "$ac_cv_prog_OBJCOPY" && break
8227done
8228
8229if test -z "$ac_cv_prog_OBJCOPY" ; then
8230 set dummy objcopy
8231 if test $build = $host ; then
8232 OBJCOPY="$2"
859789af 8233 else
05cbd757 8234 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8235 fi
859789af
AC
8236fi
8237
9a819804
AO
8238
8239
8240if test -n "$OBJDUMP"; then
8241 ac_cv_prog_OBJDUMP=$OBJDUMP
8242elif test -n "$ac_cv_prog_OBJDUMP"; then
8243 OBJDUMP=$ac_cv_prog_OBJDUMP
8244fi
8245
8246if test -n "$ac_cv_prog_OBJDUMP"; then
8247 for ncn_progname in objdump; do
8248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8249set dummy ${ncn_progname}; ac_word=$2
8250echo "$as_me:$LINENO: checking for $ac_word" >&5
8251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8252if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254else
8255 if test -n "$OBJDUMP"; then
8256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8257else
8258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259for as_dir in $PATH
8260do
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265 ac_cv_prog_OBJDUMP="${ncn_progname}"
8266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 break 2
8268 fi
8269done
8270done
8271
8272fi
8273fi
8274OBJDUMP=$ac_cv_prog_OBJDUMP
8275if test -n "$OBJDUMP"; then
8276 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8277echo "${ECHO_T}$OBJDUMP" >&6
8278else
8279 echo "$as_me:$LINENO: result: no" >&5
8280echo "${ECHO_T}no" >&6
8281fi
8282
8283 done
8284fi
8285
8286for ncn_progname in objdump; do
05cbd757
PB
8287 if test -n "$ncn_tool_prefix"; then
8288 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8289set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8290echo "$as_me:$LINENO: checking for $ac_word" >&5
8291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8292if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8294else
8295 if test -n "$OBJDUMP"; then
8296 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8297else
c6b750e1
DJ
8298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8308 fi
8309done
8310done
8311
859789af
AC
8312fi
8313fi
c6b750e1 8314OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8315if test -n "$OBJDUMP"; then
c6b750e1
DJ
8316 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8317echo "${ECHO_T}$OBJDUMP" >&6
859789af 8318else
c6b750e1
DJ
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
859789af
AC
8321fi
8322
05cbd757
PB
8323 fi
8324 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8326set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8327echo "$as_me:$LINENO: checking for $ac_word" >&5
8328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8329if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8331else
05cbd757
PB
8332 if test -n "$OBJDUMP"; then
8333 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8334else
c6b750e1
DJ
8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_OBJDUMP="${ncn_progname}"
8343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346done
8347done
8348
859789af
AC
8349fi
8350fi
c6b750e1 8351OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8352if test -n "$OBJDUMP"; then
c6b750e1
DJ
8353 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8354echo "${ECHO_T}$OBJDUMP" >&6
859789af 8355else
c6b750e1
DJ
8356 echo "$as_me:$LINENO: result: no" >&5
8357echo "${ECHO_T}no" >&6
859789af 8358fi
c6b750e1 8359
05cbd757
PB
8360 fi
8361 test -n "$ac_cv_prog_OBJDUMP" && break
8362done
8363
8364if test -z "$ac_cv_prog_OBJDUMP" ; then
8365 set dummy objdump
8366 if test $build = $host ; then
8367 OBJDUMP="$2"
859789af 8368 else
05cbd757 8369 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8370 fi
859789af
AC
8371fi
8372
a0da8069
NN
8373
8374
8375
8376
8377
be01d343 8378# Target tools.
c6b750e1 8379
2429c060
PB
8380# Check whether --with-build-time-tools or --without-build-time-tools was given.
8381if test "${with_build_time_tools+set}" = set; then
8382 withval="$with_build_time_tools"
8383 case x"$withval" in
8384 x/*) ;;
8385 *)
8386 with_build_time_tools=
c6b750e1
DJ
8387 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8388echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8389 ;;
8390 esac
859789af 8391else
2429c060 8392 with_build_time_tools=
c6b750e1 8393fi;
859789af 8394
9a819804
AO
8395
8396
8397if test -n "$CC_FOR_TARGET"; then
8398 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8399elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8400 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8401fi
8402
8403if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8404 for ncn_progname in cc gcc; do
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
8407echo "$as_me:$LINENO: checking for $ac_word" >&5
8408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8409if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 if test -n "$CC_FOR_TARGET"; then
8413 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426done
8427done
8428
8429fi
8430fi
8431CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8432if test -n "$CC_FOR_TARGET"; then
8433 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8434echo "${ECHO_T}$CC_FOR_TARGET" >&6
8435else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438fi
8439
8440 done
8441fi
8442
8443if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8444 for ncn_progname in cc gcc; do
c6b750e1
DJ
8445 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8446echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8447 if test -x $with_build_time_tools/${ncn_progname}; then
8448 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
cac3d6c4 8451 break
2429c060 8452 else
c6b750e1
DJ
8453 echo "$as_me:$LINENO: result: no" >&5
8454echo "${ECHO_T}no" >&6
cac3d6c4
CM
8455 fi
8456 done
55db4b87
PB
8457fi
8458
2429c060
PB
8459if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8460 for ncn_progname in cc gcc; do
8461 if test -n "$ncn_target_tool_prefix"; then
8462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8463set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8464echo "$as_me:$LINENO: checking for $ac_word" >&5
8465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8466if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8468else
8469 if test -n "$CC_FOR_TARGET"; then
8470 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8471else
c6b750e1
DJ
8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473for as_dir in $PATH
8474do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483done
8484done
8485
55db4b87
PB
8486fi
8487fi
c6b750e1 8488CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8489if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8490 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8491echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8492else
c6b750e1
DJ
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
55db4b87
PB
8495fi
8496
2429c060
PB
8497 fi
8498 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8500set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8501echo "$as_me:$LINENO: checking for $ac_word" >&5
8502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8503if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8505else
05cbd757
PB
8506 if test -n "$CC_FOR_TARGET"; then
8507 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8508else
c6b750e1
DJ
8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520done
8521done
8522
55db4b87
PB
8523fi
8524fi
c6b750e1 8525CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8526if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8527 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8528echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8529else
c6b750e1
DJ
8530 echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6
55db4b87 8532fi
c6b750e1 8533
2429c060
PB
8534 fi
8535 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8536 done
8537fi
c6b750e1 8538
05cbd757
PB
8539if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8540 set dummy cc gcc
8541 if test $build = $target ; then
8542 CC_FOR_TARGET="$2"
55db4b87 8543 else
05cbd757 8544 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8545 fi
d3f5afc4
MS
8546else
8547 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8548fi
8549
9a819804
AO
8550
8551
8552if test -n "$CXX_FOR_TARGET"; then
8553 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8554elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8555 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8556fi
8557
8558if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8559 for ncn_progname in c++ g++ cxx gxx; do
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8561set dummy ${ncn_progname}; ac_word=$2
8562echo "$as_me:$LINENO: checking for $ac_word" >&5
8563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8564if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567 if test -n "$CXX_FOR_TARGET"; then
8568 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581done
8582done
8583
8584fi
8585fi
8586CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8587if test -n "$CXX_FOR_TARGET"; then
8588 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8589echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8590else
8591 echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6
8593fi
8594
8595 done
8596fi
8597
8598if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8599 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8600 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8601echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8602 if test -x $with_build_time_tools/${ncn_progname}; then
8603 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
2429c060
PB
8606 break
8607 else
c6b750e1
DJ
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
2429c060
PB
8610 fi
8611 done
8612fi
8613
8614if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8615 for ncn_progname in c++ g++ cxx gxx; do
8616 if test -n "$ncn_target_tool_prefix"; then
8617 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8618set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8619echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8623else
8624 if test -n "$CXX_FOR_TARGET"; then
8625 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8626else
c6b750e1
DJ
8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628for as_dir in $PATH
8629do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638done
8639done
8640
55db4b87
PB
8641fi
8642fi
c6b750e1 8643CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8644if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8645 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8646echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8647else
c6b750e1
DJ
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
55db4b87
PB
8650fi
8651
2429c060
PB
8652 fi
8653 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8655set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
8657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8660else
05cbd757
PB
8661 if test -n "$CXX_FOR_TARGET"; then
8662 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8663else
c6b750e1
DJ
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675done
8676done
8677
55db4b87
PB
8678fi
8679fi
c6b750e1 8680CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8681if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8682 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8683echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8684else
c6b750e1
DJ
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
55db4b87 8687fi
c6b750e1 8688
2429c060
PB
8689 fi
8690 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8691 done
8692fi
c6b750e1 8693
05cbd757
PB
8694if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8695 set dummy c++ g++ cxx gxx
8696 if test $build = $target ; then
8697 CXX_FOR_TARGET="$2"
55db4b87 8698 else
05cbd757 8699 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8700 fi
d3f5afc4
MS
8701else
8702 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8703fi
8704
9a819804
AO
8705
8706
8707if test -n "$GCC_FOR_TARGET"; then
8708 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8709elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8710 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8711fi
8712
8713if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8714 for ncn_progname in gcc; do
8715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8716set dummy ${ncn_progname}; ac_word=$2
8717echo "$as_me:$LINENO: checking for $ac_word" >&5
8718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8719if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721else
8722 if test -n "$GCC_FOR_TARGET"; then
8723 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8724else
8725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726for as_dir in $PATH
8727do
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8735 fi
8736done
8737done
8738
8739fi
8740fi
8741GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8742if test -n "$GCC_FOR_TARGET"; then
8743 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8744echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8745else
8746 echo "$as_me:$LINENO: result: no" >&5
8747echo "${ECHO_T}no" >&6
8748fi
8749
8750 done
8751fi
8752
8753if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8754 for ncn_progname in gcc; do
c6b750e1
DJ
8755 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8756echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8757 if test -x $with_build_time_tools/${ncn_progname}; then
8758 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8759 echo "$as_me:$LINENO: result: yes" >&5
8760echo "${ECHO_T}yes" >&6
2429c060
PB
8761 break
8762 else
c6b750e1
DJ
8763 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
2429c060
PB
8765 fi
8766 done
8767fi
8768
8769if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8770 for ncn_progname in gcc; do
8771 if test -n "$ncn_target_tool_prefix"; then
8772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8773set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8774echo "$as_me:$LINENO: checking for $ac_word" >&5
8775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8776if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8778else
2429c060
PB
8779 if test -n "$GCC_FOR_TARGET"; then
8780 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8781else
c6b750e1
DJ
8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8792 fi
8793done
8794done
8795
55db4b87
PB
8796fi
8797fi
c6b750e1 8798GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8799if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8800 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8801echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8802else
c6b750e1
DJ
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
55db4b87
PB
8805fi
8806
2429c060
PB
8807 fi
8808 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8810set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8811echo "$as_me:$LINENO: checking for $ac_word" >&5
8812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8813if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8815else
05cbd757
PB
8816 if test -n "$GCC_FOR_TARGET"; then
8817 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8818else
c6b750e1
DJ
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831done
8832
55db4b87
PB
8833fi
8834fi
c6b750e1 8835GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8836if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8837 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8838echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8839else
c6b750e1
DJ
8840 echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
55db4b87 8842fi
c6b750e1 8843
2429c060
PB
8844 fi
8845 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8846 done
8847fi
c6b750e1 8848
05cbd757
PB
8849if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8850 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8851else
8852 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8853fi
8854
9a819804
AO
8855
8856
8857if test -n "$GCJ_FOR_TARGET"; then
8858 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8859elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8860 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8861fi
8862
8863if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8864 for ncn_progname in gcj; do
8865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8866set dummy ${ncn_progname}; ac_word=$2
8867echo "$as_me:$LINENO: checking for $ac_word" >&5
8868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8869if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872 if test -n "$GCJ_FOR_TARGET"; then
8873 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8874else
8875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876for as_dir in $PATH
8877do
8878 IFS=$as_save_IFS
8879 test -z "$as_dir" && as_dir=.
8880 for ac_exec_ext in '' $ac_executable_extensions; do
8881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8882 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8884 break 2
8885 fi
8886done
8887done
8888
8889fi
8890fi
8891GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8892if test -n "$GCJ_FOR_TARGET"; then
8893 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8894echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8895else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898fi
8899
8900 done
8901fi
8902
8903if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8904 for ncn_progname in gcj; do
c6b750e1
DJ
8905 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8906echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8907 if test -x $with_build_time_tools/${ncn_progname}; then
8908 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8909 echo "$as_me:$LINENO: result: yes" >&5
8910echo "${ECHO_T}yes" >&6
2429c060
PB
8911 break
8912 else
c6b750e1
DJ
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
2429c060
PB
8915 fi
8916 done
8917fi
8918
8919if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8920 for ncn_progname in gcj; do
8921 if test -n "$ncn_target_tool_prefix"; then
8922 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8923set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8924echo "$as_me:$LINENO: checking for $ac_word" >&5
8925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8926if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8928else
8929 if test -n "$GCJ_FOR_TARGET"; then
8930 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8931else
c6b750e1
DJ
8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933for as_dir in $PATH
8934do
8935 IFS=$as_save_IFS
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 break 2
8942 fi
8943done
8944done
8945
55db4b87
PB
8946fi
8947fi
9a819804
AO
8948GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8949if test -n "$GCJ_FOR_TARGET"; then
8950 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8951echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8952else
8953 echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
8955fi
8956
8957 fi
8958 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960set dummy ${ncn_progname}; ac_word=$2
8961echo "$as_me:$LINENO: checking for $ac_word" >&5
8962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966 if test -n "$GCJ_FOR_TARGET"; then
8967 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8968else
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8979 fi
8980done
8981done
8982
8983fi
8984fi
8985GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8986if test -n "$GCJ_FOR_TARGET"; then
8987 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8988echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8989else
8990 echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
8992fi
8993
8994 fi
8995 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8996 done
8997fi
8998
8999if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9000 set dummy gcj
9001 if test $build = $target ; then
9002 GCJ_FOR_TARGET="$2"
9003 else
9004 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9005 fi
d3f5afc4
MS
9006else
9007 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9008fi
9009
9010
9011
9012if test -n "$GFORTRAN_FOR_TARGET"; then
9013 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9014elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9015 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9016fi
9017
9a819804
AO
9018if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9019 for ncn_progname in gfortran; do
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9021set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9022echo "$as_me:$LINENO: checking for $ac_word" >&5
9023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9024if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 9025 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9026else
9a819804
AO
9027 if test -n "$GFORTRAN_FOR_TARGET"; then
9028 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9029else
c6b750e1
DJ
9030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9037 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9040 fi
9041done
9042done
9043
55db4b87
PB
9044fi
9045fi
9a819804
AO
9046GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9047if test -n "$GFORTRAN_FOR_TARGET"; then
9048 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9049echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9050else
c6b750e1
DJ
9051 echo "$as_me:$LINENO: result: no" >&5
9052echo "${ECHO_T}no" >&6
55db4b87 9053fi
c6b750e1 9054
2429c060
PB
9055 done
9056fi
c6b750e1 9057
9a819804 9058if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9059 for ncn_progname in gfortran; do
c6b750e1
DJ
9060 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9061echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9062 if test -x $with_build_time_tools/${ncn_progname}; then
9063 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9064 echo "$as_me:$LINENO: result: yes" >&5
9065echo "${ECHO_T}yes" >&6
2429c060
PB
9066 break
9067 else
c6b750e1
DJ
9068 echo "$as_me:$LINENO: result: no" >&5
9069echo "${ECHO_T}no" >&6
2429c060
PB
9070 fi
9071 done
9072fi
9073
9074if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9075 for ncn_progname in gfortran; do
9076 if test -n "$ncn_target_tool_prefix"; then
9077 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9078set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9079echo "$as_me:$LINENO: checking for $ac_word" >&5
9080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9081if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
9083else
9084 if test -n "$GFORTRAN_FOR_TARGET"; then
9085 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9086else
c6b750e1
DJ
9087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088for as_dir in $PATH
9089do
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 break 2
9097 fi
9098done
9099done
9100
55db4b87
PB
9101fi
9102fi
c6b750e1 9103GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9104if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9105 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9106echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9107else
c6b750e1
DJ
9108 echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
55db4b87
PB
9110fi
9111
2429c060
PB
9112 fi
9113 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9115set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9116echo "$as_me:$LINENO: checking for $ac_word" >&5
9117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9118if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 9120else
05cbd757 9121 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9122 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9123else
9124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125for as_dir in $PATH
9126do
9127 IFS=$as_save_IFS
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9131 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 break 2
9134 fi
9135done
9136done
9137
55db4b87
PB
9138fi
9139fi
c6b750e1 9140GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9141if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9142 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9143echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 9144else
c6b750e1
DJ
9145 echo "$as_me:$LINENO: result: no" >&5
9146echo "${ECHO_T}no" >&6
55db4b87 9147fi
c6b750e1 9148
2429c060
PB
9149 fi
9150 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9151 done
9152fi
c6b750e1 9153
05cbd757
PB
9154if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9155 set dummy gfortran
9156 if test $build = $target ; then
9157 GFORTRAN_FOR_TARGET="$2"
55db4b87 9158 else
05cbd757 9159 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9160 fi
d3f5afc4
MS
9161else
9162 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9163fi
9164
2429c060
PB
9165
9166
2429c060
PB
9167cat > conftest.c << \EOF
9168#ifdef __GNUC__
9169 gcc_yay;
9170#endif
9171EOF
9172if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9173 have_gcc_for_target=yes
859789af 9174else
2429c060
PB
9175 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9176 have_gcc_for_target=no
859789af 9177fi
2429c060
PB
9178rm conftest.c
9179
9180
9181
859789af 9182
2429c060
PB
9183if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9184 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9185 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9186echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9187 if test -x $with_build_time_tools/ar; then
9188 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9189 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
9190 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9191echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 9192 else
c6b750e1
DJ
9193 echo "$as_me:$LINENO: result: no" >&5
9194echo "${ECHO_T}no" >&6
3a35eeb3 9195 fi
2429c060
PB
9196 elif test $build != $host && test $have_gcc_for_target = yes; then
9197 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9198 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9199 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9200 fi
2429c060 9201fi
c6b750e1 9202if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9203 # Extract the first word of "ar", so it can be a program name with args.
9204set dummy ar; ac_word=$2
c6b750e1
DJ
9205echo "$as_me:$LINENO: checking for $ac_word" >&5
9206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9207if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9209else
c6b750e1
DJ
9210 case $AR_FOR_TARGET in
9211 [\\/]* | ?:[\\/]*)
2429c060
PB
9212 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9213 ;;
2429c060 9214 *)
c6b750e1
DJ
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216for as_dir in $gcc_cv_tool_dirs
9217do
9218 IFS=$as_save_IFS
9219 test -z "$as_dir" && as_dir=.
9220 for ac_exec_ext in '' $ac_executable_extensions; do
9221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9222 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9224 break 2
9225 fi
9226done
9227done
9228
2429c060
PB
9229 ;;
9230esac
859789af 9231fi
c6b750e1
DJ
9232AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9233
2429c060 9234if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9235 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9236echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 9237else
c6b750e1
DJ
9238 echo "$as_me:$LINENO: result: no" >&5
9239echo "${ECHO_T}no" >&6
859789af 9240fi
05cbd757 9241
2429c060
PB
9242fi
9243if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9244
9245
9246if test -n "$AR_FOR_TARGET"; then
9247 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9248elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9249 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9250fi
9251
9252if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9253 for ncn_progname in ar; do
9254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9255set dummy ${ncn_progname}; ac_word=$2
9256echo "$as_me:$LINENO: checking for $ac_word" >&5
9257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9258if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261 if test -n "$AR_FOR_TARGET"; then
9262 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9263else
9264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265for as_dir in $PATH
9266do
9267 IFS=$as_save_IFS
9268 test -z "$as_dir" && as_dir=.
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 break 2
9274 fi
9275done
9276done
9277
9278fi
9279fi
9280AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9281if test -n "$AR_FOR_TARGET"; then
9282 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9283echo "${ECHO_T}$AR_FOR_TARGET" >&6
9284else
9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
9287fi
9288
9289 done
9290fi
9291
9292if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9293 for ncn_progname in ar; do
c6b750e1
DJ
9294 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9295echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9296 if test -x $with_build_time_tools/${ncn_progname}; then
9297 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9298 echo "$as_me:$LINENO: result: yes" >&5
9299echo "${ECHO_T}yes" >&6
2429c060
PB
9300 break
9301 else
c6b750e1
DJ
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
2429c060
PB
9304 fi
9305 done
859789af
AC
9306fi
9307
2429c060
PB
9308if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9309 for ncn_progname in ar; do
9310 if test -n "$ncn_target_tool_prefix"; then
9311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9312set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9313echo "$as_me:$LINENO: checking for $ac_word" >&5
9314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9315if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9317else
2429c060
PB
9318 if test -n "$AR_FOR_TARGET"; then
9319 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9320else
c6b750e1
DJ
9321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322for as_dir in $PATH
9323do
9324 IFS=$as_save_IFS
9325 test -z "$as_dir" && as_dir=.
9326 for ac_exec_ext in '' $ac_executable_extensions; do
9327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9328 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9330 break 2
9331 fi
9332done
9333done
9334
7e0f7140
GK
9335fi
9336fi
c6b750e1 9337AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9338if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9339 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9340echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9341else
c6b750e1
DJ
9342 echo "$as_me:$LINENO: result: no" >&5
9343echo "${ECHO_T}no" >&6
7e0f7140
GK
9344fi
9345
2429c060
PB
9346 fi
9347 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9349set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9350echo "$as_me:$LINENO: checking for $ac_word" >&5
9351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9352if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9354else
2429c060
PB
9355 if test -n "$AR_FOR_TARGET"; then
9356 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9357else
c6b750e1
DJ
9358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359for as_dir in $PATH
9360do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9365 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9368 fi
9369done
9370done
9371
7e0f7140
GK
9372fi
9373fi
c6b750e1 9374AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9375if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9376 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9377echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9378else
c6b750e1
DJ
9379 echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
7e0f7140 9381fi
c6b750e1 9382
2429c060
PB
9383 fi
9384 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9385 done
9386fi
c6b750e1 9387
2429c060
PB
9388if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9389 set dummy ar
7e0f7140 9390 if test $build = $target ; then
2429c060 9391 AR_FOR_TARGET="$2"
7e0f7140 9392 else
2429c060 9393 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9394 fi
d3f5afc4
MS
9395else
9396 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9397fi
9398
3a35eeb3
PB
9399else
9400 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9401fi
9402
9403
9404
9405
9406if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9407 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9408 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9409echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9410 if test -x $with_build_time_tools/as; then
9411 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9412 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9413 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9414echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9415 else
c6b750e1
DJ
9416 echo "$as_me:$LINENO: result: no" >&5
9417echo "${ECHO_T}no" >&6
3a35eeb3 9418 fi
2429c060
PB
9419 elif test $build != $host && test $have_gcc_for_target = yes; then
9420 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9421 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9422 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9423 fi
9424fi
c6b750e1 9425if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9426 # Extract the first word of "as", so it can be a program name with args.
9427set dummy as; ac_word=$2
c6b750e1
DJ
9428echo "$as_me:$LINENO: checking for $ac_word" >&5
9429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9430if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9432else
c6b750e1
DJ
9433 case $AS_FOR_TARGET in
9434 [\\/]* | ?:[\\/]*)
2429c060
PB
9435 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9436 ;;
2429c060 9437 *)
c6b750e1
DJ
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439for as_dir in $gcc_cv_tool_dirs
9440do
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9445 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9448 fi
9449done
9450done
9451
2429c060
PB
9452 ;;
9453esac
9454fi
c6b750e1
DJ
9455AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9456
2429c060 9457if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9458 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9459echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9460else
c6b750e1
DJ
9461 echo "$as_me:$LINENO: result: no" >&5
9462echo "${ECHO_T}no" >&6
2429c060
PB
9463fi
9464
9465fi
9466if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9467
9468
9469if test -n "$AS_FOR_TARGET"; then
9470 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9471elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9472 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9473fi
9474
9475if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9476 for ncn_progname in as; do
9477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9478set dummy ${ncn_progname}; ac_word=$2
9479echo "$as_me:$LINENO: checking for $ac_word" >&5
9480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9481if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484 if test -n "$AS_FOR_TARGET"; then
9485 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9486else
9487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488for as_dir in $PATH
9489do
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9497 fi
9498done
9499done
9500
9501fi
9502fi
9503AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9504if test -n "$AS_FOR_TARGET"; then
9505 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9506echo "${ECHO_T}$AS_FOR_TARGET" >&6
9507else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510fi
9511
9512 done
9513fi
9514
9515if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9516 for ncn_progname in as; do
c6b750e1
DJ
9517 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9518echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9519 if test -x $with_build_time_tools/${ncn_progname}; then
9520 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9521 echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6
2429c060
PB
9523 break
9524 else
c6b750e1
DJ
9525 echo "$as_me:$LINENO: result: no" >&5
9526echo "${ECHO_T}no" >&6
2429c060
PB
9527 fi
9528 done
9529fi
9530
9531if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9532 for ncn_progname in as; do
9533 if test -n "$ncn_target_tool_prefix"; then
9534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9535set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9536echo "$as_me:$LINENO: checking for $ac_word" >&5
9537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9538if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9540else
9541 if test -n "$AS_FOR_TARGET"; then
9542 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9543else
c6b750e1
DJ
9544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545for as_dir in $PATH
9546do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555done
9556done
9557
2429c060
PB
9558fi
9559fi
c6b750e1 9560AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9561if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9562 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9563echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9564else
c6b750e1
DJ
9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
2429c060
PB
9567fi
9568
9569 fi
9570 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9572set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9573echo "$as_me:$LINENO: checking for $ac_word" >&5
9574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9575if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9577else
9578 if test -n "$AS_FOR_TARGET"; then
9579 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9580else
c6b750e1
DJ
9581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582for as_dir in $PATH
9583do
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9588 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9591 fi
9592done
9593done
9594
2429c060
PB
9595fi
9596fi
c6b750e1 9597AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9598if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9599 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9600echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9601else
c6b750e1
DJ
9602 echo "$as_me:$LINENO: result: no" >&5
9603echo "${ECHO_T}no" >&6
2429c060 9604fi
c6b750e1 9605
2429c060
PB
9606 fi
9607 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9608 done
9609fi
c6b750e1 9610
2429c060
PB
9611if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9612 set dummy as
9613 if test $build = $target ; then
9614 AS_FOR_TARGET="$2"
9615 else
9616 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9617 fi
d3f5afc4
MS
9618else
9619 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9620fi
9621
3a35eeb3
PB
9622else
9623 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9624fi
9625
9626
9627
9628
9629if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9630 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9631 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9632echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9633 if test -x $with_build_time_tools/dlltool; then
9634 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9635 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9636 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9637echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9638 else
c6b750e1
DJ
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
3a35eeb3 9641 fi
2429c060
PB
9642 elif test $build != $host && test $have_gcc_for_target = yes; then
9643 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9644 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9645 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9646 fi
9647fi
c6b750e1 9648if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9649 # Extract the first word of "dlltool", so it can be a program name with args.
9650set dummy dlltool; ac_word=$2
c6b750e1
DJ
9651echo "$as_me:$LINENO: checking for $ac_word" >&5
9652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9653if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9655else
c6b750e1
DJ
9656 case $DLLTOOL_FOR_TARGET in
9657 [\\/]* | ?:[\\/]*)
2429c060
PB
9658 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9659 ;;
2429c060 9660 *)
c6b750e1
DJ
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662for as_dir in $gcc_cv_tool_dirs
9663do
9664 IFS=$as_save_IFS
9665 test -z "$as_dir" && as_dir=.
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9668 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9670 break 2
9671 fi
9672done
9673done
9674
2429c060
PB
9675 ;;
9676esac
9677fi
c6b750e1
DJ
9678DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9679
2429c060 9680if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9681 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9682echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9683else
c6b750e1
DJ
9684 echo "$as_me:$LINENO: result: no" >&5
9685echo "${ECHO_T}no" >&6
2429c060
PB
9686fi
9687
9688fi
9689if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9690
9691
9692if test -n "$DLLTOOL_FOR_TARGET"; then
9693 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9694elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9695 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9696fi
9697
9698if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9699 for ncn_progname in dlltool; do
9700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9701set dummy ${ncn_progname}; ac_word=$2
9702echo "$as_me:$LINENO: checking for $ac_word" >&5
9703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9704if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707 if test -n "$DLLTOOL_FOR_TARGET"; then
9708 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9709else
9710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711for as_dir in $PATH
9712do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9717 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9720 fi
9721done
9722done
9723
9724fi
9725fi
9726DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9727if test -n "$DLLTOOL_FOR_TARGET"; then
9728 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9729echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9730else
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
9733fi
9734
9735 done
9736fi
9737
9738if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9739 for ncn_progname in dlltool; do
c6b750e1
DJ
9740 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9741echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9742 if test -x $with_build_time_tools/${ncn_progname}; then
9743 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9744 echo "$as_me:$LINENO: result: yes" >&5
9745echo "${ECHO_T}yes" >&6
2429c060
PB
9746 break
9747 else
c6b750e1
DJ
9748 echo "$as_me:$LINENO: result: no" >&5
9749echo "${ECHO_T}no" >&6
2429c060
PB
9750 fi
9751 done
9752fi
9753
9754if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9755 for ncn_progname in dlltool; do
9756 if test -n "$ncn_target_tool_prefix"; then
9757 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9758set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9759echo "$as_me:$LINENO: checking for $ac_word" >&5
9760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9761if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9763else
9764 if test -n "$DLLTOOL_FOR_TARGET"; then
9765 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9766else
c6b750e1
DJ
9767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768for as_dir in $PATH
9769do
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9774 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9777 fi
9778done
9779done
9780
2429c060
PB
9781fi
9782fi
c6b750e1 9783DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9784if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9785 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9786echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9787else
c6b750e1
DJ
9788 echo "$as_me:$LINENO: result: no" >&5
9789echo "${ECHO_T}no" >&6
2429c060
PB
9790fi
9791
9792 fi
9793 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9796echo "$as_me:$LINENO: checking for $ac_word" >&5
9797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9798if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9800else
9801 if test -n "$DLLTOOL_FOR_TARGET"; then
9802 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9803else
c6b750e1
DJ
9804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805for as_dir in $PATH
9806do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815done
9816done
9817
2429c060
PB
9818fi
9819fi
c6b750e1 9820DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9821if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9822 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9823echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9824else
c6b750e1
DJ
9825 echo "$as_me:$LINENO: result: no" >&5
9826echo "${ECHO_T}no" >&6
2429c060 9827fi
c6b750e1 9828
2429c060
PB
9829 fi
9830 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9831 done
9832fi
c6b750e1 9833
2429c060
PB
9834if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9835 set dummy dlltool
9836 if test $build = $target ; then
9837 DLLTOOL_FOR_TARGET="$2"
9838 else
9839 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9840 fi
d3f5afc4
MS
9841else
9842 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9843fi
9844
3a35eeb3
PB
9845else
9846 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9847fi
9848
9849
9850
9851
9852if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9853 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9854 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9855echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9856 if test -x $with_build_time_tools/ld; then
9857 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9858 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9859 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9860echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9861 else
c6b750e1
DJ
9862 echo "$as_me:$LINENO: result: no" >&5
9863echo "${ECHO_T}no" >&6
3a35eeb3 9864 fi
2429c060
PB
9865 elif test $build != $host && test $have_gcc_for_target = yes; then
9866 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9867 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9868 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9869 fi
9870fi
c6b750e1 9871if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9872 # Extract the first word of "ld", so it can be a program name with args.
9873set dummy ld; ac_word=$2
c6b750e1
DJ
9874echo "$as_me:$LINENO: checking for $ac_word" >&5
9875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9876if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9878else
c6b750e1
DJ
9879 case $LD_FOR_TARGET in
9880 [\\/]* | ?:[\\/]*)
2429c060
PB
9881 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9882 ;;
2429c060 9883 *)
c6b750e1
DJ
9884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885for as_dir in $gcc_cv_tool_dirs
9886do
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9891 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9893 break 2
9894 fi
9895done
9896done
9897
2429c060
PB
9898 ;;
9899esac
9900fi
c6b750e1
DJ
9901LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9902
2429c060 9903if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9904 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9905echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9906else
c6b750e1
DJ
9907 echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
2429c060
PB
9909fi
9910
9911fi
9912if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9913
9914
9915if test -n "$LD_FOR_TARGET"; then
9916 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9917elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9918 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9919fi
9920
9921if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9922 for ncn_progname in ld; do
9923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9924set dummy ${ncn_progname}; ac_word=$2
9925echo "$as_me:$LINENO: checking for $ac_word" >&5
9926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9927if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930 if test -n "$LD_FOR_TARGET"; then
9931 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9932else
9933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934for as_dir in $PATH
9935do
9936 IFS=$as_save_IFS
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9940 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 break 2
9943 fi
9944done
9945done
9946
9947fi
9948fi
9949LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9950if test -n "$LD_FOR_TARGET"; then
9951 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9952echo "${ECHO_T}$LD_FOR_TARGET" >&6
9953else
9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
9956fi
9957
9958 done
9959fi
9960
9961if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9962 for ncn_progname in ld; do
c6b750e1
DJ
9963 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9964echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9965 if test -x $with_build_time_tools/${ncn_progname}; then
9966 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9967 echo "$as_me:$LINENO: result: yes" >&5
9968echo "${ECHO_T}yes" >&6
2429c060
PB
9969 break
9970 else
c6b750e1
DJ
9971 echo "$as_me:$LINENO: result: no" >&5
9972echo "${ECHO_T}no" >&6
2429c060
PB
9973 fi
9974 done
9975fi
9976
9977if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9978 for ncn_progname in ld; do
9979 if test -n "$ncn_target_tool_prefix"; then
9980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9981set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9982echo "$as_me:$LINENO: checking for $ac_word" >&5
9983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9984if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9986else
9987 if test -n "$LD_FOR_TARGET"; then
9988 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9989else
c6b750e1
DJ
9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9997 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10000 fi
10001done
10002done
10003
2429c060
PB
10004fi
10005fi
c6b750e1 10006LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10007if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10008 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10009echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10010else
c6b750e1
DJ
10011 echo "$as_me:$LINENO: result: no" >&5
10012echo "${ECHO_T}no" >&6
2429c060
PB
10013fi
10014
10015 fi
10016 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10018set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10019echo "$as_me:$LINENO: checking for $ac_word" >&5
10020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10021if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10023else
10024 if test -n "$LD_FOR_TARGET"; then
10025 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10026else
c6b750e1
DJ
10027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10034 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10037 fi
10038done
10039done
10040
2429c060
PB
10041fi
10042fi
c6b750e1 10043LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10044if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
10045 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10046echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 10047else
c6b750e1
DJ
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
2429c060 10050fi
c6b750e1 10051
2429c060
PB
10052 fi
10053 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10054 done
10055fi
c6b750e1 10056
2429c060
PB
10057if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10058 set dummy ld
10059 if test $build = $target ; then
10060 LD_FOR_TARGET="$2"
10061 else
10062 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10063 fi
d3f5afc4
MS
10064else
10065 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10066fi
10067
3a35eeb3
PB
10068else
10069 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10070fi
10071
10072
10073
10074
10075if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10076 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10077 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10078echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10079 if test -x $with_build_time_tools/lipo; then
10080 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10081 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
10082 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10083echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 10084 else
c6b750e1
DJ
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
3a35eeb3 10087 fi
2429c060
PB
10088 elif test $build != $host && test $have_gcc_for_target = yes; then
10089 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10090 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10091 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10092 fi
10093fi
9a819804
AO
10094if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10095 # Extract the first word of "lipo", so it can be a program name with args.
10096set dummy lipo; ac_word=$2
10097echo "$as_me:$LINENO: checking for $ac_word" >&5
10098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10099if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102 case $LIPO_FOR_TARGET in
10103 [\\/]* | ?:[\\/]*)
10104 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10105 ;;
10106 *)
10107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $gcc_cv_tool_dirs
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 break 2
10117 fi
10118done
10119done
10120
10121 ;;
10122esac
10123fi
10124LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10125
10126if test -n "$LIPO_FOR_TARGET"; then
10127 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10128echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10129else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132fi
10133
10134fi
10135if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10136
10137
10138if test -n "$LIPO_FOR_TARGET"; then
10139 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10140elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10141 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10142fi
10143
10144if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10145 for ncn_progname in lipo; do
10146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10147set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10148echo "$as_me:$LINENO: checking for $ac_word" >&5
10149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 10150if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 10151 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10152else
9a819804
AO
10153 if test -n "$LIPO_FOR_TARGET"; then
10154 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10155else
10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157for as_dir in $PATH
c6b750e1
DJ
10158do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10163 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
10164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10166 fi
10167done
10168done
10169
2429c060 10170fi
9a819804
AO
10171fi
10172LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10173if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10174 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10175echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10176else
c6b750e1
DJ
10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
2429c060
PB
10179fi
10180
9a819804 10181 done
2429c060 10182fi
9a819804
AO
10183
10184if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10185 for ncn_progname in lipo; do
c6b750e1
DJ
10186 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10187echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10188 if test -x $with_build_time_tools/${ncn_progname}; then
10189 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10190 echo "$as_me:$LINENO: result: yes" >&5
10191echo "${ECHO_T}yes" >&6
2429c060
PB
10192 break
10193 else
c6b750e1
DJ
10194 echo "$as_me:$LINENO: result: no" >&5
10195echo "${ECHO_T}no" >&6
2429c060
PB
10196 fi
10197 done
10198fi
10199
10200if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10201 for ncn_progname in lipo; do
10202 if test -n "$ncn_target_tool_prefix"; then
10203 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10204set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10205echo "$as_me:$LINENO: checking for $ac_word" >&5
10206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10207if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10209else
10210 if test -n "$LIPO_FOR_TARGET"; then
10211 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10212else
c6b750e1
DJ
10213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214for as_dir in $PATH
10215do
10216 IFS=$as_save_IFS
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 break 2
10223 fi
10224done
10225done
10226
2429c060
PB
10227fi
10228fi
c6b750e1 10229LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10230if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10231 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10232echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10233else
c6b750e1
DJ
10234 echo "$as_me:$LINENO: result: no" >&5
10235echo "${ECHO_T}no" >&6
2429c060
PB
10236fi
10237
10238 fi
10239 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10241set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10242echo "$as_me:$LINENO: checking for $ac_word" >&5
10243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10244if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
10246else
10247 if test -n "$LIPO_FOR_TARGET"; then
10248 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10249else
c6b750e1
DJ
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10260 fi
10261done
10262done
10263
2429c060
PB
10264fi
10265fi
c6b750e1 10266LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10267if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10268 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10269echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10270else
c6b750e1
DJ
10271 echo "$as_me:$LINENO: result: no" >&5
10272echo "${ECHO_T}no" >&6
2429c060 10273fi
c6b750e1 10274
2429c060
PB
10275 fi
10276 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10277 done
10278fi
c6b750e1 10279
2429c060
PB
10280if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10281 set dummy lipo
10282 if test $build = $target ; then
10283 LIPO_FOR_TARGET="$2"
10284 else
10285 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10286 fi
d3f5afc4
MS
10287else
10288 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10289fi
10290
3a35eeb3
PB
10291else
10292 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10293fi
10294
10295
10296
10297
10298if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10299 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10300 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10301echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10302 if test -x $with_build_time_tools/nm; then
10303 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10304 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10305 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10306echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10307 else
c6b750e1
DJ
10308 echo "$as_me:$LINENO: result: no" >&5
10309echo "${ECHO_T}no" >&6
3a35eeb3 10310 fi
2429c060
PB
10311 elif test $build != $host && test $have_gcc_for_target = yes; then
10312 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10313 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10314 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10315 fi
10316fi
c6b750e1 10317if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10318 # Extract the first word of "nm", so it can be a program name with args.
10319set dummy nm; ac_word=$2
c6b750e1
DJ
10320echo "$as_me:$LINENO: checking for $ac_word" >&5
10321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10322if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10324else
c6b750e1
DJ
10325 case $NM_FOR_TARGET in
10326 [\\/]* | ?:[\\/]*)
2429c060
PB
10327 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10328 ;;
2429c060 10329 *)
c6b750e1
DJ
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331for as_dir in $gcc_cv_tool_dirs
10332do
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10340 fi
10341done
10342done
10343
2429c060
PB
10344 ;;
10345esac
10346fi
c6b750e1
DJ
10347NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10348
2429c060 10349if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10350 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10351echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10352else
c6b750e1
DJ
10353 echo "$as_me:$LINENO: result: no" >&5
10354echo "${ECHO_T}no" >&6
2429c060
PB
10355fi
10356
10357fi
10358if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10359
10360
10361if test -n "$NM_FOR_TARGET"; then
10362 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10363elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10364 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10365fi
10366
10367if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10368 for ncn_progname in nm; do
10369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10370set dummy ${ncn_progname}; ac_word=$2
10371echo "$as_me:$LINENO: checking for $ac_word" >&5
10372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10373if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376 if test -n "$NM_FOR_TARGET"; then
10377 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10378else
10379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380for as_dir in $PATH
10381do
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10386 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10389 fi
10390done
10391done
10392
10393fi
10394fi
10395NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10396if test -n "$NM_FOR_TARGET"; then
10397 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10398echo "${ECHO_T}$NM_FOR_TARGET" >&6
10399else
10400 echo "$as_me:$LINENO: result: no" >&5
10401echo "${ECHO_T}no" >&6
10402fi
10403
10404 done
10405fi
10406
10407if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10408 for ncn_progname in nm; do
c6b750e1
DJ
10409 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10410echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10411 if test -x $with_build_time_tools/${ncn_progname}; then
10412 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10413 echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
2429c060
PB
10415 break
10416 else
c6b750e1
DJ
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
2429c060
PB
10419 fi
10420 done
10421fi
10422
10423if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10424 for ncn_progname in nm; do
10425 if test -n "$ncn_target_tool_prefix"; then
10426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10428echo "$as_me:$LINENO: checking for $ac_word" >&5
10429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10432else
55db4b87
PB
10433 if test -n "$NM_FOR_TARGET"; then
10434 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10435else
c6b750e1
DJ
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447done
10448done
10449
859789af
AC
10450fi
10451fi
c6b750e1 10452NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10453if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10454 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10455echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10456else
c6b750e1
DJ
10457 echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
859789af
AC
10459fi
10460
2429c060
PB
10461 fi
10462 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10464set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10465echo "$as_me:$LINENO: checking for $ac_word" >&5
10466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10467if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10469else
05cbd757
PB
10470 if test -n "$NM_FOR_TARGET"; then
10471 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10472else
c6b750e1
DJ
10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484done
10485done
10486
859789af
AC
10487fi
10488fi
c6b750e1 10489NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10490if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10491 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10492echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10493else
c6b750e1
DJ
10494 echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
859789af 10496fi
c6b750e1 10497
2429c060
PB
10498 fi
10499 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10500 done
10501fi
c6b750e1 10502
05cbd757
PB
10503if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10504 set dummy nm
10505 if test $build = $target ; then
10506 NM_FOR_TARGET="$2"
859789af 10507 else
05cbd757 10508 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10509 fi
d3f5afc4
MS
10510else
10511 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10512fi
10513
3a35eeb3
PB
10514else
10515 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10516fi
10517
10518
10519
10520
10521if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10522 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10523 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10524echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10525 if test -x $with_build_time_tools/objdump; then
10526 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10527 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10528 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10529echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10530 else
c6b750e1
DJ
10531 echo "$as_me:$LINENO: result: no" >&5
10532echo "${ECHO_T}no" >&6
3a35eeb3 10533 fi
2429c060
PB
10534 elif test $build != $host && test $have_gcc_for_target = yes; then
10535 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10536 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10537 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10538 fi
10539fi
c6b750e1 10540if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10541 # Extract the first word of "objdump", so it can be a program name with args.
10542set dummy objdump; ac_word=$2
c6b750e1
DJ
10543echo "$as_me:$LINENO: checking for $ac_word" >&5
10544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10545if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10547else
c6b750e1
DJ
10548 case $OBJDUMP_FOR_TARGET in
10549 [\\/]* | ?:[\\/]*)
2429c060
PB
10550 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10551 ;;
2429c060 10552 *)
c6b750e1
DJ
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554for as_dir in $gcc_cv_tool_dirs
10555do
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10560 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10563 fi
10564done
10565done
10566
2429c060
PB
10567 ;;
10568esac
10569fi
c6b750e1
DJ
10570OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10571
2429c060 10572if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10573 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10574echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10575else
c6b750e1
DJ
10576 echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6
2429c060
PB
10578fi
10579
10580fi
10581if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10582
10583
10584if test -n "$OBJDUMP_FOR_TARGET"; then
10585 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10586elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10587 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10588fi
10589
10590if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10591 for ncn_progname in objdump; do
10592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10593set dummy ${ncn_progname}; ac_word=$2
10594echo "$as_me:$LINENO: checking for $ac_word" >&5
10595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10596if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599 if test -n "$OBJDUMP_FOR_TARGET"; then
10600 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10601else
10602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603for as_dir in $PATH
10604do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10612 fi
10613done
10614done
10615
10616fi
10617fi
10618OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10619if test -n "$OBJDUMP_FOR_TARGET"; then
10620 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10621echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10622else
10623 echo "$as_me:$LINENO: result: no" >&5
10624echo "${ECHO_T}no" >&6
10625fi
10626
10627 done
10628fi
10629
10630if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10631 for ncn_progname in objdump; do
c6b750e1
DJ
10632 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10633echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10634 if test -x $with_build_time_tools/${ncn_progname}; then
10635 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10636 echo "$as_me:$LINENO: result: yes" >&5
10637echo "${ECHO_T}yes" >&6
2429c060
PB
10638 break
10639 else
c6b750e1
DJ
10640 echo "$as_me:$LINENO: result: no" >&5
10641echo "${ECHO_T}no" >&6
2429c060
PB
10642 fi
10643 done
10644fi
10645
10646if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10647 for ncn_progname in objdump; do
10648 if test -n "$ncn_target_tool_prefix"; then
10649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10650set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10651echo "$as_me:$LINENO: checking for $ac_word" >&5
10652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10653if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10655else
10656 if test -n "$OBJDUMP_FOR_TARGET"; then
10657 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10658else
c6b750e1
DJ
10659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660for as_dir in $PATH
10661do
10662 IFS=$as_save_IFS
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10666 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10668 break 2
10669 fi
10670done
10671done
10672
5ae72758
DJ
10673fi
10674fi
c6b750e1 10675OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10676if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10677 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10678echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10679else
c6b750e1
DJ
10680 echo "$as_me:$LINENO: result: no" >&5
10681echo "${ECHO_T}no" >&6
5ae72758
DJ
10682fi
10683
2429c060
PB
10684 fi
10685 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10687set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10688echo "$as_me:$LINENO: checking for $ac_word" >&5
10689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10690if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10692else
10693 if test -n "$OBJDUMP_FOR_TARGET"; then
10694 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10695else
c6b750e1
DJ
10696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10706 fi
10707done
10708done
10709
5ae72758
DJ
10710fi
10711fi
c6b750e1 10712OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10713if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10714 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10715echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10716else
c6b750e1
DJ
10717 echo "$as_me:$LINENO: result: no" >&5
10718echo "${ECHO_T}no" >&6
5ae72758 10719fi
c6b750e1 10720
2429c060
PB
10721 fi
10722 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10723 done
10724fi
c6b750e1 10725
5ae72758
DJ
10726if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10727 set dummy objdump
10728 if test $build = $target ; then
10729 OBJDUMP_FOR_TARGET="$2"
10730 else
10731 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10732 fi
d3f5afc4
MS
10733else
10734 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10735fi
10736
3a35eeb3
PB
10737else
10738 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10739fi
10740
10741
10742
10743
10744if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10745 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10746 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10747echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10748 if test -x $with_build_time_tools/ranlib; then
10749 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10750 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10751 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10752echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10753 else
c6b750e1
DJ
10754 echo "$as_me:$LINENO: result: no" >&5
10755echo "${ECHO_T}no" >&6
3a35eeb3 10756 fi
2429c060
PB
10757 elif test $build != $host && test $have_gcc_for_target = yes; then
10758 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10759 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10760 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10761 fi
10762fi
c6b750e1 10763if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10764 # Extract the first word of "ranlib", so it can be a program name with args.
10765set dummy ranlib; ac_word=$2
c6b750e1
DJ
10766echo "$as_me:$LINENO: checking for $ac_word" >&5
10767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10768if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10770else
c6b750e1
DJ
10771 case $RANLIB_FOR_TARGET in
10772 [\\/]* | ?:[\\/]*)
2429c060
PB
10773 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10774 ;;
2429c060 10775 *)
c6b750e1
DJ
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777for as_dir in $gcc_cv_tool_dirs
10778do
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10783 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10785 break 2
10786 fi
10787done
10788done
10789
2429c060
PB
10790 ;;
10791esac
10792fi
c6b750e1
DJ
10793RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10794
2429c060 10795if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10796 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10797echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10798else
c6b750e1
DJ
10799 echo "$as_me:$LINENO: result: no" >&5
10800echo "${ECHO_T}no" >&6
2429c060
PB
10801fi
10802
10803fi
10804if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10805
10806
10807if test -n "$RANLIB_FOR_TARGET"; then
10808 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10809elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10810 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10811fi
10812
10813if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10814 for ncn_progname in ranlib; do
10815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10816set dummy ${ncn_progname}; ac_word=$2
10817echo "$as_me:$LINENO: checking for $ac_word" >&5
10818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10819if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821else
10822 if test -n "$RANLIB_FOR_TARGET"; then
10823 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10824else
10825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826for as_dir in $PATH
10827do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10832 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 break 2
10835 fi
10836done
10837done
10838
10839fi
10840fi
10841RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10842if test -n "$RANLIB_FOR_TARGET"; then
10843 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10844echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10845else
10846 echo "$as_me:$LINENO: result: no" >&5
10847echo "${ECHO_T}no" >&6
10848fi
10849
10850 done
10851fi
10852
10853if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10854 for ncn_progname in ranlib; do
c6b750e1
DJ
10855 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10856echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10857 if test -x $with_build_time_tools/${ncn_progname}; then
10858 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10859 echo "$as_me:$LINENO: result: yes" >&5
10860echo "${ECHO_T}yes" >&6
2429c060
PB
10861 break
10862 else
c6b750e1
DJ
10863 echo "$as_me:$LINENO: result: no" >&5
10864echo "${ECHO_T}no" >&6
2429c060
PB
10865 fi
10866 done
10867fi
10868
10869if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10870 for ncn_progname in ranlib; do
10871 if test -n "$ncn_target_tool_prefix"; then
10872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10873set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10874echo "$as_me:$LINENO: checking for $ac_word" >&5
10875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10876if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10878else
55db4b87
PB
10879 if test -n "$RANLIB_FOR_TARGET"; then
10880 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10881else
c6b750e1
DJ
10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883for as_dir in $PATH
10884do
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10891 break 2
10892 fi
10893done
10894done
10895
859789af
AC
10896fi
10897fi
c6b750e1 10898RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10899if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10900 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10901echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10902else
c6b750e1
DJ
10903 echo "$as_me:$LINENO: result: no" >&5
10904echo "${ECHO_T}no" >&6
859789af
AC
10905fi
10906
2429c060
PB
10907 fi
10908 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10910set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10915else
05cbd757
PB
10916 if test -n "$RANLIB_FOR_TARGET"; then
10917 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10918else
c6b750e1
DJ
10919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920for as_dir in $PATH
10921do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10926 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 break 2
10929 fi
10930done
10931done
10932
859789af
AC
10933fi
10934fi
c6b750e1 10935RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10936if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10937 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10938echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10939else
c6b750e1
DJ
10940 echo "$as_me:$LINENO: result: no" >&5
10941echo "${ECHO_T}no" >&6
859789af 10942fi
c6b750e1 10943
2429c060
PB
10944 fi
10945 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10946 done
10947fi
c6b750e1 10948
2429c060
PB
10949if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10950 set dummy ranlib
10951 if test $build = $target ; then
10952 RANLIB_FOR_TARGET="$2"
10953 else
10954 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10955 fi
d3f5afc4
MS
10956else
10957 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10958fi
05cbd757 10959
3a35eeb3
PB
10960else
10961 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10962fi
10963
2429c060
PB
10964
10965
10966
10967if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10968 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10969 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10970echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10971 if test -x $with_build_time_tools/strip; then
10972 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10973 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10974 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10975echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10976 else
c6b750e1
DJ
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
3a35eeb3 10979 fi
2429c060
PB
10980 elif test $build != $host && test $have_gcc_for_target = yes; then
10981 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10982 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10983 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10984 fi
10985fi
c6b750e1 10986if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10987 # Extract the first word of "strip", so it can be a program name with args.
10988set dummy strip; ac_word=$2
c6b750e1
DJ
10989echo "$as_me:$LINENO: checking for $ac_word" >&5
10990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10991if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10993else
c6b750e1
DJ
10994 case $STRIP_FOR_TARGET in
10995 [\\/]* | ?:[\\/]*)
2429c060
PB
10996 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10997 ;;
2429c060 10998 *)
c6b750e1
DJ
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000for as_dir in $gcc_cv_tool_dirs
11001do
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11006 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11009 fi
11010done
11011done
11012
2429c060
PB
11013 ;;
11014esac
11015fi
c6b750e1
DJ
11016STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11017
2429c060 11018if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11019 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11020echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 11021else
c6b750e1
DJ
11022 echo "$as_me:$LINENO: result: no" >&5
11023echo "${ECHO_T}no" >&6
2429c060
PB
11024fi
11025
11026fi
11027if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11028
11029
11030if test -n "$STRIP_FOR_TARGET"; then
11031 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11032elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11033 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11034fi
11035
11036if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11037 for ncn_progname in strip; do
11038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11039set dummy ${ncn_progname}; ac_word=$2
11040echo "$as_me:$LINENO: checking for $ac_word" >&5
11041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11042if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044else
11045 if test -n "$STRIP_FOR_TARGET"; then
11046 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11047else
11048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059done
11060done
11061
11062fi
11063fi
11064STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11065if test -n "$STRIP_FOR_TARGET"; then
11066 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11067echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11068else
11069 echo "$as_me:$LINENO: result: no" >&5
11070echo "${ECHO_T}no" >&6
11071fi
11072
11073 done
11074fi
11075
11076if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11077 for ncn_progname in strip; do
c6b750e1
DJ
11078 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11079echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11080 if test -x $with_build_time_tools/${ncn_progname}; then
11081 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11082 echo "$as_me:$LINENO: result: yes" >&5
11083echo "${ECHO_T}yes" >&6
2429c060
PB
11084 break
11085 else
c6b750e1
DJ
11086 echo "$as_me:$LINENO: result: no" >&5
11087echo "${ECHO_T}no" >&6
2429c060
PB
11088 fi
11089 done
11090fi
11091
11092if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11093 for ncn_progname in strip; do
11094 if test -n "$ncn_target_tool_prefix"; then
11095 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11096set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11097echo "$as_me:$LINENO: checking for $ac_word" >&5
11098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11099if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11101else
11102 if test -n "$STRIP_FOR_TARGET"; then
11103 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11104else
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116done
11117done
11118
7e0f7140
GK
11119fi
11120fi
c6b750e1 11121STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11122if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11123 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11124echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11125else
c6b750e1
DJ
11126 echo "$as_me:$LINENO: result: no" >&5
11127echo "${ECHO_T}no" >&6
7e0f7140
GK
11128fi
11129
2429c060
PB
11130 fi
11131 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11133set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11134echo "$as_me:$LINENO: checking for $ac_word" >&5
11135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11136if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
11138else
11139 if test -n "$STRIP_FOR_TARGET"; then
11140 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11141else
c6b750e1
DJ
11142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143for as_dir in $PATH
11144do
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11149 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11151 break 2
11152 fi
11153done
11154done
11155
7e0f7140
GK
11156fi
11157fi
c6b750e1 11158STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11159if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
11160 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11161echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 11162else
c6b750e1
DJ
11163 echo "$as_me:$LINENO: result: no" >&5
11164echo "${ECHO_T}no" >&6
7e0f7140 11165fi
c6b750e1 11166
2429c060
PB
11167 fi
11168 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11169 done
11170fi
c6b750e1 11171
7e0f7140
GK
11172if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11173 set dummy strip
11174 if test $build = $target ; then
11175 STRIP_FOR_TARGET="$2"
11176 else
11177 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11178 fi
d3f5afc4
MS
11179else
11180 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11181fi
11182
3a35eeb3
PB
11183else
11184 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11185fi
11186
11187
11188
11189
11190if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11191 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
11192 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11193echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11194 if test -x $with_build_time_tools/windres; then
11195 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11196 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
11197 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11198echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 11199 else
c6b750e1
DJ
11200 echo "$as_me:$LINENO: result: no" >&5
11201echo "${ECHO_T}no" >&6
3a35eeb3 11202 fi
2429c060
PB
11203 elif test $build != $host && test $have_gcc_for_target = yes; then
11204 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11205 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11206 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11207 fi
11208fi
c6b750e1 11209if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11210 # Extract the first word of "windres", so it can be a program name with args.
11211set dummy windres; ac_word=$2
c6b750e1
DJ
11212echo "$as_me:$LINENO: checking for $ac_word" >&5
11213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11214if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 11216else
c6b750e1
DJ
11217 case $WINDRES_FOR_TARGET in
11218 [\\/]* | ?:[\\/]*)
2429c060
PB
11219 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11220 ;;
2429c060 11221 *)
c6b750e1
DJ
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223for as_dir in $gcc_cv_tool_dirs
11224do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 break 2
11232 fi
11233done
11234done
11235
2429c060
PB
11236 ;;
11237esac
11238fi
c6b750e1
DJ
11239WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11240
2429c060 11241if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11242 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11243echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 11244else
c6b750e1
DJ
11245 echo "$as_me:$LINENO: result: no" >&5
11246echo "${ECHO_T}no" >&6
2429c060
PB
11247fi
11248
11249fi
11250if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11251
11252
11253if test -n "$WINDRES_FOR_TARGET"; then
11254 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11255elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11256 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11257fi
11258
11259if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11260 for ncn_progname in windres; do
11261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11262set dummy ${ncn_progname}; ac_word=$2
11263echo "$as_me:$LINENO: checking for $ac_word" >&5
11264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11265if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267else
11268 if test -n "$WINDRES_FOR_TARGET"; then
11269 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11270else
11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11281 fi
11282done
11283done
11284
11285fi
11286fi
11287WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11288if test -n "$WINDRES_FOR_TARGET"; then
11289 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11290echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11291else
11292 echo "$as_me:$LINENO: result: no" >&5
11293echo "${ECHO_T}no" >&6
11294fi
11295
11296 done
11297fi
11298
11299if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11300 for ncn_progname in windres; do
c6b750e1
DJ
11301 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11302echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11303 if test -x $with_build_time_tools/${ncn_progname}; then
11304 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11305 echo "$as_me:$LINENO: result: yes" >&5
11306echo "${ECHO_T}yes" >&6
2429c060
PB
11307 break
11308 else
c6b750e1
DJ
11309 echo "$as_me:$LINENO: result: no" >&5
11310echo "${ECHO_T}no" >&6
2429c060
PB
11311 fi
11312 done
11313fi
11314
11315if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11316 for ncn_progname in windres; do
11317 if test -n "$ncn_target_tool_prefix"; then
11318 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11319set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11320echo "$as_me:$LINENO: checking for $ac_word" >&5
11321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11322if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11324else
55db4b87
PB
11325 if test -n "$WINDRES_FOR_TARGET"; then
11326 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11327else
c6b750e1
DJ
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340done
11341
859789af
AC
11342fi
11343fi
c6b750e1 11344WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11345if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11346 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11347echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11348else
c6b750e1
DJ
11349 echo "$as_me:$LINENO: result: no" >&5
11350echo "${ECHO_T}no" >&6
859789af
AC
11351fi
11352
2429c060
PB
11353 fi
11354 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11356set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11357echo "$as_me:$LINENO: checking for $ac_word" >&5
11358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11359if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11361else
05cbd757
PB
11362 if test -n "$WINDRES_FOR_TARGET"; then
11363 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11364else
c6b750e1
DJ
11365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366for as_dir in $PATH
11367do
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11375 fi
11376done
11377done
11378
859789af
AC
11379fi
11380fi
c6b750e1 11381WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11382if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11383 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11384echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11385else
c6b750e1
DJ
11386 echo "$as_me:$LINENO: result: no" >&5
11387echo "${ECHO_T}no" >&6
859789af 11388fi
c6b750e1 11389
2429c060
PB
11390 fi
11391 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11392 done
11393fi
c6b750e1 11394
05cbd757
PB
11395if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11396 set dummy windres
11397 if test $build = $target ; then
11398 WINDRES_FOR_TARGET="$2"
859789af 11399 else
05cbd757 11400 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11401 fi
d3f5afc4
MS
11402else
11403 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11404fi
11405
3a35eeb3
PB
11406else
11407 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11408fi
11409
852e5f18 11410
0c24b341
NC
11411
11412
11413if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11414 if test -n "$with_build_time_tools"; then
11415 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11416echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11417 if test -x $with_build_time_tools/windmc; then
11418 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11419 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11420 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11421echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11422 else
11423 echo "$as_me:$LINENO: result: no" >&5
11424echo "${ECHO_T}no" >&6
11425 fi
11426 elif test $build != $host && test $have_gcc_for_target = yes; then
11427 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11428 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11429 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11430 fi
11431fi
11432if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11433 # Extract the first word of "windmc", so it can be a program name with args.
11434set dummy windmc; ac_word=$2
11435echo "$as_me:$LINENO: checking for $ac_word" >&5
11436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11437if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439else
11440 case $WINDMC_FOR_TARGET in
11441 [\\/]* | ?:[\\/]*)
11442 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11443 ;;
11444 *)
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446for as_dir in $gcc_cv_tool_dirs
11447do
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11455 fi
11456done
11457done
11458
11459 ;;
11460esac
11461fi
11462WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11463
11464if test -n "$WINDMC_FOR_TARGET"; then
11465 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11466echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11467else
11468 echo "$as_me:$LINENO: result: no" >&5
11469echo "${ECHO_T}no" >&6
11470fi
11471
11472fi
11473if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11474
11475
11476if test -n "$WINDMC_FOR_TARGET"; then
11477 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11478elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11479 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11480fi
11481
11482if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11483 for ncn_progname in windmc; do
11484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11485set dummy ${ncn_progname}; ac_word=$2
11486echo "$as_me:$LINENO: checking for $ac_word" >&5
11487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11488if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490else
11491 if test -n "$WINDMC_FOR_TARGET"; then
11492 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11493else
11494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495for as_dir in $PATH
11496do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11501 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11504 fi
11505done
11506done
11507
11508fi
11509fi
11510WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11511if test -n "$WINDMC_FOR_TARGET"; then
11512 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11513echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11514else
11515 echo "$as_me:$LINENO: result: no" >&5
11516echo "${ECHO_T}no" >&6
11517fi
11518
11519 done
11520fi
11521
11522if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11523 for ncn_progname in windmc; do
11524 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11525echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11526 if test -x $with_build_time_tools/${ncn_progname}; then
11527 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11528 echo "$as_me:$LINENO: result: yes" >&5
11529echo "${ECHO_T}yes" >&6
11530 break
11531 else
11532 echo "$as_me:$LINENO: result: no" >&5
11533echo "${ECHO_T}no" >&6
11534 fi
11535 done
11536fi
11537
11538if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11539 for ncn_progname in windmc; do
11540 if test -n "$ncn_target_tool_prefix"; then
11541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11542set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11543echo "$as_me:$LINENO: checking for $ac_word" >&5
11544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11545if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 if test -n "$WINDMC_FOR_TARGET"; then
11549 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11561 fi
11562done
11563done
11564
11565fi
11566fi
11567WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11568if test -n "$WINDMC_FOR_TARGET"; then
11569 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11570echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11571else
11572 echo "$as_me:$LINENO: result: no" >&5
11573echo "${ECHO_T}no" >&6
11574fi
11575
11576 fi
11577 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11579set dummy ${ncn_progname}; ac_word=$2
11580echo "$as_me:$LINENO: checking for $ac_word" >&5
11581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11582if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585 if test -n "$WINDMC_FOR_TARGET"; then
11586 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11587else
11588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589for as_dir in $PATH
11590do
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11597 break 2
11598 fi
11599done
11600done
11601
11602fi
11603fi
11604WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11605if test -n "$WINDMC_FOR_TARGET"; then
11606 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11607echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11608else
11609 echo "$as_me:$LINENO: result: no" >&5
11610echo "${ECHO_T}no" >&6
11611fi
11612
11613 fi
11614 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11615 done
11616fi
11617
11618if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11619 set dummy windmc
11620 if test $build = $target ; then
11621 WINDMC_FOR_TARGET="$2"
11622 else
11623 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11624 fi
11625else
11626 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11627fi
11628
11629else
11630 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11631fi
11632
11633
be01d343
PB
11634RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11635
c6b750e1
DJ
11636echo "$as_me:$LINENO: checking where to find the target ar" >&5
11637echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11638if test "x${build}" != "x${host}" ; then
2429c060
PB
11639 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11640 # We already found the complete path
b8025f34
AS
11641 ac_dir=`dirname $AR_FOR_TARGET`
11642 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11643echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11644 else
11645 # Canadian cross, just use what we found
c6b750e1
DJ
11646 echo "$as_me:$LINENO: result: pre-installed" >&5
11647echo "${ECHO_T}pre-installed" >&6
2429c060 11648 fi
be01d343
PB
11649else
11650 ok=yes
11651 case " ${configdirs} " in
11652 *" binutils "*) ;;
11653 *) ok=no ;;
11654 esac
c6b750e1 11655
be01d343
PB
11656 if test $ok = yes; then
11657 # An in-tree tool is available and we can use it
11658 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11659 echo "$as_me:$LINENO: result: just compiled" >&5
11660echo "${ECHO_T}just compiled" >&6
2429c060
PB
11661 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11662 # We already found the complete path
b8025f34
AS
11663 ac_dir=`dirname $AR_FOR_TARGET`
11664 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11665echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11666 elif test "x$target" = "x$host"; then
11667 # We can use an host tool
11668 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11669 echo "$as_me:$LINENO: result: host tool" >&5
11670echo "${ECHO_T}host tool" >&6
be01d343
PB
11671 else
11672 # We need a cross tool
c6b750e1
DJ
11673 echo "$as_me:$LINENO: result: pre-installed" >&5
11674echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11675 fi
11676fi
4b900473 11677
c6b750e1
DJ
11678echo "$as_me:$LINENO: checking where to find the target as" >&5
11679echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11680if test "x${build}" != "x${host}" ; then
2429c060
PB
11681 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11682 # We already found the complete path
b8025f34
AS
11683 ac_dir=`dirname $AS_FOR_TARGET`
11684 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11685echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11686 else
11687 # Canadian cross, just use what we found
c6b750e1
DJ
11688 echo "$as_me:$LINENO: result: pre-installed" >&5
11689echo "${ECHO_T}pre-installed" >&6
2429c060 11690 fi
be01d343
PB
11691else
11692 ok=yes
11693 case " ${configdirs} " in
11694 *" gas "*) ;;
11695 *) ok=no ;;
11696 esac
c6b750e1 11697
be01d343
PB
11698 if test $ok = yes; then
11699 # An in-tree tool is available and we can use it
11700 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11701 echo "$as_me:$LINENO: result: just compiled" >&5
11702echo "${ECHO_T}just compiled" >&6
2429c060
PB
11703 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11704 # We already found the complete path
b8025f34
AS
11705 ac_dir=`dirname $AS_FOR_TARGET`
11706 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11707echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11708 elif test "x$target" = "x$host"; then
11709 # We can use an host tool
11710 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11711 echo "$as_me:$LINENO: result: host tool" >&5
11712echo "${ECHO_T}host tool" >&6
be01d343
PB
11713 else
11714 # We need a cross tool
c6b750e1
DJ
11715 echo "$as_me:$LINENO: result: pre-installed" >&5
11716echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11717 fi
11718fi
4b900473 11719
c6b750e1
DJ
11720echo "$as_me:$LINENO: checking where to find the target cc" >&5
11721echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11722if test "x${build}" != "x${host}" ; then
2429c060
PB
11723 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11724 # We already found the complete path
b8025f34
AS
11725 ac_dir=`dirname $CC_FOR_TARGET`
11726 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11727echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11728 else
11729 # Canadian cross, just use what we found
c6b750e1
DJ
11730 echo "$as_me:$LINENO: result: pre-installed" >&5
11731echo "${ECHO_T}pre-installed" >&6
2429c060 11732 fi
be01d343
PB
11733else
11734 ok=yes
11735 case " ${configdirs} " in
11736 *" gcc "*) ;;
11737 *) ok=no ;;
11738 esac
c6b750e1 11739
be01d343
PB
11740 if test $ok = yes; then
11741 # An in-tree tool is available and we can use it
11742 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11743 echo "$as_me:$LINENO: result: just compiled" >&5
11744echo "${ECHO_T}just compiled" >&6
2429c060
PB
11745 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11746 # We already found the complete path
b8025f34
AS
11747 ac_dir=`dirname $CC_FOR_TARGET`
11748 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11749echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11750 elif test "x$target" = "x$host"; then
11751 # We can use an host tool
11752 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11753 echo "$as_me:$LINENO: result: host tool" >&5
11754echo "${ECHO_T}host tool" >&6
be01d343
PB
11755 else
11756 # We need a cross tool
c6b750e1
DJ
11757 echo "$as_me:$LINENO: result: pre-installed" >&5
11758echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11759 fi
11760fi
4b900473 11761
c6b750e1
DJ
11762echo "$as_me:$LINENO: checking where to find the target c++" >&5
11763echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11764if test "x${build}" != "x${host}" ; then
2429c060
PB
11765 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11766 # We already found the complete path
b8025f34
AS
11767 ac_dir=`dirname $CXX_FOR_TARGET`
11768 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11769echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11770 else
11771 # Canadian cross, just use what we found
c6b750e1
DJ
11772 echo "$as_me:$LINENO: result: pre-installed" >&5
11773echo "${ECHO_T}pre-installed" >&6
2429c060 11774 fi
be01d343
PB
11775else
11776 ok=yes
11777 case " ${configdirs} " in
11778 *" gcc "*) ;;
11779 *) ok=no ;;
11780 esac
11781 case ,${enable_languages}, in
11782 *,c++,*) ;;
11783 *) ok=no ;;
11784 esac
11785 if test $ok = yes; then
11786 # An in-tree tool is available and we can use it
11787 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
11788 echo "$as_me:$LINENO: result: just compiled" >&5
11789echo "${ECHO_T}just compiled" >&6
2429c060
PB
11790 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11791 # We already found the complete path
b8025f34
AS
11792 ac_dir=`dirname $CXX_FOR_TARGET`
11793 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11794echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11795 elif test "x$target" = "x$host"; then
11796 # We can use an host tool
11797 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11798 echo "$as_me:$LINENO: result: host tool" >&5
11799echo "${ECHO_T}host tool" >&6
be01d343
PB
11800 else
11801 # We need a cross tool
c6b750e1
DJ
11802 echo "$as_me:$LINENO: result: pre-installed" >&5
11803echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11804 fi
11805fi
4b900473 11806
c6b750e1
DJ
11807echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11808echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11809if test "x${build}" != "x${host}" ; then
2429c060
PB
11810 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11811 # We already found the complete path
b8025f34
AS
11812 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11813 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11814echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11815 else
11816 # Canadian cross, just use what we found
c6b750e1
DJ
11817 echo "$as_me:$LINENO: result: pre-installed" >&5
11818echo "${ECHO_T}pre-installed" >&6
2429c060 11819 fi
be01d343
PB
11820else
11821 ok=yes
11822 case " ${configdirs} " in
11823 *" gcc "*) ;;
11824 *) ok=no ;;
11825 esac
11826 case ,${enable_languages}, in
11827 *,c++,*) ;;
11828 *) ok=no ;;
11829 esac
11830 if test $ok = yes; then
11831 # An in-tree tool is available and we can use it
11832 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
11833 echo "$as_me:$LINENO: result: just compiled" >&5
11834echo "${ECHO_T}just compiled" >&6
2429c060
PB
11835 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11836 # We already found the complete path
b8025f34
AS
11837 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11838 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11839echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11840 elif test "x$target" = "x$host"; then
11841 # We can use an host tool
11842 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11843 echo "$as_me:$LINENO: result: host tool" >&5
11844echo "${ECHO_T}host tool" >&6
be01d343
PB
11845 else
11846 # We need a cross tool
c6b750e1
DJ
11847 echo "$as_me:$LINENO: result: pre-installed" >&5
11848echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11849 fi
11850fi
4b900473 11851
c6b750e1
DJ
11852echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11853echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11854if test "x${build}" != "x${host}" ; then
2429c060
PB
11855 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11856 # We already found the complete path
b8025f34
AS
11857 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11858 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11859echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11860 else
11861 # Canadian cross, just use what we found
c6b750e1
DJ
11862 echo "$as_me:$LINENO: result: pre-installed" >&5
11863echo "${ECHO_T}pre-installed" >&6
2429c060 11864 fi
be01d343
PB
11865else
11866 ok=yes
11867 case " ${configdirs} " in
11868 *" binutils "*) ;;
11869 *) ok=no ;;
11870 esac
c6b750e1 11871
be01d343
PB
11872 if test $ok = yes; then
11873 # An in-tree tool is available and we can use it
11874 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11875 echo "$as_me:$LINENO: result: just compiled" >&5
11876echo "${ECHO_T}just compiled" >&6
2429c060
PB
11877 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11878 # We already found the complete path
b8025f34
AS
11879 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11880 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11881echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11882 elif test "x$target" = "x$host"; then
11883 # We can use an host tool
11884 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11885 echo "$as_me:$LINENO: result: host tool" >&5
11886echo "${ECHO_T}host tool" >&6
be01d343
PB
11887 else
11888 # We need a cross tool
c6b750e1
DJ
11889 echo "$as_me:$LINENO: result: pre-installed" >&5
11890echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11891 fi
11892fi
4b900473 11893
c6b750e1
DJ
11894echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11895echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11896if test "x${build}" != "x${host}" ; then
2429c060
PB
11897 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11898 # We already found the complete path
b8025f34
AS
11899 ac_dir=`dirname $GCC_FOR_TARGET`
11900 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11901echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11902 else
11903 # Canadian cross, just use what we found
c6b750e1
DJ
11904 echo "$as_me:$LINENO: result: pre-installed" >&5
11905echo "${ECHO_T}pre-installed" >&6
2429c060 11906 fi
be01d343
PB
11907else
11908 ok=yes
11909 case " ${configdirs} " in
11910 *" gcc "*) ;;
11911 *) ok=no ;;
11912 esac
c6b750e1 11913
be01d343
PB
11914 if test $ok = yes; then
11915 # An in-tree tool is available and we can use it
11916 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11917 echo "$as_me:$LINENO: result: just compiled" >&5
11918echo "${ECHO_T}just compiled" >&6
2429c060
PB
11919 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11920 # We already found the complete path
b8025f34
AS
11921 ac_dir=`dirname $GCC_FOR_TARGET`
11922 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11923echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11924 elif test "x$target" = "x$host"; then
11925 # We can use an host tool
11926 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11927 echo "$as_me:$LINENO: result: host tool" >&5
11928echo "${ECHO_T}host tool" >&6
be01d343
PB
11929 else
11930 # We need a cross tool
c6b750e1
DJ
11931 echo "$as_me:$LINENO: result: pre-installed" >&5
11932echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11933 fi
11934fi
4b900473 11935
c6b750e1
DJ
11936echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11937echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11938if test "x${build}" != "x${host}" ; then
2429c060
PB
11939 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11940 # We already found the complete path
b8025f34
AS
11941 ac_dir=`dirname $GCJ_FOR_TARGET`
11942 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11943echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11944 else
11945 # Canadian cross, just use what we found
c6b750e1
DJ
11946 echo "$as_me:$LINENO: result: pre-installed" >&5
11947echo "${ECHO_T}pre-installed" >&6
2429c060 11948 fi
be01d343
PB
11949else
11950 ok=yes
11951 case " ${configdirs} " in
11952 *" gcc "*) ;;
11953 *) ok=no ;;
11954 esac
11955 case ,${enable_languages}, in
11956 *,java,*) ;;
11957 *) ok=no ;;
11958 esac
11959 if test $ok = yes; then
11960 # An in-tree tool is available and we can use it
11961 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11962 echo "$as_me:$LINENO: result: just compiled" >&5
11963echo "${ECHO_T}just compiled" >&6
2429c060
PB
11964 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11965 # We already found the complete path
b8025f34
AS
11966 ac_dir=`dirname $GCJ_FOR_TARGET`
11967 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11968echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11969 elif test "x$target" = "x$host"; then
11970 # We can use an host tool
11971 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11972 echo "$as_me:$LINENO: result: host tool" >&5
11973echo "${ECHO_T}host tool" >&6
be01d343
PB
11974 else
11975 # We need a cross tool
c6b750e1
DJ
11976 echo "$as_me:$LINENO: result: pre-installed" >&5
11977echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11978 fi
11979fi
4b900473 11980
c6b750e1
DJ
11981echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11982echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11983if test "x${build}" != "x${host}" ; then
2429c060
PB
11984 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11985 # We already found the complete path
b8025f34
AS
11986 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11987 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11988echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11989 else
11990 # Canadian cross, just use what we found
c6b750e1
DJ
11991 echo "$as_me:$LINENO: result: pre-installed" >&5
11992echo "${ECHO_T}pre-installed" >&6
2429c060 11993 fi
be01d343
PB
11994else
11995 ok=yes
11996 case " ${configdirs} " in
11997 *" gcc "*) ;;
11998 *) ok=no ;;
11999 esac
12000 case ,${enable_languages}, in
12001 *,fortran,*) ;;
12002 *) ok=no ;;
12003 esac
12004 if test $ok = yes; then
12005 # An in-tree tool is available and we can use it
12006 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
12007 echo "$as_me:$LINENO: result: just compiled" >&5
12008echo "${ECHO_T}just compiled" >&6
2429c060
PB
12009 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12010 # We already found the complete path
b8025f34
AS
12011 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12012 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12013echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12014 elif test "x$target" = "x$host"; then
12015 # We can use an host tool
12016 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
12017 echo "$as_me:$LINENO: result: host tool" >&5
12018echo "${ECHO_T}host tool" >&6
be01d343
PB
12019 else
12020 # We need a cross tool
c6b750e1
DJ
12021 echo "$as_me:$LINENO: result: pre-installed" >&5
12022echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12023 fi
12024fi
4b900473 12025
c6b750e1
DJ
12026echo "$as_me:$LINENO: checking where to find the target ld" >&5
12027echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 12028if test "x${build}" != "x${host}" ; then
2429c060
PB
12029 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12030 # We already found the complete path
b8025f34
AS
12031 ac_dir=`dirname $LD_FOR_TARGET`
12032 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12033echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12034 else
12035 # Canadian cross, just use what we found
c6b750e1
DJ
12036 echo "$as_me:$LINENO: result: pre-installed" >&5
12037echo "${ECHO_T}pre-installed" >&6
2429c060 12038 fi
be01d343
PB
12039else
12040 ok=yes
12041 case " ${configdirs} " in
12042 *" ld "*) ;;
12043 *) ok=no ;;
12044 esac
c6b750e1 12045
be01d343
PB
12046 if test $ok = yes; then
12047 # An in-tree tool is available and we can use it
12048 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
12049 echo "$as_me:$LINENO: result: just compiled" >&5
12050echo "${ECHO_T}just compiled" >&6
2429c060
PB
12051 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12052 # We already found the complete path
b8025f34
AS
12053 ac_dir=`dirname $LD_FOR_TARGET`
12054 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12055echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12056 elif test "x$target" = "x$host"; then
12057 # We can use an host tool
12058 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
12059 echo "$as_me:$LINENO: result: host tool" >&5
12060echo "${ECHO_T}host tool" >&6
be01d343
PB
12061 else
12062 # We need a cross tool
c6b750e1
DJ
12063 echo "$as_me:$LINENO: result: pre-installed" >&5
12064echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12065 fi
12066fi
4b900473 12067
c6b750e1
DJ
12068echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12069echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 12070if test "x${build}" != "x${host}" ; then
2429c060
PB
12071 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12072 # We already found the complete path
b8025f34
AS
12073 ac_dir=`dirname $LIPO_FOR_TARGET`
12074 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12075echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12076 else
12077 # Canadian cross, just use what we found
c6b750e1
DJ
12078 echo "$as_me:$LINENO: result: pre-installed" >&5
12079echo "${ECHO_T}pre-installed" >&6
2429c060 12080 fi
be01d343 12081else
2429c060
PB
12082 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12083 # We already found the complete path
b8025f34
AS
12084 ac_dir=`dirname $LIPO_FOR_TARGET`
12085 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12086echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 12087 elif test "x$target" = "x$host"; then
be01d343
PB
12088 # We can use an host tool
12089 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
12090 echo "$as_me:$LINENO: result: host tool" >&5
12091echo "${ECHO_T}host tool" >&6
be01d343
PB
12092 else
12093 # We need a cross tool
c6b750e1
DJ
12094 echo "$as_me:$LINENO: result: pre-installed" >&5
12095echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12096 fi
12097fi
4b900473 12098
c6b750e1
DJ
12099echo "$as_me:$LINENO: checking where to find the target nm" >&5
12100echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 12101if test "x${build}" != "x${host}" ; then
2429c060
PB
12102 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12103 # We already found the complete path
b8025f34
AS
12104 ac_dir=`dirname $NM_FOR_TARGET`
12105 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12106echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12107 else
12108 # Canadian cross, just use what we found
c6b750e1
DJ
12109 echo "$as_me:$LINENO: result: pre-installed" >&5
12110echo "${ECHO_T}pre-installed" >&6
2429c060 12111 fi
be01d343
PB
12112else
12113 ok=yes
12114 case " ${configdirs} " in
12115 *" binutils "*) ;;
12116 *) ok=no ;;
12117 esac
c6b750e1 12118
be01d343
PB
12119 if test $ok = yes; then
12120 # An in-tree tool is available and we can use it
12121 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
12122 echo "$as_me:$LINENO: result: just compiled" >&5
12123echo "${ECHO_T}just compiled" >&6
2429c060
PB
12124 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12125 # We already found the complete path
b8025f34
AS
12126 ac_dir=`dirname $NM_FOR_TARGET`
12127 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12128echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12129 elif test "x$target" = "x$host"; then
12130 # We can use an host tool
12131 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
12132 echo "$as_me:$LINENO: result: host tool" >&5
12133echo "${ECHO_T}host tool" >&6
be01d343
PB
12134 else
12135 # We need a cross tool
c6b750e1
DJ
12136 echo "$as_me:$LINENO: result: pre-installed" >&5
12137echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12138 fi
12139fi
4b900473 12140
c6b750e1
DJ
12141echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12142echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 12143if test "x${build}" != "x${host}" ; then
2429c060
PB
12144 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12145 # We already found the complete path
b8025f34
AS
12146 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12147 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12148echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12149 else
12150 # Canadian cross, just use what we found
c6b750e1
DJ
12151 echo "$as_me:$LINENO: result: pre-installed" >&5
12152echo "${ECHO_T}pre-installed" >&6
2429c060 12153 fi
be01d343
PB
12154else
12155 ok=yes
12156 case " ${configdirs} " in
12157 *" binutils "*) ;;
12158 *) ok=no ;;
12159 esac
c6b750e1 12160
be01d343
PB
12161 if test $ok = yes; then
12162 # An in-tree tool is available and we can use it
12163 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
12164 echo "$as_me:$LINENO: result: just compiled" >&5
12165echo "${ECHO_T}just compiled" >&6
2429c060
PB
12166 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12167 # We already found the complete path
b8025f34
AS
12168 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12169 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12170echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12171 elif test "x$target" = "x$host"; then
12172 # We can use an host tool
12173 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
12174 echo "$as_me:$LINENO: result: host tool" >&5
12175echo "${ECHO_T}host tool" >&6
be01d343
PB
12176 else
12177 # We need a cross tool
c6b750e1
DJ
12178 echo "$as_me:$LINENO: result: pre-installed" >&5
12179echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12180 fi
12181fi
4b900473 12182
c6b750e1
DJ
12183echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12184echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 12185if test "x${build}" != "x${host}" ; then
2429c060
PB
12186 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12187 # We already found the complete path
b8025f34
AS
12188 ac_dir=`dirname $RANLIB_FOR_TARGET`
12189 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12190echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12191 else
12192 # Canadian cross, just use what we found
c6b750e1
DJ
12193 echo "$as_me:$LINENO: result: pre-installed" >&5
12194echo "${ECHO_T}pre-installed" >&6
2429c060 12195 fi
be01d343
PB
12196else
12197 ok=yes
12198 case " ${configdirs} " in
12199 *" binutils "*) ;;
12200 *) ok=no ;;
12201 esac
c6b750e1 12202
be01d343
PB
12203 if test $ok = yes; then
12204 # An in-tree tool is available and we can use it
12205 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
12206 echo "$as_me:$LINENO: result: just compiled" >&5
12207echo "${ECHO_T}just compiled" >&6
2429c060
PB
12208 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12209 # We already found the complete path
b8025f34
AS
12210 ac_dir=`dirname $RANLIB_FOR_TARGET`
12211 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12212echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12213 elif test "x$target" = "x$host"; then
12214 # We can use an host tool
12215 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
12216 echo "$as_me:$LINENO: result: host tool" >&5
12217echo "${ECHO_T}host tool" >&6
be01d343
PB
12218 else
12219 # We need a cross tool
c6b750e1
DJ
12220 echo "$as_me:$LINENO: result: pre-installed" >&5
12221echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12222 fi
12223fi
4b900473 12224
c6b750e1
DJ
12225echo "$as_me:$LINENO: checking where to find the target strip" >&5
12226echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 12227if test "x${build}" != "x${host}" ; then
2429c060
PB
12228 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12229 # We already found the complete path
b8025f34
AS
12230 ac_dir=`dirname $STRIP_FOR_TARGET`
12231 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12232echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12233 else
12234 # Canadian cross, just use what we found
c6b750e1
DJ
12235 echo "$as_me:$LINENO: result: pre-installed" >&5
12236echo "${ECHO_T}pre-installed" >&6
2429c060 12237 fi
be01d343
PB
12238else
12239 ok=yes
12240 case " ${configdirs} " in
12241 *" binutils "*) ;;
12242 *) ok=no ;;
12243 esac
c6b750e1 12244
be01d343
PB
12245 if test $ok = yes; then
12246 # An in-tree tool is available and we can use it
12247 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
12248 echo "$as_me:$LINENO: result: just compiled" >&5
12249echo "${ECHO_T}just compiled" >&6
2429c060
PB
12250 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12251 # We already found the complete path
b8025f34
AS
12252 ac_dir=`dirname $STRIP_FOR_TARGET`
12253 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12254echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12255 elif test "x$target" = "x$host"; then
12256 # We can use an host tool
12257 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
12258 echo "$as_me:$LINENO: result: host tool" >&5
12259echo "${ECHO_T}host tool" >&6
be01d343
PB
12260 else
12261 # We need a cross tool
c6b750e1
DJ
12262 echo "$as_me:$LINENO: result: pre-installed" >&5
12263echo "${ECHO_T}pre-installed" >&6
be01d343
PB
12264 fi
12265fi
4b900473 12266
c6b750e1
DJ
12267echo "$as_me:$LINENO: checking where to find the target windres" >&5
12268echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12269if test "x${build}" != "x${host}" ; then
2429c060
PB
12270 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12271 # We already found the complete path
b8025f34
AS
12272 ac_dir=`dirname $WINDRES_FOR_TARGET`
12273 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12274echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12275 else
12276 # Canadian cross, just use what we found
c6b750e1
DJ
12277 echo "$as_me:$LINENO: result: pre-installed" >&5
12278echo "${ECHO_T}pre-installed" >&6
2429c060 12279 fi
be01d343
PB
12280else
12281 ok=yes
12282 case " ${configdirs} " in
12283 *" binutils "*) ;;
12284 *) ok=no ;;
12285 esac
c6b750e1 12286
be01d343
PB
12287 if test $ok = yes; then
12288 # An in-tree tool is available and we can use it
12289 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12290 echo "$as_me:$LINENO: result: just compiled" >&5
12291echo "${ECHO_T}just compiled" >&6
2429c060
PB
12292 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12293 # We already found the complete path
b8025f34
AS
12294 ac_dir=`dirname $WINDRES_FOR_TARGET`
12295 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12296echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12297 elif test "x$target" = "x$host"; then
12298 # We can use an host tool
12299 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12300 echo "$as_me:$LINENO: result: host tool" >&5
12301echo "${ECHO_T}host tool" >&6
be01d343
PB
12302 else
12303 # We need a cross tool
c6b750e1
DJ
12304 echo "$as_me:$LINENO: result: pre-installed" >&5
12305echo "${ECHO_T}pre-installed" >&6
be01d343 12306 fi
a0da8069 12307fi
54752a6b 12308
0c24b341
NC
12309echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12310echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12311if test "x${build}" != "x${host}" ; then
12312 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12313 # We already found the complete path
12314 ac_dir=`dirname $WINDMC_FOR_TARGET`
12315 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12316echo "${ECHO_T}pre-installed in $ac_dir" >&6
12317 else
12318 # Canadian cross, just use what we found
12319 echo "$as_me:$LINENO: result: pre-installed" >&5
12320echo "${ECHO_T}pre-installed" >&6
12321 fi
12322else
12323 ok=yes
12324 case " ${configdirs} " in
12325 *" binutils "*) ;;
12326 *) ok=no ;;
12327 esac
12328
12329 if test $ok = yes; then
12330 # An in-tree tool is available and we can use it
12331 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12332 echo "$as_me:$LINENO: result: just compiled" >&5
12333echo "${ECHO_T}just compiled" >&6
12334 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12335 # We already found the complete path
12336 ac_dir=`dirname $WINDMC_FOR_TARGET`
12337 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12338echo "${ECHO_T}pre-installed in $ac_dir" >&6
12339 elif test "x$target" = "x$host"; then
12340 # We can use an host tool
12341 WINDMC_FOR_TARGET='$(WINDMC)'
12342 echo "$as_me:$LINENO: result: host tool" >&5
12343echo "${ECHO_T}host tool" >&6
12344 else
12345 # We need a cross tool
12346 echo "$as_me:$LINENO: result: pre-installed" >&5
12347echo "${ECHO_T}pre-installed" >&6
12348 fi
12349fi
12350
54752a6b
NN
12351
12352
be01d343 12353
4b900473 12354
a0da8069
NN
12355# Certain tools may need extra flags.
12356AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12357RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12358NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12359
be01d343
PB
12360# When building target libraries, except in a Canadian cross, we use
12361# the same toolchain as the compiler we just built.
12362COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12363COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12364COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12365if test $host = $build; then
12366 case " $configdirs " in
12367 *" gcc "*)
12368 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12369 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12370 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12371 ;;
12372 esac
12373fi
12374
12375
12376
12377
12378
c6b750e1
DJ
12379echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12380echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12381# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12382if test "${enable_maintainer_mode+set}" = set; then
12383 enableval="$enable_maintainer_mode"
12384 USE_MAINTAINER_MODE=$enableval
12385else
12386 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12387fi;
12388echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12389echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12390
12391
12392if test "$USE_MAINTAINER_MODE" = yes; then
12393 MAINTAINER_MODE_TRUE=
12394 MAINTAINER_MODE_FALSE='#'
12395else
12396 MAINTAINER_MODE_TRUE='#'
12397 MAINTAINER_MODE_FALSE=
c6b750e1 12398fi
3d5e36ae
AO
12399MAINT=$MAINTAINER_MODE_TRUE
12400
1d39f329
NN
12401# ---------------------
12402# GCC bootstrap support
12403# ---------------------
12404
12405# Stage specific cflags for build.
12406stage1_cflags="-g"
12407case $build in
12408 vax-*-*)
12409 case ${GCC} in
12410 yes) stage1_cflags="-g -Wa,-J" ;;
12411 *) stage1_cflags="-g -J" ;;
12412 esac ;;
1d39f329
NN
12413esac
12414
1d89b610
PB
12415# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12416if test "$GCC" = yes; then
12417 saved_CFLAGS="$CFLAGS"
12418
12419 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12420 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12421 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12422echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12423 cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h. */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h. */
12429
2038f525
PB
12430#if (__GNUC__ < 3) \
12431 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12432 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12433#error http://gcc.gnu.org/PR29382
12434#endif
12435
c6b750e1
DJ
12436int
12437main ()
12438{
12439
12440 ;
12441 return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12446 (eval $ac_compile) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest.$ac_objext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 echo "$as_me:$LINENO: result: yes" >&5
12467echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12468else
12469 echo "$as_me: failed program was:" >&5
12470sed 's/^/| /' conftest.$ac_ext >&5
12471
12472echo "$as_me:$LINENO: result: no" >&5
12473echo "${ECHO_T}no" >&6
12474fi
12475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12476
12477 CFLAGS="$saved_CFLAGS"
12478fi
12479
12480
1d39f329 12481
8a0d8a5c
PB
12482# Enable --enable-checking in stage1 of the compiler.
12483# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12484if test "${enable_stage1_checking+set}" = set; then
12485 enableval="$enable_stage1_checking"
12486 stage1_checking=--enable-checking=${enable_stage1_checking}
12487else
5566c1fa 12488 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12489 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12490else
5566c1fa 12491 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12492fi
c6b750e1 12493fi;
8a0d8a5c
PB
12494
12495
1d39f329 12496# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12497# Check whether --enable-werror or --disable-werror was given.
12498if test "${enable_werror+set}" = set; then
12499 enableval="$enable_werror"
c6b750e1 12500
1d39f329 12501else
a0323144 12502 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12503 enable_werror=yes
79fcd0ec
PB
12504else
12505 enable_werror=no
12506fi
c6b750e1 12507fi;
1a6f2dc7
NN
12508case ${enable_werror} in
12509 yes) stage2_werror_flag="--enable-werror-always" ;;
12510 *) stage2_werror_flag="" ;;
1d39f329
NN
12511esac
12512
12513
108a6f8e 12514# Flags needed to enable html installing and building
c6b750e1 12515
108a6f8e
CD
12516# Check whether --with-datarootdir or --without-datarootdir was given.
12517if test "${with_datarootdir+set}" = set; then
12518 withval="$with_datarootdir"
12519 datarootdir="\${prefix}/${withval}"
12520else
12521 datarootdir="\${prefix}/share"
c6b750e1 12522fi;
108a6f8e
CD
12523
12524
12525# Check whether --with-docdir or --without-docdir was given.
12526if test "${with_docdir+set}" = set; then
12527 withval="$with_docdir"
12528 docdir="\${prefix}/${withval}"
12529else
12530 docdir="\${datarootdir}/doc"
c6b750e1 12531fi;
108a6f8e
CD
12532
12533
a3ca38d2
DD
12534# Check whether --with-pdfdir or --without-pdfdir was given.
12535if test "${with_pdfdir+set}" = set; then
12536 withval="$with_pdfdir"
12537 pdfdir="\${prefix}/${withval}"
12538else
12539 pdfdir="\${docdir}"
12540fi;
12541
12542
108a6f8e
CD
12543# Check whether --with-htmldir or --without-htmldir was given.
12544if test "${with_htmldir+set}" = set; then
12545 withval="$with_htmldir"
12546 htmldir="\${prefix}/${withval}"
12547else
12548 htmldir="\${docdir}"
c6b750e1 12549fi;
108a6f8e
CD
12550
12551
12552
12553
12554
b8025f34 12555
c6b750e1
DJ
12556 ac_config_files="$ac_config_files Makefile"
12557cat >confcache <<\_ACEOF
a0da8069
NN
12558# This file is a shell script that caches the results of configure
12559# tests run on this system so they can be shared between configure
c6b750e1
DJ
12560# scripts and configure runs, see configure's option --config-cache.
12561# It is not useful on other systems. If it contains results you don't
12562# want to keep, you may remove or edit it.
a0da8069 12563#
c6b750e1
DJ
12564# config.status only pays attention to the cache file if you give it
12565# the --recheck option to rerun configure.
a0da8069 12566#
c6b750e1
DJ
12567# `ac_cv_env_foo' variables (set or unset) will be overridden when
12568# loading this file, other *unset* `ac_cv_foo' will be assigned the
12569# following values.
12570
12571_ACEOF
12572
a0da8069
NN
12573# The following way of writing the cache mishandles newlines in values,
12574# but we know of no workaround that is simple, portable, and efficient.
12575# So, don't put newlines in cache variables' values.
12576# Ultrix sh set writes to stderr and can't be redirected directly,
12577# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12578{
12579 (set) 2>&1 |
12580 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12581 *ac_space=\ *)
12582 # `set' does not quote correctly, so add quotes (double-quote
12583 # substitution turns \\\\ into \\, and sed turns \\ into \).
12584 sed -n \
12585 "s/'/'\\\\''/g;
12586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12587 ;;
12588 *)
12589 # `set' quotes correctly as required by POSIX, so do not add quotes.
12590 sed -n \
12591 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12592 ;;
12593 esac;
12594} |
12595 sed '
12596 t clear
12597 : clear
12598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12599 t end
12600 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12601 : end' >>confcache
12602if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12603 if test -w $cache_file; then
c6b750e1
DJ
12604 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12605 cat confcache >$cache_file
a0da8069
NN
12606 else
12607 echo "not updating unwritable cache $cache_file"
12608 fi
852e5f18 12609fi
a0da8069 12610rm -f confcache
852e5f18 12611
a0da8069
NN
12612test "x$prefix" = xNONE && prefix=$ac_default_prefix
12613# Let make expand exec_prefix.
12614test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12615
c6b750e1
DJ
12616# VPATH may cause trouble with some makes, so we remove $(srcdir),
12617# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12618# trailing colons and then remove the whole line if VPATH becomes empty
12619# (actually we leave an empty line to preserve line numbers).
a0da8069 12620if test "x$srcdir" = x.; then
c6b750e1
DJ
12621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12622s/:*\$(srcdir):*/:/;
12623s/:*\${srcdir}:*/:/;
12624s/:*@srcdir@:*/:/;
12625s/^\([^=]*=[ ]*\):*/\1/;
12626s/:*$//;
12627s/^[^=]*=[ ]*$//;
12628}'
a0da8069 12629fi
252b5132 12630
a0da8069
NN
12631# Transform confdefs.h into DEFS.
12632# Protect against shell expansion while executing Makefile rules.
12633# Protect against Makefile macro expansion.
c6b750e1
DJ
12634#
12635# If the first sed substitution is executed (which looks for macros that
12636# take arguments), then we branch to the quote section. Otherwise,
12637# look for a macro that doesn't take arguments.
12638cat >confdef2opt.sed <<\_ACEOF
12639t clear
12640: clear
12641s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12642t quote
12643s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12644t quote
12645d
12646: quote
12647s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12648s,\[,\\&,g
12649s,\],\\&,g
12650s,\$,$$,g
12651p
12652_ACEOF
12653# We use echo to avoid assuming a particular line-breaking character.
12654# The extra dot is to prevent the shell from consuming trailing
12655# line-breaks from the sub-command output. A line-break within
12656# single-quotes doesn't work because, if this script is created in a
12657# platform that uses two characters for line-breaks (e.g., DOS), tr
12658# would break.
12659ac_LF_and_DOT=`echo; echo .`
12660DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12661rm -f confdef2opt.sed
12662
12663
12664ac_libobjs=
12665ac_ltlibobjs=
12666for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12667 # 1. Remove the extension, and $U if already installed.
12668 ac_i=`echo "$ac_i" |
12669 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12670 # 2. Add them.
12671 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12672 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12673done
12674LIBOBJS=$ac_libobjs
852e5f18 12675
c6b750e1 12676LTLIBOBJS=$ac_ltlibobjs
376a0e54 12677
cac3d6c4 12678
c6b750e1
DJ
12679
12680: ${CONFIG_STATUS=./config.status}
12681ac_clean_files_save=$ac_clean_files
12682ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12683{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12684echo "$as_me: creating $CONFIG_STATUS" >&6;}
12685cat >$CONFIG_STATUS <<_ACEOF
12686#! $SHELL
12687# Generated by $as_me.
a0da8069 12688# Run this file to recreate the current configuration.
a0da8069 12689# Compiler output produced by configure, useful for debugging
c6b750e1 12690# configure, is in config.log if it exists.
376a0e54 12691
c6b750e1
DJ
12692debug=false
12693ac_cs_recheck=false
12694ac_cs_silent=false
12695SHELL=\${CONFIG_SHELL-$SHELL}
12696_ACEOF
12697
12698cat >>$CONFIG_STATUS <<\_ACEOF
12699## --------------------- ##
12700## M4sh Initialization. ##
12701## --------------------- ##
12702
12703# Be Bourne compatible
12704if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12705 emulate sh
12706 NULLCMD=:
12707 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12708 # is contrary to our usage. Disable this feature.
12709 alias -g '${1+"$@"}'='"$@"'
12710elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12711 set -o posix
12712fi
12713DUALCASE=1; export DUALCASE # for MKS sh
12714
12715# Support unset when possible.
12716if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12717 as_unset=unset
12718else
12719 as_unset=false
12720fi
12721
12722
12723# Work around bugs in pre-3.0 UWIN ksh.
12724$as_unset ENV MAIL MAILPATH
12725PS1='$ '
12726PS2='> '
12727PS4='+ '
12728
12729# NLS nuisances.
12730for as_var in \
12731 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12732 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12733 LC_TELEPHONE LC_TIME
12734do
12735 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12736 eval $as_var=C; export $as_var
12737 else
12738 $as_unset $as_var
12739 fi
12740done
12741
12742# Required to use basename.
12743if expr a : '\(a\)' >/dev/null 2>&1; then
12744 as_expr=expr
12745else
12746 as_expr=false
12747fi
12748
12749if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12750 as_basename=basename
12751else
12752 as_basename=false
12753fi
12754
12755
12756# Name of the executable.
12757as_me=`$as_basename "$0" ||
12758$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12759 X"$0" : 'X\(//\)$' \| \
12760 X"$0" : 'X\(/\)$' \| \
12761 . : '\(.\)' 2>/dev/null ||
12762echo X/"$0" |
12763 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12764 /^X\/\(\/\/\)$/{ s//\1/; q; }
12765 /^X\/\(\/\).*/{ s//\1/; q; }
12766 s/.*/./; q'`
12767
12768
12769# PATH needs CR, and LINENO needs CR and PATH.
12770# Avoid depending upon Character Ranges.
12771as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12772as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12773as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12774as_cr_digits='0123456789'
12775as_cr_alnum=$as_cr_Letters$as_cr_digits
12776
12777# The user is always right.
12778if test "${PATH_SEPARATOR+set}" != set; then
12779 echo "#! /bin/sh" >conf$$.sh
12780 echo "exit 0" >>conf$$.sh
12781 chmod +x conf$$.sh
12782 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12783 PATH_SEPARATOR=';'
12784 else
12785 PATH_SEPARATOR=:
12786 fi
12787 rm -f conf$$.sh
12788fi
12789
12790
12791 as_lineno_1=$LINENO
12792 as_lineno_2=$LINENO
12793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12794 test "x$as_lineno_1" != "x$as_lineno_2" &&
12795 test "x$as_lineno_3" = "x$as_lineno_2" || {
12796 # Find who we are. Look in the path if we contain no path at all
12797 # relative or not.
12798 case $0 in
12799 *[\\/]* ) as_myself=$0 ;;
12800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801for as_dir in $PATH
12802do
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12806done
12807
12808 ;;
12809 esac
12810 # We did not find ourselves, most probably we were run as `sh COMMAND'
12811 # in which case we are not to be found in the path.
12812 if test "x$as_myself" = x; then
12813 as_myself=$0
12814 fi
12815 if test ! -f "$as_myself"; then
12816 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12817echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12818 { (exit 1); exit 1; }; }
12819 fi
12820 case $CONFIG_SHELL in
12821 '')
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12824do
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
12827 for as_base in sh bash ksh sh5; do
12828 case $as_dir in
12829 /*)
12830 if ("$as_dir/$as_base" -c '
12831 as_lineno_1=$LINENO
12832 as_lineno_2=$LINENO
12833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12834 test "x$as_lineno_1" != "x$as_lineno_2" &&
12835 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12836 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12837 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12838 CONFIG_SHELL=$as_dir/$as_base
12839 export CONFIG_SHELL
12840 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12841 fi;;
12842 esac
12843 done
12844done
12845;;
12846 esac
12847
12848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12849 # uniformly replaced by the line number. The first 'sed' inserts a
12850 # line-number line before each line; the second 'sed' does the real
12851 # work. The second script uses 'N' to pair each line-number line
12852 # with the numbered line, and appends trailing '-' during
12853 # substitution so that $LINENO is not a special case at line end.
12854 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12855 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12856 sed '=' <$as_myself |
12857 sed '
12858 N
12859 s,$,-,
12860 : loop
12861 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12862 t loop
12863 s,-$,,
12864 s,^['$as_cr_digits']*\n,,
12865 ' >$as_me.lineno &&
12866 chmod +x $as_me.lineno ||
12867 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12868echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12869 { (exit 1); exit 1; }; }
12870
12871 # Don't try to exec as it changes $[0], causing all sort of problems
12872 # (the dirname of $[0] is not the place where we might find the
12873 # original and so on. Autoconf is especially sensible to this).
12874 . ./$as_me.lineno
12875 # Exit status is that of the last command.
12876 exit
12877}
12878
12879
12880case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12881 *c*,-n*) ECHO_N= ECHO_C='
12882' ECHO_T=' ' ;;
12883 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12884 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12885esac
12886
12887if expr a : '\(a\)' >/dev/null 2>&1; then
12888 as_expr=expr
12889else
12890 as_expr=false
12891fi
12892
12893rm -f conf$$ conf$$.exe conf$$.file
12894echo >conf$$.file
12895if ln -s conf$$.file conf$$ 2>/dev/null; then
12896 # We could just check for DJGPP; but this test a) works b) is more generic
12897 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12898 if test -f conf$$.exe; then
12899 # Don't use ln at all; we don't have any links
12900 as_ln_s='cp -p'
12901 else
12902 as_ln_s='ln -s'
12903 fi
12904elif ln conf$$.file conf$$ 2>/dev/null; then
12905 as_ln_s=ln
12906else
12907 as_ln_s='cp -p'
12908fi
12909rm -f conf$$ conf$$.exe conf$$.file
12910
12911if mkdir -p . 2>/dev/null; then
12912 as_mkdir_p=:
12913else
12914 test -d ./-p && rmdir ./-p
12915 as_mkdir_p=false
12916fi
12917
12918as_executable_p="test -f"
12919
12920# Sed expression to map a string onto a valid CPP name.
12921as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12922
12923# Sed expression to map a string onto a valid variable name.
12924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12925
12926
12927# IFS
12928# We need space, tab and new line, in precisely that order.
12929as_nl='
12930'
12931IFS=" $as_nl"
12932
12933# CDPATH.
12934$as_unset CDPATH
12935
12936exec 6>&1
12937
12938# Open the log real soon, to keep \$[0] and so on meaningful, and to
12939# report actual input values of CONFIG_FILES etc. instead of their
12940# values after options handling. Logging --version etc. is OK.
12941exec 5>>config.log
12942{
12943 echo
12944 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12945## Running $as_me. ##
12946_ASBOX
12947} >&5
12948cat >&5 <<_CSEOF
12949
12950This file was extended by $as_me, which was
12951generated by GNU Autoconf 2.59. Invocation command line was
12952
12953 CONFIG_FILES = $CONFIG_FILES
12954 CONFIG_HEADERS = $CONFIG_HEADERS
12955 CONFIG_LINKS = $CONFIG_LINKS
12956 CONFIG_COMMANDS = $CONFIG_COMMANDS
12957 $ $0 $@
12958
12959_CSEOF
12960echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12961echo >&5
12962_ACEOF
12963
12964# Files that config.status was made for.
12965if test -n "$ac_config_files"; then
12966 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12967fi
12968
12969if test -n "$ac_config_headers"; then
12970 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12971fi
12972
12973if test -n "$ac_config_links"; then
12974 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12975fi
12976
12977if test -n "$ac_config_commands"; then
12978 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12979fi
12980
12981cat >>$CONFIG_STATUS <<\_ACEOF
12982
12983ac_cs_usage="\
12984\`$as_me' instantiates files from templates according to the
12985current configuration.
12986
12987Usage: $0 [OPTIONS] [FILE]...
12988
12989 -h, --help print this help, then exit
12990 -V, --version print version number, then exit
12991 -q, --quiet do not print progress messages
12992 -d, --debug don't remove temporary files
12993 --recheck update $as_me by reconfiguring in the same conditions
12994 --file=FILE[:TEMPLATE]
12995 instantiate the configuration file FILE
12996
12997Configuration files:
12998$config_files
12999
13000Report bugs to <bug-autoconf@gnu.org>."
13001_ACEOF
13002
13003cat >>$CONFIG_STATUS <<_ACEOF
13004ac_cs_version="\\
13005config.status
13006configured by $0, generated by GNU Autoconf 2.59,
13007 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13008
13009Copyright (C) 2003 Free Software Foundation, Inc.
13010This config.status script is free software; the Free Software Foundation
13011gives unlimited permission to copy, distribute and modify it."
13012srcdir=$srcdir
13013INSTALL="$INSTALL"
13014_ACEOF
13015
13016cat >>$CONFIG_STATUS <<\_ACEOF
13017# If no file are specified by the user, then we need to provide default
13018# value. By we need to know if files were specified by the user.
13019ac_need_defaults=:
13020while test $# != 0
a0da8069 13021do
c6b750e1
DJ
13022 case $1 in
13023 --*=*)
13024 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13025 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13026 ac_shift=:
13027 ;;
13028 -*)
13029 ac_option=$1
13030 ac_optarg=$2
13031 ac_shift=shift
13032 ;;
13033 *) # This is not an option, so the user has probably given explicit
13034 # arguments.
13035 ac_option=$1
13036 ac_need_defaults=false;;
13037 esac
13038
13039 case $ac_option in
13040 # Handling of the options.
13041_ACEOF
13042cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 13043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
13044 ac_cs_recheck=: ;;
13045 --version | --vers* | -V )
13046 echo "$ac_cs_version"; exit 0 ;;
13047 --he | --h)
13048 # Conflict between --help and --header
13049 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13050Try \`$0 --help' for more information." >&5
13051echo "$as_me: error: ambiguous option: $1
13052Try \`$0 --help' for more information." >&2;}
13053 { (exit 1); exit 1; }; };;
13054 --help | --hel | -h )
13055 echo "$ac_cs_usage"; exit 0 ;;
13056 --debug | --d* | -d )
13057 debug=: ;;
13058 --file | --fil | --fi | --f )
13059 $ac_shift
13060 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13061 ac_need_defaults=false;;
13062 --header | --heade | --head | --hea )
13063 $ac_shift
13064 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13065 ac_need_defaults=false;;
13066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13068 ac_cs_silent=: ;;
13069
13070 # This is an error.
13071 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13072Try \`$0 --help' for more information." >&5
13073echo "$as_me: error: unrecognized option: $1
13074Try \`$0 --help' for more information." >&2;}
13075 { (exit 1); exit 1; }; } ;;
13076
13077 *) ac_config_targets="$ac_config_targets $1" ;;
13078
376a0e54 13079 esac
c6b750e1 13080 shift
376a0e54
CM
13081done
13082
c6b750e1 13083ac_configure_extra_args=
376a0e54 13084
c6b750e1
DJ
13085if $ac_cs_silent; then
13086 exec 6>/dev/null
13087 ac_configure_extra_args="$ac_configure_extra_args --silent"
13088fi
376a0e54 13089
c6b750e1
DJ
13090_ACEOF
13091cat >>$CONFIG_STATUS <<_ACEOF
13092if \$ac_cs_recheck; then
13093 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13094 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13095fi
13096
13097_ACEOF
13098
13099
13100
13101
13102
13103cat >>$CONFIG_STATUS <<\_ACEOF
13104for ac_config_target in $ac_config_targets
13105do
13106 case "$ac_config_target" in
13107 # Handling of arguments.
13108 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13109 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13110echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13111 { (exit 1); exit 1; }; };;
13112 esac
13113done
13114
13115# If the user did not use the arguments to specify the items to instantiate,
13116# then the envvar interface is used. Set only those that are not.
13117# We use the long form for the default assignment because of an extremely
13118# bizarre bug on SunOS 4.1.3.
13119if $ac_need_defaults; then
13120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13121fi
13122
13123# Have a temporary directory for convenience. Make it in the build tree
13124# simply because there is no reason to put it here, and in addition,
13125# creating and moving files from /tmp can sometimes cause problems.
13126# Create a temporary directory, and hook for its removal unless debugging.
13127$debug ||
13128{
13129 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13130 trap '{ (exit 1); exit 1; }' 1 2 13 15
13131}
13132
13133# Create a (secure) tmp directory for tmp files.
13134
13135{
13136 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13137 test -n "$tmp" && test -d "$tmp"
13138} ||
13139{
13140 tmp=./confstat$$-$RANDOM
13141 (umask 077 && mkdir $tmp)
13142} ||
13143{
13144 echo "$me: cannot create a temporary directory in ." >&2
13145 { (exit 1); exit 1; }
13146}
13147
13148_ACEOF
13149
13150cat >>$CONFIG_STATUS <<_ACEOF
13151
13152#
13153# CONFIG_FILES section.
13154#
13155
13156# No need to generate the scripts if there are no CONFIG_FILES.
13157# This happens for instance when ./config.status config.h
13158if test -n "\$CONFIG_FILES"; then
13159 # Protect against being on the right side of a sed subst in config.status.
13160 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13161 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13162s,@SHELL@,$SHELL,;t t
13163s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13164s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13165s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13166s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13167s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13168s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13169s,@exec_prefix@,$exec_prefix,;t t
13170s,@prefix@,$prefix,;t t
13171s,@program_transform_name@,$program_transform_name,;t t
13172s,@bindir@,$bindir,;t t
13173s,@sbindir@,$sbindir,;t t
13174s,@libexecdir@,$libexecdir,;t t
13175s,@datadir@,$datadir,;t t
13176s,@sysconfdir@,$sysconfdir,;t t
13177s,@sharedstatedir@,$sharedstatedir,;t t
13178s,@localstatedir@,$localstatedir,;t t
13179s,@libdir@,$libdir,;t t
13180s,@includedir@,$includedir,;t t
13181s,@oldincludedir@,$oldincludedir,;t t
13182s,@infodir@,$infodir,;t t
13183s,@mandir@,$mandir,;t t
13184s,@build_alias@,$build_alias,;t t
13185s,@host_alias@,$host_alias,;t t
13186s,@target_alias@,$target_alias,;t t
13187s,@DEFS@,$DEFS,;t t
13188s,@ECHO_C@,$ECHO_C,;t t
13189s,@ECHO_N@,$ECHO_N,;t t
13190s,@ECHO_T@,$ECHO_T,;t t
13191s,@LIBS@,$LIBS,;t t
5b553f7e 13192s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
13193s,@build@,$build,;t t
13194s,@build_cpu@,$build_cpu,;t t
13195s,@build_vendor@,$build_vendor,;t t
13196s,@build_os@,$build_os,;t t
13197s,@build_noncanonical@,$build_noncanonical,;t t
13198s,@host_noncanonical@,$host_noncanonical,;t t
13199s,@target_noncanonical@,$target_noncanonical,;t t
13200s,@host@,$host,;t t
13201s,@host_cpu@,$host_cpu,;t t
13202s,@host_vendor@,$host_vendor,;t t
13203s,@host_os@,$host_os,;t t
13204s,@target@,$target,;t t
13205s,@target_cpu@,$target_cpu,;t t
13206s,@target_vendor@,$target_vendor,;t t
13207s,@target_os@,$target_os,;t t
13208s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13209s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13210s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13211s,@LN@,$LN,;t t
13212s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
13213s,@build_libsubdir@,$build_libsubdir,;t t
13214s,@build_subdir@,$build_subdir,;t t
13215s,@host_subdir@,$host_subdir,;t t
13216s,@target_subdir@,$target_subdir,;t t
13217s,@CC@,$CC,;t t
13218s,@CFLAGS@,$CFLAGS,;t t
13219s,@LDFLAGS@,$LDFLAGS,;t t
13220s,@CPPFLAGS@,$CPPFLAGS,;t t
13221s,@ac_ct_CC@,$ac_ct_CC,;t t
13222s,@EXEEXT@,$EXEEXT,;t t
13223s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
13224s,@CXX@,$CXX,;t t
13225s,@CXXFLAGS@,$CXXFLAGS,;t t
13226s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
13227s,@GNATBIND@,$GNATBIND,;t t
13228s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
13229s,@GNATMAKE@,$GNATMAKE,;t t
13230s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
13231s,@do_compare@,$do_compare,;t t
13232s,@gmplibs@,$gmplibs,;t t
13233s,@gmpinc@,$gmpinc,;t t
e28c595f
JM
13234s,@ppllibs@,$ppllibs,;t t
13235s,@pplinc@,$pplinc,;t t
13236s,@clooglibs@,$clooglibs,;t t
13237s,@clooginc@,$clooginc,;t t
c6b750e1
DJ
13238s,@stage1_languages@,$stage1_languages,;t t
13239s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 13240s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
13241s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13242s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1 13243s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3bbd2f8f 13244s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
c6b750e1
DJ
13245s,@tooldir@,$tooldir,;t t
13246s,@build_tooldir@,$build_tooldir,;t t
13247s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13248s,@GDB_TK@,$GDB_TK,;t t
13249s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13250s,@build_configargs@,$build_configargs,;t t
13251s,@build_configdirs@,$build_configdirs,;t t
13252s,@host_configargs@,$host_configargs,;t t
13253s,@configdirs@,$configdirs,;t t
13254s,@target_configargs@,$target_configargs,;t t
1576798e
PB
13255s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13256s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 13257s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
13258s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13259s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13260s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13261s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13262s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13263s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13264s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13265s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13266s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13267s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13268s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13269s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
13270s,@config_shell@,$config_shell,;t t
13271s,@YACC@,$YACC,;t t
13272s,@BISON@,$BISON,;t t
13273s,@M4@,$M4,;t t
13274s,@LEX@,$LEX,;t t
13275s,@FLEX@,$FLEX,;t t
13276s,@MAKEINFO@,$MAKEINFO,;t t
13277s,@EXPECT@,$EXPECT,;t t
13278s,@RUNTEST@,$RUNTEST,;t t
13279s,@AR@,$AR,;t t
13280s,@AS@,$AS,;t t
13281s,@DLLTOOL@,$DLLTOOL,;t t
13282s,@LD@,$LD,;t t
13283s,@LIPO@,$LIPO,;t t
13284s,@NM@,$NM,;t t
13285s,@RANLIB@,$RANLIB,;t t
13286s,@STRIP@,$STRIP,;t t
13287s,@WINDRES@,$WINDRES,;t t
0c24b341 13288s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13289s,@OBJCOPY@,$OBJCOPY,;t t
13290s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13291s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13292s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13293s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13294s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13295s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13296s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13297s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13298s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13299s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13300s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13301s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13302s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13303s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13304s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13305s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13306s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13307s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13308s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13309s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13310s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13311s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13312s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13313s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13314s,@MAINT@,$MAINT,;t t
13315s,@stage1_cflags@,$stage1_cflags,;t t
13316s,@stage1_checking@,$stage1_checking,;t t
13317s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13318s,@datarootdir@,$datarootdir,;t t
13319s,@docdir@,$docdir,;t t
a3ca38d2 13320s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13321s,@htmldir@,$htmldir,;t t
13322s,@LIBOBJS@,$LIBOBJS,;t t
13323s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13324/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13325s,@serialization_dependencies@,,;t t
a0da8069 13326/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13327s,@host_makefile_frag@,,;t t
a0da8069 13328/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13329s,@target_makefile_frag@,,;t t
a0da8069 13330/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13331s,@alphaieee_frag@,,;t t
a0da8069 13332/@ospace_frag@/r $ospace_frag
c6b750e1 13333s,@ospace_frag@,,;t t
a0da8069 13334CEOF
252b5132 13335
c6b750e1
DJ
13336_ACEOF
13337
13338 cat >>$CONFIG_STATUS <<\_ACEOF
13339 # Split the substitutions into bite-sized pieces for seds with
13340 # small command number limits, like on Digital OSF/1 and HP-UX.
13341 ac_max_sed_lines=48
13342 ac_sed_frag=1 # Number of current file.
13343 ac_beg=1 # First line for current file.
13344 ac_end=$ac_max_sed_lines # Line after last line for current file.
13345 ac_more_lines=:
13346 ac_sed_cmds=
13347 while $ac_more_lines; do
13348 if test $ac_beg -gt 1; then
13349 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13350 else
13351 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13352 fi
13353 if test ! -s $tmp/subs.frag; then
13354 ac_more_lines=false
a0da8069 13355 else
c6b750e1
DJ
13356 # The purpose of the label and of the branching condition is to
13357 # speed up the sed processing (if there are no `@' at all, there
13358 # is no need to browse any of the substitutions).
13359 # These are the two extra sed commands mentioned above.
13360 (echo ':t
13361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13362 if test -z "$ac_sed_cmds"; then
13363 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13364 else
13365 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13366 fi
13367 ac_sed_frag=`expr $ac_sed_frag + 1`
13368 ac_beg=$ac_end
13369 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13370 fi
c6b750e1
DJ
13371 done
13372 if test -z "$ac_sed_cmds"; then
13373 ac_sed_cmds=cat
852e5f18 13374 fi
c6b750e1 13375fi # test -n "$CONFIG_FILES"
cac3d6c4 13376
c6b750e1
DJ
13377_ACEOF
13378cat >>$CONFIG_STATUS <<\_ACEOF
13379for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13381 case $ac_file in
13382 - | *:- | *:-:* ) # input from stdin
13383 cat >$tmp/stdin
13384 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13385 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13386 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13387 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13388 * ) ac_file_in=$ac_file.in ;;
a0da8069 13389 esac
252b5132 13390
c6b750e1
DJ
13391 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13392 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13393$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13394 X"$ac_file" : 'X\(//\)[^/]' \| \
13395 X"$ac_file" : 'X\(//\)$' \| \
13396 X"$ac_file" : 'X\(/\)' \| \
13397 . : '\(.\)' 2>/dev/null ||
13398echo X"$ac_file" |
13399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13401 /^X\(\/\/\)$/{ s//\1/; q; }
13402 /^X\(\/\).*/{ s//\1/; q; }
13403 s/.*/./; q'`
13404 { if $as_mkdir_p; then
13405 mkdir -p "$ac_dir"
cac3d6c4 13406 else
c6b750e1
DJ
13407 as_dir="$ac_dir"
13408 as_dirs=
13409 while test ! -d "$as_dir"; do
13410 as_dirs="$as_dir $as_dirs"
13411 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13412$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13413 X"$as_dir" : 'X\(//\)[^/]' \| \
13414 X"$as_dir" : 'X\(//\)$' \| \
13415 X"$as_dir" : 'X\(/\)' \| \
13416 . : '\(.\)' 2>/dev/null ||
13417echo X"$as_dir" |
13418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13420 /^X\(\/\/\)$/{ s//\1/; q; }
13421 /^X\(\/\).*/{ s//\1/; q; }
13422 s/.*/./; q'`
13423 done
13424 test ! -n "$as_dirs" || mkdir $as_dirs
13425 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13426echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13427 { (exit 1); exit 1; }; }; }
13428
13429 ac_builddir=.
252b5132 13430
c6b750e1
DJ
13431if test "$ac_dir" != .; then
13432 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13433 # A "../" for each directory in $ac_dir_suffix.
13434 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13435else
13436 ac_dir_suffix= ac_top_builddir=
13437fi
13438
13439case $srcdir in
13440 .) # No --srcdir option. We are building in place.
13441 ac_srcdir=.
13442 if test -z "$ac_top_builddir"; then
13443 ac_top_srcdir=.
13444 else
13445 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13446 fi ;;
13447 [\\/]* | ?:[\\/]* ) # Absolute path.
13448 ac_srcdir=$srcdir$ac_dir_suffix;
13449 ac_top_srcdir=$srcdir ;;
a0da8069 13450 *) # Relative path.
c6b750e1
DJ
13451 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13452 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13453esac
252b5132 13454
c6b750e1
DJ
13455# Do not use `cd foo && pwd` to compute absolute paths, because
13456# the directories may not exist.
13457case `pwd` in
13458.) ac_abs_builddir="$ac_dir";;
13459*)
13460 case "$ac_dir" in
13461 .) ac_abs_builddir=`pwd`;;
13462 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13463 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13464 esac;;
13465esac
13466case $ac_abs_builddir in
13467.) ac_abs_top_builddir=${ac_top_builddir}.;;
13468*)
13469 case ${ac_top_builddir}. in
13470 .) ac_abs_top_builddir=$ac_abs_builddir;;
13471 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13472 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13473 esac;;
13474esac
13475case $ac_abs_builddir in
13476.) ac_abs_srcdir=$ac_srcdir;;
13477*)
13478 case $ac_srcdir in
13479 .) ac_abs_srcdir=$ac_abs_builddir;;
13480 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13481 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13482 esac;;
13483esac
13484case $ac_abs_builddir in
13485.) ac_abs_top_srcdir=$ac_top_srcdir;;
13486*)
13487 case $ac_top_srcdir in
13488 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13489 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13490 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13491 esac;;
13492esac
252b5132 13493
c6b750e1
DJ
13494
13495 case $INSTALL in
13496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13497 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13498 esac
252b5132 13499
c6b750e1
DJ
13500 if test x"$ac_file" != x-; then
13501 { echo "$as_me:$LINENO: creating $ac_file" >&5
13502echo "$as_me: creating $ac_file" >&6;}
13503 rm -f "$ac_file"
13504 fi
13505 # Let's still pretend it is `configure' which instantiates (i.e., don't
13506 # use $as_me), people would be surprised to read:
13507 # /* config.h. Generated by config.status. */
13508 if test x"$ac_file" = x-; then
13509 configure_input=
13510 else
13511 configure_input="$ac_file. "
13512 fi
13513 configure_input=$configure_input"Generated from `echo $ac_file_in |
13514 sed 's,.*/,,'` by configure."
13515
13516 # First look for the input files in the build tree, otherwise in the
13517 # src tree.
13518 ac_file_inputs=`IFS=:
13519 for f in $ac_file_in; do
13520 case $f in
13521 -) echo $tmp/stdin ;;
13522 [\\/$]*)
13523 # Absolute (can't be DOS-style, as IFS=:)
13524 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13525echo "$as_me: error: cannot find input file: $f" >&2;}
13526 { (exit 1); exit 1; }; }
13527 echo "$f";;
13528 *) # Relative
13529 if test -f "$f"; then
13530 # Build tree
13531 echo "$f"
13532 elif test -f "$srcdir/$f"; then
13533 # Source tree
13534 echo "$srcdir/$f"
13535 else
13536 # /dev/null tree
13537 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13538echo "$as_me: error: cannot find input file: $f" >&2;}
13539 { (exit 1); exit 1; }; }
13540 fi;;
13541 esac
13542 done` || { (exit 1); exit 1; }
13543_ACEOF
13544cat >>$CONFIG_STATUS <<_ACEOF
13545 sed "$ac_vpsub
13546$extrasub
13547_ACEOF
13548cat >>$CONFIG_STATUS <<\_ACEOF
13549:t
13550/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13551s,@configure_input@,$configure_input,;t t
13552s,@srcdir@,$ac_srcdir,;t t
13553s,@abs_srcdir@,$ac_abs_srcdir,;t t
13554s,@top_srcdir@,$ac_top_srcdir,;t t
13555s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13556s,@builddir@,$ac_builddir,;t t
13557s,@abs_builddir@,$ac_abs_builddir,;t t
13558s,@top_builddir@,$ac_top_builddir,;t t
13559s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13560s,@INSTALL@,$ac_INSTALL,;t t
13561" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13562 rm -f $tmp/stdin
13563 if test x"$ac_file" != x-; then
13564 mv $tmp/out $ac_file
13565 else
13566 cat $tmp/out
13567 rm -f $tmp/out
13568 fi
c148b4cb 13569
c6b750e1
DJ
13570done
13571_ACEOF
c148b4cb 13572
c6b750e1 13573cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13574
c6b750e1
DJ
13575{ (exit 0); exit 0; }
13576_ACEOF
c148b4cb 13577chmod +x $CONFIG_STATUS
c6b750e1
DJ
13578ac_clean_files=$ac_clean_files_save
13579
13580
13581# configure is writing to config.log, and then calls config.status.
13582# config.status does its own redirection, appending to config.log.
13583# Unfortunately, on DOS this fails, as config.log is still kept open
13584# by configure, so config.status won't be able to write to it; its
13585# output is simply discarded. So we exec the FD to /dev/null,
13586# effectively closing config.log, so it can be properly (re)opened and
13587# appended to by config.status. When coming back to configure, we
13588# need to make the FD available again.
13589if test "$no_create" != yes; then
13590 ac_cs_success=:
13591 ac_config_status_args=
13592 test "$silent" = yes &&
13593 ac_config_status_args="$ac_config_status_args --quiet"
13594 exec 5>/dev/null
13595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13596 exec 5>>config.log
13597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13598 # would make configure fail if this is the last instruction.
13599 $ac_cs_success || { (exit 1); exit 1; }
13600fi
c148b4cb 13601
This page took 1.17059 seconds and 4 git commands to generate.