2007-09-10 Rask Ingemann Lambertsen <rask@sygehus.dk>
[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"
8a6ee3ab 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 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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD 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'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
880_ACEOF
881
882 cat <<_ACEOF
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
a0da8069 923fi
a0da8069 924
c6b750e1
DJ
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 935 stage1. Mostly useful for compiler development.
521ec477
DD
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
c6b750e1 941 sub-packages for the host, target or build
521ec477 942 machine, or all sub-packages
c6b750e1
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
521ec477
DD
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
c6b750e1
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
521ec477
DD
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
521ec477
DD
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
c6b750e1 967 use sysroot as the system root during the build
8a6ee3ab
JM
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
521ec477 970 --with-build-time-tools=PATH
c6b750e1 971 use given path to find target tools during the build
521ec477
DD
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
c6b750e1
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
18f6b6ee
PB
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
9a819804
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
0c24b341 995 WINDMC WINDMC for the host
9a819804
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
0c24b341
NC
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
c6b750e1
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105esac
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1121 fi
1122 cd $ac_popdir
1123 done
1124fi
1125
1126test -n "$ac_init_help" && exit 0
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
1130Copyright (C) 2003 Free Software Foundation, Inc.
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
1134 exit 0
1135fi
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
1142generated by GNU Autoconf 2.59. Invocation command line was
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
1200ac_sep=
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
1260{
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1268 *)
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1271 ;;
1272 esac;
1273}
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320 exit $exit_status
1321 ' 0
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
a0da8069 1360# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1366 fi
1367fi
1368for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
c6b750e1
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
c6b750e1
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1387 fi
a0da8069 1388else
c6b750e1
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
a0da8069
NN
1443fi
1444
1445ac_ext=c
a0da8069 1446ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
a0da8069
NN
1463
1464
75778ec4 1465
c6b750e1
DJ
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
a0da8069 1472ac_aux_dir=
315b3b02 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
c6b750e1
DJ
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
a0da8069
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
a0da8069 1492fi
c6b750e1
DJ
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1496
c6b750e1
DJ
1497# Make sure we can run config.sub.
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520fi
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1523build=$ac_cv_build
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1527
a0da8069 1528
c6b750e1
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1532esac
1533
1534
cac3d6c4 1535
c6b750e1
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1539esac
1540
cac3d6c4 1541
c6b750e1
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1546esac
1547
cac3d6c4 1548
c6b750e1
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
c6b750e1 1554 program_transform_name=s,y,y,
cac3d6c4 1555
c6b750e1
DJ
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1560else
c6b750e1
DJ
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1572host=$ac_cv_host
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
cac3d6c4 1591fi
c6b750e1
DJ
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1594target=$ac_cv_target
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
a0da8069 1606test "$program_prefix" != NONE &&
c6b750e1 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
c6b750e1
DJ
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1617rm conftest.sed
cac3d6c4 1618
a0da8069
NN
1619
1620
e5c3f801
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
c6b750e1 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1633# OS/2's system install, which has a completely different semantic
e5c3f801 1634# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1637if test -z "$INSTALL"; then
c6b750e1
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1659 if test $ac_prog = install &&
c6b750e1 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
c6b750e1
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
e5c3f801 1667 else
c6b750e1
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
e5c3f801
NN
1670 fi
1671 fi
1672 done
c6b750e1
DJ
1673 done
1674 ;;
1675esac
1676done
1677
e5c3f801
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1681 INSTALL=$ac_cv_path_install
e5c3f801
NN
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
c6b750e1 1687 INSTALL=$ac_install_sh
e5c3f801
NN
1688 fi
1689fi
c6b750e1
DJ
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
c6b750e1 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
c6b750e1
DJ
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
c6b750e1
DJ
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1721else
1722 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
656fdd47
PB
1725fi
1726
c6b750e1
DJ
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
cac3d6c4 1733else
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1736fi
1737
e5c3f801 1738
252b5132 1739### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
a0da8069
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
252b5132
RH
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
a0da8069 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1776
92f01d61
JM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
a4708fba
JM
1781for ac_arg
1782do
92f01d61 1783 case "$ac_arg" in
ffa8bd48 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
2444379b
BE
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
92f01d61
JM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1799
75205f78 1800
a0da8069 1801moveifchange=${srcdir}/move-if-change
252b5132 1802
0fdbe983
DJ
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
a0da8069
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
a0da8069
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
252b5132
RH
1816fi
1817
a0da8069 1818topsrcdir=$srcpwd
252b5132 1819
a0da8069 1820extra_host_args=
afefada0 1821
a0da8069
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
252b5132 1825
c6b750e1 1826# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1827# configdirs, or target_configdirs; see the serialization section below.
252b5132 1828
c6b750e1
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
a0da8069 1831# the Makefile, whether or not it's implicitly specified here.
252b5132 1832
a0da8069
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
252b5132 1835
6a9cf61e
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
ee025550 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1843
a0da8069
NN
1844# these libraries are used by various programs built for the host environment
1845#
4b900473 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1847
a0da8069
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
b00612cc 1853host_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
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
a0da8069
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
b1299c4e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
a0da8069
NN
1866 target-libgloss \
1867 target-newlib \
b9459e83 1868 target-libstdc++-v3 \
4b1cb4fe 1869 target-libmudflap \
bb780410 1870 target-libssp \
4b1cb4fe 1871 target-libgfortran \
4f0ef2d8 1872 target-boehm-gc \
83326456 1873 ${libgcj} \
a2592b1b 1874 target-libobjc \
b3ded179
PB
1875 target-libada \
1876 target-libgomp"
a0da8069 1877
9c14acb8
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
a0da8069 1880#
9c14acb8 1881# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
a3dd767d 1885target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1886
a0da8069 1887################################################################################
252b5132 1888
a0da8069
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
a0da8069 1894configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1896build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1897
a0da8069 1898################################################################################
252b5132 1899
a0da8069 1900srcname="gnu development package"
252b5132 1901
a0da8069
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
252b5132 1904
a0da8069
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
252b5132 1909else
a0da8069 1910 is_cross_compiler=yes
c6b750e1 1911fi
252b5132 1912
9175bfc0 1913# Find the build and target subdir names.
dd12c3a8 1914
66a79c16
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1925build_subdir="build-${build_noncanonical}"
c6b750e1 1926
66a79c16
DJ
1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1931else
1932 build_libsubdir="$build_subdir"
c6b750e1 1933fi;
b00612cc
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
dd12c3a8
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
c6b750e1 1943
252b5132 1944
a0da8069
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
252b5132 1949
a0da8069
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1955fi
1956
a0da8069
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1962fi
1963
c6b750e1 1964# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1965# it's not even worth trying to configure, much less build, that tool.
252b5132 1966
a0da8069
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
675c6968 1970 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1971 # We won't be able to build gdbtk without X.
c6b750e1 1972 enable_gdbtk=no
a0da8069
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
252b5132 1976
a0da8069 1977# Some tools are only suitable for building in a "native" situation.
c6b750e1 1978# Remove these if host!=target.
701628f5 1979native_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 1980
a0da8069
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
252b5132 1989
a0da8069
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
32be62b5
RS
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
252b5132
RH
1997fi
1998
a0da8069
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
252b5132 2004
a0da8069 2005# Configure extra directories which are host specific
252b5132 2006
a0da8069
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
252b5132 2011
59f7ec45
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
c6b750e1 2016# Remove more programs from consideration, based on the host or
a0da8069
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
252b5132 2019
a0da8069
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
ec11bdc6 2024 i[3456789]86-*-vsta)
675c6968 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2026 ;;
ec11bdc6 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2029 ;;
2d1e8239
NC
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
ec11bdc6 2033 i[3456789]86-*-mingw32*)
675c6968 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2036 ;;
ec11bdc6 2037 i[3456789]86-*-beos*)
675c6968 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2039 ;;
a0da8069 2040 *-*-cygwin*)
a92834c8 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2042 ;;
2043 *-*-netbsd*)
a92834c8 2044 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2045 ;;
2046 ppc*-*-pe)
675c6968 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2048 ;;
2049 powerpc-*-beos*)
675c6968 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2051 ;;
a0da8069 2052esac
252b5132 2053
4b1cb4fe 2054
a2592b1b
DD
2055# Check whether --enable-libada or --disable-libada was given.
2056if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2059else
2060 ENABLE_LIBADA=yes
c6b750e1 2061fi;
a2592b1b 2062if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2063 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2064fi
2065
5f128533
KH
2066# Check whether --enable-libssp or --disable-libssp was given.
2067if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2070else
2071 ENABLE_LIBSSP=yes
c6b750e1 2072fi;
5f128533 2073
a0da8069
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
252b5132 2089
4b1cb4fe 2090
a6df5a19
PB
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
3e707e94 2093 case "${target}" in
0ebe98fb 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2095 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2096 ;;
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
a6df5a19 2105fi
4b1cb4fe 2106
a6df5a19
PB
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
b3ded179
PB
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
64ce424c 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2116 ;;
2117 *-*-darwin* | *-*-aix*)
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
a6df5a19 2123fi
b3ded179 2124
691bb5a1
DD
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
4b1cb4fe 2127
a0da8069
NN
2128case "${target}" in
2129 *-*-chorusos)
54d1c879 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2131 ;;
790c0838 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2134 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2135 ;;
04d1ab34 2136 *-*-darwin*)
d320aacb 2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2138 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2139 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2140 ;;
a0da8069 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2143 ;;
de0b4a87 2144 *-*-freebsd*)
4b1cb4fe
DD
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
54d1c879 2156 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2157 ;;
2158 esac
2159 ;;
f8a495c8
NC
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
a0da8069
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
5b474aa8 2174 arm*-*-netbsdelf*) ;;
a0da8069 2175 *)
54d1c879 2176 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2177 ;;
2178 esac
2179 ;;
2a3124ca 2180 *-*-netware*)
54d1c879 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2182 ;;
2183 *-*-rtems*)
54d1c879 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2185 ;;
1587117a
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
54d1c879 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2189 ;;
c1968181 2190 *-*-uclinux*)
54d1c879 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2192 ;;
a0da8069 2193 *-*-vxworks*)
54d1c879 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
54d1c879 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
a0da8069
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
54d1c879 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2212 ;;
4a18bd6b 2213 am33_2.0-*-linux*)
54d1c879 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2215 ;;
a0da8069 2216 sh-*-linux*)
54d1c879 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2218 ;;
a0da8069 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2220 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2230 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2231 ;;
2232 esac
691bb5a1 2233 libgloss_dir=wince
a0da8069
NN
2234 ;;
2235 arc-*-*)
54d1c879 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2237 ;;
caeba88f 2238 arm-semi-aof )
caeba88f 2239 ;;
a0da8069 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2241 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2242 libgloss_dir=arm
a0da8069 2243 ;;
11b04d1f 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2246 libgloss_dir=arm
a0da8069 2247 ;;
bd70a46f 2248 arm*-*-linux-gnueabi)
6d18b86b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
691bb5a1 2254 libgloss_dir=arm
bd70a46f 2255 ;;
df4a6958 2256 arm*-*-symbianelf*)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2258 libgloss_dir=arm
df4a6958 2259 ;;
a0da8069 2260 arm-*-pe*)
54d1c879 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2262 ;;
a0da8069 2263 thumb-*-coff)
54d1c879 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2265 ;;
2266 thumb-*-elf)
54d1c879 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2268 ;;
a0da8069 2269 thumb-*-pe)
54d1c879 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2271 ;;
2272 arm-*-riscix*)
54d1c879 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2274 ;;
2275 avr-*-*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2277 ;;
376a0e54 2278 bfin-*-*)
00d89675 2279 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2280 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
a0da8069 2284 c4x-*-* | tic4x-*-*)
54d1c879 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
54d1c879 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2289 ;;
c7e66c6d 2290 cris-*-* | crisv32-*-*)
59f7ec45 2291 unsupported_languages="$unsupported_languages java"
c7e66c6d 2292 case "${target}" in
2faa2958 2293 *-*-aout)
096f7d00 2294 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2296 *-*-elf)
096f7d00 2297 unsupported_languages="$unsupported_languages fortran"
5e818318 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2299 *-*-linux*)
5e818318 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2301 *)
096f7d00 2302 unsupported_languages="$unsupported_languages fortran"
54d1c879 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2304 esac
691bb5a1 2305 libgloss_dir=cris
a0da8069 2306 ;;
3e707e94 2307 crx-*-*)
54d1c879 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2309 ;;
a0da8069 2310 d10v-*-*)
54d1c879 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2312 ;;
2313 d30v-*-*)
54d1c879 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2315 ;;
691bb5a1
DD
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
a0da8069 2319 fr30-*-elf*)
54d1c879 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2321 ;;
2322 frv-*-*)
54d1c879 2323 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2324 ;;
2325 h8300*-*-*)
54d1c879 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2327 ;;
2328 h8500-*-*)
54d1c879 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2330 ;;
caeba88f 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2332 ;;
a0da8069
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
5dcac624
DA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
a0da8069 2341 hppa*-*-*elf* | \
a0da8069
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2346 ;;
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2349 ;;
691bb5a1
DD
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
a0da8069
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
54d1c879 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2357 ;;
b07c2aad 2358 i960-*-*)
54d1c879 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2360 ;;
a0da8069
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
675c6968 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
54d1c879 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2368 ;;
caeba88f 2369 i370-*-opened*)
caeba88f 2370 ;;
ec11bdc6 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2373 libgloss_dir=i386
a0da8069 2374 ;;
ec11bdc6 2375 i[3456789]86-*-linux*)
a0da8069
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
54d1c879 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
bba45b8b 2386 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
ec11bdc6 2394 i[3456789]86-*-mingw32*)
45055374
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2397 ;;
2d1e8239
NC
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2401 ;;
a0da8069
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2405 # always build newlib if winsup directory is present.
45055374 2406 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2408 elif test -d "$srcdir/newlib"; then
45055374 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2410 fi
c6b750e1 2411 ;;
caeba88f
AL
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2414 ;;
ec11bdc6 2415 i[3456789]86-*-pe)
54d1c879 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2417 ;;
ec11bdc6 2418 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
54d1c879 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2422 ;;
ec11bdc6 2423 i[3456789]86-*-sco*)
54d1c879 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2425 ;;
ec11bdc6 2426 i[3456789]86-*-solaris2*)
a0da8069
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
ec11bdc6 2429 i[3456789]86-*-sysv4*)
54d1c879 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2431 ;;
ec11bdc6 2432 i[3456789]86-*-beos*)
54d1c879 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2434 ;;
b59bea8a 2435 i[3456789]86-*-rdos*)
2429c060
PB
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
b07c2aad 2438 m32r-*-*)
54d1c879 2439 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2440 ;;
a0da8069 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2443 libgloss_dir=m68hc11
a0da8069
NN
2444 ;;
2445 m68k-*-elf*)
54d1c879 2446 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2447 ;;
2448 m68k-*-coff*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2450 ;;
691bb5a1
DD
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
a0da8069
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
59f7ec45 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2461 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2462 ;;
2463 mn10200-*-*)
54d1c879 2464 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2465 ;;
2466 mn10300-*-*)
54d1c879 2467 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2468 ;;
4970f871 2469 mt-*-*)
cdb9b172
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
a0da8069
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
54d1c879 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
54d1c879 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
54d1c879 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2485 libgloss_dir=rs6000
a0da8069
NN
2486 ;;
2487 powerpc-*-beos*)
54d1c879 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2489 ;;
a0da8069 2490 powerpc-*-eabi)
54d1c879 2491 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2492 libgloss_dir=rs6000
caeba88f
AL
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2495 libgloss_dir=rs6000
a0da8069 2496 ;;
a0da8069 2497 rs6000-*-lynxos*)
54d1c879 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2499 ;;
2500 rs6000-*-aix*)
54d1c879 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2502 ;;
2503 rs6000-*-*)
54d1c879 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2505 ;;
2506 m68k-apollo-*)
54d1c879 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2508 ;;
2509 mips*-*-irix5*)
54d1c879 2510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2511 ;;
2512 mips*-*-irix6*)
a0da8069
NN
2513 # Linking libjava exceeds command-line length limits on at least
2514 # IRIX 6.2, but not on IRIX 6.5.
2515 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2516 # <oldham@codesourcery.com>
54d1c879 2517 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2518 ;;
a0da8069 2519 mips*-*-bsd*)
54d1c879 2520 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2521 ;;
1712ab83 2522 mips64*-*-linux*)
f3529cf1 2523 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2524 ;;
a0da8069
NN
2525 mips*-*-linux*)
2526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2527 ;;
2528 mips*-*-*)
54d1c879 2529 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2530 libgloss_dir=mips
a0da8069
NN
2531 ;;
2532 romp-*-*)
54d1c879 2533 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2534 ;;
dbf85af7 2535 sh-*-* | sh64-*-*)
a0da8069 2536 case "${host}" in
ec11bdc6
DD
2537 i[3456789]86-*-vsta) ;; # don't add gprof back in
2538 i[3456789]86-*-go32*) ;; # don't add gprof back in
2539 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2540 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2541 esac
54d1c879 2542 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2543 ;;
691bb5a1
DD
2544 sparclet-*-aout* | sparc86x-*-*)
2545 libgloss_dir=sparc
2546 ;;
a0da8069 2547 sparc-*-elf*)
54d1c879 2548 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2549 ;;
2550 sparc64-*-elf*)
54d1c879 2551 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2552 libgloss_dir=sparc
a0da8069
NN
2553 ;;
2554 sparclite-*-*)
54d1c879 2555 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2556 libgloss_dir=sparc
a0da8069
NN
2557 ;;
2558 sparc-*-sunos4*)
54d1c879 2559 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2560 if test x${is_cross_compiler} != xno ; then
2561 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2562 else
2563 use_gnu_ld=no
2564 fi
2565 ;;
e3c770b1 2566 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2567 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2568 ;;
a0da8069
NN
2569 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2570 ;;
2839fe5d
BE
2571 spu-*-*)
2572 skipdirs="target-libssp"
2573 ;;
a0da8069 2574 v810-*-*)
54d1c879 2575 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2576 ;;
2577 v850-*-*)
54d1c879 2578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2579 ;;
2580 v850e-*-*)
54d1c879 2581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2582 ;;
2583 v850ea-*-*)
54d1c879 2584 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2585 ;;
2586 vax-*-vms)
54d1c879 2587 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2588 ;;
2589 vax-*-*)
54d1c879 2590 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2591 ;;
fbd1054d 2592 xtensa-*-*)
54d1c879 2593 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2594 ;;
a0da8069 2595 ip2k-*-*)
54d1c879 2596 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2597 ;;
de0b4a87 2598 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2600 ;;
2601 *-*-lynxos*)
54d1c879 2602 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2603 ;;
a0da8069 2604 *-*-*)
54d1c879 2605 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2606 ;;
2607esac
252b5132 2608
a0da8069
NN
2609# If we aren't building newlib, then don't build libgloss, since libgloss
2610# depends upon some newlib header files.
2611case "${noconfigdirs}" in
2612 *target-libgloss*) ;;
2613 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2614esac
2615
a0da8069
NN
2616# Work in distributions that contain no compiler tools, like Autoconf.
2617tentative_cc=""
2618host_makefile_frag=/dev/null
2619if test -d ${srcdir}/config ; then
2620case "${host}" in
2621 m68k-hp-hpux*)
2622 # Avoid "too much defining" errors from HPUX compiler.
2623 tentative_cc="cc -Wp,-H256000"
2624 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2625 # If it's HP/UX ar, this should be harmless.
2626 RANLIB="ar ts"
2627 ;;
2628 m68k-apollo-sysv*)
2629 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2630 ;;
2631 m68k-apollo-bsd*)
2632 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2633 # chokes on bfd, the compiler won't let you assign integers to enums, and
2634 # other problems. Defining CC to gcc is a questionable way to say "don't use
2635 # the apollo compiler" (the preferred version of GCC could be called cc,
2636 # or whatever), but I'm not sure leaving CC as cc is any better...
2637 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2638 # Used to have BISON=yacc.
2639 tentative_cc=gcc
2640 ;;
2641 m88k-dg-dgux*)
2642 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2643 ;;
2644 m88k-harris-cxux*)
2645 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2646 tentative_cc="cc -Xa"
2647 host_makefile_frag="config/mh-cxux"
2648 ;;
2649 m88k-motorola-sysv*)
2650 ;;
2651 mips*-dec-ultrix*)
2652 tentative_cc="cc -Wf,-XNg1000"
2653 host_makefile_frag="config/mh-decstation"
2654 ;;
2655 mips*-nec-sysv4*)
2656 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2657 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2658 host_makefile_frag="config/mh-necv4"
2659 ;;
2660 mips*-sgi-irix4*)
2661 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2662 # environment. Also bump switch table size so that cp-parse will
2663 # compile. Bump string length limit so linker builds.
2664 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2665 ;;
2666 mips*-*-sysv4*)
2667 host_makefile_frag="config/mh-sysv4"
2668 ;;
2669 mips*-*-sysv*)
2670 # This is for a MIPS running RISC/os 4.52C.
2671
2672 # This is needed for GDB, but needs to be in the top-level make because
2673 # if a library is compiled with the bsd headers and gets linked with the
2674 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2675 # a different size).
2676 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2677 # known except to select the sysv environment. Could we use /proc instead?
2678 # These "sysv environments" and "bsd environments" often end up being a pain.
2679 #
2680 # This is not part of CFLAGS because perhaps not all C compilers have this
2681 # option.
2682 tentative_cc="cc -systype sysv"
2683 ;;
2684 i370-ibm-opened*)
2685 tentative_cc="c89"
2686 ;;
ec11bdc6 2687 i[3456789]86-*-sysv5*)
a0da8069
NN
2688 host_makefile_frag="config/mh-sysv5"
2689 ;;
ec11bdc6 2690 i[3456789]86-*-dgux*)
a0da8069
NN
2691 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2692 host_makefile_frag="config/mh-dgux386"
2693 ;;
ec11bdc6 2694 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2695 # The MetaWare compiler will generate a copyright message unless you
2696 # turn it off by adding the -Hnocopyr flag.
2697 tentative_cc="cc -Hnocopyr"
2698 ;;
ec11bdc6 2699 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2700 # for an NCR 3000 (i486/SVR4) system.
2701 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2702 # This compiler not only emits obnoxious copyright messages every time
2703 # you run it, but it chokes and dies on a whole bunch of GNU source
2704 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2705 tentative_cc="/usr/ccs/ATT/cc"
2706 host_makefile_frag="config/mh-ncr3000"
2707 ;;
ec11bdc6 2708 i[3456789]86-*-sco3.2v5*)
a0da8069 2709 ;;
ec11bdc6 2710 i[3456789]86-*-sco*)
a0da8069
NN
2711 # The native C compiler botches some simple uses of const. Unfortunately,
2712 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2713 tentative_cc="cc -Dconst="
2714 host_makefile_frag="config/mh-sco"
2715 ;;
ec11bdc6 2716 i[3456789]86-*-udk*)
a0da8069
NN
2717 host_makefile_frag="config/mh-sysv5"
2718 ;;
ec11bdc6 2719 i[3456789]86-*-solaris2*)
a0da8069
NN
2720 host_makefile_frag="config/mh-sysv4"
2721 ;;
ec11bdc6 2722 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2723 host_makefile_frag="config/mh-djgpp"
2724 ;;
2725 *-cygwin*)
2726 host_makefile_frag="config/mh-cygwin"
2727 ;;
2728 *-mingw32*)
a0da8069 2729 ;;
2d1e8239
NC
2730 *-mingw64*)
2731 ;;
a0da8069
NN
2732 *-interix*)
2733 host_makefile_frag="config/mh-interix"
2734 ;;
2735 vax-*-ultrix2*)
2736 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2737 tentative_cc=gcc
2738 ;;
2739 *-*-solaris2*)
2740 host_makefile_frag="config/mh-solaris"
2741 ;;
2742 m68k-sun-sunos*)
2743 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2744 # without overflowing the jump tables (-J says to use a 32 bit table)
2745 tentative_cc="cc -J"
2746 ;;
2747 *-hp-hpux*)
2748 tentative_cc="cc -Wp,-H256000"
2749 ;;
2750 *-*-hiux*)
2751 tentative_cc="cc -Wp,-H256000"
2752 ;;
2753 rs6000-*-lynxos*)
2754 # /bin/cc is less than useful for our purposes. Always use GCC
2755 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2756 host_makefile_frag="config/mh-lynxrs6k"
2757 ;;
0df3d27f
PB
2758 powerpc-*-darwin*)
2759 host_makefile_frag="config/mh-ppc-darwin"
2760 ;;
f6d183c0
PB
2761 powerpc-*-aix*)
2762 host_makefile_frag="config/mh-ppc-aix"
2763 ;;
2764 rs6000-*-aix*)
2765 host_makefile_frag="config/mh-ppc-aix"
2766 ;;
a0da8069
NN
2767 *-*-lynxos*)
2768 # /bin/cc is less than useful for our purposes. Always use GCC
2769 tentative_cc="/bin/gcc"
2770 ;;
2771 *-*-sysv4*)
2772 host_makefile_frag="config/mh-sysv4"
2773 ;;
fe69863c
DD
2774 # This is placed last to prevent interfering with the cases above.
2775 i[3456789]86-*-*)
2776 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2777 host_makefile_frag="config/mh-x86omitfp"
2778 ;;
a0da8069
NN
2779esac
2780fi
2781
9e07f89d
NN
2782# If we aren't going to be using gcc, see if we can extract a definition
2783# of CC from the fragment.
2784# Actually, use the 'pre-extracted' version above.
2785if test -z "${CC}" && test "${build}" = "${host}" ; then
2786 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2787 found=
2788 for dir in $PATH; do
2789 test -z "$dir" && dir=.
2790 if test -f $dir/gcc; then
2791 found=yes
2792 break
2793 fi
2794 done
2795 IFS="$save_ifs"
2796 if test -z "${found}" && test -n "${tentative_cc}" ; then
2797 CC=$tentative_cc
2798 fi
2799fi
2800
2801if test "${build}" != "${host}" ; then
9e07f89d 2802 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2803else
512b7dfb 2804 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2805fi
2806
2807ac_ext=c
c6b750e1
DJ
2808ac_cpp='$CPP $CPPFLAGS'
2809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812if test -n "$ac_tool_prefix"; then
2813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2814set dummy ${ac_tool_prefix}gcc; ac_word=$2
2815echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817if test "${ac_cv_prog_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835done
2836
2837fi
2838fi
2839CC=$ac_cv_prog_CC
2840if test -n "$CC"; then
2841 echo "$as_me:$LINENO: result: $CC" >&5
2842echo "${ECHO_T}$CC" >&6
2843else
2844 echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6
2846fi
2847
2848fi
2849if test -z "$ac_cv_prog_CC"; then
2850 ac_ct_CC=$CC
6a9cf61e 2851 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2852set dummy gcc; ac_word=$2
c6b750e1
DJ
2853echo "$as_me:$LINENO: checking for $ac_word" >&5
2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 if test -n "$ac_ct_CC"; then
2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_ac_ct_CC="gcc"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
2873done
2874
2875fi
2876fi
2877ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878if test -n "$ac_ct_CC"; then
2879 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2880echo "${ECHO_T}$ac_ct_CC" >&6
2881else
2882 echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
2884fi
2885
2886 CC=$ac_ct_CC
2887else
2888 CC="$ac_cv_prog_CC"
2889fi
2890
2891if test -z "$CC"; then
2892 if test -n "$ac_tool_prefix"; then
2893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2894set dummy ${ac_tool_prefix}cc; ac_word=$2
2895echo "$as_me:$LINENO: checking for $ac_word" >&5
2896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2897if test "${ac_cv_prog_CC+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2899else
2900 if test -n "$CC"; then
2901 ac_cv_prog_CC="$CC" # Let the user override the test.
2902else
c6b750e1
DJ
2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_CC="${ac_tool_prefix}cc"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914done
2915done
2916
9e07f89d
NN
2917fi
2918fi
c6b750e1 2919CC=$ac_cv_prog_CC
9e07f89d 2920if test -n "$CC"; then
c6b750e1
DJ
2921 echo "$as_me:$LINENO: result: $CC" >&5
2922echo "${ECHO_T}$CC" >&6
9e07f89d 2923else
c6b750e1
DJ
2924 echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6
9e07f89d
NN
2926fi
2927
c6b750e1
DJ
2928fi
2929if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "cc", so it can be a program name with args.
2932set dummy cc; ac_word=$2
2933echo "$as_me:$LINENO: checking for $ac_word" >&5
2934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_ac_ct_CC="cc"
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2951 fi
2952done
2953done
2954
2955fi
2956fi
2957ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958if test -n "$ac_ct_CC"; then
2959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2960echo "${ECHO_T}$ac_ct_CC" >&6
2961else
2962 echo "$as_me:$LINENO: result: no" >&5
2963echo "${ECHO_T}no" >&6
2964fi
2965
2966 CC=$ac_ct_CC
2967else
2968 CC="$ac_cv_prog_CC"
2969fi
2970
2971fi
9e07f89d
NN
2972if test -z "$CC"; then
2973 # Extract the first word of "cc", so it can be a program name with args.
2974set dummy cc; ac_word=$2
c6b750e1
DJ
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2979else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982else
9e07f89d 2983 ac_prog_rejected=no
c6b750e1
DJ
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2992 ac_prog_rejected=yes
2993 continue
2994 fi
2995 ac_cv_prog_CC="cc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999done
3000done
3001
9e07f89d
NN
3002if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3005 shift
c6b750e1 3006 if test $# != 0; then
9e07f89d
NN
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3010 shift
c6b750e1 3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3012 fi
3013fi
3014fi
3015fi
c6b750e1 3016CC=$ac_cv_prog_CC
9e07f89d 3017if test -n "$CC"; then
c6b750e1
DJ
3018 echo "$as_me:$LINENO: result: $CC" >&5
3019echo "${ECHO_T}$CC" >&6
9e07f89d 3020else
c6b750e1
DJ
3021 echo "$as_me:$LINENO: result: no" >&5
3022echo "${ECHO_T}no" >&6
9e07f89d
NN
3023fi
3024
c6b750e1
DJ
3025fi
3026if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog in cl
3029 do
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_prog_CC+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3036else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039else
c6b750e1
DJ
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
376a0e54 3050 fi
c6b750e1
DJ
3051done
3052done
cac3d6c4 3053
c6b750e1
DJ
3054fi
3055fi
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
3058 echo "$as_me:$LINENO: result: $CC" >&5
3059echo "${ECHO_T}$CC" >&6
cac3d6c4 3060else
c6b750e1
DJ
3061 echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
9e07f89d 3063fi
cac3d6c4 3064
c6b750e1
DJ
3065 test -n "$CC" && break
3066 done
cac3d6c4 3067fi
c6b750e1
DJ
3068if test -z "$CC"; then
3069 ac_ct_CC=$CC
3070 for ac_prog in cl
3071do
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073set dummy $ac_prog; ac_word=$2
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3078else
c6b750e1
DJ
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3081else
c6b750e1
DJ
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_CC="$ac_prog"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095
cac3d6c4
CM
3096fi
3097fi
c6b750e1
DJ
3098ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099if test -n "$ac_ct_CC"; then
3100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3101echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3102else
c6b750e1
DJ
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
cac3d6c4 3105fi
376a0e54 3106
c6b750e1
DJ
3107 test -n "$ac_ct_CC" && break
3108done
3109
3110 CC=$ac_ct_CC
3111fi
3112
3113fi
3114
3115
3116test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3117See \`config.log' for more details." >&5
3118echo "$as_me: error: no acceptable C compiler found in \$PATH
3119See \`config.log' for more details." >&2;}
3120 { (exit 1); exit 1; }; }
3121
3122# Provide some information about the compiler.
3123echo "$as_me:$LINENO:" \
3124 "checking for C compiler version" >&5
3125ac_compiler=`set X $ac_compile; echo $2`
3126{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3127 (eval $ac_compiler --version </dev/null >&5) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }
3131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3132 (eval $ac_compiler -v </dev/null >&5) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }
3136{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3137 (eval $ac_compiler -V </dev/null >&5) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }
3141
3142cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h. */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h. */
3148
3149int
3150main ()
3151{
3152
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157ac_clean_files_save=$ac_clean_files
3158ac_clean_files="$ac_clean_files a.out a.exe b.out"
3159# Try to create an executable without -o first, disregard a.out.
3160# It will help us diagnose broken compilers, and finding out an intuition
3161# of exeext.
3162echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3163echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3164ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3165if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3166 (eval $ac_link_default) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # Find the output, starting from the most likely. This scheme is
3171# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3172# resort.
3173
3174# Be careful to initialize this variable, since it used to be cached.
3175# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3176ac_cv_exeext=
3177# b.out is created by i960 compilers.
3178for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3179do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3183 ;;
3184 conftest.$ac_ext )
3185 # This is the source file.
3186 ;;
3187 [ab].out )
3188 # We found the default executable, but exeext='' is most
3189 # certainly right.
3190 break;;
3191 *.* )
3192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193 # FIXME: I believe we export ac_cv_exeext for Libtool,
3194 # but it would be cool to find out if it's true. Does anybody
3195 # maintain Libtool? --akim.
3196 export ac_cv_exeext
3197 break;;
3198 * )
3199 break;;
3200 esac
3201done
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3207See \`config.log' for more details." >&5
3208echo "$as_me: error: C compiler cannot create executables
3209See \`config.log' for more details." >&2;}
3210 { (exit 77); exit 77; }; }
3211fi
3212
3213ac_exeext=$ac_cv_exeext
3214echo "$as_me:$LINENO: result: $ac_file" >&5
3215echo "${ECHO_T}$ac_file" >&6
3216
3217# Check the compiler produces executables we can run. If not, either
3218# the compiler is broken, or we cross compile.
3219echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3220echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3221# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3222# If not cross compiling, check that we can run a simple program.
3223if test "$cross_compiling" != yes; then
3224 if { ac_try='./$ac_file'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 (eval $ac_try) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 cross_compiling=no
3231 else
3232 if test "$cross_compiling" = maybe; then
3233 cross_compiling=yes
3234 else
3235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3236If you meant to cross compile, use \`--host'.
3237See \`config.log' for more details." >&5
3238echo "$as_me: error: cannot run C compiled programs.
3239If you meant to cross compile, use \`--host'.
3240See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243 fi
3244fi
3245echo "$as_me:$LINENO: result: yes" >&5
3246echo "${ECHO_T}yes" >&6
3247
3248rm -f a.out a.exe conftest$ac_cv_exeext b.out
3249ac_clean_files=$ac_clean_files_save
3250# Check the compiler produces executables we can run. If not, either
3251# the compiler is broken, or we cross compile.
3252echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3253echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3254echo "$as_me:$LINENO: result: $cross_compiling" >&5
3255echo "${ECHO_T}$cross_compiling" >&6
3256
3257echo "$as_me:$LINENO: checking for suffix of executables" >&5
3258echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3260 (eval $ac_link) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; then
3264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3265# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3266# work properly (i.e., refer to `conftest.exe'), while it won't with
3267# `rm'.
3268for ac_file in conftest.exe conftest conftest.*; do
3269 test -f "$ac_file" || continue
3270 case $ac_file in
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273 export ac_cv_exeext
3274 break;;
3275 * ) break;;
3276 esac
3277done
3278else
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3280See \`config.log' for more details." >&5
3281echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3282See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3284fi
3285
3286rm -f conftest$ac_cv_exeext
3287echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3288echo "${ECHO_T}$ac_cv_exeext" >&6
3289
3290rm -f conftest.$ac_ext
3291EXEEXT=$ac_cv_exeext
3292ac_exeext=$EXEEXT
3293echo "$as_me:$LINENO: checking for suffix of object files" >&5
3294echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3295if test "${ac_cv_objext+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298 cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304
3305int
3306main ()
3307{
3308
3309 ;
3310 return 0;
3311}
3312_ACEOF
3313rm -f conftest.o conftest.obj
3314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3315 (eval $ac_compile) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; then
3319 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3320 case $ac_file in
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3323 break;;
3324 esac
3325done
cac3d6c4 3326else
c6b750e1
DJ
3327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
3330{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3331See \`config.log' for more details." >&5
3332echo "$as_me: error: cannot compute suffix of object files: cannot compile
3333See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3335fi
3336
3337rm -f conftest.$ac_cv_objext conftest.$ac_ext
3338fi
3339echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3340echo "${ECHO_T}$ac_cv_objext" >&6
3341OBJEXT=$ac_cv_objext
3342ac_objext=$OBJEXT
3343echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3345if test "${ac_cv_c_compiler_gnu+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354
3355int
3356main ()
3357{
3358#ifndef __GNUC__
3359 choke me
3360#endif
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext
3367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_compiler_gnu=yes
3389else
3390 echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393ac_compiler_gnu=no
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_cv_c_compiler_gnu=$ac_compiler_gnu
3397
3398fi
3399echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3400echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3401GCC=`test $ac_compiler_gnu = yes && echo yes`
3402ac_test_CFLAGS=${CFLAGS+set}
3403ac_save_CFLAGS=$CFLAGS
3404CFLAGS="-g"
3405echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3406echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3407if test "${ac_cv_prog_cc_g+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
3416
3417int
3418main ()
3419{
3420
3421 ;
3422 return 0;
3423}
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427 (eval $ac_compile) 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
9e07f89d
NN
3447 ac_cv_prog_cc_g=yes
3448else
c6b750e1
DJ
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3451
c6b750e1 3452ac_cv_prog_cc_g=no
376a0e54 3453fi
c6b750e1
DJ
3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3457echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3458if test "$ac_test_CFLAGS" = set; then
c6b750e1 3459 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3460elif test $ac_cv_prog_cc_g = yes; then
3461 if test "$GCC" = yes; then
3462 CFLAGS="-g -O2"
3463 else
3464 CFLAGS="-g"
3465 fi
3466else
3467 if test "$GCC" = yes; then
3468 CFLAGS="-O2"
3469 else
3470 CFLAGS=
3471 fi
3472fi
c6b750e1
DJ
3473echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3474echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3475if test "${ac_cv_prog_cc_stdc+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478 ac_cv_prog_cc_stdc=no
3479ac_save_CC=$CC
3480cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486#include <stdarg.h>
3487#include <stdio.h>
3488#include <sys/types.h>
3489#include <sys/stat.h>
3490/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3491struct buf { int x; };
3492FILE * (*rcsopen) (struct buf *, struct stat *, int);
3493static char *e (p, i)
3494 char **p;
3495 int i;
3496{
3497 return p[i];
3498}
3499static char *f (char * (*g) (char **, int), char **p, ...)
3500{
3501 char *s;
3502 va_list v;
3503 va_start (v,p);
3504 s = g (p, va_arg (v,int));
3505 va_end (v);
3506 return s;
3507}
3508
3509/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3510 function prototypes and stuff, but not '\xHH' hex character constants.
3511 These don't provoke an error unfortunately, instead are silently treated
3512 as 'x'. The following induces an error, until -std1 is added to get
3513 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3514 array size at least. It's necessary to write '\x00'==0 to get something
3515 that's true only with -std1. */
3516int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3517
3518int test (int i, double x);
3519struct s1 {int (*f) (int a);};
3520struct s2 {int (*f) (double a);};
3521int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3522int argc;
3523char **argv;
3524int
3525main ()
3526{
3527return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532# Don't try gcc -ansi; that turns off useful extensions and
3533# breaks some systems' header files.
3534# AIX -qlanglvl=ansi
3535# Ultrix and OSF/1 -std1
3536# HP-UX 10.20 and later -Ae
3537# HP-UX older versions -Aa -D_HPUX_SOURCE
3538# SVR4 -Xc -D__EXTENSIONS__
3539for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3540do
3541 CC="$ac_save_CC $ac_arg"
3542 rm -f conftest.$ac_objext
3543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>conftest.er1
3545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_c_werror_flag"
3552 || test ! -s conftest.err'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; } &&
3558 { ac_try='test -s conftest.$ac_objext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_cv_prog_cc_stdc=$ac_arg
3565break
3566else
3567 echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570fi
3571rm -f conftest.err conftest.$ac_objext
3572done
3573rm -f conftest.$ac_ext conftest.$ac_objext
3574CC=$ac_save_CC
3575
3576fi
3577
3578case "x$ac_cv_prog_cc_stdc" in
3579 x|xno)
3580 echo "$as_me:$LINENO: result: none needed" >&5
3581echo "${ECHO_T}none needed" >&6 ;;
3582 *)
3583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3584echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3585 CC="$CC $ac_cv_prog_cc_stdc" ;;
3586esac
3587
3588# Some people use a C++ compiler to compile C. Since we use `exit',
3589# in C++ we need to declare it. In case someone uses the same compiler
3590# for both compiling C and C++ we need to have the C++ compiler decide
3591# the declaration of exit, since it's the most demanding environment.
3592cat >conftest.$ac_ext <<_ACEOF
3593#ifndef __cplusplus
3594 choke me
3595#endif
3596_ACEOF
3597rm -f conftest.$ac_objext
3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>conftest.er1
3600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 for ac_declaration in \
3620 '' \
3621 'extern "C" void std::exit (int) throw (); using std::exit;' \
3622 'extern "C" void std::exit (int); using std::exit;' \
3623 'extern "C" void exit (int) throw ();' \
3624 'extern "C" void exit (int);' \
3625 'void exit (int);'
3626do
3627 cat >conftest.$ac_ext <<_ACEOF
3628/* confdefs.h. */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h. */
3633$ac_declaration
3634#include <stdlib.h>
3635int
3636main ()
3637{
3638exit (42);
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 :
3666else
3667 echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670continue
3671fi
3672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673 cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
3679$ac_declaration
3680int
3681main ()
3682{
3683exit (42);
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688rm -f conftest.$ac_objext
3689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_c_werror_flag"
3698 || test ! -s conftest.err'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 break
3711else
3712 echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715fi
3716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717done
3718rm -f conftest*
3719if test -n "$ac_declaration"; then
3720 echo '#ifdef __cplusplus' >>confdefs.h
3721 echo $ac_declaration >>confdefs.h
3722 echo '#endif' >>confdefs.h
3723fi
3724
3725else
3726 echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729fi
3730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3736
18f6b6ee
PB
3737ac_ext=cc
3738ac_cpp='$CXXCPP $CPPFLAGS'
3739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3742if test -n "$ac_tool_prefix"; then
3743 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3744 do
3745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3747echo "$as_me:$LINENO: checking for $ac_word" >&5
3748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749if test "${ac_cv_prog_CXX+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752 if test -n "$CXX"; then
3753 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3754else
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766done
3767done
512b7dfb 3768
18f6b6ee
PB
3769fi
3770fi
3771CXX=$ac_cv_prog_CXX
3772if test -n "$CXX"; then
3773 echo "$as_me:$LINENO: result: $CXX" >&5
3774echo "${ECHO_T}$CXX" >&6
3775else
3776 echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778fi
3779
3780 test -n "$CXX" && break
3781 done
3782fi
3783if test -z "$CXX"; then
3784 ac_ct_CXX=$CXX
3785 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3786do
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788set dummy $ac_prog; ac_word=$2
3789echo "$as_me:$LINENO: checking for $ac_word" >&5
3790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3791if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 if test -n "$ac_ct_CXX"; then
3795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_ac_ct_CXX="$ac_prog"
3805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
512b7dfb 3807 fi
18f6b6ee
PB
3808done
3809done
512b7dfb 3810
18f6b6ee
PB
3811fi
3812fi
3813ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3814if test -n "$ac_ct_CXX"; then
3815 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3816echo "${ECHO_T}$ac_ct_CXX" >&6
3817else
3818 echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6
3820fi
3821
3822 test -n "$ac_ct_CXX" && break
3823done
3824test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3825
3826 CXX=$ac_ct_CXX
3827fi
3828
3829
3830# Provide some information about the compiler.
3831echo "$as_me:$LINENO:" \
3832 "checking for C++ compiler version" >&5
3833ac_compiler=`set X $ac_compile; echo $2`
3834{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3835 (eval $ac_compiler --version </dev/null >&5) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }
3839{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3840 (eval $ac_compiler -v </dev/null >&5) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }
3844{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3845 (eval $ac_compiler -V </dev/null >&5) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }
3849
3850echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3851echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3852if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
3855 cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h. */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h. */
3861
3862int
3863main ()
3864{
3865#ifndef __GNUC__
3866 choke me
3867#endif
3868
3869 ;
3870 return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext
3874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
3882 { ac_try='test -z "$ac_cxx_werror_flag"
3883 || test ! -s conftest.err'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 (eval $ac_try) 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; } &&
3889 { ac_try='test -s conftest.$ac_objext'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 (eval $ac_try) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 ac_compiler_gnu=yes
3896else
3897 echo "$as_me: failed program was:" >&5
3898sed 's/^/| /' conftest.$ac_ext >&5
3899
3900ac_compiler_gnu=no
3901fi
3902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3903ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3904
3905fi
3906echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3907echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3908GXX=`test $ac_compiler_gnu = yes && echo yes`
3909ac_test_CXXFLAGS=${CXXFLAGS+set}
3910ac_save_CXXFLAGS=$CXXFLAGS
3911CXXFLAGS="-g"
3912echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3913echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3914if test "${ac_cv_prog_cxx_g+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h. */
3923
3924int
3925main ()
3926{
3927
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932rm -f conftest.$ac_objext
3933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_cxx_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_prog_cxx_g=yes
3955else
3956 echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959ac_cv_prog_cxx_g=no
3960fi
3961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3962fi
3963echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3964echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3965if test "$ac_test_CXXFLAGS" = set; then
3966 CXXFLAGS=$ac_save_CXXFLAGS
3967elif test $ac_cv_prog_cxx_g = yes; then
3968 if test "$GXX" = yes; then
3969 CXXFLAGS="-g -O2"
3970 else
3971 CXXFLAGS="-g"
3972 fi
3973else
3974 if test "$GXX" = yes; then
3975 CXXFLAGS="-O2"
3976 else
3977 CXXFLAGS=
3978 fi
3979fi
3980for ac_declaration in \
3981 '' \
3982 'extern "C" void std::exit (int) throw (); using std::exit;' \
3983 'extern "C" void std::exit (int); using std::exit;' \
3984 'extern "C" void exit (int) throw ();' \
3985 'extern "C" void exit (int);' \
3986 'void exit (int);'
3987do
3988 cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
3994$ac_declaration
3995#include <stdlib.h>
3996int
3997main ()
3998{
3999exit (42);
4000 ;
4001 return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext
4005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_cxx_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 :
4027else
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031continue
4032fi
4033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040$ac_declaration
4041int
4042main ()
4043{
4044exit (42);
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_cxx_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 break
4072else
4073 echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076fi
4077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4078done
4079rm -f conftest*
4080if test -n "$ac_declaration"; then
4081 echo '#ifdef __cplusplus' >>confdefs.h
4082 echo $ac_declaration >>confdefs.h
4083 echo '#endif' >>confdefs.h
4084fi
4085
4086ac_ext=c
4087ac_cpp='$CPP $CPPFLAGS'
4088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092
4093# We must set the default linker to the linker used by gcc for the correct
4094# operation of libtool. If LD is not defined and we are using gcc, try to
4095# set the LD default to the ld used by gcc.
4096if test -z "$LD"; then
4097 if test "$GCC" = yes; then
4098 case $build in
4099 *-*-mingw*)
4100 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4101 *)
4102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4103 esac
4104 case $gcc_prog_ld in
4105 # Accept absolute paths.
4106 [\\/]* | [A-Za-z]:[\\/]*)
4107 LD="$gcc_prog_ld" ;;
4108 esac
4109 fi
512b7dfb
PB
4110fi
4111
4112
4113
4114
c6b750e1 4115if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4116 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4117set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4118echo "$as_me:$LINENO: checking for $ac_word" >&5
4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4120if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4121 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4122else
512b7dfb
PB
4123 if test -n "$GNATBIND"; then
4124 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4125else
c6b750e1
DJ
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4133 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137done
4138done
4139
9e07f89d
NN
4140fi
4141fi
512b7dfb
PB
4142GNATBIND=$ac_cv_prog_GNATBIND
4143if test -n "$GNATBIND"; then
4144 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4145echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4146else
c6b750e1
DJ
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
9e07f89d
NN
4149fi
4150
c6b750e1 4151fi
512b7dfb
PB
4152if test -z "$ac_cv_prog_GNATBIND"; then
4153 ac_ct_GNATBIND=$GNATBIND
4154 # Extract the first word of "gnatbind", so it can be a program name with args.
4155set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4156echo "$as_me:$LINENO: checking for $ac_word" >&5
4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4158if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4159 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4160else
512b7dfb
PB
4161 if test -n "$ac_ct_GNATBIND"; then
4162 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4163else
c6b750e1
DJ
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4171 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175done
4176done
4177
512b7dfb 4178 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4179fi
4180fi
512b7dfb
PB
4181ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4182if test -n "$ac_ct_GNATBIND"; then
4183 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4184echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4185else
c6b750e1
DJ
4186 echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
9e07f89d
NN
4188fi
4189
512b7dfb 4190 GNATBIND=$ac_ct_GNATBIND
24ff9987 4191else
512b7dfb 4192 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4193fi
4194
7df2cd5d 4195if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4196 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4197set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4198echo "$as_me:$LINENO: checking for $ac_word" >&5
4199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4200if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
512b7dfb
PB
4203 if test -n "$GNATMAKE"; then
4204 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4213 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4216 fi
4217done
4218done
4219
4220fi
4221fi
512b7dfb
PB
4222GNATMAKE=$ac_cv_prog_GNATMAKE
4223if test -n "$GNATMAKE"; then
4224 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4225echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4226else
4227 echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229fi
4230
4231fi
512b7dfb
PB
4232if test -z "$ac_cv_prog_GNATMAKE"; then
4233 ac_ct_GNATMAKE=$GNATMAKE
4234 # Extract the first word of "gnatmake", so it can be a program name with args.
4235set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4236echo "$as_me:$LINENO: checking for $ac_word" >&5
4237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4238if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
512b7dfb
PB
4241 if test -n "$ac_ct_GNATMAKE"; then
4242 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4251 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255done
4256done
4257
512b7dfb 4258 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4259fi
4260fi
512b7dfb
PB
4261ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4262if test -n "$ac_ct_GNATMAKE"; then
4263 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4264echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4265else
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268fi
4269
512b7dfb 4270 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4271else
512b7dfb 4272 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4273fi
4274
c6b750e1
DJ
4275echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4276echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4277if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4279else
4280 cat >conftest.adb <<EOF
4281procedure conftest is begin null; end conftest;
4282EOF
4283acx_cv_cc_gcc_supports_ada=no
4284# There is a bug in old released versions of GCC which causes the
4285# driver to exit successfully when the appropriate language module
4286# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4287# Therefore we must check for the error message as well as an
4288# unsuccessful exit.
b8908782
DD
4289# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4290# given a .adb file, but produce no object file. So we must check
4291# if an object file was really produced to guard against this.
9e07f89d 4292errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4293if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4294 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4295fi
4296rm -f conftest.*
4297fi
c6b750e1
DJ
4298echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4299echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4300
512b7dfb 4301if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4302 have_gnat=yes
4303else
4304 have_gnat=no
4305fi
4306
c6b750e1
DJ
4307echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4308echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4309if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4311else
4312 echo abfoo >t1
4313 echo cdfoo >t2
4314 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4315 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4316 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4317 :
4318 else
4319 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4320 fi
4321 fi
b8908782
DD
4322 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4323 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4324 :
b8908782
DD
4325 else
4326 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4327 fi
4328 fi
4329 rm t1 t2
4330
4331fi
c6b750e1
DJ
4332echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4333echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4334do_compare="$gcc_cv_prog_cmp_skip"
4335
4336
9e07f89d 4337
11b04d1f 4338# Check for GMP and MPFR
4b900473 4339gmplibs="-lmpfr -lgmp"
4b1cb4fe 4340gmpinc=
4b900473
PB
4341have_gmp=no
4342
11b04d1f
DD
4343# Specify a location for mpfr
4344# check for this first so it ends up on the link line before gmp.
c6b750e1 4345
11b04d1f
DD
4346# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4347if test "${with_mpfr_dir+set}" = set; then
4348 withval="$with_mpfr_dir"
c6b750e1
DJ
4349 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4350Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4351echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4352Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4353 { (exit 1); exit 1; }; }
4354fi;
11b04d1f
DD
4355
4356
11b04d1f
DD
4357# Check whether --with-mpfr or --without-mpfr was given.
4358if test "${with_mpfr+set}" = set; then
4359 withval="$with_mpfr"
c6b750e1
DJ
4360
4361fi;
11b04d1f 4362
8a0d8a5c
PB
4363# Check whether --with-mpfr_include or --without-mpfr_include was given.
4364if test "${with_mpfr_include+set}" = set; then
4365 withval="$with_mpfr_include"
c6b750e1
DJ
4366
4367fi;
8a0d8a5c
PB
4368
4369# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4370if test "${with_mpfr_lib+set}" = set; then
4371 withval="$with_mpfr_lib"
8a0d8a5c 4372
c6b750e1 4373fi;
11b04d1f
DD
4374
4375if test "x$with_mpfr" != x; then
4376 gmplibs="-L$with_mpfr/lib $gmplibs"
4377 gmpinc="-I$with_mpfr/include"
4378fi
8a0d8a5c
PB
4379if test "x$with_mpfr_include" != x; then
4380 gmpinc="-I$with_mpfr_include"
4381fi
4382if test "x$with_mpfr_lib" != x; then
4383 gmplibs="-L$with_mpfr_lib $gmplibs"
4384fi
4b900473
PB
4385if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4386 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4387 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4388 # Do not test the mpfr version. Assume that it is sufficient, since
4389 # it is in the source tree, and the library has not been built yet
4390 # but it would be included on the link line in the version check below
4391 # hence making the test fail.
4392 have_gmp=yes
4393fi
11b04d1f 4394
4b1cb4fe 4395# Specify a location for gmp
c6b750e1 4396
4b1cb4fe
DD
4397# Check whether --with-gmp-dir or --without-gmp-dir was given.
4398if test "${with_gmp_dir+set}" = set; then
4399 withval="$with_gmp_dir"
c6b750e1
DJ
4400 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4401Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4402echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4403Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4404 { (exit 1); exit 1; }; }
4405fi;
4b1cb4fe
DD
4406
4407
4b1cb4fe
DD
4408# Check whether --with-gmp or --without-gmp was given.
4409if test "${with_gmp+set}" = set; then
4410 withval="$with_gmp"
c6b750e1
DJ
4411
4412fi;
4b1cb4fe 4413
8a0d8a5c
PB
4414# Check whether --with-gmp_include or --without-gmp_include was given.
4415if test "${with_gmp_include+set}" = set; then
4416 withval="$with_gmp_include"
c6b750e1
DJ
4417
4418fi;
8a0d8a5c
PB
4419
4420# Check whether --with-gmp_lib or --without-gmp_lib was given.
4421if test "${with_gmp_lib+set}" = set; then
4422 withval="$with_gmp_lib"
8a0d8a5c 4423
c6b750e1 4424fi;
8a0d8a5c 4425
4b1cb4fe 4426
11b04d1f
DD
4427if test "x$with_gmp" != x; then
4428 gmplibs="-L$with_gmp/lib $gmplibs"
4429 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4430fi
8a0d8a5c
PB
4431if test "x$with_gmp_include" != x; then
4432 gmpinc="-I$with_gmp_include $gmpinc"
4433fi
4434if test "x$with_gmp_lib" != x; then
4435 gmplibs="-L$with_gmp_lib $gmplibs"
4436fi
4b900473
PB
4437if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4438 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4439 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4440 # Do not test the gmp version. Assume that it is sufficient, since
4441 # it is in the source tree, and the library has not been built yet
4442 # but it would be included on the link line in the version check below
4443 # hence making the test fail.
4444 have_gmp=yes
4445fi
4b1cb4fe 4446
ceb92e78 4447if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4448 have_gmp=yes
4449 saved_CFLAGS="$CFLAGS"
4450 CFLAGS="$CFLAGS $gmpinc"
4451 # Check GMP actually works
c6b750e1
DJ
4452 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4453echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4454
4455cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h. */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h. */
4b1cb4fe 4461#include "gmp.h"
c6b750e1
DJ
4462int
4463main ()
4464{
4b1cb4fe 4465
4b900473
PB
4466 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4467 choke me
4468 #endif
c6b750e1
DJ
4469
4470 ;
4471 return 0;
4472}
4473_ACEOF
4474rm -f conftest.$ac_objext
4475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag"
4484 || test ! -s conftest.err'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 echo "$as_me:$LINENO: result: yes" >&5
4497echo "${ECHO_T}yes" >&6
4498else
4499 echo "$as_me: failed program was:" >&5
4500sed 's/^/| /' conftest.$ac_ext >&5
4501
4502echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6; have_gmp=no
4504fi
4505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4506
4b900473
PB
4507 if test x"$have_gmp" = xyes; then
4508 saved_LIBS="$LIBS"
4509 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4510 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4511echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4512 cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h. */
9b134994 4518#include <gmp.h>
4b900473 4519 #include <mpfr.h>
c6b750e1
DJ
4520int
4521main ()
4522{
9b134994 4523
4b900473
PB
4524 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4525 choke me
4526 #endif
a3ca38d2
DD
4527 mpfr_t n;
4528 mpfr_t x;
4b900473 4529 int t;
a3ca38d2
DD
4530 mpfr_init (n);
4531 mpfr_init (x);
4b900473
PB
4532 mpfr_atan2 (n, n, x, GMP_RNDN);
4533 mpfr_erfc (n, x, GMP_RNDN);
4534 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4535
4536 ;
4537 return 0;
4538}
4539_ACEOF
4540rm -f conftest.$ac_objext conftest$ac_exeext
4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>conftest.er1
4543 ac_status=$?
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try='test -z "$ac_c_werror_flag"
4550 || test ! -s conftest.err'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; } &&
4556 { ac_try='test -s conftest$ac_exeext'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 (eval $ac_try) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h. */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h. */
4b1cb4fe 4568#include <gmp.h>
4b900473 4569 #include <mpfr.h>
c6b750e1
DJ
4570int
4571main ()
4572{
9dbaa842 4573
4b900473
PB
4574 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4575 choke me
4576 #endif
4577 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4578
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583rm -f conftest.$ac_objext conftest$ac_exeext
4584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest$ac_exeext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607else
4608 echo "$as_me: failed program was:" >&5
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
4611echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4612echo "${ECHO_T}buggy but acceptable" >&6
4613fi
4614rm -f conftest.err conftest.$ac_objext \
4615 conftest$ac_exeext conftest.$ac_ext
4616else
4617 echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6; have_gmp=no
4622fi
4623rm -f conftest.err conftest.$ac_objext \
4624 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4625 LIBS="$saved_LIBS"
4626 fi
4627 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4628
4b900473 4629 if test x$have_gmp != xyes; then
c6b750e1
DJ
4630 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4631Try the --with-gmp and/or --with-mpfr options to specify their locations.
4632Copies of these libraries' source code can be found at their respective
4633hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4634See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4635If you obtained GMP and/or MPFR from a vendor distribution package, make
4636sure that you have installed both the libraries and the header files.
4637They may be located in separate packages." >&5
4638echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4639Try the --with-gmp and/or --with-mpfr options to specify their locations.
4640Copies of these libraries' source code can be found at their respective
4641hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4642See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4643If you obtained GMP and/or MPFR from a vendor distribution package, make
4644sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4645They may be located in separate packages." >&2;}
4646 { (exit 1); exit 1; }; }
4b900473 4647 fi
9dbaa842
DD
4648fi
4649
11b04d1f 4650# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4651
4652
4653
947f426e 4654# By default, C is the only stage 1 language.
9b134994 4655stage1_languages=,c,
1d39f329 4656
9e07f89d
NN
4657# Figure out what language subdirectories are present.
4658# Look if the user specified --enable-languages="..."; if not, use
4659# the environment variable $LANGUAGES if defined. $LANGUAGES might
4660# go away some day.
4661# NB: embedded tabs in this IF block -- do not untabify
4662if test -d ${srcdir}/gcc; then
4663 if test x"${enable_languages+set}" != xset; then
4664 if test x"${LANGUAGES+set}" = xset; then
4665 enable_languages="${LANGUAGES}"
4666 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4667 else
4668 enable_languages=all
4669 fi
4670 else
4671 if test x"${enable_languages}" = x ||
4672 test x"${enable_languages}" = xyes;
4673 then
4674 echo configure.in: --enable-languages needs at least one language argument 1>&2
4675 exit 1
4676 fi
4677 fi
4678 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4679
096f7d00
DE
4680 # 'f95' is the old name for the 'fortran' language. We issue a warning
4681 # and make the substitution.
4682 case ,${enable_languages}, in
4683 *,f95,*)
4684 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4685 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4686 ;;
4687 esac
4688
9e07f89d
NN
4689 # First scan to see if an enabled language requires some other language.
4690 # We assume that a given config-lang.in will list all the language
4691 # front ends it requires, even if some are required indirectly.
4692 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4693 case ${lang_frag} in
4694 ..) ;;
4695 # The odd quoting in the next line works around
4696 # an apparent bug in bash 1.12 on linux.
4697 ${srcdir}/gcc/[*]/config-lang.in) ;;
4698 *)
4699 # From the config-lang.in, get $language, $lang_requires
4700 language=
4701 lang_requires=
4702 . ${lang_frag}
4703 for other in ${lang_requires} ; do
4704 case ,${enable_languages}, in
4705 *,$other,*) ;;
4706 *,all,*) ;;
4707 *,$language,*)
4708 echo " \`$other' language required by \`$language'; enabling" 1>&2
4709 enable_languages="${enable_languages},${other}"
4710 ;;
4711 esac
4712 done
4713 ;;
4714 esac
4715 done
4716
9b134994 4717 new_enable_languages=,c,
9e07f89d 4718 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4719 potential_languages=,c,
9e07f89d
NN
4720
4721 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4722 case ${lang_frag} in
4723 ..) ;;
4724 # The odd quoting in the next line works around
4725 # an apparent bug in bash 1.12 on linux.
4726 ${srcdir}/gcc/[*]/config-lang.in) ;;
4727 *)
c6b750e1 4728 # From the config-lang.in, get $language, $target_libs,
1d39f329 4729 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4730 language=
4731 target_libs=
4732 lang_dirs=
64ce424c 4733 subdir_requires=
9b134994
PB
4734 boot_language=no
4735 build_by_default=yes
9e07f89d 4736 . ${lang_frag}
9b134994
PB
4737 if test x${language} = x; then
4738 echo "${lang_frag} doesn't set \$language." 1>&2
4739 exit 1
4740 fi
4741
4742 case ,${enable_languages}, in
4743 *,${language},*)
9e07f89d
NN
4744 # Language was explicitly selected; include it.
4745 add_this_lang=yes
4746 ;;
9b134994
PB
4747 *,all,*)
4748 # 'all' was selected, select it if it is a default language
4749 add_this_lang=${build_by_default}
9e07f89d
NN
4750 ;;
4751 *)
4752 add_this_lang=no
4753 ;;
4754 esac
4b1cb4fe 4755
64ce424c 4756 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4757 for i in $subdir_requires; do
3d3adb43 4758 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4759 case ,${enable_languages}, in
4760 *,${language},*)
4761 # Specifically requested language; tell them.
c6b750e1
DJ
4762 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4763echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4764 { (exit 1); exit 1; }; }
64ce424c
PB
4765 ;;
4766 *)
4767 # Silently disable.
9b134994 4768 add_this_lang=unsupported
64ce424c
PB
4769 ;;
4770 esac
4771 done
4772
9b134994
PB
4773 # Disable Ada if no preexisting GNAT is available.
4774 case ,${enable_languages},:${language}:${have_gnat} in
4775 *,${language},*:ada:no)
4776 # Specifically requested language; tell them.
c6b750e1
DJ
4777 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4778echo "$as_me: error: GNAT is required to build $language" >&2;}
4779 { (exit 1); exit 1; }; }
9b134994
PB
4780 ;;
4781 *:ada:no)
4782 # Silently disable.
4783 add_this_lang=unsupported
4784 ;;
4785 esac
4786
59f7ec45
HPN
4787 # Disable a language that is unsupported by the target.
4788 case " $unsupported_languages " in
4789 *" $language "*)
9b134994 4790 add_this_lang=unsupported
59f7ec45
HPN
4791 ;;
4792 esac
4793
4b1cb4fe 4794 case $add_this_lang in
9b134994 4795 unsupported)
9e07f89d 4796 # Remove language-dependent dirs.
1d39f329
NN
4797 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4798 ;;
9b134994
PB
4799 no)
4800 # Remove language-dependent dirs; still show language as supported.
4801 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4802 potential_languages="${potential_languages}${language},"
4803 ;;
4804 yes)
4805 new_enable_languages="${new_enable_languages}${language},"
4806 potential_languages="${potential_languages}${language},"
1d39f329
NN
4807 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4808 case ${boot_language} in
4809 yes)
4fa63067 4810 # Add to (comma-separated) list of stage 1 languages.
9b134994 4811 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4812 ;;
4813 esac
4814 ;;
9e07f89d
NN
4815 esac
4816 ;;
4817 esac
4818 done
4819
9b134994
PB
4820 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4821if test "${enable_stage1_languages+set}" = set; then
4822 enableval="$enable_stage1_languages"
4823 case ,${enable_stage1_languages}, in
4824 ,no,|,,)
4825 # Set it to something that will have no effect in the loop below
4826 enable_stage1_languages=c ;;
4827 ,yes,)
4828 enable_stage1_languages=`echo $new_enable_languages | \
4829 sed -e "s/^,//" -e "s/,$//" ` ;;
4830 *,all,*)
4831 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4832 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4833 esac
4834
4835 # Add "good" languages from enable_stage1_languages to stage1_languages,
4836 # while "bad" languages go in missing_languages. Leave no duplicates.
4837 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4838 case $potential_languages in
4839 *,$i,*)
4840 case $stage1_languages in
4841 *,$i,*) ;;
4842 *) stage1_languages="$stage1_languages$i," ;;
4843 esac ;;
4844 *)
4845 case $missing_languages in
4846 *,$i,*) ;;
4847 *) missing_languages="$missing_languages$i," ;;
4848 esac ;;
4849 esac
4850 done
c6b750e1 4851fi;
9b134994
PB
4852
4853 # Remove leading/trailing commas that were added for simplicity
4854 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4855 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4856 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4857 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4858
9e07f89d 4859 if test "x$missing_languages" != x; then
c6b750e1 4860 { { echo "$as_me:$LINENO: error:
27258dd4 4861The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4862Supported languages are: ${potential_languages}" >&5
4863echo "$as_me: error:
4864The following requested languages could not be built: ${missing_languages}
4865Supported languages are: ${potential_languages}" >&2;}
4866 { (exit 1); exit 1; }; }
9e07f89d 4867 fi
9e07f89d
NN
4868 if test "x$new_enable_languages" != "x$enable_languages"; then
4869 echo The following languages will be built: ${new_enable_languages}
9b134994 4870 enable_languages="$new_enable_languages"
9e07f89d 4871 fi
9b134994 4872
c6b750e1 4873
81ec575a 4874 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4875fi
4876
a6df5a19
PB
4877# Handle --disable-<component> generically.
4878for dir in $configdirs $build_configdirs $target_configdirs ; do
4879 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4880 if eval test x\${enable_${dirname}} "=" xno ; then
4881 noconfigdirs="$noconfigdirs $dir"
4882 fi
4883done
4884
4f0ef2d8
CD
4885# Check for Boehm's garbage collector
4886# Check whether --enable-objc-gc or --disable-objc-gc was given.
4887if test "${enable_objc_gc+set}" = set; then
4888 enableval="$enable_objc_gc"
4889 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4890 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4891 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4892echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4893 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4894 ;;
4895esac
c6b750e1 4896fi;
4f0ef2d8
CD
4897
4898# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4899case ,${enable_languages},:${enable_objc_gc} in
4900 *,objc,*:yes)
4f0ef2d8
CD
4901 # Keep target-boehm-gc if requested for Objective-C.
4902 ;;
4f0ef2d8 4903 *)
d42c4017
DA
4904 # Otherwise remove target-boehm-gc depending on target-libjava.
4905 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4906 noconfigdirs="$noconfigdirs target-boehm-gc"
4907 fi
4f0ef2d8
CD
4908 ;;
4909esac
4910
caeba88f
AL
4911# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4912# $build_configdirs and $target_configdirs.
9e07f89d
NN
4913# If we have the source for $noconfigdirs entries, add them to $notsupp.
4914
4915notsupp=""
4916for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4917 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4918 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4919 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4920 if test -r $srcdir/$dirname/configure ; then
4921 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4922 true
4923 else
4924 notsupp="$notsupp $dir"
4925 fi
4926 fi
4927 fi
caeba88f
AL
4928 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4929 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4930 if test -r $srcdir/$dirname/configure ; then
4931 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4932 true
4933 else
4934 notsupp="$notsupp $dir"
4935 fi
4936 fi
4937 fi
9e07f89d
NN
4938 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4939 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4940 if test -r $srcdir/$dirname/configure ; then
4941 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4942 true
4943 else
4944 notsupp="$notsupp $dir"
4945 fi
4946 fi
4947 fi
4948done
4949
4950# Sometimes the tools are distributed with libiberty but with no other
4951# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4952# Don't let libgcc imply libiberty either.
9e07f89d 4953if test -n "${target_configdirs}" ; then
f86e35b8 4954 libgcc=
9e07f89d
NN
4955 others=
4956 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4957 if test "$i" = "libgcc"; then
4958 libgcc=target-libgcc
4959 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4960 if test -r $srcdir/$i/configure ; then
4961 others=yes;
4962 break;
4963 fi
4964 fi
4965 done
4966 if test -z "${others}" ; then
f86e35b8 4967 target_configdirs=$libgcc
9e07f89d
NN
4968 fi
4969fi
4970
4971# Quietly strip out all directories which aren't configurable in this tree.
4972# This relies on all configurable subdirectories being autoconfiscated, which
4973# is now the case.
6a9cf61e
PB
4974build_configdirs_all="$build_configdirs"
4975build_configdirs=
4976for i in ${build_configdirs_all} ; do
c6b750e1 4977 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4978 if test -f ${srcdir}/$j/configure ; then
4979 build_configdirs="${build_configdirs} $i"
4980 fi
4981done
4982
9e07f89d
NN
4983configdirs_all="$configdirs"
4984configdirs=
4985for i in ${configdirs_all} ; do
4986 if test -f ${srcdir}/$i/configure ; then
4987 configdirs="${configdirs} $i"
4988 fi
4989done
6a9cf61e 4990
9e07f89d
NN
4991target_configdirs_all="$target_configdirs"
4992target_configdirs=
4993for i in ${target_configdirs_all} ; do
c6b750e1 4994 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4995 if test -f ${srcdir}/$j/configure ; then
4996 target_configdirs="${target_configdirs} $i"
4997 fi
4998done
4999
5000# Produce a warning message for the subdirs we can't configure.
5001# This isn't especially interesting in the Cygnus tree, but in the individual
5002# FSF releases, it's important to let people know when their machine isn't
5003# supported by the one or two programs in a package.
5004
5005if test -n "${notsupp}" && test -z "${norecursion}" ; then
5006 # If $appdirs is non-empty, at least one of those directories must still
5007 # be configured, or we error out. (E.g., if the gas release supports a
5008 # specified target in some subdirs but not the gas subdir, we shouldn't
5009 # pretend that all is well.)
5010 if test -n "$appdirs" ; then
5011 for dir in $appdirs ; do
5012 if test -r $dir/Makefile.in ; then
5013 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5014 appdirs=""
5015 break
5016 fi
6a9cf61e 5017 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5018 appdirs=""
5019 break
5020 fi
5021 fi
5022 done
5023 if test -n "$appdirs" ; then
5024 echo "*** This configuration is not supported by this package." 1>&2
5025 exit 1
5026 fi
5027 fi
5028 # Okay, some application will build, or we don't care to check. Still
5029 # notify of subdirs not getting built.
5030 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5031 echo " ${notsupp}" 1>&2
5032 echo " (Any other directories should still work fine.)" 1>&2
5033fi
5034
5035case "$host" in
5036 *msdosdjgpp*)
5037 enable_gdbtk=no ;;
5038esac
5039
18f6b6ee
PB
5040# To find our prefix, in gcc_cv_tool_prefix.
5041
5042# The user is always right.
5043if test "${PATH_SEPARATOR+set}" != set; then
5044 echo "#! /bin/sh" >conf$$.sh
5045 echo "exit 0" >>conf$$.sh
5046 chmod +x conf$$.sh
5047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5048 PATH_SEPARATOR=';'
5049 else
5050 PATH_SEPARATOR=:
5051 fi
5052 rm -f conf$$.sh
5053fi
5054
5055
5056
5057if test "x$exec_prefix" = xNONE; then
5058 if test "x$prefix" = xNONE; then
5059 gcc_cv_tool_prefix=$ac_default_prefix
5060 else
5061 gcc_cv_tool_prefix=$prefix
5062 fi
5063else
5064 gcc_cv_tool_prefix=$exec_prefix
5065fi
5066
5067# If there is no compiler in the tree, use the PATH only. In any
5068# case, if there is no compiler in the tree nobody should use
5069# AS_FOR_TARGET and LD_FOR_TARGET.
5070if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5071 gcc_version=`cat $srcdir/gcc/BASE-VER`
5072 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5077 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5078else
5079 gcc_cv_tool_dirs=
5080fi
5081
5082if test x$build = x$target && test -n "$md_exec_prefix"; then
5083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5084fi
5085
5086
5087
9e07f89d
NN
5088copy_dirs=
5089
c6b750e1 5090
a19b6204
MM
5091# Check whether --with-build-sysroot or --without-build-sysroot was given.
5092if test "${with_build_sysroot+set}" = set; then
5093 withval="$with_build_sysroot"
5094 if test x"$withval" != x ; then
5095 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5096 fi
5097else
5098 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5099fi;
a19b6204
MM
5100
5101
8a6ee3ab
JM
5102
5103# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5104if test "${with_debug_prefix_map+set}" = set; then
5105 withval="$with_debug_prefix_map"
5106 if test x"$withval" != x; then
5107 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5108 for debug_map in $withval; do
5109 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5110 done
5111 fi
5112else
5113 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5114fi;
5115
5116
9e07f89d
NN
5117# Handle --with-headers=XXX. If the value is not "yes", the contents of
5118# the named directory are copied to $(tooldir)/sys-include.
5119if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5120 if test x${is_cross_compiler} = xno ; then
5121 echo 1>&2 '***' --with-headers is only supported when cross compiling
5122 exit 1
5123 fi
5124 if test x"${with_headers}" != xyes ; then
18f6b6ee 5125 x=${gcc_cv_tool_prefix}
c6b750e1 5126 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5127 fi
5128fi
5129
5130# Handle --with-libs=XXX. If the value is not "yes", the contents of
5131# the name directories are copied to $(tooldir)/lib. Multiple directories
5132# are permitted.
5133if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5134 if test x${is_cross_compiler} = xno ; then
5135 echo 1>&2 '***' --with-libs is only supported when cross compiling
5136 exit 1
5137 fi
5138 if test x"${with_libs}" != xyes ; then
5139 # Copy the libraries in reverse order, so that files in the first named
5140 # library override files in subsequent libraries.
18f6b6ee 5141 x=${gcc_cv_tool_prefix}
9e07f89d 5142 for l in ${with_libs}; do
c6b750e1 5143 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5144 done
5145 fi
5146fi
5147
2429c060
PB
5148# Set with_gnu_as and with_gnu_ld as appropriate.
5149#
5150# This is done by determining whether or not the appropriate directory
5151# is available, and by checking whether or not specific configurations
5152# have requested that this magic not happen.
c6b750e1
DJ
5153#
5154# The command line options always override the explicit settings in
2429c060
PB
5155# configure.in, and the settings in configure.in override this magic.
5156#
c6b750e1 5157# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5158# want to do that, then you should use the --without-gnu-as and
5159# --without-gnu-ld options for the configure script.
5160
5161if test x${use_gnu_as} = x &&
5162 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5163 with_gnu_as=yes
5164 extra_host_args="$extra_host_args --with-gnu-as"
5165fi
5166
5167if test x${use_gnu_ld} = x &&
5168 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5169 with_gnu_ld=yes
5170 extra_host_args="$extra_host_args --with-gnu-ld"
5171fi
5172
5173# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5174# can detect this case.
5175
5176if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5177 with_newlib=yes
5178 extra_host_args="$extra_host_args --with-newlib"
5179fi
5180
9e07f89d
NN
5181# Handle ${copy_dirs}
5182set fnord ${copy_dirs}
5183shift
5184while test $# != 0 ; do
5185 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5186 :
5187 else
5188 echo Copying $1 to $2
5189
5190 # Use the install script to create the directory and all required
5191 # parent directories.
5192 if test -d $2 ; then
5193 :
5194 else
5195 echo >config.temp
5196 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5197 fi
5198
5199 # Copy the directory, assuming we have tar.
5200 # FIXME: Should we use B in the second tar? Not all systems support it.
5201 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5202
5203 # It is the responsibility of the user to correctly adjust all
5204 # symlinks. If somebody can figure out how to handle them correctly
5205 # here, feel free to add the code.
5206
5207 echo $1 > $2/COPIED
5208 fi
5209 shift; shift
5210done
5211
2429c060
PB
5212# Determine a target-dependent exec_prefix that the installed
5213# gcc will search in. Keep this list sorted by triplet, with
5214# the *-*-osname triplets last.
5215md_exec_prefix=
5216case "${target}" in
5217 alpha*-*-*vms*)
5218 md_exec_prefix=/gnu/lib/gcc-lib
5219 ;;
521ec477 5220 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5221 md_exec_prefix=/dev/env/DJDIR/bin
5222 ;;
521ec477 5223 i[34567]86-*-sco3.2v5*)
2429c060
PB
5224 if test $with_gnu_as = yes; then
5225 md_exec_prefix=/usr/gnu/bin
5226 else
5227 md_exec_prefix=/usr/ccs/bin/elf
5228 fi
5229 ;;
5230
5231 mn10300-*-* | \
5232 powerpc-*-chorusos* | \
5233 powerpc*-*-eabi* | \
5234 powerpc*-*-sysv* | \
5235 powerpc*-*-kaos* | \
5236 s390x-ibm-tpf*)
5237 md_exec_prefix=/usr/ccs/bin
5238 ;;
5239 sparc64-*-elf*)
5240 ;;
5241 v850*-*-*)
5242 md_exec_prefix=/usr/ccs/bin
5243 ;;
5244 xtensa-*-elf*)
5245 ;;
5246
5247 *-*-beos* | \
5248 *-*-elf* | \
5249 *-*-hpux* | \
5250 *-*-netware* | \
5251 *-*-nto-qnx* | \
5252 *-*-rtems* | \
5253 *-*-solaris2* | \
521ec477 5254 *-*-sysv[45]* | \
2429c060
PB
5255 *-*-vxworks* | \
5256 *-wrs-windiss)
5257 md_exec_prefix=/usr/ccs/bin
5258 ;;
5259esac
5260
a0da8069
NN
5261extra_arflags_for_target=
5262extra_nmflags_for_target=
5263extra_ranlibflags_for_target=
5264target_makefile_frag=/dev/null
5265case "${target}" in
4e206d7e
DB
5266 mep*-*-*)
5267 target_makefile_frag="config/mt-mep"
5268 ;;
77d7106f
AM
5269 spu-*-*)
5270 target_makefile_frag="config/mt-spu"
5271 ;;
429acdec
RS
5272 mips*-sde-elf*)
5273 target_makefile_frag="config/mt-sde"
5274 ;;
2a3124ca 5275 *-*-netware*)
a0da8069
NN
5276 target_makefile_frag="config/mt-netware"
5277 ;;
3d6dfe0f
NN
5278 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5279 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5280 ;;
5281 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5282 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5283 # commands to handle both 32-bit and 64-bit objects. These flags are
5284 # harmless if we're using GNU nm or ar.
5285 extra_arflags_for_target=" -X32_64"
5286 extra_nmflags_for_target=" -B -X32_64"
5287 ;;
5288 *-*-darwin*)
5289 # ranlib from Darwin requires the -c flag to look at common symbols.
5290 extra_ranlibflags_for_target=" -c"
5291 ;;
5292 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5293 target_makefile_frag="config/mt-wince"
5294 ;;
5295esac
5296
5297alphaieee_frag=/dev/null
5298case $target in
5299 alpha*-*-*)
5300 # This just makes sure to use the -mieee option to build target libs.
5301 # This should probably be set individually by each library.
5302 alphaieee_frag="config/mt-alphaieee"
5303 ;;
5304esac
5305
5306# If --enable-target-optspace always use -Os instead of -O2 to build
5307# the target libraries, similarly if it is not specified, use -Os
5308# on selected platforms.
5309ospace_frag=/dev/null
5310case "${enable_target_optspace}:${target}" in
5311 yes:*)
5312 ospace_frag="config/mt-ospace"
5313 ;;
5314 :d30v-*)
5315 ospace_frag="config/mt-d30v"
5316 ;;
5317 :m32r-* | :d10v-* | :fr30-*)
5318 ospace_frag="config/mt-ospace"
5319 ;;
5320 no:* | :*)
5321 ;;
5322 *)
5323 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5324 ;;
5325esac
5326
a0da8069
NN
5327# Default to using --with-stabs for certain targets.
5328if test x${with_stabs} = x ; then
5329 case "${target}" in
e31d1ea3 5330 mips*-*-irix[56]*)
a0da8069
NN
5331 ;;
5332 mips*-*-* | alpha*-*-osf*)
5333 with_stabs=yes;
5334 extra_host_args="${extra_host_args} --with-stabs"
5335 ;;
5336 esac
5337fi
5338
5339# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5340# them automatically.
5341case "${host}" in
c6b750e1 5342 hppa*64*-*-hpux11*)
a0da8069
NN
5343 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5344 ;;
5345esac
5346
a0da8069
NN
5347# Some systems (e.g., one of the i386-aix systems the gas testers are
5348# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5349tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5350build_tooldir=${tooldir}
5351
a0da8069
NN
5352# Create a .gdbinit file which runs the one in srcdir
5353# and tells GDB to look there for source files.
5354
5355if test -r ${srcdir}/.gdbinit ; then
5356 case ${srcdir} in
5357 .) ;;
5358 *) cat > ./.gdbinit <<EOF
5359# ${NO_EDIT}
5360dir ${srcdir}
5361dir .
5362source ${srcdir}/.gdbinit
5363EOF
5364 ;;
5365 esac
5366fi
5367
a0da8069
NN
5368# Make sure that the compiler is able to generate an executable. If it
5369# can't, we are probably in trouble. We don't care whether we can run the
5370# executable--we might be using a cross compiler--we only care whether it
5371# can be created. At this point the main configure script has set CC.
5372we_are_ok=no
5373echo "int main () { return 0; }" > conftest.c
5374${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5375if test $? = 0 ; then
5376 if test -s conftest || test -s conftest.exe ; then
5377 we_are_ok=yes
5378 fi
c6b750e1 5379fi
a0da8069
NN
5380case $we_are_ok in
5381 no)
5382 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5383 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5384 rm -f conftest*
5385 exit 1
5386 ;;
5387esac
5388rm -f conftest*
5389
5390# The Solaris /usr/ucb/cc compiler does not appear to work.
5391case "${host}" in
5392 sparc-sun-solaris2*)
5393 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5394 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5395 could_use=
5396 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5397 if test -d /opt/cygnus/bin ; then
5398 if test "$could_use" = "" ; then
5399 could_use="/opt/cygnus/bin"
5400 else
5401 could_use="$could_use or /opt/cygnus/bin"
5402 fi
5403 fi
5404 if test "$could_use" = "" ; then
5405 echo "Warning: compilation may fail because you're using"
5406 echo "/usr/ucb/cc. You should change your PATH or CC "
5407 echo "variable and rerun configure."
5408 else
5409 echo "Warning: compilation may fail because you're using"
5410 echo "/usr/ucb/cc, when you should use the C compiler from"
5411 echo "$could_use. You should change your"
5412 echo "PATH or CC variable and rerun configure."
5413 fi
5414 fi
5415 ;;
5416esac
5417
a0da8069
NN
5418case "${host}" in
5419 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5420 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5421 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5422esac
5423
5424# Record target_configdirs and the configure arguments for target and
5425# build configuration in Makefile.
5426target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5427build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5428
a0da8069
NN
5429# Determine whether gdb needs tk/tcl or not.
5430# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5431# and in that case we want gdb to be built without tk. Ugh!
5432# In fact I believe gdb is the *only* package directly dependent on tk,
5433# so we should be able to put the 'maybe's in unconditionally and
5434# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5435# 100% sure that that's safe though.
c180f501 5436
675c6968 5437gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5438case "$enable_gdbtk" in
5439 no)
5440 GDB_TK="" ;;
c180f501
AC
5441 yes)
5442 GDB_TK="${gdb_tk}" ;;
a0da8069 5443 *)
c180f501
AC
5444 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5445 # distro. Eventually someone will fix this and move Insight, nee
5446 # gdbtk to a separate directory.
5447 if test -d ${srcdir}/gdb/gdbtk ; then
5448 GDB_TK="${gdb_tk}"
5449 else
5450 GDB_TK=""
5451 fi
5452 ;;
a0da8069 5453esac
907be67c
DJ
5454CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5455INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5456
6bd3dfaa 5457# Strip out unwanted targets.
dd12c3a8
NN
5458
5459# While at that, we remove Makefiles if we were started for recursive
5460# configuration, so that the top-level Makefile reconfigures them,
5461# like we used to do when configure itself was recursive.
dd12c3a8 5462
6bd3dfaa
PB
5463# Loop over modules. $extrasub must be used with care, limiting as
5464# much as possible the usage of range addresses. That's because autoconf
5465# splits the sed script to overcome limits in the number of commands,
5466# and relying on carefully-timed sed passes may turn out to be very hard
5467# to maintain later. In this particular case, you just have to be careful
5468# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5469
319cab08
PB
5470# Check whether --enable-bootstrap or --disable-bootstrap was given.
5471if test "${enable_bootstrap+set}" = set; then
5472 enableval="$enable_bootstrap"
c6b750e1 5473
319cab08 5474else
9cb3fa6f 5475 enable_bootstrap=default
c6b750e1 5476fi;
319cab08 5477
9cb3fa6f
PB
5478# Issue errors and warnings for invalid/strange bootstrap combinations.
5479case "$configdirs" in
5480 *gcc*) have_compiler=yes ;;
5481 *) have_compiler=no ;;
5482esac
5483
5484case "$have_compiler:$host:$target:$enable_bootstrap" in
5485 *:*:*:no) ;;
5486
0aed8855 5487 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5488 # and we are in a native configuration.
5489 yes:$build:$build:default)
0aed8855 5490 enable_bootstrap=yes ;;
9cb3fa6f
PB
5491
5492 *:*:*:default)
5493 enable_bootstrap=no ;;
5494
5495 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5496 yes:$build:$build:yes)
9cb3fa6f
PB
5497 ;;
5498
5499 # Other configurations, but we have a compiler. Assume the user knows
5500 # what he's doing.
80911fe1 5501 yes:*:*:yes)
c6b750e1
DJ
5502 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5503echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5504 ;;
5505
5506 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5507 no:*:*:yes)
c6b750e1
DJ
5508 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5509echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5510 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5511
5512 # Fail if wrong command line
5513 *)
c6b750e1
DJ
5514 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5515echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5516 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5517 ;;
5518esac
5519
5520# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5521case "$enable_bootstrap" in
5522 yes)
498d4a71 5523 bootstrap_suffix=bootstrap ;;
319cab08 5524 no)
498d4a71 5525 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5526esac
5527
6a9cf61e 5528for module in ${build_configdirs} ; do
498d4a71
CF
5529 if test -z "${no_recursion}" \
5530 && test -f ${build_subdir}/${module}/Makefile; then
5531 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5532 rm -f ${build_subdir}/${module}/Makefile
5533 fi
5534 extrasub="$extrasub
5535/^@if build-$module\$/d
5536/^@endif build-$module\$/d
5537/^@if build-$module-$bootstrap_suffix\$/d
5538/^@endif build-$module-$bootstrap_suffix\$/d"
5539done
5540for module in ${configdirs} ; do
80911fe1 5541 if test -z "${no_recursion}"; then
8cf39b1b 5542 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5543 if test -f ${file}; then
5544 echo 1>&2 "*** removing ${file} to force reconfigure"
5545 rm -f ${file}
5546 fi
5547 done
498d4a71
CF
5548 fi
5549 extrasub="$extrasub
5550/^@if $module\$/d
5551/^@endif $module\$/d
5552/^@if $module-$bootstrap_suffix\$/d
5553/^@endif $module-$bootstrap_suffix\$/d"
5554done
5555for module in ${target_configdirs} ; do
5556 if test -z "${no_recursion}" \
5557 && test -f ${target_subdir}/${module}/Makefile; then
5558 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5559 rm -f ${target_subdir}/${module}/Makefile
5560 fi
5561 extrasub="$extrasub
5562/^@if target-$module\$/d
5563/^@endif target-$module\$/d
5564/^@if target-$module-$bootstrap_suffix\$/d
5565/^@endif target-$module-$bootstrap_suffix\$/d"
5566done
5567
6bd3dfaa
PB
5568extrasub="$extrasub
5569/^@if /,/^@endif /d"
a0da8069
NN
5570
5571# Create the serialization dependencies. This uses a temporary file.
5572
e6bfb94a
AO
5573# Check whether --enable-serial-configure or --disable-serial-configure was given.
5574if test "${enable_serial_configure+set}" = set; then
5575 enableval="$enable_serial_configure"
e6bfb94a 5576
c6b750e1 5577fi;
e6bfb94a 5578
1047cb91
DD
5579case ${enable_serial_configure} in
5580 yes)
5581 enable_serial_build_configure=yes
5582 enable_serial_host_configure=yes
5583 enable_serial_target_configure=yes
5584 ;;
5585esac
5586
a0da8069
NN
5587# These force 'configure's to be done one at a time, to avoid problems
5588# with contention over a shared config.cache.
5589rm -f serdep.tmp
e6bfb94a 5590echo '# serdep.tmp' > serdep.tmp
a0da8069 5591olditem=
1047cb91 5592test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5593for item in ${build_configdirs} ; do
5594 case ${olditem} in
5595 "") ;;
e6bfb94a 5596 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5597 esac
5598 olditem=${item}
5599done
5600olditem=
1047cb91 5601test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5602for item in ${configdirs} ; do
5603 case ${olditem} in
5604 "") ;;
e6bfb94a 5605 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5606 esac
5607 olditem=${item}
5608done
5609olditem=
1047cb91 5610test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5611for item in ${target_configdirs} ; do
5612 case ${olditem} in
5613 "") ;;
e6bfb94a 5614 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5615 esac
5616 olditem=${item}
5617done
5618serialization_dependencies=serdep.tmp
5619
5620
e6bfb94a 5621# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5622# target, nonopt, and variable assignments. These are the ones we
5623# might not want to pass down to subconfigures. Also strip
5624# program-prefix, program-suffix, and program-transform-name, so that
5625# we can pass down a consistent program-transform-name.
5626baseargs=
5627keep_next=no
5628skip_next=no
5629eval "set -- $ac_configure_args"
18f6b6ee
PB
5630for ac_arg
5631do
c6b750e1
DJ
5632 if test X"$skip_next" = X"yes"; then
5633 skip_next=no
5634 continue
5635 fi
5636 if test X"$keep_next" = X"yes"; then
5637 case $ac_arg in
5638 *\'*)
5639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5640 esac
5641 baseargs="$baseargs '$ac_arg'"
5642 keep_next=no
5643 continue
5644 fi
5645
5646 # Handle separated arguments. Based on the logic generated by
5647 # autoconf 2.59.
5648 case $ac_arg in
5649 *=* | --config-cache | -C | -disable-* | --disable-* \
5650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5652 | -with-* | --with-* | -without-* | --without-* | --x)
5653 separate_arg=no
5654 ;;
5655 -*)
5656 separate_arg=yes
5657 ;;
5658 *)
5659 separate_arg=no
5660 ;;
5661 esac
5662
5663 case "$ac_arg" in
5664 --no*)
5665 continue
5666 ;;
5667 --c* | \
5668 --sr* | \
5669 --ho* | \
5670 --bu* | \
5671 --t* | \
5672 --program-* | \
5673 -cache_file* | \
5674 -srcdir* | \
5675 -host* | \
5676 -build* | \
5677 -target* | \
5678 -program-prefix* | \
5679 -program-suffix* | \
5680 -program-transform-name* )
5681 skip_next=$separate_arg
5682 continue
5683 ;;
5684 -*)
5685 # An option. Add it.
5686 case $ac_arg in
5687 *\'*)
5688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5689 esac
5690 baseargs="$baseargs '$ac_arg'"
5691 keep_next=$separate_arg
5692 ;;
5693 *)
5694 # Either a variable assignment, or a nonopt (triplet). Don't
5695 # pass it down; let the Makefile handle this.
5696 continue
5697 ;;
5698 esac
5699done
5700# Remove the initial space we just introduced and, as these will be
5701# expanded by make, quote '$'.
5702baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5703
f27d4f92
DJ
5704# Add in --program-transform-name, after --program-prefix and
5705# --program-suffix have been applied to it. Autoconf has already
5706# doubled dollar signs and backslashes in program_transform_name; we want
5707# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5708# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5709# Also, because we want to override the logic in subdir configure scripts to
5710# choose program_transform_name, replace any s,x,x, with s,y,y,.
5711sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5712${program_transform_name}
5713EOF_SED
5714gcc_transform_name=`cat conftestsed.out`
5715rm -f conftestsed.out
5716baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5717if test "$silent" = yes; then
5718 baseargs="$baseargs --silent"
5719fi
f27d4f92 5720
a0da8069
NN
5721# For the build-side libraries, we just need to pretend we're native,
5722# and not use the same cache file. Multilibs are neither needed nor
5723# desired.
4b900473 5724build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5725
5726# For host modules, accept cache file option, or specification as blank.
5727case "${cache_file}" in
5728"") # empty
5729 cache_file_option="" ;;
5730/* | [A-Za-z]:[\\/]* ) # absolute path
5731 cache_file_option="--cache-file=${cache_file}" ;;
5732*) # relative path
5733 cache_file_option="--cache-file=../${cache_file}" ;;
5734esac
5735
82252c06
NN
5736# Host dirs don't like to share a cache file either, horribly enough.
5737# This seems to be due to autoconf 2.5x stupidity.
4b900473 5738host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5739
5740target_configargs=${baseargs}
5741
5742# Passing a --with-cross-host argument lets the target libraries know
5743# whether they are being built with a cross-compiler or being built
5744# native. However, it would be better to use other mechanisms to make the
5745# sorts of decisions they want to make on this basis. Please consider
5746# this option to be deprecated. FIXME.
5747if test x${is_cross_compiler} = xyes ; then
c6b750e1 5748 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5749fi
5750
5751# Default to --enable-multilib.
5752if test x${enable_multilib} = x ; then
5753 target_configargs="--enable-multilib ${target_configargs}"
5754fi
5755
5756# Pass --with-newlib if appropriate. Note that target_configdirs has
5757# changed from the earlier setting of with_newlib.
5758if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5759 target_configargs="--with-newlib ${target_configargs}"
5760fi
5761
95036d20
NN
5762# Different target subdirs use different values of certain variables
5763# (notably CXX). Worse, multilibs use *lots* of different values.
5764# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5765# it doesn't automatically accept command-line overrides of them.
5766# This means it's not safe for target subdirs to share a cache file,
5767# which is disgusting, but there you have it. Hopefully this can be
5768# fixed in future. It's still worthwhile to use a cache file for each
5769# directory. I think.
5770
ae380b45
MS
5771# Pass the appropriate --build, --host, --target and --cache-file arguments.
5772# We need to pass --target, as newer autoconf's requires consistency
5773# for target_alias and gcc doesn't manage it consistently.
4b900473 5774target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5775
a0da8069
NN
5776FLAGS_FOR_TARGET=
5777case " $target_configdirs " in
5778 *" newlib "*)
5779 case " $target_configargs " in
5780 *" --with-newlib "*)
5781 case "$target" in
5782 *-cygwin*)
564b43e5 5783 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
5784 esac
5785
5786 # If we're not building GCC, don't discard standard headers.
5787 if test -d ${srcdir}/gcc; then
5788 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5789
5790 if test "${build}" != "${host}"; then
5791 # On Canadian crosses, CC_FOR_TARGET will have already been set
5792 # by `configure', so we won't have an opportunity to add -Bgcc/
5793 # to it. This is right: we don't want to search that directory
5794 # for binaries, but we want the header files in there, so add
5795 # them explicitly.
b00612cc 5796 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5797
5798 # Someone might think of using the pre-installed headers on
5799 # Canadian crosses, in case the installed compiler is not fully
5800 # compatible with the compiler being built. In this case, it
5801 # would be better to flag an error than risking having
5802 # incompatible object files being constructed. We can't
5803 # guarantee that an error will be flagged, but let's hope the
5804 # compiler will do it, when presented with incompatible header
5805 # files.
5806 fi
5807 fi
5808
5809 case "${target}-${is_cross_compiler}" in
ec11bdc6 5810 i[3456789]86-*-linux*-no)
a0da8069
NN
5811 # Here host == target, so we don't need to build gcc,
5812 # so we don't want to discard standard headers.
5813 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5814 ;;
5815 *)
5816 # If we're building newlib, use its generic headers last, but search
5817 # for any libc-related directories first (so make it the last -B
5818 # switch).
5819 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
5820
5821 # If we're building libgloss, find the startup file, simulator library
5822 # and linker script.
5823 case " $target_configdirs " in
5824 *" libgloss "*)
5825 # Look for startup file, simulator library and maybe linker script.
5826 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5827 # Look for libnosys.a in case the target needs it.
5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5829 # Most targets have the linker script in the source directory.
5830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5831 ;;
5832 esac
a0da8069
NN
5833 ;;
5834 esac
5835 ;;
5836 esac
5837 ;;
5838esac
45055374
CV
5839case "$target" in
5840*-mingw*)
5841 # Can't be handled as Cygwin above since Mingw does not use newlib.
5842 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' ;;
5843esac
a0da8069 5844
5fbad20a
DD
5845# Allow the user to override the flags for
5846# our build compiler if desired.
5847CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5848
a0da8069
NN
5849# On Canadian crosses, we'll be searching the right directories for
5850# the previously-installed cross compiler, so don't bother to add
5851# flags for directories within the install tree of the compiler
5852# being built; programs in there won't even run.
5853if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5854 # Search for pre-installed headers if nothing else fits.
bba45b8b 5855 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
5856fi
5857
5858if test "x${use_gnu_ld}" = x &&
5859 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5860 # Arrange for us to find uninstalled linker scripts.
b00612cc 5861 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5862fi
5863
a481dbb7
DD
5864# Search for other target-specific linker scripts and such.
5865case "${target}" in
4e206d7e
DB
5866 mep*)
5867 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5868 ;;
5869esac
5870
a0da8069 5871# Makefile fragments.
3e707e94
PB
5872for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5873do
5874 eval fragval=\$$frag
5875 if test $fragval != /dev/null; then
5876 eval $frag=${srcdir}/$fragval
5877 fi
5878done
a0da8069
NN
5879
5880
5881
5882
5883
5884# Miscellanea: directories, flags, etc.
5885
5886
5887
5888
5889
5890
5891
6a9cf61e 5892# Build module lists & subconfigure args.
a0da8069
NN
5893
5894
5895
be01d343
PB
5896# Host module lists & subconfigure args.
5897
5898
5899
5900# Target module lists & subconfigure args.
5901
5902
5903
5904# Build tools.
5905
5906
5907
5908# Generate default definitions for YACC, M4, LEX and other programs that run
5909# on the build machine. These are used if the Makefile can't locate these
5910# programs in objdir.
5911MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5912
5913for ac_prog in 'bison -y' byacc yacc
5914do
c6b750e1 5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5916set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5917echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5919if test "${ac_cv_prog_YACC+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5921else
5922 if test -n "$YACC"; then
5923 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5924else
c6b750e1
DJ
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_YACC="$ac_prog"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937done
5938
be01d343
PB
5939fi
5940fi
c6b750e1 5941YACC=$ac_cv_prog_YACC
be01d343 5942if test -n "$YACC"; then
c6b750e1
DJ
5943 echo "$as_me:$LINENO: result: $YACC" >&5
5944echo "${ECHO_T}$YACC" >&6
be01d343 5945else
c6b750e1
DJ
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
be01d343
PB
5948fi
5949
c6b750e1 5950 test -n "$YACC" && break
be01d343
PB
5951done
5952test -n "$YACC" || YACC="$MISSING bison -y"
5953
5954case " $build_configdirs " in
5955 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5956 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5957esac
5958
5959for ac_prog in bison
5960do
c6b750e1 5961 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5962set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5963echo "$as_me:$LINENO: checking for $ac_word" >&5
5964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5965if test "${ac_cv_prog_BISON+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5967else
5968 if test -n "$BISON"; then
5969 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5970else
c6b750e1
DJ
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978 ac_cv_prog_BISON="$ac_prog"
5979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982done
5983done
5984
be01d343
PB
5985fi
5986fi
c6b750e1 5987BISON=$ac_cv_prog_BISON
be01d343 5988if test -n "$BISON"; then
c6b750e1
DJ
5989 echo "$as_me:$LINENO: result: $BISON" >&5
5990echo "${ECHO_T}$BISON" >&6
be01d343 5991else
c6b750e1
DJ
5992 echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6
be01d343
PB
5994fi
5995
c6b750e1 5996 test -n "$BISON" && break
be01d343
PB
5997done
5998test -n "$BISON" || BISON="$MISSING bison"
5999
6000case " $build_configdirs " in
6001 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6002esac
6003
6004for ac_prog in gm4 gnum4 m4
6005do
c6b750e1 6006 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6007set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6008echo "$as_me:$LINENO: checking for $ac_word" >&5
6009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010if test "${ac_cv_prog_M4+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6012else
6013 if test -n "$M4"; then
6014 ac_cv_prog_M4="$M4" # Let the user override the test.
6015else
c6b750e1
DJ
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_M4="$ac_prog"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028done
6029
be01d343
PB
6030fi
6031fi
c6b750e1 6032M4=$ac_cv_prog_M4
be01d343 6033if test -n "$M4"; then
c6b750e1
DJ
6034 echo "$as_me:$LINENO: result: $M4" >&5
6035echo "${ECHO_T}$M4" >&6
be01d343 6036else
c6b750e1
DJ
6037 echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6
be01d343
PB
6039fi
6040
c6b750e1 6041 test -n "$M4" && break
be01d343
PB
6042done
6043test -n "$M4" || M4="$MISSING m4"
6044
6045case " $build_configdirs " in
6046 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6047esac
6048
6049for ac_prog in flex lex
6050do
c6b750e1 6051 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6052set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6053echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6055if test "${ac_cv_prog_LEX+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6057else
6058 if test -n "$LEX"; then
6059 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6060else
c6b750e1
DJ
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_LEX="$ac_prog"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073done
6074
be01d343
PB
6075fi
6076fi
c6b750e1 6077LEX=$ac_cv_prog_LEX
be01d343 6078if test -n "$LEX"; then
c6b750e1
DJ
6079 echo "$as_me:$LINENO: result: $LEX" >&5
6080echo "${ECHO_T}$LEX" >&6
be01d343 6081else
c6b750e1
DJ
6082 echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6
be01d343
PB
6084fi
6085
c6b750e1 6086 test -n "$LEX" && break
be01d343
PB
6087done
6088test -n "$LEX" || LEX="$MISSING flex"
6089
6090case " $build_configdirs " in
6091 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6092 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6093esac
6094
6095for ac_prog in flex
6096do
c6b750e1 6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6098set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6099echo "$as_me:$LINENO: checking for $ac_word" >&5
6100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6101if test "${ac_cv_prog_FLEX+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6103else
6104 if test -n "$FLEX"; then
6105 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6106else
c6b750e1
DJ
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_FLEX="$ac_prog"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118done
6119done
6120
be01d343
PB
6121fi
6122fi
c6b750e1 6123FLEX=$ac_cv_prog_FLEX
be01d343 6124if test -n "$FLEX"; then
c6b750e1
DJ
6125 echo "$as_me:$LINENO: result: $FLEX" >&5
6126echo "${ECHO_T}$FLEX" >&6
be01d343 6127else
c6b750e1
DJ
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
be01d343
PB
6130fi
6131
c6b750e1 6132 test -n "$FLEX" && break
be01d343
PB
6133done
6134test -n "$FLEX" || FLEX="$MISSING flex"
6135
6136case " $build_configdirs " in
6137 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6138esac
6139
6140for ac_prog in makeinfo
6141do
c6b750e1 6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6143set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6144echo "$as_me:$LINENO: checking for $ac_word" >&5
6145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6146if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6148else
6149 if test -n "$MAKEINFO"; then
6150 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6151else
c6b750e1
DJ
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_MAKEINFO="$ac_prog"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163done
6164done
6165
be01d343
PB
6166fi
6167fi
c6b750e1 6168MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6169if test -n "$MAKEINFO"; then
c6b750e1
DJ
6170 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6171echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6172else
c6b750e1
DJ
6173 echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
be01d343
PB
6175fi
6176
c6b750e1 6177 test -n "$MAKEINFO" && break
be01d343
PB
6178done
6179test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6180
6181case " $build_configdirs " in
6182 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6183 *)
6184
a4ef73e9 6185 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6186 # higher, else we use the "missing" dummy.
6187 if ${MAKEINFO} --version \
a4ef73e9 6188 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6189 :
6190 else
6191 MAKEINFO="$MISSING makeinfo"
6192 fi
6193 ;;
6194
6195esac
a0da8069 6196
be01d343 6197# FIXME: expect and dejagnu may become build tools?
a0da8069 6198
be01d343
PB
6199for ac_prog in expect
6200do
c6b750e1 6201 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6202set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6203echo "$as_me:$LINENO: checking for $ac_word" >&5
6204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6205if test "${ac_cv_prog_EXPECT+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6207else
6208 if test -n "$EXPECT"; then
6209 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6210else
c6b750e1
DJ
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_EXPECT="$ac_prog"
6219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222done
6223done
6224
be01d343
PB
6225fi
6226fi
c6b750e1 6227EXPECT=$ac_cv_prog_EXPECT
be01d343 6228if test -n "$EXPECT"; then
c6b750e1
DJ
6229 echo "$as_me:$LINENO: result: $EXPECT" >&5
6230echo "${ECHO_T}$EXPECT" >&6
be01d343 6231else
c6b750e1
DJ
6232 echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6
be01d343 6234fi
a0da8069 6235
c6b750e1 6236 test -n "$EXPECT" && break
be01d343
PB
6237done
6238test -n "$EXPECT" || EXPECT="expect"
a0da8069 6239
be01d343
PB
6240case " $configdirs " in
6241 *" expect "*)
6242 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6243 ;;
6244esac
a0da8069 6245
be01d343
PB
6246for ac_prog in runtest
6247do
c6b750e1 6248 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6249set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6250echo "$as_me:$LINENO: checking for $ac_word" >&5
6251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252if test "${ac_cv_prog_RUNTEST+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6254else
6255 if test -n "$RUNTEST"; then
6256 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6257else
c6b750e1
DJ
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_RUNTEST="$ac_prog"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270done
6271
be01d343
PB
6272fi
6273fi
c6b750e1 6274RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6275if test -n "$RUNTEST"; then
c6b750e1
DJ
6276 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6277echo "${ECHO_T}$RUNTEST" >&6
be01d343 6278else
c6b750e1
DJ
6279 echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6
be01d343 6281fi
a0da8069 6282
c6b750e1 6283 test -n "$RUNTEST" && break
be01d343
PB
6284done
6285test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6286
be01d343
PB
6287case " $configdirs " in
6288 *" dejagnu "*)
6b89cc21 6289 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6290 ;;
6291esac
a0da8069
NN
6292
6293
a0da8069 6294# Host tools.
859789af
AC
6295ncn_tool_prefix=
6296test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6297ncn_target_tool_prefix=
6298test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6299
9a819804
AO
6300
6301
6302if test -n "$AR"; then
6303 ac_cv_prog_AR=$AR
6304elif test -n "$ac_cv_prog_AR"; then
6305 AR=$ac_cv_prog_AR
6306fi
6307
6308if test -n "$ac_cv_prog_AR"; then
6309 for ncn_progname in ar; do
6310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6311set dummy ${ncn_progname}; ac_word=$2
6312echo "$as_me:$LINENO: checking for $ac_word" >&5
6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6314if test "${ac_cv_prog_AR+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317 if test -n "$AR"; then
6318 ac_cv_prog_AR="$AR" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_AR="${ncn_progname}"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331done
6332done
6333
6334fi
6335fi
6336AR=$ac_cv_prog_AR
6337if test -n "$AR"; then
6338 echo "$as_me:$LINENO: result: $AR" >&5
6339echo "${ECHO_T}$AR" >&6
6340else
6341 echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6
6343fi
6344
6345 done
6346fi
6347
6348for ncn_progname in ar; do
05cbd757
PB
6349 if test -n "$ncn_tool_prefix"; then
6350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6351set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6352echo "$as_me:$LINENO: checking for $ac_word" >&5
6353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6354if test "${ac_cv_prog_AR+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6356else
6357 if test -n "$AR"; then
6358 ac_cv_prog_AR="$AR" # Let the user override the test.
6359else
c6b750e1
DJ
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371done
6372done
6373
859789af
AC
6374fi
6375fi
c6b750e1 6376AR=$ac_cv_prog_AR
859789af 6377if test -n "$AR"; then
c6b750e1
DJ
6378 echo "$as_me:$LINENO: result: $AR" >&5
6379echo "${ECHO_T}$AR" >&6
859789af 6380else
c6b750e1
DJ
6381 echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6
859789af
AC
6383fi
6384
05cbd757
PB
6385 fi
6386 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6388set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6389echo "$as_me:$LINENO: checking for $ac_word" >&5
6390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6391if test "${ac_cv_prog_AR+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6393else
05cbd757
PB
6394 if test -n "$AR"; then
6395 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6396else
c6b750e1
DJ
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_AR="${ncn_progname}"
6405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408done
6409done
6410
859789af
AC
6411fi
6412fi
c6b750e1 6413AR=$ac_cv_prog_AR
05cbd757 6414if test -n "$AR"; then
c6b750e1
DJ
6415 echo "$as_me:$LINENO: result: $AR" >&5
6416echo "${ECHO_T}$AR" >&6
859789af 6417else
c6b750e1
DJ
6418 echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
859789af 6420fi
c6b750e1 6421
05cbd757
PB
6422 fi
6423 test -n "$ac_cv_prog_AR" && break
6424done
6425
6426if test -z "$ac_cv_prog_AR" ; then
6427 set dummy ar
6428 if test $build = $host ; then
6429 AR="$2"
859789af 6430 else
05cbd757 6431 AR="${ncn_tool_prefix}$2"
859789af 6432 fi
859789af
AC
6433fi
6434
9a819804
AO
6435
6436
6437if test -n "$AS"; then
6438 ac_cv_prog_AS=$AS
6439elif test -n "$ac_cv_prog_AS"; then
6440 AS=$ac_cv_prog_AS
6441fi
6442
6443if test -n "$ac_cv_prog_AS"; then
6444 for ncn_progname in as; do
6445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6446set dummy ${ncn_progname}; ac_word=$2
6447echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449if test "${ac_cv_prog_AS+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452 if test -n "$AS"; then
6453 ac_cv_prog_AS="$AS" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_AS="${ncn_progname}"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467done
6468
6469fi
6470fi
6471AS=$ac_cv_prog_AS
6472if test -n "$AS"; then
6473 echo "$as_me:$LINENO: result: $AS" >&5
6474echo "${ECHO_T}$AS" >&6
6475else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478fi
6479
6480 done
6481fi
6482
6483for ncn_progname in as; do
05cbd757
PB
6484 if test -n "$ncn_tool_prefix"; then
6485 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6486set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6487echo "$as_me:$LINENO: checking for $ac_word" >&5
6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6489if test "${ac_cv_prog_AS+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6491else
6492 if test -n "$AS"; then
6493 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507done
6508
859789af
AC
6509fi
6510fi
c6b750e1 6511AS=$ac_cv_prog_AS
859789af 6512if test -n "$AS"; then
c6b750e1
DJ
6513 echo "$as_me:$LINENO: result: $AS" >&5
6514echo "${ECHO_T}$AS" >&6
859789af 6515else
c6b750e1
DJ
6516 echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
859789af
AC
6518fi
6519
05cbd757
PB
6520 fi
6521 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6523set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6524echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6526if test "${ac_cv_prog_AS+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6528else
05cbd757
PB
6529 if test -n "$AS"; then
6530 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6531else
c6b750e1
DJ
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_AS="${ncn_progname}"
6540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543done
6544done
6545
859789af
AC
6546fi
6547fi
c6b750e1 6548AS=$ac_cv_prog_AS
05cbd757 6549if test -n "$AS"; then
c6b750e1
DJ
6550 echo "$as_me:$LINENO: result: $AS" >&5
6551echo "${ECHO_T}$AS" >&6
859789af 6552else
c6b750e1
DJ
6553 echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6
859789af 6555fi
c6b750e1 6556
05cbd757
PB
6557 fi
6558 test -n "$ac_cv_prog_AS" && break
6559done
6560
6561if test -z "$ac_cv_prog_AS" ; then
6562 set dummy as
6563 if test $build = $host ; then
6564 AS="$2"
859789af 6565 else
05cbd757 6566 AS="${ncn_tool_prefix}$2"
859789af 6567 fi
859789af
AC
6568fi
6569
9a819804
AO
6570
6571
6572if test -n "$DLLTOOL"; then
6573 ac_cv_prog_DLLTOOL=$DLLTOOL
6574elif test -n "$ac_cv_prog_DLLTOOL"; then
6575 DLLTOOL=$ac_cv_prog_DLLTOOL
6576fi
6577
6578if test -n "$ac_cv_prog_DLLTOOL"; then
6579 for ncn_progname in dlltool; do
6580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6581set dummy ${ncn_progname}; ac_word=$2
6582echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6584if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 if test -n "$DLLTOOL"; then
6588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_DLLTOOL="${ncn_progname}"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602done
6603
6604fi
6605fi
6606DLLTOOL=$ac_cv_prog_DLLTOOL
6607if test -n "$DLLTOOL"; then
6608 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6609echo "${ECHO_T}$DLLTOOL" >&6
6610else
6611 echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6
6613fi
6614
6615 done
6616fi
6617
6618for ncn_progname in dlltool; do
05cbd757
PB
6619 if test -n "$ncn_tool_prefix"; then
6620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6621set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6622echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6624if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6626else
6627 if test -n "$DLLTOOL"; then
6628 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6629else
c6b750e1
DJ
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642done
6643
859789af
AC
6644fi
6645fi
c6b750e1 6646DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6647if test -n "$DLLTOOL"; then
c6b750e1
DJ
6648 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6649echo "${ECHO_T}$DLLTOOL" >&6
859789af 6650else
c6b750e1
DJ
6651 echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6
859789af
AC
6653fi
6654
05cbd757
PB
6655 fi
6656 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6658set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6659echo "$as_me:$LINENO: checking for $ac_word" >&5
6660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6661if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6663else
05cbd757
PB
6664 if test -n "$DLLTOOL"; then
6665 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6666else
c6b750e1
DJ
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_DLLTOOL="${ncn_progname}"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678done
6679done
6680
859789af
AC
6681fi
6682fi
c6b750e1 6683DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6684if test -n "$DLLTOOL"; then
c6b750e1
DJ
6685 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6686echo "${ECHO_T}$DLLTOOL" >&6
859789af 6687else
c6b750e1
DJ
6688 echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6
859789af 6690fi
c6b750e1 6691
05cbd757
PB
6692 fi
6693 test -n "$ac_cv_prog_DLLTOOL" && break
6694done
6695
6696if test -z "$ac_cv_prog_DLLTOOL" ; then
6697 set dummy dlltool
6698 if test $build = $host ; then
6699 DLLTOOL="$2"
859789af 6700 else
05cbd757 6701 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6702 fi
859789af
AC
6703fi
6704
9a819804
AO
6705
6706
6707if test -n "$LD"; then
6708 ac_cv_prog_LD=$LD
6709elif test -n "$ac_cv_prog_LD"; then
6710 LD=$ac_cv_prog_LD
6711fi
6712
6713if test -n "$ac_cv_prog_LD"; then
6714 for ncn_progname in ld; do
6715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6716set dummy ${ncn_progname}; ac_word=$2
6717echo "$as_me:$LINENO: checking for $ac_word" >&5
6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6719if test "${ac_cv_prog_LD+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721else
6722 if test -n "$LD"; then
6723 ac_cv_prog_LD="$LD" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_LD="${ncn_progname}"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737done
6738
6739fi
6740fi
6741LD=$ac_cv_prog_LD
6742if test -n "$LD"; then
6743 echo "$as_me:$LINENO: result: $LD" >&5
6744echo "${ECHO_T}$LD" >&6
6745else
6746 echo "$as_me:$LINENO: result: no" >&5
6747echo "${ECHO_T}no" >&6
6748fi
6749
6750 done
6751fi
6752
6753for ncn_progname in ld; do
05cbd757
PB
6754 if test -n "$ncn_tool_prefix"; then
6755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6756set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6757echo "$as_me:$LINENO: checking for $ac_word" >&5
6758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6759if test "${ac_cv_prog_LD+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6761else
6762 if test -n "$LD"; then
6763 ac_cv_prog_LD="$LD" # Let the user override the test.
6764else
c6b750e1
DJ
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777done
6778
859789af
AC
6779fi
6780fi
c6b750e1 6781LD=$ac_cv_prog_LD
859789af 6782if test -n "$LD"; then
c6b750e1
DJ
6783 echo "$as_me:$LINENO: result: $LD" >&5
6784echo "${ECHO_T}$LD" >&6
859789af 6785else
c6b750e1
DJ
6786 echo "$as_me:$LINENO: result: no" >&5
6787echo "${ECHO_T}no" >&6
859789af
AC
6788fi
6789
05cbd757
PB
6790 fi
6791 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6793set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6794echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6796if test "${ac_cv_prog_LD+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6798else
05cbd757
PB
6799 if test -n "$LD"; then
6800 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6801else
c6b750e1
DJ
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_LD="${ncn_progname}"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814done
6815
859789af
AC
6816fi
6817fi
c6b750e1 6818LD=$ac_cv_prog_LD
05cbd757 6819if test -n "$LD"; then
c6b750e1
DJ
6820 echo "$as_me:$LINENO: result: $LD" >&5
6821echo "${ECHO_T}$LD" >&6
859789af 6822else
c6b750e1
DJ
6823 echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6
859789af 6825fi
c6b750e1 6826
05cbd757
PB
6827 fi
6828 test -n "$ac_cv_prog_LD" && break
6829done
6830
6831if test -z "$ac_cv_prog_LD" ; then
6832 set dummy ld
6833 if test $build = $host ; then
6834 LD="$2"
859789af 6835 else
05cbd757 6836 LD="${ncn_tool_prefix}$2"
859789af 6837 fi
859789af
AC
6838fi
6839
9a819804
AO
6840
6841
6842if test -n "$LIPO"; then
6843 ac_cv_prog_LIPO=$LIPO
6844elif test -n "$ac_cv_prog_LIPO"; then
6845 LIPO=$ac_cv_prog_LIPO
6846fi
6847
6848if test -n "$ac_cv_prog_LIPO"; then
6849 for ncn_progname in lipo; do
6850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6851set dummy ${ncn_progname}; ac_word=$2
6852echo "$as_me:$LINENO: checking for $ac_word" >&5
6853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6854if test "${ac_cv_prog_LIPO+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856else
6857 if test -n "$LIPO"; then
6858 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6859else
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_LIPO="${ncn_progname}"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871done
6872done
6873
6874fi
6875fi
6876LIPO=$ac_cv_prog_LIPO
6877if test -n "$LIPO"; then
6878 echo "$as_me:$LINENO: result: $LIPO" >&5
6879echo "${ECHO_T}$LIPO" >&6
6880else
6881 echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6
6883fi
6884
6885 done
6886fi
6887
6888for ncn_progname in lipo; do
be01d343
PB
6889 if test -n "$ncn_tool_prefix"; then
6890 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6891set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6892echo "$as_me:$LINENO: checking for $ac_word" >&5
6893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6894if test "${ac_cv_prog_LIPO+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6896else
6897 if test -n "$LIPO"; then
6898 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6899else
c6b750e1
DJ
6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911done
6912done
6913
be01d343
PB
6914fi
6915fi
c6b750e1 6916LIPO=$ac_cv_prog_LIPO
be01d343 6917if test -n "$LIPO"; then
c6b750e1
DJ
6918 echo "$as_me:$LINENO: result: $LIPO" >&5
6919echo "${ECHO_T}$LIPO" >&6
be01d343 6920else
c6b750e1
DJ
6921 echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6
be01d343
PB
6923fi
6924
6925 fi
6926 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6928set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6929echo "$as_me:$LINENO: checking for $ac_word" >&5
6930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6931if test "${ac_cv_prog_LIPO+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6933else
6934 if test -n "$LIPO"; then
6935 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6936else
c6b750e1
DJ
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_LIPO="${ncn_progname}"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948done
6949done
6950
be01d343
PB
6951fi
6952fi
c6b750e1 6953LIPO=$ac_cv_prog_LIPO
be01d343 6954if test -n "$LIPO"; then
c6b750e1
DJ
6955 echo "$as_me:$LINENO: result: $LIPO" >&5
6956echo "${ECHO_T}$LIPO" >&6
be01d343 6957else
c6b750e1
DJ
6958 echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6
be01d343 6960fi
c6b750e1 6961
be01d343
PB
6962 fi
6963 test -n "$ac_cv_prog_LIPO" && break
6964done
6965
6966if test -z "$ac_cv_prog_LIPO" ; then
6967 set dummy lipo
6968 if test $build = $host ; then
6969 LIPO="$2"
6970 else
6971 LIPO="${ncn_tool_prefix}$2"
6972 fi
6973fi
6974
9a819804
AO
6975
6976
6977if test -n "$NM"; then
6978 ac_cv_prog_NM=$NM
6979elif test -n "$ac_cv_prog_NM"; then
6980 NM=$ac_cv_prog_NM
6981fi
6982
6983if test -n "$ac_cv_prog_NM"; then
6984 for ncn_progname in nm; do
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_NM+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6991else
6992 if test -n "$NM"; then
6993 ac_cv_prog_NM="$NM" # Let the user override the test.
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
9a819804 7002 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
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 7011NM=$ac_cv_prog_NM
859789af 7012if test -n "$NM"; then
c6b750e1
DJ
7013 echo "$as_me:$LINENO: result: $NM" >&5
7014echo "${ECHO_T}$NM" >&6
859789af 7015else
c6b750e1
DJ
7016 echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6
859789af
AC
7018fi
7019
9a819804
AO
7020 done
7021fi
7022
7023for ncn_progname in nm; do
7024 if test -n "$ncn_tool_prefix"; then
7025 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7026set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7027echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7029if test "${ac_cv_prog_NM+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7031else
05cbd757
PB
7032 if test -n "$NM"; then
7033 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7034else
c6b750e1
DJ
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7042 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047done
7048
859789af
AC
7049fi
7050fi
c6b750e1 7051NM=$ac_cv_prog_NM
05cbd757 7052if test -n "$NM"; then
c6b750e1
DJ
7053 echo "$as_me:$LINENO: result: $NM" >&5
7054echo "${ECHO_T}$NM" >&6
859789af 7055else
c6b750e1
DJ
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
859789af 7058fi
c6b750e1 7059
05cbd757 7060 fi
9a819804
AO
7061 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7063set dummy ${ncn_progname}; ac_word=$2
7064echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066if test "${ac_cv_prog_NM+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 if test -n "$NM"; then
7070 ac_cv_prog_NM="$NM" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_NM="${ncn_progname}"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083done
7084done
7085
7086fi
7087fi
7088NM=$ac_cv_prog_NM
7089if test -n "$NM"; then
7090 echo "$as_me:$LINENO: result: $NM" >&5
7091echo "${ECHO_T}$NM" >&6
7092else
7093 echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6
7095fi
7096
7097 fi
7098 test -n "$ac_cv_prog_NM" && break
7099done
7100
7101if test -z "$ac_cv_prog_NM" ; then
7102 set dummy nm
7103 if test $build = $host ; then
7104 NM="$2"
7105 else
7106 NM="${ncn_tool_prefix}$2"
7107 fi
7108fi
7109
7110
7111
7112if test -n "$RANLIB"; then
7113 ac_cv_prog_RANLIB=$RANLIB
7114elif test -n "$ac_cv_prog_RANLIB"; then
7115 RANLIB=$ac_cv_prog_RANLIB
7116fi
7117
7118if test -n "$ac_cv_prog_RANLIB"; then
7119 for ncn_progname in ranlib; do
7120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7121set dummy ${ncn_progname}; ac_word=$2
7122echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7124if test "${ac_cv_prog_RANLIB+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 if test -n "$RANLIB"; then
7128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7129else
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_RANLIB="${ncn_progname}"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141done
7142done
7143
7144fi
7145fi
7146RANLIB=$ac_cv_prog_RANLIB
7147if test -n "$RANLIB"; then
7148 echo "$as_me:$LINENO: result: $RANLIB" >&5
7149echo "${ECHO_T}$RANLIB" >&6
7150else
7151 echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6
7153fi
7154
7155 done
7156fi
859789af 7157
9a819804 7158for ncn_progname in ranlib; do
05cbd757
PB
7159 if test -n "$ncn_tool_prefix"; then
7160 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7161set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7162echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164if test "${ac_cv_prog_RANLIB+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7166else
7167 if test -n "$RANLIB"; then
7168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7169else
c6b750e1
DJ
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183
859789af
AC
7184fi
7185fi
c6b750e1 7186RANLIB=$ac_cv_prog_RANLIB
859789af 7187if test -n "$RANLIB"; then
c6b750e1
DJ
7188 echo "$as_me:$LINENO: result: $RANLIB" >&5
7189echo "${ECHO_T}$RANLIB" >&6
859789af 7190else
c6b750e1
DJ
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
859789af
AC
7193fi
7194
05cbd757
PB
7195 fi
7196 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7198set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7199echo "$as_me:$LINENO: checking for $ac_word" >&5
7200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7201if test "${ac_cv_prog_RANLIB+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7203else
05cbd757
PB
7204 if test -n "$RANLIB"; then
7205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7206else
c6b750e1
DJ
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_RANLIB="${ncn_progname}"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218done
7219done
7220
859789af
AC
7221fi
7222fi
c6b750e1 7223RANLIB=$ac_cv_prog_RANLIB
05cbd757 7224if test -n "$RANLIB"; then
c6b750e1
DJ
7225 echo "$as_me:$LINENO: result: $RANLIB" >&5
7226echo "${ECHO_T}$RANLIB" >&6
859789af 7227else
c6b750e1
DJ
7228 echo "$as_me:$LINENO: result: no" >&5
7229echo "${ECHO_T}no" >&6
859789af 7230fi
c6b750e1 7231
859789af 7232 fi
05cbd757
PB
7233 test -n "$ac_cv_prog_RANLIB" && break
7234done
7235
7236if test -z "$ac_cv_prog_RANLIB" ; then
7237 RANLIB=":"
859789af
AC
7238fi
7239
9a819804
AO
7240
7241
7242if test -n "$STRIP"; then
7243 ac_cv_prog_STRIP=$STRIP
7244elif test -n "$ac_cv_prog_STRIP"; then
7245 STRIP=$ac_cv_prog_STRIP
7246fi
7247
7248if test -n "$ac_cv_prog_STRIP"; then
7249 for ncn_progname in strip; do
7250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7251set dummy ${ncn_progname}; ac_word=$2
7252echo "$as_me:$LINENO: checking for $ac_word" >&5
7253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7254if test "${ac_cv_prog_STRIP+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257 if test -n "$STRIP"; then
7258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_STRIP="${ncn_progname}"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271done
7272done
7273
7274fi
7275fi
7276STRIP=$ac_cv_prog_STRIP
7277if test -n "$STRIP"; then
7278 echo "$as_me:$LINENO: result: $STRIP" >&5
7279echo "${ECHO_T}$STRIP" >&6
7280else
7281 echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6
7283fi
7284
7285 done
7286fi
7287
7288for ncn_progname in strip; do
be01d343
PB
7289 if test -n "$ncn_tool_prefix"; then
7290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7292echo "$as_me:$LINENO: checking for $ac_word" >&5
7293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294if test "${ac_cv_prog_STRIP+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7296else
7297 if test -n "$STRIP"; then
7298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7299else
c6b750e1
DJ
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311done
7312done
7313
be01d343
PB
7314fi
7315fi
c6b750e1 7316STRIP=$ac_cv_prog_STRIP
be01d343 7317if test -n "$STRIP"; then
c6b750e1
DJ
7318 echo "$as_me:$LINENO: result: $STRIP" >&5
7319echo "${ECHO_T}$STRIP" >&6
be01d343 7320else
c6b750e1
DJ
7321 echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6
be01d343
PB
7323fi
7324
7325 fi
7326 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7328set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7329echo "$as_me:$LINENO: checking for $ac_word" >&5
7330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7331if test "${ac_cv_prog_STRIP+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7333else
7334 if test -n "$STRIP"; then
7335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7336else
c6b750e1
DJ
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_STRIP="${ncn_progname}"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349done
7350
be01d343
PB
7351fi
7352fi
c6b750e1 7353STRIP=$ac_cv_prog_STRIP
be01d343 7354if test -n "$STRIP"; then
c6b750e1
DJ
7355 echo "$as_me:$LINENO: result: $STRIP" >&5
7356echo "${ECHO_T}$STRIP" >&6
be01d343 7357else
c6b750e1
DJ
7358 echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6
be01d343 7360fi
c6b750e1 7361
be01d343
PB
7362 fi
7363 test -n "$ac_cv_prog_STRIP" && break
7364done
7365
7366if test -z "$ac_cv_prog_STRIP" ; then
7367 STRIP=":"
7368fi
7369
9a819804
AO
7370
7371
7372if test -n "$WINDRES"; then
7373 ac_cv_prog_WINDRES=$WINDRES
7374elif test -n "$ac_cv_prog_WINDRES"; then
7375 WINDRES=$ac_cv_prog_WINDRES
7376fi
7377
7378if test -n "$ac_cv_prog_WINDRES"; then
7379 for ncn_progname in windres; do
7380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7381set dummy ${ncn_progname}; ac_word=$2
7382echo "$as_me:$LINENO: checking for $ac_word" >&5
7383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384if test "${ac_cv_prog_WINDRES+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387 if test -n "$WINDRES"; then
7388 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_WINDRES="${ncn_progname}"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401done
7402done
7403
7404fi
7405fi
7406WINDRES=$ac_cv_prog_WINDRES
7407if test -n "$WINDRES"; then
7408 echo "$as_me:$LINENO: result: $WINDRES" >&5
7409echo "${ECHO_T}$WINDRES" >&6
7410else
7411 echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
7413fi
7414
7415 done
7416fi
7417
7418for ncn_progname in windres; do
05cbd757
PB
7419 if test -n "$ncn_tool_prefix"; then
7420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7421set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7422echo "$as_me:$LINENO: checking for $ac_word" >&5
7423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424if test "${ac_cv_prog_WINDRES+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7426else
7427 if test -n "$WINDRES"; then
7428 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7429else
c6b750e1
DJ
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442done
7443
859789af
AC
7444fi
7445fi
c6b750e1 7446WINDRES=$ac_cv_prog_WINDRES
859789af 7447if test -n "$WINDRES"; then
c6b750e1
DJ
7448 echo "$as_me:$LINENO: result: $WINDRES" >&5
7449echo "${ECHO_T}$WINDRES" >&6
859789af 7450else
c6b750e1
DJ
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
859789af
AC
7453fi
7454
05cbd757
PB
7455 fi
7456 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7458set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7459echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7461if test "${ac_cv_prog_WINDRES+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7463else
05cbd757
PB
7464 if test -n "$WINDRES"; then
7465 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7466else
c6b750e1
DJ
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474 ac_cv_prog_WINDRES="${ncn_progname}"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478done
7479done
7480
859789af
AC
7481fi
7482fi
c6b750e1 7483WINDRES=$ac_cv_prog_WINDRES
05cbd757 7484if test -n "$WINDRES"; then
c6b750e1
DJ
7485 echo "$as_me:$LINENO: result: $WINDRES" >&5
7486echo "${ECHO_T}$WINDRES" >&6
859789af 7487else
c6b750e1
DJ
7488 echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6
859789af 7490fi
c6b750e1 7491
05cbd757
PB
7492 fi
7493 test -n "$ac_cv_prog_WINDRES" && break
7494done
7495
7496if test -z "$ac_cv_prog_WINDRES" ; then
7497 set dummy windres
7498 if test $build = $host ; then
7499 WINDRES="$2"
859789af 7500 else
05cbd757 7501 WINDRES="${ncn_tool_prefix}$2"
859789af 7502 fi
859789af
AC
7503fi
7504
9a819804
AO
7505
7506
0c24b341
NC
7507if test -n "$WINDMC"; then
7508 ac_cv_prog_WINDMC=$WINDMC
7509elif test -n "$ac_cv_prog_WINDMC"; then
7510 WINDMC=$ac_cv_prog_WINDMC
7511fi
7512
7513if test -n "$ac_cv_prog_WINDMC"; then
7514 for ncn_progname in windmc; do
7515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7516set dummy ${ncn_progname}; ac_word=$2
7517echo "$as_me:$LINENO: checking for $ac_word" >&5
7518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7519if test "${ac_cv_prog_WINDMC+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522 if test -n "$WINDMC"; then
7523 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7524else
7525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_WINDMC="${ncn_progname}"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536done
7537done
7538
7539fi
7540fi
7541WINDMC=$ac_cv_prog_WINDMC
7542if test -n "$WINDMC"; then
7543 echo "$as_me:$LINENO: result: $WINDMC" >&5
7544echo "${ECHO_T}$WINDMC" >&6
7545else
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548fi
7549
7550 done
7551fi
7552
7553for ncn_progname in windmc; do
7554 if test -n "$ncn_tool_prefix"; then
7555 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7556set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7557echo "$as_me:$LINENO: checking for $ac_word" >&5
7558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7559if test "${ac_cv_prog_WINDMC+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562 if test -n "$WINDMC"; then
7563 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576done
7577done
7578
7579fi
7580fi
7581WINDMC=$ac_cv_prog_WINDMC
7582if test -n "$WINDMC"; then
7583 echo "$as_me:$LINENO: result: $WINDMC" >&5
7584echo "${ECHO_T}$WINDMC" >&6
7585else
7586 echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6
7588fi
7589
7590 fi
7591 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7593set dummy ${ncn_progname}; ac_word=$2
7594echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596if test "${ac_cv_prog_WINDMC+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 if test -n "$WINDMC"; then
7600 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7601else
7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_WINDMC="${ncn_progname}"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7612 fi
7613done
7614done
7615
7616fi
7617fi
7618WINDMC=$ac_cv_prog_WINDMC
7619if test -n "$WINDMC"; then
7620 echo "$as_me:$LINENO: result: $WINDMC" >&5
7621echo "${ECHO_T}$WINDMC" >&6
7622else
7623 echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6
7625fi
7626
7627 fi
7628 test -n "$ac_cv_prog_WINDMC" && break
7629done
7630
7631if test -z "$ac_cv_prog_WINDMC" ; then
7632 set dummy windmc
7633 if test $build = $host ; then
7634 WINDMC="$2"
7635 else
7636 WINDMC="${ncn_tool_prefix}$2"
7637 fi
7638fi
7639
7640
7641
9a819804
AO
7642if test -n "$OBJCOPY"; then
7643 ac_cv_prog_OBJCOPY=$OBJCOPY
7644elif test -n "$ac_cv_prog_OBJCOPY"; then
7645 OBJCOPY=$ac_cv_prog_OBJCOPY
7646fi
7647
7648if test -n "$ac_cv_prog_OBJCOPY"; then
7649 for ncn_progname in objcopy; do
7650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7651set dummy ${ncn_progname}; ac_word=$2
7652echo "$as_me:$LINENO: checking for $ac_word" >&5
7653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7654if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657 if test -n "$OBJCOPY"; then
7658 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7659else
7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_OBJCOPY="${ncn_progname}"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671done
7672done
7673
7674fi
7675fi
7676OBJCOPY=$ac_cv_prog_OBJCOPY
7677if test -n "$OBJCOPY"; then
7678 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7679echo "${ECHO_T}$OBJCOPY" >&6
7680else
7681 echo "$as_me:$LINENO: result: no" >&5
7682echo "${ECHO_T}no" >&6
7683fi
7684
7685 done
7686fi
7687
7688for ncn_progname in objcopy; do
05cbd757
PB
7689 if test -n "$ncn_tool_prefix"; then
7690 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7691set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7692echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7694if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7696else
7697 if test -n "$OBJCOPY"; then
7698 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7699else
c6b750e1
DJ
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711done
7712done
7713
859789af
AC
7714fi
7715fi
c6b750e1 7716OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7717if test -n "$OBJCOPY"; then
c6b750e1
DJ
7718 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7719echo "${ECHO_T}$OBJCOPY" >&6
859789af 7720else
c6b750e1
DJ
7721 echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6
859789af
AC
7723fi
7724
05cbd757
PB
7725 fi
7726 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7728set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7729echo "$as_me:$LINENO: checking for $ac_word" >&5
7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7731if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7733else
05cbd757
PB
7734 if test -n "$OBJCOPY"; then
7735 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7736else
c6b750e1
DJ
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_OBJCOPY="${ncn_progname}"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7747 fi
7748done
7749done
7750
859789af
AC
7751fi
7752fi
c6b750e1 7753OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7754if test -n "$OBJCOPY"; then
c6b750e1
DJ
7755 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7756echo "${ECHO_T}$OBJCOPY" >&6
859789af 7757else
c6b750e1
DJ
7758 echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6
859789af 7760fi
c6b750e1 7761
05cbd757
PB
7762 fi
7763 test -n "$ac_cv_prog_OBJCOPY" && break
7764done
7765
7766if test -z "$ac_cv_prog_OBJCOPY" ; then
7767 set dummy objcopy
7768 if test $build = $host ; then
7769 OBJCOPY="$2"
859789af 7770 else
05cbd757 7771 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7772 fi
859789af
AC
7773fi
7774
9a819804
AO
7775
7776
7777if test -n "$OBJDUMP"; then
7778 ac_cv_prog_OBJDUMP=$OBJDUMP
7779elif test -n "$ac_cv_prog_OBJDUMP"; then
7780 OBJDUMP=$ac_cv_prog_OBJDUMP
7781fi
7782
7783if test -n "$ac_cv_prog_OBJDUMP"; then
7784 for ncn_progname in objdump; do
7785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7786set dummy ${ncn_progname}; ac_word=$2
7787echo "$as_me:$LINENO: checking for $ac_word" >&5
7788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792 if test -n "$OBJDUMP"; then
7793 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_OBJDUMP="${ncn_progname}"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7805 fi
7806done
7807done
7808
7809fi
7810fi
7811OBJDUMP=$ac_cv_prog_OBJDUMP
7812if test -n "$OBJDUMP"; then
7813 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7814echo "${ECHO_T}$OBJDUMP" >&6
7815else
7816 echo "$as_me:$LINENO: result: no" >&5
7817echo "${ECHO_T}no" >&6
7818fi
7819
7820 done
7821fi
7822
7823for ncn_progname in objdump; do
05cbd757
PB
7824 if test -n "$ncn_tool_prefix"; then
7825 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7826set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7827echo "$as_me:$LINENO: checking for $ac_word" >&5
7828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7831else
7832 if test -n "$OBJDUMP"; then
7833 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7834else
c6b750e1
DJ
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846done
7847done
7848
859789af
AC
7849fi
7850fi
c6b750e1 7851OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7852if test -n "$OBJDUMP"; then
c6b750e1
DJ
7853 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7854echo "${ECHO_T}$OBJDUMP" >&6
859789af 7855else
c6b750e1
DJ
7856 echo "$as_me:$LINENO: result: no" >&5
7857echo "${ECHO_T}no" >&6
859789af
AC
7858fi
7859
05cbd757
PB
7860 fi
7861 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7863set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7864echo "$as_me:$LINENO: checking for $ac_word" >&5
7865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7866if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7868else
05cbd757
PB
7869 if test -n "$OBJDUMP"; then
7870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7871else
c6b750e1
DJ
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7879 ac_cv_prog_OBJDUMP="${ncn_progname}"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883done
7884done
7885
859789af
AC
7886fi
7887fi
c6b750e1 7888OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7889if test -n "$OBJDUMP"; then
c6b750e1
DJ
7890 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7891echo "${ECHO_T}$OBJDUMP" >&6
859789af 7892else
c6b750e1
DJ
7893 echo "$as_me:$LINENO: result: no" >&5
7894echo "${ECHO_T}no" >&6
859789af 7895fi
c6b750e1 7896
05cbd757
PB
7897 fi
7898 test -n "$ac_cv_prog_OBJDUMP" && break
7899done
7900
7901if test -z "$ac_cv_prog_OBJDUMP" ; then
7902 set dummy objdump
7903 if test $build = $host ; then
7904 OBJDUMP="$2"
859789af 7905 else
05cbd757 7906 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7907 fi
859789af
AC
7908fi
7909
a0da8069
NN
7910
7911
7912
7913
7914
7915
be01d343 7916# Target tools.
c6b750e1 7917
2429c060
PB
7918# Check whether --with-build-time-tools or --without-build-time-tools was given.
7919if test "${with_build_time_tools+set}" = set; then
7920 withval="$with_build_time_tools"
7921 case x"$withval" in
7922 x/*) ;;
7923 *)
7924 with_build_time_tools=
c6b750e1
DJ
7925 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7926echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7927 ;;
7928 esac
859789af 7929else
2429c060 7930 with_build_time_tools=
c6b750e1 7931fi;
859789af 7932
9a819804
AO
7933
7934
7935if test -n "$CC_FOR_TARGET"; then
7936 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7937elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7938 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7939fi
7940
7941if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7942 for ncn_progname in cc gcc; do
7943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7944set dummy ${ncn_progname}; ac_word=$2
7945echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950 if test -n "$CC_FOR_TARGET"; then
7951 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7952else
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7963 fi
7964done
7965done
7966
7967fi
7968fi
7969CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7970if test -n "$CC_FOR_TARGET"; then
7971 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7972echo "${ECHO_T}$CC_FOR_TARGET" >&6
7973else
7974 echo "$as_me:$LINENO: result: no" >&5
7975echo "${ECHO_T}no" >&6
7976fi
7977
7978 done
7979fi
7980
7981if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7982 for ncn_progname in cc gcc; do
c6b750e1
DJ
7983 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7984echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7985 if test -x $with_build_time_tools/${ncn_progname}; then
7986 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7987 echo "$as_me:$LINENO: result: yes" >&5
7988echo "${ECHO_T}yes" >&6
cac3d6c4 7989 break
2429c060 7990 else
c6b750e1
DJ
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
cac3d6c4
CM
7993 fi
7994 done
55db4b87
PB
7995fi
7996
2429c060
PB
7997if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7998 for ncn_progname in cc gcc; do
7999 if test -n "$ncn_target_tool_prefix"; then
8000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8001set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8002echo "$as_me:$LINENO: checking for $ac_word" >&5
8003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8004if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8006else
8007 if test -n "$CC_FOR_TARGET"; then
8008 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8009else
c6b750e1
DJ
8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8020 fi
8021done
8022done
8023
55db4b87
PB
8024fi
8025fi
c6b750e1 8026CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8027if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8028 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8029echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8030else
c6b750e1
DJ
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
55db4b87
PB
8033fi
8034
2429c060
PB
8035 fi
8036 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8038set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8039echo "$as_me:$LINENO: checking for $ac_word" >&5
8040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8041if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8043else
05cbd757
PB
8044 if test -n "$CC_FOR_TARGET"; then
8045 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8046else
c6b750e1
DJ
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058done
8059done
8060
55db4b87
PB
8061fi
8062fi
c6b750e1 8063CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8064if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8065 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8066echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8067else
c6b750e1
DJ
8068 echo "$as_me:$LINENO: result: no" >&5
8069echo "${ECHO_T}no" >&6
55db4b87 8070fi
c6b750e1 8071
2429c060
PB
8072 fi
8073 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8074 done
8075fi
c6b750e1 8076
05cbd757
PB
8077if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8078 set dummy cc gcc
8079 if test $build = $target ; then
8080 CC_FOR_TARGET="$2"
55db4b87 8081 else
05cbd757 8082 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8083 fi
d3f5afc4
MS
8084else
8085 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8086fi
8087
9a819804
AO
8088
8089
8090if test -n "$CXX_FOR_TARGET"; then
8091 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8092elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8093 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8094fi
8095
8096if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8097 for ncn_progname in c++ g++ cxx gxx; do
8098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8099set dummy ${ncn_progname}; ac_word=$2
8100echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8102if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105 if test -n "$CXX_FOR_TARGET"; then
8106 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119done
8120done
8121
8122fi
8123fi
8124CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8125if test -n "$CXX_FOR_TARGET"; then
8126 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8127echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8128else
8129 echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6
8131fi
8132
8133 done
8134fi
8135
8136if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8137 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8138 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8139echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8140 if test -x $with_build_time_tools/${ncn_progname}; then
8141 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8142 echo "$as_me:$LINENO: result: yes" >&5
8143echo "${ECHO_T}yes" >&6
2429c060
PB
8144 break
8145 else
c6b750e1
DJ
8146 echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
2429c060
PB
8148 fi
8149 done
8150fi
8151
8152if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8153 for ncn_progname in c++ g++ cxx gxx; do
8154 if test -n "$ncn_target_tool_prefix"; then
8155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8156set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8157echo "$as_me:$LINENO: checking for $ac_word" >&5
8158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8159if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8161else
8162 if test -n "$CXX_FOR_TARGET"; then
8163 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8164else
c6b750e1
DJ
8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8175 fi
8176done
8177done
8178
55db4b87
PB
8179fi
8180fi
c6b750e1 8181CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8182if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8183 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8184echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8185else
c6b750e1
DJ
8186 echo "$as_me:$LINENO: result: no" >&5
8187echo "${ECHO_T}no" >&6
55db4b87
PB
8188fi
8189
2429c060
PB
8190 fi
8191 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8193set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8194echo "$as_me:$LINENO: checking for $ac_word" >&5
8195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8196if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8198else
05cbd757
PB
8199 if test -n "$CXX_FOR_TARGET"; then
8200 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8201else
c6b750e1
DJ
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 break 2
8212 fi
8213done
8214done
8215
55db4b87
PB
8216fi
8217fi
c6b750e1 8218CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8219if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8220 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8221echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8222else
c6b750e1
DJ
8223 echo "$as_me:$LINENO: result: no" >&5
8224echo "${ECHO_T}no" >&6
55db4b87 8225fi
c6b750e1 8226
2429c060
PB
8227 fi
8228 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8229 done
8230fi
c6b750e1 8231
05cbd757
PB
8232if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8233 set dummy c++ g++ cxx gxx
8234 if test $build = $target ; then
8235 CXX_FOR_TARGET="$2"
55db4b87 8236 else
05cbd757 8237 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8238 fi
d3f5afc4
MS
8239else
8240 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8241fi
8242
9a819804
AO
8243
8244
8245if test -n "$GCC_FOR_TARGET"; then
8246 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8247elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8248 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8249fi
8250
8251if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8252 for ncn_progname in gcc; do
8253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8254set dummy ${ncn_progname}; ac_word=$2
8255echo "$as_me:$LINENO: checking for $ac_word" >&5
8256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8257if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260 if test -n "$GCC_FOR_TARGET"; then
8261 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8262else
8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274done
8275done
8276
8277fi
8278fi
8279GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8280if test -n "$GCC_FOR_TARGET"; then
8281 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8282echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8283else
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
8286fi
8287
8288 done
8289fi
8290
8291if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8292 for ncn_progname in gcc; do
c6b750e1
DJ
8293 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8294echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8295 if test -x $with_build_time_tools/${ncn_progname}; then
8296 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8297 echo "$as_me:$LINENO: result: yes" >&5
8298echo "${ECHO_T}yes" >&6
2429c060
PB
8299 break
8300 else
c6b750e1
DJ
8301 echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6
2429c060
PB
8303 fi
8304 done
8305fi
8306
8307if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8308 for ncn_progname in gcc; do
8309 if test -n "$ncn_target_tool_prefix"; then
8310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8311set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8312echo "$as_me:$LINENO: checking for $ac_word" >&5
8313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8314if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8316else
2429c060
PB
8317 if test -n "$GCC_FOR_TARGET"; then
8318 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8319else
c6b750e1
DJ
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8330 fi
8331done
8332done
8333
55db4b87
PB
8334fi
8335fi
c6b750e1 8336GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8337if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8338 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8339echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8340else
c6b750e1
DJ
8341 echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6
55db4b87
PB
8343fi
8344
2429c060
PB
8345 fi
8346 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8348set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8349echo "$as_me:$LINENO: checking for $ac_word" >&5
8350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8351if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8353else
05cbd757
PB
8354 if test -n "$GCC_FOR_TARGET"; then
8355 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8356else
c6b750e1
DJ
8357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358for as_dir in $PATH
8359do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368done
8369done
8370
55db4b87
PB
8371fi
8372fi
c6b750e1 8373GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8374if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8375 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8376echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8377else
c6b750e1
DJ
8378 echo "$as_me:$LINENO: result: no" >&5
8379echo "${ECHO_T}no" >&6
55db4b87 8380fi
c6b750e1 8381
2429c060
PB
8382 fi
8383 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8384 done
8385fi
c6b750e1 8386
05cbd757
PB
8387if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8388 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8389else
8390 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8391fi
8392
9a819804
AO
8393
8394
8395if test -n "$GCJ_FOR_TARGET"; then
8396 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8397elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8398 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8399fi
8400
8401if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8402 for ncn_progname in gcj; do
8403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8404set dummy ${ncn_progname}; ac_word=$2
8405echo "$as_me:$LINENO: checking for $ac_word" >&5
8406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8407if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410 if test -n "$GCJ_FOR_TARGET"; then
8411 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8412else
8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414for as_dir in $PATH
8415do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424done
8425done
8426
8427fi
8428fi
8429GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8430if test -n "$GCJ_FOR_TARGET"; then
8431 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8432echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8433else
8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
8436fi
8437
8438 done
8439fi
8440
8441if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8442 for ncn_progname in gcj; do
c6b750e1
DJ
8443 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8444echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8445 if test -x $with_build_time_tools/${ncn_progname}; then
8446 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8447 echo "$as_me:$LINENO: result: yes" >&5
8448echo "${ECHO_T}yes" >&6
2429c060
PB
8449 break
8450 else
c6b750e1
DJ
8451 echo "$as_me:$LINENO: result: no" >&5
8452echo "${ECHO_T}no" >&6
2429c060
PB
8453 fi
8454 done
8455fi
8456
8457if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8458 for ncn_progname in gcj; do
8459 if test -n "$ncn_target_tool_prefix"; then
8460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8461set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8462echo "$as_me:$LINENO: checking for $ac_word" >&5
8463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8464if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8466else
8467 if test -n "$GCJ_FOR_TARGET"; then
8468 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8469else
c6b750e1
DJ
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482done
8483
55db4b87
PB
8484fi
8485fi
9a819804
AO
8486GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8487if test -n "$GCJ_FOR_TARGET"; then
8488 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8489echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8490else
8491 echo "$as_me:$LINENO: result: no" >&5
8492echo "${ECHO_T}no" >&6
8493fi
8494
8495 fi
8496 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_progname}; ac_word=$2
8499echo "$as_me:$LINENO: checking for $ac_word" >&5
8500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8501if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504 if test -n "$GCJ_FOR_TARGET"; then
8505 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8506else
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518done
8519done
8520
8521fi
8522fi
8523GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8524if test -n "$GCJ_FOR_TARGET"; then
8525 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8526echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8527else
8528 echo "$as_me:$LINENO: result: no" >&5
8529echo "${ECHO_T}no" >&6
8530fi
8531
8532 fi
8533 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8534 done
8535fi
8536
8537if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8538 set dummy gcj
8539 if test $build = $target ; then
8540 GCJ_FOR_TARGET="$2"
8541 else
8542 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8543 fi
d3f5afc4
MS
8544else
8545 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8546fi
8547
8548
8549
8550if test -n "$GFORTRAN_FOR_TARGET"; then
8551 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8552elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8553 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8554fi
8555
9a819804
AO
8556if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8557 for ncn_progname in gfortran; do
8558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8559set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8560echo "$as_me:$LINENO: checking for $ac_word" >&5
8561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8562if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8563 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8564else
9a819804
AO
8565 if test -n "$GFORTRAN_FOR_TARGET"; then
8566 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8567else
c6b750e1
DJ
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8575 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8578 fi
8579done
8580done
8581
55db4b87
PB
8582fi
8583fi
9a819804
AO
8584GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8585if test -n "$GFORTRAN_FOR_TARGET"; then
8586 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8587echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8588else
c6b750e1
DJ
8589 echo "$as_me:$LINENO: result: no" >&5
8590echo "${ECHO_T}no" >&6
55db4b87 8591fi
c6b750e1 8592
2429c060
PB
8593 done
8594fi
c6b750e1 8595
9a819804 8596if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8597 for ncn_progname in gfortran; do
c6b750e1
DJ
8598 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8599echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8600 if test -x $with_build_time_tools/${ncn_progname}; then
8601 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8602 echo "$as_me:$LINENO: result: yes" >&5
8603echo "${ECHO_T}yes" >&6
2429c060
PB
8604 break
8605 else
c6b750e1
DJ
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
2429c060
PB
8608 fi
8609 done
8610fi
8611
8612if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8613 for ncn_progname in gfortran; do
8614 if test -n "$ncn_target_tool_prefix"; then
8615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8616set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8617echo "$as_me:$LINENO: checking for $ac_word" >&5
8618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8619if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8621else
8622 if test -n "$GFORTRAN_FOR_TARGET"; then
8623 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8624else
c6b750e1
DJ
8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8635 fi
8636done
8637done
8638
55db4b87
PB
8639fi
8640fi
c6b750e1 8641GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8642if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8643 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8644echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8645else
c6b750e1
DJ
8646 echo "$as_me:$LINENO: result: no" >&5
8647echo "${ECHO_T}no" >&6
55db4b87
PB
8648fi
8649
2429c060
PB
8650 fi
8651 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8653set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8654echo "$as_me:$LINENO: checking for $ac_word" >&5
8655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8656if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8658else
05cbd757 8659 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8660 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8661else
8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663for as_dir in $PATH
8664do
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8672 fi
8673done
8674done
8675
55db4b87
PB
8676fi
8677fi
c6b750e1 8678GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8679if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8680 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8681echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8682else
c6b750e1
DJ
8683 echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
55db4b87 8685fi
c6b750e1 8686
2429c060
PB
8687 fi
8688 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8689 done
8690fi
c6b750e1 8691
05cbd757
PB
8692if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8693 set dummy gfortran
8694 if test $build = $target ; then
8695 GFORTRAN_FOR_TARGET="$2"
55db4b87 8696 else
05cbd757 8697 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8698 fi
d3f5afc4
MS
8699else
8700 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8701fi
8702
2429c060
PB
8703
8704
2429c060
PB
8705cat > conftest.c << \EOF
8706#ifdef __GNUC__
8707 gcc_yay;
8708#endif
8709EOF
8710if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8711 have_gcc_for_target=yes
859789af 8712else
2429c060
PB
8713 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8714 have_gcc_for_target=no
859789af 8715fi
2429c060
PB
8716rm conftest.c
8717
8718
8719
859789af 8720
2429c060
PB
8721if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8722 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8723 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8724echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8725 if test -x $with_build_time_tools/ar; then
8726 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8727 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8728 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8729echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8730 else
c6b750e1
DJ
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
3a35eeb3 8733 fi
2429c060
PB
8734 elif test $build != $host && test $have_gcc_for_target = yes; then
8735 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8736 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8737 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8738 fi
2429c060 8739fi
c6b750e1 8740if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8741 # Extract the first word of "ar", so it can be a program name with args.
8742set dummy ar; ac_word=$2
c6b750e1
DJ
8743echo "$as_me:$LINENO: checking for $ac_word" >&5
8744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8745if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8747else
c6b750e1
DJ
8748 case $AR_FOR_TARGET in
8749 [\\/]* | ?:[\\/]*)
2429c060
PB
8750 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8751 ;;
2429c060 8752 *)
c6b750e1
DJ
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $gcc_cv_tool_dirs
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764done
8765done
8766
2429c060
PB
8767 ;;
8768esac
859789af 8769fi
c6b750e1
DJ
8770AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8771
2429c060 8772if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8773 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8774echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8775else
c6b750e1
DJ
8776 echo "$as_me:$LINENO: result: no" >&5
8777echo "${ECHO_T}no" >&6
859789af 8778fi
05cbd757 8779
2429c060
PB
8780fi
8781if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8782
8783
8784if test -n "$AR_FOR_TARGET"; then
8785 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8786elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8787 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8788fi
8789
8790if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8791 for ncn_progname in ar; do
8792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793set dummy ${ncn_progname}; ac_word=$2
8794echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798else
8799 if test -n "$AR_FOR_TARGET"; then
8800 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
8816fi
8817fi
8818AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8819if test -n "$AR_FOR_TARGET"; then
8820 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8821echo "${ECHO_T}$AR_FOR_TARGET" >&6
8822else
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
8825fi
8826
8827 done
8828fi
8829
8830if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8831 for ncn_progname in ar; do
c6b750e1
DJ
8832 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8833echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8834 if test -x $with_build_time_tools/${ncn_progname}; then
8835 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8836 echo "$as_me:$LINENO: result: yes" >&5
8837echo "${ECHO_T}yes" >&6
2429c060
PB
8838 break
8839 else
c6b750e1
DJ
8840 echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
2429c060
PB
8842 fi
8843 done
859789af
AC
8844fi
8845
2429c060
PB
8846if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8847 for ncn_progname in ar; do
8848 if test -n "$ncn_target_tool_prefix"; then
8849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8850set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8851echo "$as_me:$LINENO: checking for $ac_word" >&5
8852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8853if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8855else
2429c060
PB
8856 if test -n "$AR_FOR_TARGET"; then
8857 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8858else
c6b750e1
DJ
8859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870done
8871done
8872
7e0f7140
GK
8873fi
8874fi
c6b750e1 8875AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8876if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8877 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8878echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8879else
c6b750e1
DJ
8880 echo "$as_me:$LINENO: result: no" >&5
8881echo "${ECHO_T}no" >&6
7e0f7140
GK
8882fi
8883
2429c060
PB
8884 fi
8885 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8887set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8888echo "$as_me:$LINENO: checking for $ac_word" >&5
8889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8890if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8892else
2429c060
PB
8893 if test -n "$AR_FOR_TARGET"; then
8894 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8895else
c6b750e1
DJ
8896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897for as_dir in $PATH
8898do
8899 IFS=$as_save_IFS
8900 test -z "$as_dir" && as_dir=.
8901 for ac_exec_ext in '' $ac_executable_extensions; do
8902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8903 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 break 2
8906 fi
8907done
8908done
8909
7e0f7140
GK
8910fi
8911fi
c6b750e1 8912AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8913if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8914 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8915echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8916else
c6b750e1
DJ
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
7e0f7140 8919fi
c6b750e1 8920
2429c060
PB
8921 fi
8922 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8923 done
8924fi
c6b750e1 8925
2429c060
PB
8926if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8927 set dummy ar
7e0f7140 8928 if test $build = $target ; then
2429c060 8929 AR_FOR_TARGET="$2"
7e0f7140 8930 else
2429c060 8931 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8932 fi
d3f5afc4
MS
8933else
8934 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8935fi
8936
3a35eeb3
PB
8937else
8938 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8939fi
8940
8941
8942
8943
8944if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8945 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8946 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8947echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8948 if test -x $with_build_time_tools/as; then
8949 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8950 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8951 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8952echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8953 else
c6b750e1
DJ
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
3a35eeb3 8956 fi
2429c060
PB
8957 elif test $build != $host && test $have_gcc_for_target = yes; then
8958 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8959 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8960 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8961 fi
8962fi
c6b750e1 8963if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8964 # Extract the first word of "as", so it can be a program name with args.
8965set dummy as; ac_word=$2
c6b750e1
DJ
8966echo "$as_me:$LINENO: checking for $ac_word" >&5
8967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8968if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8970else
c6b750e1
DJ
8971 case $AS_FOR_TARGET in
8972 [\\/]* | ?:[\\/]*)
2429c060
PB
8973 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8974 ;;
2429c060 8975 *)
c6b750e1
DJ
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977for as_dir in $gcc_cv_tool_dirs
8978do
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8983 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987done
8988done
8989
2429c060
PB
8990 ;;
8991esac
8992fi
c6b750e1
DJ
8993AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8994
2429c060 8995if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8996 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8997echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8998else
c6b750e1
DJ
8999 echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6
2429c060
PB
9001fi
9002
9003fi
9004if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9005
9006
9007if test -n "$AS_FOR_TARGET"; then
9008 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9009elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9010 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9011fi
9012
9013if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9014 for ncn_progname in as; do
9015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9016set dummy ${ncn_progname}; ac_word=$2
9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022 if test -n "$AS_FOR_TARGET"; then
9023 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
9039fi
9040fi
9041AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9042if test -n "$AS_FOR_TARGET"; then
9043 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9044echo "${ECHO_T}$AS_FOR_TARGET" >&6
9045else
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
9048fi
9049
9050 done
9051fi
9052
9053if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9054 for ncn_progname in as; do
c6b750e1
DJ
9055 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9056echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9057 if test -x $with_build_time_tools/${ncn_progname}; then
9058 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9059 echo "$as_me:$LINENO: result: yes" >&5
9060echo "${ECHO_T}yes" >&6
2429c060
PB
9061 break
9062 else
c6b750e1
DJ
9063 echo "$as_me:$LINENO: result: no" >&5
9064echo "${ECHO_T}no" >&6
2429c060
PB
9065 fi
9066 done
9067fi
9068
9069if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9070 for ncn_progname in as; do
9071 if test -n "$ncn_target_tool_prefix"; then
9072 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9073set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9074echo "$as_me:$LINENO: checking for $ac_word" >&5
9075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9076if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9078else
9079 if test -n "$AS_FOR_TARGET"; then
9080 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9081else
c6b750e1
DJ
9082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083for as_dir in $PATH
9084do
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9089 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9092 fi
9093done
9094done
9095
2429c060
PB
9096fi
9097fi
c6b750e1 9098AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9099if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9100 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9101echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9102else
c6b750e1
DJ
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
2429c060
PB
9105fi
9106
9107 fi
9108 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9110set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9111echo "$as_me:$LINENO: checking for $ac_word" >&5
9112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9113if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9115else
9116 if test -n "$AS_FOR_TARGET"; then
9117 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9118else
c6b750e1
DJ
9119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120for as_dir in $PATH
9121do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130done
9131done
9132
2429c060
PB
9133fi
9134fi
c6b750e1 9135AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9136if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9137 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9138echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9139else
c6b750e1
DJ
9140 echo "$as_me:$LINENO: result: no" >&5
9141echo "${ECHO_T}no" >&6
2429c060 9142fi
c6b750e1 9143
2429c060
PB
9144 fi
9145 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9146 done
9147fi
c6b750e1 9148
2429c060
PB
9149if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9150 set dummy as
9151 if test $build = $target ; then
9152 AS_FOR_TARGET="$2"
9153 else
9154 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9155 fi
d3f5afc4
MS
9156else
9157 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9158fi
9159
3a35eeb3
PB
9160else
9161 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9162fi
9163
9164
9165
9166
9167if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9168 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9169 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9170echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9171 if test -x $with_build_time_tools/dlltool; then
9172 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9173 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9174 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9175echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9176 else
c6b750e1
DJ
9177 echo "$as_me:$LINENO: result: no" >&5
9178echo "${ECHO_T}no" >&6
3a35eeb3 9179 fi
2429c060
PB
9180 elif test $build != $host && test $have_gcc_for_target = yes; then
9181 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9182 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9183 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9184 fi
9185fi
c6b750e1 9186if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9187 # Extract the first word of "dlltool", so it can be a program name with args.
9188set dummy dlltool; ac_word=$2
c6b750e1
DJ
9189echo "$as_me:$LINENO: checking for $ac_word" >&5
9190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9191if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9193else
c6b750e1
DJ
9194 case $DLLTOOL_FOR_TARGET in
9195 [\\/]* | ?:[\\/]*)
2429c060
PB
9196 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9197 ;;
2429c060 9198 *)
c6b750e1
DJ
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200for as_dir in $gcc_cv_tool_dirs
9201do
9202 IFS=$as_save_IFS
9203 test -z "$as_dir" && as_dir=.
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9208 break 2
9209 fi
9210done
9211done
9212
2429c060
PB
9213 ;;
9214esac
9215fi
c6b750e1
DJ
9216DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9217
2429c060 9218if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9219 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9220echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9221else
c6b750e1
DJ
9222 echo "$as_me:$LINENO: result: no" >&5
9223echo "${ECHO_T}no" >&6
2429c060
PB
9224fi
9225
9226fi
9227if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9228
9229
9230if test -n "$DLLTOOL_FOR_TARGET"; then
9231 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9232elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9233 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9234fi
9235
9236if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9237 for ncn_progname in dlltool; do
9238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_progname}; ac_word=$2
9240echo "$as_me:$LINENO: checking for $ac_word" >&5
9241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9242if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245 if test -n "$DLLTOOL_FOR_TARGET"; then
9246 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261
9262fi
9263fi
9264DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9265if test -n "$DLLTOOL_FOR_TARGET"; then
9266 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9267echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9268else
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
9271fi
9272
9273 done
9274fi
9275
9276if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9277 for ncn_progname in dlltool; do
c6b750e1
DJ
9278 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9279echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9280 if test -x $with_build_time_tools/${ncn_progname}; then
9281 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9282 echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
2429c060
PB
9284 break
9285 else
c6b750e1
DJ
9286 echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
2429c060
PB
9288 fi
9289 done
9290fi
9291
9292if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9293 for ncn_progname in dlltool; do
9294 if test -n "$ncn_target_tool_prefix"; then
9295 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9296set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9297echo "$as_me:$LINENO: checking for $ac_word" >&5
9298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9299if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9301else
9302 if test -n "$DLLTOOL_FOR_TARGET"; then
9303 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9304else
c6b750e1
DJ
9305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306for as_dir in $PATH
9307do
9308 IFS=$as_save_IFS
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9314 break 2
9315 fi
9316done
9317done
9318
2429c060
PB
9319fi
9320fi
c6b750e1 9321DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9322if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9323 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9324echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9325else
c6b750e1
DJ
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
2429c060
PB
9328fi
9329
9330 fi
9331 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9333set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9334echo "$as_me:$LINENO: checking for $ac_word" >&5
9335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9336if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9338else
9339 if test -n "$DLLTOOL_FOR_TARGET"; then
9340 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9341else
c6b750e1
DJ
9342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343for as_dir in $PATH
9344do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9349 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353done
9354done
9355
2429c060
PB
9356fi
9357fi
c6b750e1 9358DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9359if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9360 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9361echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9362else
c6b750e1
DJ
9363 echo "$as_me:$LINENO: result: no" >&5
9364echo "${ECHO_T}no" >&6
2429c060 9365fi
c6b750e1 9366
2429c060
PB
9367 fi
9368 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9369 done
9370fi
c6b750e1 9371
2429c060
PB
9372if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9373 set dummy dlltool
9374 if test $build = $target ; then
9375 DLLTOOL_FOR_TARGET="$2"
9376 else
9377 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9378 fi
d3f5afc4
MS
9379else
9380 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9381fi
9382
3a35eeb3
PB
9383else
9384 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9385fi
9386
9387
9388
9389
9390if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9391 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9392 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9393echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9394 if test -x $with_build_time_tools/ld; then
9395 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9396 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9397 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9398echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9399 else
c6b750e1
DJ
9400 echo "$as_me:$LINENO: result: no" >&5
9401echo "${ECHO_T}no" >&6
3a35eeb3 9402 fi
2429c060
PB
9403 elif test $build != $host && test $have_gcc_for_target = yes; then
9404 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9405 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9406 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9407 fi
9408fi
c6b750e1 9409if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9410 # Extract the first word of "ld", so it can be a program name with args.
9411set dummy ld; ac_word=$2
c6b750e1
DJ
9412echo "$as_me:$LINENO: checking for $ac_word" >&5
9413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9414if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9416else
c6b750e1
DJ
9417 case $LD_FOR_TARGET in
9418 [\\/]* | ?:[\\/]*)
2429c060
PB
9419 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9420 ;;
2429c060 9421 *)
c6b750e1
DJ
9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $gcc_cv_tool_dirs
9424do
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9429 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 break 2
9432 fi
9433done
9434done
9435
2429c060
PB
9436 ;;
9437esac
9438fi
c6b750e1
DJ
9439LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9440
2429c060 9441if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9442 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9443echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9444else
c6b750e1
DJ
9445 echo "$as_me:$LINENO: result: no" >&5
9446echo "${ECHO_T}no" >&6
2429c060
PB
9447fi
9448
9449fi
9450if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9451
9452
9453if test -n "$LD_FOR_TARGET"; then
9454 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9455elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9456 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9457fi
9458
9459if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9460 for ncn_progname in ld; do
9461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9462set dummy ${ncn_progname}; ac_word=$2
9463echo "$as_me:$LINENO: checking for $ac_word" >&5
9464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9465if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467else
9468 if test -n "$LD_FOR_TARGET"; then
9469 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9470else
9471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $PATH
9473do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482done
9483done
9484
9485fi
9486fi
9487LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9488if test -n "$LD_FOR_TARGET"; then
9489 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9490echo "${ECHO_T}$LD_FOR_TARGET" >&6
9491else
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
9494fi
9495
9496 done
9497fi
9498
9499if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9500 for ncn_progname in ld; do
c6b750e1
DJ
9501 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9502echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9503 if test -x $with_build_time_tools/${ncn_progname}; then
9504 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
2429c060
PB
9507 break
9508 else
c6b750e1
DJ
9509 echo "$as_me:$LINENO: result: no" >&5
9510echo "${ECHO_T}no" >&6
2429c060
PB
9511 fi
9512 done
9513fi
9514
9515if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9516 for ncn_progname in ld; do
9517 if test -n "$ncn_target_tool_prefix"; then
9518 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9519set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9520echo "$as_me:$LINENO: checking for $ac_word" >&5
9521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9522if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9524else
9525 if test -n "$LD_FOR_TARGET"; then
9526 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9527else
c6b750e1
DJ
9528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529for as_dir in $PATH
9530do
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9537 break 2
9538 fi
9539done
9540done
9541
2429c060
PB
9542fi
9543fi
c6b750e1 9544LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9545if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9546 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9547echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9548else
c6b750e1
DJ
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
2429c060
PB
9551fi
9552
9553 fi
9554 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9556set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9557echo "$as_me:$LINENO: checking for $ac_word" >&5
9558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9559if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9561else
9562 if test -n "$LD_FOR_TARGET"; then
9563 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9564else
c6b750e1
DJ
9565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566for as_dir in $PATH
9567do
9568 IFS=$as_save_IFS
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9572 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 break 2
9575 fi
9576done
9577done
9578
2429c060
PB
9579fi
9580fi
c6b750e1 9581LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9582if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9583 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9584echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9585else
c6b750e1
DJ
9586 echo "$as_me:$LINENO: result: no" >&5
9587echo "${ECHO_T}no" >&6
2429c060 9588fi
c6b750e1 9589
2429c060
PB
9590 fi
9591 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9592 done
9593fi
c6b750e1 9594
2429c060
PB
9595if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9596 set dummy ld
9597 if test $build = $target ; then
9598 LD_FOR_TARGET="$2"
9599 else
9600 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9601 fi
d3f5afc4
MS
9602else
9603 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9604fi
9605
3a35eeb3
PB
9606else
9607 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9608fi
9609
9610
9611
9612
9613if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9614 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9615 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9616echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9617 if test -x $with_build_time_tools/lipo; then
9618 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9619 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9620 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9621echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9622 else
c6b750e1
DJ
9623 echo "$as_me:$LINENO: result: no" >&5
9624echo "${ECHO_T}no" >&6
3a35eeb3 9625 fi
2429c060
PB
9626 elif test $build != $host && test $have_gcc_for_target = yes; then
9627 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9628 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9629 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9630 fi
9631fi
9a819804
AO
9632if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9633 # Extract the first word of "lipo", so it can be a program name with args.
9634set dummy lipo; ac_word=$2
9635echo "$as_me:$LINENO: checking for $ac_word" >&5
9636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9637if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639else
9640 case $LIPO_FOR_TARGET in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9643 ;;
9644 *)
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $gcc_cv_tool_dirs
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9655 fi
9656done
9657done
9658
9659 ;;
9660esac
9661fi
9662LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9663
9664if test -n "$LIPO_FOR_TARGET"; then
9665 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9666echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9667else
9668 echo "$as_me:$LINENO: result: no" >&5
9669echo "${ECHO_T}no" >&6
9670fi
9671
9672fi
9673if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9674
9675
9676if test -n "$LIPO_FOR_TARGET"; then
9677 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9678elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9679 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9680fi
9681
9682if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9683 for ncn_progname in lipo; do
9684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9685set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9686echo "$as_me:$LINENO: checking for $ac_word" >&5
9687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9688if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9689 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9690else
9a819804
AO
9691 if test -n "$LIPO_FOR_TARGET"; then
9692 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
c6b750e1
DJ
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9701 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706done
9707
2429c060 9708fi
9a819804
AO
9709fi
9710LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9711if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9712 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9713echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9714else
c6b750e1
DJ
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
2429c060
PB
9717fi
9718
9a819804 9719 done
2429c060 9720fi
9a819804
AO
9721
9722if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9723 for ncn_progname in lipo; do
c6b750e1
DJ
9724 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9725echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9726 if test -x $with_build_time_tools/${ncn_progname}; then
9727 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9728 echo "$as_me:$LINENO: result: yes" >&5
9729echo "${ECHO_T}yes" >&6
2429c060
PB
9730 break
9731 else
c6b750e1
DJ
9732 echo "$as_me:$LINENO: result: no" >&5
9733echo "${ECHO_T}no" >&6
2429c060
PB
9734 fi
9735 done
9736fi
9737
9738if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9739 for ncn_progname in lipo; do
9740 if test -n "$ncn_target_tool_prefix"; then
9741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9743echo "$as_me:$LINENO: checking for $ac_word" >&5
9744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9745if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9747else
9748 if test -n "$LIPO_FOR_TARGET"; then
9749 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9750else
c6b750e1
DJ
9751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752for as_dir in $PATH
9753do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9761 fi
9762done
9763done
9764
2429c060
PB
9765fi
9766fi
c6b750e1 9767LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9768if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9769 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9770echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9771else
c6b750e1
DJ
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
2429c060
PB
9774fi
9775
9776 fi
9777 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9779set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9780echo "$as_me:$LINENO: checking for $ac_word" >&5
9781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9782if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9784else
9785 if test -n "$LIPO_FOR_TARGET"; then
9786 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9787else
c6b750e1
DJ
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800done
9801
2429c060
PB
9802fi
9803fi
c6b750e1 9804LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9805if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9806 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9807echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9808else
c6b750e1
DJ
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
2429c060 9811fi
c6b750e1 9812
2429c060
PB
9813 fi
9814 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9815 done
9816fi
c6b750e1 9817
2429c060
PB
9818if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9819 set dummy lipo
9820 if test $build = $target ; then
9821 LIPO_FOR_TARGET="$2"
9822 else
9823 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9824 fi
d3f5afc4
MS
9825else
9826 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9827fi
9828
3a35eeb3
PB
9829else
9830 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9831fi
9832
9833
9834
9835
9836if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9837 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9838 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9839echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9840 if test -x $with_build_time_tools/nm; then
9841 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9842 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9843 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9844echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9845 else
c6b750e1
DJ
9846 echo "$as_me:$LINENO: result: no" >&5
9847echo "${ECHO_T}no" >&6
3a35eeb3 9848 fi
2429c060
PB
9849 elif test $build != $host && test $have_gcc_for_target = yes; then
9850 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9851 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9852 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9853 fi
9854fi
c6b750e1 9855if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9856 # Extract the first word of "nm", so it can be a program name with args.
9857set dummy nm; ac_word=$2
c6b750e1
DJ
9858echo "$as_me:$LINENO: checking for $ac_word" >&5
9859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9860if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9862else
c6b750e1
DJ
9863 case $NM_FOR_TARGET in
9864 [\\/]* | ?:[\\/]*)
2429c060
PB
9865 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9866 ;;
2429c060 9867 *)
c6b750e1
DJ
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869for as_dir in $gcc_cv_tool_dirs
9870do
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9878 fi
9879done
9880done
9881
2429c060
PB
9882 ;;
9883esac
9884fi
c6b750e1
DJ
9885NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9886
2429c060 9887if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9888 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9889echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9890else
c6b750e1
DJ
9891 echo "$as_me:$LINENO: result: no" >&5
9892echo "${ECHO_T}no" >&6
2429c060
PB
9893fi
9894
9895fi
9896if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9897
9898
9899if test -n "$NM_FOR_TARGET"; then
9900 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9901elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9903fi
9904
9905if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9906 for ncn_progname in nm; do
9907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9908set dummy ${ncn_progname}; ac_word=$2
9909echo "$as_me:$LINENO: checking for $ac_word" >&5
9910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9911if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914 if test -n "$NM_FOR_TARGET"; then
9915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929done
9930
9931fi
9932fi
9933NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9934if test -n "$NM_FOR_TARGET"; then
9935 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9936echo "${ECHO_T}$NM_FOR_TARGET" >&6
9937else
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940fi
9941
9942 done
9943fi
9944
9945if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9946 for ncn_progname in nm; do
c6b750e1
DJ
9947 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9948echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9949 if test -x $with_build_time_tools/${ncn_progname}; then
9950 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9951 echo "$as_me:$LINENO: result: yes" >&5
9952echo "${ECHO_T}yes" >&6
2429c060
PB
9953 break
9954 else
c6b750e1
DJ
9955 echo "$as_me:$LINENO: result: no" >&5
9956echo "${ECHO_T}no" >&6
2429c060
PB
9957 fi
9958 done
9959fi
9960
9961if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9962 for ncn_progname in nm; do
9963 if test -n "$ncn_target_tool_prefix"; then
9964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9965set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9966echo "$as_me:$LINENO: checking for $ac_word" >&5
9967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9968if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9970else
55db4b87
PB
9971 if test -n "$NM_FOR_TARGET"; then
9972 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9973else
c6b750e1
DJ
9974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975for as_dir in $PATH
9976do
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
9979 for ac_exec_ext in '' $ac_executable_extensions; do
9980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9981 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 break 2
9984 fi
9985done
9986done
9987
859789af
AC
9988fi
9989fi
c6b750e1 9990NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9991if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9992 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9993echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9994else
c6b750e1
DJ
9995 echo "$as_me:$LINENO: result: no" >&5
9996echo "${ECHO_T}no" >&6
859789af
AC
9997fi
9998
2429c060
PB
9999 fi
10000 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10002set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10003echo "$as_me:$LINENO: checking for $ac_word" >&5
10004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10005if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10007else
05cbd757
PB
10008 if test -n "$NM_FOR_TARGET"; then
10009 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10010else
c6b750e1
DJ
10011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012for as_dir in $PATH
10013do
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10021 fi
10022done
10023done
10024
859789af
AC
10025fi
10026fi
c6b750e1 10027NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10028if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10029 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10030echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10031else
c6b750e1
DJ
10032 echo "$as_me:$LINENO: result: no" >&5
10033echo "${ECHO_T}no" >&6
859789af 10034fi
c6b750e1 10035
2429c060
PB
10036 fi
10037 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10038 done
10039fi
c6b750e1 10040
05cbd757
PB
10041if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10042 set dummy nm
10043 if test $build = $target ; then
10044 NM_FOR_TARGET="$2"
859789af 10045 else
05cbd757 10046 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10047 fi
d3f5afc4
MS
10048else
10049 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10050fi
10051
3a35eeb3
PB
10052else
10053 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10054fi
10055
10056
10057
10058
10059if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10060 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10061 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10062echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10063 if test -x $with_build_time_tools/objdump; then
10064 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10065 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10066 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10067echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10068 else
c6b750e1
DJ
10069 echo "$as_me:$LINENO: result: no" >&5
10070echo "${ECHO_T}no" >&6
3a35eeb3 10071 fi
2429c060
PB
10072 elif test $build != $host && test $have_gcc_for_target = yes; then
10073 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10074 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10075 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10076 fi
10077fi
c6b750e1 10078if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10079 # Extract the first word of "objdump", so it can be a program name with args.
10080set dummy objdump; ac_word=$2
c6b750e1
DJ
10081echo "$as_me:$LINENO: checking for $ac_word" >&5
10082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10083if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10085else
c6b750e1
DJ
10086 case $OBJDUMP_FOR_TARGET in
10087 [\\/]* | ?:[\\/]*)
2429c060
PB
10088 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10089 ;;
2429c060 10090 *)
c6b750e1
DJ
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092for as_dir in $gcc_cv_tool_dirs
10093do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10101 fi
10102done
10103done
10104
2429c060
PB
10105 ;;
10106esac
10107fi
c6b750e1
DJ
10108OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10109
2429c060 10110if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10111 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10112echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10113else
c6b750e1
DJ
10114 echo "$as_me:$LINENO: result: no" >&5
10115echo "${ECHO_T}no" >&6
2429c060
PB
10116fi
10117
10118fi
10119if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10120
10121
10122if test -n "$OBJDUMP_FOR_TARGET"; then
10123 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10124elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10125 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10126fi
10127
10128if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10129 for ncn_progname in objdump; do
10130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10131set dummy ${ncn_progname}; ac_word=$2
10132echo "$as_me:$LINENO: checking for $ac_word" >&5
10133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10134if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10136else
10137 if test -n "$OBJDUMP_FOR_TARGET"; then
10138 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10139else
10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10147 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10150 fi
10151done
10152done
10153
10154fi
10155fi
10156OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10157if test -n "$OBJDUMP_FOR_TARGET"; then
10158 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10159echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10160else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163fi
10164
10165 done
10166fi
10167
10168if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10169 for ncn_progname in objdump; do
c6b750e1
DJ
10170 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10171echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10172 if test -x $with_build_time_tools/${ncn_progname}; then
10173 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10174 echo "$as_me:$LINENO: result: yes" >&5
10175echo "${ECHO_T}yes" >&6
2429c060
PB
10176 break
10177 else
c6b750e1
DJ
10178 echo "$as_me:$LINENO: result: no" >&5
10179echo "${ECHO_T}no" >&6
2429c060
PB
10180 fi
10181 done
10182fi
10183
10184if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10185 for ncn_progname in objdump; do
10186 if test -n "$ncn_target_tool_prefix"; then
10187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10188set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10189echo "$as_me:$LINENO: checking for $ac_word" >&5
10190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10191if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10193else
10194 if test -n "$OBJDUMP_FOR_TARGET"; then
10195 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10196else
c6b750e1
DJ
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209done
10210
5ae72758
DJ
10211fi
10212fi
c6b750e1 10213OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10214if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10215 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10216echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10217else
c6b750e1
DJ
10218 echo "$as_me:$LINENO: result: no" >&5
10219echo "${ECHO_T}no" >&6
5ae72758
DJ
10220fi
10221
2429c060
PB
10222 fi
10223 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10225set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10226echo "$as_me:$LINENO: checking for $ac_word" >&5
10227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10228if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10230else
10231 if test -n "$OBJDUMP_FOR_TARGET"; then
10232 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10233else
c6b750e1
DJ
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237 IFS=$as_save_IFS
10238 test -z "$as_dir" && as_dir=.
10239 for ac_exec_ext in '' $ac_executable_extensions; do
10240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10241 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10243 break 2
10244 fi
10245done
10246done
10247
5ae72758
DJ
10248fi
10249fi
c6b750e1 10250OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10251if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10252 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10253echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10254else
c6b750e1
DJ
10255 echo "$as_me:$LINENO: result: no" >&5
10256echo "${ECHO_T}no" >&6
5ae72758 10257fi
c6b750e1 10258
2429c060
PB
10259 fi
10260 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10261 done
10262fi
c6b750e1 10263
5ae72758
DJ
10264if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10265 set dummy objdump
10266 if test $build = $target ; then
10267 OBJDUMP_FOR_TARGET="$2"
10268 else
10269 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10270 fi
d3f5afc4
MS
10271else
10272 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10273fi
10274
3a35eeb3
PB
10275else
10276 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10277fi
10278
10279
10280
10281
10282if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10283 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10284 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10285echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10286 if test -x $with_build_time_tools/ranlib; then
10287 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10288 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10289 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10290echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10291 else
c6b750e1
DJ
10292 echo "$as_me:$LINENO: result: no" >&5
10293echo "${ECHO_T}no" >&6
3a35eeb3 10294 fi
2429c060
PB
10295 elif test $build != $host && test $have_gcc_for_target = yes; then
10296 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10297 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10298 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10299 fi
10300fi
c6b750e1 10301if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10302 # Extract the first word of "ranlib", so it can be a program name with args.
10303set dummy ranlib; ac_word=$2
c6b750e1
DJ
10304echo "$as_me:$LINENO: checking for $ac_word" >&5
10305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10308else
c6b750e1
DJ
10309 case $RANLIB_FOR_TARGET in
10310 [\\/]* | ?:[\\/]*)
2429c060
PB
10311 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10312 ;;
2429c060 10313 *)
c6b750e1
DJ
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315for as_dir in $gcc_cv_tool_dirs
10316do
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10321 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 break 2
10324 fi
10325done
10326done
10327
2429c060
PB
10328 ;;
10329esac
10330fi
c6b750e1
DJ
10331RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10332
2429c060 10333if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10334 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10335echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10336else
c6b750e1
DJ
10337 echo "$as_me:$LINENO: result: no" >&5
10338echo "${ECHO_T}no" >&6
2429c060
PB
10339fi
10340
10341fi
10342if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10343
10344
10345if test -n "$RANLIB_FOR_TARGET"; then
10346 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10347elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10348 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10349fi
10350
10351if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10352 for ncn_progname in ranlib; do
10353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10354set dummy ${ncn_progname}; ac_word=$2
10355echo "$as_me:$LINENO: checking for $ac_word" >&5
10356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10357if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360 if test -n "$RANLIB_FOR_TARGET"; then
10361 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10362else
10363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $PATH
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
10369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374done
10375done
10376
10377fi
10378fi
10379RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10380if test -n "$RANLIB_FOR_TARGET"; then
10381 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10382echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10383else
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
10386fi
10387
10388 done
10389fi
10390
10391if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10392 for ncn_progname in ranlib; do
c6b750e1
DJ
10393 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10394echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10395 if test -x $with_build_time_tools/${ncn_progname}; then
10396 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10397 echo "$as_me:$LINENO: result: yes" >&5
10398echo "${ECHO_T}yes" >&6
2429c060
PB
10399 break
10400 else
c6b750e1
DJ
10401 echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6
2429c060
PB
10403 fi
10404 done
10405fi
10406
10407if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10408 for ncn_progname in ranlib; do
10409 if test -n "$ncn_target_tool_prefix"; then
10410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10411set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10412echo "$as_me:$LINENO: checking for $ac_word" >&5
10413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10414if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10416else
55db4b87
PB
10417 if test -n "$RANLIB_FOR_TARGET"; then
10418 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10419else
c6b750e1
DJ
10420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421for as_dir in $PATH
10422do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10427 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10430 fi
10431done
10432done
10433
859789af
AC
10434fi
10435fi
c6b750e1 10436RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10437if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10438 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10439echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10440else
c6b750e1
DJ
10441 echo "$as_me:$LINENO: result: no" >&5
10442echo "${ECHO_T}no" >&6
859789af
AC
10443fi
10444
2429c060
PB
10445 fi
10446 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10448set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10449echo "$as_me:$LINENO: checking for $ac_word" >&5
10450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10451if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10453else
05cbd757
PB
10454 if test -n "$RANLIB_FOR_TARGET"; then
10455 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10456else
c6b750e1
DJ
10457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458for as_dir in $PATH
10459do
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
10462 for ac_exec_ext in '' $ac_executable_extensions; do
10463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10464 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 break 2
10467 fi
10468done
10469done
10470
859789af
AC
10471fi
10472fi
c6b750e1 10473RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10474if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10475 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10476echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10477else
c6b750e1
DJ
10478 echo "$as_me:$LINENO: result: no" >&5
10479echo "${ECHO_T}no" >&6
859789af 10480fi
c6b750e1 10481
2429c060
PB
10482 fi
10483 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10484 done
10485fi
c6b750e1 10486
2429c060
PB
10487if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10488 set dummy ranlib
10489 if test $build = $target ; then
10490 RANLIB_FOR_TARGET="$2"
10491 else
10492 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10493 fi
d3f5afc4
MS
10494else
10495 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10496fi
05cbd757 10497
3a35eeb3
PB
10498else
10499 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10500fi
10501
2429c060
PB
10502
10503
10504
10505if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10506 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10507 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10508echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10509 if test -x $with_build_time_tools/strip; then
10510 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10511 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10512 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10513echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10514 else
c6b750e1
DJ
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
3a35eeb3 10517 fi
2429c060
PB
10518 elif test $build != $host && test $have_gcc_for_target = yes; then
10519 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10520 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10521 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10522 fi
10523fi
c6b750e1 10524if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10525 # Extract the first word of "strip", so it can be a program name with args.
10526set dummy strip; ac_word=$2
c6b750e1
DJ
10527echo "$as_me:$LINENO: checking for $ac_word" >&5
10528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10529if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10531else
c6b750e1
DJ
10532 case $STRIP_FOR_TARGET in
10533 [\\/]* | ?:[\\/]*)
2429c060
PB
10534 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10535 ;;
2429c060 10536 *)
c6b750e1
DJ
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538for as_dir in $gcc_cv_tool_dirs
10539do
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10547 fi
10548done
10549done
10550
2429c060
PB
10551 ;;
10552esac
10553fi
c6b750e1
DJ
10554STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10555
2429c060 10556if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10557 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10558echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10559else
c6b750e1
DJ
10560 echo "$as_me:$LINENO: result: no" >&5
10561echo "${ECHO_T}no" >&6
2429c060
PB
10562fi
10563
10564fi
10565if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10566
10567
10568if test -n "$STRIP_FOR_TARGET"; then
10569 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10570elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10571 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10572fi
10573
10574if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10575 for ncn_progname in strip; do
10576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10577set dummy ${ncn_progname}; ac_word=$2
10578echo "$as_me:$LINENO: checking for $ac_word" >&5
10579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10580if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10582else
10583 if test -n "$STRIP_FOR_TARGET"; then
10584 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10585else
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598done
10599
10600fi
10601fi
10602STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10603if test -n "$STRIP_FOR_TARGET"; then
10604 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10605echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10606else
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609fi
10610
10611 done
10612fi
10613
10614if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10615 for ncn_progname in strip; do
c6b750e1
DJ
10616 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10617echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10618 if test -x $with_build_time_tools/${ncn_progname}; then
10619 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10620 echo "$as_me:$LINENO: result: yes" >&5
10621echo "${ECHO_T}yes" >&6
2429c060
PB
10622 break
10623 else
c6b750e1
DJ
10624 echo "$as_me:$LINENO: result: no" >&5
10625echo "${ECHO_T}no" >&6
2429c060
PB
10626 fi
10627 done
10628fi
10629
10630if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10631 for ncn_progname in strip; do
10632 if test -n "$ncn_target_tool_prefix"; then
10633 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10634set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10635echo "$as_me:$LINENO: checking for $ac_word" >&5
10636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10637if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10639else
10640 if test -n "$STRIP_FOR_TARGET"; then
10641 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10642else
10643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644for as_dir in $PATH
10645do
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10653 fi
10654done
10655done
10656
7e0f7140
GK
10657fi
10658fi
c6b750e1 10659STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10660if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10661 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10662echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10663else
c6b750e1
DJ
10664 echo "$as_me:$LINENO: result: no" >&5
10665echo "${ECHO_T}no" >&6
7e0f7140
GK
10666fi
10667
2429c060
PB
10668 fi
10669 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10671set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10672echo "$as_me:$LINENO: checking for $ac_word" >&5
10673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10674if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10676else
10677 if test -n "$STRIP_FOR_TARGET"; then
10678 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10679else
c6b750e1
DJ
10680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681for as_dir in $PATH
10682do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10687 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 break 2
10690 fi
10691done
10692done
10693
7e0f7140
GK
10694fi
10695fi
c6b750e1 10696STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10697if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10698 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10699echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10700else
c6b750e1
DJ
10701 echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
7e0f7140 10703fi
c6b750e1 10704
2429c060
PB
10705 fi
10706 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10707 done
10708fi
c6b750e1 10709
7e0f7140
GK
10710if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10711 set dummy strip
10712 if test $build = $target ; then
10713 STRIP_FOR_TARGET="$2"
10714 else
10715 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10716 fi
d3f5afc4
MS
10717else
10718 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10719fi
10720
3a35eeb3
PB
10721else
10722 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10723fi
10724
10725
10726
10727
10728if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10729 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10730 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10731echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10732 if test -x $with_build_time_tools/windres; then
10733 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10734 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10735 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10736echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10737 else
c6b750e1
DJ
10738 echo "$as_me:$LINENO: result: no" >&5
10739echo "${ECHO_T}no" >&6
3a35eeb3 10740 fi
2429c060
PB
10741 elif test $build != $host && test $have_gcc_for_target = yes; then
10742 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10743 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10744 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10745 fi
10746fi
c6b750e1 10747if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10748 # Extract the first word of "windres", so it can be a program name with args.
10749set dummy windres; ac_word=$2
c6b750e1
DJ
10750echo "$as_me:$LINENO: checking for $ac_word" >&5
10751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10754else
c6b750e1
DJ
10755 case $WINDRES_FOR_TARGET in
10756 [\\/]* | ?:[\\/]*)
2429c060
PB
10757 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10758 ;;
2429c060 10759 *)
c6b750e1
DJ
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $gcc_cv_tool_dirs
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10770 fi
10771done
10772done
10773
2429c060
PB
10774 ;;
10775esac
10776fi
c6b750e1
DJ
10777WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10778
2429c060 10779if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10780 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10781echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10782else
c6b750e1
DJ
10783 echo "$as_me:$LINENO: result: no" >&5
10784echo "${ECHO_T}no" >&6
2429c060
PB
10785fi
10786
10787fi
10788if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10789
10790
10791if test -n "$WINDRES_FOR_TARGET"; then
10792 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10793elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10794 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10795fi
10796
10797if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10798 for ncn_progname in windres; do
10799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10800set dummy ${ncn_progname}; ac_word=$2
10801echo "$as_me:$LINENO: checking for $ac_word" >&5
10802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10803if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805else
10806 if test -n "$WINDRES_FOR_TARGET"; then
10807 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10808else
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821done
10822
10823fi
10824fi
10825WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10826if test -n "$WINDRES_FOR_TARGET"; then
10827 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10828echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10829else
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
10832fi
10833
10834 done
10835fi
10836
10837if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10838 for ncn_progname in windres; do
c6b750e1
DJ
10839 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10840echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10841 if test -x $with_build_time_tools/${ncn_progname}; then
10842 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10843 echo "$as_me:$LINENO: result: yes" >&5
10844echo "${ECHO_T}yes" >&6
2429c060
PB
10845 break
10846 else
c6b750e1
DJ
10847 echo "$as_me:$LINENO: result: no" >&5
10848echo "${ECHO_T}no" >&6
2429c060
PB
10849 fi
10850 done
10851fi
10852
10853if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10854 for ncn_progname in windres; do
10855 if test -n "$ncn_target_tool_prefix"; then
10856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10857set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10858echo "$as_me:$LINENO: checking for $ac_word" >&5
10859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10860if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10862else
55db4b87
PB
10863 if test -n "$WINDRES_FOR_TARGET"; then
10864 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10865else
c6b750e1
DJ
10866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867for as_dir in $PATH
10868do
10869 IFS=$as_save_IFS
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 break 2
10876 fi
10877done
10878done
10879
859789af
AC
10880fi
10881fi
c6b750e1 10882WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10883if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10884 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10885echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10886else
c6b750e1
DJ
10887 echo "$as_me:$LINENO: result: no" >&5
10888echo "${ECHO_T}no" >&6
859789af
AC
10889fi
10890
2429c060
PB
10891 fi
10892 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10894set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10895echo "$as_me:$LINENO: checking for $ac_word" >&5
10896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10897if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10899else
05cbd757
PB
10900 if test -n "$WINDRES_FOR_TARGET"; then
10901 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10902else
c6b750e1
DJ
10903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904for as_dir in $PATH
10905do
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 break 2
10913 fi
10914done
10915done
10916
859789af
AC
10917fi
10918fi
c6b750e1 10919WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10920if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10921 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10922echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10923else
c6b750e1
DJ
10924 echo "$as_me:$LINENO: result: no" >&5
10925echo "${ECHO_T}no" >&6
859789af 10926fi
c6b750e1 10927
2429c060
PB
10928 fi
10929 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10930 done
10931fi
c6b750e1 10932
05cbd757
PB
10933if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10934 set dummy windres
10935 if test $build = $target ; then
10936 WINDRES_FOR_TARGET="$2"
859789af 10937 else
05cbd757 10938 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10939 fi
d3f5afc4
MS
10940else
10941 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10942fi
10943
3a35eeb3
PB
10944else
10945 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10946fi
10947
852e5f18 10948
0c24b341
NC
10949
10950
10951if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10952 if test -n "$with_build_time_tools"; then
10953 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10954echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10955 if test -x $with_build_time_tools/windmc; then
10956 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10957 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10958 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10959echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10960 else
10961 echo "$as_me:$LINENO: result: no" >&5
10962echo "${ECHO_T}no" >&6
10963 fi
10964 elif test $build != $host && test $have_gcc_for_target = yes; then
10965 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10966 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10967 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10968 fi
10969fi
10970if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10971 # Extract the first word of "windmc", so it can be a program name with args.
10972set dummy windmc; ac_word=$2
10973echo "$as_me:$LINENO: checking for $ac_word" >&5
10974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10975if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 case $WINDMC_FOR_TARGET in
10979 [\\/]* | ?:[\\/]*)
10980 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10981 ;;
10982 *)
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984for as_dir in $gcc_cv_tool_dirs
10985do
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10993 fi
10994done
10995done
10996
10997 ;;
10998esac
10999fi
11000WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11001
11002if test -n "$WINDMC_FOR_TARGET"; then
11003 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11004echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11005else
11006 echo "$as_me:$LINENO: result: no" >&5
11007echo "${ECHO_T}no" >&6
11008fi
11009
11010fi
11011if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11012
11013
11014if test -n "$WINDMC_FOR_TARGET"; then
11015 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11016elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11017 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11018fi
11019
11020if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11021 for ncn_progname in windmc; do
11022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11023set dummy ${ncn_progname}; ac_word=$2
11024echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 if test -n "$WINDMC_FOR_TARGET"; then
11030 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044done
11045
11046fi
11047fi
11048WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11049if test -n "$WINDMC_FOR_TARGET"; then
11050 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11051echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11052else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056
11057 done
11058fi
11059
11060if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11061 for ncn_progname in windmc; do
11062 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11063echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11064 if test -x $with_build_time_tools/${ncn_progname}; then
11065 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11066 echo "$as_me:$LINENO: result: yes" >&5
11067echo "${ECHO_T}yes" >&6
11068 break
11069 else
11070 echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6
11072 fi
11073 done
11074fi
11075
11076if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11077 for ncn_progname in windmc; do
11078 if test -n "$ncn_target_tool_prefix"; then
11079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11080set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11081echo "$as_me:$LINENO: checking for $ac_word" >&5
11082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11083if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086 if test -n "$WINDMC_FOR_TARGET"; then
11087 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11088else
11089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11096 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11099 fi
11100done
11101done
11102
11103fi
11104fi
11105WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11106if test -n "$WINDMC_FOR_TARGET"; then
11107 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11108echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11109else
11110 echo "$as_me:$LINENO: result: no" >&5
11111echo "${ECHO_T}no" >&6
11112fi
11113
11114 fi
11115 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11117set dummy ${ncn_progname}; ac_word=$2
11118echo "$as_me:$LINENO: checking for $ac_word" >&5
11119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11120if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122else
11123 if test -n "$WINDMC_FOR_TARGET"; then
11124 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11125else
11126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127for as_dir in $PATH
11128do
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11135 break 2
11136 fi
11137done
11138done
11139
11140fi
11141fi
11142WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11143if test -n "$WINDMC_FOR_TARGET"; then
11144 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11145echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11146else
11147 echo "$as_me:$LINENO: result: no" >&5
11148echo "${ECHO_T}no" >&6
11149fi
11150
11151 fi
11152 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11153 done
11154fi
11155
11156if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11157 set dummy windmc
11158 if test $build = $target ; then
11159 WINDMC_FOR_TARGET="$2"
11160 else
11161 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11162 fi
11163else
11164 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11165fi
11166
11167else
11168 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11169fi
11170
11171
be01d343
PB
11172RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11173
c6b750e1
DJ
11174echo "$as_me:$LINENO: checking where to find the target ar" >&5
11175echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11176if test "x${build}" != "x${host}" ; then
2429c060
PB
11177 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11178 # We already found the complete path
b8025f34
AS
11179 ac_dir=`dirname $AR_FOR_TARGET`
11180 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11181echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11182 else
11183 # Canadian cross, just use what we found
c6b750e1
DJ
11184 echo "$as_me:$LINENO: result: pre-installed" >&5
11185echo "${ECHO_T}pre-installed" >&6
2429c060 11186 fi
be01d343
PB
11187else
11188 ok=yes
11189 case " ${configdirs} " in
11190 *" binutils "*) ;;
11191 *) ok=no ;;
11192 esac
c6b750e1 11193
be01d343
PB
11194 if test $ok = yes; then
11195 # An in-tree tool is available and we can use it
11196 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11197 echo "$as_me:$LINENO: result: just compiled" >&5
11198echo "${ECHO_T}just compiled" >&6
2429c060
PB
11199 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11200 # We already found the complete path
b8025f34
AS
11201 ac_dir=`dirname $AR_FOR_TARGET`
11202 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11203echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11204 elif test "x$target" = "x$host"; then
11205 # We can use an host tool
11206 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11207 echo "$as_me:$LINENO: result: host tool" >&5
11208echo "${ECHO_T}host tool" >&6
be01d343
PB
11209 else
11210 # We need a cross tool
c6b750e1
DJ
11211 echo "$as_me:$LINENO: result: pre-installed" >&5
11212echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11213 fi
11214fi
4b900473 11215
c6b750e1
DJ
11216echo "$as_me:$LINENO: checking where to find the target as" >&5
11217echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11218if test "x${build}" != "x${host}" ; then
2429c060
PB
11219 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11220 # We already found the complete path
b8025f34
AS
11221 ac_dir=`dirname $AS_FOR_TARGET`
11222 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11223echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11224 else
11225 # Canadian cross, just use what we found
c6b750e1
DJ
11226 echo "$as_me:$LINENO: result: pre-installed" >&5
11227echo "${ECHO_T}pre-installed" >&6
2429c060 11228 fi
be01d343
PB
11229else
11230 ok=yes
11231 case " ${configdirs} " in
11232 *" gas "*) ;;
11233 *) ok=no ;;
11234 esac
c6b750e1 11235
be01d343
PB
11236 if test $ok = yes; then
11237 # An in-tree tool is available and we can use it
11238 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11239 echo "$as_me:$LINENO: result: just compiled" >&5
11240echo "${ECHO_T}just compiled" >&6
2429c060
PB
11241 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11242 # We already found the complete path
b8025f34
AS
11243 ac_dir=`dirname $AS_FOR_TARGET`
11244 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11245echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11246 elif test "x$target" = "x$host"; then
11247 # We can use an host tool
11248 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11249 echo "$as_me:$LINENO: result: host tool" >&5
11250echo "${ECHO_T}host tool" >&6
be01d343
PB
11251 else
11252 # We need a cross tool
c6b750e1
DJ
11253 echo "$as_me:$LINENO: result: pre-installed" >&5
11254echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11255 fi
11256fi
4b900473 11257
c6b750e1
DJ
11258echo "$as_me:$LINENO: checking where to find the target cc" >&5
11259echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11260if test "x${build}" != "x${host}" ; then
2429c060
PB
11261 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11262 # We already found the complete path
b8025f34
AS
11263 ac_dir=`dirname $CC_FOR_TARGET`
11264 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11265echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11266 else
11267 # Canadian cross, just use what we found
c6b750e1
DJ
11268 echo "$as_me:$LINENO: result: pre-installed" >&5
11269echo "${ECHO_T}pre-installed" >&6
2429c060 11270 fi
be01d343
PB
11271else
11272 ok=yes
11273 case " ${configdirs} " in
11274 *" gcc "*) ;;
11275 *) ok=no ;;
11276 esac
c6b750e1 11277
be01d343
PB
11278 if test $ok = yes; then
11279 # An in-tree tool is available and we can use it
11280 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11281 echo "$as_me:$LINENO: result: just compiled" >&5
11282echo "${ECHO_T}just compiled" >&6
2429c060
PB
11283 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11284 # We already found the complete path
b8025f34
AS
11285 ac_dir=`dirname $CC_FOR_TARGET`
11286 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11287echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11288 elif test "x$target" = "x$host"; then
11289 # We can use an host tool
11290 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11291 echo "$as_me:$LINENO: result: host tool" >&5
11292echo "${ECHO_T}host tool" >&6
be01d343
PB
11293 else
11294 # We need a cross tool
c6b750e1
DJ
11295 echo "$as_me:$LINENO: result: pre-installed" >&5
11296echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11297 fi
11298fi
4b900473 11299
c6b750e1
DJ
11300echo "$as_me:$LINENO: checking where to find the target c++" >&5
11301echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11302if test "x${build}" != "x${host}" ; then
2429c060
PB
11303 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11304 # We already found the complete path
b8025f34
AS
11305 ac_dir=`dirname $CXX_FOR_TARGET`
11306 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11307echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11308 else
11309 # Canadian cross, just use what we found
c6b750e1
DJ
11310 echo "$as_me:$LINENO: result: pre-installed" >&5
11311echo "${ECHO_T}pre-installed" >&6
2429c060 11312 fi
be01d343
PB
11313else
11314 ok=yes
11315 case " ${configdirs} " in
11316 *" gcc "*) ;;
11317 *) ok=no ;;
11318 esac
11319 case ,${enable_languages}, in
11320 *,c++,*) ;;
11321 *) ok=no ;;
11322 esac
11323 if test $ok = yes; then
11324 # An in-tree tool is available and we can use it
11325 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
11326 echo "$as_me:$LINENO: result: just compiled" >&5
11327echo "${ECHO_T}just compiled" >&6
2429c060
PB
11328 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11329 # We already found the complete path
b8025f34
AS
11330 ac_dir=`dirname $CXX_FOR_TARGET`
11331 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11332echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11333 elif test "x$target" = "x$host"; then
11334 # We can use an host tool
11335 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11336 echo "$as_me:$LINENO: result: host tool" >&5
11337echo "${ECHO_T}host tool" >&6
be01d343
PB
11338 else
11339 # We need a cross tool
c6b750e1
DJ
11340 echo "$as_me:$LINENO: result: pre-installed" >&5
11341echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11342 fi
11343fi
4b900473 11344
c6b750e1
DJ
11345echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11346echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11347if test "x${build}" != "x${host}" ; then
2429c060
PB
11348 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11349 # We already found the complete path
b8025f34
AS
11350 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11351 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11352echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11353 else
11354 # Canadian cross, just use what we found
c6b750e1
DJ
11355 echo "$as_me:$LINENO: result: pre-installed" >&5
11356echo "${ECHO_T}pre-installed" >&6
2429c060 11357 fi
be01d343
PB
11358else
11359 ok=yes
11360 case " ${configdirs} " in
11361 *" gcc "*) ;;
11362 *) ok=no ;;
11363 esac
11364 case ,${enable_languages}, in
11365 *,c++,*) ;;
11366 *) ok=no ;;
11367 esac
11368 if test $ok = yes; then
11369 # An in-tree tool is available and we can use it
11370 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
11371 echo "$as_me:$LINENO: result: just compiled" >&5
11372echo "${ECHO_T}just compiled" >&6
2429c060
PB
11373 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11374 # We already found the complete path
b8025f34
AS
11375 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11376 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11377echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11378 elif test "x$target" = "x$host"; then
11379 # We can use an host tool
11380 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11381 echo "$as_me:$LINENO: result: host tool" >&5
11382echo "${ECHO_T}host tool" >&6
be01d343
PB
11383 else
11384 # We need a cross tool
c6b750e1
DJ
11385 echo "$as_me:$LINENO: result: pre-installed" >&5
11386echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11387 fi
11388fi
4b900473 11389
c6b750e1
DJ
11390echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11391echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11392if test "x${build}" != "x${host}" ; then
2429c060
PB
11393 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11394 # We already found the complete path
b8025f34
AS
11395 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11396 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11397echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11398 else
11399 # Canadian cross, just use what we found
c6b750e1
DJ
11400 echo "$as_me:$LINENO: result: pre-installed" >&5
11401echo "${ECHO_T}pre-installed" >&6
2429c060 11402 fi
be01d343
PB
11403else
11404 ok=yes
11405 case " ${configdirs} " in
11406 *" binutils "*) ;;
11407 *) ok=no ;;
11408 esac
c6b750e1 11409
be01d343
PB
11410 if test $ok = yes; then
11411 # An in-tree tool is available and we can use it
11412 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11413 echo "$as_me:$LINENO: result: just compiled" >&5
11414echo "${ECHO_T}just compiled" >&6
2429c060
PB
11415 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11416 # We already found the complete path
b8025f34
AS
11417 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11418 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11419echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11420 elif test "x$target" = "x$host"; then
11421 # We can use an host tool
11422 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11423 echo "$as_me:$LINENO: result: host tool" >&5
11424echo "${ECHO_T}host tool" >&6
be01d343
PB
11425 else
11426 # We need a cross tool
c6b750e1
DJ
11427 echo "$as_me:$LINENO: result: pre-installed" >&5
11428echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11429 fi
11430fi
4b900473 11431
c6b750e1
DJ
11432echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11433echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11434if test "x${build}" != "x${host}" ; then
2429c060
PB
11435 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11436 # We already found the complete path
b8025f34
AS
11437 ac_dir=`dirname $GCC_FOR_TARGET`
11438 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11439echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11440 else
11441 # Canadian cross, just use what we found
c6b750e1
DJ
11442 echo "$as_me:$LINENO: result: pre-installed" >&5
11443echo "${ECHO_T}pre-installed" >&6
2429c060 11444 fi
be01d343
PB
11445else
11446 ok=yes
11447 case " ${configdirs} " in
11448 *" gcc "*) ;;
11449 *) ok=no ;;
11450 esac
c6b750e1 11451
be01d343
PB
11452 if test $ok = yes; then
11453 # An in-tree tool is available and we can use it
11454 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11455 echo "$as_me:$LINENO: result: just compiled" >&5
11456echo "${ECHO_T}just compiled" >&6
2429c060
PB
11457 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11458 # We already found the complete path
b8025f34
AS
11459 ac_dir=`dirname $GCC_FOR_TARGET`
11460 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11461echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11462 elif test "x$target" = "x$host"; then
11463 # We can use an host tool
11464 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11465 echo "$as_me:$LINENO: result: host tool" >&5
11466echo "${ECHO_T}host tool" >&6
be01d343
PB
11467 else
11468 # We need a cross tool
c6b750e1
DJ
11469 echo "$as_me:$LINENO: result: pre-installed" >&5
11470echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11471 fi
11472fi
4b900473 11473
c6b750e1
DJ
11474echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11475echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11476if test "x${build}" != "x${host}" ; then
2429c060
PB
11477 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11478 # We already found the complete path
b8025f34
AS
11479 ac_dir=`dirname $GCJ_FOR_TARGET`
11480 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11481echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11482 else
11483 # Canadian cross, just use what we found
c6b750e1
DJ
11484 echo "$as_me:$LINENO: result: pre-installed" >&5
11485echo "${ECHO_T}pre-installed" >&6
2429c060 11486 fi
be01d343
PB
11487else
11488 ok=yes
11489 case " ${configdirs} " in
11490 *" gcc "*) ;;
11491 *) ok=no ;;
11492 esac
11493 case ,${enable_languages}, in
11494 *,java,*) ;;
11495 *) ok=no ;;
11496 esac
11497 if test $ok = yes; then
11498 # An in-tree tool is available and we can use it
11499 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11500 echo "$as_me:$LINENO: result: just compiled" >&5
11501echo "${ECHO_T}just compiled" >&6
2429c060
PB
11502 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11503 # We already found the complete path
b8025f34
AS
11504 ac_dir=`dirname $GCJ_FOR_TARGET`
11505 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11506echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11507 elif test "x$target" = "x$host"; then
11508 # We can use an host tool
11509 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11510 echo "$as_me:$LINENO: result: host tool" >&5
11511echo "${ECHO_T}host tool" >&6
be01d343
PB
11512 else
11513 # We need a cross tool
c6b750e1
DJ
11514 echo "$as_me:$LINENO: result: pre-installed" >&5
11515echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11516 fi
11517fi
4b900473 11518
c6b750e1
DJ
11519echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11520echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11521if test "x${build}" != "x${host}" ; then
2429c060
PB
11522 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11523 # We already found the complete path
b8025f34
AS
11524 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11525 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11526echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11527 else
11528 # Canadian cross, just use what we found
c6b750e1
DJ
11529 echo "$as_me:$LINENO: result: pre-installed" >&5
11530echo "${ECHO_T}pre-installed" >&6
2429c060 11531 fi
be01d343
PB
11532else
11533 ok=yes
11534 case " ${configdirs} " in
11535 *" gcc "*) ;;
11536 *) ok=no ;;
11537 esac
11538 case ,${enable_languages}, in
11539 *,fortran,*) ;;
11540 *) ok=no ;;
11541 esac
11542 if test $ok = yes; then
11543 # An in-tree tool is available and we can use it
11544 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11545 echo "$as_me:$LINENO: result: just compiled" >&5
11546echo "${ECHO_T}just compiled" >&6
2429c060
PB
11547 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11548 # We already found the complete path
b8025f34
AS
11549 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11550 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11551echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11552 elif test "x$target" = "x$host"; then
11553 # We can use an host tool
11554 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11555 echo "$as_me:$LINENO: result: host tool" >&5
11556echo "${ECHO_T}host tool" >&6
be01d343
PB
11557 else
11558 # We need a cross tool
c6b750e1
DJ
11559 echo "$as_me:$LINENO: result: pre-installed" >&5
11560echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11561 fi
11562fi
4b900473 11563
c6b750e1
DJ
11564echo "$as_me:$LINENO: checking where to find the target ld" >&5
11565echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11566if test "x${build}" != "x${host}" ; then
2429c060
PB
11567 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11568 # We already found the complete path
b8025f34
AS
11569 ac_dir=`dirname $LD_FOR_TARGET`
11570 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11571echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11572 else
11573 # Canadian cross, just use what we found
c6b750e1
DJ
11574 echo "$as_me:$LINENO: result: pre-installed" >&5
11575echo "${ECHO_T}pre-installed" >&6
2429c060 11576 fi
be01d343
PB
11577else
11578 ok=yes
11579 case " ${configdirs} " in
11580 *" ld "*) ;;
11581 *) ok=no ;;
11582 esac
c6b750e1 11583
be01d343
PB
11584 if test $ok = yes; then
11585 # An in-tree tool is available and we can use it
11586 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11587 echo "$as_me:$LINENO: result: just compiled" >&5
11588echo "${ECHO_T}just compiled" >&6
2429c060
PB
11589 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11590 # We already found the complete path
b8025f34
AS
11591 ac_dir=`dirname $LD_FOR_TARGET`
11592 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11593echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11594 elif test "x$target" = "x$host"; then
11595 # We can use an host tool
11596 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11597 echo "$as_me:$LINENO: result: host tool" >&5
11598echo "${ECHO_T}host tool" >&6
be01d343
PB
11599 else
11600 # We need a cross tool
c6b750e1
DJ
11601 echo "$as_me:$LINENO: result: pre-installed" >&5
11602echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11603 fi
11604fi
4b900473 11605
c6b750e1
DJ
11606echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11607echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11608if test "x${build}" != "x${host}" ; then
2429c060
PB
11609 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11610 # We already found the complete path
b8025f34
AS
11611 ac_dir=`dirname $LIPO_FOR_TARGET`
11612 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11613echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11614 else
11615 # Canadian cross, just use what we found
c6b750e1
DJ
11616 echo "$as_me:$LINENO: result: pre-installed" >&5
11617echo "${ECHO_T}pre-installed" >&6
2429c060 11618 fi
be01d343 11619else
2429c060
PB
11620 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11621 # We already found the complete path
b8025f34
AS
11622 ac_dir=`dirname $LIPO_FOR_TARGET`
11623 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11624echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11625 elif test "x$target" = "x$host"; then
be01d343
PB
11626 # We can use an host tool
11627 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11628 echo "$as_me:$LINENO: result: host tool" >&5
11629echo "${ECHO_T}host tool" >&6
be01d343
PB
11630 else
11631 # We need a cross tool
c6b750e1
DJ
11632 echo "$as_me:$LINENO: result: pre-installed" >&5
11633echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11634 fi
11635fi
4b900473 11636
c6b750e1
DJ
11637echo "$as_me:$LINENO: checking where to find the target nm" >&5
11638echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11639if test "x${build}" != "x${host}" ; then
2429c060
PB
11640 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11641 # We already found the complete path
b8025f34
AS
11642 ac_dir=`dirname $NM_FOR_TARGET`
11643 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11644echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11645 else
11646 # Canadian cross, just use what we found
c6b750e1
DJ
11647 echo "$as_me:$LINENO: result: pre-installed" >&5
11648echo "${ECHO_T}pre-installed" >&6
2429c060 11649 fi
be01d343
PB
11650else
11651 ok=yes
11652 case " ${configdirs} " in
11653 *" binutils "*) ;;
11654 *) ok=no ;;
11655 esac
c6b750e1 11656
be01d343
PB
11657 if test $ok = yes; then
11658 # An in-tree tool is available and we can use it
11659 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11660 echo "$as_me:$LINENO: result: just compiled" >&5
11661echo "${ECHO_T}just compiled" >&6
2429c060
PB
11662 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11663 # We already found the complete path
b8025f34
AS
11664 ac_dir=`dirname $NM_FOR_TARGET`
11665 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11666echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11667 elif test "x$target" = "x$host"; then
11668 # We can use an host tool
11669 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11670 echo "$as_me:$LINENO: result: host tool" >&5
11671echo "${ECHO_T}host tool" >&6
be01d343
PB
11672 else
11673 # We need a cross tool
c6b750e1
DJ
11674 echo "$as_me:$LINENO: result: pre-installed" >&5
11675echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11676 fi
11677fi
4b900473 11678
c6b750e1
DJ
11679echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11680echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11681if test "x${build}" != "x${host}" ; then
2429c060
PB
11682 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11683 # We already found the complete path
b8025f34
AS
11684 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11685 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11686echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11687 else
11688 # Canadian cross, just use what we found
c6b750e1
DJ
11689 echo "$as_me:$LINENO: result: pre-installed" >&5
11690echo "${ECHO_T}pre-installed" >&6
2429c060 11691 fi
be01d343
PB
11692else
11693 ok=yes
11694 case " ${configdirs} " in
11695 *" binutils "*) ;;
11696 *) ok=no ;;
11697 esac
c6b750e1 11698
be01d343
PB
11699 if test $ok = yes; then
11700 # An in-tree tool is available and we can use it
11701 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11702 echo "$as_me:$LINENO: result: just compiled" >&5
11703echo "${ECHO_T}just compiled" >&6
2429c060
PB
11704 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11705 # We already found the complete path
b8025f34
AS
11706 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11707 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11708echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11709 elif test "x$target" = "x$host"; then
11710 # We can use an host tool
11711 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11712 echo "$as_me:$LINENO: result: host tool" >&5
11713echo "${ECHO_T}host tool" >&6
be01d343
PB
11714 else
11715 # We need a cross tool
c6b750e1
DJ
11716 echo "$as_me:$LINENO: result: pre-installed" >&5
11717echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11718 fi
11719fi
4b900473 11720
c6b750e1
DJ
11721echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11722echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11723if test "x${build}" != "x${host}" ; then
2429c060
PB
11724 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11725 # We already found the complete path
b8025f34
AS
11726 ac_dir=`dirname $RANLIB_FOR_TARGET`
11727 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11728echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11729 else
11730 # Canadian cross, just use what we found
c6b750e1
DJ
11731 echo "$as_me:$LINENO: result: pre-installed" >&5
11732echo "${ECHO_T}pre-installed" >&6
2429c060 11733 fi
be01d343
PB
11734else
11735 ok=yes
11736 case " ${configdirs} " in
11737 *" binutils "*) ;;
11738 *) ok=no ;;
11739 esac
c6b750e1 11740
be01d343
PB
11741 if test $ok = yes; then
11742 # An in-tree tool is available and we can use it
11743 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11744 echo "$as_me:$LINENO: result: just compiled" >&5
11745echo "${ECHO_T}just compiled" >&6
2429c060
PB
11746 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11747 # We already found the complete path
b8025f34
AS
11748 ac_dir=`dirname $RANLIB_FOR_TARGET`
11749 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11750echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11751 elif test "x$target" = "x$host"; then
11752 # We can use an host tool
11753 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11754 echo "$as_me:$LINENO: result: host tool" >&5
11755echo "${ECHO_T}host tool" >&6
be01d343
PB
11756 else
11757 # We need a cross tool
c6b750e1
DJ
11758 echo "$as_me:$LINENO: result: pre-installed" >&5
11759echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11760 fi
11761fi
4b900473 11762
c6b750e1
DJ
11763echo "$as_me:$LINENO: checking where to find the target strip" >&5
11764echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11765if test "x${build}" != "x${host}" ; then
2429c060
PB
11766 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11767 # We already found the complete path
b8025f34
AS
11768 ac_dir=`dirname $STRIP_FOR_TARGET`
11769 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11770echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11771 else
11772 # Canadian cross, just use what we found
c6b750e1
DJ
11773 echo "$as_me:$LINENO: result: pre-installed" >&5
11774echo "${ECHO_T}pre-installed" >&6
2429c060 11775 fi
be01d343
PB
11776else
11777 ok=yes
11778 case " ${configdirs} " in
11779 *" binutils "*) ;;
11780 *) ok=no ;;
11781 esac
c6b750e1 11782
be01d343
PB
11783 if test $ok = yes; then
11784 # An in-tree tool is available and we can use it
11785 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11786 echo "$as_me:$LINENO: result: just compiled" >&5
11787echo "${ECHO_T}just compiled" >&6
2429c060
PB
11788 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11789 # We already found the complete path
b8025f34
AS
11790 ac_dir=`dirname $STRIP_FOR_TARGET`
11791 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11792echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11793 elif test "x$target" = "x$host"; then
11794 # We can use an host tool
11795 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11796 echo "$as_me:$LINENO: result: host tool" >&5
11797echo "${ECHO_T}host tool" >&6
be01d343
PB
11798 else
11799 # We need a cross tool
c6b750e1
DJ
11800 echo "$as_me:$LINENO: result: pre-installed" >&5
11801echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11802 fi
11803fi
4b900473 11804
c6b750e1
DJ
11805echo "$as_me:$LINENO: checking where to find the target windres" >&5
11806echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11807if test "x${build}" != "x${host}" ; then
2429c060
PB
11808 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11809 # We already found the complete path
b8025f34
AS
11810 ac_dir=`dirname $WINDRES_FOR_TARGET`
11811 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11812echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11813 else
11814 # Canadian cross, just use what we found
c6b750e1
DJ
11815 echo "$as_me:$LINENO: result: pre-installed" >&5
11816echo "${ECHO_T}pre-installed" >&6
2429c060 11817 fi
be01d343
PB
11818else
11819 ok=yes
11820 case " ${configdirs} " in
11821 *" binutils "*) ;;
11822 *) ok=no ;;
11823 esac
c6b750e1 11824
be01d343
PB
11825 if test $ok = yes; then
11826 # An in-tree tool is available and we can use it
11827 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11828 echo "$as_me:$LINENO: result: just compiled" >&5
11829echo "${ECHO_T}just compiled" >&6
2429c060
PB
11830 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11831 # We already found the complete path
b8025f34
AS
11832 ac_dir=`dirname $WINDRES_FOR_TARGET`
11833 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11834echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11835 elif test "x$target" = "x$host"; then
11836 # We can use an host tool
11837 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11838 echo "$as_me:$LINENO: result: host tool" >&5
11839echo "${ECHO_T}host tool" >&6
be01d343
PB
11840 else
11841 # We need a cross tool
c6b750e1
DJ
11842 echo "$as_me:$LINENO: result: pre-installed" >&5
11843echo "${ECHO_T}pre-installed" >&6
be01d343 11844 fi
a0da8069 11845fi
54752a6b 11846
0c24b341
NC
11847echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11848echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11849if test "x${build}" != "x${host}" ; then
11850 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11851 # We already found the complete path
11852 ac_dir=`dirname $WINDMC_FOR_TARGET`
11853 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11854echo "${ECHO_T}pre-installed in $ac_dir" >&6
11855 else
11856 # Canadian cross, just use what we found
11857 echo "$as_me:$LINENO: result: pre-installed" >&5
11858echo "${ECHO_T}pre-installed" >&6
11859 fi
11860else
11861 ok=yes
11862 case " ${configdirs} " in
11863 *" binutils "*) ;;
11864 *) ok=no ;;
11865 esac
11866
11867 if test $ok = yes; then
11868 # An in-tree tool is available and we can use it
11869 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11870 echo "$as_me:$LINENO: result: just compiled" >&5
11871echo "${ECHO_T}just compiled" >&6
11872 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11873 # We already found the complete path
11874 ac_dir=`dirname $WINDMC_FOR_TARGET`
11875 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11876echo "${ECHO_T}pre-installed in $ac_dir" >&6
11877 elif test "x$target" = "x$host"; then
11878 # We can use an host tool
11879 WINDMC_FOR_TARGET='$(WINDMC)'
11880 echo "$as_me:$LINENO: result: host tool" >&5
11881echo "${ECHO_T}host tool" >&6
11882 else
11883 # We need a cross tool
11884 echo "$as_me:$LINENO: result: pre-installed" >&5
11885echo "${ECHO_T}pre-installed" >&6
11886 fi
11887fi
11888
54752a6b
NN
11889
11890
be01d343 11891
4b900473 11892
a0da8069
NN
11893# Certain tools may need extra flags.
11894AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11895RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11896NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11897
be01d343
PB
11898# When building target libraries, except in a Canadian cross, we use
11899# the same toolchain as the compiler we just built.
11900COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11901COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11902COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11903if test $host = $build; then
11904 case " $configdirs " in
11905 *" gcc "*)
11906 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11907 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11908 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11909 ;;
11910 esac
11911fi
11912
11913
11914
11915
11916
c6b750e1
DJ
11917echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11918echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11919# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11920if test "${enable_maintainer_mode+set}" = set; then
11921 enableval="$enable_maintainer_mode"
11922 USE_MAINTAINER_MODE=$enableval
11923else
11924 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11925fi;
11926echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11927echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11928
11929
11930if test "$USE_MAINTAINER_MODE" = yes; then
11931 MAINTAINER_MODE_TRUE=
11932 MAINTAINER_MODE_FALSE='#'
11933else
11934 MAINTAINER_MODE_TRUE='#'
11935 MAINTAINER_MODE_FALSE=
c6b750e1 11936fi
3d5e36ae
AO
11937MAINT=$MAINTAINER_MODE_TRUE
11938
1d39f329
NN
11939# ---------------------
11940# GCC bootstrap support
11941# ---------------------
11942
11943# Stage specific cflags for build.
11944stage1_cflags="-g"
11945case $build in
11946 vax-*-*)
11947 case ${GCC} in
11948 yes) stage1_cflags="-g -Wa,-J" ;;
11949 *) stage1_cflags="-g -J" ;;
11950 esac ;;
1d39f329
NN
11951esac
11952
1d89b610
PB
11953# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11954if test "$GCC" = yes; then
11955 saved_CFLAGS="$CFLAGS"
11956
11957 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11958 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11959 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11960echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11962/* confdefs.h. */
11963_ACEOF
11964cat confdefs.h >>conftest.$ac_ext
11965cat >>conftest.$ac_ext <<_ACEOF
11966/* end confdefs.h. */
11967
2038f525
PB
11968#if (__GNUC__ < 3) \
11969 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11970 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11971#error http://gcc.gnu.org/PR29382
11972#endif
11973
c6b750e1
DJ
11974int
11975main ()
11976{
11977
11978 ;
11979 return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext
11983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 echo "$as_me:$LINENO: result: yes" >&5
12005echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12006else
12007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
12010echo "$as_me:$LINENO: result: no" >&5
12011echo "${ECHO_T}no" >&6
12012fi
12013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12014
12015 CFLAGS="$saved_CFLAGS"
12016fi
12017
12018
1d39f329 12019
8a0d8a5c
PB
12020# Enable --enable-checking in stage1 of the compiler.
12021# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12022if test "${enable_stage1_checking+set}" = set; then
12023 enableval="$enable_stage1_checking"
12024 stage1_checking=--enable-checking=${enable_stage1_checking}
12025else
12026 if test "x$enable_checking" = xno; then
2abc4e65 12027 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12028else
2abc4e65 12029 stage1_checking=--enable-checking=types${enable_checking+,}$enable_checking
8a0d8a5c 12030fi
c6b750e1 12031fi;
8a0d8a5c
PB
12032
12033
1d39f329 12034# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12035# Check whether --enable-werror or --disable-werror was given.
12036if test "${enable_werror+set}" = set; then
12037 enableval="$enable_werror"
c6b750e1 12038
1d39f329 12039else
a0323144 12040 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12041 enable_werror=yes
79fcd0ec
PB
12042else
12043 enable_werror=no
12044fi
c6b750e1 12045fi;
1a6f2dc7
NN
12046case ${enable_werror} in
12047 yes) stage2_werror_flag="--enable-werror-always" ;;
12048 *) stage2_werror_flag="" ;;
1d39f329
NN
12049esac
12050
12051
108a6f8e 12052# Flags needed to enable html installing and building
c6b750e1 12053
108a6f8e
CD
12054# Check whether --with-datarootdir or --without-datarootdir was given.
12055if test "${with_datarootdir+set}" = set; then
12056 withval="$with_datarootdir"
12057 datarootdir="\${prefix}/${withval}"
12058else
12059 datarootdir="\${prefix}/share"
c6b750e1 12060fi;
108a6f8e
CD
12061
12062
12063# Check whether --with-docdir or --without-docdir was given.
12064if test "${with_docdir+set}" = set; then
12065 withval="$with_docdir"
12066 docdir="\${prefix}/${withval}"
12067else
12068 docdir="\${datarootdir}/doc"
c6b750e1 12069fi;
108a6f8e
CD
12070
12071
a3ca38d2
DD
12072# Check whether --with-pdfdir or --without-pdfdir was given.
12073if test "${with_pdfdir+set}" = set; then
12074 withval="$with_pdfdir"
12075 pdfdir="\${prefix}/${withval}"
12076else
12077 pdfdir="\${docdir}"
12078fi;
12079
12080
108a6f8e
CD
12081# Check whether --with-htmldir or --without-htmldir was given.
12082if test "${with_htmldir+set}" = set; then
12083 withval="$with_htmldir"
12084 htmldir="\${prefix}/${withval}"
12085else
12086 htmldir="\${docdir}"
c6b750e1 12087fi;
108a6f8e
CD
12088
12089
12090
12091
12092
b8025f34 12093
c6b750e1
DJ
12094 ac_config_files="$ac_config_files Makefile"
12095cat >confcache <<\_ACEOF
a0da8069
NN
12096# This file is a shell script that caches the results of configure
12097# tests run on this system so they can be shared between configure
c6b750e1
DJ
12098# scripts and configure runs, see configure's option --config-cache.
12099# It is not useful on other systems. If it contains results you don't
12100# want to keep, you may remove or edit it.
a0da8069 12101#
c6b750e1
DJ
12102# config.status only pays attention to the cache file if you give it
12103# the --recheck option to rerun configure.
a0da8069 12104#
c6b750e1
DJ
12105# `ac_cv_env_foo' variables (set or unset) will be overridden when
12106# loading this file, other *unset* `ac_cv_foo' will be assigned the
12107# following values.
12108
12109_ACEOF
12110
a0da8069
NN
12111# The following way of writing the cache mishandles newlines in values,
12112# but we know of no workaround that is simple, portable, and efficient.
12113# So, don't put newlines in cache variables' values.
12114# Ultrix sh set writes to stderr and can't be redirected directly,
12115# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12116{
12117 (set) 2>&1 |
12118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12119 *ac_space=\ *)
12120 # `set' does not quote correctly, so add quotes (double-quote
12121 # substitution turns \\\\ into \\, and sed turns \\ into \).
12122 sed -n \
12123 "s/'/'\\\\''/g;
12124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12125 ;;
12126 *)
12127 # `set' quotes correctly as required by POSIX, so do not add quotes.
12128 sed -n \
12129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12130 ;;
12131 esac;
12132} |
12133 sed '
12134 t clear
12135 : clear
12136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12137 t end
12138 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12139 : end' >>confcache
12140if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12141 if test -w $cache_file; then
c6b750e1
DJ
12142 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12143 cat confcache >$cache_file
a0da8069
NN
12144 else
12145 echo "not updating unwritable cache $cache_file"
12146 fi
852e5f18 12147fi
a0da8069 12148rm -f confcache
852e5f18 12149
a0da8069
NN
12150test "x$prefix" = xNONE && prefix=$ac_default_prefix
12151# Let make expand exec_prefix.
12152test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12153
c6b750e1
DJ
12154# VPATH may cause trouble with some makes, so we remove $(srcdir),
12155# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12156# trailing colons and then remove the whole line if VPATH becomes empty
12157# (actually we leave an empty line to preserve line numbers).
a0da8069 12158if test "x$srcdir" = x.; then
c6b750e1
DJ
12159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12160s/:*\$(srcdir):*/:/;
12161s/:*\${srcdir}:*/:/;
12162s/:*@srcdir@:*/:/;
12163s/^\([^=]*=[ ]*\):*/\1/;
12164s/:*$//;
12165s/^[^=]*=[ ]*$//;
12166}'
a0da8069 12167fi
252b5132 12168
a0da8069
NN
12169# Transform confdefs.h into DEFS.
12170# Protect against shell expansion while executing Makefile rules.
12171# Protect against Makefile macro expansion.
c6b750e1
DJ
12172#
12173# If the first sed substitution is executed (which looks for macros that
12174# take arguments), then we branch to the quote section. Otherwise,
12175# look for a macro that doesn't take arguments.
12176cat >confdef2opt.sed <<\_ACEOF
12177t clear
12178: clear
12179s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12180t quote
12181s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12182t quote
12183d
12184: quote
12185s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12186s,\[,\\&,g
12187s,\],\\&,g
12188s,\$,$$,g
12189p
12190_ACEOF
12191# We use echo to avoid assuming a particular line-breaking character.
12192# The extra dot is to prevent the shell from consuming trailing
12193# line-breaks from the sub-command output. A line-break within
12194# single-quotes doesn't work because, if this script is created in a
12195# platform that uses two characters for line-breaks (e.g., DOS), tr
12196# would break.
12197ac_LF_and_DOT=`echo; echo .`
12198DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12199rm -f confdef2opt.sed
12200
12201
12202ac_libobjs=
12203ac_ltlibobjs=
12204for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12205 # 1. Remove the extension, and $U if already installed.
12206 ac_i=`echo "$ac_i" |
12207 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12208 # 2. Add them.
12209 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12210 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12211done
12212LIBOBJS=$ac_libobjs
852e5f18 12213
c6b750e1 12214LTLIBOBJS=$ac_ltlibobjs
376a0e54 12215
cac3d6c4 12216
c6b750e1
DJ
12217
12218: ${CONFIG_STATUS=./config.status}
12219ac_clean_files_save=$ac_clean_files
12220ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12221{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12222echo "$as_me: creating $CONFIG_STATUS" >&6;}
12223cat >$CONFIG_STATUS <<_ACEOF
12224#! $SHELL
12225# Generated by $as_me.
a0da8069 12226# Run this file to recreate the current configuration.
a0da8069 12227# Compiler output produced by configure, useful for debugging
c6b750e1 12228# configure, is in config.log if it exists.
376a0e54 12229
c6b750e1
DJ
12230debug=false
12231ac_cs_recheck=false
12232ac_cs_silent=false
12233SHELL=\${CONFIG_SHELL-$SHELL}
12234_ACEOF
12235
12236cat >>$CONFIG_STATUS <<\_ACEOF
12237## --------------------- ##
12238## M4sh Initialization. ##
12239## --------------------- ##
12240
12241# Be Bourne compatible
12242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12243 emulate sh
12244 NULLCMD=:
12245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12246 # is contrary to our usage. Disable this feature.
12247 alias -g '${1+"$@"}'='"$@"'
12248elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12249 set -o posix
12250fi
12251DUALCASE=1; export DUALCASE # for MKS sh
12252
12253# Support unset when possible.
12254if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12255 as_unset=unset
12256else
12257 as_unset=false
12258fi
12259
12260
12261# Work around bugs in pre-3.0 UWIN ksh.
12262$as_unset ENV MAIL MAILPATH
12263PS1='$ '
12264PS2='> '
12265PS4='+ '
12266
12267# NLS nuisances.
12268for as_var in \
12269 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12270 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12271 LC_TELEPHONE LC_TIME
12272do
12273 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12274 eval $as_var=C; export $as_var
12275 else
12276 $as_unset $as_var
12277 fi
12278done
12279
12280# Required to use basename.
12281if expr a : '\(a\)' >/dev/null 2>&1; then
12282 as_expr=expr
12283else
12284 as_expr=false
12285fi
12286
12287if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12288 as_basename=basename
12289else
12290 as_basename=false
12291fi
12292
12293
12294# Name of the executable.
12295as_me=`$as_basename "$0" ||
12296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12297 X"$0" : 'X\(//\)$' \| \
12298 X"$0" : 'X\(/\)$' \| \
12299 . : '\(.\)' 2>/dev/null ||
12300echo X/"$0" |
12301 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12302 /^X\/\(\/\/\)$/{ s//\1/; q; }
12303 /^X\/\(\/\).*/{ s//\1/; q; }
12304 s/.*/./; q'`
12305
12306
12307# PATH needs CR, and LINENO needs CR and PATH.
12308# Avoid depending upon Character Ranges.
12309as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12310as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12311as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12312as_cr_digits='0123456789'
12313as_cr_alnum=$as_cr_Letters$as_cr_digits
12314
12315# The user is always right.
12316if test "${PATH_SEPARATOR+set}" != set; then
12317 echo "#! /bin/sh" >conf$$.sh
12318 echo "exit 0" >>conf$$.sh
12319 chmod +x conf$$.sh
12320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12321 PATH_SEPARATOR=';'
12322 else
12323 PATH_SEPARATOR=:
12324 fi
12325 rm -f conf$$.sh
12326fi
12327
12328
12329 as_lineno_1=$LINENO
12330 as_lineno_2=$LINENO
12331 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12332 test "x$as_lineno_1" != "x$as_lineno_2" &&
12333 test "x$as_lineno_3" = "x$as_lineno_2" || {
12334 # Find who we are. Look in the path if we contain no path at all
12335 # relative or not.
12336 case $0 in
12337 *[\\/]* ) as_myself=$0 ;;
12338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339for as_dir in $PATH
12340do
12341 IFS=$as_save_IFS
12342 test -z "$as_dir" && as_dir=.
12343 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12344done
12345
12346 ;;
12347 esac
12348 # We did not find ourselves, most probably we were run as `sh COMMAND'
12349 # in which case we are not to be found in the path.
12350 if test "x$as_myself" = x; then
12351 as_myself=$0
12352 fi
12353 if test ! -f "$as_myself"; then
12354 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12355echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12356 { (exit 1); exit 1; }; }
12357 fi
12358 case $CONFIG_SHELL in
12359 '')
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12362do
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for as_base in sh bash ksh sh5; do
12366 case $as_dir in
12367 /*)
12368 if ("$as_dir/$as_base" -c '
12369 as_lineno_1=$LINENO
12370 as_lineno_2=$LINENO
12371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12372 test "x$as_lineno_1" != "x$as_lineno_2" &&
12373 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12374 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12375 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12376 CONFIG_SHELL=$as_dir/$as_base
12377 export CONFIG_SHELL
12378 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12379 fi;;
12380 esac
12381 done
12382done
12383;;
12384 esac
12385
12386 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12387 # uniformly replaced by the line number. The first 'sed' inserts a
12388 # line-number line before each line; the second 'sed' does the real
12389 # work. The second script uses 'N' to pair each line-number line
12390 # with the numbered line, and appends trailing '-' during
12391 # substitution so that $LINENO is not a special case at line end.
12392 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12393 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12394 sed '=' <$as_myself |
12395 sed '
12396 N
12397 s,$,-,
12398 : loop
12399 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12400 t loop
12401 s,-$,,
12402 s,^['$as_cr_digits']*\n,,
12403 ' >$as_me.lineno &&
12404 chmod +x $as_me.lineno ||
12405 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12406echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12407 { (exit 1); exit 1; }; }
12408
12409 # Don't try to exec as it changes $[0], causing all sort of problems
12410 # (the dirname of $[0] is not the place where we might find the
12411 # original and so on. Autoconf is especially sensible to this).
12412 . ./$as_me.lineno
12413 # Exit status is that of the last command.
12414 exit
12415}
12416
12417
12418case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12419 *c*,-n*) ECHO_N= ECHO_C='
12420' ECHO_T=' ' ;;
12421 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12422 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12423esac
12424
12425if expr a : '\(a\)' >/dev/null 2>&1; then
12426 as_expr=expr
12427else
12428 as_expr=false
12429fi
12430
12431rm -f conf$$ conf$$.exe conf$$.file
12432echo >conf$$.file
12433if ln -s conf$$.file conf$$ 2>/dev/null; then
12434 # We could just check for DJGPP; but this test a) works b) is more generic
12435 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12436 if test -f conf$$.exe; then
12437 # Don't use ln at all; we don't have any links
12438 as_ln_s='cp -p'
12439 else
12440 as_ln_s='ln -s'
12441 fi
12442elif ln conf$$.file conf$$ 2>/dev/null; then
12443 as_ln_s=ln
12444else
12445 as_ln_s='cp -p'
12446fi
12447rm -f conf$$ conf$$.exe conf$$.file
12448
12449if mkdir -p . 2>/dev/null; then
12450 as_mkdir_p=:
12451else
12452 test -d ./-p && rmdir ./-p
12453 as_mkdir_p=false
12454fi
12455
12456as_executable_p="test -f"
12457
12458# Sed expression to map a string onto a valid CPP name.
12459as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12460
12461# Sed expression to map a string onto a valid variable name.
12462as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12463
12464
12465# IFS
12466# We need space, tab and new line, in precisely that order.
12467as_nl='
12468'
12469IFS=" $as_nl"
12470
12471# CDPATH.
12472$as_unset CDPATH
12473
12474exec 6>&1
12475
12476# Open the log real soon, to keep \$[0] and so on meaningful, and to
12477# report actual input values of CONFIG_FILES etc. instead of their
12478# values after options handling. Logging --version etc. is OK.
12479exec 5>>config.log
12480{
12481 echo
12482 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12483## Running $as_me. ##
12484_ASBOX
12485} >&5
12486cat >&5 <<_CSEOF
12487
12488This file was extended by $as_me, which was
12489generated by GNU Autoconf 2.59. Invocation command line was
12490
12491 CONFIG_FILES = $CONFIG_FILES
12492 CONFIG_HEADERS = $CONFIG_HEADERS
12493 CONFIG_LINKS = $CONFIG_LINKS
12494 CONFIG_COMMANDS = $CONFIG_COMMANDS
12495 $ $0 $@
12496
12497_CSEOF
12498echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12499echo >&5
12500_ACEOF
12501
12502# Files that config.status was made for.
12503if test -n "$ac_config_files"; then
12504 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12505fi
12506
12507if test -n "$ac_config_headers"; then
12508 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12509fi
12510
12511if test -n "$ac_config_links"; then
12512 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12513fi
12514
12515if test -n "$ac_config_commands"; then
12516 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12517fi
12518
12519cat >>$CONFIG_STATUS <<\_ACEOF
12520
12521ac_cs_usage="\
12522\`$as_me' instantiates files from templates according to the
12523current configuration.
12524
12525Usage: $0 [OPTIONS] [FILE]...
12526
12527 -h, --help print this help, then exit
12528 -V, --version print version number, then exit
12529 -q, --quiet do not print progress messages
12530 -d, --debug don't remove temporary files
12531 --recheck update $as_me by reconfiguring in the same conditions
12532 --file=FILE[:TEMPLATE]
12533 instantiate the configuration file FILE
12534
12535Configuration files:
12536$config_files
12537
12538Report bugs to <bug-autoconf@gnu.org>."
12539_ACEOF
12540
12541cat >>$CONFIG_STATUS <<_ACEOF
12542ac_cs_version="\\
12543config.status
12544configured by $0, generated by GNU Autoconf 2.59,
12545 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12546
12547Copyright (C) 2003 Free Software Foundation, Inc.
12548This config.status script is free software; the Free Software Foundation
12549gives unlimited permission to copy, distribute and modify it."
12550srcdir=$srcdir
12551INSTALL="$INSTALL"
12552_ACEOF
12553
12554cat >>$CONFIG_STATUS <<\_ACEOF
12555# If no file are specified by the user, then we need to provide default
12556# value. By we need to know if files were specified by the user.
12557ac_need_defaults=:
12558while test $# != 0
a0da8069 12559do
c6b750e1
DJ
12560 case $1 in
12561 --*=*)
12562 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12563 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12564 ac_shift=:
12565 ;;
12566 -*)
12567 ac_option=$1
12568 ac_optarg=$2
12569 ac_shift=shift
12570 ;;
12571 *) # This is not an option, so the user has probably given explicit
12572 # arguments.
12573 ac_option=$1
12574 ac_need_defaults=false;;
12575 esac
12576
12577 case $ac_option in
12578 # Handling of the options.
12579_ACEOF
12580cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12582 ac_cs_recheck=: ;;
12583 --version | --vers* | -V )
12584 echo "$ac_cs_version"; exit 0 ;;
12585 --he | --h)
12586 # Conflict between --help and --header
12587 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12588Try \`$0 --help' for more information." >&5
12589echo "$as_me: error: ambiguous option: $1
12590Try \`$0 --help' for more information." >&2;}
12591 { (exit 1); exit 1; }; };;
12592 --help | --hel | -h )
12593 echo "$ac_cs_usage"; exit 0 ;;
12594 --debug | --d* | -d )
12595 debug=: ;;
12596 --file | --fil | --fi | --f )
12597 $ac_shift
12598 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12599 ac_need_defaults=false;;
12600 --header | --heade | --head | --hea )
12601 $ac_shift
12602 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12603 ac_need_defaults=false;;
12604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12606 ac_cs_silent=: ;;
12607
12608 # This is an error.
12609 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12610Try \`$0 --help' for more information." >&5
12611echo "$as_me: error: unrecognized option: $1
12612Try \`$0 --help' for more information." >&2;}
12613 { (exit 1); exit 1; }; } ;;
12614
12615 *) ac_config_targets="$ac_config_targets $1" ;;
12616
376a0e54 12617 esac
c6b750e1 12618 shift
376a0e54
CM
12619done
12620
c6b750e1 12621ac_configure_extra_args=
376a0e54 12622
c6b750e1
DJ
12623if $ac_cs_silent; then
12624 exec 6>/dev/null
12625 ac_configure_extra_args="$ac_configure_extra_args --silent"
12626fi
376a0e54 12627
c6b750e1
DJ
12628_ACEOF
12629cat >>$CONFIG_STATUS <<_ACEOF
12630if \$ac_cs_recheck; then
12631 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12632 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12633fi
12634
12635_ACEOF
12636
12637
12638
12639
12640
12641cat >>$CONFIG_STATUS <<\_ACEOF
12642for ac_config_target in $ac_config_targets
12643do
12644 case "$ac_config_target" in
12645 # Handling of arguments.
12646 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12647 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12648echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12649 { (exit 1); exit 1; }; };;
12650 esac
12651done
12652
12653# If the user did not use the arguments to specify the items to instantiate,
12654# then the envvar interface is used. Set only those that are not.
12655# We use the long form for the default assignment because of an extremely
12656# bizarre bug on SunOS 4.1.3.
12657if $ac_need_defaults; then
12658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12659fi
12660
12661# Have a temporary directory for convenience. Make it in the build tree
12662# simply because there is no reason to put it here, and in addition,
12663# creating and moving files from /tmp can sometimes cause problems.
12664# Create a temporary directory, and hook for its removal unless debugging.
12665$debug ||
12666{
12667 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12668 trap '{ (exit 1); exit 1; }' 1 2 13 15
12669}
12670
12671# Create a (secure) tmp directory for tmp files.
12672
12673{
12674 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12675 test -n "$tmp" && test -d "$tmp"
12676} ||
12677{
12678 tmp=./confstat$$-$RANDOM
12679 (umask 077 && mkdir $tmp)
12680} ||
12681{
12682 echo "$me: cannot create a temporary directory in ." >&2
12683 { (exit 1); exit 1; }
12684}
12685
12686_ACEOF
12687
12688cat >>$CONFIG_STATUS <<_ACEOF
12689
12690#
12691# CONFIG_FILES section.
12692#
12693
12694# No need to generate the scripts if there are no CONFIG_FILES.
12695# This happens for instance when ./config.status config.h
12696if test -n "\$CONFIG_FILES"; then
12697 # Protect against being on the right side of a sed subst in config.status.
12698 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12699 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12700s,@SHELL@,$SHELL,;t t
12701s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12702s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12703s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12704s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12705s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12706s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12707s,@exec_prefix@,$exec_prefix,;t t
12708s,@prefix@,$prefix,;t t
12709s,@program_transform_name@,$program_transform_name,;t t
12710s,@bindir@,$bindir,;t t
12711s,@sbindir@,$sbindir,;t t
12712s,@libexecdir@,$libexecdir,;t t
12713s,@datadir@,$datadir,;t t
12714s,@sysconfdir@,$sysconfdir,;t t
12715s,@sharedstatedir@,$sharedstatedir,;t t
12716s,@localstatedir@,$localstatedir,;t t
12717s,@libdir@,$libdir,;t t
12718s,@includedir@,$includedir,;t t
12719s,@oldincludedir@,$oldincludedir,;t t
12720s,@infodir@,$infodir,;t t
12721s,@mandir@,$mandir,;t t
12722s,@build_alias@,$build_alias,;t t
12723s,@host_alias@,$host_alias,;t t
12724s,@target_alias@,$target_alias,;t t
12725s,@DEFS@,$DEFS,;t t
12726s,@ECHO_C@,$ECHO_C,;t t
12727s,@ECHO_N@,$ECHO_N,;t t
12728s,@ECHO_T@,$ECHO_T,;t t
12729s,@LIBS@,$LIBS,;t t
12730s,@build@,$build,;t t
12731s,@build_cpu@,$build_cpu,;t t
12732s,@build_vendor@,$build_vendor,;t t
12733s,@build_os@,$build_os,;t t
12734s,@build_noncanonical@,$build_noncanonical,;t t
12735s,@host_noncanonical@,$host_noncanonical,;t t
12736s,@target_noncanonical@,$target_noncanonical,;t t
12737s,@host@,$host,;t t
12738s,@host_cpu@,$host_cpu,;t t
12739s,@host_vendor@,$host_vendor,;t t
12740s,@host_os@,$host_os,;t t
12741s,@target@,$target,;t t
12742s,@target_cpu@,$target_cpu,;t t
12743s,@target_vendor@,$target_vendor,;t t
12744s,@target_os@,$target_os,;t t
12745s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12746s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12747s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12748s,@LN@,$LN,;t t
12749s,@LN_S@,$LN_S,;t t
12750s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12751s,@build_libsubdir@,$build_libsubdir,;t t
12752s,@build_subdir@,$build_subdir,;t t
12753s,@host_subdir@,$host_subdir,;t t
12754s,@target_subdir@,$target_subdir,;t t
12755s,@CC@,$CC,;t t
12756s,@CFLAGS@,$CFLAGS,;t t
12757s,@LDFLAGS@,$LDFLAGS,;t t
12758s,@CPPFLAGS@,$CPPFLAGS,;t t
12759s,@ac_ct_CC@,$ac_ct_CC,;t t
12760s,@EXEEXT@,$EXEEXT,;t t
12761s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12762s,@CXX@,$CXX,;t t
12763s,@CXXFLAGS@,$CXXFLAGS,;t t
12764s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12765s,@GNATBIND@,$GNATBIND,;t t
12766s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12767s,@GNATMAKE@,$GNATMAKE,;t t
12768s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12769s,@do_compare@,$do_compare,;t t
12770s,@gmplibs@,$gmplibs,;t t
12771s,@gmpinc@,$gmpinc,;t t
12772s,@stage1_languages@,$stage1_languages,;t t
12773s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12774s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12775s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12776s,@tooldir@,$tooldir,;t t
12777s,@build_tooldir@,$build_tooldir,;t t
12778s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12779s,@GDB_TK@,$GDB_TK,;t t
12780s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12781s,@build_configargs@,$build_configargs,;t t
12782s,@build_configdirs@,$build_configdirs,;t t
12783s,@host_configargs@,$host_configargs,;t t
12784s,@configdirs@,$configdirs,;t t
12785s,@target_configargs@,$target_configargs,;t t
12786s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12787s,@config_shell@,$config_shell,;t t
12788s,@YACC@,$YACC,;t t
12789s,@BISON@,$BISON,;t t
12790s,@M4@,$M4,;t t
12791s,@LEX@,$LEX,;t t
12792s,@FLEX@,$FLEX,;t t
12793s,@MAKEINFO@,$MAKEINFO,;t t
12794s,@EXPECT@,$EXPECT,;t t
12795s,@RUNTEST@,$RUNTEST,;t t
12796s,@AR@,$AR,;t t
12797s,@AS@,$AS,;t t
12798s,@DLLTOOL@,$DLLTOOL,;t t
12799s,@LD@,$LD,;t t
12800s,@LIPO@,$LIPO,;t t
12801s,@NM@,$NM,;t t
12802s,@RANLIB@,$RANLIB,;t t
12803s,@STRIP@,$STRIP,;t t
12804s,@WINDRES@,$WINDRES,;t t
0c24b341 12805s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12806s,@OBJCOPY@,$OBJCOPY,;t t
12807s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12808s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12809s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12810s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12811s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12812s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12813s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12814s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12815s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12816s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12817s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12818s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12819s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12820s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12821s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12822s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12823s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12824s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12825s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12826s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12827s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12828s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12829s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12830s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12831s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12832s,@MAINT@,$MAINT,;t t
12833s,@stage1_cflags@,$stage1_cflags,;t t
12834s,@stage1_checking@,$stage1_checking,;t t
12835s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12836s,@datarootdir@,$datarootdir,;t t
12837s,@docdir@,$docdir,;t t
a3ca38d2 12838s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12839s,@htmldir@,$htmldir,;t t
12840s,@LIBOBJS@,$LIBOBJS,;t t
12841s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12842/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12843s,@serialization_dependencies@,,;t t
a0da8069 12844/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12845s,@host_makefile_frag@,,;t t
a0da8069 12846/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12847s,@target_makefile_frag@,,;t t
a0da8069 12848/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12849s,@alphaieee_frag@,,;t t
a0da8069 12850/@ospace_frag@/r $ospace_frag
c6b750e1 12851s,@ospace_frag@,,;t t
a0da8069 12852CEOF
252b5132 12853
c6b750e1
DJ
12854_ACEOF
12855
12856 cat >>$CONFIG_STATUS <<\_ACEOF
12857 # Split the substitutions into bite-sized pieces for seds with
12858 # small command number limits, like on Digital OSF/1 and HP-UX.
12859 ac_max_sed_lines=48
12860 ac_sed_frag=1 # Number of current file.
12861 ac_beg=1 # First line for current file.
12862 ac_end=$ac_max_sed_lines # Line after last line for current file.
12863 ac_more_lines=:
12864 ac_sed_cmds=
12865 while $ac_more_lines; do
12866 if test $ac_beg -gt 1; then
12867 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12868 else
12869 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12870 fi
12871 if test ! -s $tmp/subs.frag; then
12872 ac_more_lines=false
a0da8069 12873 else
c6b750e1
DJ
12874 # The purpose of the label and of the branching condition is to
12875 # speed up the sed processing (if there are no `@' at all, there
12876 # is no need to browse any of the substitutions).
12877 # These are the two extra sed commands mentioned above.
12878 (echo ':t
12879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12880 if test -z "$ac_sed_cmds"; then
12881 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12882 else
12883 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12884 fi
12885 ac_sed_frag=`expr $ac_sed_frag + 1`
12886 ac_beg=$ac_end
12887 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12888 fi
c6b750e1
DJ
12889 done
12890 if test -z "$ac_sed_cmds"; then
12891 ac_sed_cmds=cat
852e5f18 12892 fi
c6b750e1 12893fi # test -n "$CONFIG_FILES"
cac3d6c4 12894
c6b750e1
DJ
12895_ACEOF
12896cat >>$CONFIG_STATUS <<\_ACEOF
12897for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12899 case $ac_file in
12900 - | *:- | *:-:* ) # input from stdin
12901 cat >$tmp/stdin
12902 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12904 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12906 * ) ac_file_in=$ac_file.in ;;
a0da8069 12907 esac
252b5132 12908
c6b750e1
DJ
12909 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12910 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12911$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12912 X"$ac_file" : 'X\(//\)[^/]' \| \
12913 X"$ac_file" : 'X\(//\)$' \| \
12914 X"$ac_file" : 'X\(/\)' \| \
12915 . : '\(.\)' 2>/dev/null ||
12916echo X"$ac_file" |
12917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12919 /^X\(\/\/\)$/{ s//\1/; q; }
12920 /^X\(\/\).*/{ s//\1/; q; }
12921 s/.*/./; q'`
12922 { if $as_mkdir_p; then
12923 mkdir -p "$ac_dir"
cac3d6c4 12924 else
c6b750e1
DJ
12925 as_dir="$ac_dir"
12926 as_dirs=
12927 while test ! -d "$as_dir"; do
12928 as_dirs="$as_dir $as_dirs"
12929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12930$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12931 X"$as_dir" : 'X\(//\)[^/]' \| \
12932 X"$as_dir" : 'X\(//\)$' \| \
12933 X"$as_dir" : 'X\(/\)' \| \
12934 . : '\(.\)' 2>/dev/null ||
12935echo X"$as_dir" |
12936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12938 /^X\(\/\/\)$/{ s//\1/; q; }
12939 /^X\(\/\).*/{ s//\1/; q; }
12940 s/.*/./; q'`
12941 done
12942 test ! -n "$as_dirs" || mkdir $as_dirs
12943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12944echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12945 { (exit 1); exit 1; }; }; }
12946
12947 ac_builddir=.
252b5132 12948
c6b750e1
DJ
12949if test "$ac_dir" != .; then
12950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12951 # A "../" for each directory in $ac_dir_suffix.
12952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12953else
12954 ac_dir_suffix= ac_top_builddir=
12955fi
12956
12957case $srcdir in
12958 .) # No --srcdir option. We are building in place.
12959 ac_srcdir=.
12960 if test -z "$ac_top_builddir"; then
12961 ac_top_srcdir=.
12962 else
12963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12964 fi ;;
12965 [\\/]* | ?:[\\/]* ) # Absolute path.
12966 ac_srcdir=$srcdir$ac_dir_suffix;
12967 ac_top_srcdir=$srcdir ;;
a0da8069 12968 *) # Relative path.
c6b750e1
DJ
12969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12971esac
252b5132 12972
c6b750e1
DJ
12973# Do not use `cd foo && pwd` to compute absolute paths, because
12974# the directories may not exist.
12975case `pwd` in
12976.) ac_abs_builddir="$ac_dir";;
12977*)
12978 case "$ac_dir" in
12979 .) ac_abs_builddir=`pwd`;;
12980 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12981 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12982 esac;;
12983esac
12984case $ac_abs_builddir in
12985.) ac_abs_top_builddir=${ac_top_builddir}.;;
12986*)
12987 case ${ac_top_builddir}. in
12988 .) ac_abs_top_builddir=$ac_abs_builddir;;
12989 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12990 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12991 esac;;
12992esac
12993case $ac_abs_builddir in
12994.) ac_abs_srcdir=$ac_srcdir;;
12995*)
12996 case $ac_srcdir in
12997 .) ac_abs_srcdir=$ac_abs_builddir;;
12998 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12999 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13000 esac;;
13001esac
13002case $ac_abs_builddir in
13003.) ac_abs_top_srcdir=$ac_top_srcdir;;
13004*)
13005 case $ac_top_srcdir in
13006 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13007 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13008 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13009 esac;;
13010esac
252b5132 13011
c6b750e1
DJ
13012
13013 case $INSTALL in
13014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13015 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13016 esac
252b5132 13017
c6b750e1
DJ
13018 if test x"$ac_file" != x-; then
13019 { echo "$as_me:$LINENO: creating $ac_file" >&5
13020echo "$as_me: creating $ac_file" >&6;}
13021 rm -f "$ac_file"
13022 fi
13023 # Let's still pretend it is `configure' which instantiates (i.e., don't
13024 # use $as_me), people would be surprised to read:
13025 # /* config.h. Generated by config.status. */
13026 if test x"$ac_file" = x-; then
13027 configure_input=
13028 else
13029 configure_input="$ac_file. "
13030 fi
13031 configure_input=$configure_input"Generated from `echo $ac_file_in |
13032 sed 's,.*/,,'` by configure."
13033
13034 # First look for the input files in the build tree, otherwise in the
13035 # src tree.
13036 ac_file_inputs=`IFS=:
13037 for f in $ac_file_in; do
13038 case $f in
13039 -) echo $tmp/stdin ;;
13040 [\\/$]*)
13041 # Absolute (can't be DOS-style, as IFS=:)
13042 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13043echo "$as_me: error: cannot find input file: $f" >&2;}
13044 { (exit 1); exit 1; }; }
13045 echo "$f";;
13046 *) # Relative
13047 if test -f "$f"; then
13048 # Build tree
13049 echo "$f"
13050 elif test -f "$srcdir/$f"; then
13051 # Source tree
13052 echo "$srcdir/$f"
13053 else
13054 # /dev/null tree
13055 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13056echo "$as_me: error: cannot find input file: $f" >&2;}
13057 { (exit 1); exit 1; }; }
13058 fi;;
13059 esac
13060 done` || { (exit 1); exit 1; }
13061_ACEOF
13062cat >>$CONFIG_STATUS <<_ACEOF
13063 sed "$ac_vpsub
13064$extrasub
13065_ACEOF
13066cat >>$CONFIG_STATUS <<\_ACEOF
13067:t
13068/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13069s,@configure_input@,$configure_input,;t t
13070s,@srcdir@,$ac_srcdir,;t t
13071s,@abs_srcdir@,$ac_abs_srcdir,;t t
13072s,@top_srcdir@,$ac_top_srcdir,;t t
13073s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13074s,@builddir@,$ac_builddir,;t t
13075s,@abs_builddir@,$ac_abs_builddir,;t t
13076s,@top_builddir@,$ac_top_builddir,;t t
13077s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13078s,@INSTALL@,$ac_INSTALL,;t t
13079" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13080 rm -f $tmp/stdin
13081 if test x"$ac_file" != x-; then
13082 mv $tmp/out $ac_file
13083 else
13084 cat $tmp/out
13085 rm -f $tmp/out
13086 fi
c148b4cb 13087
c6b750e1
DJ
13088done
13089_ACEOF
c148b4cb 13090
c6b750e1 13091cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13092
c6b750e1
DJ
13093{ (exit 0); exit 0; }
13094_ACEOF
c148b4cb 13095chmod +x $CONFIG_STATUS
c6b750e1
DJ
13096ac_clean_files=$ac_clean_files_save
13097
13098
13099# configure is writing to config.log, and then calls config.status.
13100# config.status does its own redirection, appending to config.log.
13101# Unfortunately, on DOS this fails, as config.log is still kept open
13102# by configure, so config.status won't be able to write to it; its
13103# output is simply discarded. So we exec the FD to /dev/null,
13104# effectively closing config.log, so it can be properly (re)opened and
13105# appended to by config.status. When coming back to configure, we
13106# need to make the FD available again.
13107if test "$no_create" != yes; then
13108 ac_cs_success=:
13109 ac_config_status_args=
13110 test "$silent" = yes &&
13111 ac_config_status_args="$ac_config_status_args --quiet"
13112 exec 5>/dev/null
13113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13114 exec 5>>config.log
13115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13116 # would make configure fail if this is the last instruction.
13117 $ac_cs_success || { (exit 1); exit 1; }
13118fi
c148b4cb 13119
This page took 1.063985 seconds and 4 git commands to generate.