* gdb.base/step-line.c: Switch license to GPL version 3, and
[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"
0c24b341 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 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
521ec477 968 --with-build-time-tools=PATH
c6b750e1 969 use given path to find target tools during the build
521ec477
DD
970 --with-datarootdir use datarootdir as the data root directory.
971 --with-docdir install documentation in this directory.
972 --with-pdfdir install pdf in this directory.
973 --with-htmldir install html in this directory.
c6b750e1
DJ
974
975Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
18f6b6ee
PB
982 CXX C++ compiler command
983 CXXFLAGS C++ compiler flags
9a819804
AO
984 AR AR for the host
985 AS AS for the host
986 DLLTOOL DLLTOOL for the host
987 LD LD for the host
988 LIPO LIPO for the host
989 NM NM for the host
990 RANLIB RANLIB for the host
991 STRIP STRIP for the host
992 WINDRES WINDRES for the host
0c24b341 993 WINDMC WINDMC for the host
9a819804
AO
994 OBJCOPY OBJCOPY for the host
995 OBJDUMP OBJDUMP for the host
996 CC_FOR_TARGET
997 CC for the target
998 CXX_FOR_TARGET
999 CXX for the target
1000 GCC_FOR_TARGET
1001 GCC for the target
1002 GCJ_FOR_TARGET
1003 GCJ for the target
1004 GFORTRAN_FOR_TARGET
1005 GFORTRAN for the target
1006 AR_FOR_TARGET
1007 AR for the target
1008 AS_FOR_TARGET
1009 AS for the target
1010 DLLTOOL_FOR_TARGET
1011 DLLTOOL for the target
1012 LD_FOR_TARGET
1013 LD for the target
1014 LIPO_FOR_TARGET
1015 LIPO for the target
1016 NM_FOR_TARGET
1017 NM for the target
1018 OBJDUMP_FOR_TARGET
1019 OBJDUMP for the target
1020 RANLIB_FOR_TARGET
1021 RANLIB for the target
1022 STRIP_FOR_TARGET
1023 STRIP for the target
1024 WINDRES_FOR_TARGET
1025 WINDRES for the target
0c24b341
NC
1026 WINDMC_FOR_TARGET
1027 WINDMC for the target
c6b750e1
DJ
1028
1029Use these variables to override the choices made by `configure' or to help
1030it to find libraries and programs with nonstandard names/locations.
1031
1032_ACEOF
1033fi
1034
1035if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
1037 ac_popdir=`pwd`
1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1039 test -d $ac_dir || continue
1040 ac_builddir=.
1041
1042if test "$ac_dir" != .; then
1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046else
1047 ac_dir_suffix= ac_top_builddir=
1048fi
1049
1050case $srcdir in
1051 .) # No --srcdir option. We are building in place.
1052 ac_srcdir=.
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1059 ac_srcdir=$srcdir$ac_dir_suffix;
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064esac
1065
1066# Do not use `cd foo && pwd` to compute absolute paths, because
1067# the directories may not exist.
1068case `pwd` in
1069.) ac_abs_builddir="$ac_dir";;
1070*)
1071 case "$ac_dir" in
1072 .) ac_abs_builddir=`pwd`;;
1073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1075 esac;;
1076esac
1077case $ac_abs_builddir in
1078.) ac_abs_top_builddir=${ac_top_builddir}.;;
1079*)
1080 case ${ac_top_builddir}. in
1081 .) ac_abs_top_builddir=$ac_abs_builddir;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1084 esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_srcdir=$ac_srcdir;;
1088*)
1089 case $ac_srcdir in
1090 .) ac_abs_srcdir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_srcdir=$ac_top_srcdir;;
1097*)
1098 case $ac_top_srcdir in
1099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1102 esac;;
1103esac
1104
1105 cd $ac_dir
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1108 echo
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1111 echo
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1115 echo
1116 $ac_configure --help
1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1119 fi
1120 cd $ac_popdir
1121 done
1122fi
1123
1124test -n "$ac_init_help" && exit 0
1125if $ac_init_version; then
1126 cat <<\_ACEOF
1127
1128Copyright (C) 2003 Free Software Foundation, Inc.
1129This configure script is free software; the Free Software Foundation
1130gives unlimited permission to copy, distribute and modify it.
1131_ACEOF
1132 exit 0
1133fi
1134exec 5>config.log
1135cat >&5 <<_ACEOF
1136This file contains any messages produced by compilers while
1137running configure, to aid debugging if configure makes a mistake.
1138
1139It was created by $as_me, which was
1140generated by GNU Autoconf 2.59. Invocation command line was
1141
1142 $ $0 $@
1143
1144_ACEOF
1145{
1146cat <<_ASUNAME
1147## --------- ##
1148## Platform. ##
1149## --------- ##
1150
1151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1152uname -m = `(uname -m) 2>/dev/null || echo unknown`
1153uname -r = `(uname -r) 2>/dev/null || echo unknown`
1154uname -s = `(uname -s) 2>/dev/null || echo unknown`
1155uname -v = `(uname -v) 2>/dev/null || echo unknown`
1156
1157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1159
1160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1163hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1167
1168_ASUNAME
1169
1170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171for as_dir in $PATH
1172do
1173 IFS=$as_save_IFS
1174 test -z "$as_dir" && as_dir=.
1175 echo "PATH: $as_dir"
1176done
1177
1178} >&5
1179
1180cat >&5 <<_ACEOF
1181
1182
1183## ----------- ##
1184## Core tests. ##
1185## ----------- ##
1186
1187_ACEOF
1188
1189
1190# Keep a trace of the command line.
1191# Strip out --no-create and --no-recursion so they do not pile up.
1192# Strip out --silent because we don't want to record it for future runs.
1193# Also quote any args containing shell meta-characters.
1194# Make two passes to allow for proper duplicate-argument suppression.
1195ac_configure_args=
1196ac_configure_args0=
1197ac_configure_args1=
1198ac_sep=
1199ac_must_keep_next=false
1200for ac_pass in 1 2
1201do
1202 for ac_arg
1203 do
1204 case $ac_arg in
1205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 continue ;;
1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211 esac
1212 case $ac_pass in
1213 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1214 2)
1215 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1216 if test $ac_must_keep_next = true; then
1217 ac_must_keep_next=false # Got value, back to normal.
1218 else
1219 case $ac_arg in
1220 *=* | --config-cache | -C | -disable-* | --disable-* \
1221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1223 | -with-* | --with-* | -without-* | --without-* | --x)
1224 case "$ac_configure_args0 " in
1225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1226 esac
1227 ;;
1228 -* ) ac_must_keep_next=true ;;
1229 esac
1230 fi
1231 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1232 # Get rid of the leading space.
1233 ac_sep=" "
1234 ;;
1235 esac
1236 done
1237done
1238$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1239$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1240
1241# When interrupted or exit'd, cleanup temporary files, and complete
1242# config.log. We remove comments because anyway the quotes in there
1243# would cause problems or look ugly.
1244# WARNING: Be sure not to use single quotes in there, as some shells,
1245# such as our DU 5.0 friend, will then `close' the trap.
1246trap 'exit_status=$?
1247 # Save into config.log some information that might help in debugging.
1248 {
1249 echo
1250
1251 cat <<\_ASBOX
1252## ---------------- ##
1253## Cache variables. ##
1254## ---------------- ##
1255_ASBOX
1256 echo
1257 # The following way of writing the cache mishandles newlines in values,
1258{
1259 (set) 2>&1 |
1260 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261 *ac_space=\ *)
1262 sed -n \
1263 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265 ;;
1266 *)
1267 sed -n \
1268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1269 ;;
1270 esac;
1271}
1272 echo
1273
1274 cat <<\_ASBOX
1275## ----------------- ##
1276## Output variables. ##
1277## ----------------- ##
1278_ASBOX
1279 echo
1280 for ac_var in $ac_subst_vars
1281 do
1282 eval ac_val=$`echo $ac_var`
1283 echo "$ac_var='"'"'$ac_val'"'"'"
1284 done | sort
1285 echo
1286
1287 if test -n "$ac_subst_files"; then
1288 cat <<\_ASBOX
1289## ------------- ##
1290## Output files. ##
1291## ------------- ##
1292_ASBOX
1293 echo
1294 for ac_var in $ac_subst_files
1295 do
1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
1298 done | sort
1299 echo
1300 fi
1301
1302 if test -s confdefs.h; then
1303 cat <<\_ASBOX
1304## ----------- ##
1305## confdefs.h. ##
1306## ----------- ##
1307_ASBOX
1308 echo
1309 sed "/^$/d" confdefs.h | sort
1310 echo
1311 fi
1312 test "$ac_signal" != 0 &&
1313 echo "$as_me: caught signal $ac_signal"
1314 echo "$as_me: exit $exit_status"
1315 } >&5
1316 rm -f core *.core &&
1317 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1318 exit $exit_status
1319 ' 0
1320for ac_signal in 1 2 13 15; do
1321 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322done
1323ac_signal=0
1324
1325# confdefs.h avoids OS command line length limits that DEFS can exceed.
1326rm -rf conftest* confdefs.h
1327# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1328echo >confdefs.h
1329
1330# Predefined preprocessor variables.
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_NAME "$PACKAGE_NAME"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_VERSION "$PACKAGE_VERSION"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_STRING "$PACKAGE_STRING"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354_ACEOF
1355
1356
1357# Let the site file select an alternate cache file if it wants to.
a0da8069 1358# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1359if test -z "$CONFIG_SITE"; then
1360 if test "x$prefix" != xNONE; then
1361 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1362 else
1363 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1364 fi
1365fi
1366for ac_site_file in $CONFIG_SITE; do
1367 if test -r "$ac_site_file"; then
c6b750e1
DJ
1368 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1369echo "$as_me: loading site script $ac_site_file" >&6;}
1370 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1371 . "$ac_site_file"
1372 fi
1373done
1374
1375if test -r "$cache_file"; then
c6b750e1
DJ
1376 # Some versions of bash will fail to source /dev/null (special
1377 # files actually), so we avoid doing that.
1378 if test -f "$cache_file"; then
1379 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1380echo "$as_me: loading cache $cache_file" >&6;}
1381 case $cache_file in
1382 [\\/]* | ?:[\\/]* ) . $cache_file;;
1383 *) . ./$cache_file;;
1384 esac
1385 fi
a0da8069 1386else
c6b750e1
DJ
1387 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1388echo "$as_me: creating cache $cache_file" >&6;}
1389 >$cache_file
1390fi
1391
1392# Check that the precious variables saved in the cache have kept the same
1393# value.
1394ac_cache_corrupted=false
1395for ac_var in `(set) 2>&1 |
1396 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1398 eval ac_new_set=\$ac_env_${ac_var}_set
1399 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1400 eval ac_new_val="\$ac_env_${ac_var}_value"
1401 case $ac_old_set,$ac_new_set in
1402 set,)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1404echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,set)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,);;
1411 *)
1412 if test "x$ac_old_val" != "x$ac_new_val"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1416echo "$as_me: former value: $ac_old_val" >&2;}
1417 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1418echo "$as_me: current value: $ac_new_val" >&2;}
1419 ac_cache_corrupted=:
1420 fi;;
1421 esac
1422 # Pass precious variables to config.status.
1423 if test "$ac_new_set" = set; then
1424 case $ac_new_val in
1425 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1427 *) ac_arg=$ac_var=$ac_new_val ;;
1428 esac
1429 case " $ac_configure_args " in
1430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1431 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432 esac
1433 fi
1434done
1435if $ac_cache_corrupted; then
1436 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1437echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1438 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1439echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1440 { (exit 1); exit 1; }; }
a0da8069
NN
1441fi
1442
1443ac_ext=c
a0da8069 1444ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1447ac_compiler_gnu=$ac_cv_c_compiler_gnu
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
a0da8069
NN
1461
1462
75778ec4 1463
c6b750e1
DJ
1464
1465
1466
1467
1468
1469# Find the build, host, and target systems.
a0da8069 1470ac_aux_dir=
315b3b02 1471for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1472 if test -f $ac_dir/install-sh; then
1473 ac_aux_dir=$ac_dir
1474 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 break
1476 elif test -f $ac_dir/install.sh; then
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 break
c6b750e1
DJ
1480 elif test -f $ac_dir/shtool; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/shtool install -c"
1483 break
a0da8069
NN
1484 fi
1485done
1486if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1487 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1488echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1489 { (exit 1); exit 1; }; }
a0da8069 1490fi
c6b750e1
DJ
1491ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1492ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1493ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1494
c6b750e1
DJ
1495# Make sure we can run config.sub.
1496$ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499 { (exit 1); exit 1; }; }
1500
1501echo "$as_me:$LINENO: checking build system type" >&5
1502echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506 ac_cv_build_alias=$build_alias
1507test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509test -z "$ac_cv_build_alias" &&
1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
1513ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1517
1518fi
1519echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520echo "${ECHO_T}$ac_cv_build" >&6
1521build=$ac_cv_build
1522build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1525
a0da8069 1526
c6b750e1
DJ
1527 case ${build_alias} in
1528 "") build_noncanonical=${build} ;;
1529 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1530esac
1531
1532
cac3d6c4 1533
c6b750e1
DJ
1534 case ${host_alias} in
1535 "") host_noncanonical=${build_noncanonical} ;;
1536 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1537esac
1538
cac3d6c4 1539
c6b750e1
DJ
1540
1541 case ${target_alias} in
1542 "") target_noncanonical=${host_noncanonical} ;;
1543 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1544esac
1545
cac3d6c4 1546
c6b750e1
DJ
1547
1548
1549test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
c6b750e1 1552 program_transform_name=s,y,y,
cac3d6c4 1553
c6b750e1
DJ
1554echo "$as_me:$LINENO: checking host system type" >&5
1555echo $ECHO_N "checking host system type... $ECHO_C" >&6
1556if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1558else
c6b750e1
DJ
1559 ac_cv_host_alias=$host_alias
1560test -z "$ac_cv_host_alias" &&
1561 ac_cv_host_alias=$ac_cv_build_alias
1562ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1566
1567fi
1568echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569echo "${ECHO_T}$ac_cv_host" >&6
1570host=$ac_cv_host
1571host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576echo "$as_me:$LINENO: checking target system type" >&5
1577echo $ECHO_N "checking target system type... $ECHO_C" >&6
1578if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581 ac_cv_target_alias=$target_alias
1582test "x$ac_cv_target_alias" = "x" &&
1583 ac_cv_target_alias=$ac_cv_host_alias
1584ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1588
cac3d6c4 1589fi
c6b750e1
DJ
1590echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591echo "${ECHO_T}$ac_cv_target" >&6
1592target=$ac_cv_target
1593target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
1597
1598# The aliases save the names the user supplied, while $host etc.
1599# will get canonicalized.
1600test -n "$target_alias" &&
1601 test "$program_prefix$program_suffix$program_transform_name" = \
1602 NONENONEs,x,x, &&
1603 program_prefix=${target_alias}-
a0da8069 1604test "$program_prefix" != NONE &&
c6b750e1 1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1606# Use a double $ so make ignores it.
1607test "$program_suffix" != NONE &&
c6b750e1
DJ
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609# Double any \ or $. echo might interpret backslashes.
1610# By default was `s,x,x', remove it if useless.
1611cat <<\_ACEOF >conftest.sed
1612s/[\\$]/&&/g;s/;s,x,x,$//
1613_ACEOF
1614program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1615rm conftest.sed
cac3d6c4 1616
a0da8069
NN
1617
1618
e5c3f801
NN
1619# Get 'install' or 'install-sh' and its variants.
1620# Find a good install program. We prefer a C program (faster),
1621# so one script is as good as another. But avoid the broken or
1622# incompatible versions:
1623# SysV /etc/install, /usr/sbin/install
1624# SunOS /usr/etc/install
1625# IRIX /sbin/install
1626# AIX /bin/install
c6b750e1 1627# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1628# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1629# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1631# OS/2's system install, which has a completely different semantic
e5c3f801 1632# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1633echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1634echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1635if test -z "$INSTALL"; then
c6b750e1
DJ
1636if test "${ac_cv_path_install+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 # Account for people who put trailing slashes in PATH elements.
1645case $as_dir/ in
1646 ./ | .// | /cC/* | \
1647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1648 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1649 /usr/ucb/* ) ;;
1650 *)
1651 # OSF1 and SCO ODT 3.0 have their own names for install.
1652 # Don't use installbsd from OSF since it installs stuff as root
1653 # by default.
1654 for ac_prog in ginstall scoinst install; do
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1657 if test $ac_prog = install &&
c6b750e1 1658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1659 # AIX install. It has an incompatible calling convention.
1660 :
c6b750e1
DJ
1661 elif test $ac_prog = install &&
1662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1663 # program-specific install script used by HP pwplus--don't use.
1664 :
e5c3f801 1665 else
c6b750e1
DJ
1666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1667 break 3
e5c3f801
NN
1668 fi
1669 fi
1670 done
c6b750e1
DJ
1671 done
1672 ;;
1673esac
1674done
1675
e5c3f801
NN
1676
1677fi
1678 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1679 INSTALL=$ac_cv_path_install
e5c3f801
NN
1680 else
1681 # As a last resort, use the slow shell script. We don't cache a
1682 # path for INSTALL within a source directory, because that will
1683 # break other packages using the cache if that directory is
1684 # removed, or if the path is relative.
c6b750e1 1685 INSTALL=$ac_install_sh
e5c3f801
NN
1686 fi
1687fi
c6b750e1
DJ
1688echo "$as_me:$LINENO: result: $INSTALL" >&5
1689echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1690
1691# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1692# It thinks the first close brace ends the variable substitution.
1693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1694
c6b750e1 1695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1696
1697test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698
c6b750e1
DJ
1699echo "$as_me:$LINENO: checking whether ln works" >&5
1700echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1701if test "${acx_cv_prog_LN+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1703else
1704 rm -f conftestdata_t
1705echo >conftestdata_f
1706if ln conftestdata_f conftestdata_t 2>/dev/null
1707then
1708 acx_cv_prog_LN=ln
1709else
1710 acx_cv_prog_LN=no
1711fi
1712rm -f conftestdata_f conftestdata_t
1713
1714fi
1715if test $acx_cv_prog_LN = no; then
1716 LN="cp"
c6b750e1
DJ
1717 echo "$as_me:$LINENO: result: no, using $LN" >&5
1718echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1719else
1720 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1721 echo "$as_me:$LINENO: result: yes" >&5
1722echo "${ECHO_T}yes" >&6
656fdd47
PB
1723fi
1724
c6b750e1
DJ
1725echo "$as_me:$LINENO: checking whether ln -s works" >&5
1726echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1727LN_S=$as_ln_s
1728if test "$LN_S" = "ln -s"; then
1729 echo "$as_me:$LINENO: result: yes" >&5
1730echo "${ECHO_T}yes" >&6
cac3d6c4 1731else
c6b750e1
DJ
1732 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1733echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1734fi
1735
e5c3f801 1736
252b5132 1737### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1738### If we are on Windows, search for the shell. This will permit people
1739### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1740### without also having to set CONFIG_SHELL. This code will work when
1741### using bash, which sets OSTYPE.
1742case "${OSTYPE}" in
1743*win32*)
a0da8069
NN
1744 if test x${CONFIG_SHELL} = x ; then
1745 if test ! -f /bin/sh ; then
1746 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1747 CONFIG_SHELL=${SHELL}
1748 export CONFIG_SHELL
1749 else
1750 for prog in sh sh.exe bash bash.exe; do
1751 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1752 for dir in $PATH; do
1753 test -z "$dir" && dir=.
1754 if test -f $dir/$prog; then
1755 CONFIG_SHELL=$dir/$prog
1756 export CONFIG_SHELL
1757 break
1758 fi
1759 done
1760 IFS="$save_ifs"
1761 test -n "${CONFIG_SHELL}" && break
1762 done
1763 fi
1764 fi
1765 fi
1766 ;;
1767esac
1768
1769config_shell=${CONFIG_SHELL-/bin/sh}
1770
252b5132
RH
1771progname=$0
1772# if PWD already has a value, it is probably wrong.
a0da8069 1773if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1774
92f01d61
JM
1775# Export original configure arguments for use by sub-configures.
1776# Quote arguments with shell meta charatcers.
1777TOPLEVEL_CONFIGURE_ARGUMENTS=
1778set -- "$progname" "$@"
a4708fba
JM
1779for ac_arg
1780do
92f01d61 1781 case "$ac_arg" in
ffa8bd48 1782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1784 # if the argument is of the form -foo=baz, quote the baz part only
1785 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1786 *) ;;
1787 esac
1788 # Add the quoted argument to the list.
1789 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1790done
2444379b
BE
1791if test "$silent" = yes; then
1792 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1793fi
92f01d61
JM
1794# Remove the initial space we just introduced and, as these will be
1795# expanded by make, quote '$'.
1796TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1797
75205f78 1798
a0da8069 1799moveifchange=${srcdir}/move-if-change
252b5132 1800
0fdbe983
DJ
1801srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1802
1803# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1804# a relative path.
1805if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1806 INSTALL="${srcpwd}/install-sh -c"
1807fi
1808
a0da8069
NN
1809# Set srcdir to "." if that's what it is.
1810# This is important for multilib support.
1811pwd=`${PWDCMD-pwd}`
a0da8069
NN
1812if test "${pwd}" = "${srcpwd}" ; then
1813 srcdir=.
252b5132
RH
1814fi
1815
a0da8069 1816topsrcdir=$srcpwd
252b5132 1817
a0da8069 1818extra_host_args=
afefada0 1819
a0da8069
NN
1820### To add a new directory to the tree, first choose whether it is a target
1821### or a host dependent tool. Then put it into the appropriate list
1822### (library or tools, host or target), doing a dependency sort.
252b5132 1823
c6b750e1 1824# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1825# configdirs, or target_configdirs; see the serialization section below.
252b5132 1826
c6b750e1
DJ
1827# Dependency sorting is only needed when *configuration* must be done in
1828# a particular order. In all cases a dependency should be specified in
a0da8069 1829# the Makefile, whether or not it's implicitly specified here.
252b5132 1830
a0da8069
NN
1831# Double entries in build_configdirs, configdirs, or target_configdirs may
1832# cause circular dependencies and break everything horribly.
252b5132 1833
6a9cf61e
PB
1834# these library is used by various programs built for the build
1835# environment
1836#
1837build_libs="build-libiberty"
1838
1839# these tools are built for the build environment
ee025550 1840build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1841
a0da8069
NN
1842# these libraries are used by various programs built for the host environment
1843#
4b900473 1844host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1845
a0da8069
NN
1846# these tools are built for the host environment
1847# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1848# know that we are building the simulator.
1849# binutils, gas and ld appear in that order because it makes sense to run
1850# "make check" in that particular order.
b00612cc 1851host_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
1852
1853# libgcj represents the runtime libraries only used by gcj.
1854libgcj="target-libffi \
a0da8069
NN
1855 target-zlib \
1856 target-qthreads \
1857 target-libjava"
1858
1859# these libraries are built for the target environment, and are built after
1860# the host libraries and the host tools (which may be a cross compiler)
1861#
b1299c4e
DJ
1862target_libraries="target-libgcc \
1863 target-libiberty \
a0da8069
NN
1864 target-libgloss \
1865 target-newlib \
b9459e83 1866 target-libstdc++-v3 \
4b1cb4fe 1867 target-libmudflap \
bb780410 1868 target-libssp \
4b1cb4fe 1869 target-libgfortran \
4f0ef2d8 1870 target-boehm-gc \
83326456 1871 ${libgcj} \
a2592b1b 1872 target-libobjc \
b3ded179
PB
1873 target-libada \
1874 target-libgomp"
a0da8069 1875
9c14acb8
NN
1876# these tools are built using the target libraries, and are intended to
1877# run only in the target environment
a0da8069 1878#
9c14acb8 1879# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1880# list belongs in this list. those programs are also very likely
1881# candidates for the "native_only" list which follows
1882#
a3dd767d 1883target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1884
a0da8069 1885################################################################################
252b5132 1886
a0da8069
NN
1887## All tools belong in one of the four categories, and are assigned above
1888## We assign ${configdirs} this way to remove all embedded newlines. This
1889## is important because configure will choke if they ever get through.
1890## ${configdirs} is directories we build using the host tools.
1891## ${target_configdirs} is directories we build using the target tools.
a0da8069 1892configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1893target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1894build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1895
a0da8069 1896################################################################################
252b5132 1897
a0da8069 1898srcname="gnu development package"
252b5132 1899
a0da8069
NN
1900# This gets set non-empty for some net releases of packages.
1901appdirs=""
252b5132 1902
a0da8069
NN
1903# Define is_cross_compiler to save on calls to 'test'.
1904is_cross_compiler=
1905if test x"${host}" = x"${target}" ; then
1906 is_cross_compiler=no
252b5132 1907else
a0da8069 1908 is_cross_compiler=yes
c6b750e1 1909fi
252b5132 1910
9175bfc0 1911# Find the build and target subdir names.
dd12c3a8 1912
66a79c16
DJ
1913# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1914# have matching libraries, they should use host libraries: Makefile.tpl
1915# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1916# However, they still use the build modules, because the corresponding
1917# host modules (e.g. bison) are only built for the host when bootstrap
1918# finishes. So:
1919# - build_subdir is where we find build modules, and never changes.
1920# - build_libsubdir is where we find build libraries, and can be overridden.
1921
1922# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1923build_subdir="build-${build_noncanonical}"
c6b750e1 1924
66a79c16
DJ
1925# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1926if test "${with_build_libsubdir+set}" = set; then
1927 withval="$with_build_libsubdir"
1928 build_libsubdir="$withval"
1929else
1930 build_libsubdir="$build_subdir"
c6b750e1 1931fi;
b00612cc
PB
1932# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1933if ( test $srcdir = . && test -d gcc ) \
1934 || test -d $srcdir/../host-${host_noncanonical}; then
1935 host_subdir="host-${host_noncanonical}"
1936else
1937 host_subdir=.
1938fi
dd12c3a8
NN
1939# No prefix.
1940target_subdir=${target_noncanonical}
c6b750e1 1941
252b5132 1942
a0da8069
NN
1943# Skipdirs are removed silently.
1944skipdirs=
1945# Noconfigdirs are removed loudly.
1946noconfigdirs=""
252b5132 1947
a0da8069
NN
1948use_gnu_ld=
1949# Make sure we don't let GNU ld be added if we didn't want it.
1950if test x$with_gnu_ld = xno ; then
1951 use_gnu_ld=no
1952 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1953fi
1954
a0da8069
NN
1955use_gnu_as=
1956# Make sure we don't let GNU as be added if we didn't want it.
1957if test x$with_gnu_as = xno ; then
1958 use_gnu_as=no
1959 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1960fi
1961
c6b750e1 1962# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1963# it's not even worth trying to configure, much less build, that tool.
252b5132 1964
a0da8069
NN
1965case ${with_x} in
1966 yes | "") ;; # the default value for this tree is that X11 is available
1967 no)
675c6968 1968 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1969 # We won't be able to build gdbtk without X.
c6b750e1 1970 enable_gdbtk=no
a0da8069
NN
1971 ;;
1972 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1973esac
252b5132 1974
a0da8069 1975# Some tools are only suitable for building in a "native" situation.
c6b750e1 1976# Remove these if host!=target.
701628f5 1977native_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 1978
a0da8069
NN
1979# Similarly, some are only suitable for cross toolchains.
1980# Remove these if host=target.
1981cross_only="target-libgloss target-newlib target-opcodes"
1982
1983case $is_cross_compiler in
1984 no) skipdirs="${skipdirs} ${cross_only}" ;;
1985 yes) skipdirs="${skipdirs} ${native_only}" ;;
1986esac
252b5132 1987
a0da8069
NN
1988# If both --with-headers and --with-libs are specified, default to
1989# --without-newlib.
32be62b5
RS
1990if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1991 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1992 if test x"${with_newlib}" = x ; then
1993 with_newlib=no
1994 fi
252b5132
RH
1995fi
1996
a0da8069
NN
1997# Recognize --with-newlib/--without-newlib.
1998case ${with_newlib} in
1999 no) skipdirs="${skipdirs} target-newlib" ;;
2000 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2001esac
252b5132 2002
a0da8069 2003# Configure extra directories which are host specific
252b5132 2004
a0da8069
NN
2005case "${host}" in
2006 *-cygwin*)
2007 configdirs="$configdirs libtermcap" ;;
2008esac
252b5132 2009
59f7ec45
HPN
2010# A target can indicate whether a language isn't supported for some reason.
2011# Only spaces may be used in this macro; not newlines or tabs.
2012unsupported_languages=
2013
c6b750e1 2014# Remove more programs from consideration, based on the host or
a0da8069
NN
2015# target this usually means that a port of the program doesn't
2016# exist yet.
252b5132 2017
a0da8069
NN
2018case "${host}" in
2019 hppa*64*-*-*)
2020 noconfigdirs="$noconfigdirs byacc"
2021 ;;
ec11bdc6 2022 i[3456789]86-*-vsta)
675c6968 2023 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2024 ;;
ec11bdc6 2025 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2026 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2027 ;;
2d1e8239
NC
2028 x86_64-*-mingw*)
2029 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2030 ;;
ec11bdc6 2031 i[3456789]86-*-mingw32*)
675c6968 2032 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2033 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2034 ;;
ec11bdc6 2035 i[3456789]86-*-beos*)
675c6968 2036 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2037 ;;
a0da8069 2038 *-*-cygwin*)
a92834c8 2039 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2040 ;;
2041 *-*-netbsd*)
a92834c8 2042 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2043 ;;
2044 ppc*-*-pe)
675c6968 2045 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2046 ;;
2047 powerpc-*-beos*)
675c6968 2048 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2049 ;;
a0da8069 2050esac
252b5132 2051
4b1cb4fe 2052
a2592b1b
DD
2053# Check whether --enable-libada or --disable-libada was given.
2054if test "${enable_libada+set}" = set; then
2055 enableval="$enable_libada"
2056 ENABLE_LIBADA=$enableval
2057else
2058 ENABLE_LIBADA=yes
c6b750e1 2059fi;
a2592b1b 2060if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2061 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2062fi
2063
5f128533
KH
2064# Check whether --enable-libssp or --disable-libssp was given.
2065if test "${enable_libssp+set}" = set; then
2066 enableval="$enable_libssp"
2067 ENABLE_LIBSSP=$enableval
2068else
2069 ENABLE_LIBSSP=yes
c6b750e1 2070fi;
5f128533 2071
a0da8069
NN
2072# Save it here so that, even in case of --enable-libgcj, if the Java
2073# front-end isn't enabled, we still get libgcj disabled.
2074libgcj_saved=$libgcj
2075case $enable_libgcj in
2076yes)
2077 # If we reset it here, it won't get added to noconfigdirs in the
2078 # target-specific build rules, so it will be forcibly enabled
2079 # (unless the Java language itself isn't enabled).
2080 libgcj=
2081 ;;
2082no)
2083 # Make sure we get it printed in the list of not supported target libs.
2084 noconfigdirs="$noconfigdirs ${libgcj}"
2085 ;;
2086esac
252b5132 2087
4b1cb4fe 2088
a6df5a19
PB
2089# Disable libmudflap on some systems.
2090if test x$enable_libmudflap = x ; then
3e707e94 2091 case "${target}" in
0ebe98fb 2092 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2093 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2094 ;;
2095 *-*-freebsd*)
2096 # Enable libmudflap by default in FreeBSD.
2097 ;;
2098 *)
2099 # Disable it by default everywhere else.
2100 noconfigdirs="$noconfigdirs target-libmudflap"
2101 ;;
2102 esac
a6df5a19 2103fi
4b1cb4fe 2104
a6df5a19
PB
2105# Disable libgomp on non POSIX hosted systems.
2106if test x$enable_libgomp = x ; then
b3ded179
PB
2107 # Enable libgomp by default on hosted POSIX systems.
2108 case "${target}" in
2109 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2110 ;;
2111 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2112 ;;
64ce424c 2113 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2114 ;;
2115 *-*-darwin* | *-*-aix*)
2116 ;;
2117 *)
2118 noconfigdirs="$noconfigdirs target-libgomp"
2119 ;;
2120 esac
a6df5a19 2121fi
b3ded179 2122
4b1cb4fe 2123
a0da8069
NN
2124case "${target}" in
2125 *-*-chorusos)
54d1c879 2126 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2127 ;;
790c0838 2128 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2129 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2130 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2131 ;;
04d1ab34 2132 *-*-darwin*)
d320aacb 2133 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2134 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2135 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2136 ;;
a0da8069 2137 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2138 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2139 ;;
de0b4a87 2140 *-*-freebsd*)
4b1cb4fe
DD
2141 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2142 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2143 && test -f /usr/local/include/gmp.h; then
2144 with_gmp=/usr/local
2145 fi
2146
2147 # Skip some stuff that's unsupported on some FreeBSD configurations.
2148 case "${target}" in
2149 i*86-*-*) ;;
2150 alpha*-*-*) ;;
2151 *)
54d1c879 2152 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2153 ;;
2154 esac
2155 ;;
f8a495c8
NC
2156 *-*-kaos*)
2157 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2158 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2159 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2160 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2161 noconfigdirs="$noconfigdirs target-libgloss"
2162 ;;
a0da8069
NN
2163 *-*-netbsd*)
2164 # Skip some stuff on all NetBSD configurations.
2165 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2166
2167 # Skip some stuff that's unsupported on some NetBSD configurations.
2168 case "${target}" in
2169 i*86-*-netbsdelf*) ;;
5b474aa8 2170 arm*-*-netbsdelf*) ;;
a0da8069 2171 *)
54d1c879 2172 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2173 ;;
2174 esac
2175 ;;
2a3124ca 2176 *-*-netware*)
54d1c879 2177 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2178 ;;
2179 *-*-rtems*)
54d1c879 2180 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2181 ;;
1587117a
EC
2182 # The tpf target doesn't support gdb yet.
2183 *-*-tpf*)
54d1c879 2184 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2185 ;;
c1968181 2186 *-*-uclinux*)
54d1c879 2187 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2188 ;;
a0da8069 2189 *-*-vxworks*)
54d1c879 2190 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2191 ;;
2192 alpha*-dec-osf*)
2193 # ld works, but does not support shared libraries.
2194 # newlib is not 64 bit ready. I'm not sure about fileutils.
2195 # gas doesn't generate exception information.
2196 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2197 ;;
2198 alpha*-*-*vms*)
54d1c879 2199 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2200 ;;
2201 alpha*-*-linux*)
2202 # newlib is not 64 bit ready
2203 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2204 ;;
a0da8069
NN
2205 alpha*-*-*)
2206 # newlib is not 64 bit ready
54d1c879 2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2208 ;;
4a18bd6b 2209 am33_2.0-*-linux*)
54d1c879 2210 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2211 ;;
a0da8069 2212 sh-*-linux*)
54d1c879 2213 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2214 ;;
a0da8069 2215 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2216 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2217 noconfigdirs="$noconfigdirs target-examples"
2218 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2219 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2220 noconfigdirs="$noconfigdirs expect dejagnu"
2221 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2222 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2223 noconfigdirs="$noconfigdirs target-newlib"
2224 case "${host}" in
2225 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2226 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2227 ;;
2228 esac
2229 ;;
2230 arc-*-*)
54d1c879 2231 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2232 ;;
caeba88f 2233 arm-semi-aof )
caeba88f 2234 ;;
a0da8069 2235 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2236 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2237 ;;
11b04d1f 2238 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2239 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2240 ;;
bd70a46f
KH
2241 arm*-*-linux-gnueabi)
2242 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2243 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
a5b3b4dd
DD
2244 case ${with_newlib} in
2245 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2246 esac
bd70a46f 2247 ;;
df4a6958 2248 arm*-*-symbianelf*)
54d1c879 2249 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2250 ;;
a0da8069 2251 arm-*-pe*)
54d1c879 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2253 ;;
a0da8069 2254 thumb-*-coff)
54d1c879 2255 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2256 ;;
2257 thumb-*-elf)
54d1c879 2258 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2259 ;;
a0da8069 2260 thumb-*-pe)
54d1c879 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2262 ;;
2263 arm-*-riscix*)
54d1c879 2264 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2265 ;;
2266 avr-*-*)
54d1c879 2267 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2268 ;;
376a0e54 2269 bfin-*-*)
00d89675 2270 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2271 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2272 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2273 fi
2274 ;;
a0da8069 2275 c4x-*-* | tic4x-*-*)
54d1c879 2276 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2277 ;;
2278 c54x*-*-* | tic54x-*-*)
54d1c879 2279 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2280 ;;
c7e66c6d 2281 cris-*-* | crisv32-*-*)
59f7ec45 2282 unsupported_languages="$unsupported_languages java"
c7e66c6d 2283 case "${target}" in
2faa2958 2284 *-*-aout)
096f7d00 2285 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2286 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2287 *-*-elf)
096f7d00 2288 unsupported_languages="$unsupported_languages fortran"
5e818318 2289 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2290 *-*-linux*)
5e818318 2291 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2292 *)
096f7d00 2293 unsupported_languages="$unsupported_languages fortran"
54d1c879 2294 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2295 esac
a0da8069 2296 ;;
3e707e94 2297 crx-*-*)
54d1c879 2298 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2299 ;;
a0da8069 2300 d10v-*-*)
54d1c879 2301 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2302 ;;
2303 d30v-*-*)
54d1c879 2304 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2305 ;;
2306 fr30-*-elf*)
54d1c879 2307 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2308 ;;
2309 frv-*-*)
54d1c879 2310 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2311 ;;
2312 h8300*-*-*)
54d1c879 2313 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2314 ;;
2315 h8500-*-*)
54d1c879 2316 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2317 ;;
caeba88f 2318 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2319 ;;
a0da8069
NN
2320 hppa*64*-*-linux* | parisc*64*-*-linux*)
2321 # In this case, it's because the hppa64-linux target is for
2322 # the kernel only at this point and has no libc, and thus no
2323 # headers, crt*.o, etc., all of which are needed by these.
2324 noconfigdirs="$noconfigdirs target-zlib"
2325 ;;
5dcac624
DA
2326 parisc*-*-linux* | hppa*-*-linux*)
2327 ;;
a0da8069 2328 hppa*-*-*elf* | \
a0da8069
NN
2329 hppa*-*-lites* | \
2330 hppa*-*-openbsd* | \
2331 hppa*64*-*-*)
54d1c879 2332 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2333 ;;
2334 hppa*-hp-hpux11*)
2335 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2336 ;;
2337 hppa*-*-*)
2338 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2339 # build on HP-UX 10.20.
54d1c879 2340 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2341 ;;
b07c2aad 2342 i960-*-*)
54d1c879 2343 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2344 ;;
a0da8069
NN
2345 ia64*-*-elf*)
2346 # No gdb support yet.
675c6968 2347 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2348 ;;
2349 ia64*-**-hpux*)
2350 # No gdb or ld support yet.
54d1c879 2351 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2352 ;;
caeba88f 2353 i370-*-opened*)
caeba88f 2354 ;;
ec11bdc6 2355 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2356 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2357 ;;
ec11bdc6 2358 i[3456789]86-*-linux*)
a0da8069
NN
2359 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2360 # not build java stuff by default.
2361 case "${target}" in
2362 *-*-*libc1*)
54d1c879 2363 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2364 esac
2365
2366 # This section makes it possible to build newlib natively on linux.
2367 # If we are using a cross compiler then don't configure newlib.
2368 if test x${is_cross_compiler} != xno ; then
bba45b8b 2369 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2370 fi
2371 noconfigdirs="$noconfigdirs target-libgloss"
2372 # If we are not using a cross compiler, do configure newlib.
2373 # Note however, that newlib will only be configured in this situation
2374 # if the --with-newlib option has been given, because otherwise
2375 # 'target-newlib' will appear in skipdirs.
2376 ;;
ec11bdc6 2377 i[3456789]86-*-mingw32*)
45055374
CV
2378 target_configdirs="$target_configdirs target-winsup"
2379 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2380 ;;
2d1e8239
NC
2381 x86_64-*-mingw*)
2382 target_configdirs="$target_configdirs target-winsup"
2383 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2384 ;;
a0da8069
NN
2385 *-*-cygwin*)
2386 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2387 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2388 # always build newlib if winsup directory is present.
45055374 2389 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2390 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2391 elif test -d "$srcdir/newlib"; then
45055374 2392 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2393 fi
c6b750e1 2394 ;;
caeba88f
AL
2395 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2396 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2397 ;;
ec11bdc6 2398 i[3456789]86-*-pe)
54d1c879 2399 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2400 ;;
ec11bdc6 2401 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2402 # The linker does not yet know about weak symbols in COFF,
2403 # and is not configured to handle mixed ELF and COFF.
54d1c879 2404 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2405 ;;
ec11bdc6 2406 i[3456789]86-*-sco*)
54d1c879 2407 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2408 ;;
ec11bdc6 2409 i[3456789]86-*-solaris2*)
a0da8069
NN
2410 noconfigdirs="$noconfigdirs target-libgloss"
2411 ;;
ec11bdc6 2412 i[3456789]86-*-sysv4*)
54d1c879 2413 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2414 ;;
ec11bdc6 2415 i[3456789]86-*-beos*)
54d1c879 2416 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2417 ;;
b59bea8a 2418 i[3456789]86-*-rdos*)
2429c060
PB
2419 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2420 ;;
b07c2aad 2421 m32r-*-*)
54d1c879 2422 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2423 ;;
a0da8069 2424 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2425 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2426 ;;
2427 m68k-*-elf*)
54d1c879 2428 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2429 ;;
2430 m68k-*-coff*)
54d1c879 2431 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2432 ;;
2433 mcore-*-pe*)
2434 # The EPOC C++ environment does not support exceptions or rtti,
2435 # and so building libstdc++-v3 tends not to always work.
2436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2437 ;;
2438 mmix-*-*)
59f7ec45 2439 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2440 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2441 ;;
2442 mn10200-*-*)
54d1c879 2443 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2444 ;;
2445 mn10300-*-*)
54d1c879 2446 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2447 ;;
4970f871 2448 mt-*-*)
cdb9b172
AH
2449 noconfigdirs="$noconfigdirs sim"
2450 ;;
a0da8069
NN
2451 powerpc-*-aix*)
2452 # copied from rs6000-*-* entry
54d1c879 2453 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2454 ;;
2455 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2456 target_configdirs="$target_configdirs target-winsup"
54d1c879 2457 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2458 # always build newlib.
2459 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2460 ;;
2461 # This is temporary until we can link against shared libraries
2462 powerpcle-*-solaris*)
54d1c879 2463 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2464 ;;
2465 powerpc-*-beos*)
54d1c879 2466 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2467 ;;
a0da8069 2468 powerpc-*-eabi)
54d1c879 2469 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2470 ;;
2471 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2472 ;;
a0da8069 2473 rs6000-*-lynxos*)
54d1c879 2474 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2475 ;;
2476 rs6000-*-aix*)
54d1c879 2477 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2478 ;;
2479 rs6000-*-*)
54d1c879 2480 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2481 ;;
2482 m68k-apollo-*)
54d1c879 2483 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2484 ;;
2485 mips*-*-irix5*)
54d1c879 2486 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2487 ;;
2488 mips*-*-irix6*)
a0da8069
NN
2489 # Linking libjava exceeds command-line length limits on at least
2490 # IRIX 6.2, but not on IRIX 6.5.
2491 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2492 # <oldham@codesourcery.com>
54d1c879 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2494 ;;
a0da8069 2495 mips*-*-bsd*)
54d1c879 2496 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2497 ;;
1712ab83 2498 mips64*-*-linux*)
f3529cf1 2499 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2500 ;;
a0da8069
NN
2501 mips*-*-linux*)
2502 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2503 ;;
2504 mips*-*-*)
54d1c879 2505 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2506 ;;
2507 romp-*-*)
54d1c879 2508 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2509 ;;
dbf85af7 2510 sh-*-* | sh64-*-*)
a0da8069 2511 case "${host}" in
ec11bdc6
DD
2512 i[3456789]86-*-vsta) ;; # don't add gprof back in
2513 i[3456789]86-*-go32*) ;; # don't add gprof back in
2514 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2515 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2516 esac
54d1c879 2517 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2518 ;;
a0da8069 2519 sparc-*-elf*)
54d1c879 2520 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2521 ;;
2522 sparc64-*-elf*)
54d1c879 2523 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2524 ;;
2525 sparclite-*-*)
54d1c879 2526 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2527 ;;
2528 sparc-*-sunos4*)
54d1c879 2529 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2530 if test x${is_cross_compiler} != xno ; then
2531 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2532 else
2533 use_gnu_ld=no
2534 fi
2535 ;;
e3c770b1 2536 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2537 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2538 ;;
a0da8069
NN
2539 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2540 ;;
2839fe5d
BE
2541 spu-*-*)
2542 skipdirs="target-libssp"
2543 ;;
a0da8069 2544 v810-*-*)
54d1c879 2545 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2546 ;;
2547 v850-*-*)
54d1c879 2548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2549 ;;
2550 v850e-*-*)
54d1c879 2551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2552 ;;
2553 v850ea-*-*)
54d1c879 2554 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2555 ;;
2556 vax-*-vms)
54d1c879 2557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2558 ;;
2559 vax-*-*)
54d1c879 2560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2561 ;;
fbd1054d 2562 xtensa-*-*)
54d1c879 2563 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2564 ;;
a0da8069 2565 ip2k-*-*)
54d1c879 2566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2567 ;;
de0b4a87 2568 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2570 ;;
2571 *-*-lynxos*)
54d1c879 2572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2573 ;;
a0da8069 2574 *-*-*)
54d1c879 2575 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2576 ;;
2577esac
252b5132 2578
a0da8069
NN
2579# If we aren't building newlib, then don't build libgloss, since libgloss
2580# depends upon some newlib header files.
2581case "${noconfigdirs}" in
2582 *target-libgloss*) ;;
2583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2584esac
2585
a0da8069
NN
2586# Work in distributions that contain no compiler tools, like Autoconf.
2587tentative_cc=""
2588host_makefile_frag=/dev/null
2589if test -d ${srcdir}/config ; then
2590case "${host}" in
2591 m68k-hp-hpux*)
2592 # Avoid "too much defining" errors from HPUX compiler.
2593 tentative_cc="cc -Wp,-H256000"
2594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2595 # If it's HP/UX ar, this should be harmless.
2596 RANLIB="ar ts"
2597 ;;
2598 m68k-apollo-sysv*)
2599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2600 ;;
2601 m68k-apollo-bsd*)
2602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2603 # chokes on bfd, the compiler won't let you assign integers to enums, and
2604 # other problems. Defining CC to gcc is a questionable way to say "don't use
2605 # the apollo compiler" (the preferred version of GCC could be called cc,
2606 # or whatever), but I'm not sure leaving CC as cc is any better...
2607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2608 # Used to have BISON=yacc.
2609 tentative_cc=gcc
2610 ;;
2611 m88k-dg-dgux*)
2612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2613 ;;
2614 m88k-harris-cxux*)
2615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2616 tentative_cc="cc -Xa"
2617 host_makefile_frag="config/mh-cxux"
2618 ;;
2619 m88k-motorola-sysv*)
2620 ;;
2621 mips*-dec-ultrix*)
2622 tentative_cc="cc -Wf,-XNg1000"
2623 host_makefile_frag="config/mh-decstation"
2624 ;;
2625 mips*-nec-sysv4*)
2626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2628 host_makefile_frag="config/mh-necv4"
2629 ;;
2630 mips*-sgi-irix4*)
2631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2632 # environment. Also bump switch table size so that cp-parse will
2633 # compile. Bump string length limit so linker builds.
2634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2635 ;;
2636 mips*-*-sysv4*)
2637 host_makefile_frag="config/mh-sysv4"
2638 ;;
2639 mips*-*-sysv*)
2640 # This is for a MIPS running RISC/os 4.52C.
2641
2642 # This is needed for GDB, but needs to be in the top-level make because
2643 # if a library is compiled with the bsd headers and gets linked with the
2644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2645 # a different size).
2646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2647 # known except to select the sysv environment. Could we use /proc instead?
2648 # These "sysv environments" and "bsd environments" often end up being a pain.
2649 #
2650 # This is not part of CFLAGS because perhaps not all C compilers have this
2651 # option.
2652 tentative_cc="cc -systype sysv"
2653 ;;
2654 i370-ibm-opened*)
2655 tentative_cc="c89"
2656 ;;
ec11bdc6 2657 i[3456789]86-*-sysv5*)
a0da8069
NN
2658 host_makefile_frag="config/mh-sysv5"
2659 ;;
ec11bdc6 2660 i[3456789]86-*-dgux*)
a0da8069
NN
2661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2662 host_makefile_frag="config/mh-dgux386"
2663 ;;
ec11bdc6 2664 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2665 # The MetaWare compiler will generate a copyright message unless you
2666 # turn it off by adding the -Hnocopyr flag.
2667 tentative_cc="cc -Hnocopyr"
2668 ;;
ec11bdc6 2669 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2670 # for an NCR 3000 (i486/SVR4) system.
2671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2672 # This compiler not only emits obnoxious copyright messages every time
2673 # you run it, but it chokes and dies on a whole bunch of GNU source
2674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2675 tentative_cc="/usr/ccs/ATT/cc"
2676 host_makefile_frag="config/mh-ncr3000"
2677 ;;
ec11bdc6 2678 i[3456789]86-*-sco3.2v5*)
a0da8069 2679 ;;
ec11bdc6 2680 i[3456789]86-*-sco*)
a0da8069
NN
2681 # The native C compiler botches some simple uses of const. Unfortunately,
2682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2683 tentative_cc="cc -Dconst="
2684 host_makefile_frag="config/mh-sco"
2685 ;;
ec11bdc6 2686 i[3456789]86-*-udk*)
a0da8069
NN
2687 host_makefile_frag="config/mh-sysv5"
2688 ;;
ec11bdc6 2689 i[3456789]86-*-solaris2*)
a0da8069
NN
2690 host_makefile_frag="config/mh-sysv4"
2691 ;;
ec11bdc6 2692 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2693 host_makefile_frag="config/mh-djgpp"
2694 ;;
2695 *-cygwin*)
2696 host_makefile_frag="config/mh-cygwin"
2697 ;;
2698 *-mingw32*)
a0da8069 2699 ;;
2d1e8239
NC
2700 *-mingw64*)
2701 ;;
a0da8069
NN
2702 *-interix*)
2703 host_makefile_frag="config/mh-interix"
2704 ;;
2705 vax-*-ultrix2*)
2706 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2707 tentative_cc=gcc
2708 ;;
2709 *-*-solaris2*)
2710 host_makefile_frag="config/mh-solaris"
2711 ;;
2712 m68k-sun-sunos*)
2713 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2714 # without overflowing the jump tables (-J says to use a 32 bit table)
2715 tentative_cc="cc -J"
2716 ;;
2717 *-hp-hpux*)
2718 tentative_cc="cc -Wp,-H256000"
2719 ;;
2720 *-*-hiux*)
2721 tentative_cc="cc -Wp,-H256000"
2722 ;;
2723 rs6000-*-lynxos*)
2724 # /bin/cc is less than useful for our purposes. Always use GCC
2725 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2726 host_makefile_frag="config/mh-lynxrs6k"
2727 ;;
0df3d27f
PB
2728 powerpc-*-darwin*)
2729 host_makefile_frag="config/mh-ppc-darwin"
2730 ;;
f6d183c0
PB
2731 powerpc-*-aix*)
2732 host_makefile_frag="config/mh-ppc-aix"
2733 ;;
2734 rs6000-*-aix*)
2735 host_makefile_frag="config/mh-ppc-aix"
2736 ;;
a0da8069
NN
2737 *-*-lynxos*)
2738 # /bin/cc is less than useful for our purposes. Always use GCC
2739 tentative_cc="/bin/gcc"
2740 ;;
2741 *-*-sysv4*)
2742 host_makefile_frag="config/mh-sysv4"
2743 ;;
fe69863c
DD
2744 # This is placed last to prevent interfering with the cases above.
2745 i[3456789]86-*-*)
2746 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2747 host_makefile_frag="config/mh-x86omitfp"
2748 ;;
a0da8069
NN
2749esac
2750fi
2751
9e07f89d
NN
2752# If we aren't going to be using gcc, see if we can extract a definition
2753# of CC from the fragment.
2754# Actually, use the 'pre-extracted' version above.
2755if test -z "${CC}" && test "${build}" = "${host}" ; then
2756 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2757 found=
2758 for dir in $PATH; do
2759 test -z "$dir" && dir=.
2760 if test -f $dir/gcc; then
2761 found=yes
2762 break
2763 fi
2764 done
2765 IFS="$save_ifs"
2766 if test -z "${found}" && test -n "${tentative_cc}" ; then
2767 CC=$tentative_cc
2768 fi
2769fi
2770
2771if test "${build}" != "${host}" ; then
9e07f89d 2772 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2773else
512b7dfb 2774 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2775fi
2776
2777ac_ext=c
c6b750e1
DJ
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787if test "${ac_cv_prog_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805done
2806
2807fi
2808fi
2809CC=$ac_cv_prog_CC
2810if test -n "$CC"; then
2811 echo "$as_me:$LINENO: result: $CC" >&5
2812echo "${ECHO_T}$CC" >&6
2813else
2814 echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6
2816fi
2817
2818fi
2819if test -z "$ac_cv_prog_CC"; then
2820 ac_ct_CC=$CC
6a9cf61e 2821 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2822set dummy gcc; ac_word=$2
c6b750e1
DJ
2823echo "$as_me:$LINENO: checking for $ac_word" >&5
2824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 ac_cv_prog_ac_ct_CC="gcc"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843done
2844
2845fi
2846fi
2847ac_ct_CC=$ac_cv_prog_ac_ct_CC
2848if test -n "$ac_ct_CC"; then
2849 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2850echo "${ECHO_T}$ac_ct_CC" >&6
2851else
2852 echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6
2854fi
2855
2856 CC=$ac_ct_CC
2857else
2858 CC="$ac_cv_prog_CC"
2859fi
2860
2861if test -z "$CC"; then
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2864set dummy ${ac_tool_prefix}cc; ac_word=$2
2865echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867if test "${ac_cv_prog_CC+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2869else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
c6b750e1
DJ
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_CC="${ac_tool_prefix}cc"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885done
2886
9e07f89d
NN
2887fi
2888fi
c6b750e1 2889CC=$ac_cv_prog_CC
9e07f89d 2890if test -n "$CC"; then
c6b750e1
DJ
2891 echo "$as_me:$LINENO: result: $CC" >&5
2892echo "${ECHO_T}$CC" >&6
9e07f89d 2893else
c6b750e1
DJ
2894 echo "$as_me:$LINENO: result: no" >&5
2895echo "${ECHO_T}no" >&6
9e07f89d
NN
2896fi
2897
c6b750e1
DJ
2898fi
2899if test -z "$ac_cv_prog_CC"; then
2900 ac_ct_CC=$CC
2901 # Extract the first word of "cc", so it can be a program name with args.
2902set dummy cc; ac_word=$2
2903echo "$as_me:$LINENO: checking for $ac_word" >&5
2904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_CC="cc"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922done
2923done
2924
2925fi
2926fi
2927ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928if test -n "$ac_ct_CC"; then
2929 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930echo "${ECHO_T}$ac_ct_CC" >&6
2931else
2932 echo "$as_me:$LINENO: result: no" >&5
2933echo "${ECHO_T}no" >&6
2934fi
2935
2936 CC=$ac_ct_CC
2937else
2938 CC="$ac_cv_prog_CC"
2939fi
2940
2941fi
9e07f89d
NN
2942if test -z "$CC"; then
2943 # Extract the first word of "cc", so it can be a program name with args.
2944set dummy cc; ac_word=$2
c6b750e1
DJ
2945echo "$as_me:$LINENO: checking for $ac_word" >&5
2946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947if test "${ac_cv_prog_CC+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2949else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
9e07f89d 2953 ac_prog_rejected=no
c6b750e1
DJ
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962 ac_prog_rejected=yes
2963 continue
2964 fi
2965 ac_cv_prog_CC="cc"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969done
2970done
2971
9e07f89d
NN
2972if test $ac_prog_rejected = yes; then
2973 # We found a bogon in the path, so make sure we never use it.
2974 set dummy $ac_cv_prog_CC
2975 shift
c6b750e1 2976 if test $# != 0; then
9e07f89d
NN
2977 # We chose a different compiler from the bogus one.
2978 # However, it has the same basename, so the bogon will be chosen
2979 # first if we set CC to just the basename; use the full file name.
2980 shift
c6b750e1 2981 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2982 fi
2983fi
2984fi
2985fi
c6b750e1 2986CC=$ac_cv_prog_CC
9e07f89d 2987if test -n "$CC"; then
c6b750e1
DJ
2988 echo "$as_me:$LINENO: result: $CC" >&5
2989echo "${ECHO_T}$CC" >&6
9e07f89d 2990else
c6b750e1
DJ
2991 echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
9e07f89d
NN
2993fi
2994
c6b750e1
DJ
2995fi
2996if test -z "$CC"; then
2997 if test -n "$ac_tool_prefix"; then
2998 for ac_prog in cl
2999 do
3000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3002echo "$as_me:$LINENO: checking for $ac_word" >&5
3003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004if test "${ac_cv_prog_CC+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3006else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
c6b750e1
DJ
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
376a0e54 3020 fi
c6b750e1
DJ
3021done
3022done
cac3d6c4 3023
c6b750e1
DJ
3024fi
3025fi
3026CC=$ac_cv_prog_CC
3027if test -n "$CC"; then
3028 echo "$as_me:$LINENO: result: $CC" >&5
3029echo "${ECHO_T}$CC" >&6
cac3d6c4 3030else
c6b750e1
DJ
3031 echo "$as_me:$LINENO: result: no" >&5
3032echo "${ECHO_T}no" >&6
9e07f89d 3033fi
cac3d6c4 3034
c6b750e1
DJ
3035 test -n "$CC" && break
3036 done
cac3d6c4 3037fi
c6b750e1
DJ
3038if test -z "$CC"; then
3039 ac_ct_CC=$CC
3040 for ac_prog in cl
3041do
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043set dummy $ac_prog; ac_word=$2
3044echo "$as_me:$LINENO: checking for $ac_word" >&5
3045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3048else
c6b750e1
DJ
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3051else
c6b750e1
DJ
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063done
3064done
3065
cac3d6c4
CM
3066fi
3067fi
c6b750e1
DJ
3068ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069if test -n "$ac_ct_CC"; then
3070 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3071echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3072else
c6b750e1
DJ
3073 echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
cac3d6c4 3075fi
376a0e54 3076
c6b750e1
DJ
3077 test -n "$ac_ct_CC" && break
3078done
3079
3080 CC=$ac_ct_CC
3081fi
3082
3083fi
3084
3085
3086test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3087See \`config.log' for more details." >&5
3088echo "$as_me: error: no acceptable C compiler found in \$PATH
3089See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3091
3092# Provide some information about the compiler.
3093echo "$as_me:$LINENO:" \
3094 "checking for C compiler version" >&5
3095ac_compiler=`set X $ac_compile; echo $2`
3096{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3097 (eval $ac_compiler --version </dev/null >&5) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }
3101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3102 (eval $ac_compiler -v </dev/null >&5) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }
3106{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3107 (eval $ac_compiler -V </dev/null >&5) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }
3111
3112cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127ac_clean_files_save=$ac_clean_files
3128ac_clean_files="$ac_clean_files a.out a.exe b.out"
3129# Try to create an executable without -o first, disregard a.out.
3130# It will help us diagnose broken compilers, and finding out an intuition
3131# of exeext.
3132echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3133echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3136 (eval $ac_link_default) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; then
3140 # Find the output, starting from the most likely. This scheme is
3141# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3142# resort.
3143
3144# Be careful to initialize this variable, since it used to be cached.
3145# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3146ac_cv_exeext=
3147# b.out is created by i960 compilers.
3148for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3149do
3150 test -f "$ac_file" || continue
3151 case $ac_file in
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3153 ;;
3154 conftest.$ac_ext )
3155 # This is the source file.
3156 ;;
3157 [ab].out )
3158 # We found the default executable, but exeext='' is most
3159 # certainly right.
3160 break;;
3161 *.* )
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 # FIXME: I believe we export ac_cv_exeext for Libtool,
3164 # but it would be cool to find out if it's true. Does anybody
3165 # maintain Libtool? --akim.
3166 export ac_cv_exeext
3167 break;;
3168 * )
3169 break;;
3170 esac
3171done
3172else
3173 echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3177See \`config.log' for more details." >&5
3178echo "$as_me: error: C compiler cannot create executables
3179See \`config.log' for more details." >&2;}
3180 { (exit 77); exit 77; }; }
3181fi
3182
3183ac_exeext=$ac_cv_exeext
3184echo "$as_me:$LINENO: result: $ac_file" >&5
3185echo "${ECHO_T}$ac_file" >&6
3186
3187# Check the compiler produces executables we can run. If not, either
3188# the compiler is broken, or we cross compile.
3189echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3190echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3191# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3192# If not cross compiling, check that we can run a simple program.
3193if test "$cross_compiling" != yes; then
3194 if { ac_try='./$ac_file'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 cross_compiling=no
3201 else
3202 if test "$cross_compiling" = maybe; then
3203 cross_compiling=yes
3204 else
3205 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3206If you meant to cross compile, use \`--host'.
3207See \`config.log' for more details." >&5
3208echo "$as_me: error: cannot run C compiled programs.
3209If you meant to cross compile, use \`--host'.
3210See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3212 fi
3213 fi
3214fi
3215echo "$as_me:$LINENO: result: yes" >&5
3216echo "${ECHO_T}yes" >&6
3217
3218rm -f a.out a.exe conftest$ac_cv_exeext b.out
3219ac_clean_files=$ac_clean_files_save
3220# Check the compiler produces executables we can run. If not, either
3221# the compiler is broken, or we cross compile.
3222echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3223echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3224echo "$as_me:$LINENO: result: $cross_compiling" >&5
3225echo "${ECHO_T}$cross_compiling" >&6
3226
3227echo "$as_me:$LINENO: checking for suffix of executables" >&5
3228echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230 (eval $ac_link) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3235# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3236# work properly (i.e., refer to `conftest.exe'), while it won't with
3237# `rm'.
3238for ac_file in conftest.exe conftest conftest.*; do
3239 test -f "$ac_file" || continue
3240 case $ac_file in
3241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243 export ac_cv_exeext
3244 break;;
3245 * ) break;;
3246 esac
3247done
3248else
3249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3250See \`config.log' for more details." >&5
3251echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3252See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3254fi
3255
3256rm -f conftest$ac_cv_exeext
3257echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258echo "${ECHO_T}$ac_cv_exeext" >&6
3259
3260rm -f conftest.$ac_ext
3261EXEEXT=$ac_cv_exeext
3262ac_exeext=$EXEEXT
3263echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3265if test "${ac_cv_objext+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268 cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h. */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h. */
3274
3275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.o conftest.obj
3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; then
3289 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3293 break;;
3294 esac
3295done
cac3d6c4 3296else
c6b750e1
DJ
3297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3301See \`config.log' for more details." >&5
3302echo "$as_me: error: cannot compute suffix of object files: cannot compile
3303See \`config.log' for more details." >&2;}
3304 { (exit 1); exit 1; }; }
3305fi
3306
3307rm -f conftest.$ac_cv_objext conftest.$ac_ext
3308fi
3309echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3310echo "${ECHO_T}$ac_cv_objext" >&6
3311OBJEXT=$ac_cv_objext
3312ac_objext=$OBJEXT
3313echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3315if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324
3325int
3326main ()
3327{
3328#ifndef __GNUC__
3329 choke me
3330#endif
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext
3337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_compiler_gnu=yes
3359else
3360 echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
3363ac_compiler_gnu=no
3364fi
3365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366ac_cv_c_compiler_gnu=$ac_compiler_gnu
3367
3368fi
3369echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3371GCC=`test $ac_compiler_gnu = yes && echo yes`
3372ac_test_CFLAGS=${CFLAGS+set}
3373ac_save_CFLAGS=$CFLAGS
3374CFLAGS="-g"
3375echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3377if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h. */
3386
3387int
3388main ()
3389{
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
9e07f89d
NN
3417 ac_cv_prog_cc_g=yes
3418else
c6b750e1
DJ
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3421
c6b750e1 3422ac_cv_prog_cc_g=no
376a0e54 3423fi
c6b750e1
DJ
3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425fi
3426echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3428if test "$ac_test_CFLAGS" = set; then
c6b750e1 3429 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3430elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3432 CFLAGS="-g -O2"
3433 else
3434 CFLAGS="-g"
3435 fi
3436else
3437 if test "$GCC" = yes; then
3438 CFLAGS="-O2"
3439 else
3440 CFLAGS=
3441 fi
3442fi
c6b750e1
DJ
3443echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445if test "${ac_cv_prog_cc_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448 ac_cv_prog_cc_stdc=no
3449ac_save_CC=$CC
3450cat >conftest.$ac_ext <<_ACEOF
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456#include <stdarg.h>
3457#include <stdio.h>
3458#include <sys/types.h>
3459#include <sys/stat.h>
3460/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461struct buf { int x; };
3462FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463static char *e (p, i)
3464 char **p;
3465 int i;
3466{
3467 return p[i];
3468}
3469static char *f (char * (*g) (char **, int), char **p, ...)
3470{
3471 char *s;
3472 va_list v;
3473 va_start (v,p);
3474 s = g (p, va_arg (v,int));
3475 va_end (v);
3476 return s;
3477}
3478
3479/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
3482 as 'x'. The following induces an error, until -std1 is added to get
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
3485 that's true only with -std1. */
3486int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3487
3488int test (int i, double x);
3489struct s1 {int (*f) (int a);};
3490struct s2 {int (*f) (double a);};
3491int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492int argc;
3493char **argv;
3494int
3495main ()
3496{
3497return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3498 ;
3499 return 0;
3500}
3501_ACEOF
3502# Don't try gcc -ansi; that turns off useful extensions and
3503# breaks some systems' header files.
3504# AIX -qlanglvl=ansi
3505# Ultrix and OSF/1 -std1
3506# HP-UX 10.20 and later -Ae
3507# HP-UX older versions -Aa -D_HPUX_SOURCE
3508# SVR4 -Xc -D__EXTENSIONS__
3509for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3510do
3511 CC="$ac_save_CC $ac_arg"
3512 rm -f conftest.$ac_objext
3513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc=$ac_arg
3535break
3536else
3537 echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3540fi
3541rm -f conftest.err conftest.$ac_objext
3542done
3543rm -f conftest.$ac_ext conftest.$ac_objext
3544CC=$ac_save_CC
3545
3546fi
3547
3548case "x$ac_cv_prog_cc_stdc" in
3549 x|xno)
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551echo "${ECHO_T}none needed" >&6 ;;
3552 *)
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC="$CC $ac_cv_prog_cc_stdc" ;;
3556esac
3557
3558# Some people use a C++ compiler to compile C. Since we use `exit',
3559# in C++ we need to declare it. In case someone uses the same compiler
3560# for both compiling C and C++ we need to have the C++ compiler decide
3561# the declaration of exit, since it's the most demanding environment.
3562cat >conftest.$ac_ext <<_ACEOF
3563#ifndef __cplusplus
3564 choke me
3565#endif
3566_ACEOF
3567rm -f conftest.$ac_objext
3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration in \
3590 '' \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3595 'void exit (int);'
3596do
3597 cat >conftest.$ac_ext <<_ACEOF
3598/* confdefs.h. */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h. */
3603$ac_declaration
3604#include <stdlib.h>
3605int
3606main ()
3607{
3608exit (42);
3609 ;
3610 return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext
3614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 :
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640continue
3641fi
3642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649$ac_declaration
3650int
3651main ()
3652{
3653exit (42);
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658rm -f conftest.$ac_objext
3659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 break
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687done
3688rm -f conftest*
3689if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3693fi
3694
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699fi
3700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701ac_ext=c
3702ac_cpp='$CPP $CPPFLAGS'
3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3706
18f6b6ee
PB
3707ac_ext=cc
3708ac_cpp='$CXXCPP $CPPFLAGS'
3709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3712if test -n "$ac_tool_prefix"; then
3713 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3714 do
3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3717echo "$as_me:$LINENO: checking for $ac_word" >&5
3718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719if test "${ac_cv_prog_CXX+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 if test -n "$CXX"; then
3723 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736done
3737done
512b7dfb 3738
18f6b6ee
PB
3739fi
3740fi
3741CXX=$ac_cv_prog_CXX
3742if test -n "$CXX"; then
3743 echo "$as_me:$LINENO: result: $CXX" >&5
3744echo "${ECHO_T}$CXX" >&6
3745else
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
3748fi
3749
3750 test -n "$CXX" && break
3751 done
3752fi
3753if test -z "$CXX"; then
3754 ac_ct_CXX=$CXX
3755 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3756do
3757 # Extract the first word of "$ac_prog", so it can be a program name with args.
3758set dummy $ac_prog; ac_word=$2
3759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 if test -n "$ac_ct_CXX"; then
3765 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_ac_ct_CXX="$ac_prog"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
512b7dfb 3777 fi
18f6b6ee
PB
3778done
3779done
512b7dfb 3780
18f6b6ee
PB
3781fi
3782fi
3783ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3784if test -n "$ac_ct_CXX"; then
3785 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3786echo "${ECHO_T}$ac_ct_CXX" >&6
3787else
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
3790fi
3791
3792 test -n "$ac_ct_CXX" && break
3793done
3794test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3795
3796 CXX=$ac_ct_CXX
3797fi
3798
3799
3800# Provide some information about the compiler.
3801echo "$as_me:$LINENO:" \
3802 "checking for C++ compiler version" >&5
3803ac_compiler=`set X $ac_compile; echo $2`
3804{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3805 (eval $ac_compiler --version </dev/null >&5) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }
3809{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3810 (eval $ac_compiler -v </dev/null >&5) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }
3814{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3815 (eval $ac_compiler -V </dev/null >&5) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }
3819
3820echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3821echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3822if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
3831
3832int
3833main ()
3834{
3835#ifndef __GNUC__
3836 choke me
3837#endif
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843rm -f conftest.$ac_objext
3844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_cxx_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_compiler_gnu=yes
3866else
3867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870ac_compiler_gnu=no
3871fi
3872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3874
3875fi
3876echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3877echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3878GXX=`test $ac_compiler_gnu = yes && echo yes`
3879ac_test_CXXFLAGS=${CXXFLAGS+set}
3880ac_save_CXXFLAGS=$CXXFLAGS
3881CXXFLAGS="-g"
3882echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3883echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3884if test "${ac_cv_prog_cxx_g+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893
3894int
3895main ()
3896{
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_cxx_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 ac_cv_prog_cxx_g=yes
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929ac_cv_prog_cxx_g=no
3930fi
3931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932fi
3933echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3934echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3935if test "$ac_test_CXXFLAGS" = set; then
3936 CXXFLAGS=$ac_save_CXXFLAGS
3937elif test $ac_cv_prog_cxx_g = yes; then
3938 if test "$GXX" = yes; then
3939 CXXFLAGS="-g -O2"
3940 else
3941 CXXFLAGS="-g"
3942 fi
3943else
3944 if test "$GXX" = yes; then
3945 CXXFLAGS="-O2"
3946 else
3947 CXXFLAGS=
3948 fi
3949fi
3950for ac_declaration in \
3951 '' \
3952 'extern "C" void std::exit (int) throw (); using std::exit;' \
3953 'extern "C" void std::exit (int); using std::exit;' \
3954 'extern "C" void exit (int) throw ();' \
3955 'extern "C" void exit (int);' \
3956 'void exit (int);'
3957do
3958 cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964$ac_declaration
3965#include <stdlib.h>
3966int
3967main ()
3968{
3969exit (42);
3970 ;
3971 return 0;
3972}
3973_ACEOF
3974rm -f conftest.$ac_objext
3975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_cxx_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 :
3997else
3998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001continue
4002fi
4003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h. */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h. */
4010$ac_declaration
4011int
4012main ()
4013{
4014exit (42);
4015 ;
4016 return 0;
4017}
4018_ACEOF
4019rm -f conftest.$ac_objext
4020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_cxx_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 break
4042else
4043 echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046fi
4047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4048done
4049rm -f conftest*
4050if test -n "$ac_declaration"; then
4051 echo '#ifdef __cplusplus' >>confdefs.h
4052 echo $ac_declaration >>confdefs.h
4053 echo '#endif' >>confdefs.h
4054fi
4055
4056ac_ext=c
4057ac_cpp='$CPP $CPPFLAGS'
4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062
4063# We must set the default linker to the linker used by gcc for the correct
4064# operation of libtool. If LD is not defined and we are using gcc, try to
4065# set the LD default to the ld used by gcc.
4066if test -z "$LD"; then
4067 if test "$GCC" = yes; then
4068 case $build in
4069 *-*-mingw*)
4070 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4071 *)
4072 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4073 esac
4074 case $gcc_prog_ld in
4075 # Accept absolute paths.
4076 [\\/]* | [A-Za-z]:[\\/]*)
4077 LD="$gcc_prog_ld" ;;
4078 esac
4079 fi
512b7dfb
PB
4080fi
4081
4082
4083
4084
c6b750e1 4085if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4086 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4087set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4088echo "$as_me:$LINENO: checking for $ac_word" >&5
4089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4090if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4091 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4092else
512b7dfb
PB
4093 if test -n "$GNATBIND"; then
4094 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4095else
c6b750e1
DJ
4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4103 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107done
4108done
4109
9e07f89d
NN
4110fi
4111fi
512b7dfb
PB
4112GNATBIND=$ac_cv_prog_GNATBIND
4113if test -n "$GNATBIND"; then
4114 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4115echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4116else
c6b750e1
DJ
4117 echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
9e07f89d
NN
4119fi
4120
c6b750e1 4121fi
512b7dfb
PB
4122if test -z "$ac_cv_prog_GNATBIND"; then
4123 ac_ct_GNATBIND=$GNATBIND
4124 # Extract the first word of "gnatbind", so it can be a program name with args.
4125set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4126echo "$as_me:$LINENO: checking for $ac_word" >&5
4127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4128if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4129 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4130else
512b7dfb
PB
4131 if test -n "$ac_ct_GNATBIND"; then
4132 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4133else
c6b750e1
DJ
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4141 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145done
4146done
4147
512b7dfb 4148 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4149fi
4150fi
512b7dfb
PB
4151ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4152if test -n "$ac_ct_GNATBIND"; then
4153 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4154echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4155else
c6b750e1
DJ
4156 echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
9e07f89d
NN
4158fi
4159
512b7dfb 4160 GNATBIND=$ac_ct_GNATBIND
24ff9987 4161else
512b7dfb 4162 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4163fi
4164
7df2cd5d 4165if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4166 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4167set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4168echo "$as_me:$LINENO: checking for $ac_word" >&5
4169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4170if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
512b7dfb
PB
4173 if test -n "$GNATMAKE"; then
4174 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4175else
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4183 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188done
4189
4190fi
4191fi
512b7dfb
PB
4192GNATMAKE=$ac_cv_prog_GNATMAKE
4193if test -n "$GNATMAKE"; then
4194 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4195echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4196else
4197 echo "$as_me:$LINENO: result: no" >&5
4198echo "${ECHO_T}no" >&6
4199fi
4200
4201fi
512b7dfb
PB
4202if test -z "$ac_cv_prog_GNATMAKE"; then
4203 ac_ct_GNATMAKE=$GNATMAKE
4204 # Extract the first word of "gnatmake", so it can be a program name with args.
4205set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4206echo "$as_me:$LINENO: checking for $ac_word" >&5
4207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4208if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
512b7dfb
PB
4211 if test -n "$ac_ct_GNATMAKE"; then
4212 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4221 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225done
4226done
4227
512b7dfb 4228 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4229fi
4230fi
512b7dfb
PB
4231ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4232if test -n "$ac_ct_GNATMAKE"; then
4233 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4234echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4235else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238fi
4239
512b7dfb 4240 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4241else
512b7dfb 4242 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4243fi
4244
c6b750e1
DJ
4245echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4246echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4247if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4249else
4250 cat >conftest.adb <<EOF
4251procedure conftest is begin null; end conftest;
4252EOF
4253acx_cv_cc_gcc_supports_ada=no
4254# There is a bug in old released versions of GCC which causes the
4255# driver to exit successfully when the appropriate language module
4256# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4257# Therefore we must check for the error message as well as an
4258# unsuccessful exit.
b8908782
DD
4259# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4260# given a .adb file, but produce no object file. So we must check
4261# if an object file was really produced to guard against this.
9e07f89d 4262errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4263if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4264 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4265fi
4266rm -f conftest.*
4267fi
c6b750e1
DJ
4268echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4269echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4270
512b7dfb 4271if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4272 have_gnat=yes
4273else
4274 have_gnat=no
4275fi
4276
c6b750e1
DJ
4277echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4278echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4279if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4281else
4282 echo abfoo >t1
4283 echo cdfoo >t2
4284 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4285 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4286 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4287 :
4288 else
4289 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4290 fi
4291 fi
b8908782
DD
4292 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4293 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4294 :
b8908782
DD
4295 else
4296 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4297 fi
4298 fi
4299 rm t1 t2
4300
4301fi
c6b750e1
DJ
4302echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4303echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4304do_compare="$gcc_cv_prog_cmp_skip"
4305
4306
9e07f89d 4307
11b04d1f 4308# Check for GMP and MPFR
4b900473 4309gmplibs="-lmpfr -lgmp"
4b1cb4fe 4310gmpinc=
4b900473
PB
4311have_gmp=no
4312
11b04d1f
DD
4313# Specify a location for mpfr
4314# check for this first so it ends up on the link line before gmp.
c6b750e1 4315
11b04d1f
DD
4316# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4317if test "${with_mpfr_dir+set}" = set; then
4318 withval="$with_mpfr_dir"
c6b750e1
DJ
4319 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4320Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4321echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4322Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4323 { (exit 1); exit 1; }; }
4324fi;
11b04d1f
DD
4325
4326
11b04d1f
DD
4327# Check whether --with-mpfr or --without-mpfr was given.
4328if test "${with_mpfr+set}" = set; then
4329 withval="$with_mpfr"
c6b750e1
DJ
4330
4331fi;
11b04d1f 4332
8a0d8a5c
PB
4333# Check whether --with-mpfr_include or --without-mpfr_include was given.
4334if test "${with_mpfr_include+set}" = set; then
4335 withval="$with_mpfr_include"
c6b750e1
DJ
4336
4337fi;
8a0d8a5c
PB
4338
4339# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4340if test "${with_mpfr_lib+set}" = set; then
4341 withval="$with_mpfr_lib"
8a0d8a5c 4342
c6b750e1 4343fi;
11b04d1f
DD
4344
4345if test "x$with_mpfr" != x; then
4346 gmplibs="-L$with_mpfr/lib $gmplibs"
4347 gmpinc="-I$with_mpfr/include"
4348fi
8a0d8a5c
PB
4349if test "x$with_mpfr_include" != x; then
4350 gmpinc="-I$with_mpfr_include"
4351fi
4352if test "x$with_mpfr_lib" != x; then
4353 gmplibs="-L$with_mpfr_lib $gmplibs"
4354fi
4b900473
PB
4355if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4356 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4357 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4358 # Do not test the mpfr version. Assume that it is sufficient, since
4359 # it is in the source tree, and the library has not been built yet
4360 # but it would be included on the link line in the version check below
4361 # hence making the test fail.
4362 have_gmp=yes
4363fi
11b04d1f 4364
4b1cb4fe 4365# Specify a location for gmp
c6b750e1 4366
4b1cb4fe
DD
4367# Check whether --with-gmp-dir or --without-gmp-dir was given.
4368if test "${with_gmp_dir+set}" = set; then
4369 withval="$with_gmp_dir"
c6b750e1
DJ
4370 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4371Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4372echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4373Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4374 { (exit 1); exit 1; }; }
4375fi;
4b1cb4fe
DD
4376
4377
4b1cb4fe
DD
4378# Check whether --with-gmp or --without-gmp was given.
4379if test "${with_gmp+set}" = set; then
4380 withval="$with_gmp"
c6b750e1
DJ
4381
4382fi;
4b1cb4fe 4383
8a0d8a5c
PB
4384# Check whether --with-gmp_include or --without-gmp_include was given.
4385if test "${with_gmp_include+set}" = set; then
4386 withval="$with_gmp_include"
c6b750e1
DJ
4387
4388fi;
8a0d8a5c
PB
4389
4390# Check whether --with-gmp_lib or --without-gmp_lib was given.
4391if test "${with_gmp_lib+set}" = set; then
4392 withval="$with_gmp_lib"
8a0d8a5c 4393
c6b750e1 4394fi;
8a0d8a5c 4395
4b1cb4fe 4396
11b04d1f
DD
4397if test "x$with_gmp" != x; then
4398 gmplibs="-L$with_gmp/lib $gmplibs"
4399 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4400fi
8a0d8a5c
PB
4401if test "x$with_gmp_include" != x; then
4402 gmpinc="-I$with_gmp_include $gmpinc"
4403fi
4404if test "x$with_gmp_lib" != x; then
4405 gmplibs="-L$with_gmp_lib $gmplibs"
4406fi
4b900473
PB
4407if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4408 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4409 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4410 # Do not test the gmp version. Assume that it is sufficient, since
4411 # it is in the source tree, and the library has not been built yet
4412 # but it would be included on the link line in the version check below
4413 # hence making the test fail.
4414 have_gmp=yes
4415fi
4b1cb4fe 4416
ceb92e78 4417if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4418 have_gmp=yes
4419 saved_CFLAGS="$CFLAGS"
4420 CFLAGS="$CFLAGS $gmpinc"
4421 # Check GMP actually works
c6b750e1
DJ
4422 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4423echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4424
4425cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
4b1cb4fe 4431#include "gmp.h"
c6b750e1
DJ
4432int
4433main ()
4434{
4b1cb4fe 4435
4b900473
PB
4436 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4437 choke me
4438 #endif
c6b750e1
DJ
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444rm -f conftest.$ac_objext
4445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 echo "$as_me:$LINENO: result: yes" >&5
4467echo "${ECHO_T}yes" >&6
4468else
4469 echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6; have_gmp=no
4474fi
4475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4476
4b900473
PB
4477 if test x"$have_gmp" = xyes; then
4478 saved_LIBS="$LIBS"
4479 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4480 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4481echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h. */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h. */
9b134994 4488#include <gmp.h>
4b900473 4489 #include <mpfr.h>
c6b750e1
DJ
4490int
4491main ()
4492{
9b134994 4493
4b900473
PB
4494 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4495 choke me
4496 #endif
a3ca38d2
DD
4497 mpfr_t n;
4498 mpfr_t x;
4b900473 4499 int t;
a3ca38d2
DD
4500 mpfr_init (n);
4501 mpfr_init (x);
4b900473
PB
4502 mpfr_atan2 (n, n, x, GMP_RNDN);
4503 mpfr_erfc (n, x, GMP_RNDN);
4504 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510rm -f conftest.$ac_objext conftest$ac_exeext
4511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try='test -z "$ac_c_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest$ac_exeext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
4b1cb4fe 4538#include <gmp.h>
4b900473 4539 #include <mpfr.h>
c6b750e1
DJ
4540int
4541main ()
4542{
9dbaa842 4543
4b900473
PB
4544 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4545 choke me
4546 #endif
4547 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4548
4549 ;
4550 return 0;
4551}
4552_ACEOF
4553rm -f conftest.$ac_objext conftest$ac_exeext
4554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>conftest.er1
4556 ac_status=$?
4557 grep -v '^ *+' conftest.er1 >conftest.err
4558 rm -f conftest.er1
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag"
4563 || test ! -s conftest.err'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest$ac_exeext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 echo "$as_me:$LINENO: result: yes" >&5
4576echo "${ECHO_T}yes" >&6
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4582echo "${ECHO_T}buggy but acceptable" >&6
4583fi
4584rm -f conftest.err conftest.$ac_objext \
4585 conftest$ac_exeext conftest.$ac_ext
4586else
4587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
4589
4590echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6; have_gmp=no
4592fi
4593rm -f conftest.err conftest.$ac_objext \
4594 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4595 LIBS="$saved_LIBS"
4596 fi
4597 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4598
4b900473 4599 if test x$have_gmp != xyes; then
c6b750e1
DJ
4600 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4601Try the --with-gmp and/or --with-mpfr options to specify their locations.
4602Copies of these libraries' source code can be found at their respective
4603hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4604See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4605If you obtained GMP and/or MPFR from a vendor distribution package, make
4606sure that you have installed both the libraries and the header files.
4607They may be located in separate packages." >&5
4608echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4609Try the --with-gmp and/or --with-mpfr options to specify their locations.
4610Copies of these libraries' source code can be found at their respective
4611hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4612See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4613If you obtained GMP and/or MPFR from a vendor distribution package, make
4614sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4615They may be located in separate packages." >&2;}
4616 { (exit 1); exit 1; }; }
4b900473 4617 fi
9dbaa842
DD
4618fi
4619
11b04d1f 4620# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4621
4622
4623
947f426e 4624# By default, C is the only stage 1 language.
9b134994 4625stage1_languages=,c,
1d39f329 4626
9e07f89d
NN
4627# Figure out what language subdirectories are present.
4628# Look if the user specified --enable-languages="..."; if not, use
4629# the environment variable $LANGUAGES if defined. $LANGUAGES might
4630# go away some day.
4631# NB: embedded tabs in this IF block -- do not untabify
4632if test -d ${srcdir}/gcc; then
4633 if test x"${enable_languages+set}" != xset; then
4634 if test x"${LANGUAGES+set}" = xset; then
4635 enable_languages="${LANGUAGES}"
4636 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4637 else
4638 enable_languages=all
4639 fi
4640 else
4641 if test x"${enable_languages}" = x ||
4642 test x"${enable_languages}" = xyes;
4643 then
4644 echo configure.in: --enable-languages needs at least one language argument 1>&2
4645 exit 1
4646 fi
4647 fi
4648 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4649
096f7d00
DE
4650 # 'f95' is the old name for the 'fortran' language. We issue a warning
4651 # and make the substitution.
4652 case ,${enable_languages}, in
4653 *,f95,*)
4654 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4655 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4656 ;;
4657 esac
4658
9e07f89d
NN
4659 # First scan to see if an enabled language requires some other language.
4660 # We assume that a given config-lang.in will list all the language
4661 # front ends it requires, even if some are required indirectly.
4662 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4663 case ${lang_frag} in
4664 ..) ;;
4665 # The odd quoting in the next line works around
4666 # an apparent bug in bash 1.12 on linux.
4667 ${srcdir}/gcc/[*]/config-lang.in) ;;
4668 *)
4669 # From the config-lang.in, get $language, $lang_requires
4670 language=
4671 lang_requires=
4672 . ${lang_frag}
4673 for other in ${lang_requires} ; do
4674 case ,${enable_languages}, in
4675 *,$other,*) ;;
4676 *,all,*) ;;
4677 *,$language,*)
4678 echo " \`$other' language required by \`$language'; enabling" 1>&2
4679 enable_languages="${enable_languages},${other}"
4680 ;;
4681 esac
4682 done
4683 ;;
4684 esac
4685 done
4686
9b134994 4687 new_enable_languages=,c,
9e07f89d 4688 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4689 potential_languages=,c,
9e07f89d
NN
4690
4691 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4692 case ${lang_frag} in
4693 ..) ;;
4694 # The odd quoting in the next line works around
4695 # an apparent bug in bash 1.12 on linux.
4696 ${srcdir}/gcc/[*]/config-lang.in) ;;
4697 *)
c6b750e1 4698 # From the config-lang.in, get $language, $target_libs,
1d39f329 4699 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4700 language=
4701 target_libs=
4702 lang_dirs=
64ce424c 4703 subdir_requires=
9b134994
PB
4704 boot_language=no
4705 build_by_default=yes
9e07f89d 4706 . ${lang_frag}
9b134994
PB
4707 if test x${language} = x; then
4708 echo "${lang_frag} doesn't set \$language." 1>&2
4709 exit 1
4710 fi
4711
4712 case ,${enable_languages}, in
4713 *,${language},*)
9e07f89d
NN
4714 # Language was explicitly selected; include it.
4715 add_this_lang=yes
4716 ;;
9b134994
PB
4717 *,all,*)
4718 # 'all' was selected, select it if it is a default language
4719 add_this_lang=${build_by_default}
9e07f89d
NN
4720 ;;
4721 *)
4722 add_this_lang=no
4723 ;;
4724 esac
4b1cb4fe 4725
64ce424c 4726 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4727 for i in $subdir_requires; do
3d3adb43 4728 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4729 case ,${enable_languages}, in
4730 *,${language},*)
4731 # Specifically requested language; tell them.
c6b750e1
DJ
4732 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4733echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4734 { (exit 1); exit 1; }; }
64ce424c
PB
4735 ;;
4736 *)
4737 # Silently disable.
9b134994 4738 add_this_lang=unsupported
64ce424c
PB
4739 ;;
4740 esac
4741 done
4742
9b134994
PB
4743 # Disable Ada if no preexisting GNAT is available.
4744 case ,${enable_languages},:${language}:${have_gnat} in
4745 *,${language},*:ada:no)
4746 # Specifically requested language; tell them.
c6b750e1
DJ
4747 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4748echo "$as_me: error: GNAT is required to build $language" >&2;}
4749 { (exit 1); exit 1; }; }
9b134994
PB
4750 ;;
4751 *:ada:no)
4752 # Silently disable.
4753 add_this_lang=unsupported
4754 ;;
4755 esac
4756
59f7ec45
HPN
4757 # Disable a language that is unsupported by the target.
4758 case " $unsupported_languages " in
4759 *" $language "*)
9b134994 4760 add_this_lang=unsupported
59f7ec45
HPN
4761 ;;
4762 esac
4763
4b1cb4fe 4764 case $add_this_lang in
9b134994 4765 unsupported)
9e07f89d 4766 # Remove language-dependent dirs.
1d39f329
NN
4767 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4768 ;;
9b134994
PB
4769 no)
4770 # Remove language-dependent dirs; still show language as supported.
4771 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4772 potential_languages="${potential_languages}${language},"
4773 ;;
4774 yes)
4775 new_enable_languages="${new_enable_languages}${language},"
4776 potential_languages="${potential_languages}${language},"
1d39f329
NN
4777 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4778 case ${boot_language} in
4779 yes)
4fa63067 4780 # Add to (comma-separated) list of stage 1 languages.
9b134994 4781 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4782 ;;
4783 esac
4784 ;;
9e07f89d
NN
4785 esac
4786 ;;
4787 esac
4788 done
4789
9b134994
PB
4790 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4791if test "${enable_stage1_languages+set}" = set; then
4792 enableval="$enable_stage1_languages"
4793 case ,${enable_stage1_languages}, in
4794 ,no,|,,)
4795 # Set it to something that will have no effect in the loop below
4796 enable_stage1_languages=c ;;
4797 ,yes,)
4798 enable_stage1_languages=`echo $new_enable_languages | \
4799 sed -e "s/^,//" -e "s/,$//" ` ;;
4800 *,all,*)
4801 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4802 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4803 esac
4804
4805 # Add "good" languages from enable_stage1_languages to stage1_languages,
4806 # while "bad" languages go in missing_languages. Leave no duplicates.
4807 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4808 case $potential_languages in
4809 *,$i,*)
4810 case $stage1_languages in
4811 *,$i,*) ;;
4812 *) stage1_languages="$stage1_languages$i," ;;
4813 esac ;;
4814 *)
4815 case $missing_languages in
4816 *,$i,*) ;;
4817 *) missing_languages="$missing_languages$i," ;;
4818 esac ;;
4819 esac
4820 done
c6b750e1 4821fi;
9b134994
PB
4822
4823 # Remove leading/trailing commas that were added for simplicity
4824 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4825 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4826 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4827 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4828
9e07f89d 4829 if test "x$missing_languages" != x; then
c6b750e1 4830 { { echo "$as_me:$LINENO: error:
27258dd4 4831The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4832Supported languages are: ${potential_languages}" >&5
4833echo "$as_me: error:
4834The following requested languages could not be built: ${missing_languages}
4835Supported languages are: ${potential_languages}" >&2;}
4836 { (exit 1); exit 1; }; }
9e07f89d 4837 fi
9e07f89d
NN
4838 if test "x$new_enable_languages" != "x$enable_languages"; then
4839 echo The following languages will be built: ${new_enable_languages}
9b134994 4840 enable_languages="$new_enable_languages"
9e07f89d 4841 fi
9b134994 4842
c6b750e1 4843
81ec575a 4844 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4845fi
4846
a6df5a19
PB
4847# Handle --disable-<component> generically.
4848for dir in $configdirs $build_configdirs $target_configdirs ; do
4849 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4850 if eval test x\${enable_${dirname}} "=" xno ; then
4851 noconfigdirs="$noconfigdirs $dir"
4852 fi
4853done
4854
4f0ef2d8
CD
4855# Check for Boehm's garbage collector
4856# Check whether --enable-objc-gc or --disable-objc-gc was given.
4857if test "${enable_objc_gc+set}" = set; then
4858 enableval="$enable_objc_gc"
4859 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4860 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4861 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4862echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4863 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4864 ;;
4865esac
c6b750e1 4866fi;
4f0ef2d8
CD
4867
4868# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4869case ,${enable_languages},:${enable_objc_gc} in
4870 *,objc,*:yes)
4f0ef2d8
CD
4871 # Keep target-boehm-gc if requested for Objective-C.
4872 ;;
4f0ef2d8 4873 *)
d42c4017
DA
4874 # Otherwise remove target-boehm-gc depending on target-libjava.
4875 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4876 noconfigdirs="$noconfigdirs target-boehm-gc"
4877 fi
4f0ef2d8
CD
4878 ;;
4879esac
4880
caeba88f
AL
4881# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4882# $build_configdirs and $target_configdirs.
9e07f89d
NN
4883# If we have the source for $noconfigdirs entries, add them to $notsupp.
4884
4885notsupp=""
4886for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4887 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4888 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4889 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4890 if test -r $srcdir/$dirname/configure ; then
4891 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4892 true
4893 else
4894 notsupp="$notsupp $dir"
4895 fi
4896 fi
4897 fi
caeba88f
AL
4898 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4899 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4900 if test -r $srcdir/$dirname/configure ; then
4901 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4902 true
4903 else
4904 notsupp="$notsupp $dir"
4905 fi
4906 fi
4907 fi
9e07f89d
NN
4908 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4909 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4910 if test -r $srcdir/$dirname/configure ; then
4911 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4912 true
4913 else
4914 notsupp="$notsupp $dir"
4915 fi
4916 fi
4917 fi
4918done
4919
4920# Sometimes the tools are distributed with libiberty but with no other
4921# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4922# Don't let libgcc imply libiberty either.
9e07f89d 4923if test -n "${target_configdirs}" ; then
f86e35b8 4924 libgcc=
9e07f89d
NN
4925 others=
4926 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4927 if test "$i" = "libgcc"; then
4928 libgcc=target-libgcc
4929 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4930 if test -r $srcdir/$i/configure ; then
4931 others=yes;
4932 break;
4933 fi
4934 fi
4935 done
4936 if test -z "${others}" ; then
f86e35b8 4937 target_configdirs=$libgcc
9e07f89d
NN
4938 fi
4939fi
4940
4941# Quietly strip out all directories which aren't configurable in this tree.
4942# This relies on all configurable subdirectories being autoconfiscated, which
4943# is now the case.
6a9cf61e
PB
4944build_configdirs_all="$build_configdirs"
4945build_configdirs=
4946for i in ${build_configdirs_all} ; do
c6b750e1 4947 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4948 if test -f ${srcdir}/$j/configure ; then
4949 build_configdirs="${build_configdirs} $i"
4950 fi
4951done
4952
9e07f89d
NN
4953configdirs_all="$configdirs"
4954configdirs=
4955for i in ${configdirs_all} ; do
4956 if test -f ${srcdir}/$i/configure ; then
4957 configdirs="${configdirs} $i"
4958 fi
4959done
6a9cf61e 4960
9e07f89d
NN
4961target_configdirs_all="$target_configdirs"
4962target_configdirs=
4963for i in ${target_configdirs_all} ; do
c6b750e1 4964 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4965 if test -f ${srcdir}/$j/configure ; then
4966 target_configdirs="${target_configdirs} $i"
4967 fi
4968done
4969
4970# Produce a warning message for the subdirs we can't configure.
4971# This isn't especially interesting in the Cygnus tree, but in the individual
4972# FSF releases, it's important to let people know when their machine isn't
4973# supported by the one or two programs in a package.
4974
4975if test -n "${notsupp}" && test -z "${norecursion}" ; then
4976 # If $appdirs is non-empty, at least one of those directories must still
4977 # be configured, or we error out. (E.g., if the gas release supports a
4978 # specified target in some subdirs but not the gas subdir, we shouldn't
4979 # pretend that all is well.)
4980 if test -n "$appdirs" ; then
4981 for dir in $appdirs ; do
4982 if test -r $dir/Makefile.in ; then
4983 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4984 appdirs=""
4985 break
4986 fi
6a9cf61e 4987 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4988 appdirs=""
4989 break
4990 fi
4991 fi
4992 done
4993 if test -n "$appdirs" ; then
4994 echo "*** This configuration is not supported by this package." 1>&2
4995 exit 1
4996 fi
4997 fi
4998 # Okay, some application will build, or we don't care to check. Still
4999 # notify of subdirs not getting built.
5000 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5001 echo " ${notsupp}" 1>&2
5002 echo " (Any other directories should still work fine.)" 1>&2
5003fi
5004
5005case "$host" in
5006 *msdosdjgpp*)
5007 enable_gdbtk=no ;;
5008esac
5009
18f6b6ee
PB
5010# To find our prefix, in gcc_cv_tool_prefix.
5011
5012# The user is always right.
5013if test "${PATH_SEPARATOR+set}" != set; then
5014 echo "#! /bin/sh" >conf$$.sh
5015 echo "exit 0" >>conf$$.sh
5016 chmod +x conf$$.sh
5017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5018 PATH_SEPARATOR=';'
5019 else
5020 PATH_SEPARATOR=:
5021 fi
5022 rm -f conf$$.sh
5023fi
5024
5025
5026
5027if test "x$exec_prefix" = xNONE; then
5028 if test "x$prefix" = xNONE; then
5029 gcc_cv_tool_prefix=$ac_default_prefix
5030 else
5031 gcc_cv_tool_prefix=$prefix
5032 fi
5033else
5034 gcc_cv_tool_prefix=$exec_prefix
5035fi
5036
5037# If there is no compiler in the tree, use the PATH only. In any
5038# case, if there is no compiler in the tree nobody should use
5039# AS_FOR_TARGET and LD_FOR_TARGET.
5040if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5041 gcc_version=`cat $srcdir/gcc/BASE-VER`
5042 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5043 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5044 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5045 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5046 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5048else
5049 gcc_cv_tool_dirs=
5050fi
5051
5052if test x$build = x$target && test -n "$md_exec_prefix"; then
5053 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5054fi
5055
5056
5057
9e07f89d
NN
5058copy_dirs=
5059
c6b750e1 5060
a19b6204
MM
5061# Check whether --with-build-sysroot or --without-build-sysroot was given.
5062if test "${with_build_sysroot+set}" = set; then
5063 withval="$with_build_sysroot"
5064 if test x"$withval" != x ; then
5065 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5066 fi
5067else
5068 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5069fi;
a19b6204
MM
5070
5071
9e07f89d
NN
5072# Handle --with-headers=XXX. If the value is not "yes", the contents of
5073# the named directory are copied to $(tooldir)/sys-include.
5074if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5075 if test x${is_cross_compiler} = xno ; then
5076 echo 1>&2 '***' --with-headers is only supported when cross compiling
5077 exit 1
5078 fi
5079 if test x"${with_headers}" != xyes ; then
18f6b6ee 5080 x=${gcc_cv_tool_prefix}
c6b750e1 5081 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5082 fi
5083fi
5084
5085# Handle --with-libs=XXX. If the value is not "yes", the contents of
5086# the name directories are copied to $(tooldir)/lib. Multiple directories
5087# are permitted.
5088if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5089 if test x${is_cross_compiler} = xno ; then
5090 echo 1>&2 '***' --with-libs is only supported when cross compiling
5091 exit 1
5092 fi
5093 if test x"${with_libs}" != xyes ; then
5094 # Copy the libraries in reverse order, so that files in the first named
5095 # library override files in subsequent libraries.
18f6b6ee 5096 x=${gcc_cv_tool_prefix}
9e07f89d 5097 for l in ${with_libs}; do
c6b750e1 5098 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5099 done
5100 fi
5101fi
5102
2429c060
PB
5103# Set with_gnu_as and with_gnu_ld as appropriate.
5104#
5105# This is done by determining whether or not the appropriate directory
5106# is available, and by checking whether or not specific configurations
5107# have requested that this magic not happen.
c6b750e1
DJ
5108#
5109# The command line options always override the explicit settings in
2429c060
PB
5110# configure.in, and the settings in configure.in override this magic.
5111#
c6b750e1 5112# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5113# want to do that, then you should use the --without-gnu-as and
5114# --without-gnu-ld options for the configure script.
5115
5116if test x${use_gnu_as} = x &&
5117 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5118 with_gnu_as=yes
5119 extra_host_args="$extra_host_args --with-gnu-as"
5120fi
5121
5122if test x${use_gnu_ld} = x &&
5123 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5124 with_gnu_ld=yes
5125 extra_host_args="$extra_host_args --with-gnu-ld"
5126fi
5127
5128# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5129# can detect this case.
5130
5131if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5132 with_newlib=yes
5133 extra_host_args="$extra_host_args --with-newlib"
5134fi
5135
9e07f89d
NN
5136# Handle ${copy_dirs}
5137set fnord ${copy_dirs}
5138shift
5139while test $# != 0 ; do
5140 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5141 :
5142 else
5143 echo Copying $1 to $2
5144
5145 # Use the install script to create the directory and all required
5146 # parent directories.
5147 if test -d $2 ; then
5148 :
5149 else
5150 echo >config.temp
5151 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5152 fi
5153
5154 # Copy the directory, assuming we have tar.
5155 # FIXME: Should we use B in the second tar? Not all systems support it.
5156 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5157
5158 # It is the responsibility of the user to correctly adjust all
5159 # symlinks. If somebody can figure out how to handle them correctly
5160 # here, feel free to add the code.
5161
5162 echo $1 > $2/COPIED
5163 fi
5164 shift; shift
5165done
5166
2429c060
PB
5167# Determine a target-dependent exec_prefix that the installed
5168# gcc will search in. Keep this list sorted by triplet, with
5169# the *-*-osname triplets last.
5170md_exec_prefix=
5171case "${target}" in
5172 alpha*-*-*vms*)
5173 md_exec_prefix=/gnu/lib/gcc-lib
5174 ;;
521ec477 5175 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5176 md_exec_prefix=/dev/env/DJDIR/bin
5177 ;;
521ec477 5178 i[34567]86-*-sco3.2v5*)
2429c060
PB
5179 if test $with_gnu_as = yes; then
5180 md_exec_prefix=/usr/gnu/bin
5181 else
5182 md_exec_prefix=/usr/ccs/bin/elf
5183 fi
5184 ;;
5185
5186 mn10300-*-* | \
5187 powerpc-*-chorusos* | \
5188 powerpc*-*-eabi* | \
5189 powerpc*-*-sysv* | \
5190 powerpc*-*-kaos* | \
5191 s390x-ibm-tpf*)
5192 md_exec_prefix=/usr/ccs/bin
5193 ;;
5194 sparc64-*-elf*)
5195 ;;
5196 v850*-*-*)
5197 md_exec_prefix=/usr/ccs/bin
5198 ;;
5199 xtensa-*-elf*)
5200 ;;
5201
5202 *-*-beos* | \
5203 *-*-elf* | \
5204 *-*-hpux* | \
5205 *-*-netware* | \
5206 *-*-nto-qnx* | \
5207 *-*-rtems* | \
5208 *-*-solaris2* | \
521ec477 5209 *-*-sysv[45]* | \
2429c060
PB
5210 *-*-vxworks* | \
5211 *-wrs-windiss)
5212 md_exec_prefix=/usr/ccs/bin
5213 ;;
5214esac
5215
a0da8069
NN
5216extra_arflags_for_target=
5217extra_nmflags_for_target=
5218extra_ranlibflags_for_target=
5219target_makefile_frag=/dev/null
5220case "${target}" in
4e206d7e
DB
5221 mep*-*-*)
5222 target_makefile_frag="config/mt-mep"
5223 ;;
77d7106f
AM
5224 spu-*-*)
5225 target_makefile_frag="config/mt-spu"
5226 ;;
429acdec
RS
5227 mips*-sde-elf*)
5228 target_makefile_frag="config/mt-sde"
5229 ;;
2a3124ca 5230 *-*-netware*)
a0da8069
NN
5231 target_makefile_frag="config/mt-netware"
5232 ;;
3d6dfe0f
NN
5233 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5234 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5235 ;;
5236 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5237 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5238 # commands to handle both 32-bit and 64-bit objects. These flags are
5239 # harmless if we're using GNU nm or ar.
5240 extra_arflags_for_target=" -X32_64"
5241 extra_nmflags_for_target=" -B -X32_64"
5242 ;;
5243 *-*-darwin*)
5244 # ranlib from Darwin requires the -c flag to look at common symbols.
5245 extra_ranlibflags_for_target=" -c"
5246 ;;
5247 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5248 target_makefile_frag="config/mt-wince"
5249 ;;
5250esac
5251
5252alphaieee_frag=/dev/null
5253case $target in
5254 alpha*-*-*)
5255 # This just makes sure to use the -mieee option to build target libs.
5256 # This should probably be set individually by each library.
5257 alphaieee_frag="config/mt-alphaieee"
5258 ;;
5259esac
5260
5261# If --enable-target-optspace always use -Os instead of -O2 to build
5262# the target libraries, similarly if it is not specified, use -Os
5263# on selected platforms.
5264ospace_frag=/dev/null
5265case "${enable_target_optspace}:${target}" in
5266 yes:*)
5267 ospace_frag="config/mt-ospace"
5268 ;;
5269 :d30v-*)
5270 ospace_frag="config/mt-d30v"
5271 ;;
5272 :m32r-* | :d10v-* | :fr30-*)
5273 ospace_frag="config/mt-ospace"
5274 ;;
5275 no:* | :*)
5276 ;;
5277 *)
5278 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5279 ;;
5280esac
5281
a0da8069
NN
5282# Default to using --with-stabs for certain targets.
5283if test x${with_stabs} = x ; then
5284 case "${target}" in
e31d1ea3 5285 mips*-*-irix[56]*)
a0da8069
NN
5286 ;;
5287 mips*-*-* | alpha*-*-osf*)
5288 with_stabs=yes;
5289 extra_host_args="${extra_host_args} --with-stabs"
5290 ;;
5291 esac
5292fi
5293
5294# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5295# them automatically.
5296case "${host}" in
c6b750e1 5297 hppa*64*-*-hpux11*)
a0da8069
NN
5298 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5299 ;;
5300esac
5301
a0da8069
NN
5302# Some systems (e.g., one of the i386-aix systems the gas testers are
5303# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5304tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5305build_tooldir=${tooldir}
5306
a0da8069
NN
5307# Create a .gdbinit file which runs the one in srcdir
5308# and tells GDB to look there for source files.
5309
5310if test -r ${srcdir}/.gdbinit ; then
5311 case ${srcdir} in
5312 .) ;;
5313 *) cat > ./.gdbinit <<EOF
5314# ${NO_EDIT}
5315dir ${srcdir}
5316dir .
5317source ${srcdir}/.gdbinit
5318EOF
5319 ;;
5320 esac
5321fi
5322
a0da8069
NN
5323# Make sure that the compiler is able to generate an executable. If it
5324# can't, we are probably in trouble. We don't care whether we can run the
5325# executable--we might be using a cross compiler--we only care whether it
5326# can be created. At this point the main configure script has set CC.
5327we_are_ok=no
5328echo "int main () { return 0; }" > conftest.c
5329${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5330if test $? = 0 ; then
5331 if test -s conftest || test -s conftest.exe ; then
5332 we_are_ok=yes
5333 fi
c6b750e1 5334fi
a0da8069
NN
5335case $we_are_ok in
5336 no)
5337 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5338 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5339 rm -f conftest*
5340 exit 1
5341 ;;
5342esac
5343rm -f conftest*
5344
5345# The Solaris /usr/ucb/cc compiler does not appear to work.
5346case "${host}" in
5347 sparc-sun-solaris2*)
5348 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5349 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5350 could_use=
5351 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5352 if test -d /opt/cygnus/bin ; then
5353 if test "$could_use" = "" ; then
5354 could_use="/opt/cygnus/bin"
5355 else
5356 could_use="$could_use or /opt/cygnus/bin"
5357 fi
5358 fi
5359 if test "$could_use" = "" ; then
5360 echo "Warning: compilation may fail because you're using"
5361 echo "/usr/ucb/cc. You should change your PATH or CC "
5362 echo "variable and rerun configure."
5363 else
5364 echo "Warning: compilation may fail because you're using"
5365 echo "/usr/ucb/cc, when you should use the C compiler from"
5366 echo "$could_use. You should change your"
5367 echo "PATH or CC variable and rerun configure."
5368 fi
5369 fi
5370 ;;
5371esac
5372
a0da8069
NN
5373case "${host}" in
5374 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5375 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5376 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5377esac
5378
5379# Record target_configdirs and the configure arguments for target and
5380# build configuration in Makefile.
5381target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5382build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5383
a0da8069
NN
5384# Determine whether gdb needs tk/tcl or not.
5385# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5386# and in that case we want gdb to be built without tk. Ugh!
5387# In fact I believe gdb is the *only* package directly dependent on tk,
5388# so we should be able to put the 'maybe's in unconditionally and
5389# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5390# 100% sure that that's safe though.
c180f501 5391
675c6968 5392gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5393case "$enable_gdbtk" in
5394 no)
5395 GDB_TK="" ;;
c180f501
AC
5396 yes)
5397 GDB_TK="${gdb_tk}" ;;
a0da8069 5398 *)
c180f501
AC
5399 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5400 # distro. Eventually someone will fix this and move Insight, nee
5401 # gdbtk to a separate directory.
5402 if test -d ${srcdir}/gdb/gdbtk ; then
5403 GDB_TK="${gdb_tk}"
5404 else
5405 GDB_TK=""
5406 fi
5407 ;;
a0da8069 5408esac
907be67c
DJ
5409CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5410INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5411
6bd3dfaa 5412# Strip out unwanted targets.
dd12c3a8
NN
5413
5414# While at that, we remove Makefiles if we were started for recursive
5415# configuration, so that the top-level Makefile reconfigures them,
5416# like we used to do when configure itself was recursive.
dd12c3a8 5417
6bd3dfaa
PB
5418# Loop over modules. $extrasub must be used with care, limiting as
5419# much as possible the usage of range addresses. That's because autoconf
5420# splits the sed script to overcome limits in the number of commands,
5421# and relying on carefully-timed sed passes may turn out to be very hard
5422# to maintain later. In this particular case, you just have to be careful
5423# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5424
319cab08
PB
5425# Check whether --enable-bootstrap or --disable-bootstrap was given.
5426if test "${enable_bootstrap+set}" = set; then
5427 enableval="$enable_bootstrap"
c6b750e1 5428
319cab08 5429else
9cb3fa6f 5430 enable_bootstrap=default
c6b750e1 5431fi;
319cab08 5432
9cb3fa6f
PB
5433# Issue errors and warnings for invalid/strange bootstrap combinations.
5434case "$configdirs" in
5435 *gcc*) have_compiler=yes ;;
5436 *) have_compiler=no ;;
5437esac
5438
5439case "$have_compiler:$host:$target:$enable_bootstrap" in
5440 *:*:*:no) ;;
5441
0aed8855 5442 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5443 # and we are in a native configuration.
5444 yes:$build:$build:default)
0aed8855 5445 enable_bootstrap=yes ;;
9cb3fa6f
PB
5446
5447 *:*:*:default)
5448 enable_bootstrap=no ;;
5449
5450 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5451 yes:$build:$build:yes)
9cb3fa6f
PB
5452 ;;
5453
5454 # Other configurations, but we have a compiler. Assume the user knows
5455 # what he's doing.
80911fe1 5456 yes:*:*:yes)
c6b750e1
DJ
5457 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5458echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5459 ;;
5460
5461 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5462 no:*:*:yes)
c6b750e1
DJ
5463 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5464echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5465 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5466
5467 # Fail if wrong command line
5468 *)
c6b750e1
DJ
5469 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5470echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5471 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5472 ;;
5473esac
5474
5475# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5476case "$enable_bootstrap" in
5477 yes)
498d4a71 5478 bootstrap_suffix=bootstrap ;;
319cab08 5479 no)
498d4a71 5480 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5481esac
5482
6a9cf61e 5483for module in ${build_configdirs} ; do
498d4a71
CF
5484 if test -z "${no_recursion}" \
5485 && test -f ${build_subdir}/${module}/Makefile; then
5486 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5487 rm -f ${build_subdir}/${module}/Makefile
5488 fi
5489 extrasub="$extrasub
5490/^@if build-$module\$/d
5491/^@endif build-$module\$/d
5492/^@if build-$module-$bootstrap_suffix\$/d
5493/^@endif build-$module-$bootstrap_suffix\$/d"
5494done
5495for module in ${configdirs} ; do
80911fe1 5496 if test -z "${no_recursion}"; then
8cf39b1b 5497 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5498 if test -f ${file}; then
5499 echo 1>&2 "*** removing ${file} to force reconfigure"
5500 rm -f ${file}
5501 fi
5502 done
498d4a71
CF
5503 fi
5504 extrasub="$extrasub
5505/^@if $module\$/d
5506/^@endif $module\$/d
5507/^@if $module-$bootstrap_suffix\$/d
5508/^@endif $module-$bootstrap_suffix\$/d"
5509done
5510for module in ${target_configdirs} ; do
5511 if test -z "${no_recursion}" \
5512 && test -f ${target_subdir}/${module}/Makefile; then
5513 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5514 rm -f ${target_subdir}/${module}/Makefile
5515 fi
5516 extrasub="$extrasub
5517/^@if target-$module\$/d
5518/^@endif target-$module\$/d
5519/^@if target-$module-$bootstrap_suffix\$/d
5520/^@endif target-$module-$bootstrap_suffix\$/d"
5521done
5522
6bd3dfaa
PB
5523extrasub="$extrasub
5524/^@if /,/^@endif /d"
a0da8069
NN
5525
5526# Create the serialization dependencies. This uses a temporary file.
5527
e6bfb94a
AO
5528# Check whether --enable-serial-configure or --disable-serial-configure was given.
5529if test "${enable_serial_configure+set}" = set; then
5530 enableval="$enable_serial_configure"
e6bfb94a 5531
c6b750e1 5532fi;
e6bfb94a 5533
1047cb91
DD
5534case ${enable_serial_configure} in
5535 yes)
5536 enable_serial_build_configure=yes
5537 enable_serial_host_configure=yes
5538 enable_serial_target_configure=yes
5539 ;;
5540esac
5541
a0da8069
NN
5542# These force 'configure's to be done one at a time, to avoid problems
5543# with contention over a shared config.cache.
5544rm -f serdep.tmp
e6bfb94a 5545echo '# serdep.tmp' > serdep.tmp
a0da8069 5546olditem=
1047cb91 5547test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5548for item in ${build_configdirs} ; do
5549 case ${olditem} in
5550 "") ;;
e6bfb94a 5551 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5552 esac
5553 olditem=${item}
5554done
5555olditem=
1047cb91 5556test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5557for item in ${configdirs} ; do
5558 case ${olditem} in
5559 "") ;;
e6bfb94a 5560 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5561 esac
5562 olditem=${item}
5563done
5564olditem=
1047cb91 5565test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5566for item in ${target_configdirs} ; do
5567 case ${olditem} in
5568 "") ;;
e6bfb94a 5569 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5570 esac
5571 olditem=${item}
5572done
5573serialization_dependencies=serdep.tmp
5574
5575
e6bfb94a 5576# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5577# target, nonopt, and variable assignments. These are the ones we
5578# might not want to pass down to subconfigures. Also strip
5579# program-prefix, program-suffix, and program-transform-name, so that
5580# we can pass down a consistent program-transform-name.
5581baseargs=
5582keep_next=no
5583skip_next=no
5584eval "set -- $ac_configure_args"
18f6b6ee
PB
5585for ac_arg
5586do
c6b750e1
DJ
5587 if test X"$skip_next" = X"yes"; then
5588 skip_next=no
5589 continue
5590 fi
5591 if test X"$keep_next" = X"yes"; then
5592 case $ac_arg in
5593 *\'*)
5594 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5595 esac
5596 baseargs="$baseargs '$ac_arg'"
5597 keep_next=no
5598 continue
5599 fi
5600
5601 # Handle separated arguments. Based on the logic generated by
5602 # autoconf 2.59.
5603 case $ac_arg in
5604 *=* | --config-cache | -C | -disable-* | --disable-* \
5605 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5606 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5607 | -with-* | --with-* | -without-* | --without-* | --x)
5608 separate_arg=no
5609 ;;
5610 -*)
5611 separate_arg=yes
5612 ;;
5613 *)
5614 separate_arg=no
5615 ;;
5616 esac
5617
5618 case "$ac_arg" in
5619 --no*)
5620 continue
5621 ;;
5622 --c* | \
5623 --sr* | \
5624 --ho* | \
5625 --bu* | \
5626 --t* | \
5627 --program-* | \
5628 -cache_file* | \
5629 -srcdir* | \
5630 -host* | \
5631 -build* | \
5632 -target* | \
5633 -program-prefix* | \
5634 -program-suffix* | \
5635 -program-transform-name* )
5636 skip_next=$separate_arg
5637 continue
5638 ;;
5639 -*)
5640 # An option. Add it.
5641 case $ac_arg in
5642 *\'*)
5643 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5644 esac
5645 baseargs="$baseargs '$ac_arg'"
5646 keep_next=$separate_arg
5647 ;;
5648 *)
5649 # Either a variable assignment, or a nonopt (triplet). Don't
5650 # pass it down; let the Makefile handle this.
5651 continue
5652 ;;
5653 esac
5654done
5655# Remove the initial space we just introduced and, as these will be
5656# expanded by make, quote '$'.
5657baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5658
f27d4f92
DJ
5659# Add in --program-transform-name, after --program-prefix and
5660# --program-suffix have been applied to it. Autoconf has already
5661# doubled dollar signs and backslashes in program_transform_name; we want
5662# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5663# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5664# Also, because we want to override the logic in subdir configure scripts to
5665# choose program_transform_name, replace any s,x,x, with s,y,y,.
5666sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5667${program_transform_name}
5668EOF_SED
5669gcc_transform_name=`cat conftestsed.out`
5670rm -f conftestsed.out
5671baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5672if test "$silent" = yes; then
5673 baseargs="$baseargs --silent"
5674fi
f27d4f92 5675
a0da8069
NN
5676# For the build-side libraries, we just need to pretend we're native,
5677# and not use the same cache file. Multilibs are neither needed nor
5678# desired.
4b900473 5679build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5680
5681# For host modules, accept cache file option, or specification as blank.
5682case "${cache_file}" in
5683"") # empty
5684 cache_file_option="" ;;
5685/* | [A-Za-z]:[\\/]* ) # absolute path
5686 cache_file_option="--cache-file=${cache_file}" ;;
5687*) # relative path
5688 cache_file_option="--cache-file=../${cache_file}" ;;
5689esac
5690
82252c06
NN
5691# Host dirs don't like to share a cache file either, horribly enough.
5692# This seems to be due to autoconf 2.5x stupidity.
4b900473 5693host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5694
5695target_configargs=${baseargs}
5696
5697# Passing a --with-cross-host argument lets the target libraries know
5698# whether they are being built with a cross-compiler or being built
5699# native. However, it would be better to use other mechanisms to make the
5700# sorts of decisions they want to make on this basis. Please consider
5701# this option to be deprecated. FIXME.
5702if test x${is_cross_compiler} = xyes ; then
c6b750e1 5703 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5704fi
5705
5706# Default to --enable-multilib.
5707if test x${enable_multilib} = x ; then
5708 target_configargs="--enable-multilib ${target_configargs}"
5709fi
5710
5711# Pass --with-newlib if appropriate. Note that target_configdirs has
5712# changed from the earlier setting of with_newlib.
5713if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5714 target_configargs="--with-newlib ${target_configargs}"
5715fi
5716
95036d20
NN
5717# Different target subdirs use different values of certain variables
5718# (notably CXX). Worse, multilibs use *lots* of different values.
5719# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5720# it doesn't automatically accept command-line overrides of them.
5721# This means it's not safe for target subdirs to share a cache file,
5722# which is disgusting, but there you have it. Hopefully this can be
5723# fixed in future. It's still worthwhile to use a cache file for each
5724# directory. I think.
5725
ae380b45
MS
5726# Pass the appropriate --build, --host, --target and --cache-file arguments.
5727# We need to pass --target, as newer autoconf's requires consistency
5728# for target_alias and gcc doesn't manage it consistently.
4b900473 5729target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5730
a0da8069
NN
5731FLAGS_FOR_TARGET=
5732case " $target_configdirs " in
5733 *" newlib "*)
5734 case " $target_configargs " in
5735 *" --with-newlib "*)
5736 case "$target" in
5737 *-cygwin*)
564b43e5 5738 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
5739 esac
5740
5741 # If we're not building GCC, don't discard standard headers.
5742 if test -d ${srcdir}/gcc; then
5743 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5744
5745 if test "${build}" != "${host}"; then
5746 # On Canadian crosses, CC_FOR_TARGET will have already been set
5747 # by `configure', so we won't have an opportunity to add -Bgcc/
5748 # to it. This is right: we don't want to search that directory
5749 # for binaries, but we want the header files in there, so add
5750 # them explicitly.
b00612cc 5751 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5752
5753 # Someone might think of using the pre-installed headers on
5754 # Canadian crosses, in case the installed compiler is not fully
5755 # compatible with the compiler being built. In this case, it
5756 # would be better to flag an error than risking having
5757 # incompatible object files being constructed. We can't
5758 # guarantee that an error will be flagged, but let's hope the
5759 # compiler will do it, when presented with incompatible header
5760 # files.
5761 fi
5762 fi
5763
5764 case "${target}-${is_cross_compiler}" in
ec11bdc6 5765 i[3456789]86-*-linux*-no)
a0da8069
NN
5766 # Here host == target, so we don't need to build gcc,
5767 # so we don't want to discard standard headers.
5768 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5769 ;;
5770 *)
5771 # If we're building newlib, use its generic headers last, but search
5772 # for any libc-related directories first (so make it the last -B
5773 # switch).
5774 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5775 ;;
5776 esac
5777 ;;
5778 esac
5779 ;;
5780esac
45055374
CV
5781case "$target" in
5782*-mingw*)
5783 # Can't be handled as Cygwin above since Mingw does not use newlib.
5784 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' ;;
5785esac
a0da8069 5786
5fbad20a
DD
5787# Allow the user to override the flags for
5788# our build compiler if desired.
5789CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5790
a0da8069
NN
5791# On Canadian crosses, we'll be searching the right directories for
5792# the previously-installed cross compiler, so don't bother to add
5793# flags for directories within the install tree of the compiler
5794# being built; programs in there won't even run.
5795if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5796 # Search for pre-installed headers if nothing else fits.
bba45b8b 5797 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
5798fi
5799
5800if test "x${use_gnu_ld}" = x &&
5801 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5802 # Arrange for us to find uninstalled linker scripts.
b00612cc 5803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5804fi
5805
a481dbb7
DD
5806# Search for other target-specific linker scripts and such.
5807case "${target}" in
5808 m32c-*-* )
5809 if test -d ${srcdir}/libgloss/m32c; then
5810 # This is for crt0.o
5811 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5812 # This is for r8c.ld
5813 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5814 # This is for libnosys.a
5815 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5816 fi
5817 ;;
4e206d7e
DB
5818 mep*)
5819 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5820 ;;
5821esac
5822
a0da8069 5823# Makefile fragments.
3e707e94
PB
5824for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5825do
5826 eval fragval=\$$frag
5827 if test $fragval != /dev/null; then
5828 eval $frag=${srcdir}/$fragval
5829 fi
5830done
a0da8069
NN
5831
5832
5833
5834
5835
5836# Miscellanea: directories, flags, etc.
5837
5838
5839
5840
5841
5842
5843
6a9cf61e 5844# Build module lists & subconfigure args.
a0da8069
NN
5845
5846
5847
be01d343
PB
5848# Host module lists & subconfigure args.
5849
5850
5851
5852# Target module lists & subconfigure args.
5853
5854
5855
5856# Build tools.
5857
5858
5859
5860# Generate default definitions for YACC, M4, LEX and other programs that run
5861# on the build machine. These are used if the Makefile can't locate these
5862# programs in objdir.
5863MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5864
5865for ac_prog in 'bison -y' byacc yacc
5866do
c6b750e1 5867 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5868set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5869echo "$as_me:$LINENO: checking for $ac_word" >&5
5870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871if test "${ac_cv_prog_YACC+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5873else
5874 if test -n "$YACC"; then
5875 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5876else
c6b750e1
DJ
5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_YACC="$ac_prog"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888done
5889done
5890
be01d343
PB
5891fi
5892fi
c6b750e1 5893YACC=$ac_cv_prog_YACC
be01d343 5894if test -n "$YACC"; then
c6b750e1
DJ
5895 echo "$as_me:$LINENO: result: $YACC" >&5
5896echo "${ECHO_T}$YACC" >&6
be01d343 5897else
c6b750e1
DJ
5898 echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
be01d343
PB
5900fi
5901
c6b750e1 5902 test -n "$YACC" && break
be01d343
PB
5903done
5904test -n "$YACC" || YACC="$MISSING bison -y"
5905
5906case " $build_configdirs " in
5907 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5908 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5909esac
5910
5911for ac_prog in bison
5912do
c6b750e1 5913 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5914set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5915echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917if test "${ac_cv_prog_BISON+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5919else
5920 if test -n "$BISON"; then
5921 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5922else
c6b750e1
DJ
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_BISON="$ac_prog"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935done
5936
be01d343
PB
5937fi
5938fi
c6b750e1 5939BISON=$ac_cv_prog_BISON
be01d343 5940if test -n "$BISON"; then
c6b750e1
DJ
5941 echo "$as_me:$LINENO: result: $BISON" >&5
5942echo "${ECHO_T}$BISON" >&6
be01d343 5943else
c6b750e1
DJ
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
be01d343
PB
5946fi
5947
c6b750e1 5948 test -n "$BISON" && break
be01d343
PB
5949done
5950test -n "$BISON" || BISON="$MISSING bison"
5951
5952case " $build_configdirs " in
5953 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5954esac
5955
5956for ac_prog in gm4 gnum4 m4
5957do
c6b750e1 5958 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5959set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5960echo "$as_me:$LINENO: checking for $ac_word" >&5
5961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962if test "${ac_cv_prog_M4+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5964else
5965 if test -n "$M4"; then
5966 ac_cv_prog_M4="$M4" # Let the user override the test.
5967else
c6b750e1
DJ
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_M4="$ac_prog"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980done
5981
be01d343
PB
5982fi
5983fi
c6b750e1 5984M4=$ac_cv_prog_M4
be01d343 5985if test -n "$M4"; then
c6b750e1
DJ
5986 echo "$as_me:$LINENO: result: $M4" >&5
5987echo "${ECHO_T}$M4" >&6
be01d343 5988else
c6b750e1
DJ
5989 echo "$as_me:$LINENO: result: no" >&5
5990echo "${ECHO_T}no" >&6
be01d343
PB
5991fi
5992
c6b750e1 5993 test -n "$M4" && break
be01d343
PB
5994done
5995test -n "$M4" || M4="$MISSING m4"
5996
5997case " $build_configdirs " in
5998 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5999esac
6000
6001for ac_prog in flex lex
6002do
c6b750e1 6003 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6004set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6005echo "$as_me:$LINENO: checking for $ac_word" >&5
6006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6007if test "${ac_cv_prog_LEX+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6009else
6010 if test -n "$LEX"; then
6011 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6012else
c6b750e1
DJ
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_LEX="$ac_prog"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024done
6025done
6026
be01d343
PB
6027fi
6028fi
c6b750e1 6029LEX=$ac_cv_prog_LEX
be01d343 6030if test -n "$LEX"; then
c6b750e1
DJ
6031 echo "$as_me:$LINENO: result: $LEX" >&5
6032echo "${ECHO_T}$LEX" >&6
be01d343 6033else
c6b750e1
DJ
6034 echo "$as_me:$LINENO: result: no" >&5
6035echo "${ECHO_T}no" >&6
be01d343
PB
6036fi
6037
c6b750e1 6038 test -n "$LEX" && break
be01d343
PB
6039done
6040test -n "$LEX" || LEX="$MISSING flex"
6041
6042case " $build_configdirs " in
6043 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6044 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6045esac
6046
6047for ac_prog in flex
6048do
c6b750e1 6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6050set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6051echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053if test "${ac_cv_prog_FLEX+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6055else
6056 if test -n "$FLEX"; then
6057 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6058else
c6b750e1
DJ
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_FLEX="$ac_prog"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070done
6071done
6072
be01d343
PB
6073fi
6074fi
c6b750e1 6075FLEX=$ac_cv_prog_FLEX
be01d343 6076if test -n "$FLEX"; then
c6b750e1
DJ
6077 echo "$as_me:$LINENO: result: $FLEX" >&5
6078echo "${ECHO_T}$FLEX" >&6
be01d343 6079else
c6b750e1
DJ
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
be01d343
PB
6082fi
6083
c6b750e1 6084 test -n "$FLEX" && break
be01d343
PB
6085done
6086test -n "$FLEX" || FLEX="$MISSING flex"
6087
6088case " $build_configdirs " in
6089 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6090esac
6091
6092for ac_prog in makeinfo
6093do
c6b750e1 6094 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6095set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6096echo "$as_me:$LINENO: checking for $ac_word" >&5
6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6098if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6100else
6101 if test -n "$MAKEINFO"; then
6102 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6103else
c6b750e1
DJ
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111 ac_cv_prog_MAKEINFO="$ac_prog"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115done
6116done
6117
be01d343
PB
6118fi
6119fi
c6b750e1 6120MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6121if test -n "$MAKEINFO"; then
c6b750e1
DJ
6122 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6123echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6124else
c6b750e1
DJ
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
be01d343
PB
6127fi
6128
c6b750e1 6129 test -n "$MAKEINFO" && break
be01d343
PB
6130done
6131test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6132
6133case " $build_configdirs " in
6134 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6135 *)
6136
a4ef73e9 6137 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6138 # higher, else we use the "missing" dummy.
6139 if ${MAKEINFO} --version \
a4ef73e9 6140 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6141 :
6142 else
6143 MAKEINFO="$MISSING makeinfo"
6144 fi
6145 ;;
6146
6147esac
a0da8069 6148
be01d343 6149# FIXME: expect and dejagnu may become build tools?
a0da8069 6150
be01d343
PB
6151for ac_prog in expect
6152do
c6b750e1 6153 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6154set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6155echo "$as_me:$LINENO: checking for $ac_word" >&5
6156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6157if test "${ac_cv_prog_EXPECT+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6159else
6160 if test -n "$EXPECT"; then
6161 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6162else
c6b750e1
DJ
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_EXPECT="$ac_prog"
6171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174done
6175done
6176
be01d343
PB
6177fi
6178fi
c6b750e1 6179EXPECT=$ac_cv_prog_EXPECT
be01d343 6180if test -n "$EXPECT"; then
c6b750e1
DJ
6181 echo "$as_me:$LINENO: result: $EXPECT" >&5
6182echo "${ECHO_T}$EXPECT" >&6
be01d343 6183else
c6b750e1
DJ
6184 echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
be01d343 6186fi
a0da8069 6187
c6b750e1 6188 test -n "$EXPECT" && break
be01d343
PB
6189done
6190test -n "$EXPECT" || EXPECT="expect"
a0da8069 6191
be01d343
PB
6192case " $configdirs " in
6193 *" expect "*)
6194 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6195 ;;
6196esac
a0da8069 6197
be01d343
PB
6198for ac_prog in runtest
6199do
c6b750e1 6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6201set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6202echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6204if test "${ac_cv_prog_RUNTEST+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6206else
6207 if test -n "$RUNTEST"; then
6208 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6209else
c6b750e1
DJ
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_RUNTEST="$ac_prog"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221done
6222done
6223
be01d343
PB
6224fi
6225fi
c6b750e1 6226RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6227if test -n "$RUNTEST"; then
c6b750e1
DJ
6228 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6229echo "${ECHO_T}$RUNTEST" >&6
be01d343 6230else
c6b750e1
DJ
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
be01d343 6233fi
a0da8069 6234
c6b750e1 6235 test -n "$RUNTEST" && break
be01d343
PB
6236done
6237test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6238
be01d343
PB
6239case " $configdirs " in
6240 *" dejagnu "*)
6b89cc21 6241 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6242 ;;
6243esac
a0da8069
NN
6244
6245
a0da8069 6246# Host tools.
859789af
AC
6247ncn_tool_prefix=
6248test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6249ncn_target_tool_prefix=
6250test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6251
9a819804
AO
6252
6253
6254if test -n "$AR"; then
6255 ac_cv_prog_AR=$AR
6256elif test -n "$ac_cv_prog_AR"; then
6257 AR=$ac_cv_prog_AR
6258fi
6259
6260if test -n "$ac_cv_prog_AR"; then
6261 for ncn_progname in ar; do
6262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6263set dummy ${ncn_progname}; ac_word=$2
6264echo "$as_me:$LINENO: checking for $ac_word" >&5
6265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6266if test "${ac_cv_prog_AR+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 if test -n "$AR"; then
6270 ac_cv_prog_AR="$AR" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_AR="${ncn_progname}"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283done
6284done
6285
6286fi
6287fi
6288AR=$ac_cv_prog_AR
6289if test -n "$AR"; then
6290 echo "$as_me:$LINENO: result: $AR" >&5
6291echo "${ECHO_T}$AR" >&6
6292else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295fi
6296
6297 done
6298fi
6299
6300for ncn_progname in ar; do
05cbd757
PB
6301 if test -n "$ncn_tool_prefix"; then
6302 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6303set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6304echo "$as_me:$LINENO: checking for $ac_word" >&5
6305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6306if test "${ac_cv_prog_AR+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6308else
6309 if test -n "$AR"; then
6310 ac_cv_prog_AR="$AR" # Let the user override the test.
6311else
c6b750e1
DJ
6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323done
6324done
6325
859789af
AC
6326fi
6327fi
c6b750e1 6328AR=$ac_cv_prog_AR
859789af 6329if test -n "$AR"; then
c6b750e1
DJ
6330 echo "$as_me:$LINENO: result: $AR" >&5
6331echo "${ECHO_T}$AR" >&6
859789af 6332else
c6b750e1
DJ
6333 echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6
859789af
AC
6335fi
6336
05cbd757
PB
6337 fi
6338 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6340set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6341echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6343if test "${ac_cv_prog_AR+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6345else
05cbd757
PB
6346 if test -n "$AR"; then
6347 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6348else
c6b750e1
DJ
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_AR="${ncn_progname}"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361done
6362
859789af
AC
6363fi
6364fi
c6b750e1 6365AR=$ac_cv_prog_AR
05cbd757 6366if test -n "$AR"; then
c6b750e1
DJ
6367 echo "$as_me:$LINENO: result: $AR" >&5
6368echo "${ECHO_T}$AR" >&6
859789af 6369else
c6b750e1
DJ
6370 echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6
859789af 6372fi
c6b750e1 6373
05cbd757
PB
6374 fi
6375 test -n "$ac_cv_prog_AR" && break
6376done
6377
6378if test -z "$ac_cv_prog_AR" ; then
6379 set dummy ar
6380 if test $build = $host ; then
6381 AR="$2"
859789af 6382 else
05cbd757 6383 AR="${ncn_tool_prefix}$2"
859789af 6384 fi
859789af
AC
6385fi
6386
9a819804
AO
6387
6388
6389if test -n "$AS"; then
6390 ac_cv_prog_AS=$AS
6391elif test -n "$ac_cv_prog_AS"; then
6392 AS=$ac_cv_prog_AS
6393fi
6394
6395if test -n "$ac_cv_prog_AS"; then
6396 for ncn_progname in as; do
6397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6398set dummy ${ncn_progname}; ac_word=$2
6399echo "$as_me:$LINENO: checking for $ac_word" >&5
6400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401if test "${ac_cv_prog_AS+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 if test -n "$AS"; then
6405 ac_cv_prog_AS="$AS" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_AS="${ncn_progname}"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418done
6419done
6420
6421fi
6422fi
6423AS=$ac_cv_prog_AS
6424if test -n "$AS"; then
6425 echo "$as_me:$LINENO: result: $AS" >&5
6426echo "${ECHO_T}$AS" >&6
6427else
6428 echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6
6430fi
6431
6432 done
6433fi
6434
6435for ncn_progname in as; do
05cbd757
PB
6436 if test -n "$ncn_tool_prefix"; then
6437 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6438set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6439echo "$as_me:$LINENO: checking for $ac_word" >&5
6440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6441if test "${ac_cv_prog_AS+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6443else
6444 if test -n "$AS"; then
6445 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458done
6459done
6460
859789af
AC
6461fi
6462fi
c6b750e1 6463AS=$ac_cv_prog_AS
859789af 6464if test -n "$AS"; then
c6b750e1
DJ
6465 echo "$as_me:$LINENO: result: $AS" >&5
6466echo "${ECHO_T}$AS" >&6
859789af 6467else
c6b750e1
DJ
6468 echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
859789af
AC
6470fi
6471
05cbd757
PB
6472 fi
6473 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6475set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6476echo "$as_me:$LINENO: checking for $ac_word" >&5
6477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6478if test "${ac_cv_prog_AS+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6480else
05cbd757
PB
6481 if test -n "$AS"; then
6482 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6483else
c6b750e1
DJ
6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_AS="${ncn_progname}"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495done
6496done
6497
859789af
AC
6498fi
6499fi
c6b750e1 6500AS=$ac_cv_prog_AS
05cbd757 6501if test -n "$AS"; then
c6b750e1
DJ
6502 echo "$as_me:$LINENO: result: $AS" >&5
6503echo "${ECHO_T}$AS" >&6
859789af 6504else
c6b750e1
DJ
6505 echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
859789af 6507fi
c6b750e1 6508
05cbd757
PB
6509 fi
6510 test -n "$ac_cv_prog_AS" && break
6511done
6512
6513if test -z "$ac_cv_prog_AS" ; then
6514 set dummy as
6515 if test $build = $host ; then
6516 AS="$2"
859789af 6517 else
05cbd757 6518 AS="${ncn_tool_prefix}$2"
859789af 6519 fi
859789af
AC
6520fi
6521
9a819804
AO
6522
6523
6524if test -n "$DLLTOOL"; then
6525 ac_cv_prog_DLLTOOL=$DLLTOOL
6526elif test -n "$ac_cv_prog_DLLTOOL"; then
6527 DLLTOOL=$ac_cv_prog_DLLTOOL
6528fi
6529
6530if test -n "$ac_cv_prog_DLLTOOL"; then
6531 for ncn_progname in dlltool; do
6532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6533set dummy ${ncn_progname}; ac_word=$2
6534echo "$as_me:$LINENO: checking for $ac_word" >&5
6535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6536if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 if test -n "$DLLTOOL"; then
6540 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_DLLTOOL="${ncn_progname}"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554done
6555
6556fi
6557fi
6558DLLTOOL=$ac_cv_prog_DLLTOOL
6559if test -n "$DLLTOOL"; then
6560 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6561echo "${ECHO_T}$DLLTOOL" >&6
6562else
6563 echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6
6565fi
6566
6567 done
6568fi
6569
6570for ncn_progname in dlltool; do
05cbd757
PB
6571 if test -n "$ncn_tool_prefix"; then
6572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6573set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6578else
6579 if test -n "$DLLTOOL"; then
6580 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6581else
c6b750e1
DJ
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594done
6595
859789af
AC
6596fi
6597fi
c6b750e1 6598DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6599if test -n "$DLLTOOL"; then
c6b750e1
DJ
6600 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6601echo "${ECHO_T}$DLLTOOL" >&6
859789af 6602else
c6b750e1
DJ
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
859789af
AC
6605fi
6606
05cbd757
PB
6607 fi
6608 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6610set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6611echo "$as_me:$LINENO: checking for $ac_word" >&5
6612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6613if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6615else
05cbd757
PB
6616 if test -n "$DLLTOOL"; then
6617 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6618else
c6b750e1
DJ
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_DLLTOOL="${ncn_progname}"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630done
6631done
6632
859789af
AC
6633fi
6634fi
c6b750e1 6635DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6636if test -n "$DLLTOOL"; then
c6b750e1
DJ
6637 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6638echo "${ECHO_T}$DLLTOOL" >&6
859789af 6639else
c6b750e1
DJ
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
859789af 6642fi
c6b750e1 6643
05cbd757
PB
6644 fi
6645 test -n "$ac_cv_prog_DLLTOOL" && break
6646done
6647
6648if test -z "$ac_cv_prog_DLLTOOL" ; then
6649 set dummy dlltool
6650 if test $build = $host ; then
6651 DLLTOOL="$2"
859789af 6652 else
05cbd757 6653 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6654 fi
859789af
AC
6655fi
6656
9a819804
AO
6657
6658
6659if test -n "$LD"; then
6660 ac_cv_prog_LD=$LD
6661elif test -n "$ac_cv_prog_LD"; then
6662 LD=$ac_cv_prog_LD
6663fi
6664
6665if test -n "$ac_cv_prog_LD"; then
6666 for ncn_progname in ld; do
6667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6668set dummy ${ncn_progname}; ac_word=$2
6669echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6671if test "${ac_cv_prog_LD+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 if test -n "$LD"; then
6675 ac_cv_prog_LD="$LD" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_LD="${ncn_progname}"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689done
6690
6691fi
6692fi
6693LD=$ac_cv_prog_LD
6694if test -n "$LD"; then
6695 echo "$as_me:$LINENO: result: $LD" >&5
6696echo "${ECHO_T}$LD" >&6
6697else
6698 echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6
6700fi
6701
6702 done
6703fi
6704
6705for ncn_progname in ld; do
05cbd757
PB
6706 if test -n "$ncn_tool_prefix"; then
6707 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6708set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6709echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6711if test "${ac_cv_prog_LD+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6713else
6714 if test -n "$LD"; then
6715 ac_cv_prog_LD="$LD" # Let the user override the test.
6716else
c6b750e1
DJ
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729done
6730
859789af
AC
6731fi
6732fi
c6b750e1 6733LD=$ac_cv_prog_LD
859789af 6734if test -n "$LD"; then
c6b750e1
DJ
6735 echo "$as_me:$LINENO: result: $LD" >&5
6736echo "${ECHO_T}$LD" >&6
859789af 6737else
c6b750e1
DJ
6738 echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
859789af
AC
6740fi
6741
05cbd757
PB
6742 fi
6743 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6745set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6746echo "$as_me:$LINENO: checking for $ac_word" >&5
6747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6748if test "${ac_cv_prog_LD+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6750else
05cbd757
PB
6751 if test -n "$LD"; then
6752 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6753else
c6b750e1
DJ
6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_LD="${ncn_progname}"
6762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765done
6766done
6767
859789af
AC
6768fi
6769fi
c6b750e1 6770LD=$ac_cv_prog_LD
05cbd757 6771if test -n "$LD"; then
c6b750e1
DJ
6772 echo "$as_me:$LINENO: result: $LD" >&5
6773echo "${ECHO_T}$LD" >&6
859789af 6774else
c6b750e1
DJ
6775 echo "$as_me:$LINENO: result: no" >&5
6776echo "${ECHO_T}no" >&6
859789af 6777fi
c6b750e1 6778
05cbd757
PB
6779 fi
6780 test -n "$ac_cv_prog_LD" && break
6781done
6782
6783if test -z "$ac_cv_prog_LD" ; then
6784 set dummy ld
6785 if test $build = $host ; then
6786 LD="$2"
859789af 6787 else
05cbd757 6788 LD="${ncn_tool_prefix}$2"
859789af 6789 fi
859789af
AC
6790fi
6791
9a819804
AO
6792
6793
6794if test -n "$LIPO"; then
6795 ac_cv_prog_LIPO=$LIPO
6796elif test -n "$ac_cv_prog_LIPO"; then
6797 LIPO=$ac_cv_prog_LIPO
6798fi
6799
6800if test -n "$ac_cv_prog_LIPO"; then
6801 for ncn_progname in lipo; do
6802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6803set dummy ${ncn_progname}; ac_word=$2
6804echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806if test "${ac_cv_prog_LIPO+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808else
6809 if test -n "$LIPO"; then
6810 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_LIPO="${ncn_progname}"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824done
6825
6826fi
6827fi
6828LIPO=$ac_cv_prog_LIPO
6829if test -n "$LIPO"; then
6830 echo "$as_me:$LINENO: result: $LIPO" >&5
6831echo "${ECHO_T}$LIPO" >&6
6832else
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
6835fi
6836
6837 done
6838fi
6839
6840for ncn_progname in lipo; do
be01d343
PB
6841 if test -n "$ncn_tool_prefix"; then
6842 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6843set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6844echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6846if test "${ac_cv_prog_LIPO+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6848else
6849 if test -n "$LIPO"; then
6850 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6851else
c6b750e1
DJ
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863done
6864done
6865
be01d343
PB
6866fi
6867fi
c6b750e1 6868LIPO=$ac_cv_prog_LIPO
be01d343 6869if test -n "$LIPO"; then
c6b750e1
DJ
6870 echo "$as_me:$LINENO: result: $LIPO" >&5
6871echo "${ECHO_T}$LIPO" >&6
be01d343 6872else
c6b750e1
DJ
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
be01d343
PB
6875fi
6876
6877 fi
6878 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6880set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6881echo "$as_me:$LINENO: checking for $ac_word" >&5
6882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6883if test "${ac_cv_prog_LIPO+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6885else
6886 if test -n "$LIPO"; then
6887 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6888else
c6b750e1
DJ
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_LIPO="${ncn_progname}"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901done
6902
be01d343
PB
6903fi
6904fi
c6b750e1 6905LIPO=$ac_cv_prog_LIPO
be01d343 6906if test -n "$LIPO"; then
c6b750e1
DJ
6907 echo "$as_me:$LINENO: result: $LIPO" >&5
6908echo "${ECHO_T}$LIPO" >&6
be01d343 6909else
c6b750e1
DJ
6910 echo "$as_me:$LINENO: result: no" >&5
6911echo "${ECHO_T}no" >&6
be01d343 6912fi
c6b750e1 6913
be01d343
PB
6914 fi
6915 test -n "$ac_cv_prog_LIPO" && break
6916done
6917
6918if test -z "$ac_cv_prog_LIPO" ; then
6919 set dummy lipo
6920 if test $build = $host ; then
6921 LIPO="$2"
6922 else
6923 LIPO="${ncn_tool_prefix}$2"
6924 fi
6925fi
6926
9a819804
AO
6927
6928
6929if test -n "$NM"; then
6930 ac_cv_prog_NM=$NM
6931elif test -n "$ac_cv_prog_NM"; then
6932 NM=$ac_cv_prog_NM
6933fi
6934
6935if test -n "$ac_cv_prog_NM"; then
6936 for ncn_progname in nm; do
6937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6938set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6939echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6941if test "${ac_cv_prog_NM+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6943else
6944 if test -n "$NM"; then
6945 ac_cv_prog_NM="$NM" # Let the user override the test.
6946else
c6b750e1
DJ
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6954 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958done
6959done
6960
859789af
AC
6961fi
6962fi
c6b750e1 6963NM=$ac_cv_prog_NM
859789af 6964if test -n "$NM"; then
c6b750e1
DJ
6965 echo "$as_me:$LINENO: result: $NM" >&5
6966echo "${ECHO_T}$NM" >&6
859789af 6967else
c6b750e1
DJ
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
859789af
AC
6970fi
6971
9a819804
AO
6972 done
6973fi
6974
6975for ncn_progname in nm; do
6976 if test -n "$ncn_tool_prefix"; then
6977 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6978set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6979echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6981if test "${ac_cv_prog_NM+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6983else
05cbd757
PB
6984 if test -n "$NM"; then
6985 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6986else
c6b750e1
DJ
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6994 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998done
6999done
7000
859789af
AC
7001fi
7002fi
c6b750e1 7003NM=$ac_cv_prog_NM
05cbd757 7004if test -n "$NM"; then
c6b750e1
DJ
7005 echo "$as_me:$LINENO: result: $NM" >&5
7006echo "${ECHO_T}$NM" >&6
859789af 7007else
c6b750e1
DJ
7008 echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6
859789af 7010fi
c6b750e1 7011
05cbd757 7012 fi
9a819804
AO
7013 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7015set dummy ${ncn_progname}; ac_word=$2
7016echo "$as_me:$LINENO: checking for $ac_word" >&5
7017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7018if test "${ac_cv_prog_NM+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020else
7021 if test -n "$NM"; then
7022 ac_cv_prog_NM="$NM" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_NM="${ncn_progname}"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035done
7036done
7037
7038fi
7039fi
7040NM=$ac_cv_prog_NM
7041if test -n "$NM"; then
7042 echo "$as_me:$LINENO: result: $NM" >&5
7043echo "${ECHO_T}$NM" >&6
7044else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047fi
7048
7049 fi
7050 test -n "$ac_cv_prog_NM" && break
7051done
7052
7053if test -z "$ac_cv_prog_NM" ; then
7054 set dummy nm
7055 if test $build = $host ; then
7056 NM="$2"
7057 else
7058 NM="${ncn_tool_prefix}$2"
7059 fi
7060fi
7061
7062
7063
7064if test -n "$RANLIB"; then
7065 ac_cv_prog_RANLIB=$RANLIB
7066elif test -n "$ac_cv_prog_RANLIB"; then
7067 RANLIB=$ac_cv_prog_RANLIB
7068fi
7069
7070if test -n "$ac_cv_prog_RANLIB"; then
7071 for ncn_progname in ranlib; do
7072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7073set dummy ${ncn_progname}; ac_word=$2
7074echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7076if test "${ac_cv_prog_RANLIB+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 if test -n "$RANLIB"; then
7080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_RANLIB="${ncn_progname}"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094done
7095
7096fi
7097fi
7098RANLIB=$ac_cv_prog_RANLIB
7099if test -n "$RANLIB"; then
7100 echo "$as_me:$LINENO: result: $RANLIB" >&5
7101echo "${ECHO_T}$RANLIB" >&6
7102else
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105fi
7106
7107 done
7108fi
859789af 7109
9a819804 7110for ncn_progname in ranlib; do
05cbd757
PB
7111 if test -n "$ncn_tool_prefix"; then
7112 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7113set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7114echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7116if test "${ac_cv_prog_RANLIB+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7118else
7119 if test -n "$RANLIB"; then
7120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7121else
c6b750e1
DJ
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133done
7134done
7135
859789af
AC
7136fi
7137fi
c6b750e1 7138RANLIB=$ac_cv_prog_RANLIB
859789af 7139if test -n "$RANLIB"; then
c6b750e1
DJ
7140 echo "$as_me:$LINENO: result: $RANLIB" >&5
7141echo "${ECHO_T}$RANLIB" >&6
859789af 7142else
c6b750e1
DJ
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
859789af
AC
7145fi
7146
05cbd757
PB
7147 fi
7148 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7150set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7151echo "$as_me:$LINENO: checking for $ac_word" >&5
7152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7153if test "${ac_cv_prog_RANLIB+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7155else
05cbd757
PB
7156 if test -n "$RANLIB"; then
7157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7158else
c6b750e1
DJ
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_RANLIB="${ncn_progname}"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170done
7171done
7172
859789af
AC
7173fi
7174fi
c6b750e1 7175RANLIB=$ac_cv_prog_RANLIB
05cbd757 7176if test -n "$RANLIB"; then
c6b750e1
DJ
7177 echo "$as_me:$LINENO: result: $RANLIB" >&5
7178echo "${ECHO_T}$RANLIB" >&6
859789af 7179else
c6b750e1
DJ
7180 echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6
859789af 7182fi
c6b750e1 7183
859789af 7184 fi
05cbd757
PB
7185 test -n "$ac_cv_prog_RANLIB" && break
7186done
7187
7188if test -z "$ac_cv_prog_RANLIB" ; then
7189 RANLIB=":"
859789af
AC
7190fi
7191
9a819804
AO
7192
7193
7194if test -n "$STRIP"; then
7195 ac_cv_prog_STRIP=$STRIP
7196elif test -n "$ac_cv_prog_STRIP"; then
7197 STRIP=$ac_cv_prog_STRIP
7198fi
7199
7200if test -n "$ac_cv_prog_STRIP"; then
7201 for ncn_progname in strip; do
7202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7203set dummy ${ncn_progname}; ac_word=$2
7204echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7206if test "${ac_cv_prog_STRIP+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 if test -n "$STRIP"; then
7210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_STRIP="${ncn_progname}"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224done
7225
7226fi
7227fi
7228STRIP=$ac_cv_prog_STRIP
7229if test -n "$STRIP"; then
7230 echo "$as_me:$LINENO: result: $STRIP" >&5
7231echo "${ECHO_T}$STRIP" >&6
7232else
7233 echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6
7235fi
7236
7237 done
7238fi
7239
7240for ncn_progname in strip; do
be01d343
PB
7241 if test -n "$ncn_tool_prefix"; then
7242 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7243set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7244echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7246if test "${ac_cv_prog_STRIP+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7248else
7249 if test -n "$STRIP"; then
7250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7251else
c6b750e1
DJ
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264done
7265
be01d343
PB
7266fi
7267fi
c6b750e1 7268STRIP=$ac_cv_prog_STRIP
be01d343 7269if test -n "$STRIP"; then
c6b750e1
DJ
7270 echo "$as_me:$LINENO: result: $STRIP" >&5
7271echo "${ECHO_T}$STRIP" >&6
be01d343 7272else
c6b750e1
DJ
7273 echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6
be01d343
PB
7275fi
7276
7277 fi
7278 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7280set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7281echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283if test "${ac_cv_prog_STRIP+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7285else
7286 if test -n "$STRIP"; then
7287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7288else
c6b750e1
DJ
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_STRIP="${ncn_progname}"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300done
7301done
7302
be01d343
PB
7303fi
7304fi
c6b750e1 7305STRIP=$ac_cv_prog_STRIP
be01d343 7306if test -n "$STRIP"; then
c6b750e1
DJ
7307 echo "$as_me:$LINENO: result: $STRIP" >&5
7308echo "${ECHO_T}$STRIP" >&6
be01d343 7309else
c6b750e1
DJ
7310 echo "$as_me:$LINENO: result: no" >&5
7311echo "${ECHO_T}no" >&6
be01d343 7312fi
c6b750e1 7313
be01d343
PB
7314 fi
7315 test -n "$ac_cv_prog_STRIP" && break
7316done
7317
7318if test -z "$ac_cv_prog_STRIP" ; then
7319 STRIP=":"
7320fi
7321
9a819804
AO
7322
7323
7324if test -n "$WINDRES"; then
7325 ac_cv_prog_WINDRES=$WINDRES
7326elif test -n "$ac_cv_prog_WINDRES"; then
7327 WINDRES=$ac_cv_prog_WINDRES
7328fi
7329
7330if test -n "$ac_cv_prog_WINDRES"; then
7331 for ncn_progname in windres; do
7332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7333set dummy ${ncn_progname}; ac_word=$2
7334echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336if test "${ac_cv_prog_WINDRES+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339 if test -n "$WINDRES"; then
7340 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_WINDRES="${ncn_progname}"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353done
7354done
7355
7356fi
7357fi
7358WINDRES=$ac_cv_prog_WINDRES
7359if test -n "$WINDRES"; then
7360 echo "$as_me:$LINENO: result: $WINDRES" >&5
7361echo "${ECHO_T}$WINDRES" >&6
7362else
7363 echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6
7365fi
7366
7367 done
7368fi
7369
7370for ncn_progname in windres; do
05cbd757
PB
7371 if test -n "$ncn_tool_prefix"; then
7372 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7373set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7374echo "$as_me:$LINENO: checking for $ac_word" >&5
7375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7376if test "${ac_cv_prog_WINDRES+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7378else
7379 if test -n "$WINDRES"; then
7380 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7381else
c6b750e1
DJ
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393done
7394done
7395
859789af
AC
7396fi
7397fi
c6b750e1 7398WINDRES=$ac_cv_prog_WINDRES
859789af 7399if test -n "$WINDRES"; then
c6b750e1
DJ
7400 echo "$as_me:$LINENO: result: $WINDRES" >&5
7401echo "${ECHO_T}$WINDRES" >&6
859789af 7402else
c6b750e1
DJ
7403 echo "$as_me:$LINENO: result: no" >&5
7404echo "${ECHO_T}no" >&6
859789af
AC
7405fi
7406
05cbd757
PB
7407 fi
7408 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7410set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7411echo "$as_me:$LINENO: checking for $ac_word" >&5
7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413if test "${ac_cv_prog_WINDRES+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7415else
05cbd757
PB
7416 if test -n "$WINDRES"; then
7417 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7418else
c6b750e1
DJ
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_WINDRES="${ncn_progname}"
7427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430done
7431done
7432
859789af
AC
7433fi
7434fi
c6b750e1 7435WINDRES=$ac_cv_prog_WINDRES
05cbd757 7436if test -n "$WINDRES"; then
c6b750e1
DJ
7437 echo "$as_me:$LINENO: result: $WINDRES" >&5
7438echo "${ECHO_T}$WINDRES" >&6
859789af 7439else
c6b750e1
DJ
7440 echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6
859789af 7442fi
c6b750e1 7443
05cbd757
PB
7444 fi
7445 test -n "$ac_cv_prog_WINDRES" && break
7446done
7447
7448if test -z "$ac_cv_prog_WINDRES" ; then
7449 set dummy windres
7450 if test $build = $host ; then
7451 WINDRES="$2"
859789af 7452 else
05cbd757 7453 WINDRES="${ncn_tool_prefix}$2"
859789af 7454 fi
859789af
AC
7455fi
7456
9a819804
AO
7457
7458
0c24b341
NC
7459if test -n "$WINDMC"; then
7460 ac_cv_prog_WINDMC=$WINDMC
7461elif test -n "$ac_cv_prog_WINDMC"; then
7462 WINDMC=$ac_cv_prog_WINDMC
7463fi
7464
7465if test -n "$ac_cv_prog_WINDMC"; then
7466 for ncn_progname in windmc; do
7467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7468set dummy ${ncn_progname}; ac_word=$2
7469echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7471if test "${ac_cv_prog_WINDMC+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474 if test -n "$WINDMC"; then
7475 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7476else
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_WINDMC="${ncn_progname}"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488done
7489done
7490
7491fi
7492fi
7493WINDMC=$ac_cv_prog_WINDMC
7494if test -n "$WINDMC"; then
7495 echo "$as_me:$LINENO: result: $WINDMC" >&5
7496echo "${ECHO_T}$WINDMC" >&6
7497else
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
7500fi
7501
7502 done
7503fi
7504
7505for ncn_progname in windmc; do
7506 if test -n "$ncn_tool_prefix"; then
7507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7509echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7511if test "${ac_cv_prog_WINDMC+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514 if test -n "$WINDMC"; then
7515 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7516else
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528done
7529done
7530
7531fi
7532fi
7533WINDMC=$ac_cv_prog_WINDMC
7534if test -n "$WINDMC"; then
7535 echo "$as_me:$LINENO: result: $WINDMC" >&5
7536echo "${ECHO_T}$WINDMC" >&6
7537else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540fi
7541
7542 fi
7543 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7545set dummy ${ncn_progname}; ac_word=$2
7546echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548if test "${ac_cv_prog_WINDMC+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 if test -n "$WINDMC"; then
7552 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7553else
7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_WINDMC="${ncn_progname}"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565done
7566done
7567
7568fi
7569fi
7570WINDMC=$ac_cv_prog_WINDMC
7571if test -n "$WINDMC"; then
7572 echo "$as_me:$LINENO: result: $WINDMC" >&5
7573echo "${ECHO_T}$WINDMC" >&6
7574else
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577fi
7578
7579 fi
7580 test -n "$ac_cv_prog_WINDMC" && break
7581done
7582
7583if test -z "$ac_cv_prog_WINDMC" ; then
7584 set dummy windmc
7585 if test $build = $host ; then
7586 WINDMC="$2"
7587 else
7588 WINDMC="${ncn_tool_prefix}$2"
7589 fi
7590fi
7591
7592
7593
9a819804
AO
7594if test -n "$OBJCOPY"; then
7595 ac_cv_prog_OBJCOPY=$OBJCOPY
7596elif test -n "$ac_cv_prog_OBJCOPY"; then
7597 OBJCOPY=$ac_cv_prog_OBJCOPY
7598fi
7599
7600if test -n "$ac_cv_prog_OBJCOPY"; then
7601 for ncn_progname in objcopy; do
7602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7603set dummy ${ncn_progname}; ac_word=$2
7604echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7606if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 if test -n "$OBJCOPY"; then
7610 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_OBJCOPY="${ncn_progname}"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623done
7624done
7625
7626fi
7627fi
7628OBJCOPY=$ac_cv_prog_OBJCOPY
7629if test -n "$OBJCOPY"; then
7630 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7631echo "${ECHO_T}$OBJCOPY" >&6
7632else
7633 echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635fi
7636
7637 done
7638fi
7639
7640for ncn_progname in objcopy; do
05cbd757
PB
7641 if test -n "$ncn_tool_prefix"; then
7642 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7643set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7644echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7646if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7648else
7649 if test -n "$OBJCOPY"; then
7650 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7651else
c6b750e1
DJ
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664done
7665
859789af
AC
7666fi
7667fi
c6b750e1 7668OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7669if test -n "$OBJCOPY"; then
c6b750e1
DJ
7670 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7671echo "${ECHO_T}$OBJCOPY" >&6
859789af 7672else
c6b750e1
DJ
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
859789af
AC
7675fi
7676
05cbd757
PB
7677 fi
7678 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7680set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7681echo "$as_me:$LINENO: checking for $ac_word" >&5
7682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7685else
05cbd757
PB
7686 if test -n "$OBJCOPY"; then
7687 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7688else
c6b750e1
DJ
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_OBJCOPY="${ncn_progname}"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701done
7702
859789af
AC
7703fi
7704fi
c6b750e1 7705OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7706if test -n "$OBJCOPY"; then
c6b750e1
DJ
7707 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7708echo "${ECHO_T}$OBJCOPY" >&6
859789af 7709else
c6b750e1
DJ
7710 echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
859789af 7712fi
c6b750e1 7713
05cbd757
PB
7714 fi
7715 test -n "$ac_cv_prog_OBJCOPY" && break
7716done
7717
7718if test -z "$ac_cv_prog_OBJCOPY" ; then
7719 set dummy objcopy
7720 if test $build = $host ; then
7721 OBJCOPY="$2"
859789af 7722 else
05cbd757 7723 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7724 fi
859789af
AC
7725fi
7726
9a819804
AO
7727
7728
7729if test -n "$OBJDUMP"; then
7730 ac_cv_prog_OBJDUMP=$OBJDUMP
7731elif test -n "$ac_cv_prog_OBJDUMP"; then
7732 OBJDUMP=$ac_cv_prog_OBJDUMP
7733fi
7734
7735if test -n "$ac_cv_prog_OBJDUMP"; then
7736 for ncn_progname in objdump; do
7737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7738set dummy ${ncn_progname}; ac_word=$2
7739echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744 if test -n "$OBJDUMP"; then
7745 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_OBJDUMP="${ncn_progname}"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759done
7760
7761fi
7762fi
7763OBJDUMP=$ac_cv_prog_OBJDUMP
7764if test -n "$OBJDUMP"; then
7765 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7766echo "${ECHO_T}$OBJDUMP" >&6
7767else
7768 echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
7770fi
7771
7772 done
7773fi
7774
7775for ncn_progname in objdump; do
05cbd757
PB
7776 if test -n "$ncn_tool_prefix"; then
7777 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7778set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7783else
7784 if test -n "$OBJDUMP"; then
7785 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7786else
c6b750e1
DJ
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798done
7799done
7800
859789af
AC
7801fi
7802fi
c6b750e1 7803OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7804if test -n "$OBJDUMP"; then
c6b750e1
DJ
7805 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7806echo "${ECHO_T}$OBJDUMP" >&6
859789af 7807else
c6b750e1
DJ
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
859789af
AC
7810fi
7811
05cbd757
PB
7812 fi
7813 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7815set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7816echo "$as_me:$LINENO: checking for $ac_word" >&5
7817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7818if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7820else
05cbd757
PB
7821 if test -n "$OBJDUMP"; then
7822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7823else
c6b750e1
DJ
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_OBJDUMP="${ncn_progname}"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835done
7836done
7837
859789af
AC
7838fi
7839fi
c6b750e1 7840OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7841if test -n "$OBJDUMP"; then
c6b750e1
DJ
7842 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7843echo "${ECHO_T}$OBJDUMP" >&6
859789af 7844else
c6b750e1
DJ
7845 echo "$as_me:$LINENO: result: no" >&5
7846echo "${ECHO_T}no" >&6
859789af 7847fi
c6b750e1 7848
05cbd757
PB
7849 fi
7850 test -n "$ac_cv_prog_OBJDUMP" && break
7851done
7852
7853if test -z "$ac_cv_prog_OBJDUMP" ; then
7854 set dummy objdump
7855 if test $build = $host ; then
7856 OBJDUMP="$2"
859789af 7857 else
05cbd757 7858 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7859 fi
859789af
AC
7860fi
7861
a0da8069
NN
7862
7863
7864
7865
7866
7867
be01d343 7868# Target tools.
c6b750e1 7869
2429c060
PB
7870# Check whether --with-build-time-tools or --without-build-time-tools was given.
7871if test "${with_build_time_tools+set}" = set; then
7872 withval="$with_build_time_tools"
7873 case x"$withval" in
7874 x/*) ;;
7875 *)
7876 with_build_time_tools=
c6b750e1
DJ
7877 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7878echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7879 ;;
7880 esac
859789af 7881else
2429c060 7882 with_build_time_tools=
c6b750e1 7883fi;
859789af 7884
9a819804
AO
7885
7886
7887if test -n "$CC_FOR_TARGET"; then
7888 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7889elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7890 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7891fi
7892
7893if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7894 for ncn_progname in cc gcc; do
7895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7896set dummy ${ncn_progname}; ac_word=$2
7897echo "$as_me:$LINENO: checking for $ac_word" >&5
7898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7899if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901else
7902 if test -n "$CC_FOR_TARGET"; then
7903 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916done
7917done
7918
7919fi
7920fi
7921CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7922if test -n "$CC_FOR_TARGET"; then
7923 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7924echo "${ECHO_T}$CC_FOR_TARGET" >&6
7925else
7926 echo "$as_me:$LINENO: result: no" >&5
7927echo "${ECHO_T}no" >&6
7928fi
7929
7930 done
7931fi
7932
7933if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7934 for ncn_progname in cc gcc; do
c6b750e1
DJ
7935 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7936echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7937 if test -x $with_build_time_tools/${ncn_progname}; then
7938 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7939 echo "$as_me:$LINENO: result: yes" >&5
7940echo "${ECHO_T}yes" >&6
cac3d6c4 7941 break
2429c060 7942 else
c6b750e1
DJ
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
cac3d6c4
CM
7945 fi
7946 done
55db4b87
PB
7947fi
7948
2429c060
PB
7949if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7950 for ncn_progname in cc gcc; do
7951 if test -n "$ncn_target_tool_prefix"; then
7952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7953set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7954echo "$as_me:$LINENO: checking for $ac_word" >&5
7955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7956if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7958else
7959 if test -n "$CC_FOR_TARGET"; then
7960 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7961else
c6b750e1
DJ
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974done
7975
55db4b87
PB
7976fi
7977fi
c6b750e1 7978CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7979if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7980 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7981echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7982else
c6b750e1
DJ
7983 echo "$as_me:$LINENO: result: no" >&5
7984echo "${ECHO_T}no" >&6
55db4b87
PB
7985fi
7986
2429c060
PB
7987 fi
7988 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7990set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7991echo "$as_me:$LINENO: checking for $ac_word" >&5
7992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7993if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7995else
05cbd757
PB
7996 if test -n "$CC_FOR_TARGET"; then
7997 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7998else
c6b750e1
DJ
7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010done
8011done
8012
55db4b87
PB
8013fi
8014fi
c6b750e1 8015CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8016if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8017 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8018echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8019else
c6b750e1
DJ
8020 echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6
55db4b87 8022fi
c6b750e1 8023
2429c060
PB
8024 fi
8025 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8026 done
8027fi
c6b750e1 8028
05cbd757
PB
8029if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8030 set dummy cc gcc
8031 if test $build = $target ; then
8032 CC_FOR_TARGET="$2"
55db4b87 8033 else
05cbd757 8034 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8035 fi
d3f5afc4
MS
8036else
8037 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8038fi
8039
9a819804
AO
8040
8041
8042if test -n "$CXX_FOR_TARGET"; then
8043 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8044elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8045 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8046fi
8047
8048if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8049 for ncn_progname in c++ g++ cxx gxx; do
8050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8051set dummy ${ncn_progname}; ac_word=$2
8052echo "$as_me:$LINENO: checking for $ac_word" >&5
8053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8054if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056else
8057 if test -n "$CXX_FOR_TARGET"; then
8058 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8059else
8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072done
8073
8074fi
8075fi
8076CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8077if test -n "$CXX_FOR_TARGET"; then
8078 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8079echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8080else
8081 echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6
8083fi
8084
8085 done
8086fi
8087
8088if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8089 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8090 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8091echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8092 if test -x $with_build_time_tools/${ncn_progname}; then
8093 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8094 echo "$as_me:$LINENO: result: yes" >&5
8095echo "${ECHO_T}yes" >&6
2429c060
PB
8096 break
8097 else
c6b750e1
DJ
8098 echo "$as_me:$LINENO: result: no" >&5
8099echo "${ECHO_T}no" >&6
2429c060
PB
8100 fi
8101 done
8102fi
8103
8104if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8105 for ncn_progname in c++ g++ cxx gxx; do
8106 if test -n "$ncn_target_tool_prefix"; then
8107 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8108set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8109echo "$as_me:$LINENO: checking for $ac_word" >&5
8110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8111if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8113else
8114 if test -n "$CXX_FOR_TARGET"; then
8115 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8116else
c6b750e1
DJ
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128done
8129done
8130
55db4b87
PB
8131fi
8132fi
c6b750e1 8133CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8134if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8135 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8136echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8137else
c6b750e1
DJ
8138 echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6
55db4b87
PB
8140fi
8141
2429c060
PB
8142 fi
8143 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8145set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8146echo "$as_me:$LINENO: checking for $ac_word" >&5
8147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8148if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8150else
05cbd757
PB
8151 if test -n "$CXX_FOR_TARGET"; then
8152 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8153else
c6b750e1
DJ
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 break 2
8164 fi
8165done
8166done
8167
55db4b87
PB
8168fi
8169fi
c6b750e1 8170CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8171if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8172 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8173echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8174else
c6b750e1
DJ
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
55db4b87 8177fi
c6b750e1 8178
2429c060
PB
8179 fi
8180 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8181 done
8182fi
c6b750e1 8183
05cbd757
PB
8184if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8185 set dummy c++ g++ cxx gxx
8186 if test $build = $target ; then
8187 CXX_FOR_TARGET="$2"
55db4b87 8188 else
05cbd757 8189 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8190 fi
d3f5afc4
MS
8191else
8192 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8193fi
8194
9a819804
AO
8195
8196
8197if test -n "$GCC_FOR_TARGET"; then
8198 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8199elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8200 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8201fi
8202
8203if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8204 for ncn_progname in gcc; do
8205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8206set dummy ${ncn_progname}; ac_word=$2
8207echo "$as_me:$LINENO: checking for $ac_word" >&5
8208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8209if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212 if test -n "$GCC_FOR_TARGET"; then
8213 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226done
8227done
8228
8229fi
8230fi
8231GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8232if test -n "$GCC_FOR_TARGET"; then
8233 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8234echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8235else
8236 echo "$as_me:$LINENO: result: no" >&5
8237echo "${ECHO_T}no" >&6
8238fi
8239
8240 done
8241fi
8242
8243if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8244 for ncn_progname in gcc; do
c6b750e1
DJ
8245 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8246echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8247 if test -x $with_build_time_tools/${ncn_progname}; then
8248 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8249 echo "$as_me:$LINENO: result: yes" >&5
8250echo "${ECHO_T}yes" >&6
2429c060
PB
8251 break
8252 else
c6b750e1
DJ
8253 echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6
2429c060
PB
8255 fi
8256 done
8257fi
8258
8259if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8260 for ncn_progname in gcc; do
8261 if test -n "$ncn_target_tool_prefix"; then
8262 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8263set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8264echo "$as_me:$LINENO: checking for $ac_word" >&5
8265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8266if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8268else
2429c060
PB
8269 if test -n "$GCC_FOR_TARGET"; then
8270 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8271else
c6b750e1
DJ
8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283done
8284done
8285
55db4b87
PB
8286fi
8287fi
c6b750e1 8288GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8289if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8290 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8291echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8292else
c6b750e1
DJ
8293 echo "$as_me:$LINENO: result: no" >&5
8294echo "${ECHO_T}no" >&6
55db4b87
PB
8295fi
8296
2429c060
PB
8297 fi
8298 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8300set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8301echo "$as_me:$LINENO: checking for $ac_word" >&5
8302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8303if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8305else
05cbd757
PB
8306 if test -n "$GCC_FOR_TARGET"; then
8307 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8308else
c6b750e1
DJ
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320done
8321done
8322
55db4b87
PB
8323fi
8324fi
c6b750e1 8325GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8326if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8327 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8328echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8329else
c6b750e1
DJ
8330 echo "$as_me:$LINENO: result: no" >&5
8331echo "${ECHO_T}no" >&6
55db4b87 8332fi
c6b750e1 8333
2429c060
PB
8334 fi
8335 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8336 done
8337fi
c6b750e1 8338
05cbd757
PB
8339if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8340 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8341else
8342 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8343fi
8344
9a819804
AO
8345
8346
8347if test -n "$GCJ_FOR_TARGET"; then
8348 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8349elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8350 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8351fi
8352
8353if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8354 for ncn_progname in gcj; do
8355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8356set dummy ${ncn_progname}; ac_word=$2
8357echo "$as_me:$LINENO: checking for $ac_word" >&5
8358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8359if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 if test -n "$GCJ_FOR_TARGET"; then
8363 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377done
8378
8379fi
8380fi
8381GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8382if test -n "$GCJ_FOR_TARGET"; then
8383 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8384echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8385else
8386 echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6
8388fi
8389
8390 done
8391fi
8392
8393if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8394 for ncn_progname in gcj; do
c6b750e1
DJ
8395 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8396echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8397 if test -x $with_build_time_tools/${ncn_progname}; then
8398 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8399 echo "$as_me:$LINENO: result: yes" >&5
8400echo "${ECHO_T}yes" >&6
2429c060
PB
8401 break
8402 else
c6b750e1
DJ
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
2429c060
PB
8405 fi
8406 done
8407fi
8408
8409if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8410 for ncn_progname in gcj; do
8411 if test -n "$ncn_target_tool_prefix"; then
8412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8413set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8414echo "$as_me:$LINENO: checking for $ac_word" >&5
8415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8416if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8418else
8419 if test -n "$GCJ_FOR_TARGET"; then
8420 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8421else
c6b750e1
DJ
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433done
8434done
8435
55db4b87
PB
8436fi
8437fi
9a819804
AO
8438GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8439if test -n "$GCJ_FOR_TARGET"; then
8440 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8441echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8442else
8443 echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6
8445fi
8446
8447 fi
8448 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8450set dummy ${ncn_progname}; ac_word=$2
8451echo "$as_me:$LINENO: checking for $ac_word" >&5
8452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456 if test -n "$GCJ_FOR_TARGET"; then
8457 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8458else
8459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8469 fi
8470done
8471done
8472
8473fi
8474fi
8475GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8476if test -n "$GCJ_FOR_TARGET"; then
8477 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8478echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8479else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482fi
8483
8484 fi
8485 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8486 done
8487fi
8488
8489if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8490 set dummy gcj
8491 if test $build = $target ; then
8492 GCJ_FOR_TARGET="$2"
8493 else
8494 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8495 fi
d3f5afc4
MS
8496else
8497 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8498fi
8499
8500
8501
8502if test -n "$GFORTRAN_FOR_TARGET"; then
8503 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8504elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8505 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8506fi
8507
9a819804
AO
8508if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8509 for ncn_progname in gfortran; do
8510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8511set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8512echo "$as_me:$LINENO: checking for $ac_word" >&5
8513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8514if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8515 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8516else
9a819804
AO
8517 if test -n "$GFORTRAN_FOR_TARGET"; then
8518 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8519else
c6b750e1
DJ
8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8527 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8530 fi
8531done
8532done
8533
55db4b87
PB
8534fi
8535fi
9a819804
AO
8536GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8537if test -n "$GFORTRAN_FOR_TARGET"; then
8538 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8539echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8540else
c6b750e1
DJ
8541 echo "$as_me:$LINENO: result: no" >&5
8542echo "${ECHO_T}no" >&6
55db4b87 8543fi
c6b750e1 8544
2429c060
PB
8545 done
8546fi
c6b750e1 8547
9a819804 8548if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8549 for ncn_progname in gfortran; do
c6b750e1
DJ
8550 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8551echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8552 if test -x $with_build_time_tools/${ncn_progname}; then
8553 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8554 echo "$as_me:$LINENO: result: yes" >&5
8555echo "${ECHO_T}yes" >&6
2429c060
PB
8556 break
8557 else
c6b750e1
DJ
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
2429c060
PB
8560 fi
8561 done
8562fi
8563
8564if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8565 for ncn_progname in gfortran; do
8566 if test -n "$ncn_target_tool_prefix"; then
8567 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8568set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8569echo "$as_me:$LINENO: checking for $ac_word" >&5
8570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8571if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8573else
8574 if test -n "$GFORTRAN_FOR_TARGET"; then
8575 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8576else
c6b750e1
DJ
8577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578for as_dir in $PATH
8579do
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
8582 for ac_exec_ext in '' $ac_executable_extensions; do
8583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8584 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 break 2
8587 fi
8588done
8589done
8590
55db4b87
PB
8591fi
8592fi
c6b750e1 8593GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8594if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8595 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8596echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8597else
c6b750e1
DJ
8598 echo "$as_me:$LINENO: result: no" >&5
8599echo "${ECHO_T}no" >&6
55db4b87
PB
8600fi
8601
2429c060
PB
8602 fi
8603 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8605set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8606echo "$as_me:$LINENO: checking for $ac_word" >&5
8607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8608if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8610else
05cbd757 8611 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8612 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8613else
8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 break 2
8624 fi
8625done
8626done
8627
55db4b87
PB
8628fi
8629fi
c6b750e1 8630GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8631if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8632 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8633echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8634else
c6b750e1
DJ
8635 echo "$as_me:$LINENO: result: no" >&5
8636echo "${ECHO_T}no" >&6
55db4b87 8637fi
c6b750e1 8638
2429c060
PB
8639 fi
8640 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8641 done
8642fi
c6b750e1 8643
05cbd757
PB
8644if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8645 set dummy gfortran
8646 if test $build = $target ; then
8647 GFORTRAN_FOR_TARGET="$2"
55db4b87 8648 else
05cbd757 8649 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8650 fi
d3f5afc4
MS
8651else
8652 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8653fi
8654
2429c060
PB
8655
8656
2429c060
PB
8657cat > conftest.c << \EOF
8658#ifdef __GNUC__
8659 gcc_yay;
8660#endif
8661EOF
8662if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8663 have_gcc_for_target=yes
859789af 8664else
2429c060
PB
8665 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8666 have_gcc_for_target=no
859789af 8667fi
2429c060
PB
8668rm conftest.c
8669
8670
8671
859789af 8672
2429c060
PB
8673if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8674 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8675 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8676echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8677 if test -x $with_build_time_tools/ar; then
8678 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8679 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8680 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8681echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8682 else
c6b750e1
DJ
8683 echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
3a35eeb3 8685 fi
2429c060
PB
8686 elif test $build != $host && test $have_gcc_for_target = yes; then
8687 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8688 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8689 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8690 fi
2429c060 8691fi
c6b750e1 8692if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8693 # Extract the first word of "ar", so it can be a program name with args.
8694set dummy ar; ac_word=$2
c6b750e1
DJ
8695echo "$as_me:$LINENO: checking for $ac_word" >&5
8696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8697if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8699else
c6b750e1
DJ
8700 case $AR_FOR_TARGET in
8701 [\\/]* | ?:[\\/]*)
2429c060
PB
8702 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8703 ;;
2429c060 8704 *)
c6b750e1
DJ
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $gcc_cv_tool_dirs
8707do
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 break 2
8715 fi
8716done
8717done
8718
2429c060
PB
8719 ;;
8720esac
859789af 8721fi
c6b750e1
DJ
8722AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8723
2429c060 8724if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8725 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8726echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8727else
c6b750e1
DJ
8728 echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
859789af 8730fi
05cbd757 8731
2429c060
PB
8732fi
8733if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8734
8735
8736if test -n "$AR_FOR_TARGET"; then
8737 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8738elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8739 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8740fi
8741
8742if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8743 for ncn_progname in ar; do
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745set dummy ${ncn_progname}; ac_word=$2
8746echo "$as_me:$LINENO: checking for $ac_word" >&5
8747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8748if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751 if test -n "$AR_FOR_TARGET"; then
8752 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765done
8766done
8767
8768fi
8769fi
8770AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8771if test -n "$AR_FOR_TARGET"; then
8772 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8773echo "${ECHO_T}$AR_FOR_TARGET" >&6
8774else
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
8777fi
8778
8779 done
8780fi
8781
8782if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8783 for ncn_progname in ar; do
c6b750e1
DJ
8784 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8785echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8786 if test -x $with_build_time_tools/${ncn_progname}; then
8787 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8788 echo "$as_me:$LINENO: result: yes" >&5
8789echo "${ECHO_T}yes" >&6
2429c060
PB
8790 break
8791 else
c6b750e1
DJ
8792 echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6
2429c060
PB
8794 fi
8795 done
859789af
AC
8796fi
8797
2429c060
PB
8798if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8799 for ncn_progname in ar; do
8800 if test -n "$ncn_target_tool_prefix"; then
8801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8802set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8803echo "$as_me:$LINENO: checking for $ac_word" >&5
8804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8805if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8807else
2429c060
PB
8808 if test -n "$AR_FOR_TARGET"; then
8809 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8810else
c6b750e1
DJ
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 break 2
8821 fi
8822done
8823done
8824
7e0f7140
GK
8825fi
8826fi
c6b750e1 8827AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8828if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8829 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8830echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8831else
c6b750e1
DJ
8832 echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
7e0f7140
GK
8834fi
8835
2429c060
PB
8836 fi
8837 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8839set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8840echo "$as_me:$LINENO: checking for $ac_word" >&5
8841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8842if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8844else
2429c060
PB
8845 if test -n "$AR_FOR_TARGET"; then
8846 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8847else
c6b750e1
DJ
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859done
8860done
8861
7e0f7140
GK
8862fi
8863fi
c6b750e1 8864AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8865if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8866 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8867echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8868else
c6b750e1
DJ
8869 echo "$as_me:$LINENO: result: no" >&5
8870echo "${ECHO_T}no" >&6
7e0f7140 8871fi
c6b750e1 8872
2429c060
PB
8873 fi
8874 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8875 done
8876fi
c6b750e1 8877
2429c060
PB
8878if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8879 set dummy ar
7e0f7140 8880 if test $build = $target ; then
2429c060 8881 AR_FOR_TARGET="$2"
7e0f7140 8882 else
2429c060 8883 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8884 fi
d3f5afc4
MS
8885else
8886 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8887fi
8888
3a35eeb3
PB
8889else
8890 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8891fi
8892
8893
8894
8895
8896if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8897 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8898 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8899echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8900 if test -x $with_build_time_tools/as; then
8901 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8902 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8903 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8904echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8905 else
c6b750e1
DJ
8906 echo "$as_me:$LINENO: result: no" >&5
8907echo "${ECHO_T}no" >&6
3a35eeb3 8908 fi
2429c060
PB
8909 elif test $build != $host && test $have_gcc_for_target = yes; then
8910 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8911 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8912 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8913 fi
8914fi
c6b750e1 8915if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8916 # Extract the first word of "as", so it can be a program name with args.
8917set dummy as; ac_word=$2
c6b750e1
DJ
8918echo "$as_me:$LINENO: checking for $ac_word" >&5
8919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8922else
c6b750e1
DJ
8923 case $AS_FOR_TARGET in
8924 [\\/]* | ?:[\\/]*)
2429c060
PB
8925 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8926 ;;
2429c060 8927 *)
c6b750e1
DJ
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $gcc_cv_tool_dirs
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940done
8941
2429c060
PB
8942 ;;
8943esac
8944fi
c6b750e1
DJ
8945AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8946
2429c060 8947if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8948 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8949echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8950else
c6b750e1
DJ
8951 echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
2429c060
PB
8953fi
8954
8955fi
8956if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
8957
8958
8959if test -n "$AS_FOR_TARGET"; then
8960 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8961elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8962 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8963fi
8964
8965if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8966 for ncn_progname in as; do
8967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8968set dummy ${ncn_progname}; ac_word=$2
8969echo "$as_me:$LINENO: checking for $ac_word" >&5
8970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8971if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973else
8974 if test -n "$AS_FOR_TARGET"; then
8975 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8976else
8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8984 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988done
8989done
8990
8991fi
8992fi
8993AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8994if test -n "$AS_FOR_TARGET"; then
8995 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8996echo "${ECHO_T}$AS_FOR_TARGET" >&6
8997else
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
9000fi
9001
9002 done
9003fi
9004
9005if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9006 for ncn_progname in as; do
c6b750e1
DJ
9007 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9008echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9009 if test -x $with_build_time_tools/${ncn_progname}; then
9010 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
2429c060
PB
9013 break
9014 else
c6b750e1
DJ
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
2429c060
PB
9017 fi
9018 done
9019fi
9020
9021if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9022 for ncn_progname in as; do
9023 if test -n "$ncn_target_tool_prefix"; then
9024 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9025set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9026echo "$as_me:$LINENO: checking for $ac_word" >&5
9027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9028if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9030else
9031 if test -n "$AS_FOR_TARGET"; then
9032 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9033else
c6b750e1
DJ
9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035for as_dir in $PATH
9036do
9037 IFS=$as_save_IFS
9038 test -z "$as_dir" && as_dir=.
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9041 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 break 2
9044 fi
9045done
9046done
9047
2429c060
PB
9048fi
9049fi
c6b750e1 9050AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9051if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9052 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9053echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9054else
c6b750e1
DJ
9055 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
2429c060
PB
9057fi
9058
9059 fi
9060 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9062set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9063echo "$as_me:$LINENO: checking for $ac_word" >&5
9064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9065if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9067else
9068 if test -n "$AS_FOR_TARGET"; then
9069 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9070else
c6b750e1
DJ
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9078 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9081 fi
9082done
9083done
9084
2429c060
PB
9085fi
9086fi
c6b750e1 9087AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9088if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9089 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9090echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9091else
c6b750e1
DJ
9092 echo "$as_me:$LINENO: result: no" >&5
9093echo "${ECHO_T}no" >&6
2429c060 9094fi
c6b750e1 9095
2429c060
PB
9096 fi
9097 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9098 done
9099fi
c6b750e1 9100
2429c060
PB
9101if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9102 set dummy as
9103 if test $build = $target ; then
9104 AS_FOR_TARGET="$2"
9105 else
9106 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9107 fi
d3f5afc4
MS
9108else
9109 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9110fi
9111
3a35eeb3
PB
9112else
9113 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9114fi
9115
9116
9117
9118
9119if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9120 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9121 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9122echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9123 if test -x $with_build_time_tools/dlltool; then
9124 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9125 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9126 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9127echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9128 else
c6b750e1
DJ
9129 echo "$as_me:$LINENO: result: no" >&5
9130echo "${ECHO_T}no" >&6
3a35eeb3 9131 fi
2429c060
PB
9132 elif test $build != $host && test $have_gcc_for_target = yes; then
9133 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9134 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9135 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9136 fi
9137fi
c6b750e1 9138if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9139 # Extract the first word of "dlltool", so it can be a program name with args.
9140set dummy dlltool; ac_word=$2
c6b750e1
DJ
9141echo "$as_me:$LINENO: checking for $ac_word" >&5
9142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9143if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9145else
c6b750e1
DJ
9146 case $DLLTOOL_FOR_TARGET in
9147 [\\/]* | ?:[\\/]*)
2429c060
PB
9148 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9149 ;;
2429c060 9150 *)
c6b750e1
DJ
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152for as_dir in $gcc_cv_tool_dirs
9153do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162done
9163done
9164
2429c060
PB
9165 ;;
9166esac
9167fi
c6b750e1
DJ
9168DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9169
2429c060 9170if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9171 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9172echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9173else
c6b750e1
DJ
9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
2429c060
PB
9176fi
9177
9178fi
9179if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9180
9181
9182if test -n "$DLLTOOL_FOR_TARGET"; then
9183 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9184elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9185 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9186fi
9187
9188if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9189 for ncn_progname in dlltool; do
9190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9191set dummy ${ncn_progname}; ac_word=$2
9192echo "$as_me:$LINENO: checking for $ac_word" >&5
9193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9194if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196else
9197 if test -n "$DLLTOOL_FOR_TARGET"; then
9198 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9199else
9200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $PATH
9202do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211done
9212done
9213
9214fi
9215fi
9216DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9217if test -n "$DLLTOOL_FOR_TARGET"; then
9218 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9219echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9220else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223fi
9224
9225 done
9226fi
9227
9228if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9229 for ncn_progname in dlltool; do
c6b750e1
DJ
9230 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9231echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9232 if test -x $with_build_time_tools/${ncn_progname}; then
9233 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
2429c060
PB
9236 break
9237 else
c6b750e1
DJ
9238 echo "$as_me:$LINENO: result: no" >&5
9239echo "${ECHO_T}no" >&6
2429c060
PB
9240 fi
9241 done
9242fi
9243
9244if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9245 for ncn_progname in dlltool; do
9246 if test -n "$ncn_target_tool_prefix"; then
9247 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9248set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9249echo "$as_me:$LINENO: checking for $ac_word" >&5
9250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9251if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9253else
9254 if test -n "$DLLTOOL_FOR_TARGET"; then
9255 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9256else
c6b750e1
DJ
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9264 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9267 fi
9268done
9269done
9270
2429c060
PB
9271fi
9272fi
c6b750e1 9273DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9274if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9275 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9276echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9277else
c6b750e1
DJ
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
2429c060
PB
9280fi
9281
9282 fi
9283 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9286echo "$as_me:$LINENO: checking for $ac_word" >&5
9287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9288if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9290else
9291 if test -n "$DLLTOOL_FOR_TARGET"; then
9292 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9293else
c6b750e1
DJ
9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9304 fi
9305done
9306done
9307
2429c060
PB
9308fi
9309fi
c6b750e1 9310DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9311if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9312 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9313echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9314else
c6b750e1
DJ
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
2429c060 9317fi
c6b750e1 9318
2429c060
PB
9319 fi
9320 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9321 done
9322fi
c6b750e1 9323
2429c060
PB
9324if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9325 set dummy dlltool
9326 if test $build = $target ; then
9327 DLLTOOL_FOR_TARGET="$2"
9328 else
9329 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9330 fi
d3f5afc4
MS
9331else
9332 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9333fi
9334
3a35eeb3
PB
9335else
9336 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9337fi
9338
9339
9340
9341
9342if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9343 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9344 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9345echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9346 if test -x $with_build_time_tools/ld; then
9347 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9348 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9349 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9350echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9351 else
c6b750e1
DJ
9352 echo "$as_me:$LINENO: result: no" >&5
9353echo "${ECHO_T}no" >&6
3a35eeb3 9354 fi
2429c060
PB
9355 elif test $build != $host && test $have_gcc_for_target = yes; then
9356 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9357 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9358 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9359 fi
9360fi
c6b750e1 9361if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9362 # Extract the first word of "ld", so it can be a program name with args.
9363set dummy ld; ac_word=$2
c6b750e1
DJ
9364echo "$as_me:$LINENO: checking for $ac_word" >&5
9365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9366if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9368else
c6b750e1
DJ
9369 case $LD_FOR_TARGET in
9370 [\\/]* | ?:[\\/]*)
2429c060
PB
9371 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9372 ;;
2429c060 9373 *)
c6b750e1
DJ
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $gcc_cv_tool_dirs
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9381 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9384 fi
9385done
9386done
9387
2429c060
PB
9388 ;;
9389esac
9390fi
c6b750e1
DJ
9391LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9392
2429c060 9393if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9394 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9395echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9396else
c6b750e1
DJ
9397 echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
2429c060
PB
9399fi
9400
9401fi
9402if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9403
9404
9405if test -n "$LD_FOR_TARGET"; then
9406 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9407elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9408 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9409fi
9410
9411if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9412 for ncn_progname in ld; do
9413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9414set dummy ${ncn_progname}; ac_word=$2
9415echo "$as_me:$LINENO: checking for $ac_word" >&5
9416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9417if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419else
9420 if test -n "$LD_FOR_TARGET"; then
9421 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9422else
9423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9430 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9433 fi
9434done
9435done
9436
9437fi
9438fi
9439LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9440if test -n "$LD_FOR_TARGET"; then
9441 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9442echo "${ECHO_T}$LD_FOR_TARGET" >&6
9443else
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
9446fi
9447
9448 done
9449fi
9450
9451if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9452 for ncn_progname in ld; do
c6b750e1
DJ
9453 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9454echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9455 if test -x $with_build_time_tools/${ncn_progname}; then
9456 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9457 echo "$as_me:$LINENO: result: yes" >&5
9458echo "${ECHO_T}yes" >&6
2429c060
PB
9459 break
9460 else
c6b750e1
DJ
9461 echo "$as_me:$LINENO: result: no" >&5
9462echo "${ECHO_T}no" >&6
2429c060
PB
9463 fi
9464 done
9465fi
9466
9467if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9468 for ncn_progname in ld; do
9469 if test -n "$ncn_target_tool_prefix"; then
9470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9471set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9472echo "$as_me:$LINENO: checking for $ac_word" >&5
9473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9474if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9476else
9477 if test -n "$LD_FOR_TARGET"; then
9478 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9479else
c6b750e1
DJ
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9490 fi
9491done
9492done
9493
2429c060
PB
9494fi
9495fi
c6b750e1 9496LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9497if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9498 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9499echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9500else
c6b750e1
DJ
9501 echo "$as_me:$LINENO: result: no" >&5
9502echo "${ECHO_T}no" >&6
2429c060
PB
9503fi
9504
9505 fi
9506 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9508set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9509echo "$as_me:$LINENO: checking for $ac_word" >&5
9510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9511if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9513else
9514 if test -n "$LD_FOR_TARGET"; then
9515 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9516else
c6b750e1
DJ
9517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518for as_dir in $PATH
9519do
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9524 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9527 fi
9528done
9529done
9530
2429c060
PB
9531fi
9532fi
c6b750e1 9533LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9534if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9535 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9536echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9537else
c6b750e1
DJ
9538 echo "$as_me:$LINENO: result: no" >&5
9539echo "${ECHO_T}no" >&6
2429c060 9540fi
c6b750e1 9541
2429c060
PB
9542 fi
9543 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9544 done
9545fi
c6b750e1 9546
2429c060
PB
9547if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9548 set dummy ld
9549 if test $build = $target ; then
9550 LD_FOR_TARGET="$2"
9551 else
9552 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9553 fi
d3f5afc4
MS
9554else
9555 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9556fi
9557
3a35eeb3
PB
9558else
9559 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9560fi
9561
9562
9563
9564
9565if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9566 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9567 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9568echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9569 if test -x $with_build_time_tools/lipo; then
9570 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9571 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9572 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9573echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9574 else
c6b750e1
DJ
9575 echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
3a35eeb3 9577 fi
2429c060
PB
9578 elif test $build != $host && test $have_gcc_for_target = yes; then
9579 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9580 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9581 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9582 fi
9583fi
9a819804
AO
9584if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9585 # Extract the first word of "lipo", so it can be a program name with args.
9586set dummy lipo; ac_word=$2
9587echo "$as_me:$LINENO: checking for $ac_word" >&5
9588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9589if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 case $LIPO_FOR_TARGET in
9593 [\\/]* | ?:[\\/]*)
9594 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9595 ;;
9596 *)
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598for as_dir in $gcc_cv_tool_dirs
9599do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9604 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9607 fi
9608done
9609done
9610
9611 ;;
9612esac
9613fi
9614LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9615
9616if test -n "$LIPO_FOR_TARGET"; then
9617 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9618echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9619else
9620 echo "$as_me:$LINENO: result: no" >&5
9621echo "${ECHO_T}no" >&6
9622fi
9623
9624fi
9625if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9626
9627
9628if test -n "$LIPO_FOR_TARGET"; then
9629 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9630elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9631 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9632fi
9633
9634if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9635 for ncn_progname in lipo; do
9636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9637set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9638echo "$as_me:$LINENO: checking for $ac_word" >&5
9639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9640if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9641 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9642else
9a819804
AO
9643 if test -n "$LIPO_FOR_TARGET"; then
9644 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9645else
9646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647for as_dir in $PATH
c6b750e1
DJ
9648do
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9653 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 break 2
9656 fi
9657done
9658done
9659
2429c060 9660fi
9a819804
AO
9661fi
9662LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9663if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9664 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9665echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9666else
c6b750e1
DJ
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
2429c060
PB
9669fi
9670
9a819804 9671 done
2429c060 9672fi
9a819804
AO
9673
9674if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9675 for ncn_progname in lipo; do
c6b750e1
DJ
9676 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9677echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9678 if test -x $with_build_time_tools/${ncn_progname}; then
9679 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9680 echo "$as_me:$LINENO: result: yes" >&5
9681echo "${ECHO_T}yes" >&6
2429c060
PB
9682 break
9683 else
c6b750e1
DJ
9684 echo "$as_me:$LINENO: result: no" >&5
9685echo "${ECHO_T}no" >&6
2429c060
PB
9686 fi
9687 done
9688fi
9689
9690if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9691 for ncn_progname in lipo; do
9692 if test -n "$ncn_target_tool_prefix"; then
9693 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9694set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9695echo "$as_me:$LINENO: checking for $ac_word" >&5
9696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9697if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9699else
9700 if test -n "$LIPO_FOR_TARGET"; then
9701 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9702else
c6b750e1
DJ
9703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9710 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9713 fi
9714done
9715done
9716
2429c060
PB
9717fi
9718fi
c6b750e1 9719LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9720if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9721 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9722echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9723else
c6b750e1
DJ
9724 echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6
2429c060
PB
9726fi
9727
9728 fi
9729 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9731set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9732echo "$as_me:$LINENO: checking for $ac_word" >&5
9733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9734if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9736else
9737 if test -n "$LIPO_FOR_TARGET"; then
9738 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9739else
c6b750e1
DJ
9740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741for as_dir in $PATH
9742do
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9747 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751done
9752done
9753
2429c060
PB
9754fi
9755fi
c6b750e1 9756LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9757if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9758 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9759echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9760else
c6b750e1
DJ
9761 echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
2429c060 9763fi
c6b750e1 9764
2429c060
PB
9765 fi
9766 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9767 done
9768fi
c6b750e1 9769
2429c060
PB
9770if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9771 set dummy lipo
9772 if test $build = $target ; then
9773 LIPO_FOR_TARGET="$2"
9774 else
9775 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9776 fi
d3f5afc4
MS
9777else
9778 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9779fi
9780
3a35eeb3
PB
9781else
9782 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9783fi
9784
9785
9786
9787
9788if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9789 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9790 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9791echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9792 if test -x $with_build_time_tools/nm; then
9793 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9794 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9795 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9796echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9797 else
c6b750e1
DJ
9798 echo "$as_me:$LINENO: result: no" >&5
9799echo "${ECHO_T}no" >&6
3a35eeb3 9800 fi
2429c060
PB
9801 elif test $build != $host && test $have_gcc_for_target = yes; then
9802 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9803 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9804 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9805 fi
9806fi
c6b750e1 9807if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9808 # Extract the first word of "nm", so it can be a program name with args.
9809set dummy nm; ac_word=$2
c6b750e1
DJ
9810echo "$as_me:$LINENO: checking for $ac_word" >&5
9811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9812if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9814else
c6b750e1
DJ
9815 case $NM_FOR_TARGET in
9816 [\\/]* | ?:[\\/]*)
2429c060
PB
9817 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9818 ;;
2429c060 9819 *)
c6b750e1
DJ
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $gcc_cv_tool_dirs
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9830 fi
9831done
9832done
9833
2429c060
PB
9834 ;;
9835esac
9836fi
c6b750e1
DJ
9837NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9838
2429c060 9839if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9840 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9841echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9842else
c6b750e1
DJ
9843 echo "$as_me:$LINENO: result: no" >&5
9844echo "${ECHO_T}no" >&6
2429c060
PB
9845fi
9846
9847fi
9848if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9849
9850
9851if test -n "$NM_FOR_TARGET"; then
9852 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9853elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9854 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9855fi
9856
9857if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9858 for ncn_progname in nm; do
9859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9860set dummy ${ncn_progname}; ac_word=$2
9861echo "$as_me:$LINENO: checking for $ac_word" >&5
9862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9863if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 if test -n "$NM_FOR_TARGET"; then
9867 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9868else
9869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870for as_dir in $PATH
9871do
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9879 fi
9880done
9881done
9882
9883fi
9884fi
9885NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9886if test -n "$NM_FOR_TARGET"; then
9887 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9888echo "${ECHO_T}$NM_FOR_TARGET" >&6
9889else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892fi
9893
9894 done
9895fi
9896
9897if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9898 for ncn_progname in nm; do
c6b750e1
DJ
9899 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9900echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9901 if test -x $with_build_time_tools/${ncn_progname}; then
9902 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9903 echo "$as_me:$LINENO: result: yes" >&5
9904echo "${ECHO_T}yes" >&6
2429c060
PB
9905 break
9906 else
c6b750e1
DJ
9907 echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
2429c060
PB
9909 fi
9910 done
9911fi
9912
9913if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9914 for ncn_progname in nm; do
9915 if test -n "$ncn_target_tool_prefix"; then
9916 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9917set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9918echo "$as_me:$LINENO: checking for $ac_word" >&5
9919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9920if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9922else
55db4b87
PB
9923 if test -n "$NM_FOR_TARGET"; then
9924 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9925else
c6b750e1
DJ
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9935 break 2
9936 fi
9937done
9938done
9939
859789af
AC
9940fi
9941fi
c6b750e1 9942NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9943if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9944 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9945echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9946else
c6b750e1
DJ
9947 echo "$as_me:$LINENO: result: no" >&5
9948echo "${ECHO_T}no" >&6
859789af
AC
9949fi
9950
2429c060
PB
9951 fi
9952 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9954set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9955echo "$as_me:$LINENO: checking for $ac_word" >&5
9956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9957if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9959else
05cbd757
PB
9960 if test -n "$NM_FOR_TARGET"; then
9961 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9962else
c6b750e1
DJ
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9973 fi
9974done
9975done
9976
859789af
AC
9977fi
9978fi
c6b750e1 9979NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 9980if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9981 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9982echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9983else
c6b750e1
DJ
9984 echo "$as_me:$LINENO: result: no" >&5
9985echo "${ECHO_T}no" >&6
859789af 9986fi
c6b750e1 9987
2429c060
PB
9988 fi
9989 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9990 done
9991fi
c6b750e1 9992
05cbd757
PB
9993if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9994 set dummy nm
9995 if test $build = $target ; then
9996 NM_FOR_TARGET="$2"
859789af 9997 else
05cbd757 9998 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9999 fi
d3f5afc4
MS
10000else
10001 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10002fi
10003
3a35eeb3
PB
10004else
10005 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10006fi
10007
10008
10009
10010
10011if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10012 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10013 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10014echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10015 if test -x $with_build_time_tools/objdump; then
10016 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10017 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10018 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10019echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10020 else
c6b750e1
DJ
10021 echo "$as_me:$LINENO: result: no" >&5
10022echo "${ECHO_T}no" >&6
3a35eeb3 10023 fi
2429c060
PB
10024 elif test $build != $host && test $have_gcc_for_target = yes; then
10025 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10026 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10027 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10028 fi
10029fi
c6b750e1 10030if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10031 # Extract the first word of "objdump", so it can be a program name with args.
10032set dummy objdump; ac_word=$2
c6b750e1
DJ
10033echo "$as_me:$LINENO: checking for $ac_word" >&5
10034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10035if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10037else
c6b750e1
DJ
10038 case $OBJDUMP_FOR_TARGET in
10039 [\\/]* | ?:[\\/]*)
2429c060
PB
10040 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10041 ;;
2429c060 10042 *)
c6b750e1
DJ
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044for as_dir in $gcc_cv_tool_dirs
10045do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054done
10055done
10056
2429c060
PB
10057 ;;
10058esac
10059fi
c6b750e1
DJ
10060OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10061
2429c060 10062if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10063 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10064echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10065else
c6b750e1
DJ
10066 echo "$as_me:$LINENO: result: no" >&5
10067echo "${ECHO_T}no" >&6
2429c060
PB
10068fi
10069
10070fi
10071if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10072
10073
10074if test -n "$OBJDUMP_FOR_TARGET"; then
10075 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10076elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10077 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10078fi
10079
10080if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10081 for ncn_progname in objdump; do
10082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10083set dummy ${ncn_progname}; ac_word=$2
10084echo "$as_me:$LINENO: checking for $ac_word" >&5
10085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10086if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088else
10089 if test -n "$OBJDUMP_FOR_TARGET"; then
10090 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10091else
10092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093for as_dir in $PATH
10094do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10102 fi
10103done
10104done
10105
10106fi
10107fi
10108OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10109if test -n "$OBJDUMP_FOR_TARGET"; then
10110 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10111echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10112else
10113 echo "$as_me:$LINENO: result: no" >&5
10114echo "${ECHO_T}no" >&6
10115fi
10116
10117 done
10118fi
10119
10120if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10121 for ncn_progname in objdump; do
c6b750e1
DJ
10122 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10123echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10124 if test -x $with_build_time_tools/${ncn_progname}; then
10125 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
2429c060
PB
10128 break
10129 else
c6b750e1
DJ
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
2429c060
PB
10132 fi
10133 done
10134fi
10135
10136if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10137 for ncn_progname in objdump; do
10138 if test -n "$ncn_target_tool_prefix"; then
10139 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10140set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10141echo "$as_me:$LINENO: checking for $ac_word" >&5
10142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10143if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10145else
10146 if test -n "$OBJDUMP_FOR_TARGET"; then
10147 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10148else
c6b750e1
DJ
10149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150for as_dir in $PATH
10151do
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10156 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 break 2
10159 fi
10160done
10161done
10162
5ae72758
DJ
10163fi
10164fi
c6b750e1 10165OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10166if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10167 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10168echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10169else
c6b750e1
DJ
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
5ae72758
DJ
10172fi
10173
2429c060
PB
10174 fi
10175 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10177set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10178echo "$as_me:$LINENO: checking for $ac_word" >&5
10179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10180if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10182else
10183 if test -n "$OBJDUMP_FOR_TARGET"; then
10184 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10185else
c6b750e1
DJ
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
10188do
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10196 fi
10197done
10198done
10199
5ae72758
DJ
10200fi
10201fi
c6b750e1 10202OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10203if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10204 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10205echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10206else
c6b750e1
DJ
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
5ae72758 10209fi
c6b750e1 10210
2429c060
PB
10211 fi
10212 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10213 done
10214fi
c6b750e1 10215
5ae72758
DJ
10216if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10217 set dummy objdump
10218 if test $build = $target ; then
10219 OBJDUMP_FOR_TARGET="$2"
10220 else
10221 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10222 fi
d3f5afc4
MS
10223else
10224 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10225fi
10226
3a35eeb3
PB
10227else
10228 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10229fi
10230
10231
10232
10233
10234if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10235 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10236 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10237echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10238 if test -x $with_build_time_tools/ranlib; then
10239 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10240 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10241 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10242echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10243 else
c6b750e1
DJ
10244 echo "$as_me:$LINENO: result: no" >&5
10245echo "${ECHO_T}no" >&6
3a35eeb3 10246 fi
2429c060
PB
10247 elif test $build != $host && test $have_gcc_for_target = yes; then
10248 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10249 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10250 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10251 fi
10252fi
c6b750e1 10253if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10254 # Extract the first word of "ranlib", so it can be a program name with args.
10255set dummy ranlib; ac_word=$2
c6b750e1
DJ
10256echo "$as_me:$LINENO: checking for $ac_word" >&5
10257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10258if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10260else
c6b750e1
DJ
10261 case $RANLIB_FOR_TARGET in
10262 [\\/]* | ?:[\\/]*)
2429c060
PB
10263 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10264 ;;
2429c060 10265 *)
c6b750e1
DJ
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267for as_dir in $gcc_cv_tool_dirs
10268do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10276 fi
10277done
10278done
10279
2429c060
PB
10280 ;;
10281esac
10282fi
c6b750e1
DJ
10283RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10284
2429c060 10285if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10286 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10287echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10288else
c6b750e1
DJ
10289 echo "$as_me:$LINENO: result: no" >&5
10290echo "${ECHO_T}no" >&6
2429c060
PB
10291fi
10292
10293fi
10294if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10295
10296
10297if test -n "$RANLIB_FOR_TARGET"; then
10298 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10299elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10300 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10301fi
10302
10303if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10304 for ncn_progname in ranlib; do
10305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10306set dummy ${ncn_progname}; ac_word=$2
10307echo "$as_me:$LINENO: checking for $ac_word" >&5
10308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10309if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311else
10312 if test -n "$RANLIB_FOR_TARGET"; then
10313 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10314else
10315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316for as_dir in $PATH
10317do
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10322 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10325 fi
10326done
10327done
10328
10329fi
10330fi
10331RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10332if test -n "$RANLIB_FOR_TARGET"; then
10333 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10334echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10335else
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
10338fi
10339
10340 done
10341fi
10342
10343if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10344 for ncn_progname in ranlib; do
c6b750e1
DJ
10345 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10346echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10347 if test -x $with_build_time_tools/${ncn_progname}; then
10348 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10349 echo "$as_me:$LINENO: result: yes" >&5
10350echo "${ECHO_T}yes" >&6
2429c060
PB
10351 break
10352 else
c6b750e1
DJ
10353 echo "$as_me:$LINENO: result: no" >&5
10354echo "${ECHO_T}no" >&6
2429c060
PB
10355 fi
10356 done
10357fi
10358
10359if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10360 for ncn_progname in ranlib; do
10361 if test -n "$ncn_target_tool_prefix"; then
10362 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10363set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10364echo "$as_me:$LINENO: checking for $ac_word" >&5
10365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10366if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10368else
55db4b87
PB
10369 if test -n "$RANLIB_FOR_TARGET"; then
10370 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10371else
c6b750e1
DJ
10372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 break 2
10382 fi
10383done
10384done
10385
859789af
AC
10386fi
10387fi
c6b750e1 10388RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10389if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10390 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10391echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10392else
c6b750e1
DJ
10393 echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6
859789af
AC
10395fi
10396
2429c060
PB
10397 fi
10398 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10400set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10405else
05cbd757
PB
10406 if test -n "$RANLIB_FOR_TARGET"; then
10407 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10408else
c6b750e1
DJ
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
859789af
AC
10423fi
10424fi
c6b750e1 10425RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10426if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10427 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10428echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10429else
c6b750e1
DJ
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
859789af 10432fi
c6b750e1 10433
2429c060
PB
10434 fi
10435 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10436 done
10437fi
c6b750e1 10438
2429c060
PB
10439if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10440 set dummy ranlib
10441 if test $build = $target ; then
10442 RANLIB_FOR_TARGET="$2"
10443 else
10444 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10445 fi
d3f5afc4
MS
10446else
10447 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10448fi
05cbd757 10449
3a35eeb3
PB
10450else
10451 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10452fi
10453
2429c060
PB
10454
10455
10456
10457if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10458 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10459 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10460echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10461 if test -x $with_build_time_tools/strip; then
10462 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10463 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10464 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10465echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10466 else
c6b750e1
DJ
10467 echo "$as_me:$LINENO: result: no" >&5
10468echo "${ECHO_T}no" >&6
3a35eeb3 10469 fi
2429c060
PB
10470 elif test $build != $host && test $have_gcc_for_target = yes; then
10471 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10472 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10473 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10474 fi
10475fi
c6b750e1 10476if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10477 # Extract the first word of "strip", so it can be a program name with args.
10478set dummy strip; ac_word=$2
c6b750e1
DJ
10479echo "$as_me:$LINENO: checking for $ac_word" >&5
10480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10481if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10483else
c6b750e1
DJ
10484 case $STRIP_FOR_TARGET in
10485 [\\/]* | ?:[\\/]*)
2429c060
PB
10486 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10487 ;;
2429c060 10488 *)
c6b750e1
DJ
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $gcc_cv_tool_dirs
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500done
10501done
10502
2429c060
PB
10503 ;;
10504esac
10505fi
c6b750e1
DJ
10506STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10507
2429c060 10508if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10509 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10510echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10511else
c6b750e1
DJ
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
2429c060
PB
10514fi
10515
10516fi
10517if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10518
10519
10520if test -n "$STRIP_FOR_TARGET"; then
10521 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10522elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10523 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10524fi
10525
10526if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10527 for ncn_progname in strip; do
10528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10529set dummy ${ncn_progname}; ac_word=$2
10530echo "$as_me:$LINENO: checking for $ac_word" >&5
10531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10532if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535 if test -n "$STRIP_FOR_TARGET"; then
10536 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10537else
10538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539for as_dir in $PATH
10540do
10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 break 2
10548 fi
10549done
10550done
10551
10552fi
10553fi
10554STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10555if test -n "$STRIP_FOR_TARGET"; then
10556 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10557echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10558else
10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
10561fi
10562
10563 done
10564fi
10565
10566if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10567 for ncn_progname in strip; do
c6b750e1
DJ
10568 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10569echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10570 if test -x $with_build_time_tools/${ncn_progname}; then
10571 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10572 echo "$as_me:$LINENO: result: yes" >&5
10573echo "${ECHO_T}yes" >&6
2429c060
PB
10574 break
10575 else
c6b750e1
DJ
10576 echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6
2429c060
PB
10578 fi
10579 done
10580fi
10581
10582if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10583 for ncn_progname in strip; do
10584 if test -n "$ncn_target_tool_prefix"; then
10585 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10586set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10587echo "$as_me:$LINENO: checking for $ac_word" >&5
10588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10589if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10591else
10592 if test -n "$STRIP_FOR_TARGET"; then
10593 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10594else
10595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596for as_dir in $PATH
10597do
10598 IFS=$as_save_IFS
10599 test -z "$as_dir" && as_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
10601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10602 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 break 2
10605 fi
10606done
10607done
10608
7e0f7140
GK
10609fi
10610fi
c6b750e1 10611STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10612if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10613 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10614echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10615else
c6b750e1
DJ
10616 echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6
7e0f7140
GK
10618fi
10619
2429c060
PB
10620 fi
10621 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10623set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10624echo "$as_me:$LINENO: checking for $ac_word" >&5
10625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10626if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10628else
10629 if test -n "$STRIP_FOR_TARGET"; then
10630 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10631else
c6b750e1
DJ
10632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633for as_dir in $PATH
10634do
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10642 fi
10643done
10644done
10645
7e0f7140
GK
10646fi
10647fi
c6b750e1 10648STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10649if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10650 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10651echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10652else
c6b750e1
DJ
10653 echo "$as_me:$LINENO: result: no" >&5
10654echo "${ECHO_T}no" >&6
7e0f7140 10655fi
c6b750e1 10656
2429c060
PB
10657 fi
10658 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10659 done
10660fi
c6b750e1 10661
7e0f7140
GK
10662if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10663 set dummy strip
10664 if test $build = $target ; then
10665 STRIP_FOR_TARGET="$2"
10666 else
10667 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10668 fi
d3f5afc4
MS
10669else
10670 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10671fi
10672
3a35eeb3
PB
10673else
10674 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10675fi
10676
10677
10678
10679
10680if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10681 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10682 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10683echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10684 if test -x $with_build_time_tools/windres; then
10685 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10686 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10687 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10688echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10689 else
c6b750e1
DJ
10690 echo "$as_me:$LINENO: result: no" >&5
10691echo "${ECHO_T}no" >&6
3a35eeb3 10692 fi
2429c060
PB
10693 elif test $build != $host && test $have_gcc_for_target = yes; then
10694 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10695 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10696 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10697 fi
10698fi
c6b750e1 10699if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10700 # Extract the first word of "windres", so it can be a program name with args.
10701set dummy windres; ac_word=$2
c6b750e1
DJ
10702echo "$as_me:$LINENO: checking for $ac_word" >&5
10703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10704if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10706else
c6b750e1
DJ
10707 case $WINDRES_FOR_TARGET in
10708 [\\/]* | ?:[\\/]*)
2429c060
PB
10709 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10710 ;;
2429c060 10711 *)
c6b750e1
DJ
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $gcc_cv_tool_dirs
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723done
10724done
10725
2429c060
PB
10726 ;;
10727esac
10728fi
c6b750e1
DJ
10729WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10730
2429c060 10731if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10732 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10733echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10734else
c6b750e1
DJ
10735 echo "$as_me:$LINENO: result: no" >&5
10736echo "${ECHO_T}no" >&6
2429c060
PB
10737fi
10738
10739fi
10740if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10741
10742
10743if test -n "$WINDRES_FOR_TARGET"; then
10744 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10745elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10746 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10747fi
10748
10749if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10750 for ncn_progname in windres; do
10751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10752set dummy ${ncn_progname}; ac_word=$2
10753echo "$as_me:$LINENO: checking for $ac_word" >&5
10754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10755if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757else
10758 if test -n "$WINDRES_FOR_TARGET"; then
10759 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10760else
10761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762for as_dir in $PATH
10763do
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10768 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10771 fi
10772done
10773done
10774
10775fi
10776fi
10777WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10778if test -n "$WINDRES_FOR_TARGET"; then
10779 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10780echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10781else
10782 echo "$as_me:$LINENO: result: no" >&5
10783echo "${ECHO_T}no" >&6
10784fi
10785
10786 done
10787fi
10788
10789if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10790 for ncn_progname in windres; do
c6b750e1
DJ
10791 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10792echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10793 if test -x $with_build_time_tools/${ncn_progname}; then
10794 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10795 echo "$as_me:$LINENO: result: yes" >&5
10796echo "${ECHO_T}yes" >&6
2429c060
PB
10797 break
10798 else
c6b750e1
DJ
10799 echo "$as_me:$LINENO: result: no" >&5
10800echo "${ECHO_T}no" >&6
2429c060
PB
10801 fi
10802 done
10803fi
10804
10805if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10806 for ncn_progname in windres; do
10807 if test -n "$ncn_target_tool_prefix"; then
10808 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10809set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10810echo "$as_me:$LINENO: checking for $ac_word" >&5
10811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10812if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10814else
55db4b87
PB
10815 if test -n "$WINDRES_FOR_TARGET"; then
10816 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10817else
c6b750e1
DJ
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10825 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10828 fi
10829done
10830done
10831
859789af
AC
10832fi
10833fi
c6b750e1 10834WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10835if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10836 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10837echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10838else
c6b750e1
DJ
10839 echo "$as_me:$LINENO: result: no" >&5
10840echo "${ECHO_T}no" >&6
859789af
AC
10841fi
10842
2429c060
PB
10843 fi
10844 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10846set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10847echo "$as_me:$LINENO: checking for $ac_word" >&5
10848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10849if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10851else
05cbd757
PB
10852 if test -n "$WINDRES_FOR_TARGET"; then
10853 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10854else
c6b750e1
DJ
10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10862 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10864 break 2
10865 fi
10866done
10867done
10868
859789af
AC
10869fi
10870fi
c6b750e1 10871WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10872if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10873 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10874echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10875else
c6b750e1
DJ
10876 echo "$as_me:$LINENO: result: no" >&5
10877echo "${ECHO_T}no" >&6
859789af 10878fi
c6b750e1 10879
2429c060
PB
10880 fi
10881 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10882 done
10883fi
c6b750e1 10884
05cbd757
PB
10885if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10886 set dummy windres
10887 if test $build = $target ; then
10888 WINDRES_FOR_TARGET="$2"
859789af 10889 else
05cbd757 10890 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10891 fi
d3f5afc4
MS
10892else
10893 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10894fi
10895
3a35eeb3
PB
10896else
10897 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10898fi
10899
852e5f18 10900
0c24b341
NC
10901
10902
10903if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10904 if test -n "$with_build_time_tools"; then
10905 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10906echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10907 if test -x $with_build_time_tools/windmc; then
10908 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10909 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10910 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10911echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10912 else
10913 echo "$as_me:$LINENO: result: no" >&5
10914echo "${ECHO_T}no" >&6
10915 fi
10916 elif test $build != $host && test $have_gcc_for_target = yes; then
10917 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10918 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10919 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10920 fi
10921fi
10922if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10923 # Extract the first word of "windmc", so it can be a program name with args.
10924set dummy windmc; ac_word=$2
10925echo "$as_me:$LINENO: checking for $ac_word" >&5
10926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930 case $WINDMC_FOR_TARGET in
10931 [\\/]* | ?:[\\/]*)
10932 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10933 ;;
10934 *)
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $gcc_cv_tool_dirs
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946done
10947done
10948
10949 ;;
10950esac
10951fi
10952WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10953
10954if test -n "$WINDMC_FOR_TARGET"; then
10955 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10956echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10957else
10958 echo "$as_me:$LINENO: result: no" >&5
10959echo "${ECHO_T}no" >&6
10960fi
10961
10962fi
10963if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10964
10965
10966if test -n "$WINDMC_FOR_TARGET"; then
10967 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10968elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10969 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10970fi
10971
10972if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10973 for ncn_progname in windmc; do
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975set dummy ${ncn_progname}; ac_word=$2
10976echo "$as_me:$LINENO: checking for $ac_word" >&5
10977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10978if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980else
10981 if test -n "$WINDMC_FOR_TARGET"; then
10982 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
10992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995done
10996done
10997
10998fi
10999fi
11000WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11001if test -n "$WINDMC_FOR_TARGET"; then
11002 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11003echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11004else
11005 echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6
11007fi
11008
11009 done
11010fi
11011
11012if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11013 for ncn_progname in windmc; do
11014 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11015echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11016 if test -x $with_build_time_tools/${ncn_progname}; then
11017 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11018 echo "$as_me:$LINENO: result: yes" >&5
11019echo "${ECHO_T}yes" >&6
11020 break
11021 else
11022 echo "$as_me:$LINENO: result: no" >&5
11023echo "${ECHO_T}no" >&6
11024 fi
11025 done
11026fi
11027
11028if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11029 for ncn_progname in windmc; do
11030 if test -n "$ncn_target_tool_prefix"; then
11031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11032set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11033echo "$as_me:$LINENO: checking for $ac_word" >&5
11034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11035if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 if test -n "$WINDMC_FOR_TARGET"; then
11039 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11040else
11041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11051 fi
11052done
11053done
11054
11055fi
11056fi
11057WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11058if test -n "$WINDMC_FOR_TARGET"; then
11059 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11060echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11061else
11062 echo "$as_me:$LINENO: result: no" >&5
11063echo "${ECHO_T}no" >&6
11064fi
11065
11066 fi
11067 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11069set dummy ${ncn_progname}; ac_word=$2
11070echo "$as_me:$LINENO: checking for $ac_word" >&5
11071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11072if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074else
11075 if test -n "$WINDMC_FOR_TARGET"; then
11076 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11077else
11078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079for as_dir in $PATH
11080do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089done
11090done
11091
11092fi
11093fi
11094WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11095if test -n "$WINDMC_FOR_TARGET"; then
11096 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11097echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11098else
11099 echo "$as_me:$LINENO: result: no" >&5
11100echo "${ECHO_T}no" >&6
11101fi
11102
11103 fi
11104 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11105 done
11106fi
11107
11108if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11109 set dummy windmc
11110 if test $build = $target ; then
11111 WINDMC_FOR_TARGET="$2"
11112 else
11113 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11114 fi
11115else
11116 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11117fi
11118
11119else
11120 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11121fi
11122
11123
be01d343
PB
11124RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11125
c6b750e1
DJ
11126echo "$as_me:$LINENO: checking where to find the target ar" >&5
11127echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11128if test "x${build}" != "x${host}" ; then
2429c060
PB
11129 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11130 # We already found the complete path
b8025f34
AS
11131 ac_dir=`dirname $AR_FOR_TARGET`
11132 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11133echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11134 else
11135 # Canadian cross, just use what we found
c6b750e1
DJ
11136 echo "$as_me:$LINENO: result: pre-installed" >&5
11137echo "${ECHO_T}pre-installed" >&6
2429c060 11138 fi
be01d343
PB
11139else
11140 ok=yes
11141 case " ${configdirs} " in
11142 *" binutils "*) ;;
11143 *) ok=no ;;
11144 esac
c6b750e1 11145
be01d343
PB
11146 if test $ok = yes; then
11147 # An in-tree tool is available and we can use it
11148 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11149 echo "$as_me:$LINENO: result: just compiled" >&5
11150echo "${ECHO_T}just compiled" >&6
2429c060
PB
11151 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11152 # We already found the complete path
b8025f34
AS
11153 ac_dir=`dirname $AR_FOR_TARGET`
11154 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11155echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11156 elif test "x$target" = "x$host"; then
11157 # We can use an host tool
11158 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11159 echo "$as_me:$LINENO: result: host tool" >&5
11160echo "${ECHO_T}host tool" >&6
be01d343
PB
11161 else
11162 # We need a cross tool
c6b750e1
DJ
11163 echo "$as_me:$LINENO: result: pre-installed" >&5
11164echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11165 fi
11166fi
4b900473 11167
c6b750e1
DJ
11168echo "$as_me:$LINENO: checking where to find the target as" >&5
11169echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11170if test "x${build}" != "x${host}" ; then
2429c060
PB
11171 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11172 # We already found the complete path
b8025f34
AS
11173 ac_dir=`dirname $AS_FOR_TARGET`
11174 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11175echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11176 else
11177 # Canadian cross, just use what we found
c6b750e1
DJ
11178 echo "$as_me:$LINENO: result: pre-installed" >&5
11179echo "${ECHO_T}pre-installed" >&6
2429c060 11180 fi
be01d343
PB
11181else
11182 ok=yes
11183 case " ${configdirs} " in
11184 *" gas "*) ;;
11185 *) ok=no ;;
11186 esac
c6b750e1 11187
be01d343
PB
11188 if test $ok = yes; then
11189 # An in-tree tool is available and we can use it
11190 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11191 echo "$as_me:$LINENO: result: just compiled" >&5
11192echo "${ECHO_T}just compiled" >&6
2429c060
PB
11193 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11194 # We already found the complete path
b8025f34
AS
11195 ac_dir=`dirname $AS_FOR_TARGET`
11196 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11197echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11198 elif test "x$target" = "x$host"; then
11199 # We can use an host tool
11200 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11201 echo "$as_me:$LINENO: result: host tool" >&5
11202echo "${ECHO_T}host tool" >&6
be01d343
PB
11203 else
11204 # We need a cross tool
c6b750e1
DJ
11205 echo "$as_me:$LINENO: result: pre-installed" >&5
11206echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11207 fi
11208fi
4b900473 11209
c6b750e1
DJ
11210echo "$as_me:$LINENO: checking where to find the target cc" >&5
11211echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11212if test "x${build}" != "x${host}" ; then
2429c060
PB
11213 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11214 # We already found the complete path
b8025f34
AS
11215 ac_dir=`dirname $CC_FOR_TARGET`
11216 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11217echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11218 else
11219 # Canadian cross, just use what we found
c6b750e1
DJ
11220 echo "$as_me:$LINENO: result: pre-installed" >&5
11221echo "${ECHO_T}pre-installed" >&6
2429c060 11222 fi
be01d343
PB
11223else
11224 ok=yes
11225 case " ${configdirs} " in
11226 *" gcc "*) ;;
11227 *) ok=no ;;
11228 esac
c6b750e1 11229
be01d343
PB
11230 if test $ok = yes; then
11231 # An in-tree tool is available and we can use it
11232 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11233 echo "$as_me:$LINENO: result: just compiled" >&5
11234echo "${ECHO_T}just compiled" >&6
2429c060
PB
11235 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11236 # We already found the complete path
b8025f34
AS
11237 ac_dir=`dirname $CC_FOR_TARGET`
11238 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11239echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11240 elif test "x$target" = "x$host"; then
11241 # We can use an host tool
11242 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11243 echo "$as_me:$LINENO: result: host tool" >&5
11244echo "${ECHO_T}host tool" >&6
be01d343
PB
11245 else
11246 # We need a cross tool
c6b750e1
DJ
11247 echo "$as_me:$LINENO: result: pre-installed" >&5
11248echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11249 fi
11250fi
4b900473 11251
c6b750e1
DJ
11252echo "$as_me:$LINENO: checking where to find the target c++" >&5
11253echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11254if test "x${build}" != "x${host}" ; then
2429c060
PB
11255 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11256 # We already found the complete path
b8025f34
AS
11257 ac_dir=`dirname $CXX_FOR_TARGET`
11258 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11259echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11260 else
11261 # Canadian cross, just use what we found
c6b750e1
DJ
11262 echo "$as_me:$LINENO: result: pre-installed" >&5
11263echo "${ECHO_T}pre-installed" >&6
2429c060 11264 fi
be01d343
PB
11265else
11266 ok=yes
11267 case " ${configdirs} " in
11268 *" gcc "*) ;;
11269 *) ok=no ;;
11270 esac
11271 case ,${enable_languages}, in
11272 *,c++,*) ;;
11273 *) ok=no ;;
11274 esac
11275 if test $ok = yes; then
11276 # An in-tree tool is available and we can use it
11277 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
11278 echo "$as_me:$LINENO: result: just compiled" >&5
11279echo "${ECHO_T}just compiled" >&6
2429c060
PB
11280 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11281 # We already found the complete path
b8025f34
AS
11282 ac_dir=`dirname $CXX_FOR_TARGET`
11283 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11284echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11285 elif test "x$target" = "x$host"; then
11286 # We can use an host tool
11287 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11288 echo "$as_me:$LINENO: result: host tool" >&5
11289echo "${ECHO_T}host tool" >&6
be01d343
PB
11290 else
11291 # We need a cross tool
c6b750e1
DJ
11292 echo "$as_me:$LINENO: result: pre-installed" >&5
11293echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11294 fi
11295fi
4b900473 11296
c6b750e1
DJ
11297echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11298echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11299if test "x${build}" != "x${host}" ; then
2429c060
PB
11300 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11301 # We already found the complete path
b8025f34
AS
11302 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11303 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11304echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11305 else
11306 # Canadian cross, just use what we found
c6b750e1
DJ
11307 echo "$as_me:$LINENO: result: pre-installed" >&5
11308echo "${ECHO_T}pre-installed" >&6
2429c060 11309 fi
be01d343
PB
11310else
11311 ok=yes
11312 case " ${configdirs} " in
11313 *" gcc "*) ;;
11314 *) ok=no ;;
11315 esac
11316 case ,${enable_languages}, in
11317 *,c++,*) ;;
11318 *) ok=no ;;
11319 esac
11320 if test $ok = yes; then
11321 # An in-tree tool is available and we can use it
11322 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
11323 echo "$as_me:$LINENO: result: just compiled" >&5
11324echo "${ECHO_T}just compiled" >&6
2429c060
PB
11325 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11326 # We already found the complete path
b8025f34
AS
11327 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11328 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11329echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11330 elif test "x$target" = "x$host"; then
11331 # We can use an host tool
11332 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11333 echo "$as_me:$LINENO: result: host tool" >&5
11334echo "${ECHO_T}host tool" >&6
be01d343
PB
11335 else
11336 # We need a cross tool
c6b750e1
DJ
11337 echo "$as_me:$LINENO: result: pre-installed" >&5
11338echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11339 fi
11340fi
4b900473 11341
c6b750e1
DJ
11342echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11343echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11344if test "x${build}" != "x${host}" ; then
2429c060
PB
11345 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11346 # We already found the complete path
b8025f34
AS
11347 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11348 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11349echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11350 else
11351 # Canadian cross, just use what we found
c6b750e1
DJ
11352 echo "$as_me:$LINENO: result: pre-installed" >&5
11353echo "${ECHO_T}pre-installed" >&6
2429c060 11354 fi
be01d343
PB
11355else
11356 ok=yes
11357 case " ${configdirs} " in
11358 *" binutils "*) ;;
11359 *) ok=no ;;
11360 esac
c6b750e1 11361
be01d343
PB
11362 if test $ok = yes; then
11363 # An in-tree tool is available and we can use it
11364 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11365 echo "$as_me:$LINENO: result: just compiled" >&5
11366echo "${ECHO_T}just compiled" >&6
2429c060
PB
11367 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11368 # We already found the complete path
b8025f34
AS
11369 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11370 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11371echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11372 elif test "x$target" = "x$host"; then
11373 # We can use an host tool
11374 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11375 echo "$as_me:$LINENO: result: host tool" >&5
11376echo "${ECHO_T}host tool" >&6
be01d343
PB
11377 else
11378 # We need a cross tool
c6b750e1
DJ
11379 echo "$as_me:$LINENO: result: pre-installed" >&5
11380echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11381 fi
11382fi
4b900473 11383
c6b750e1
DJ
11384echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11385echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11386if test "x${build}" != "x${host}" ; then
2429c060
PB
11387 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11388 # We already found the complete path
b8025f34
AS
11389 ac_dir=`dirname $GCC_FOR_TARGET`
11390 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11391echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11392 else
11393 # Canadian cross, just use what we found
c6b750e1
DJ
11394 echo "$as_me:$LINENO: result: pre-installed" >&5
11395echo "${ECHO_T}pre-installed" >&6
2429c060 11396 fi
be01d343
PB
11397else
11398 ok=yes
11399 case " ${configdirs} " in
11400 *" gcc "*) ;;
11401 *) ok=no ;;
11402 esac
c6b750e1 11403
be01d343
PB
11404 if test $ok = yes; then
11405 # An in-tree tool is available and we can use it
11406 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11407 echo "$as_me:$LINENO: result: just compiled" >&5
11408echo "${ECHO_T}just compiled" >&6
2429c060
PB
11409 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11410 # We already found the complete path
b8025f34
AS
11411 ac_dir=`dirname $GCC_FOR_TARGET`
11412 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11413echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11414 elif test "x$target" = "x$host"; then
11415 # We can use an host tool
11416 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11417 echo "$as_me:$LINENO: result: host tool" >&5
11418echo "${ECHO_T}host tool" >&6
be01d343
PB
11419 else
11420 # We need a cross tool
c6b750e1
DJ
11421 echo "$as_me:$LINENO: result: pre-installed" >&5
11422echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11423 fi
11424fi
4b900473 11425
c6b750e1
DJ
11426echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11427echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11428if test "x${build}" != "x${host}" ; then
2429c060
PB
11429 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11430 # We already found the complete path
b8025f34
AS
11431 ac_dir=`dirname $GCJ_FOR_TARGET`
11432 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11433echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11434 else
11435 # Canadian cross, just use what we found
c6b750e1
DJ
11436 echo "$as_me:$LINENO: result: pre-installed" >&5
11437echo "${ECHO_T}pre-installed" >&6
2429c060 11438 fi
be01d343
PB
11439else
11440 ok=yes
11441 case " ${configdirs} " in
11442 *" gcc "*) ;;
11443 *) ok=no ;;
11444 esac
11445 case ,${enable_languages}, in
11446 *,java,*) ;;
11447 *) ok=no ;;
11448 esac
11449 if test $ok = yes; then
11450 # An in-tree tool is available and we can use it
11451 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11452 echo "$as_me:$LINENO: result: just compiled" >&5
11453echo "${ECHO_T}just compiled" >&6
2429c060
PB
11454 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11455 # We already found the complete path
b8025f34
AS
11456 ac_dir=`dirname $GCJ_FOR_TARGET`
11457 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11458echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11459 elif test "x$target" = "x$host"; then
11460 # We can use an host tool
11461 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11462 echo "$as_me:$LINENO: result: host tool" >&5
11463echo "${ECHO_T}host tool" >&6
be01d343
PB
11464 else
11465 # We need a cross tool
c6b750e1
DJ
11466 echo "$as_me:$LINENO: result: pre-installed" >&5
11467echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11468 fi
11469fi
4b900473 11470
c6b750e1
DJ
11471echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11472echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11473if test "x${build}" != "x${host}" ; then
2429c060
PB
11474 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11475 # We already found the complete path
b8025f34
AS
11476 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11477 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11478echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11479 else
11480 # Canadian cross, just use what we found
c6b750e1
DJ
11481 echo "$as_me:$LINENO: result: pre-installed" >&5
11482echo "${ECHO_T}pre-installed" >&6
2429c060 11483 fi
be01d343
PB
11484else
11485 ok=yes
11486 case " ${configdirs} " in
11487 *" gcc "*) ;;
11488 *) ok=no ;;
11489 esac
11490 case ,${enable_languages}, in
11491 *,fortran,*) ;;
11492 *) ok=no ;;
11493 esac
11494 if test $ok = yes; then
11495 # An in-tree tool is available and we can use it
11496 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11497 echo "$as_me:$LINENO: result: just compiled" >&5
11498echo "${ECHO_T}just compiled" >&6
2429c060
PB
11499 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11500 # We already found the complete path
b8025f34
AS
11501 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11502 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11503echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11504 elif test "x$target" = "x$host"; then
11505 # We can use an host tool
11506 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11507 echo "$as_me:$LINENO: result: host tool" >&5
11508echo "${ECHO_T}host tool" >&6
be01d343
PB
11509 else
11510 # We need a cross tool
c6b750e1
DJ
11511 echo "$as_me:$LINENO: result: pre-installed" >&5
11512echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11513 fi
11514fi
4b900473 11515
c6b750e1
DJ
11516echo "$as_me:$LINENO: checking where to find the target ld" >&5
11517echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11518if test "x${build}" != "x${host}" ; then
2429c060
PB
11519 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11520 # We already found the complete path
b8025f34
AS
11521 ac_dir=`dirname $LD_FOR_TARGET`
11522 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11523echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11524 else
11525 # Canadian cross, just use what we found
c6b750e1
DJ
11526 echo "$as_me:$LINENO: result: pre-installed" >&5
11527echo "${ECHO_T}pre-installed" >&6
2429c060 11528 fi
be01d343
PB
11529else
11530 ok=yes
11531 case " ${configdirs} " in
11532 *" ld "*) ;;
11533 *) ok=no ;;
11534 esac
c6b750e1 11535
be01d343
PB
11536 if test $ok = yes; then
11537 # An in-tree tool is available and we can use it
11538 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11539 echo "$as_me:$LINENO: result: just compiled" >&5
11540echo "${ECHO_T}just compiled" >&6
2429c060
PB
11541 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11542 # We already found the complete path
b8025f34
AS
11543 ac_dir=`dirname $LD_FOR_TARGET`
11544 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11545echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11546 elif test "x$target" = "x$host"; then
11547 # We can use an host tool
11548 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11549 echo "$as_me:$LINENO: result: host tool" >&5
11550echo "${ECHO_T}host tool" >&6
be01d343
PB
11551 else
11552 # We need a cross tool
c6b750e1
DJ
11553 echo "$as_me:$LINENO: result: pre-installed" >&5
11554echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11555 fi
11556fi
4b900473 11557
c6b750e1
DJ
11558echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11559echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11560if test "x${build}" != "x${host}" ; then
2429c060
PB
11561 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11562 # We already found the complete path
b8025f34
AS
11563 ac_dir=`dirname $LIPO_FOR_TARGET`
11564 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11565echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11566 else
11567 # Canadian cross, just use what we found
c6b750e1
DJ
11568 echo "$as_me:$LINENO: result: pre-installed" >&5
11569echo "${ECHO_T}pre-installed" >&6
2429c060 11570 fi
be01d343 11571else
2429c060
PB
11572 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11573 # We already found the complete path
b8025f34
AS
11574 ac_dir=`dirname $LIPO_FOR_TARGET`
11575 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11576echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11577 elif test "x$target" = "x$host"; then
be01d343
PB
11578 # We can use an host tool
11579 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11580 echo "$as_me:$LINENO: result: host tool" >&5
11581echo "${ECHO_T}host tool" >&6
be01d343
PB
11582 else
11583 # We need a cross tool
c6b750e1
DJ
11584 echo "$as_me:$LINENO: result: pre-installed" >&5
11585echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11586 fi
11587fi
4b900473 11588
c6b750e1
DJ
11589echo "$as_me:$LINENO: checking where to find the target nm" >&5
11590echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11591if test "x${build}" != "x${host}" ; then
2429c060
PB
11592 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11593 # We already found the complete path
b8025f34
AS
11594 ac_dir=`dirname $NM_FOR_TARGET`
11595 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11596echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11597 else
11598 # Canadian cross, just use what we found
c6b750e1
DJ
11599 echo "$as_me:$LINENO: result: pre-installed" >&5
11600echo "${ECHO_T}pre-installed" >&6
2429c060 11601 fi
be01d343
PB
11602else
11603 ok=yes
11604 case " ${configdirs} " in
11605 *" binutils "*) ;;
11606 *) ok=no ;;
11607 esac
c6b750e1 11608
be01d343
PB
11609 if test $ok = yes; then
11610 # An in-tree tool is available and we can use it
11611 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11612 echo "$as_me:$LINENO: result: just compiled" >&5
11613echo "${ECHO_T}just compiled" >&6
2429c060
PB
11614 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11615 # We already found the complete path
b8025f34
AS
11616 ac_dir=`dirname $NM_FOR_TARGET`
11617 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11618echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11619 elif test "x$target" = "x$host"; then
11620 # We can use an host tool
11621 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11622 echo "$as_me:$LINENO: result: host tool" >&5
11623echo "${ECHO_T}host tool" >&6
be01d343
PB
11624 else
11625 # We need a cross tool
c6b750e1
DJ
11626 echo "$as_me:$LINENO: result: pre-installed" >&5
11627echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11628 fi
11629fi
4b900473 11630
c6b750e1
DJ
11631echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11632echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11633if test "x${build}" != "x${host}" ; then
2429c060
PB
11634 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11635 # We already found the complete path
b8025f34
AS
11636 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11637 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11638echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11639 else
11640 # Canadian cross, just use what we found
c6b750e1
DJ
11641 echo "$as_me:$LINENO: result: pre-installed" >&5
11642echo "${ECHO_T}pre-installed" >&6
2429c060 11643 fi
be01d343
PB
11644else
11645 ok=yes
11646 case " ${configdirs} " in
11647 *" binutils "*) ;;
11648 *) ok=no ;;
11649 esac
c6b750e1 11650
be01d343
PB
11651 if test $ok = yes; then
11652 # An in-tree tool is available and we can use it
11653 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11654 echo "$as_me:$LINENO: result: just compiled" >&5
11655echo "${ECHO_T}just compiled" >&6
2429c060
PB
11656 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11657 # We already found the complete path
b8025f34
AS
11658 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11659 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11660echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11661 elif test "x$target" = "x$host"; then
11662 # We can use an host tool
11663 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11664 echo "$as_me:$LINENO: result: host tool" >&5
11665echo "${ECHO_T}host tool" >&6
be01d343
PB
11666 else
11667 # We need a cross tool
c6b750e1
DJ
11668 echo "$as_me:$LINENO: result: pre-installed" >&5
11669echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11670 fi
11671fi
4b900473 11672
c6b750e1
DJ
11673echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11674echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11675if test "x${build}" != "x${host}" ; then
2429c060
PB
11676 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11677 # We already found the complete path
b8025f34
AS
11678 ac_dir=`dirname $RANLIB_FOR_TARGET`
11679 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11680echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11681 else
11682 # Canadian cross, just use what we found
c6b750e1
DJ
11683 echo "$as_me:$LINENO: result: pre-installed" >&5
11684echo "${ECHO_T}pre-installed" >&6
2429c060 11685 fi
be01d343
PB
11686else
11687 ok=yes
11688 case " ${configdirs} " in
11689 *" binutils "*) ;;
11690 *) ok=no ;;
11691 esac
c6b750e1 11692
be01d343
PB
11693 if test $ok = yes; then
11694 # An in-tree tool is available and we can use it
11695 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11696 echo "$as_me:$LINENO: result: just compiled" >&5
11697echo "${ECHO_T}just compiled" >&6
2429c060
PB
11698 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11699 # We already found the complete path
b8025f34
AS
11700 ac_dir=`dirname $RANLIB_FOR_TARGET`
11701 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11702echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11703 elif test "x$target" = "x$host"; then
11704 # We can use an host tool
11705 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11706 echo "$as_me:$LINENO: result: host tool" >&5
11707echo "${ECHO_T}host tool" >&6
be01d343
PB
11708 else
11709 # We need a cross tool
c6b750e1
DJ
11710 echo "$as_me:$LINENO: result: pre-installed" >&5
11711echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11712 fi
11713fi
4b900473 11714
c6b750e1
DJ
11715echo "$as_me:$LINENO: checking where to find the target strip" >&5
11716echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11717if test "x${build}" != "x${host}" ; then
2429c060
PB
11718 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11719 # We already found the complete path
b8025f34
AS
11720 ac_dir=`dirname $STRIP_FOR_TARGET`
11721 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11722echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11723 else
11724 # Canadian cross, just use what we found
c6b750e1
DJ
11725 echo "$as_me:$LINENO: result: pre-installed" >&5
11726echo "${ECHO_T}pre-installed" >&6
2429c060 11727 fi
be01d343
PB
11728else
11729 ok=yes
11730 case " ${configdirs} " in
11731 *" binutils "*) ;;
11732 *) ok=no ;;
11733 esac
c6b750e1 11734
be01d343
PB
11735 if test $ok = yes; then
11736 # An in-tree tool is available and we can use it
11737 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11738 echo "$as_me:$LINENO: result: just compiled" >&5
11739echo "${ECHO_T}just compiled" >&6
2429c060
PB
11740 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11741 # We already found the complete path
b8025f34
AS
11742 ac_dir=`dirname $STRIP_FOR_TARGET`
11743 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11744echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11745 elif test "x$target" = "x$host"; then
11746 # We can use an host tool
11747 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11748 echo "$as_me:$LINENO: result: host tool" >&5
11749echo "${ECHO_T}host tool" >&6
be01d343
PB
11750 else
11751 # We need a cross tool
c6b750e1
DJ
11752 echo "$as_me:$LINENO: result: pre-installed" >&5
11753echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11754 fi
11755fi
4b900473 11756
c6b750e1
DJ
11757echo "$as_me:$LINENO: checking where to find the target windres" >&5
11758echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11759if test "x${build}" != "x${host}" ; then
2429c060
PB
11760 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11761 # We already found the complete path
b8025f34
AS
11762 ac_dir=`dirname $WINDRES_FOR_TARGET`
11763 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11764echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11765 else
11766 # Canadian cross, just use what we found
c6b750e1
DJ
11767 echo "$as_me:$LINENO: result: pre-installed" >&5
11768echo "${ECHO_T}pre-installed" >&6
2429c060 11769 fi
be01d343
PB
11770else
11771 ok=yes
11772 case " ${configdirs} " in
11773 *" binutils "*) ;;
11774 *) ok=no ;;
11775 esac
c6b750e1 11776
be01d343
PB
11777 if test $ok = yes; then
11778 # An in-tree tool is available and we can use it
11779 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11780 echo "$as_me:$LINENO: result: just compiled" >&5
11781echo "${ECHO_T}just compiled" >&6
2429c060
PB
11782 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11783 # We already found the complete path
b8025f34
AS
11784 ac_dir=`dirname $WINDRES_FOR_TARGET`
11785 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11786echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11787 elif test "x$target" = "x$host"; then
11788 # We can use an host tool
11789 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11790 echo "$as_me:$LINENO: result: host tool" >&5
11791echo "${ECHO_T}host tool" >&6
be01d343
PB
11792 else
11793 # We need a cross tool
c6b750e1
DJ
11794 echo "$as_me:$LINENO: result: pre-installed" >&5
11795echo "${ECHO_T}pre-installed" >&6
be01d343 11796 fi
a0da8069 11797fi
54752a6b 11798
0c24b341
NC
11799echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11800echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11801if test "x${build}" != "x${host}" ; then
11802 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11803 # We already found the complete path
11804 ac_dir=`dirname $WINDMC_FOR_TARGET`
11805 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11806echo "${ECHO_T}pre-installed in $ac_dir" >&6
11807 else
11808 # Canadian cross, just use what we found
11809 echo "$as_me:$LINENO: result: pre-installed" >&5
11810echo "${ECHO_T}pre-installed" >&6
11811 fi
11812else
11813 ok=yes
11814 case " ${configdirs} " in
11815 *" binutils "*) ;;
11816 *) ok=no ;;
11817 esac
11818
11819 if test $ok = yes; then
11820 # An in-tree tool is available and we can use it
11821 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11822 echo "$as_me:$LINENO: result: just compiled" >&5
11823echo "${ECHO_T}just compiled" >&6
11824 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11825 # We already found the complete path
11826 ac_dir=`dirname $WINDMC_FOR_TARGET`
11827 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11828echo "${ECHO_T}pre-installed in $ac_dir" >&6
11829 elif test "x$target" = "x$host"; then
11830 # We can use an host tool
11831 WINDMC_FOR_TARGET='$(WINDMC)'
11832 echo "$as_me:$LINENO: result: host tool" >&5
11833echo "${ECHO_T}host tool" >&6
11834 else
11835 # We need a cross tool
11836 echo "$as_me:$LINENO: result: pre-installed" >&5
11837echo "${ECHO_T}pre-installed" >&6
11838 fi
11839fi
11840
54752a6b
NN
11841
11842
be01d343 11843
4b900473 11844
a0da8069
NN
11845# Certain tools may need extra flags.
11846AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11847RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11848NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11849
be01d343
PB
11850# When building target libraries, except in a Canadian cross, we use
11851# the same toolchain as the compiler we just built.
11852COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11853COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11854COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11855if test $host = $build; then
11856 case " $configdirs " in
11857 *" gcc "*)
11858 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11859 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11860 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11861 ;;
11862 esac
11863fi
11864
11865
11866
11867
11868
c6b750e1
DJ
11869echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11870echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11871# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11872if test "${enable_maintainer_mode+set}" = set; then
11873 enableval="$enable_maintainer_mode"
11874 USE_MAINTAINER_MODE=$enableval
11875else
11876 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11877fi;
11878echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11879echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11880
11881
11882if test "$USE_MAINTAINER_MODE" = yes; then
11883 MAINTAINER_MODE_TRUE=
11884 MAINTAINER_MODE_FALSE='#'
11885else
11886 MAINTAINER_MODE_TRUE='#'
11887 MAINTAINER_MODE_FALSE=
c6b750e1 11888fi
3d5e36ae
AO
11889MAINT=$MAINTAINER_MODE_TRUE
11890
1d39f329
NN
11891# ---------------------
11892# GCC bootstrap support
11893# ---------------------
11894
11895# Stage specific cflags for build.
11896stage1_cflags="-g"
11897case $build in
11898 vax-*-*)
11899 case ${GCC} in
11900 yes) stage1_cflags="-g -Wa,-J" ;;
11901 *) stage1_cflags="-g -J" ;;
11902 esac ;;
1d39f329
NN
11903esac
11904
1d89b610
PB
11905# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11906if test "$GCC" = yes; then
11907 saved_CFLAGS="$CFLAGS"
11908
11909 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11910 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11911 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11912echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11913 cat >conftest.$ac_ext <<_ACEOF
11914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
11919
2038f525
PB
11920#if (__GNUC__ < 3) \
11921 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11922 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11923#error http://gcc.gnu.org/PR29382
11924#endif
11925
c6b750e1
DJ
11926int
11927main ()
11928{
11929
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext
11935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>conftest.er1
11937 ac_status=$?
11938 grep -v '^ *+' conftest.er1 >conftest.err
11939 rm -f conftest.er1
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag"
11944 || test ! -s conftest.err'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest.$ac_objext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 echo "$as_me:$LINENO: result: yes" >&5
11957echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962echo "$as_me:$LINENO: result: no" >&5
11963echo "${ECHO_T}no" >&6
11964fi
11965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
11966
11967 CFLAGS="$saved_CFLAGS"
11968fi
11969
11970
1d39f329 11971
8a0d8a5c
PB
11972# Enable --enable-checking in stage1 of the compiler.
11973# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11974if test "${enable_stage1_checking+set}" = set; then
11975 enableval="$enable_stage1_checking"
11976 stage1_checking=--enable-checking=${enable_stage1_checking}
11977else
11978 if test "x$enable_checking" = xno; then
11979 stage1_checking=--enable-checking
11980else
11981 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11982fi
c6b750e1 11983fi;
8a0d8a5c
PB
11984
11985
1d39f329 11986# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
11987# Check whether --enable-werror or --disable-werror was given.
11988if test "${enable_werror+set}" = set; then
11989 enableval="$enable_werror"
c6b750e1 11990
1d39f329 11991else
a0323144 11992 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 11993 enable_werror=yes
79fcd0ec
PB
11994else
11995 enable_werror=no
11996fi
c6b750e1 11997fi;
1a6f2dc7
NN
11998case ${enable_werror} in
11999 yes) stage2_werror_flag="--enable-werror-always" ;;
12000 *) stage2_werror_flag="" ;;
1d39f329
NN
12001esac
12002
12003
108a6f8e 12004# Flags needed to enable html installing and building
c6b750e1 12005
108a6f8e
CD
12006# Check whether --with-datarootdir or --without-datarootdir was given.
12007if test "${with_datarootdir+set}" = set; then
12008 withval="$with_datarootdir"
12009 datarootdir="\${prefix}/${withval}"
12010else
12011 datarootdir="\${prefix}/share"
c6b750e1 12012fi;
108a6f8e
CD
12013
12014
12015# Check whether --with-docdir or --without-docdir was given.
12016if test "${with_docdir+set}" = set; then
12017 withval="$with_docdir"
12018 docdir="\${prefix}/${withval}"
12019else
12020 docdir="\${datarootdir}/doc"
c6b750e1 12021fi;
108a6f8e
CD
12022
12023
a3ca38d2
DD
12024# Check whether --with-pdfdir or --without-pdfdir was given.
12025if test "${with_pdfdir+set}" = set; then
12026 withval="$with_pdfdir"
12027 pdfdir="\${prefix}/${withval}"
12028else
12029 pdfdir="\${docdir}"
12030fi;
12031
12032
108a6f8e
CD
12033# Check whether --with-htmldir or --without-htmldir was given.
12034if test "${with_htmldir+set}" = set; then
12035 withval="$with_htmldir"
12036 htmldir="\${prefix}/${withval}"
12037else
12038 htmldir="\${docdir}"
c6b750e1 12039fi;
108a6f8e
CD
12040
12041
12042
12043
12044
b8025f34 12045
c6b750e1
DJ
12046 ac_config_files="$ac_config_files Makefile"
12047cat >confcache <<\_ACEOF
a0da8069
NN
12048# This file is a shell script that caches the results of configure
12049# tests run on this system so they can be shared between configure
c6b750e1
DJ
12050# scripts and configure runs, see configure's option --config-cache.
12051# It is not useful on other systems. If it contains results you don't
12052# want to keep, you may remove or edit it.
a0da8069 12053#
c6b750e1
DJ
12054# config.status only pays attention to the cache file if you give it
12055# the --recheck option to rerun configure.
a0da8069 12056#
c6b750e1
DJ
12057# `ac_cv_env_foo' variables (set or unset) will be overridden when
12058# loading this file, other *unset* `ac_cv_foo' will be assigned the
12059# following values.
12060
12061_ACEOF
12062
a0da8069
NN
12063# The following way of writing the cache mishandles newlines in values,
12064# but we know of no workaround that is simple, portable, and efficient.
12065# So, don't put newlines in cache variables' values.
12066# Ultrix sh set writes to stderr and can't be redirected directly,
12067# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12068{
12069 (set) 2>&1 |
12070 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12071 *ac_space=\ *)
12072 # `set' does not quote correctly, so add quotes (double-quote
12073 # substitution turns \\\\ into \\, and sed turns \\ into \).
12074 sed -n \
12075 "s/'/'\\\\''/g;
12076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12077 ;;
12078 *)
12079 # `set' quotes correctly as required by POSIX, so do not add quotes.
12080 sed -n \
12081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12082 ;;
12083 esac;
12084} |
12085 sed '
12086 t clear
12087 : clear
12088 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12089 t end
12090 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12091 : end' >>confcache
12092if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12093 if test -w $cache_file; then
c6b750e1
DJ
12094 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12095 cat confcache >$cache_file
a0da8069
NN
12096 else
12097 echo "not updating unwritable cache $cache_file"
12098 fi
852e5f18 12099fi
a0da8069 12100rm -f confcache
852e5f18 12101
a0da8069
NN
12102test "x$prefix" = xNONE && prefix=$ac_default_prefix
12103# Let make expand exec_prefix.
12104test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12105
c6b750e1
DJ
12106# VPATH may cause trouble with some makes, so we remove $(srcdir),
12107# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12108# trailing colons and then remove the whole line if VPATH becomes empty
12109# (actually we leave an empty line to preserve line numbers).
a0da8069 12110if test "x$srcdir" = x.; then
c6b750e1
DJ
12111 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12112s/:*\$(srcdir):*/:/;
12113s/:*\${srcdir}:*/:/;
12114s/:*@srcdir@:*/:/;
12115s/^\([^=]*=[ ]*\):*/\1/;
12116s/:*$//;
12117s/^[^=]*=[ ]*$//;
12118}'
a0da8069 12119fi
252b5132 12120
a0da8069
NN
12121# Transform confdefs.h into DEFS.
12122# Protect against shell expansion while executing Makefile rules.
12123# Protect against Makefile macro expansion.
c6b750e1
DJ
12124#
12125# If the first sed substitution is executed (which looks for macros that
12126# take arguments), then we branch to the quote section. Otherwise,
12127# look for a macro that doesn't take arguments.
12128cat >confdef2opt.sed <<\_ACEOF
12129t clear
12130: clear
12131s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12132t quote
12133s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12134t quote
12135d
12136: quote
12137s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12138s,\[,\\&,g
12139s,\],\\&,g
12140s,\$,$$,g
12141p
12142_ACEOF
12143# We use echo to avoid assuming a particular line-breaking character.
12144# The extra dot is to prevent the shell from consuming trailing
12145# line-breaks from the sub-command output. A line-break within
12146# single-quotes doesn't work because, if this script is created in a
12147# platform that uses two characters for line-breaks (e.g., DOS), tr
12148# would break.
12149ac_LF_and_DOT=`echo; echo .`
12150DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12151rm -f confdef2opt.sed
12152
12153
12154ac_libobjs=
12155ac_ltlibobjs=
12156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12157 # 1. Remove the extension, and $U if already installed.
12158 ac_i=`echo "$ac_i" |
12159 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12160 # 2. Add them.
12161 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12162 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12163done
12164LIBOBJS=$ac_libobjs
852e5f18 12165
c6b750e1 12166LTLIBOBJS=$ac_ltlibobjs
376a0e54 12167
cac3d6c4 12168
c6b750e1
DJ
12169
12170: ${CONFIG_STATUS=./config.status}
12171ac_clean_files_save=$ac_clean_files
12172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12173{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12174echo "$as_me: creating $CONFIG_STATUS" >&6;}
12175cat >$CONFIG_STATUS <<_ACEOF
12176#! $SHELL
12177# Generated by $as_me.
a0da8069 12178# Run this file to recreate the current configuration.
a0da8069 12179# Compiler output produced by configure, useful for debugging
c6b750e1 12180# configure, is in config.log if it exists.
376a0e54 12181
c6b750e1
DJ
12182debug=false
12183ac_cs_recheck=false
12184ac_cs_silent=false
12185SHELL=\${CONFIG_SHELL-$SHELL}
12186_ACEOF
12187
12188cat >>$CONFIG_STATUS <<\_ACEOF
12189## --------------------- ##
12190## M4sh Initialization. ##
12191## --------------------- ##
12192
12193# Be Bourne compatible
12194if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12195 emulate sh
12196 NULLCMD=:
12197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12198 # is contrary to our usage. Disable this feature.
12199 alias -g '${1+"$@"}'='"$@"'
12200elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12201 set -o posix
12202fi
12203DUALCASE=1; export DUALCASE # for MKS sh
12204
12205# Support unset when possible.
12206if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12207 as_unset=unset
12208else
12209 as_unset=false
12210fi
12211
12212
12213# Work around bugs in pre-3.0 UWIN ksh.
12214$as_unset ENV MAIL MAILPATH
12215PS1='$ '
12216PS2='> '
12217PS4='+ '
12218
12219# NLS nuisances.
12220for as_var in \
12221 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12222 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12223 LC_TELEPHONE LC_TIME
12224do
12225 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12226 eval $as_var=C; export $as_var
12227 else
12228 $as_unset $as_var
12229 fi
12230done
12231
12232# Required to use basename.
12233if expr a : '\(a\)' >/dev/null 2>&1; then
12234 as_expr=expr
12235else
12236 as_expr=false
12237fi
12238
12239if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12240 as_basename=basename
12241else
12242 as_basename=false
12243fi
12244
12245
12246# Name of the executable.
12247as_me=`$as_basename "$0" ||
12248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12249 X"$0" : 'X\(//\)$' \| \
12250 X"$0" : 'X\(/\)$' \| \
12251 . : '\(.\)' 2>/dev/null ||
12252echo X/"$0" |
12253 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12254 /^X\/\(\/\/\)$/{ s//\1/; q; }
12255 /^X\/\(\/\).*/{ s//\1/; q; }
12256 s/.*/./; q'`
12257
12258
12259# PATH needs CR, and LINENO needs CR and PATH.
12260# Avoid depending upon Character Ranges.
12261as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12263as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12264as_cr_digits='0123456789'
12265as_cr_alnum=$as_cr_Letters$as_cr_digits
12266
12267# The user is always right.
12268if test "${PATH_SEPARATOR+set}" != set; then
12269 echo "#! /bin/sh" >conf$$.sh
12270 echo "exit 0" >>conf$$.sh
12271 chmod +x conf$$.sh
12272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12273 PATH_SEPARATOR=';'
12274 else
12275 PATH_SEPARATOR=:
12276 fi
12277 rm -f conf$$.sh
12278fi
12279
12280
12281 as_lineno_1=$LINENO
12282 as_lineno_2=$LINENO
12283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12284 test "x$as_lineno_1" != "x$as_lineno_2" &&
12285 test "x$as_lineno_3" = "x$as_lineno_2" || {
12286 # Find who we are. Look in the path if we contain no path at all
12287 # relative or not.
12288 case $0 in
12289 *[\\/]* ) as_myself=$0 ;;
12290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291for as_dir in $PATH
12292do
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12296done
12297
12298 ;;
12299 esac
12300 # We did not find ourselves, most probably we were run as `sh COMMAND'
12301 # in which case we are not to be found in the path.
12302 if test "x$as_myself" = x; then
12303 as_myself=$0
12304 fi
12305 if test ! -f "$as_myself"; then
12306 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12307echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12308 { (exit 1); exit 1; }; }
12309 fi
12310 case $CONFIG_SHELL in
12311 '')
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12314do
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for as_base in sh bash ksh sh5; do
12318 case $as_dir in
12319 /*)
12320 if ("$as_dir/$as_base" -c '
12321 as_lineno_1=$LINENO
12322 as_lineno_2=$LINENO
12323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12324 test "x$as_lineno_1" != "x$as_lineno_2" &&
12325 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12326 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12327 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12328 CONFIG_SHELL=$as_dir/$as_base
12329 export CONFIG_SHELL
12330 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12331 fi;;
12332 esac
12333 done
12334done
12335;;
12336 esac
12337
12338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12339 # uniformly replaced by the line number. The first 'sed' inserts a
12340 # line-number line before each line; the second 'sed' does the real
12341 # work. The second script uses 'N' to pair each line-number line
12342 # with the numbered line, and appends trailing '-' during
12343 # substitution so that $LINENO is not a special case at line end.
12344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12345 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12346 sed '=' <$as_myself |
12347 sed '
12348 N
12349 s,$,-,
12350 : loop
12351 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12352 t loop
12353 s,-$,,
12354 s,^['$as_cr_digits']*\n,,
12355 ' >$as_me.lineno &&
12356 chmod +x $as_me.lineno ||
12357 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12358echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12359 { (exit 1); exit 1; }; }
12360
12361 # Don't try to exec as it changes $[0], causing all sort of problems
12362 # (the dirname of $[0] is not the place where we might find the
12363 # original and so on. Autoconf is especially sensible to this).
12364 . ./$as_me.lineno
12365 # Exit status is that of the last command.
12366 exit
12367}
12368
12369
12370case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12371 *c*,-n*) ECHO_N= ECHO_C='
12372' ECHO_T=' ' ;;
12373 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12374 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12375esac
12376
12377if expr a : '\(a\)' >/dev/null 2>&1; then
12378 as_expr=expr
12379else
12380 as_expr=false
12381fi
12382
12383rm -f conf$$ conf$$.exe conf$$.file
12384echo >conf$$.file
12385if ln -s conf$$.file conf$$ 2>/dev/null; then
12386 # We could just check for DJGPP; but this test a) works b) is more generic
12387 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12388 if test -f conf$$.exe; then
12389 # Don't use ln at all; we don't have any links
12390 as_ln_s='cp -p'
12391 else
12392 as_ln_s='ln -s'
12393 fi
12394elif ln conf$$.file conf$$ 2>/dev/null; then
12395 as_ln_s=ln
12396else
12397 as_ln_s='cp -p'
12398fi
12399rm -f conf$$ conf$$.exe conf$$.file
12400
12401if mkdir -p . 2>/dev/null; then
12402 as_mkdir_p=:
12403else
12404 test -d ./-p && rmdir ./-p
12405 as_mkdir_p=false
12406fi
12407
12408as_executable_p="test -f"
12409
12410# Sed expression to map a string onto a valid CPP name.
12411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12412
12413# Sed expression to map a string onto a valid variable name.
12414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12415
12416
12417# IFS
12418# We need space, tab and new line, in precisely that order.
12419as_nl='
12420'
12421IFS=" $as_nl"
12422
12423# CDPATH.
12424$as_unset CDPATH
12425
12426exec 6>&1
12427
12428# Open the log real soon, to keep \$[0] and so on meaningful, and to
12429# report actual input values of CONFIG_FILES etc. instead of their
12430# values after options handling. Logging --version etc. is OK.
12431exec 5>>config.log
12432{
12433 echo
12434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12435## Running $as_me. ##
12436_ASBOX
12437} >&5
12438cat >&5 <<_CSEOF
12439
12440This file was extended by $as_me, which was
12441generated by GNU Autoconf 2.59. Invocation command line was
12442
12443 CONFIG_FILES = $CONFIG_FILES
12444 CONFIG_HEADERS = $CONFIG_HEADERS
12445 CONFIG_LINKS = $CONFIG_LINKS
12446 CONFIG_COMMANDS = $CONFIG_COMMANDS
12447 $ $0 $@
12448
12449_CSEOF
12450echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12451echo >&5
12452_ACEOF
12453
12454# Files that config.status was made for.
12455if test -n "$ac_config_files"; then
12456 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12457fi
12458
12459if test -n "$ac_config_headers"; then
12460 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12461fi
12462
12463if test -n "$ac_config_links"; then
12464 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12465fi
12466
12467if test -n "$ac_config_commands"; then
12468 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12469fi
12470
12471cat >>$CONFIG_STATUS <<\_ACEOF
12472
12473ac_cs_usage="\
12474\`$as_me' instantiates files from templates according to the
12475current configuration.
12476
12477Usage: $0 [OPTIONS] [FILE]...
12478
12479 -h, --help print this help, then exit
12480 -V, --version print version number, then exit
12481 -q, --quiet do not print progress messages
12482 -d, --debug don't remove temporary files
12483 --recheck update $as_me by reconfiguring in the same conditions
12484 --file=FILE[:TEMPLATE]
12485 instantiate the configuration file FILE
12486
12487Configuration files:
12488$config_files
12489
12490Report bugs to <bug-autoconf@gnu.org>."
12491_ACEOF
12492
12493cat >>$CONFIG_STATUS <<_ACEOF
12494ac_cs_version="\\
12495config.status
12496configured by $0, generated by GNU Autoconf 2.59,
12497 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12498
12499Copyright (C) 2003 Free Software Foundation, Inc.
12500This config.status script is free software; the Free Software Foundation
12501gives unlimited permission to copy, distribute and modify it."
12502srcdir=$srcdir
12503INSTALL="$INSTALL"
12504_ACEOF
12505
12506cat >>$CONFIG_STATUS <<\_ACEOF
12507# If no file are specified by the user, then we need to provide default
12508# value. By we need to know if files were specified by the user.
12509ac_need_defaults=:
12510while test $# != 0
a0da8069 12511do
c6b750e1
DJ
12512 case $1 in
12513 --*=*)
12514 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12515 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12516 ac_shift=:
12517 ;;
12518 -*)
12519 ac_option=$1
12520 ac_optarg=$2
12521 ac_shift=shift
12522 ;;
12523 *) # This is not an option, so the user has probably given explicit
12524 # arguments.
12525 ac_option=$1
12526 ac_need_defaults=false;;
12527 esac
12528
12529 case $ac_option in
12530 # Handling of the options.
12531_ACEOF
12532cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12534 ac_cs_recheck=: ;;
12535 --version | --vers* | -V )
12536 echo "$ac_cs_version"; exit 0 ;;
12537 --he | --h)
12538 # Conflict between --help and --header
12539 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12540Try \`$0 --help' for more information." >&5
12541echo "$as_me: error: ambiguous option: $1
12542Try \`$0 --help' for more information." >&2;}
12543 { (exit 1); exit 1; }; };;
12544 --help | --hel | -h )
12545 echo "$ac_cs_usage"; exit 0 ;;
12546 --debug | --d* | -d )
12547 debug=: ;;
12548 --file | --fil | --fi | --f )
12549 $ac_shift
12550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12551 ac_need_defaults=false;;
12552 --header | --heade | --head | --hea )
12553 $ac_shift
12554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12555 ac_need_defaults=false;;
12556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12558 ac_cs_silent=: ;;
12559
12560 # This is an error.
12561 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12562Try \`$0 --help' for more information." >&5
12563echo "$as_me: error: unrecognized option: $1
12564Try \`$0 --help' for more information." >&2;}
12565 { (exit 1); exit 1; }; } ;;
12566
12567 *) ac_config_targets="$ac_config_targets $1" ;;
12568
376a0e54 12569 esac
c6b750e1 12570 shift
376a0e54
CM
12571done
12572
c6b750e1 12573ac_configure_extra_args=
376a0e54 12574
c6b750e1
DJ
12575if $ac_cs_silent; then
12576 exec 6>/dev/null
12577 ac_configure_extra_args="$ac_configure_extra_args --silent"
12578fi
376a0e54 12579
c6b750e1
DJ
12580_ACEOF
12581cat >>$CONFIG_STATUS <<_ACEOF
12582if \$ac_cs_recheck; then
12583 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12584 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12585fi
12586
12587_ACEOF
12588
12589
12590
12591
12592
12593cat >>$CONFIG_STATUS <<\_ACEOF
12594for ac_config_target in $ac_config_targets
12595do
12596 case "$ac_config_target" in
12597 # Handling of arguments.
12598 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12599 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12600echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12601 { (exit 1); exit 1; }; };;
12602 esac
12603done
12604
12605# If the user did not use the arguments to specify the items to instantiate,
12606# then the envvar interface is used. Set only those that are not.
12607# We use the long form for the default assignment because of an extremely
12608# bizarre bug on SunOS 4.1.3.
12609if $ac_need_defaults; then
12610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12611fi
12612
12613# Have a temporary directory for convenience. Make it in the build tree
12614# simply because there is no reason to put it here, and in addition,
12615# creating and moving files from /tmp can sometimes cause problems.
12616# Create a temporary directory, and hook for its removal unless debugging.
12617$debug ||
12618{
12619 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12620 trap '{ (exit 1); exit 1; }' 1 2 13 15
12621}
12622
12623# Create a (secure) tmp directory for tmp files.
12624
12625{
12626 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12627 test -n "$tmp" && test -d "$tmp"
12628} ||
12629{
12630 tmp=./confstat$$-$RANDOM
12631 (umask 077 && mkdir $tmp)
12632} ||
12633{
12634 echo "$me: cannot create a temporary directory in ." >&2
12635 { (exit 1); exit 1; }
12636}
12637
12638_ACEOF
12639
12640cat >>$CONFIG_STATUS <<_ACEOF
12641
12642#
12643# CONFIG_FILES section.
12644#
12645
12646# No need to generate the scripts if there are no CONFIG_FILES.
12647# This happens for instance when ./config.status config.h
12648if test -n "\$CONFIG_FILES"; then
12649 # Protect against being on the right side of a sed subst in config.status.
12650 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12651 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12652s,@SHELL@,$SHELL,;t t
12653s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12654s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12655s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12656s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12657s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12658s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12659s,@exec_prefix@,$exec_prefix,;t t
12660s,@prefix@,$prefix,;t t
12661s,@program_transform_name@,$program_transform_name,;t t
12662s,@bindir@,$bindir,;t t
12663s,@sbindir@,$sbindir,;t t
12664s,@libexecdir@,$libexecdir,;t t
12665s,@datadir@,$datadir,;t t
12666s,@sysconfdir@,$sysconfdir,;t t
12667s,@sharedstatedir@,$sharedstatedir,;t t
12668s,@localstatedir@,$localstatedir,;t t
12669s,@libdir@,$libdir,;t t
12670s,@includedir@,$includedir,;t t
12671s,@oldincludedir@,$oldincludedir,;t t
12672s,@infodir@,$infodir,;t t
12673s,@mandir@,$mandir,;t t
12674s,@build_alias@,$build_alias,;t t
12675s,@host_alias@,$host_alias,;t t
12676s,@target_alias@,$target_alias,;t t
12677s,@DEFS@,$DEFS,;t t
12678s,@ECHO_C@,$ECHO_C,;t t
12679s,@ECHO_N@,$ECHO_N,;t t
12680s,@ECHO_T@,$ECHO_T,;t t
12681s,@LIBS@,$LIBS,;t t
12682s,@build@,$build,;t t
12683s,@build_cpu@,$build_cpu,;t t
12684s,@build_vendor@,$build_vendor,;t t
12685s,@build_os@,$build_os,;t t
12686s,@build_noncanonical@,$build_noncanonical,;t t
12687s,@host_noncanonical@,$host_noncanonical,;t t
12688s,@target_noncanonical@,$target_noncanonical,;t t
12689s,@host@,$host,;t t
12690s,@host_cpu@,$host_cpu,;t t
12691s,@host_vendor@,$host_vendor,;t t
12692s,@host_os@,$host_os,;t t
12693s,@target@,$target,;t t
12694s,@target_cpu@,$target_cpu,;t t
12695s,@target_vendor@,$target_vendor,;t t
12696s,@target_os@,$target_os,;t t
12697s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12698s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12699s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12700s,@LN@,$LN,;t t
12701s,@LN_S@,$LN_S,;t t
12702s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12703s,@build_libsubdir@,$build_libsubdir,;t t
12704s,@build_subdir@,$build_subdir,;t t
12705s,@host_subdir@,$host_subdir,;t t
12706s,@target_subdir@,$target_subdir,;t t
12707s,@CC@,$CC,;t t
12708s,@CFLAGS@,$CFLAGS,;t t
12709s,@LDFLAGS@,$LDFLAGS,;t t
12710s,@CPPFLAGS@,$CPPFLAGS,;t t
12711s,@ac_ct_CC@,$ac_ct_CC,;t t
12712s,@EXEEXT@,$EXEEXT,;t t
12713s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12714s,@CXX@,$CXX,;t t
12715s,@CXXFLAGS@,$CXXFLAGS,;t t
12716s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12717s,@GNATBIND@,$GNATBIND,;t t
12718s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12719s,@GNATMAKE@,$GNATMAKE,;t t
12720s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12721s,@do_compare@,$do_compare,;t t
12722s,@gmplibs@,$gmplibs,;t t
12723s,@gmpinc@,$gmpinc,;t t
12724s,@stage1_languages@,$stage1_languages,;t t
12725s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12726s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12727s,@tooldir@,$tooldir,;t t
12728s,@build_tooldir@,$build_tooldir,;t t
12729s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12730s,@GDB_TK@,$GDB_TK,;t t
12731s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12732s,@build_configargs@,$build_configargs,;t t
12733s,@build_configdirs@,$build_configdirs,;t t
12734s,@host_configargs@,$host_configargs,;t t
12735s,@configdirs@,$configdirs,;t t
12736s,@target_configargs@,$target_configargs,;t t
12737s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12738s,@config_shell@,$config_shell,;t t
12739s,@YACC@,$YACC,;t t
12740s,@BISON@,$BISON,;t t
12741s,@M4@,$M4,;t t
12742s,@LEX@,$LEX,;t t
12743s,@FLEX@,$FLEX,;t t
12744s,@MAKEINFO@,$MAKEINFO,;t t
12745s,@EXPECT@,$EXPECT,;t t
12746s,@RUNTEST@,$RUNTEST,;t t
12747s,@AR@,$AR,;t t
12748s,@AS@,$AS,;t t
12749s,@DLLTOOL@,$DLLTOOL,;t t
12750s,@LD@,$LD,;t t
12751s,@LIPO@,$LIPO,;t t
12752s,@NM@,$NM,;t t
12753s,@RANLIB@,$RANLIB,;t t
12754s,@STRIP@,$STRIP,;t t
12755s,@WINDRES@,$WINDRES,;t t
0c24b341 12756s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12757s,@OBJCOPY@,$OBJCOPY,;t t
12758s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12759s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12760s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12761s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12762s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12763s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12764s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12765s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12766s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12767s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12768s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12769s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12770s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12771s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12772s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12773s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12774s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12775s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12776s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12777s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12778s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12779s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12780s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12781s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12782s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12783s,@MAINT@,$MAINT,;t t
12784s,@stage1_cflags@,$stage1_cflags,;t t
12785s,@stage1_checking@,$stage1_checking,;t t
12786s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12787s,@datarootdir@,$datarootdir,;t t
12788s,@docdir@,$docdir,;t t
a3ca38d2 12789s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12790s,@htmldir@,$htmldir,;t t
12791s,@LIBOBJS@,$LIBOBJS,;t t
12792s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12793/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12794s,@serialization_dependencies@,,;t t
a0da8069 12795/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12796s,@host_makefile_frag@,,;t t
a0da8069 12797/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12798s,@target_makefile_frag@,,;t t
a0da8069 12799/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12800s,@alphaieee_frag@,,;t t
a0da8069 12801/@ospace_frag@/r $ospace_frag
c6b750e1 12802s,@ospace_frag@,,;t t
a0da8069 12803CEOF
252b5132 12804
c6b750e1
DJ
12805_ACEOF
12806
12807 cat >>$CONFIG_STATUS <<\_ACEOF
12808 # Split the substitutions into bite-sized pieces for seds with
12809 # small command number limits, like on Digital OSF/1 and HP-UX.
12810 ac_max_sed_lines=48
12811 ac_sed_frag=1 # Number of current file.
12812 ac_beg=1 # First line for current file.
12813 ac_end=$ac_max_sed_lines # Line after last line for current file.
12814 ac_more_lines=:
12815 ac_sed_cmds=
12816 while $ac_more_lines; do
12817 if test $ac_beg -gt 1; then
12818 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12819 else
12820 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12821 fi
12822 if test ! -s $tmp/subs.frag; then
12823 ac_more_lines=false
a0da8069 12824 else
c6b750e1
DJ
12825 # The purpose of the label and of the branching condition is to
12826 # speed up the sed processing (if there are no `@' at all, there
12827 # is no need to browse any of the substitutions).
12828 # These are the two extra sed commands mentioned above.
12829 (echo ':t
12830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12831 if test -z "$ac_sed_cmds"; then
12832 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12833 else
12834 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12835 fi
12836 ac_sed_frag=`expr $ac_sed_frag + 1`
12837 ac_beg=$ac_end
12838 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12839 fi
c6b750e1
DJ
12840 done
12841 if test -z "$ac_sed_cmds"; then
12842 ac_sed_cmds=cat
852e5f18 12843 fi
c6b750e1 12844fi # test -n "$CONFIG_FILES"
cac3d6c4 12845
c6b750e1
DJ
12846_ACEOF
12847cat >>$CONFIG_STATUS <<\_ACEOF
12848for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12850 case $ac_file in
12851 - | *:- | *:-:* ) # input from stdin
12852 cat >$tmp/stdin
12853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12857 * ) ac_file_in=$ac_file.in ;;
a0da8069 12858 esac
252b5132 12859
c6b750e1
DJ
12860 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12861 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12862$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12863 X"$ac_file" : 'X\(//\)[^/]' \| \
12864 X"$ac_file" : 'X\(//\)$' \| \
12865 X"$ac_file" : 'X\(/\)' \| \
12866 . : '\(.\)' 2>/dev/null ||
12867echo X"$ac_file" |
12868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12870 /^X\(\/\/\)$/{ s//\1/; q; }
12871 /^X\(\/\).*/{ s//\1/; q; }
12872 s/.*/./; q'`
12873 { if $as_mkdir_p; then
12874 mkdir -p "$ac_dir"
cac3d6c4 12875 else
c6b750e1
DJ
12876 as_dir="$ac_dir"
12877 as_dirs=
12878 while test ! -d "$as_dir"; do
12879 as_dirs="$as_dir $as_dirs"
12880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12882 X"$as_dir" : 'X\(//\)[^/]' \| \
12883 X"$as_dir" : 'X\(//\)$' \| \
12884 X"$as_dir" : 'X\(/\)' \| \
12885 . : '\(.\)' 2>/dev/null ||
12886echo X"$as_dir" |
12887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12889 /^X\(\/\/\)$/{ s//\1/; q; }
12890 /^X\(\/\).*/{ s//\1/; q; }
12891 s/.*/./; q'`
12892 done
12893 test ! -n "$as_dirs" || mkdir $as_dirs
12894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12895echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12896 { (exit 1); exit 1; }; }; }
12897
12898 ac_builddir=.
252b5132 12899
c6b750e1
DJ
12900if test "$ac_dir" != .; then
12901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12902 # A "../" for each directory in $ac_dir_suffix.
12903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12904else
12905 ac_dir_suffix= ac_top_builddir=
12906fi
12907
12908case $srcdir in
12909 .) # No --srcdir option. We are building in place.
12910 ac_srcdir=.
12911 if test -z "$ac_top_builddir"; then
12912 ac_top_srcdir=.
12913 else
12914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12915 fi ;;
12916 [\\/]* | ?:[\\/]* ) # Absolute path.
12917 ac_srcdir=$srcdir$ac_dir_suffix;
12918 ac_top_srcdir=$srcdir ;;
a0da8069 12919 *) # Relative path.
c6b750e1
DJ
12920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12922esac
252b5132 12923
c6b750e1
DJ
12924# Do not use `cd foo && pwd` to compute absolute paths, because
12925# the directories may not exist.
12926case `pwd` in
12927.) ac_abs_builddir="$ac_dir";;
12928*)
12929 case "$ac_dir" in
12930 .) ac_abs_builddir=`pwd`;;
12931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12933 esac;;
12934esac
12935case $ac_abs_builddir in
12936.) ac_abs_top_builddir=${ac_top_builddir}.;;
12937*)
12938 case ${ac_top_builddir}. in
12939 .) ac_abs_top_builddir=$ac_abs_builddir;;
12940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12942 esac;;
12943esac
12944case $ac_abs_builddir in
12945.) ac_abs_srcdir=$ac_srcdir;;
12946*)
12947 case $ac_srcdir in
12948 .) ac_abs_srcdir=$ac_abs_builddir;;
12949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12951 esac;;
12952esac
12953case $ac_abs_builddir in
12954.) ac_abs_top_srcdir=$ac_top_srcdir;;
12955*)
12956 case $ac_top_srcdir in
12957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12960 esac;;
12961esac
252b5132 12962
c6b750e1
DJ
12963
12964 case $INSTALL in
12965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12966 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 12967 esac
252b5132 12968
c6b750e1
DJ
12969 if test x"$ac_file" != x-; then
12970 { echo "$as_me:$LINENO: creating $ac_file" >&5
12971echo "$as_me: creating $ac_file" >&6;}
12972 rm -f "$ac_file"
12973 fi
12974 # Let's still pretend it is `configure' which instantiates (i.e., don't
12975 # use $as_me), people would be surprised to read:
12976 # /* config.h. Generated by config.status. */
12977 if test x"$ac_file" = x-; then
12978 configure_input=
12979 else
12980 configure_input="$ac_file. "
12981 fi
12982 configure_input=$configure_input"Generated from `echo $ac_file_in |
12983 sed 's,.*/,,'` by configure."
12984
12985 # First look for the input files in the build tree, otherwise in the
12986 # src tree.
12987 ac_file_inputs=`IFS=:
12988 for f in $ac_file_in; do
12989 case $f in
12990 -) echo $tmp/stdin ;;
12991 [\\/$]*)
12992 # Absolute (can't be DOS-style, as IFS=:)
12993 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12994echo "$as_me: error: cannot find input file: $f" >&2;}
12995 { (exit 1); exit 1; }; }
12996 echo "$f";;
12997 *) # Relative
12998 if test -f "$f"; then
12999 # Build tree
13000 echo "$f"
13001 elif test -f "$srcdir/$f"; then
13002 # Source tree
13003 echo "$srcdir/$f"
13004 else
13005 # /dev/null tree
13006 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13007echo "$as_me: error: cannot find input file: $f" >&2;}
13008 { (exit 1); exit 1; }; }
13009 fi;;
13010 esac
13011 done` || { (exit 1); exit 1; }
13012_ACEOF
13013cat >>$CONFIG_STATUS <<_ACEOF
13014 sed "$ac_vpsub
13015$extrasub
13016_ACEOF
13017cat >>$CONFIG_STATUS <<\_ACEOF
13018:t
13019/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13020s,@configure_input@,$configure_input,;t t
13021s,@srcdir@,$ac_srcdir,;t t
13022s,@abs_srcdir@,$ac_abs_srcdir,;t t
13023s,@top_srcdir@,$ac_top_srcdir,;t t
13024s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13025s,@builddir@,$ac_builddir,;t t
13026s,@abs_builddir@,$ac_abs_builddir,;t t
13027s,@top_builddir@,$ac_top_builddir,;t t
13028s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13029s,@INSTALL@,$ac_INSTALL,;t t
13030" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13031 rm -f $tmp/stdin
13032 if test x"$ac_file" != x-; then
13033 mv $tmp/out $ac_file
13034 else
13035 cat $tmp/out
13036 rm -f $tmp/out
13037 fi
c148b4cb 13038
c6b750e1
DJ
13039done
13040_ACEOF
c148b4cb 13041
c6b750e1 13042cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13043
c6b750e1
DJ
13044{ (exit 0); exit 0; }
13045_ACEOF
c148b4cb 13046chmod +x $CONFIG_STATUS
c6b750e1
DJ
13047ac_clean_files=$ac_clean_files_save
13048
13049
13050# configure is writing to config.log, and then calls config.status.
13051# config.status does its own redirection, appending to config.log.
13052# Unfortunately, on DOS this fails, as config.log is still kept open
13053# by configure, so config.status won't be able to write to it; its
13054# output is simply discarded. So we exec the FD to /dev/null,
13055# effectively closing config.log, so it can be properly (re)opened and
13056# appended to by config.status. When coming back to configure, we
13057# need to make the FD available again.
13058if test "$no_create" != yes; then
13059 ac_cs_success=:
13060 ac_config_status_args=
13061 test "$silent" = yes &&
13062 ac_config_status_args="$ac_config_status_args --quiet"
13063 exec 5>/dev/null
13064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13065 exec 5>>config.log
13066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13067 # would make configure fail if this is the last instruction.
13068 $ac_cs_success || { (exit 1); exit 1; }
13069fi
c148b4cb 13070
This page took 1.06933 seconds and 4 git commands to generate.