]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
* po/Make-in: Add --msgid-bugs-address to xgettext invocation.
[thirdparty/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 ;;
2a3124ca 5227 *-*-netware*)
a0da8069
NN
5228 target_makefile_frag="config/mt-netware"
5229 ;;
3d6dfe0f
NN
5230 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5231 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5232 ;;
5233 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5234 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5235 # commands to handle both 32-bit and 64-bit objects. These flags are
5236 # harmless if we're using GNU nm or ar.
5237 extra_arflags_for_target=" -X32_64"
5238 extra_nmflags_for_target=" -B -X32_64"
5239 ;;
5240 *-*-darwin*)
5241 # ranlib from Darwin requires the -c flag to look at common symbols.
5242 extra_ranlibflags_for_target=" -c"
5243 ;;
5244 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5245 target_makefile_frag="config/mt-wince"
5246 ;;
5247esac
5248
5249alphaieee_frag=/dev/null
5250case $target in
5251 alpha*-*-*)
5252 # This just makes sure to use the -mieee option to build target libs.
5253 # This should probably be set individually by each library.
5254 alphaieee_frag="config/mt-alphaieee"
5255 ;;
5256esac
5257
5258# If --enable-target-optspace always use -Os instead of -O2 to build
5259# the target libraries, similarly if it is not specified, use -Os
5260# on selected platforms.
5261ospace_frag=/dev/null
5262case "${enable_target_optspace}:${target}" in
5263 yes:*)
5264 ospace_frag="config/mt-ospace"
5265 ;;
5266 :d30v-*)
5267 ospace_frag="config/mt-d30v"
5268 ;;
5269 :m32r-* | :d10v-* | :fr30-*)
5270 ospace_frag="config/mt-ospace"
5271 ;;
5272 no:* | :*)
5273 ;;
5274 *)
5275 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5276 ;;
5277esac
5278
a0da8069
NN
5279# Default to using --with-stabs for certain targets.
5280if test x${with_stabs} = x ; then
5281 case "${target}" in
e31d1ea3 5282 mips*-*-irix[56]*)
a0da8069
NN
5283 ;;
5284 mips*-*-* | alpha*-*-osf*)
5285 with_stabs=yes;
5286 extra_host_args="${extra_host_args} --with-stabs"
5287 ;;
5288 esac
5289fi
5290
5291# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5292# them automatically.
5293case "${host}" in
c6b750e1 5294 hppa*64*-*-hpux11*)
a0da8069
NN
5295 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5296 ;;
5297esac
5298
a0da8069
NN
5299# Some systems (e.g., one of the i386-aix systems the gas testers are
5300# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5301tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5302build_tooldir=${tooldir}
5303
a0da8069
NN
5304# Create a .gdbinit file which runs the one in srcdir
5305# and tells GDB to look there for source files.
5306
5307if test -r ${srcdir}/.gdbinit ; then
5308 case ${srcdir} in
5309 .) ;;
5310 *) cat > ./.gdbinit <<EOF
5311# ${NO_EDIT}
5312dir ${srcdir}
5313dir .
5314source ${srcdir}/.gdbinit
5315EOF
5316 ;;
5317 esac
5318fi
5319
a0da8069
NN
5320# Make sure that the compiler is able to generate an executable. If it
5321# can't, we are probably in trouble. We don't care whether we can run the
5322# executable--we might be using a cross compiler--we only care whether it
5323# can be created. At this point the main configure script has set CC.
5324we_are_ok=no
5325echo "int main () { return 0; }" > conftest.c
5326${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5327if test $? = 0 ; then
5328 if test -s conftest || test -s conftest.exe ; then
5329 we_are_ok=yes
5330 fi
c6b750e1 5331fi
a0da8069
NN
5332case $we_are_ok in
5333 no)
5334 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5335 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5336 rm -f conftest*
5337 exit 1
5338 ;;
5339esac
5340rm -f conftest*
5341
5342# The Solaris /usr/ucb/cc compiler does not appear to work.
5343case "${host}" in
5344 sparc-sun-solaris2*)
5345 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5346 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5347 could_use=
5348 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5349 if test -d /opt/cygnus/bin ; then
5350 if test "$could_use" = "" ; then
5351 could_use="/opt/cygnus/bin"
5352 else
5353 could_use="$could_use or /opt/cygnus/bin"
5354 fi
5355 fi
5356 if test "$could_use" = "" ; then
5357 echo "Warning: compilation may fail because you're using"
5358 echo "/usr/ucb/cc. You should change your PATH or CC "
5359 echo "variable and rerun configure."
5360 else
5361 echo "Warning: compilation may fail because you're using"
5362 echo "/usr/ucb/cc, when you should use the C compiler from"
5363 echo "$could_use. You should change your"
5364 echo "PATH or CC variable and rerun configure."
5365 fi
5366 fi
5367 ;;
5368esac
5369
a0da8069
NN
5370case "${host}" in
5371 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5372 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5373 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5374esac
5375
5376# Record target_configdirs and the configure arguments for target and
5377# build configuration in Makefile.
5378target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5379build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5380
a0da8069
NN
5381# Determine whether gdb needs tk/tcl or not.
5382# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5383# and in that case we want gdb to be built without tk. Ugh!
5384# In fact I believe gdb is the *only* package directly dependent on tk,
5385# so we should be able to put the 'maybe's in unconditionally and
5386# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5387# 100% sure that that's safe though.
c180f501 5388
675c6968 5389gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5390case "$enable_gdbtk" in
5391 no)
5392 GDB_TK="" ;;
c180f501
AC
5393 yes)
5394 GDB_TK="${gdb_tk}" ;;
a0da8069 5395 *)
c180f501
AC
5396 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5397 # distro. Eventually someone will fix this and move Insight, nee
5398 # gdbtk to a separate directory.
5399 if test -d ${srcdir}/gdb/gdbtk ; then
5400 GDB_TK="${gdb_tk}"
5401 else
5402 GDB_TK=""
5403 fi
5404 ;;
a0da8069 5405esac
907be67c
DJ
5406CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5407INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5408
6bd3dfaa 5409# Strip out unwanted targets.
dd12c3a8
NN
5410
5411# While at that, we remove Makefiles if we were started for recursive
5412# configuration, so that the top-level Makefile reconfigures them,
5413# like we used to do when configure itself was recursive.
dd12c3a8 5414
6bd3dfaa
PB
5415# Loop over modules. $extrasub must be used with care, limiting as
5416# much as possible the usage of range addresses. That's because autoconf
5417# splits the sed script to overcome limits in the number of commands,
5418# and relying on carefully-timed sed passes may turn out to be very hard
5419# to maintain later. In this particular case, you just have to be careful
5420# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5421
319cab08
PB
5422# Check whether --enable-bootstrap or --disable-bootstrap was given.
5423if test "${enable_bootstrap+set}" = set; then
5424 enableval="$enable_bootstrap"
c6b750e1 5425
319cab08 5426else
9cb3fa6f 5427 enable_bootstrap=default
c6b750e1 5428fi;
319cab08 5429
9cb3fa6f
PB
5430# Issue errors and warnings for invalid/strange bootstrap combinations.
5431case "$configdirs" in
5432 *gcc*) have_compiler=yes ;;
5433 *) have_compiler=no ;;
5434esac
5435
5436case "$have_compiler:$host:$target:$enable_bootstrap" in
5437 *:*:*:no) ;;
5438
0aed8855 5439 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5440 # and we are in a native configuration.
5441 yes:$build:$build:default)
0aed8855 5442 enable_bootstrap=yes ;;
9cb3fa6f
PB
5443
5444 *:*:*:default)
5445 enable_bootstrap=no ;;
5446
5447 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5448 yes:$build:$build:yes)
9cb3fa6f
PB
5449 ;;
5450
5451 # Other configurations, but we have a compiler. Assume the user knows
5452 # what he's doing.
80911fe1 5453 yes:*:*:yes)
c6b750e1
DJ
5454 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5455echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5456 ;;
5457
5458 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5459 no:*:*:yes)
c6b750e1
DJ
5460 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5461echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5462 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5463
5464 # Fail if wrong command line
5465 *)
c6b750e1
DJ
5466 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5467echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5468 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5469 ;;
5470esac
5471
5472# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5473case "$enable_bootstrap" in
5474 yes)
498d4a71 5475 bootstrap_suffix=bootstrap ;;
319cab08 5476 no)
498d4a71 5477 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5478esac
5479
6a9cf61e 5480for module in ${build_configdirs} ; do
498d4a71
CF
5481 if test -z "${no_recursion}" \
5482 && test -f ${build_subdir}/${module}/Makefile; then
5483 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5484 rm -f ${build_subdir}/${module}/Makefile
5485 fi
5486 extrasub="$extrasub
5487/^@if build-$module\$/d
5488/^@endif build-$module\$/d
5489/^@if build-$module-$bootstrap_suffix\$/d
5490/^@endif build-$module-$bootstrap_suffix\$/d"
5491done
5492for module in ${configdirs} ; do
80911fe1 5493 if test -z "${no_recursion}"; then
8cf39b1b 5494 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5495 if test -f ${file}; then
5496 echo 1>&2 "*** removing ${file} to force reconfigure"
5497 rm -f ${file}
5498 fi
5499 done
498d4a71
CF
5500 fi
5501 extrasub="$extrasub
5502/^@if $module\$/d
5503/^@endif $module\$/d
5504/^@if $module-$bootstrap_suffix\$/d
5505/^@endif $module-$bootstrap_suffix\$/d"
5506done
5507for module in ${target_configdirs} ; do
5508 if test -z "${no_recursion}" \
5509 && test -f ${target_subdir}/${module}/Makefile; then
5510 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5511 rm -f ${target_subdir}/${module}/Makefile
5512 fi
5513 extrasub="$extrasub
5514/^@if target-$module\$/d
5515/^@endif target-$module\$/d
5516/^@if target-$module-$bootstrap_suffix\$/d
5517/^@endif target-$module-$bootstrap_suffix\$/d"
5518done
5519
6bd3dfaa
PB
5520extrasub="$extrasub
5521/^@if /,/^@endif /d"
a0da8069
NN
5522
5523# Create the serialization dependencies. This uses a temporary file.
5524
e6bfb94a
AO
5525# Check whether --enable-serial-configure or --disable-serial-configure was given.
5526if test "${enable_serial_configure+set}" = set; then
5527 enableval="$enable_serial_configure"
e6bfb94a 5528
c6b750e1 5529fi;
e6bfb94a 5530
1047cb91
DD
5531case ${enable_serial_configure} in
5532 yes)
5533 enable_serial_build_configure=yes
5534 enable_serial_host_configure=yes
5535 enable_serial_target_configure=yes
5536 ;;
5537esac
5538
a0da8069
NN
5539# These force 'configure's to be done one at a time, to avoid problems
5540# with contention over a shared config.cache.
5541rm -f serdep.tmp
e6bfb94a 5542echo '# serdep.tmp' > serdep.tmp
a0da8069 5543olditem=
1047cb91 5544test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5545for item in ${build_configdirs} ; do
5546 case ${olditem} in
5547 "") ;;
e6bfb94a 5548 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5549 esac
5550 olditem=${item}
5551done
5552olditem=
1047cb91 5553test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5554for item in ${configdirs} ; do
5555 case ${olditem} in
5556 "") ;;
e6bfb94a 5557 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5558 esac
5559 olditem=${item}
5560done
5561olditem=
1047cb91 5562test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5563for item in ${target_configdirs} ; do
5564 case ${olditem} in
5565 "") ;;
e6bfb94a 5566 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5567 esac
5568 olditem=${item}
5569done
5570serialization_dependencies=serdep.tmp
5571
5572
e6bfb94a 5573# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5574# target, nonopt, and variable assignments. These are the ones we
5575# might not want to pass down to subconfigures. Also strip
5576# program-prefix, program-suffix, and program-transform-name, so that
5577# we can pass down a consistent program-transform-name.
5578baseargs=
5579keep_next=no
5580skip_next=no
5581eval "set -- $ac_configure_args"
18f6b6ee
PB
5582for ac_arg
5583do
c6b750e1
DJ
5584 if test X"$skip_next" = X"yes"; then
5585 skip_next=no
5586 continue
5587 fi
5588 if test X"$keep_next" = X"yes"; then
5589 case $ac_arg in
5590 *\'*)
5591 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5592 esac
5593 baseargs="$baseargs '$ac_arg'"
5594 keep_next=no
5595 continue
5596 fi
5597
5598 # Handle separated arguments. Based on the logic generated by
5599 # autoconf 2.59.
5600 case $ac_arg in
5601 *=* | --config-cache | -C | -disable-* | --disable-* \
5602 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5603 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5604 | -with-* | --with-* | -without-* | --without-* | --x)
5605 separate_arg=no
5606 ;;
5607 -*)
5608 separate_arg=yes
5609 ;;
5610 *)
5611 separate_arg=no
5612 ;;
5613 esac
5614
5615 case "$ac_arg" in
5616 --no*)
5617 continue
5618 ;;
5619 --c* | \
5620 --sr* | \
5621 --ho* | \
5622 --bu* | \
5623 --t* | \
5624 --program-* | \
5625 -cache_file* | \
5626 -srcdir* | \
5627 -host* | \
5628 -build* | \
5629 -target* | \
5630 -program-prefix* | \
5631 -program-suffix* | \
5632 -program-transform-name* )
5633 skip_next=$separate_arg
5634 continue
5635 ;;
5636 -*)
5637 # An option. Add it.
5638 case $ac_arg in
5639 *\'*)
5640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5641 esac
5642 baseargs="$baseargs '$ac_arg'"
5643 keep_next=$separate_arg
5644 ;;
5645 *)
5646 # Either a variable assignment, or a nonopt (triplet). Don't
5647 # pass it down; let the Makefile handle this.
5648 continue
5649 ;;
5650 esac
5651done
5652# Remove the initial space we just introduced and, as these will be
5653# expanded by make, quote '$'.
5654baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5655
f27d4f92
DJ
5656# Add in --program-transform-name, after --program-prefix and
5657# --program-suffix have been applied to it. Autoconf has already
5658# doubled dollar signs and backslashes in program_transform_name; we want
5659# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5660# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5661# Also, because we want to override the logic in subdir configure scripts to
5662# choose program_transform_name, replace any s,x,x, with s,y,y,.
5663sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5664${program_transform_name}
5665EOF_SED
5666gcc_transform_name=`cat conftestsed.out`
5667rm -f conftestsed.out
5668baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5669if test "$silent" = yes; then
5670 baseargs="$baseargs --silent"
5671fi
f27d4f92 5672
a0da8069
NN
5673# For the build-side libraries, we just need to pretend we're native,
5674# and not use the same cache file. Multilibs are neither needed nor
5675# desired.
4b900473 5676build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5677
5678# For host modules, accept cache file option, or specification as blank.
5679case "${cache_file}" in
5680"") # empty
5681 cache_file_option="" ;;
5682/* | [A-Za-z]:[\\/]* ) # absolute path
5683 cache_file_option="--cache-file=${cache_file}" ;;
5684*) # relative path
5685 cache_file_option="--cache-file=../${cache_file}" ;;
5686esac
5687
82252c06
NN
5688# Host dirs don't like to share a cache file either, horribly enough.
5689# This seems to be due to autoconf 2.5x stupidity.
4b900473 5690host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5691
5692target_configargs=${baseargs}
5693
5694# Passing a --with-cross-host argument lets the target libraries know
5695# whether they are being built with a cross-compiler or being built
5696# native. However, it would be better to use other mechanisms to make the
5697# sorts of decisions they want to make on this basis. Please consider
5698# this option to be deprecated. FIXME.
5699if test x${is_cross_compiler} = xyes ; then
c6b750e1 5700 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5701fi
5702
5703# Default to --enable-multilib.
5704if test x${enable_multilib} = x ; then
5705 target_configargs="--enable-multilib ${target_configargs}"
5706fi
5707
5708# Pass --with-newlib if appropriate. Note that target_configdirs has
5709# changed from the earlier setting of with_newlib.
5710if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5711 target_configargs="--with-newlib ${target_configargs}"
5712fi
5713
95036d20
NN
5714# Different target subdirs use different values of certain variables
5715# (notably CXX). Worse, multilibs use *lots* of different values.
5716# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5717# it doesn't automatically accept command-line overrides of them.
5718# This means it's not safe for target subdirs to share a cache file,
5719# which is disgusting, but there you have it. Hopefully this can be
5720# fixed in future. It's still worthwhile to use a cache file for each
5721# directory. I think.
5722
ae380b45
MS
5723# Pass the appropriate --build, --host, --target and --cache-file arguments.
5724# We need to pass --target, as newer autoconf's requires consistency
5725# for target_alias and gcc doesn't manage it consistently.
4b900473 5726target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5727
a0da8069
NN
5728FLAGS_FOR_TARGET=
5729case " $target_configdirs " in
5730 *" newlib "*)
5731 case " $target_configargs " in
5732 *" --with-newlib "*)
5733 case "$target" in
5734 *-cygwin*)
564b43e5 5735 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
5736 esac
5737
5738 # If we're not building GCC, don't discard standard headers.
5739 if test -d ${srcdir}/gcc; then
5740 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5741
5742 if test "${build}" != "${host}"; then
5743 # On Canadian crosses, CC_FOR_TARGET will have already been set
5744 # by `configure', so we won't have an opportunity to add -Bgcc/
5745 # to it. This is right: we don't want to search that directory
5746 # for binaries, but we want the header files in there, so add
5747 # them explicitly.
b00612cc 5748 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5749
5750 # Someone might think of using the pre-installed headers on
5751 # Canadian crosses, in case the installed compiler is not fully
5752 # compatible with the compiler being built. In this case, it
5753 # would be better to flag an error than risking having
5754 # incompatible object files being constructed. We can't
5755 # guarantee that an error will be flagged, but let's hope the
5756 # compiler will do it, when presented with incompatible header
5757 # files.
5758 fi
5759 fi
5760
5761 case "${target}-${is_cross_compiler}" in
ec11bdc6 5762 i[3456789]86-*-linux*-no)
a0da8069
NN
5763 # Here host == target, so we don't need to build gcc,
5764 # so we don't want to discard standard headers.
5765 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5766 ;;
5767 *)
5768 # If we're building newlib, use its generic headers last, but search
5769 # for any libc-related directories first (so make it the last -B
5770 # switch).
5771 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5772 ;;
5773 esac
5774 ;;
5775 esac
5776 ;;
5777esac
45055374
CV
5778case "$target" in
5779*-mingw*)
5780 # Can't be handled as Cygwin above since Mingw does not use newlib.
5781 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' ;;
5782esac
a0da8069 5783
5fbad20a
DD
5784# Allow the user to override the flags for
5785# our build compiler if desired.
5786CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5787
a0da8069
NN
5788# On Canadian crosses, we'll be searching the right directories for
5789# the previously-installed cross compiler, so don't bother to add
5790# flags for directories within the install tree of the compiler
5791# being built; programs in there won't even run.
5792if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5793 # Search for pre-installed headers if nothing else fits.
bba45b8b 5794 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
5795fi
5796
5797if test "x${use_gnu_ld}" = x &&
5798 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5799 # Arrange for us to find uninstalled linker scripts.
b00612cc 5800 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5801fi
5802
a481dbb7
DD
5803# Search for other target-specific linker scripts and such.
5804case "${target}" in
5805 m32c-*-* )
5806 if test -d ${srcdir}/libgloss/m32c; then
5807 # This is for crt0.o
5808 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5809 # This is for r8c.ld
5810 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5811 # This is for libnosys.a
5812 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5813 fi
5814 ;;
4e206d7e
DB
5815 mep*)
5816 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5817 ;;
5818esac
5819
a0da8069 5820# Makefile fragments.
3e707e94
PB
5821for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5822do
5823 eval fragval=\$$frag
5824 if test $fragval != /dev/null; then
5825 eval $frag=${srcdir}/$fragval
5826 fi
5827done
a0da8069
NN
5828
5829
5830
5831
5832
5833# Miscellanea: directories, flags, etc.
5834
5835
5836
5837
5838
5839
5840
6a9cf61e 5841# Build module lists & subconfigure args.
a0da8069
NN
5842
5843
5844
be01d343
PB
5845# Host module lists & subconfigure args.
5846
5847
5848
5849# Target module lists & subconfigure args.
5850
5851
5852
5853# Build tools.
5854
5855
5856
5857# Generate default definitions for YACC, M4, LEX and other programs that run
5858# on the build machine. These are used if the Makefile can't locate these
5859# programs in objdir.
5860MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5861
5862for ac_prog in 'bison -y' byacc yacc
5863do
c6b750e1 5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5865set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5866echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868if test "${ac_cv_prog_YACC+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5870else
5871 if test -n "$YACC"; then
5872 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5873else
c6b750e1
DJ
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_YACC="$ac_prog"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886done
5887
be01d343
PB
5888fi
5889fi
c6b750e1 5890YACC=$ac_cv_prog_YACC
be01d343 5891if test -n "$YACC"; then
c6b750e1
DJ
5892 echo "$as_me:$LINENO: result: $YACC" >&5
5893echo "${ECHO_T}$YACC" >&6
be01d343 5894else
c6b750e1
DJ
5895 echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
be01d343
PB
5897fi
5898
c6b750e1 5899 test -n "$YACC" && break
be01d343
PB
5900done
5901test -n "$YACC" || YACC="$MISSING bison -y"
5902
5903case " $build_configdirs " in
5904 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5905 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5906esac
5907
5908for ac_prog in bison
5909do
c6b750e1 5910 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5911set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914if test "${ac_cv_prog_BISON+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5916else
5917 if test -n "$BISON"; then
5918 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5919else
c6b750e1
DJ
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_BISON="$ac_prog"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932done
5933
be01d343
PB
5934fi
5935fi
c6b750e1 5936BISON=$ac_cv_prog_BISON
be01d343 5937if test -n "$BISON"; then
c6b750e1
DJ
5938 echo "$as_me:$LINENO: result: $BISON" >&5
5939echo "${ECHO_T}$BISON" >&6
be01d343 5940else
c6b750e1
DJ
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
be01d343
PB
5943fi
5944
c6b750e1 5945 test -n "$BISON" && break
be01d343
PB
5946done
5947test -n "$BISON" || BISON="$MISSING bison"
5948
5949case " $build_configdirs " in
5950 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5951esac
5952
5953for ac_prog in gm4 gnum4 m4
5954do
c6b750e1 5955 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5956set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5957echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959if test "${ac_cv_prog_M4+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5961else
5962 if test -n "$M4"; then
5963 ac_cv_prog_M4="$M4" # Let the user override the test.
5964else
c6b750e1
DJ
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_M4="$ac_prog"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976done
5977done
5978
be01d343
PB
5979fi
5980fi
c6b750e1 5981M4=$ac_cv_prog_M4
be01d343 5982if test -n "$M4"; then
c6b750e1
DJ
5983 echo "$as_me:$LINENO: result: $M4" >&5
5984echo "${ECHO_T}$M4" >&6
be01d343 5985else
c6b750e1
DJ
5986 echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6
be01d343
PB
5988fi
5989
c6b750e1 5990 test -n "$M4" && break
be01d343
PB
5991done
5992test -n "$M4" || M4="$MISSING m4"
5993
5994case " $build_configdirs " in
5995 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5996esac
5997
5998for ac_prog in flex lex
5999do
c6b750e1 6000 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6001set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6002echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004if test "${ac_cv_prog_LEX+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6006else
6007 if test -n "$LEX"; then
6008 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6009else
c6b750e1
DJ
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_LEX="$ac_prog"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022done
6023
be01d343
PB
6024fi
6025fi
c6b750e1 6026LEX=$ac_cv_prog_LEX
be01d343 6027if test -n "$LEX"; then
c6b750e1
DJ
6028 echo "$as_me:$LINENO: result: $LEX" >&5
6029echo "${ECHO_T}$LEX" >&6
be01d343 6030else
c6b750e1
DJ
6031 echo "$as_me:$LINENO: result: no" >&5
6032echo "${ECHO_T}no" >&6
be01d343
PB
6033fi
6034
c6b750e1 6035 test -n "$LEX" && break
be01d343
PB
6036done
6037test -n "$LEX" || LEX="$MISSING flex"
6038
6039case " $build_configdirs " in
6040 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6041 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6042esac
6043
6044for ac_prog in flex
6045do
c6b750e1 6046 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6047set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6048echo "$as_me:$LINENO: checking for $ac_word" >&5
6049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050if test "${ac_cv_prog_FLEX+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6052else
6053 if test -n "$FLEX"; then
6054 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6055else
c6b750e1
DJ
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063 ac_cv_prog_FLEX="$ac_prog"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067done
6068done
6069
be01d343
PB
6070fi
6071fi
c6b750e1 6072FLEX=$ac_cv_prog_FLEX
be01d343 6073if test -n "$FLEX"; then
c6b750e1
DJ
6074 echo "$as_me:$LINENO: result: $FLEX" >&5
6075echo "${ECHO_T}$FLEX" >&6
be01d343 6076else
c6b750e1
DJ
6077 echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6
be01d343
PB
6079fi
6080
c6b750e1 6081 test -n "$FLEX" && break
be01d343
PB
6082done
6083test -n "$FLEX" || FLEX="$MISSING flex"
6084
6085case " $build_configdirs " in
6086 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6087esac
6088
6089for ac_prog in makeinfo
6090do
c6b750e1 6091 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6092set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6093echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6095if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6097else
6098 if test -n "$MAKEINFO"; then
6099 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6100else
c6b750e1
DJ
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_prog_MAKEINFO="$ac_prog"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112done
6113done
6114
be01d343
PB
6115fi
6116fi
c6b750e1 6117MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6118if test -n "$MAKEINFO"; then
c6b750e1
DJ
6119 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6120echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6121else
c6b750e1
DJ
6122 echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6
be01d343
PB
6124fi
6125
c6b750e1 6126 test -n "$MAKEINFO" && break
be01d343
PB
6127done
6128test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6129
6130case " $build_configdirs " in
6131 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6132 *)
6133
a4ef73e9 6134 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6135 # higher, else we use the "missing" dummy.
6136 if ${MAKEINFO} --version \
a4ef73e9 6137 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6138 :
6139 else
6140 MAKEINFO="$MISSING makeinfo"
6141 fi
6142 ;;
6143
6144esac
a0da8069 6145
be01d343 6146# FIXME: expect and dejagnu may become build tools?
a0da8069 6147
be01d343
PB
6148for ac_prog in expect
6149do
c6b750e1 6150 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6151set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6152echo "$as_me:$LINENO: checking for $ac_word" >&5
6153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6154if test "${ac_cv_prog_EXPECT+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6156else
6157 if test -n "$EXPECT"; then
6158 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6159else
c6b750e1
DJ
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_EXPECT="$ac_prog"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6170 fi
6171done
6172done
6173
be01d343
PB
6174fi
6175fi
c6b750e1 6176EXPECT=$ac_cv_prog_EXPECT
be01d343 6177if test -n "$EXPECT"; then
c6b750e1
DJ
6178 echo "$as_me:$LINENO: result: $EXPECT" >&5
6179echo "${ECHO_T}$EXPECT" >&6
be01d343 6180else
c6b750e1
DJ
6181 echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6
be01d343 6183fi
a0da8069 6184
c6b750e1 6185 test -n "$EXPECT" && break
be01d343
PB
6186done
6187test -n "$EXPECT" || EXPECT="expect"
a0da8069 6188
be01d343
PB
6189case " $configdirs " in
6190 *" expect "*)
6191 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6192 ;;
6193esac
a0da8069 6194
be01d343
PB
6195for ac_prog in runtest
6196do
c6b750e1 6197 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6198set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6199echo "$as_me:$LINENO: checking for $ac_word" >&5
6200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6201if test "${ac_cv_prog_RUNTEST+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6203else
6204 if test -n "$RUNTEST"; then
6205 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6206else
c6b750e1
DJ
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_prog_RUNTEST="$ac_prog"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219done
6220
be01d343
PB
6221fi
6222fi
c6b750e1 6223RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6224if test -n "$RUNTEST"; then
c6b750e1
DJ
6225 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6226echo "${ECHO_T}$RUNTEST" >&6
be01d343 6227else
c6b750e1
DJ
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
be01d343 6230fi
a0da8069 6231
c6b750e1 6232 test -n "$RUNTEST" && break
be01d343
PB
6233done
6234test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6235
be01d343
PB
6236case " $configdirs " in
6237 *" dejagnu "*)
6b89cc21 6238 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6239 ;;
6240esac
a0da8069
NN
6241
6242
a0da8069 6243# Host tools.
859789af
AC
6244ncn_tool_prefix=
6245test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6246ncn_target_tool_prefix=
6247test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6248
9a819804
AO
6249
6250
6251if test -n "$AR"; then
6252 ac_cv_prog_AR=$AR
6253elif test -n "$ac_cv_prog_AR"; then
6254 AR=$ac_cv_prog_AR
6255fi
6256
6257if test -n "$ac_cv_prog_AR"; then
6258 for ncn_progname in ar; do
6259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6260set dummy ${ncn_progname}; ac_word=$2
6261echo "$as_me:$LINENO: checking for $ac_word" >&5
6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263if test "${ac_cv_prog_AR+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 if test -n "$AR"; then
6267 ac_cv_prog_AR="$AR" # Let the user override the test.
6268else
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_AR="${ncn_progname}"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280done
6281done
6282
6283fi
6284fi
6285AR=$ac_cv_prog_AR
6286if test -n "$AR"; then
6287 echo "$as_me:$LINENO: result: $AR" >&5
6288echo "${ECHO_T}$AR" >&6
6289else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292fi
6293
6294 done
6295fi
6296
6297for ncn_progname in ar; do
05cbd757
PB
6298 if test -n "$ncn_tool_prefix"; then
6299 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6300set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6301echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6303if test "${ac_cv_prog_AR+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6305else
6306 if test -n "$AR"; then
6307 ac_cv_prog_AR="$AR" # Let the user override the test.
6308else
c6b750e1
DJ
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321done
6322
859789af
AC
6323fi
6324fi
c6b750e1 6325AR=$ac_cv_prog_AR
859789af 6326if test -n "$AR"; then
c6b750e1
DJ
6327 echo "$as_me:$LINENO: result: $AR" >&5
6328echo "${ECHO_T}$AR" >&6
859789af 6329else
c6b750e1
DJ
6330 echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6
859789af
AC
6332fi
6333
05cbd757
PB
6334 fi
6335 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6337set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6338echo "$as_me:$LINENO: checking for $ac_word" >&5
6339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6340if test "${ac_cv_prog_AR+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6342else
05cbd757
PB
6343 if test -n "$AR"; then
6344 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6345else
c6b750e1
DJ
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_AR="${ncn_progname}"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357done
6358done
6359
859789af
AC
6360fi
6361fi
c6b750e1 6362AR=$ac_cv_prog_AR
05cbd757 6363if test -n "$AR"; then
c6b750e1
DJ
6364 echo "$as_me:$LINENO: result: $AR" >&5
6365echo "${ECHO_T}$AR" >&6
859789af 6366else
c6b750e1
DJ
6367 echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
859789af 6369fi
c6b750e1 6370
05cbd757
PB
6371 fi
6372 test -n "$ac_cv_prog_AR" && break
6373done
6374
6375if test -z "$ac_cv_prog_AR" ; then
6376 set dummy ar
6377 if test $build = $host ; then
6378 AR="$2"
859789af 6379 else
05cbd757 6380 AR="${ncn_tool_prefix}$2"
859789af 6381 fi
859789af
AC
6382fi
6383
9a819804
AO
6384
6385
6386if test -n "$AS"; then
6387 ac_cv_prog_AS=$AS
6388elif test -n "$ac_cv_prog_AS"; then
6389 AS=$ac_cv_prog_AS
6390fi
6391
6392if test -n "$ac_cv_prog_AS"; then
6393 for ncn_progname in as; do
6394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6395set dummy ${ncn_progname}; ac_word=$2
6396echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6398if test "${ac_cv_prog_AS+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 if test -n "$AS"; then
6402 ac_cv_prog_AS="$AS" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411 ac_cv_prog_AS="${ncn_progname}"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415done
6416done
6417
6418fi
6419fi
6420AS=$ac_cv_prog_AS
6421if test -n "$AS"; then
6422 echo "$as_me:$LINENO: result: $AS" >&5
6423echo "${ECHO_T}$AS" >&6
6424else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427fi
6428
6429 done
6430fi
6431
6432for ncn_progname in as; do
05cbd757
PB
6433 if test -n "$ncn_tool_prefix"; then
6434 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6435set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6436echo "$as_me:$LINENO: checking for $ac_word" >&5
6437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6438if test "${ac_cv_prog_AS+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6440else
6441 if test -n "$AS"; then
6442 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6443else
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455done
6456done
6457
859789af
AC
6458fi
6459fi
c6b750e1 6460AS=$ac_cv_prog_AS
859789af 6461if test -n "$AS"; then
c6b750e1
DJ
6462 echo "$as_me:$LINENO: result: $AS" >&5
6463echo "${ECHO_T}$AS" >&6
859789af 6464else
c6b750e1
DJ
6465 echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6
859789af
AC
6467fi
6468
05cbd757
PB
6469 fi
6470 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6472set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6473echo "$as_me:$LINENO: checking for $ac_word" >&5
6474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6475if test "${ac_cv_prog_AS+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6477else
05cbd757
PB
6478 if test -n "$AS"; then
6479 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6480else
c6b750e1
DJ
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_AS="${ncn_progname}"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493done
6494
859789af
AC
6495fi
6496fi
c6b750e1 6497AS=$ac_cv_prog_AS
05cbd757 6498if test -n "$AS"; then
c6b750e1
DJ
6499 echo "$as_me:$LINENO: result: $AS" >&5
6500echo "${ECHO_T}$AS" >&6
859789af 6501else
c6b750e1
DJ
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
859789af 6504fi
c6b750e1 6505
05cbd757
PB
6506 fi
6507 test -n "$ac_cv_prog_AS" && break
6508done
6509
6510if test -z "$ac_cv_prog_AS" ; then
6511 set dummy as
6512 if test $build = $host ; then
6513 AS="$2"
859789af 6514 else
05cbd757 6515 AS="${ncn_tool_prefix}$2"
859789af 6516 fi
859789af
AC
6517fi
6518
9a819804
AO
6519
6520
6521if test -n "$DLLTOOL"; then
6522 ac_cv_prog_DLLTOOL=$DLLTOOL
6523elif test -n "$ac_cv_prog_DLLTOOL"; then
6524 DLLTOOL=$ac_cv_prog_DLLTOOL
6525fi
6526
6527if test -n "$ac_cv_prog_DLLTOOL"; then
6528 for ncn_progname in dlltool; do
6529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6530set dummy ${ncn_progname}; ac_word=$2
6531echo "$as_me:$LINENO: checking for $ac_word" >&5
6532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6533if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536 if test -n "$DLLTOOL"; then
6537 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_DLLTOOL="${ncn_progname}"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551done
6552
6553fi
6554fi
6555DLLTOOL=$ac_cv_prog_DLLTOOL
6556if test -n "$DLLTOOL"; then
6557 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6558echo "${ECHO_T}$DLLTOOL" >&6
6559else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562fi
6563
6564 done
6565fi
6566
6567for ncn_progname in dlltool; do
05cbd757
PB
6568 if test -n "$ncn_tool_prefix"; then
6569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6570set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6571echo "$as_me:$LINENO: checking for $ac_word" >&5
6572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6573if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6575else
6576 if test -n "$DLLTOOL"; then
6577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6578else
c6b750e1
DJ
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590done
6591done
6592
859789af
AC
6593fi
6594fi
c6b750e1 6595DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6596if test -n "$DLLTOOL"; then
c6b750e1
DJ
6597 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6598echo "${ECHO_T}$DLLTOOL" >&6
859789af 6599else
c6b750e1
DJ
6600 echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6
859789af
AC
6602fi
6603
05cbd757
PB
6604 fi
6605 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6607set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6608echo "$as_me:$LINENO: checking for $ac_word" >&5
6609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6610if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6612else
05cbd757
PB
6613 if test -n "$DLLTOOL"; then
6614 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6615else
c6b750e1
DJ
6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6623 ac_cv_prog_DLLTOOL="${ncn_progname}"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627done
6628done
6629
859789af
AC
6630fi
6631fi
c6b750e1 6632DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6633if test -n "$DLLTOOL"; then
c6b750e1
DJ
6634 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6635echo "${ECHO_T}$DLLTOOL" >&6
859789af 6636else
c6b750e1
DJ
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
859789af 6639fi
c6b750e1 6640
05cbd757
PB
6641 fi
6642 test -n "$ac_cv_prog_DLLTOOL" && break
6643done
6644
6645if test -z "$ac_cv_prog_DLLTOOL" ; then
6646 set dummy dlltool
6647 if test $build = $host ; then
6648 DLLTOOL="$2"
859789af 6649 else
05cbd757 6650 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6651 fi
859789af
AC
6652fi
6653
9a819804
AO
6654
6655
6656if test -n "$LD"; then
6657 ac_cv_prog_LD=$LD
6658elif test -n "$ac_cv_prog_LD"; then
6659 LD=$ac_cv_prog_LD
6660fi
6661
6662if test -n "$ac_cv_prog_LD"; then
6663 for ncn_progname in ld; do
6664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6665set dummy ${ncn_progname}; ac_word=$2
6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668if test "${ac_cv_prog_LD+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671 if test -n "$LD"; then
6672 ac_cv_prog_LD="$LD" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_LD="${ncn_progname}"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687
6688fi
6689fi
6690LD=$ac_cv_prog_LD
6691if test -n "$LD"; then
6692 echo "$as_me:$LINENO: result: $LD" >&5
6693echo "${ECHO_T}$LD" >&6
6694else
6695 echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697fi
6698
6699 done
6700fi
6701
6702for ncn_progname in ld; do
05cbd757
PB
6703 if test -n "$ncn_tool_prefix"; then
6704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6705set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6706echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6708if test "${ac_cv_prog_LD+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6710else
6711 if test -n "$LD"; then
6712 ac_cv_prog_LD="$LD" # Let the user override the test.
6713else
c6b750e1
DJ
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725done
6726done
6727
859789af
AC
6728fi
6729fi
c6b750e1 6730LD=$ac_cv_prog_LD
859789af 6731if test -n "$LD"; then
c6b750e1
DJ
6732 echo "$as_me:$LINENO: result: $LD" >&5
6733echo "${ECHO_T}$LD" >&6
859789af 6734else
c6b750e1
DJ
6735 echo "$as_me:$LINENO: result: no" >&5
6736echo "${ECHO_T}no" >&6
859789af
AC
6737fi
6738
05cbd757
PB
6739 fi
6740 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6742set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6743echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6745if test "${ac_cv_prog_LD+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6747else
05cbd757
PB
6748 if test -n "$LD"; then
6749 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6750else
c6b750e1
DJ
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_LD="${ncn_progname}"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763done
6764
859789af
AC
6765fi
6766fi
c6b750e1 6767LD=$ac_cv_prog_LD
05cbd757 6768if test -n "$LD"; then
c6b750e1
DJ
6769 echo "$as_me:$LINENO: result: $LD" >&5
6770echo "${ECHO_T}$LD" >&6
859789af 6771else
c6b750e1
DJ
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
859789af 6774fi
c6b750e1 6775
05cbd757
PB
6776 fi
6777 test -n "$ac_cv_prog_LD" && break
6778done
6779
6780if test -z "$ac_cv_prog_LD" ; then
6781 set dummy ld
6782 if test $build = $host ; then
6783 LD="$2"
859789af 6784 else
05cbd757 6785 LD="${ncn_tool_prefix}$2"
859789af 6786 fi
859789af
AC
6787fi
6788
9a819804
AO
6789
6790
6791if test -n "$LIPO"; then
6792 ac_cv_prog_LIPO=$LIPO
6793elif test -n "$ac_cv_prog_LIPO"; then
6794 LIPO=$ac_cv_prog_LIPO
6795fi
6796
6797if test -n "$ac_cv_prog_LIPO"; then
6798 for ncn_progname in lipo; do
6799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6800set dummy ${ncn_progname}; ac_word=$2
6801echo "$as_me:$LINENO: checking for $ac_word" >&5
6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6803if test "${ac_cv_prog_LIPO+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806 if test -n "$LIPO"; then
6807 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816 ac_cv_prog_LIPO="${ncn_progname}"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822
6823fi
6824fi
6825LIPO=$ac_cv_prog_LIPO
6826if test -n "$LIPO"; then
6827 echo "$as_me:$LINENO: result: $LIPO" >&5
6828echo "${ECHO_T}$LIPO" >&6
6829else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832fi
6833
6834 done
6835fi
6836
6837for ncn_progname in lipo; do
be01d343
PB
6838 if test -n "$ncn_tool_prefix"; then
6839 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6840set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6841echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6843if test "${ac_cv_prog_LIPO+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6845else
6846 if test -n "$LIPO"; then
6847 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6848else
c6b750e1
DJ
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861done
6862
be01d343
PB
6863fi
6864fi
c6b750e1 6865LIPO=$ac_cv_prog_LIPO
be01d343 6866if test -n "$LIPO"; then
c6b750e1
DJ
6867 echo "$as_me:$LINENO: result: $LIPO" >&5
6868echo "${ECHO_T}$LIPO" >&6
be01d343 6869else
c6b750e1
DJ
6870 echo "$as_me:$LINENO: result: no" >&5
6871echo "${ECHO_T}no" >&6
be01d343
PB
6872fi
6873
6874 fi
6875 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6877set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6878echo "$as_me:$LINENO: checking for $ac_word" >&5
6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6880if test "${ac_cv_prog_LIPO+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6882else
6883 if test -n "$LIPO"; then
6884 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6885else
c6b750e1
DJ
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_LIPO="${ncn_progname}"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897done
6898done
6899
be01d343
PB
6900fi
6901fi
c6b750e1 6902LIPO=$ac_cv_prog_LIPO
be01d343 6903if test -n "$LIPO"; then
c6b750e1
DJ
6904 echo "$as_me:$LINENO: result: $LIPO" >&5
6905echo "${ECHO_T}$LIPO" >&6
be01d343 6906else
c6b750e1
DJ
6907 echo "$as_me:$LINENO: result: no" >&5
6908echo "${ECHO_T}no" >&6
be01d343 6909fi
c6b750e1 6910
be01d343
PB
6911 fi
6912 test -n "$ac_cv_prog_LIPO" && break
6913done
6914
6915if test -z "$ac_cv_prog_LIPO" ; then
6916 set dummy lipo
6917 if test $build = $host ; then
6918 LIPO="$2"
6919 else
6920 LIPO="${ncn_tool_prefix}$2"
6921 fi
6922fi
6923
9a819804
AO
6924
6925
6926if test -n "$NM"; then
6927 ac_cv_prog_NM=$NM
6928elif test -n "$ac_cv_prog_NM"; then
6929 NM=$ac_cv_prog_NM
6930fi
6931
6932if test -n "$ac_cv_prog_NM"; then
6933 for ncn_progname in nm; do
6934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6935set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6936echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6938if test "${ac_cv_prog_NM+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6940else
6941 if test -n "$NM"; then
6942 ac_cv_prog_NM="$NM" # Let the user override the test.
6943else
c6b750e1
DJ
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6951 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955done
6956done
6957
859789af
AC
6958fi
6959fi
c6b750e1 6960NM=$ac_cv_prog_NM
859789af 6961if test -n "$NM"; then
c6b750e1
DJ
6962 echo "$as_me:$LINENO: result: $NM" >&5
6963echo "${ECHO_T}$NM" >&6
859789af 6964else
c6b750e1
DJ
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
859789af
AC
6967fi
6968
9a819804
AO
6969 done
6970fi
6971
6972for ncn_progname in nm; do
6973 if test -n "$ncn_tool_prefix"; then
6974 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6975set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6976echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6978if test "${ac_cv_prog_NM+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6980else
05cbd757
PB
6981 if test -n "$NM"; then
6982 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6983else
c6b750e1
DJ
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6991 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995done
6996done
6997
859789af
AC
6998fi
6999fi
c6b750e1 7000NM=$ac_cv_prog_NM
05cbd757 7001if test -n "$NM"; then
c6b750e1
DJ
7002 echo "$as_me:$LINENO: result: $NM" >&5
7003echo "${ECHO_T}$NM" >&6
859789af 7004else
c6b750e1
DJ
7005 echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6
859789af 7007fi
c6b750e1 7008
05cbd757 7009 fi
9a819804
AO
7010 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7012set dummy ${ncn_progname}; ac_word=$2
7013echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7015if test "${ac_cv_prog_NM+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 if test -n "$NM"; then
7019 ac_cv_prog_NM="$NM" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028 ac_cv_prog_NM="${ncn_progname}"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032done
7033done
7034
7035fi
7036fi
7037NM=$ac_cv_prog_NM
7038if test -n "$NM"; then
7039 echo "$as_me:$LINENO: result: $NM" >&5
7040echo "${ECHO_T}$NM" >&6
7041else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044fi
7045
7046 fi
7047 test -n "$ac_cv_prog_NM" && break
7048done
7049
7050if test -z "$ac_cv_prog_NM" ; then
7051 set dummy nm
7052 if test $build = $host ; then
7053 NM="$2"
7054 else
7055 NM="${ncn_tool_prefix}$2"
7056 fi
7057fi
7058
7059
7060
7061if test -n "$RANLIB"; then
7062 ac_cv_prog_RANLIB=$RANLIB
7063elif test -n "$ac_cv_prog_RANLIB"; then
7064 RANLIB=$ac_cv_prog_RANLIB
7065fi
7066
7067if test -n "$ac_cv_prog_RANLIB"; then
7068 for ncn_progname in ranlib; do
7069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7070set dummy ${ncn_progname}; ac_word=$2
7071echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7073if test "${ac_cv_prog_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 if test -n "$RANLIB"; then
7077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_RANLIB="${ncn_progname}"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091done
7092
7093fi
7094fi
7095RANLIB=$ac_cv_prog_RANLIB
7096if test -n "$RANLIB"; then
7097 echo "$as_me:$LINENO: result: $RANLIB" >&5
7098echo "${ECHO_T}$RANLIB" >&6
7099else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102fi
7103
7104 done
7105fi
859789af 7106
9a819804 7107for ncn_progname in ranlib; do
05cbd757
PB
7108 if test -n "$ncn_tool_prefix"; then
7109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7110set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7111echo "$as_me:$LINENO: checking for $ac_word" >&5
7112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7113if test "${ac_cv_prog_RANLIB+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7115else
7116 if test -n "$RANLIB"; then
7117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7118else
c6b750e1
DJ
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130done
7131done
7132
859789af
AC
7133fi
7134fi
c6b750e1 7135RANLIB=$ac_cv_prog_RANLIB
859789af 7136if test -n "$RANLIB"; then
c6b750e1
DJ
7137 echo "$as_me:$LINENO: result: $RANLIB" >&5
7138echo "${ECHO_T}$RANLIB" >&6
859789af 7139else
c6b750e1
DJ
7140 echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6
859789af
AC
7142fi
7143
05cbd757
PB
7144 fi
7145 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7147set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7148echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7150if test "${ac_cv_prog_RANLIB+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7152else
05cbd757
PB
7153 if test -n "$RANLIB"; then
7154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7155else
c6b750e1
DJ
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_RANLIB="${ncn_progname}"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
7169
859789af
AC
7170fi
7171fi
c6b750e1 7172RANLIB=$ac_cv_prog_RANLIB
05cbd757 7173if test -n "$RANLIB"; then
c6b750e1
DJ
7174 echo "$as_me:$LINENO: result: $RANLIB" >&5
7175echo "${ECHO_T}$RANLIB" >&6
859789af 7176else
c6b750e1
DJ
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
859789af 7179fi
c6b750e1 7180
859789af 7181 fi
05cbd757
PB
7182 test -n "$ac_cv_prog_RANLIB" && break
7183done
7184
7185if test -z "$ac_cv_prog_RANLIB" ; then
7186 RANLIB=":"
859789af
AC
7187fi
7188
9a819804
AO
7189
7190
7191if test -n "$STRIP"; then
7192 ac_cv_prog_STRIP=$STRIP
7193elif test -n "$ac_cv_prog_STRIP"; then
7194 STRIP=$ac_cv_prog_STRIP
7195fi
7196
7197if test -n "$ac_cv_prog_STRIP"; then
7198 for ncn_progname in strip; do
7199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7200set dummy ${ncn_progname}; ac_word=$2
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203if test "${ac_cv_prog_STRIP+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206 if test -n "$STRIP"; then
7207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_STRIP="${ncn_progname}"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221done
7222
7223fi
7224fi
7225STRIP=$ac_cv_prog_STRIP
7226if test -n "$STRIP"; then
7227 echo "$as_me:$LINENO: result: $STRIP" >&5
7228echo "${ECHO_T}$STRIP" >&6
7229else
7230 echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
7232fi
7233
7234 done
7235fi
7236
7237for ncn_progname in strip; do
be01d343
PB
7238 if test -n "$ncn_tool_prefix"; then
7239 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7240set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7241echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7243if test "${ac_cv_prog_STRIP+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7245else
7246 if test -n "$STRIP"; then
7247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7248else
c6b750e1
DJ
7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262
be01d343
PB
7263fi
7264fi
c6b750e1 7265STRIP=$ac_cv_prog_STRIP
be01d343 7266if test -n "$STRIP"; then
c6b750e1
DJ
7267 echo "$as_me:$LINENO: result: $STRIP" >&5
7268echo "${ECHO_T}$STRIP" >&6
be01d343 7269else
c6b750e1
DJ
7270 echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6
be01d343
PB
7272fi
7273
7274 fi
7275 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7277set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7278echo "$as_me:$LINENO: checking for $ac_word" >&5
7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7280if test "${ac_cv_prog_STRIP+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7282else
7283 if test -n "$STRIP"; then
7284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7285else
c6b750e1
DJ
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_STRIP="${ncn_progname}"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297done
7298done
7299
be01d343
PB
7300fi
7301fi
c6b750e1 7302STRIP=$ac_cv_prog_STRIP
be01d343 7303if test -n "$STRIP"; then
c6b750e1
DJ
7304 echo "$as_me:$LINENO: result: $STRIP" >&5
7305echo "${ECHO_T}$STRIP" >&6
be01d343 7306else
c6b750e1
DJ
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
be01d343 7309fi
c6b750e1 7310
be01d343
PB
7311 fi
7312 test -n "$ac_cv_prog_STRIP" && break
7313done
7314
7315if test -z "$ac_cv_prog_STRIP" ; then
7316 STRIP=":"
7317fi
7318
9a819804
AO
7319
7320
7321if test -n "$WINDRES"; then
7322 ac_cv_prog_WINDRES=$WINDRES
7323elif test -n "$ac_cv_prog_WINDRES"; then
7324 WINDRES=$ac_cv_prog_WINDRES
7325fi
7326
7327if test -n "$ac_cv_prog_WINDRES"; then
7328 for ncn_progname in windres; do
7329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7330set dummy ${ncn_progname}; ac_word=$2
7331echo "$as_me:$LINENO: checking for $ac_word" >&5
7332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333if test "${ac_cv_prog_WINDRES+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336 if test -n "$WINDRES"; then
7337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_WINDRES="${ncn_progname}"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350done
7351done
7352
7353fi
7354fi
7355WINDRES=$ac_cv_prog_WINDRES
7356if test -n "$WINDRES"; then
7357 echo "$as_me:$LINENO: result: $WINDRES" >&5
7358echo "${ECHO_T}$WINDRES" >&6
7359else
7360 echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6
7362fi
7363
7364 done
7365fi
7366
7367for ncn_progname in windres; do
05cbd757
PB
7368 if test -n "$ncn_tool_prefix"; then
7369 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7370set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7371echo "$as_me:$LINENO: checking for $ac_word" >&5
7372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7373if test "${ac_cv_prog_WINDRES+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7375else
7376 if test -n "$WINDRES"; then
7377 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7378else
c6b750e1
DJ
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390done
7391done
7392
859789af
AC
7393fi
7394fi
c6b750e1 7395WINDRES=$ac_cv_prog_WINDRES
859789af 7396if test -n "$WINDRES"; then
c6b750e1
DJ
7397 echo "$as_me:$LINENO: result: $WINDRES" >&5
7398echo "${ECHO_T}$WINDRES" >&6
859789af 7399else
c6b750e1
DJ
7400 echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
859789af
AC
7402fi
7403
05cbd757
PB
7404 fi
7405 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7407set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7408echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410if test "${ac_cv_prog_WINDRES+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7412else
05cbd757
PB
7413 if test -n "$WINDRES"; then
7414 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7415else
c6b750e1
DJ
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_WINDRES="${ncn_progname}"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427done
7428done
7429
859789af
AC
7430fi
7431fi
c6b750e1 7432WINDRES=$ac_cv_prog_WINDRES
05cbd757 7433if test -n "$WINDRES"; then
c6b750e1
DJ
7434 echo "$as_me:$LINENO: result: $WINDRES" >&5
7435echo "${ECHO_T}$WINDRES" >&6
859789af 7436else
c6b750e1
DJ
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
859789af 7439fi
c6b750e1 7440
05cbd757
PB
7441 fi
7442 test -n "$ac_cv_prog_WINDRES" && break
7443done
7444
7445if test -z "$ac_cv_prog_WINDRES" ; then
7446 set dummy windres
7447 if test $build = $host ; then
7448 WINDRES="$2"
859789af 7449 else
05cbd757 7450 WINDRES="${ncn_tool_prefix}$2"
859789af 7451 fi
859789af
AC
7452fi
7453
9a819804
AO
7454
7455
0c24b341
NC
7456if test -n "$WINDMC"; then
7457 ac_cv_prog_WINDMC=$WINDMC
7458elif test -n "$ac_cv_prog_WINDMC"; then
7459 WINDMC=$ac_cv_prog_WINDMC
7460fi
7461
7462if test -n "$ac_cv_prog_WINDMC"; then
7463 for ncn_progname in windmc; do
7464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7465set dummy ${ncn_progname}; ac_word=$2
7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468if test "${ac_cv_prog_WINDMC+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 if test -n "$WINDMC"; then
7472 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_WINDMC="${ncn_progname}"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487
7488fi
7489fi
7490WINDMC=$ac_cv_prog_WINDMC
7491if test -n "$WINDMC"; then
7492 echo "$as_me:$LINENO: result: $WINDMC" >&5
7493echo "${ECHO_T}$WINDMC" >&6
7494else
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
7497fi
7498
7499 done
7500fi
7501
7502for ncn_progname in windmc; do
7503 if test -n "$ncn_tool_prefix"; then
7504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7506echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508if test "${ac_cv_prog_WINDMC+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 if test -n "$WINDMC"; then
7512 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525done
7526done
7527
7528fi
7529fi
7530WINDMC=$ac_cv_prog_WINDMC
7531if test -n "$WINDMC"; then
7532 echo "$as_me:$LINENO: result: $WINDMC" >&5
7533echo "${ECHO_T}$WINDMC" >&6
7534else
7535 echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6
7537fi
7538
7539 fi
7540 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7542set dummy ${ncn_progname}; ac_word=$2
7543echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545if test "${ac_cv_prog_WINDMC+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 if test -n "$WINDMC"; then
7549 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_WINDMC="${ncn_progname}"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
7563done
7564
7565fi
7566fi
7567WINDMC=$ac_cv_prog_WINDMC
7568if test -n "$WINDMC"; then
7569 echo "$as_me:$LINENO: result: $WINDMC" >&5
7570echo "${ECHO_T}$WINDMC" >&6
7571else
7572 echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574fi
7575
7576 fi
7577 test -n "$ac_cv_prog_WINDMC" && break
7578done
7579
7580if test -z "$ac_cv_prog_WINDMC" ; then
7581 set dummy windmc
7582 if test $build = $host ; then
7583 WINDMC="$2"
7584 else
7585 WINDMC="${ncn_tool_prefix}$2"
7586 fi
7587fi
7588
7589
7590
9a819804
AO
7591if test -n "$OBJCOPY"; then
7592 ac_cv_prog_OBJCOPY=$OBJCOPY
7593elif test -n "$ac_cv_prog_OBJCOPY"; then
7594 OBJCOPY=$ac_cv_prog_OBJCOPY
7595fi
7596
7597if test -n "$ac_cv_prog_OBJCOPY"; then
7598 for ncn_progname in objcopy; do
7599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7600set dummy ${ncn_progname}; ac_word=$2
7601echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606 if test -n "$OBJCOPY"; then
7607 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7608else
7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_OBJCOPY="${ncn_progname}"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622
7623fi
7624fi
7625OBJCOPY=$ac_cv_prog_OBJCOPY
7626if test -n "$OBJCOPY"; then
7627 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7628echo "${ECHO_T}$OBJCOPY" >&6
7629else
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
7632fi
7633
7634 done
7635fi
7636
7637for ncn_progname in objcopy; do
05cbd757
PB
7638 if test -n "$ncn_tool_prefix"; then
7639 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7640set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7641echo "$as_me:$LINENO: checking for $ac_word" >&5
7642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7643if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7645else
7646 if test -n "$OBJCOPY"; then
7647 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7648else
c6b750e1
DJ
7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660done
7661done
7662
859789af
AC
7663fi
7664fi
c6b750e1 7665OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7666if test -n "$OBJCOPY"; then
c6b750e1
DJ
7667 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7668echo "${ECHO_T}$OBJCOPY" >&6
859789af 7669else
c6b750e1
DJ
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
859789af
AC
7672fi
7673
05cbd757
PB
7674 fi
7675 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7677set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7678echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7680if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7682else
05cbd757
PB
7683 if test -n "$OBJCOPY"; then
7684 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7685else
c6b750e1
DJ
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_OBJCOPY="${ncn_progname}"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697done
7698done
7699
859789af
AC
7700fi
7701fi
c6b750e1 7702OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7703if test -n "$OBJCOPY"; then
c6b750e1
DJ
7704 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7705echo "${ECHO_T}$OBJCOPY" >&6
859789af 7706else
c6b750e1
DJ
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
859789af 7709fi
c6b750e1 7710
05cbd757
PB
7711 fi
7712 test -n "$ac_cv_prog_OBJCOPY" && break
7713done
7714
7715if test -z "$ac_cv_prog_OBJCOPY" ; then
7716 set dummy objcopy
7717 if test $build = $host ; then
7718 OBJCOPY="$2"
859789af 7719 else
05cbd757 7720 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7721 fi
859789af
AC
7722fi
7723
9a819804
AO
7724
7725
7726if test -n "$OBJDUMP"; then
7727 ac_cv_prog_OBJDUMP=$OBJDUMP
7728elif test -n "$ac_cv_prog_OBJDUMP"; then
7729 OBJDUMP=$ac_cv_prog_OBJDUMP
7730fi
7731
7732if test -n "$ac_cv_prog_OBJDUMP"; then
7733 for ncn_progname in objdump; do
7734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7735set dummy ${ncn_progname}; ac_word=$2
7736echo "$as_me:$LINENO: checking for $ac_word" >&5
7737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7738if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741 if test -n "$OBJDUMP"; then
7742 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_OBJDUMP="${ncn_progname}"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757
7758fi
7759fi
7760OBJDUMP=$ac_cv_prog_OBJDUMP
7761if test -n "$OBJDUMP"; then
7762 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7763echo "${ECHO_T}$OBJDUMP" >&6
7764else
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
7767fi
7768
7769 done
7770fi
7771
7772for ncn_progname in objdump; do
05cbd757
PB
7773 if test -n "$ncn_tool_prefix"; then
7774 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7775set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7776echo "$as_me:$LINENO: checking for $ac_word" >&5
7777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7778if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7780else
7781 if test -n "$OBJDUMP"; then
7782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7783else
c6b750e1
DJ
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796done
7797
859789af
AC
7798fi
7799fi
c6b750e1 7800OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7801if test -n "$OBJDUMP"; then
c6b750e1
DJ
7802 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7803echo "${ECHO_T}$OBJDUMP" >&6
859789af 7804else
c6b750e1
DJ
7805 echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6
859789af
AC
7807fi
7808
05cbd757
PB
7809 fi
7810 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7812set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7813echo "$as_me:$LINENO: checking for $ac_word" >&5
7814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7817else
05cbd757
PB
7818 if test -n "$OBJDUMP"; then
7819 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7820else
c6b750e1
DJ
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_OBJDUMP="${ncn_progname}"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832done
7833done
7834
859789af
AC
7835fi
7836fi
c6b750e1 7837OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7838if test -n "$OBJDUMP"; then
c6b750e1
DJ
7839 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7840echo "${ECHO_T}$OBJDUMP" >&6
859789af 7841else
c6b750e1
DJ
7842 echo "$as_me:$LINENO: result: no" >&5
7843echo "${ECHO_T}no" >&6
859789af 7844fi
c6b750e1 7845
05cbd757
PB
7846 fi
7847 test -n "$ac_cv_prog_OBJDUMP" && break
7848done
7849
7850if test -z "$ac_cv_prog_OBJDUMP" ; then
7851 set dummy objdump
7852 if test $build = $host ; then
7853 OBJDUMP="$2"
859789af 7854 else
05cbd757 7855 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7856 fi
859789af
AC
7857fi
7858
a0da8069
NN
7859
7860
7861
7862
7863
7864
be01d343 7865# Target tools.
c6b750e1 7866
2429c060
PB
7867# Check whether --with-build-time-tools or --without-build-time-tools was given.
7868if test "${with_build_time_tools+set}" = set; then
7869 withval="$with_build_time_tools"
7870 case x"$withval" in
7871 x/*) ;;
7872 *)
7873 with_build_time_tools=
c6b750e1
DJ
7874 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7875echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7876 ;;
7877 esac
859789af 7878else
2429c060 7879 with_build_time_tools=
c6b750e1 7880fi;
859789af 7881
9a819804
AO
7882
7883
7884if test -n "$CC_FOR_TARGET"; then
7885 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7886elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7887 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7888fi
7889
7890if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7891 for ncn_progname in cc gcc; do
7892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7893set dummy ${ncn_progname}; ac_word=$2
7894echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898else
7899 if test -n "$CC_FOR_TARGET"; then
7900 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914done
7915
7916fi
7917fi
7918CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7919if test -n "$CC_FOR_TARGET"; then
7920 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7921echo "${ECHO_T}$CC_FOR_TARGET" >&6
7922else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925fi
7926
7927 done
7928fi
7929
7930if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7931 for ncn_progname in cc gcc; do
c6b750e1
DJ
7932 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7933echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7934 if test -x $with_build_time_tools/${ncn_progname}; then
7935 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7936 echo "$as_me:$LINENO: result: yes" >&5
7937echo "${ECHO_T}yes" >&6
cac3d6c4 7938 break
2429c060 7939 else
c6b750e1
DJ
7940 echo "$as_me:$LINENO: result: no" >&5
7941echo "${ECHO_T}no" >&6
cac3d6c4
CM
7942 fi
7943 done
55db4b87
PB
7944fi
7945
2429c060
PB
7946if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7947 for ncn_progname in cc gcc; do
7948 if test -n "$ncn_target_tool_prefix"; then
7949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7950set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7951echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7953if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7955else
7956 if test -n "$CC_FOR_TARGET"; then
7957 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7958else
c6b750e1
DJ
7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
7961do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970done
7971done
7972
55db4b87
PB
7973fi
7974fi
c6b750e1 7975CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7976if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7977 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7978echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7979else
c6b750e1
DJ
7980 echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
55db4b87
PB
7982fi
7983
2429c060
PB
7984 fi
7985 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7987set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7988echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7990if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7992else
05cbd757
PB
7993 if test -n "$CC_FOR_TARGET"; then
7994 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7995else
c6b750e1
DJ
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007done
8008done
8009
55db4b87
PB
8010fi
8011fi
c6b750e1 8012CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8013if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8014 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8015echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8016else
c6b750e1
DJ
8017 echo "$as_me:$LINENO: result: no" >&5
8018echo "${ECHO_T}no" >&6
55db4b87 8019fi
c6b750e1 8020
2429c060
PB
8021 fi
8022 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8023 done
8024fi
c6b750e1 8025
05cbd757
PB
8026if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8027 set dummy cc gcc
8028 if test $build = $target ; then
8029 CC_FOR_TARGET="$2"
55db4b87 8030 else
05cbd757 8031 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8032 fi
d3f5afc4
MS
8033else
8034 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8035fi
8036
9a819804
AO
8037
8038
8039if test -n "$CXX_FOR_TARGET"; then
8040 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8041elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8042 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8043fi
8044
8045if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8046 for ncn_progname in c++ g++ cxx gxx; do
8047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8048set dummy ${ncn_progname}; ac_word=$2
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8051if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 if test -n "$CXX_FOR_TARGET"; then
8055 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8056else
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
8071fi
8072fi
8073CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8074if test -n "$CXX_FOR_TARGET"; then
8075 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8076echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8077else
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
8080fi
8081
8082 done
8083fi
8084
8085if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8086 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8087 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8088echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8089 if test -x $with_build_time_tools/${ncn_progname}; then
8090 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8091 echo "$as_me:$LINENO: result: yes" >&5
8092echo "${ECHO_T}yes" >&6
2429c060
PB
8093 break
8094 else
c6b750e1
DJ
8095 echo "$as_me:$LINENO: result: no" >&5
8096echo "${ECHO_T}no" >&6
2429c060
PB
8097 fi
8098 done
8099fi
8100
8101if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8102 for ncn_progname in c++ g++ cxx gxx; do
8103 if test -n "$ncn_target_tool_prefix"; then
8104 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8105set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8106echo "$as_me:$LINENO: checking for $ac_word" >&5
8107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8108if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8110else
8111 if test -n "$CXX_FOR_TARGET"; then
8112 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8113else
c6b750e1
DJ
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125done
8126done
8127
55db4b87
PB
8128fi
8129fi
c6b750e1 8130CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8131if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8132 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8133echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8134else
c6b750e1
DJ
8135 echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
55db4b87
PB
8137fi
8138
2429c060
PB
8139 fi
8140 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8142set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8143echo "$as_me:$LINENO: checking for $ac_word" >&5
8144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8145if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8147else
05cbd757
PB
8148 if test -n "$CXX_FOR_TARGET"; then
8149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8150else
c6b750e1
DJ
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162done
8163done
8164
55db4b87
PB
8165fi
8166fi
c6b750e1 8167CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8168if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8169 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8170echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8171else
c6b750e1
DJ
8172 echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6
55db4b87 8174fi
c6b750e1 8175
2429c060
PB
8176 fi
8177 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8178 done
8179fi
c6b750e1 8180
05cbd757
PB
8181if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8182 set dummy c++ g++ cxx gxx
8183 if test $build = $target ; then
8184 CXX_FOR_TARGET="$2"
55db4b87 8185 else
05cbd757 8186 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8187 fi
d3f5afc4
MS
8188else
8189 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8190fi
8191
9a819804
AO
8192
8193
8194if test -n "$GCC_FOR_TARGET"; then
8195 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8196elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8197 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8198fi
8199
8200if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8201 for ncn_progname in gcc; do
8202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8203set dummy ${ncn_progname}; ac_word=$2
8204echo "$as_me:$LINENO: checking for $ac_word" >&5
8205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8206if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 if test -n "$GCC_FOR_TARGET"; then
8210 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8211else
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224done
8225
8226fi
8227fi
8228GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8229if test -n "$GCC_FOR_TARGET"; then
8230 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8231echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8232else
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
8235fi
8236
8237 done
8238fi
8239
8240if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8241 for ncn_progname in gcc; do
c6b750e1
DJ
8242 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8243echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8244 if test -x $with_build_time_tools/${ncn_progname}; then
8245 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8246 echo "$as_me:$LINENO: result: yes" >&5
8247echo "${ECHO_T}yes" >&6
2429c060
PB
8248 break
8249 else
c6b750e1
DJ
8250 echo "$as_me:$LINENO: result: no" >&5
8251echo "${ECHO_T}no" >&6
2429c060
PB
8252 fi
8253 done
8254fi
8255
8256if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8257 for ncn_progname in gcc; do
8258 if test -n "$ncn_target_tool_prefix"; then
8259 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8260set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8261echo "$as_me:$LINENO: checking for $ac_word" >&5
8262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8263if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8265else
2429c060
PB
8266 if test -n "$GCC_FOR_TARGET"; then
8267 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8268else
c6b750e1
DJ
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280done
8281done
8282
55db4b87
PB
8283fi
8284fi
c6b750e1 8285GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8286if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8287 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8288echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8289else
c6b750e1
DJ
8290 echo "$as_me:$LINENO: result: no" >&5
8291echo "${ECHO_T}no" >&6
55db4b87
PB
8292fi
8293
2429c060
PB
8294 fi
8295 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8297set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8298echo "$as_me:$LINENO: checking for $ac_word" >&5
8299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8300if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8302else
05cbd757
PB
8303 if test -n "$GCC_FOR_TARGET"; then
8304 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8305else
c6b750e1
DJ
8306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317done
8318done
8319
55db4b87
PB
8320fi
8321fi
c6b750e1 8322GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8323if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8324 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8325echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8326else
c6b750e1
DJ
8327 echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6
55db4b87 8329fi
c6b750e1 8330
2429c060
PB
8331 fi
8332 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8333 done
8334fi
c6b750e1 8335
05cbd757
PB
8336if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8337 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8338else
8339 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8340fi
8341
9a819804
AO
8342
8343
8344if test -n "$GCJ_FOR_TARGET"; then
8345 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8346elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8347 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8348fi
8349
8350if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8351 for ncn_progname in gcj; do
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353set dummy ${ncn_progname}; ac_word=$2
8354echo "$as_me:$LINENO: checking for $ac_word" >&5
8355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8356if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359 if test -n "$GCJ_FOR_TARGET"; then
8360 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373done
8374done
8375
8376fi
8377fi
8378GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8379if test -n "$GCJ_FOR_TARGET"; then
8380 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8381echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8382else
8383 echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6
8385fi
8386
8387 done
8388fi
8389
8390if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8391 for ncn_progname in gcj; do
c6b750e1
DJ
8392 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8393echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8394 if test -x $with_build_time_tools/${ncn_progname}; then
8395 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
2429c060
PB
8398 break
8399 else
c6b750e1
DJ
8400 echo "$as_me:$LINENO: result: no" >&5
8401echo "${ECHO_T}no" >&6
2429c060
PB
8402 fi
8403 done
8404fi
8405
8406if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8407 for ncn_progname in gcj; do
8408 if test -n "$ncn_target_tool_prefix"; then
8409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8411echo "$as_me:$LINENO: checking for $ac_word" >&5
8412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8413if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8415else
8416 if test -n "$GCJ_FOR_TARGET"; then
8417 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8418else
c6b750e1
DJ
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430done
8431done
8432
55db4b87
PB
8433fi
8434fi
9a819804
AO
8435GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8436if test -n "$GCJ_FOR_TARGET"; then
8437 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8438echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8439else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442fi
8443
8444 fi
8445 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8447set dummy ${ncn_progname}; ac_word=$2
8448echo "$as_me:$LINENO: checking for $ac_word" >&5
8449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8450if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453 if test -n "$GCJ_FOR_TARGET"; then
8454 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8455else
8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457for as_dir in $PATH
8458do
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467done
8468done
8469
8470fi
8471fi
8472GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8473if test -n "$GCJ_FOR_TARGET"; then
8474 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8475echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8476else
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
8479fi
8480
8481 fi
8482 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8483 done
8484fi
8485
8486if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8487 set dummy gcj
8488 if test $build = $target ; then
8489 GCJ_FOR_TARGET="$2"
8490 else
8491 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8492 fi
d3f5afc4
MS
8493else
8494 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8495fi
8496
8497
8498
8499if test -n "$GFORTRAN_FOR_TARGET"; then
8500 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8501elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8502 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8503fi
8504
9a819804
AO
8505if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8506 for ncn_progname in gfortran; do
8507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8508set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8509echo "$as_me:$LINENO: checking for $ac_word" >&5
8510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8511if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8512 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8513else
9a819804
AO
8514 if test -n "$GFORTRAN_FOR_TARGET"; then
8515 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8516else
c6b750e1
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8524 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529done
8530
55db4b87
PB
8531fi
8532fi
9a819804
AO
8533GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8534if test -n "$GFORTRAN_FOR_TARGET"; then
8535 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8536echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8537else
c6b750e1
DJ
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
55db4b87 8540fi
c6b750e1 8541
2429c060
PB
8542 done
8543fi
c6b750e1 8544
9a819804 8545if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8546 for ncn_progname in gfortran; do
c6b750e1
DJ
8547 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8548echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8549 if test -x $with_build_time_tools/${ncn_progname}; then
8550 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8551 echo "$as_me:$LINENO: result: yes" >&5
8552echo "${ECHO_T}yes" >&6
2429c060
PB
8553 break
8554 else
c6b750e1
DJ
8555 echo "$as_me:$LINENO: result: no" >&5
8556echo "${ECHO_T}no" >&6
2429c060
PB
8557 fi
8558 done
8559fi
8560
8561if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8562 for ncn_progname in gfortran; do
8563 if test -n "$ncn_target_tool_prefix"; then
8564 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8565set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8566echo "$as_me:$LINENO: checking for $ac_word" >&5
8567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8568if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8570else
8571 if test -n "$GFORTRAN_FOR_TARGET"; then
8572 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8573else
c6b750e1
DJ
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585done
8586done
8587
55db4b87
PB
8588fi
8589fi
c6b750e1 8590GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8591if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8592 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8593echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8594else
c6b750e1
DJ
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
55db4b87
PB
8597fi
8598
2429c060
PB
8599 fi
8600 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8602set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8603echo "$as_me:$LINENO: checking for $ac_word" >&5
8604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8605if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8607else
05cbd757 8608 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8609 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622done
8623done
8624
55db4b87
PB
8625fi
8626fi
c6b750e1 8627GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8628if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8629 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8630echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8631else
c6b750e1
DJ
8632 echo "$as_me:$LINENO: result: no" >&5
8633echo "${ECHO_T}no" >&6
55db4b87 8634fi
c6b750e1 8635
2429c060
PB
8636 fi
8637 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8638 done
8639fi
c6b750e1 8640
05cbd757
PB
8641if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8642 set dummy gfortran
8643 if test $build = $target ; then
8644 GFORTRAN_FOR_TARGET="$2"
55db4b87 8645 else
05cbd757 8646 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8647 fi
d3f5afc4
MS
8648else
8649 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8650fi
8651
2429c060
PB
8652
8653
2429c060
PB
8654cat > conftest.c << \EOF
8655#ifdef __GNUC__
8656 gcc_yay;
8657#endif
8658EOF
8659if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8660 have_gcc_for_target=yes
859789af 8661else
2429c060
PB
8662 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8663 have_gcc_for_target=no
859789af 8664fi
2429c060
PB
8665rm conftest.c
8666
8667
8668
859789af 8669
2429c060
PB
8670if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8671 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8672 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8673echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8674 if test -x $with_build_time_tools/ar; then
8675 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8676 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8677 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8678echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8679 else
c6b750e1
DJ
8680 echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
3a35eeb3 8682 fi
2429c060
PB
8683 elif test $build != $host && test $have_gcc_for_target = yes; then
8684 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8685 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8686 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8687 fi
2429c060 8688fi
c6b750e1 8689if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8690 # Extract the first word of "ar", so it can be a program name with args.
8691set dummy ar; ac_word=$2
c6b750e1
DJ
8692echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8696else
c6b750e1
DJ
8697 case $AR_FOR_TARGET in
8698 [\\/]* | ?:[\\/]*)
2429c060
PB
8699 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8700 ;;
2429c060 8701 *)
c6b750e1
DJ
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $gcc_cv_tool_dirs
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713done
8714done
8715
2429c060
PB
8716 ;;
8717esac
859789af 8718fi
c6b750e1
DJ
8719AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8720
2429c060 8721if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8722 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8723echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8724else
c6b750e1
DJ
8725 echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6
859789af 8727fi
05cbd757 8728
2429c060
PB
8729fi
8730if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8731
8732
8733if test -n "$AR_FOR_TARGET"; then
8734 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8735elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8736 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8737fi
8738
8739if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8740 for ncn_progname in ar; do
8741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8742set dummy ${ncn_progname}; ac_word=$2
8743echo "$as_me:$LINENO: checking for $ac_word" >&5
8744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8745if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748 if test -n "$AR_FOR_TARGET"; then
8749 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8750else
8751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762done
8763done
8764
8765fi
8766fi
8767AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8768if test -n "$AR_FOR_TARGET"; then
8769 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8770echo "${ECHO_T}$AR_FOR_TARGET" >&6
8771else
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
8774fi
8775
8776 done
8777fi
8778
8779if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8780 for ncn_progname in ar; do
c6b750e1
DJ
8781 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8782echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8783 if test -x $with_build_time_tools/${ncn_progname}; then
8784 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8785 echo "$as_me:$LINENO: result: yes" >&5
8786echo "${ECHO_T}yes" >&6
2429c060
PB
8787 break
8788 else
c6b750e1
DJ
8789 echo "$as_me:$LINENO: result: no" >&5
8790echo "${ECHO_T}no" >&6
2429c060
PB
8791 fi
8792 done
859789af
AC
8793fi
8794
2429c060
PB
8795if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8796 for ncn_progname in ar; do
8797 if test -n "$ncn_target_tool_prefix"; then
8798 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8799set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8800echo "$as_me:$LINENO: checking for $ac_word" >&5
8801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8802if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8804else
2429c060
PB
8805 if test -n "$AR_FOR_TARGET"; then
8806 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8807else
c6b750e1
DJ
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8818 fi
8819done
8820done
8821
7e0f7140
GK
8822fi
8823fi
c6b750e1 8824AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8825if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8826 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8827echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8828else
c6b750e1
DJ
8829 echo "$as_me:$LINENO: result: no" >&5
8830echo "${ECHO_T}no" >&6
7e0f7140
GK
8831fi
8832
2429c060
PB
8833 fi
8834 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8836set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8837echo "$as_me:$LINENO: checking for $ac_word" >&5
8838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8839if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8841else
2429c060
PB
8842 if test -n "$AR_FOR_TARGET"; then
8843 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8844else
c6b750e1
DJ
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856done
8857done
8858
7e0f7140
GK
8859fi
8860fi
c6b750e1 8861AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8862if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8863 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8864echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8865else
c6b750e1
DJ
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
7e0f7140 8868fi
c6b750e1 8869
2429c060
PB
8870 fi
8871 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8872 done
8873fi
c6b750e1 8874
2429c060
PB
8875if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8876 set dummy ar
7e0f7140 8877 if test $build = $target ; then
2429c060 8878 AR_FOR_TARGET="$2"
7e0f7140 8879 else
2429c060 8880 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8881 fi
d3f5afc4
MS
8882else
8883 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8884fi
8885
3a35eeb3
PB
8886else
8887 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8888fi
8889
8890
8891
8892
8893if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8894 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8895 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8896echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8897 if test -x $with_build_time_tools/as; then
8898 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8899 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8900 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8901echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8902 else
c6b750e1
DJ
8903 echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
3a35eeb3 8905 fi
2429c060
PB
8906 elif test $build != $host && test $have_gcc_for_target = yes; then
8907 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8908 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8909 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8910 fi
8911fi
c6b750e1 8912if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8913 # Extract the first word of "as", so it can be a program name with args.
8914set dummy as; ac_word=$2
c6b750e1
DJ
8915echo "$as_me:$LINENO: checking for $ac_word" >&5
8916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8917if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8919else
c6b750e1
DJ
8920 case $AS_FOR_TARGET in
8921 [\\/]* | ?:[\\/]*)
2429c060
PB
8922 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8923 ;;
2429c060 8924 *)
c6b750e1
DJ
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $gcc_cv_tool_dirs
8927do
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8935 fi
8936done
8937done
8938
2429c060
PB
8939 ;;
8940esac
8941fi
c6b750e1
DJ
8942AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8943
2429c060 8944if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8945 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8946echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8947else
c6b750e1
DJ
8948 echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
2429c060
PB
8950fi
8951
8952fi
8953if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
8954
8955
8956if test -n "$AS_FOR_TARGET"; then
8957 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8958elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8959 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8960fi
8961
8962if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8963 for ncn_progname in as; do
8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965set dummy ${ncn_progname}; ac_word=$2
8966echo "$as_me:$LINENO: checking for $ac_word" >&5
8967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8968if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970else
8971 if test -n "$AS_FOR_TARGET"; then
8972 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8973else
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985done
8986done
8987
8988fi
8989fi
8990AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8991if test -n "$AS_FOR_TARGET"; then
8992 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8993echo "${ECHO_T}$AS_FOR_TARGET" >&6
8994else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997fi
8998
8999 done
9000fi
9001
9002if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9003 for ncn_progname in as; do
c6b750e1
DJ
9004 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9005echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9006 if test -x $with_build_time_tools/${ncn_progname}; then
9007 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9008 echo "$as_me:$LINENO: result: yes" >&5
9009echo "${ECHO_T}yes" >&6
2429c060
PB
9010 break
9011 else
c6b750e1
DJ
9012 echo "$as_me:$LINENO: result: no" >&5
9013echo "${ECHO_T}no" >&6
2429c060
PB
9014 fi
9015 done
9016fi
9017
9018if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9019 for ncn_progname in as; do
9020 if test -n "$ncn_target_tool_prefix"; then
9021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9022set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9023echo "$as_me:$LINENO: checking for $ac_word" >&5
9024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9025if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9027else
9028 if test -n "$AS_FOR_TARGET"; then
9029 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9030else
c6b750e1
DJ
9031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in $PATH
9033do
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042done
9043done
9044
2429c060
PB
9045fi
9046fi
c6b750e1 9047AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9048if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9049 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9050echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9051else
c6b750e1
DJ
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
2429c060
PB
9054fi
9055
9056 fi
9057 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9059set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9060echo "$as_me:$LINENO: checking for $ac_word" >&5
9061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9062if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9064else
9065 if test -n "$AS_FOR_TARGET"; then
9066 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9067else
c6b750e1
DJ
9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9075 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9078 fi
9079done
9080done
9081
2429c060
PB
9082fi
9083fi
c6b750e1 9084AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9085if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9086 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9087echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9088else
c6b750e1
DJ
9089 echo "$as_me:$LINENO: result: no" >&5
9090echo "${ECHO_T}no" >&6
2429c060 9091fi
c6b750e1 9092
2429c060
PB
9093 fi
9094 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9095 done
9096fi
c6b750e1 9097
2429c060
PB
9098if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9099 set dummy as
9100 if test $build = $target ; then
9101 AS_FOR_TARGET="$2"
9102 else
9103 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9104 fi
d3f5afc4
MS
9105else
9106 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9107fi
9108
3a35eeb3
PB
9109else
9110 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9111fi
9112
9113
9114
9115
9116if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9117 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9118 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9119echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9120 if test -x $with_build_time_tools/dlltool; then
9121 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9122 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9123 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9124echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9125 else
c6b750e1
DJ
9126 echo "$as_me:$LINENO: result: no" >&5
9127echo "${ECHO_T}no" >&6
3a35eeb3 9128 fi
2429c060
PB
9129 elif test $build != $host && test $have_gcc_for_target = yes; then
9130 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9131 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9132 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9133 fi
9134fi
c6b750e1 9135if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9136 # Extract the first word of "dlltool", so it can be a program name with args.
9137set dummy dlltool; ac_word=$2
c6b750e1
DJ
9138echo "$as_me:$LINENO: checking for $ac_word" >&5
9139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9140if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9142else
c6b750e1
DJ
9143 case $DLLTOOL_FOR_TARGET in
9144 [\\/]* | ?:[\\/]*)
2429c060
PB
9145 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9146 ;;
2429c060 9147 *)
c6b750e1
DJ
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149for as_dir in $gcc_cv_tool_dirs
9150do
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9155 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9158 fi
9159done
9160done
9161
2429c060
PB
9162 ;;
9163esac
9164fi
c6b750e1
DJ
9165DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9166
2429c060 9167if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9168 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9169echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9170else
c6b750e1
DJ
9171 echo "$as_me:$LINENO: result: no" >&5
9172echo "${ECHO_T}no" >&6
2429c060
PB
9173fi
9174
9175fi
9176if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9177
9178
9179if test -n "$DLLTOOL_FOR_TARGET"; then
9180 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9181elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9182 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9183fi
9184
9185if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9186 for ncn_progname in dlltool; do
9187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9188set dummy ${ncn_progname}; ac_word=$2
9189echo "$as_me:$LINENO: checking for $ac_word" >&5
9190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9191if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193else
9194 if test -n "$DLLTOOL_FOR_TARGET"; then
9195 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9196else
9197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198for as_dir in $PATH
9199do
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9204 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9207 fi
9208done
9209done
9210
9211fi
9212fi
9213DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9214if test -n "$DLLTOOL_FOR_TARGET"; then
9215 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9216echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9217else
9218 echo "$as_me:$LINENO: result: no" >&5
9219echo "${ECHO_T}no" >&6
9220fi
9221
9222 done
9223fi
9224
9225if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9226 for ncn_progname in dlltool; do
c6b750e1
DJ
9227 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9228echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9229 if test -x $with_build_time_tools/${ncn_progname}; then
9230 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9231 echo "$as_me:$LINENO: result: yes" >&5
9232echo "${ECHO_T}yes" >&6
2429c060
PB
9233 break
9234 else
c6b750e1
DJ
9235 echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
2429c060
PB
9237 fi
9238 done
9239fi
9240
9241if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9242 for ncn_progname in dlltool; do
9243 if test -n "$ncn_target_tool_prefix"; then
9244 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9245set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9246echo "$as_me:$LINENO: checking for $ac_word" >&5
9247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9248if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9250else
9251 if test -n "$DLLTOOL_FOR_TARGET"; then
9252 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9253else
c6b750e1
DJ
9254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255for as_dir in $PATH
9256do
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9261 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 break 2
9264 fi
9265done
9266done
9267
2429c060
PB
9268fi
9269fi
c6b750e1 9270DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9271if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9272 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9273echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9274else
c6b750e1
DJ
9275 echo "$as_me:$LINENO: result: no" >&5
9276echo "${ECHO_T}no" >&6
2429c060
PB
9277fi
9278
9279 fi
9280 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9282set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9283echo "$as_me:$LINENO: checking for $ac_word" >&5
9284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9285if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9287else
9288 if test -n "$DLLTOOL_FOR_TARGET"; then
9289 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9290else
c6b750e1
DJ
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9301 fi
9302done
9303done
9304
2429c060
PB
9305fi
9306fi
c6b750e1 9307DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9308if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9309 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9310echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9311else
c6b750e1
DJ
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
2429c060 9314fi
c6b750e1 9315
2429c060
PB
9316 fi
9317 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9318 done
9319fi
c6b750e1 9320
2429c060
PB
9321if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9322 set dummy dlltool
9323 if test $build = $target ; then
9324 DLLTOOL_FOR_TARGET="$2"
9325 else
9326 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9327 fi
d3f5afc4
MS
9328else
9329 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9330fi
9331
3a35eeb3
PB
9332else
9333 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9334fi
9335
9336
9337
9338
9339if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9340 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9341 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9342echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9343 if test -x $with_build_time_tools/ld; then
9344 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9345 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9346 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9347echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9348 else
c6b750e1
DJ
9349 echo "$as_me:$LINENO: result: no" >&5
9350echo "${ECHO_T}no" >&6
3a35eeb3 9351 fi
2429c060
PB
9352 elif test $build != $host && test $have_gcc_for_target = yes; then
9353 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9354 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9355 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9356 fi
9357fi
c6b750e1 9358if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9359 # Extract the first word of "ld", so it can be a program name with args.
9360set dummy ld; ac_word=$2
c6b750e1
DJ
9361echo "$as_me:$LINENO: checking for $ac_word" >&5
9362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9363if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9365else
c6b750e1
DJ
9366 case $LD_FOR_TARGET in
9367 [\\/]* | ?:[\\/]*)
2429c060
PB
9368 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9369 ;;
2429c060 9370 *)
c6b750e1
DJ
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372for as_dir in $gcc_cv_tool_dirs
9373do
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9378 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9381 fi
9382done
9383done
9384
2429c060
PB
9385 ;;
9386esac
9387fi
c6b750e1
DJ
9388LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9389
2429c060 9390if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9391 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9392echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9393else
c6b750e1
DJ
9394 echo "$as_me:$LINENO: result: no" >&5
9395echo "${ECHO_T}no" >&6
2429c060
PB
9396fi
9397
9398fi
9399if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9400
9401
9402if test -n "$LD_FOR_TARGET"; then
9403 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9404elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9405 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9406fi
9407
9408if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9409 for ncn_progname in ld; do
9410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9411set dummy ${ncn_progname}; ac_word=$2
9412echo "$as_me:$LINENO: checking for $ac_word" >&5
9413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9414if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417 if test -n "$LD_FOR_TARGET"; then
9418 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9419else
9420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421for as_dir in $PATH
9422do
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9430 fi
9431done
9432done
9433
9434fi
9435fi
9436LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9437if test -n "$LD_FOR_TARGET"; then
9438 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9439echo "${ECHO_T}$LD_FOR_TARGET" >&6
9440else
9441 echo "$as_me:$LINENO: result: no" >&5
9442echo "${ECHO_T}no" >&6
9443fi
9444
9445 done
9446fi
9447
9448if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9449 for ncn_progname in ld; do
c6b750e1
DJ
9450 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9451echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9452 if test -x $with_build_time_tools/${ncn_progname}; then
9453 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9454 echo "$as_me:$LINENO: result: yes" >&5
9455echo "${ECHO_T}yes" >&6
2429c060
PB
9456 break
9457 else
c6b750e1
DJ
9458 echo "$as_me:$LINENO: result: no" >&5
9459echo "${ECHO_T}no" >&6
2429c060
PB
9460 fi
9461 done
9462fi
9463
9464if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9465 for ncn_progname in ld; do
9466 if test -n "$ncn_target_tool_prefix"; then
9467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9469echo "$as_me:$LINENO: checking for $ac_word" >&5
9470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9471if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9473else
9474 if test -n "$LD_FOR_TARGET"; then
9475 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9476else
c6b750e1
DJ
9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9484 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9487 fi
9488done
9489done
9490
2429c060
PB
9491fi
9492fi
c6b750e1 9493LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9494if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9495 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9496echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9497else
c6b750e1
DJ
9498 echo "$as_me:$LINENO: result: no" >&5
9499echo "${ECHO_T}no" >&6
2429c060
PB
9500fi
9501
9502 fi
9503 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9505set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9506echo "$as_me:$LINENO: checking for $ac_word" >&5
9507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9508if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9510else
9511 if test -n "$LD_FOR_TARGET"; then
9512 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9513else
c6b750e1
DJ
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9524 fi
9525done
9526done
9527
2429c060
PB
9528fi
9529fi
c6b750e1 9530LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9531if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9532 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9533echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9534else
c6b750e1
DJ
9535 echo "$as_me:$LINENO: result: no" >&5
9536echo "${ECHO_T}no" >&6
2429c060 9537fi
c6b750e1 9538
2429c060
PB
9539 fi
9540 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9541 done
9542fi
c6b750e1 9543
2429c060
PB
9544if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9545 set dummy ld
9546 if test $build = $target ; then
9547 LD_FOR_TARGET="$2"
9548 else
9549 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9550 fi
d3f5afc4
MS
9551else
9552 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9553fi
9554
3a35eeb3
PB
9555else
9556 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9557fi
9558
9559
9560
9561
9562if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9563 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9564 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9565echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9566 if test -x $with_build_time_tools/lipo; then
9567 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9568 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9569 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9570echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9571 else
c6b750e1
DJ
9572 echo "$as_me:$LINENO: result: no" >&5
9573echo "${ECHO_T}no" >&6
3a35eeb3 9574 fi
2429c060
PB
9575 elif test $build != $host && test $have_gcc_for_target = yes; then
9576 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9577 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9578 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9579 fi
9580fi
9a819804
AO
9581if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9582 # Extract the first word of "lipo", so it can be a program name with args.
9583set dummy lipo; ac_word=$2
9584echo "$as_me:$LINENO: checking for $ac_word" >&5
9585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9586if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588else
9589 case $LIPO_FOR_TARGET in
9590 [\\/]* | ?:[\\/]*)
9591 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9592 ;;
9593 *)
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $gcc_cv_tool_dirs
9596do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9601 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9604 fi
9605done
9606done
9607
9608 ;;
9609esac
9610fi
9611LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9612
9613if test -n "$LIPO_FOR_TARGET"; then
9614 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9615echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9616else
9617 echo "$as_me:$LINENO: result: no" >&5
9618echo "${ECHO_T}no" >&6
9619fi
9620
9621fi
9622if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9623
9624
9625if test -n "$LIPO_FOR_TARGET"; then
9626 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9627elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9628 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9629fi
9630
9631if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9632 for ncn_progname in lipo; do
9633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9634set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9635echo "$as_me:$LINENO: checking for $ac_word" >&5
9636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9637if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9638 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9639else
9a819804
AO
9640 if test -n "$LIPO_FOR_TARGET"; then
9641 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
c6b750e1
DJ
9645do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9650 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9653 fi
9654done
9655done
9656
2429c060 9657fi
9a819804
AO
9658fi
9659LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9660if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9661 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9662echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9663else
c6b750e1
DJ
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
2429c060
PB
9666fi
9667
9a819804 9668 done
2429c060 9669fi
9a819804
AO
9670
9671if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9672 for ncn_progname in lipo; do
c6b750e1
DJ
9673 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9674echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9675 if test -x $with_build_time_tools/${ncn_progname}; then
9676 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9677 echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6
2429c060
PB
9679 break
9680 else
c6b750e1
DJ
9681 echo "$as_me:$LINENO: result: no" >&5
9682echo "${ECHO_T}no" >&6
2429c060
PB
9683 fi
9684 done
9685fi
9686
9687if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9688 for ncn_progname in lipo; do
9689 if test -n "$ncn_target_tool_prefix"; then
9690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9691set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9692echo "$as_me:$LINENO: checking for $ac_word" >&5
9693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9694if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9696else
9697 if test -n "$LIPO_FOR_TARGET"; then
9698 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9699else
c6b750e1
DJ
9700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9707 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9710 fi
9711done
9712done
9713
2429c060
PB
9714fi
9715fi
c6b750e1 9716LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9717if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9718 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9719echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9720else
c6b750e1
DJ
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
2429c060
PB
9723fi
9724
9725 fi
9726 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9728set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9729echo "$as_me:$LINENO: checking for $ac_word" >&5
9730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9731if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9733else
9734 if test -n "$LIPO_FOR_TARGET"; then
9735 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9736else
c6b750e1
DJ
9737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9747 fi
9748done
9749done
9750
2429c060
PB
9751fi
9752fi
c6b750e1 9753LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9754if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9755 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9756echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9757else
c6b750e1
DJ
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
2429c060 9760fi
c6b750e1 9761
2429c060
PB
9762 fi
9763 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9764 done
9765fi
c6b750e1 9766
2429c060
PB
9767if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9768 set dummy lipo
9769 if test $build = $target ; then
9770 LIPO_FOR_TARGET="$2"
9771 else
9772 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9773 fi
d3f5afc4
MS
9774else
9775 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9776fi
9777
3a35eeb3
PB
9778else
9779 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9780fi
9781
9782
9783
9784
9785if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9786 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9787 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9788echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9789 if test -x $with_build_time_tools/nm; then
9790 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9791 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9792 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9793echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9794 else
c6b750e1
DJ
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
3a35eeb3 9797 fi
2429c060
PB
9798 elif test $build != $host && test $have_gcc_for_target = yes; then
9799 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9800 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9801 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9802 fi
9803fi
c6b750e1 9804if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9805 # Extract the first word of "nm", so it can be a program name with args.
9806set dummy nm; ac_word=$2
c6b750e1
DJ
9807echo "$as_me:$LINENO: checking for $ac_word" >&5
9808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9809if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9811else
c6b750e1
DJ
9812 case $NM_FOR_TARGET in
9813 [\\/]* | ?:[\\/]*)
2429c060
PB
9814 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9815 ;;
2429c060 9816 *)
c6b750e1
DJ
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $gcc_cv_tool_dirs
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828done
9829done
9830
2429c060
PB
9831 ;;
9832esac
9833fi
c6b750e1
DJ
9834NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9835
2429c060 9836if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9837 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9838echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9839else
c6b750e1
DJ
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
2429c060
PB
9842fi
9843
9844fi
9845if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9846
9847
9848if test -n "$NM_FOR_TARGET"; then
9849 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9850elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9851 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9852fi
9853
9854if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9855 for ncn_progname in nm; do
9856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9857set dummy ${ncn_progname}; ac_word=$2
9858echo "$as_me:$LINENO: checking for $ac_word" >&5
9859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9860if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 if test -n "$NM_FOR_TARGET"; then
9864 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9865else
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9876 fi
9877done
9878done
9879
9880fi
9881fi
9882NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9883if test -n "$NM_FOR_TARGET"; then
9884 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9885echo "${ECHO_T}$NM_FOR_TARGET" >&6
9886else
9887 echo "$as_me:$LINENO: result: no" >&5
9888echo "${ECHO_T}no" >&6
9889fi
9890
9891 done
9892fi
9893
9894if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9895 for ncn_progname in nm; do
c6b750e1
DJ
9896 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9897echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9898 if test -x $with_build_time_tools/${ncn_progname}; then
9899 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9900 echo "$as_me:$LINENO: result: yes" >&5
9901echo "${ECHO_T}yes" >&6
2429c060
PB
9902 break
9903 else
c6b750e1
DJ
9904 echo "$as_me:$LINENO: result: no" >&5
9905echo "${ECHO_T}no" >&6
2429c060
PB
9906 fi
9907 done
9908fi
9909
9910if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9911 for ncn_progname in nm; do
9912 if test -n "$ncn_target_tool_prefix"; then
9913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9914set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9915echo "$as_me:$LINENO: checking for $ac_word" >&5
9916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9917if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9919else
55db4b87
PB
9920 if test -n "$NM_FOR_TARGET"; then
9921 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9922else
c6b750e1
DJ
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9933 fi
9934done
9935done
9936
859789af
AC
9937fi
9938fi
c6b750e1 9939NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9940if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9941 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9942echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9943else
c6b750e1
DJ
9944 echo "$as_me:$LINENO: result: no" >&5
9945echo "${ECHO_T}no" >&6
859789af
AC
9946fi
9947
2429c060
PB
9948 fi
9949 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9951set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9952echo "$as_me:$LINENO: checking for $ac_word" >&5
9953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9954if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9956else
05cbd757
PB
9957 if test -n "$NM_FOR_TARGET"; then
9958 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9959else
c6b750e1
DJ
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9970 fi
9971done
9972done
9973
859789af
AC
9974fi
9975fi
c6b750e1 9976NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 9977if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9978 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9979echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9980else
c6b750e1
DJ
9981 echo "$as_me:$LINENO: result: no" >&5
9982echo "${ECHO_T}no" >&6
859789af 9983fi
c6b750e1 9984
2429c060
PB
9985 fi
9986 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9987 done
9988fi
c6b750e1 9989
05cbd757
PB
9990if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9991 set dummy nm
9992 if test $build = $target ; then
9993 NM_FOR_TARGET="$2"
859789af 9994 else
05cbd757 9995 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9996 fi
d3f5afc4
MS
9997else
9998 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
9999fi
10000
3a35eeb3
PB
10001else
10002 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10003fi
10004
10005
10006
10007
10008if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10009 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10010 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10011echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10012 if test -x $with_build_time_tools/objdump; then
10013 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10014 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10015 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10016echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10017 else
c6b750e1
DJ
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
3a35eeb3 10020 fi
2429c060
PB
10021 elif test $build != $host && test $have_gcc_for_target = yes; then
10022 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10023 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10024 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10025 fi
10026fi
c6b750e1 10027if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10028 # Extract the first word of "objdump", so it can be a program name with args.
10029set dummy objdump; ac_word=$2
c6b750e1
DJ
10030echo "$as_me:$LINENO: checking for $ac_word" >&5
10031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10032if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10034else
c6b750e1
DJ
10035 case $OBJDUMP_FOR_TARGET in
10036 [\\/]* | ?:[\\/]*)
2429c060
PB
10037 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10038 ;;
2429c060 10039 *)
c6b750e1
DJ
10040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041for as_dir in $gcc_cv_tool_dirs
10042do
10043 IFS=$as_save_IFS
10044 test -z "$as_dir" && as_dir=.
10045 for ac_exec_ext in '' $ac_executable_extensions; do
10046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10047 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10049 break 2
10050 fi
10051done
10052done
10053
2429c060
PB
10054 ;;
10055esac
10056fi
c6b750e1
DJ
10057OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10058
2429c060 10059if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10060 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10061echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10062else
c6b750e1
DJ
10063 echo "$as_me:$LINENO: result: no" >&5
10064echo "${ECHO_T}no" >&6
2429c060
PB
10065fi
10066
10067fi
10068if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10069
10070
10071if test -n "$OBJDUMP_FOR_TARGET"; then
10072 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10073elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10074 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10075fi
10076
10077if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10078 for ncn_progname in objdump; do
10079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10080set dummy ${ncn_progname}; ac_word=$2
10081echo "$as_me:$LINENO: checking for $ac_word" >&5
10082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10083if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
10086 if test -n "$OBJDUMP_FOR_TARGET"; then
10087 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10099 fi
10100done
10101done
10102
10103fi
10104fi
10105OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10106if test -n "$OBJDUMP_FOR_TARGET"; then
10107 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10108echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10109else
10110 echo "$as_me:$LINENO: result: no" >&5
10111echo "${ECHO_T}no" >&6
10112fi
10113
10114 done
10115fi
10116
10117if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10118 for ncn_progname in objdump; do
c6b750e1
DJ
10119 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10120echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10121 if test -x $with_build_time_tools/${ncn_progname}; then
10122 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10123 echo "$as_me:$LINENO: result: yes" >&5
10124echo "${ECHO_T}yes" >&6
2429c060
PB
10125 break
10126 else
c6b750e1
DJ
10127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
2429c060
PB
10129 fi
10130 done
10131fi
10132
10133if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10134 for ncn_progname in objdump; do
10135 if test -n "$ncn_target_tool_prefix"; then
10136 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10137set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10138echo "$as_me:$LINENO: checking for $ac_word" >&5
10139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10140if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10142else
10143 if test -n "$OBJDUMP_FOR_TARGET"; then
10144 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10145else
c6b750e1
DJ
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10156 fi
10157done
10158done
10159
5ae72758
DJ
10160fi
10161fi
c6b750e1 10162OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10163if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10164 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10165echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10166else
c6b750e1
DJ
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
5ae72758
DJ
10169fi
10170
2429c060
PB
10171 fi
10172 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10174set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10175echo "$as_me:$LINENO: checking for $ac_word" >&5
10176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10179else
10180 if test -n "$OBJDUMP_FOR_TARGET"; then
10181 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10182else
c6b750e1
DJ
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195done
10196
5ae72758
DJ
10197fi
10198fi
c6b750e1 10199OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10200if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10201 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10202echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10203else
c6b750e1
DJ
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
5ae72758 10206fi
c6b750e1 10207
2429c060
PB
10208 fi
10209 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10210 done
10211fi
c6b750e1 10212
5ae72758
DJ
10213if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10214 set dummy objdump
10215 if test $build = $target ; then
10216 OBJDUMP_FOR_TARGET="$2"
10217 else
10218 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10219 fi
d3f5afc4
MS
10220else
10221 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10222fi
10223
3a35eeb3
PB
10224else
10225 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10226fi
10227
10228
10229
10230
10231if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10232 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10233 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10234echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10235 if test -x $with_build_time_tools/ranlib; then
10236 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10237 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10238 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10239echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10240 else
c6b750e1
DJ
10241 echo "$as_me:$LINENO: result: no" >&5
10242echo "${ECHO_T}no" >&6
3a35eeb3 10243 fi
2429c060
PB
10244 elif test $build != $host && test $have_gcc_for_target = yes; then
10245 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10246 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10247 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10248 fi
10249fi
c6b750e1 10250if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10251 # Extract the first word of "ranlib", so it can be a program name with args.
10252set dummy ranlib; ac_word=$2
c6b750e1
DJ
10253echo "$as_me:$LINENO: checking for $ac_word" >&5
10254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10255if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10257else
c6b750e1
DJ
10258 case $RANLIB_FOR_TARGET in
10259 [\\/]* | ?:[\\/]*)
2429c060
PB
10260 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10261 ;;
2429c060 10262 *)
c6b750e1
DJ
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $gcc_cv_tool_dirs
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10270 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10273 fi
10274done
10275done
10276
2429c060
PB
10277 ;;
10278esac
10279fi
c6b750e1
DJ
10280RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10281
2429c060 10282if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10283 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10284echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10285else
c6b750e1
DJ
10286 echo "$as_me:$LINENO: result: no" >&5
10287echo "${ECHO_T}no" >&6
2429c060
PB
10288fi
10289
10290fi
10291if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10292
10293
10294if test -n "$RANLIB_FOR_TARGET"; then
10295 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10296elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10297 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10298fi
10299
10300if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10301 for ncn_progname in ranlib; do
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10303set dummy ${ncn_progname}; ac_word=$2
10304echo "$as_me:$LINENO: checking for $ac_word" >&5
10305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 if test -n "$RANLIB_FOR_TARGET"; then
10310 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10311else
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323done
10324done
10325
10326fi
10327fi
10328RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10329if test -n "$RANLIB_FOR_TARGET"; then
10330 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10331echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10332else
10333 echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6
10335fi
10336
10337 done
10338fi
10339
10340if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10341 for ncn_progname in ranlib; do
c6b750e1
DJ
10342 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10343echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10344 if test -x $with_build_time_tools/${ncn_progname}; then
10345 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10346 echo "$as_me:$LINENO: result: yes" >&5
10347echo "${ECHO_T}yes" >&6
2429c060
PB
10348 break
10349 else
c6b750e1
DJ
10350 echo "$as_me:$LINENO: result: no" >&5
10351echo "${ECHO_T}no" >&6
2429c060
PB
10352 fi
10353 done
10354fi
10355
10356if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10357 for ncn_progname in ranlib; do
10358 if test -n "$ncn_target_tool_prefix"; then
10359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10361echo "$as_me:$LINENO: checking for $ac_word" >&5
10362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10363if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10365else
55db4b87
PB
10366 if test -n "$RANLIB_FOR_TARGET"; then
10367 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10368else
c6b750e1
DJ
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10379 fi
10380done
10381done
10382
859789af
AC
10383fi
10384fi
c6b750e1 10385RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10386if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10387 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10388echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10389else
c6b750e1
DJ
10390 echo "$as_me:$LINENO: result: no" >&5
10391echo "${ECHO_T}no" >&6
859789af
AC
10392fi
10393
2429c060
PB
10394 fi
10395 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10397set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10398echo "$as_me:$LINENO: checking for $ac_word" >&5
10399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10400if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10402else
05cbd757
PB
10403 if test -n "$RANLIB_FOR_TARGET"; then
10404 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10405else
c6b750e1
DJ
10406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407for as_dir in $PATH
10408do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10413 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10416 fi
10417done
10418done
10419
859789af
AC
10420fi
10421fi
c6b750e1 10422RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10423if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10424 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10425echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10426else
c6b750e1
DJ
10427 echo "$as_me:$LINENO: result: no" >&5
10428echo "${ECHO_T}no" >&6
859789af 10429fi
c6b750e1 10430
2429c060
PB
10431 fi
10432 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10433 done
10434fi
c6b750e1 10435
2429c060
PB
10436if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10437 set dummy ranlib
10438 if test $build = $target ; then
10439 RANLIB_FOR_TARGET="$2"
10440 else
10441 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10442 fi
d3f5afc4
MS
10443else
10444 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10445fi
05cbd757 10446
3a35eeb3
PB
10447else
10448 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10449fi
10450
2429c060
PB
10451
10452
10453
10454if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10455 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10456 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10457echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10458 if test -x $with_build_time_tools/strip; then
10459 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10460 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10461 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10462echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10463 else
c6b750e1
DJ
10464 echo "$as_me:$LINENO: result: no" >&5
10465echo "${ECHO_T}no" >&6
3a35eeb3 10466 fi
2429c060
PB
10467 elif test $build != $host && test $have_gcc_for_target = yes; then
10468 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10469 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10470 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10471 fi
10472fi
c6b750e1 10473if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10474 # Extract the first word of "strip", so it can be a program name with args.
10475set dummy strip; ac_word=$2
c6b750e1
DJ
10476echo "$as_me:$LINENO: checking for $ac_word" >&5
10477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10478if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10480else
c6b750e1
DJ
10481 case $STRIP_FOR_TARGET in
10482 [\\/]* | ?:[\\/]*)
2429c060
PB
10483 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10484 ;;
2429c060 10485 *)
c6b750e1
DJ
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487for as_dir in $gcc_cv_tool_dirs
10488do
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10493 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10496 fi
10497done
10498done
10499
2429c060
PB
10500 ;;
10501esac
10502fi
c6b750e1
DJ
10503STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10504
2429c060 10505if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10506 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10507echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10508else
c6b750e1
DJ
10509 echo "$as_me:$LINENO: result: no" >&5
10510echo "${ECHO_T}no" >&6
2429c060
PB
10511fi
10512
10513fi
10514if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10515
10516
10517if test -n "$STRIP_FOR_TARGET"; then
10518 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10519elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10520 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10521fi
10522
10523if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10524 for ncn_progname in strip; do
10525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10526set dummy ${ncn_progname}; ac_word=$2
10527echo "$as_me:$LINENO: checking for $ac_word" >&5
10528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10529if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531else
10532 if test -n "$STRIP_FOR_TARGET"; then
10533 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10534else
10535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536for as_dir in $PATH
10537do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10545 fi
10546done
10547done
10548
10549fi
10550fi
10551STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10552if test -n "$STRIP_FOR_TARGET"; then
10553 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10554echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10555else
10556 echo "$as_me:$LINENO: result: no" >&5
10557echo "${ECHO_T}no" >&6
10558fi
10559
10560 done
10561fi
10562
10563if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10564 for ncn_progname in strip; do
c6b750e1
DJ
10565 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10566echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10567 if test -x $with_build_time_tools/${ncn_progname}; then
10568 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10569 echo "$as_me:$LINENO: result: yes" >&5
10570echo "${ECHO_T}yes" >&6
2429c060
PB
10571 break
10572 else
c6b750e1
DJ
10573 echo "$as_me:$LINENO: result: no" >&5
10574echo "${ECHO_T}no" >&6
2429c060
PB
10575 fi
10576 done
10577fi
10578
10579if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10580 for ncn_progname in strip; do
10581 if test -n "$ncn_target_tool_prefix"; then
10582 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10583set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10584echo "$as_me:$LINENO: checking for $ac_word" >&5
10585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10586if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10588else
10589 if test -n "$STRIP_FOR_TARGET"; then
10590 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10591else
10592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $PATH
10594do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10602 fi
10603done
10604done
10605
7e0f7140
GK
10606fi
10607fi
c6b750e1 10608STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10609if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10610 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10611echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10612else
c6b750e1
DJ
10613 echo "$as_me:$LINENO: result: no" >&5
10614echo "${ECHO_T}no" >&6
7e0f7140
GK
10615fi
10616
2429c060
PB
10617 fi
10618 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10620set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10621echo "$as_me:$LINENO: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10625else
10626 if test -n "$STRIP_FOR_TARGET"; then
10627 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10628else
c6b750e1
DJ
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642
7e0f7140
GK
10643fi
10644fi
c6b750e1 10645STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10646if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10647 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10648echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10649else
c6b750e1
DJ
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
7e0f7140 10652fi
c6b750e1 10653
2429c060
PB
10654 fi
10655 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10656 done
10657fi
c6b750e1 10658
7e0f7140
GK
10659if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10660 set dummy strip
10661 if test $build = $target ; then
10662 STRIP_FOR_TARGET="$2"
10663 else
10664 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10665 fi
d3f5afc4
MS
10666else
10667 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10668fi
10669
3a35eeb3
PB
10670else
10671 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10672fi
10673
10674
10675
10676
10677if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10678 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10679 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10680echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10681 if test -x $with_build_time_tools/windres; then
10682 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10683 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10684 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10685echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10686 else
c6b750e1
DJ
10687 echo "$as_me:$LINENO: result: no" >&5
10688echo "${ECHO_T}no" >&6
3a35eeb3 10689 fi
2429c060
PB
10690 elif test $build != $host && test $have_gcc_for_target = yes; then
10691 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10692 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10693 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10694 fi
10695fi
c6b750e1 10696if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10697 # Extract the first word of "windres", so it can be a program name with args.
10698set dummy windres; ac_word=$2
c6b750e1
DJ
10699echo "$as_me:$LINENO: checking for $ac_word" >&5
10700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10701if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10703else
c6b750e1
DJ
10704 case $WINDRES_FOR_TARGET in
10705 [\\/]* | ?:[\\/]*)
2429c060
PB
10706 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10707 ;;
2429c060 10708 *)
c6b750e1
DJ
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $gcc_cv_tool_dirs
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10719 fi
10720done
10721done
10722
2429c060
PB
10723 ;;
10724esac
10725fi
c6b750e1
DJ
10726WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10727
2429c060 10728if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10729 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10730echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10731else
c6b750e1
DJ
10732 echo "$as_me:$LINENO: result: no" >&5
10733echo "${ECHO_T}no" >&6
2429c060
PB
10734fi
10735
10736fi
10737if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10738
10739
10740if test -n "$WINDRES_FOR_TARGET"; then
10741 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10742elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10743 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10744fi
10745
10746if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10747 for ncn_progname in windres; do
10748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10749set dummy ${ncn_progname}; ac_word=$2
10750echo "$as_me:$LINENO: checking for $ac_word" >&5
10751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754else
10755 if test -n "$WINDRES_FOR_TARGET"; then
10756 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769done
10770done
10771
10772fi
10773fi
10774WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10775if test -n "$WINDRES_FOR_TARGET"; then
10776 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10777echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10778else
10779 echo "$as_me:$LINENO: result: no" >&5
10780echo "${ECHO_T}no" >&6
10781fi
10782
10783 done
10784fi
10785
10786if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10787 for ncn_progname in windres; do
c6b750e1
DJ
10788 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10789echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10790 if test -x $with_build_time_tools/${ncn_progname}; then
10791 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10792 echo "$as_me:$LINENO: result: yes" >&5
10793echo "${ECHO_T}yes" >&6
2429c060
PB
10794 break
10795 else
c6b750e1
DJ
10796 echo "$as_me:$LINENO: result: no" >&5
10797echo "${ECHO_T}no" >&6
2429c060
PB
10798 fi
10799 done
10800fi
10801
10802if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10803 for ncn_progname in windres; do
10804 if test -n "$ncn_target_tool_prefix"; then
10805 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10806set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10807echo "$as_me:$LINENO: checking for $ac_word" >&5
10808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10809if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10811else
55db4b87
PB
10812 if test -n "$WINDRES_FOR_TARGET"; then
10813 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10814else
c6b750e1
DJ
10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816for as_dir in $PATH
10817do
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10822 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10825 fi
10826done
10827done
10828
859789af
AC
10829fi
10830fi
c6b750e1 10831WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10832if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10833 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10834echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10835else
c6b750e1
DJ
10836 echo "$as_me:$LINENO: result: no" >&5
10837echo "${ECHO_T}no" >&6
859789af
AC
10838fi
10839
2429c060
PB
10840 fi
10841 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10843set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10844echo "$as_me:$LINENO: checking for $ac_word" >&5
10845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10846if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10848else
05cbd757
PB
10849 if test -n "$WINDRES_FOR_TARGET"; then
10850 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10851else
c6b750e1
DJ
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10862 fi
10863done
10864done
10865
859789af
AC
10866fi
10867fi
c6b750e1 10868WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10869if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10870 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10871echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10872else
c6b750e1
DJ
10873 echo "$as_me:$LINENO: result: no" >&5
10874echo "${ECHO_T}no" >&6
859789af 10875fi
c6b750e1 10876
2429c060
PB
10877 fi
10878 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10879 done
10880fi
c6b750e1 10881
05cbd757
PB
10882if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10883 set dummy windres
10884 if test $build = $target ; then
10885 WINDRES_FOR_TARGET="$2"
859789af 10886 else
05cbd757 10887 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10888 fi
d3f5afc4
MS
10889else
10890 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10891fi
10892
3a35eeb3
PB
10893else
10894 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10895fi
10896
852e5f18 10897
0c24b341
NC
10898
10899
10900if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10901 if test -n "$with_build_time_tools"; then
10902 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10903echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10904 if test -x $with_build_time_tools/windmc; then
10905 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10906 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10907 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10908echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10909 else
10910 echo "$as_me:$LINENO: result: no" >&5
10911echo "${ECHO_T}no" >&6
10912 fi
10913 elif test $build != $host && test $have_gcc_for_target = yes; then
10914 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10915 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10916 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10917 fi
10918fi
10919if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10920 # Extract the first word of "windmc", so it can be a program name with args.
10921set dummy windmc; ac_word=$2
10922echo "$as_me:$LINENO: checking for $ac_word" >&5
10923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10924if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else
10927 case $WINDMC_FOR_TARGET in
10928 [\\/]* | ?:[\\/]*)
10929 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10930 ;;
10931 *)
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933for as_dir in $gcc_cv_tool_dirs
10934do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10941 break 2
10942 fi
10943done
10944done
10945
10946 ;;
10947esac
10948fi
10949WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10950
10951if test -n "$WINDMC_FOR_TARGET"; then
10952 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10953echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10954else
10955 echo "$as_me:$LINENO: result: no" >&5
10956echo "${ECHO_T}no" >&6
10957fi
10958
10959fi
10960if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10961
10962
10963if test -n "$WINDMC_FOR_TARGET"; then
10964 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10965elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10966 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10967fi
10968
10969if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10970 for ncn_progname in windmc; do
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972set dummy ${ncn_progname}; ac_word=$2
10973echo "$as_me:$LINENO: checking for $ac_word" >&5
10974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10975if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 if test -n "$WINDMC_FOR_TARGET"; then
10979 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
10989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992done
10993done
10994
10995fi
10996fi
10997WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10998if test -n "$WINDMC_FOR_TARGET"; then
10999 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11000echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11001else
11002 echo "$as_me:$LINENO: result: no" >&5
11003echo "${ECHO_T}no" >&6
11004fi
11005
11006 done
11007fi
11008
11009if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11010 for ncn_progname in windmc; do
11011 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11012echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11013 if test -x $with_build_time_tools/${ncn_progname}; then
11014 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11015 echo "$as_me:$LINENO: result: yes" >&5
11016echo "${ECHO_T}yes" >&6
11017 break
11018 else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021 fi
11022 done
11023fi
11024
11025if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11026 for ncn_progname in windmc; do
11027 if test -n "$ncn_target_tool_prefix"; then
11028 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11029set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11030echo "$as_me:$LINENO: checking for $ac_word" >&5
11031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11032if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 if test -n "$WINDMC_FOR_TARGET"; then
11036 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11037else
11038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039for as_dir in $PATH
11040do
11041 IFS=$as_save_IFS
11042 test -z "$as_dir" && as_dir=.
11043 for ac_exec_ext in '' $ac_executable_extensions; do
11044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11045 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 break 2
11048 fi
11049done
11050done
11051
11052fi
11053fi
11054WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11055if test -n "$WINDMC_FOR_TARGET"; then
11056 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11057echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11058else
11059 echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061fi
11062
11063 fi
11064 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11066set dummy ${ncn_progname}; ac_word=$2
11067echo "$as_me:$LINENO: checking for $ac_word" >&5
11068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11069if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 if test -n "$WINDMC_FOR_TARGET"; then
11073 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087done
11088
11089fi
11090fi
11091WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11092if test -n "$WINDMC_FOR_TARGET"; then
11093 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11094echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11095else
11096 echo "$as_me:$LINENO: result: no" >&5
11097echo "${ECHO_T}no" >&6
11098fi
11099
11100 fi
11101 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11102 done
11103fi
11104
11105if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11106 set dummy windmc
11107 if test $build = $target ; then
11108 WINDMC_FOR_TARGET="$2"
11109 else
11110 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11111 fi
11112else
11113 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11114fi
11115
11116else
11117 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11118fi
11119
11120
be01d343
PB
11121RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11122
c6b750e1
DJ
11123echo "$as_me:$LINENO: checking where to find the target ar" >&5
11124echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11125if test "x${build}" != "x${host}" ; then
2429c060
PB
11126 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11127 # We already found the complete path
b8025f34
AS
11128 ac_dir=`dirname $AR_FOR_TARGET`
11129 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11130echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11131 else
11132 # Canadian cross, just use what we found
c6b750e1
DJ
11133 echo "$as_me:$LINENO: result: pre-installed" >&5
11134echo "${ECHO_T}pre-installed" >&6
2429c060 11135 fi
be01d343
PB
11136else
11137 ok=yes
11138 case " ${configdirs} " in
11139 *" binutils "*) ;;
11140 *) ok=no ;;
11141 esac
c6b750e1 11142
be01d343
PB
11143 if test $ok = yes; then
11144 # An in-tree tool is available and we can use it
11145 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11146 echo "$as_me:$LINENO: result: just compiled" >&5
11147echo "${ECHO_T}just compiled" >&6
2429c060
PB
11148 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11149 # We already found the complete path
b8025f34
AS
11150 ac_dir=`dirname $AR_FOR_TARGET`
11151 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11152echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11153 elif test "x$target" = "x$host"; then
11154 # We can use an host tool
11155 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11156 echo "$as_me:$LINENO: result: host tool" >&5
11157echo "${ECHO_T}host tool" >&6
be01d343
PB
11158 else
11159 # We need a cross tool
c6b750e1
DJ
11160 echo "$as_me:$LINENO: result: pre-installed" >&5
11161echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11162 fi
11163fi
4b900473 11164
c6b750e1
DJ
11165echo "$as_me:$LINENO: checking where to find the target as" >&5
11166echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11167if test "x${build}" != "x${host}" ; then
2429c060
PB
11168 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11169 # We already found the complete path
b8025f34
AS
11170 ac_dir=`dirname $AS_FOR_TARGET`
11171 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11172echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11173 else
11174 # Canadian cross, just use what we found
c6b750e1
DJ
11175 echo "$as_me:$LINENO: result: pre-installed" >&5
11176echo "${ECHO_T}pre-installed" >&6
2429c060 11177 fi
be01d343
PB
11178else
11179 ok=yes
11180 case " ${configdirs} " in
11181 *" gas "*) ;;
11182 *) ok=no ;;
11183 esac
c6b750e1 11184
be01d343
PB
11185 if test $ok = yes; then
11186 # An in-tree tool is available and we can use it
11187 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11188 echo "$as_me:$LINENO: result: just compiled" >&5
11189echo "${ECHO_T}just compiled" >&6
2429c060
PB
11190 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11191 # We already found the complete path
b8025f34
AS
11192 ac_dir=`dirname $AS_FOR_TARGET`
11193 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11194echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11195 elif test "x$target" = "x$host"; then
11196 # We can use an host tool
11197 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11198 echo "$as_me:$LINENO: result: host tool" >&5
11199echo "${ECHO_T}host tool" >&6
be01d343
PB
11200 else
11201 # We need a cross tool
c6b750e1
DJ
11202 echo "$as_me:$LINENO: result: pre-installed" >&5
11203echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11204 fi
11205fi
4b900473 11206
c6b750e1
DJ
11207echo "$as_me:$LINENO: checking where to find the target cc" >&5
11208echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11209if test "x${build}" != "x${host}" ; then
2429c060
PB
11210 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11211 # We already found the complete path
b8025f34
AS
11212 ac_dir=`dirname $CC_FOR_TARGET`
11213 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11214echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11215 else
11216 # Canadian cross, just use what we found
c6b750e1
DJ
11217 echo "$as_me:$LINENO: result: pre-installed" >&5
11218echo "${ECHO_T}pre-installed" >&6
2429c060 11219 fi
be01d343
PB
11220else
11221 ok=yes
11222 case " ${configdirs} " in
11223 *" gcc "*) ;;
11224 *) ok=no ;;
11225 esac
c6b750e1 11226
be01d343
PB
11227 if test $ok = yes; then
11228 # An in-tree tool is available and we can use it
11229 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11230 echo "$as_me:$LINENO: result: just compiled" >&5
11231echo "${ECHO_T}just compiled" >&6
2429c060
PB
11232 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11233 # We already found the complete path
b8025f34
AS
11234 ac_dir=`dirname $CC_FOR_TARGET`
11235 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11236echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11237 elif test "x$target" = "x$host"; then
11238 # We can use an host tool
11239 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11240 echo "$as_me:$LINENO: result: host tool" >&5
11241echo "${ECHO_T}host tool" >&6
be01d343
PB
11242 else
11243 # We need a cross tool
c6b750e1
DJ
11244 echo "$as_me:$LINENO: result: pre-installed" >&5
11245echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11246 fi
11247fi
4b900473 11248
c6b750e1
DJ
11249echo "$as_me:$LINENO: checking where to find the target c++" >&5
11250echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11251if test "x${build}" != "x${host}" ; then
2429c060
PB
11252 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11253 # We already found the complete path
b8025f34
AS
11254 ac_dir=`dirname $CXX_FOR_TARGET`
11255 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11256echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11257 else
11258 # Canadian cross, just use what we found
c6b750e1
DJ
11259 echo "$as_me:$LINENO: result: pre-installed" >&5
11260echo "${ECHO_T}pre-installed" >&6
2429c060 11261 fi
be01d343
PB
11262else
11263 ok=yes
11264 case " ${configdirs} " in
11265 *" gcc "*) ;;
11266 *) ok=no ;;
11267 esac
11268 case ,${enable_languages}, in
11269 *,c++,*) ;;
11270 *) ok=no ;;
11271 esac
11272 if test $ok = yes; then
11273 # An in-tree tool is available and we can use it
11274 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
11275 echo "$as_me:$LINENO: result: just compiled" >&5
11276echo "${ECHO_T}just compiled" >&6
2429c060
PB
11277 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11278 # We already found the complete path
b8025f34
AS
11279 ac_dir=`dirname $CXX_FOR_TARGET`
11280 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11281echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11282 elif test "x$target" = "x$host"; then
11283 # We can use an host tool
11284 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11285 echo "$as_me:$LINENO: result: host tool" >&5
11286echo "${ECHO_T}host tool" >&6
be01d343
PB
11287 else
11288 # We need a cross tool
c6b750e1
DJ
11289 echo "$as_me:$LINENO: result: pre-installed" >&5
11290echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11291 fi
11292fi
4b900473 11293
c6b750e1
DJ
11294echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11295echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11296if test "x${build}" != "x${host}" ; then
2429c060
PB
11297 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11298 # We already found the complete path
b8025f34
AS
11299 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11300 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11301echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11302 else
11303 # Canadian cross, just use what we found
c6b750e1
DJ
11304 echo "$as_me:$LINENO: result: pre-installed" >&5
11305echo "${ECHO_T}pre-installed" >&6
2429c060 11306 fi
be01d343
PB
11307else
11308 ok=yes
11309 case " ${configdirs} " in
11310 *" gcc "*) ;;
11311 *) ok=no ;;
11312 esac
11313 case ,${enable_languages}, in
11314 *,c++,*) ;;
11315 *) ok=no ;;
11316 esac
11317 if test $ok = yes; then
11318 # An in-tree tool is available and we can use it
11319 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
11320 echo "$as_me:$LINENO: result: just compiled" >&5
11321echo "${ECHO_T}just compiled" >&6
2429c060
PB
11322 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11323 # We already found the complete path
b8025f34
AS
11324 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11325 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11326echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11327 elif test "x$target" = "x$host"; then
11328 # We can use an host tool
11329 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11330 echo "$as_me:$LINENO: result: host tool" >&5
11331echo "${ECHO_T}host tool" >&6
be01d343
PB
11332 else
11333 # We need a cross tool
c6b750e1
DJ
11334 echo "$as_me:$LINENO: result: pre-installed" >&5
11335echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11336 fi
11337fi
4b900473 11338
c6b750e1
DJ
11339echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11340echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11341if test "x${build}" != "x${host}" ; then
2429c060
PB
11342 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11343 # We already found the complete path
b8025f34
AS
11344 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11345 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11346echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11347 else
11348 # Canadian cross, just use what we found
c6b750e1
DJ
11349 echo "$as_me:$LINENO: result: pre-installed" >&5
11350echo "${ECHO_T}pre-installed" >&6
2429c060 11351 fi
be01d343
PB
11352else
11353 ok=yes
11354 case " ${configdirs} " in
11355 *" binutils "*) ;;
11356 *) ok=no ;;
11357 esac
c6b750e1 11358
be01d343
PB
11359 if test $ok = yes; then
11360 # An in-tree tool is available and we can use it
11361 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11362 echo "$as_me:$LINENO: result: just compiled" >&5
11363echo "${ECHO_T}just compiled" >&6
2429c060
PB
11364 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11365 # We already found the complete path
b8025f34
AS
11366 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11367 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11368echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11369 elif test "x$target" = "x$host"; then
11370 # We can use an host tool
11371 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11372 echo "$as_me:$LINENO: result: host tool" >&5
11373echo "${ECHO_T}host tool" >&6
be01d343
PB
11374 else
11375 # We need a cross tool
c6b750e1
DJ
11376 echo "$as_me:$LINENO: result: pre-installed" >&5
11377echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11378 fi
11379fi
4b900473 11380
c6b750e1
DJ
11381echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11382echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11383if test "x${build}" != "x${host}" ; then
2429c060
PB
11384 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11385 # We already found the complete path
b8025f34
AS
11386 ac_dir=`dirname $GCC_FOR_TARGET`
11387 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11388echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11389 else
11390 # Canadian cross, just use what we found
c6b750e1
DJ
11391 echo "$as_me:$LINENO: result: pre-installed" >&5
11392echo "${ECHO_T}pre-installed" >&6
2429c060 11393 fi
be01d343
PB
11394else
11395 ok=yes
11396 case " ${configdirs} " in
11397 *" gcc "*) ;;
11398 *) ok=no ;;
11399 esac
c6b750e1 11400
be01d343
PB
11401 if test $ok = yes; then
11402 # An in-tree tool is available and we can use it
11403 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11404 echo "$as_me:$LINENO: result: just compiled" >&5
11405echo "${ECHO_T}just compiled" >&6
2429c060
PB
11406 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11407 # We already found the complete path
b8025f34
AS
11408 ac_dir=`dirname $GCC_FOR_TARGET`
11409 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11410echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11411 elif test "x$target" = "x$host"; then
11412 # We can use an host tool
11413 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11414 echo "$as_me:$LINENO: result: host tool" >&5
11415echo "${ECHO_T}host tool" >&6
be01d343
PB
11416 else
11417 # We need a cross tool
c6b750e1
DJ
11418 echo "$as_me:$LINENO: result: pre-installed" >&5
11419echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11420 fi
11421fi
4b900473 11422
c6b750e1
DJ
11423echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11424echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11425if test "x${build}" != "x${host}" ; then
2429c060
PB
11426 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11427 # We already found the complete path
b8025f34
AS
11428 ac_dir=`dirname $GCJ_FOR_TARGET`
11429 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11430echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11431 else
11432 # Canadian cross, just use what we found
c6b750e1
DJ
11433 echo "$as_me:$LINENO: result: pre-installed" >&5
11434echo "${ECHO_T}pre-installed" >&6
2429c060 11435 fi
be01d343
PB
11436else
11437 ok=yes
11438 case " ${configdirs} " in
11439 *" gcc "*) ;;
11440 *) ok=no ;;
11441 esac
11442 case ,${enable_languages}, in
11443 *,java,*) ;;
11444 *) ok=no ;;
11445 esac
11446 if test $ok = yes; then
11447 # An in-tree tool is available and we can use it
11448 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11449 echo "$as_me:$LINENO: result: just compiled" >&5
11450echo "${ECHO_T}just compiled" >&6
2429c060
PB
11451 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11452 # We already found the complete path
b8025f34
AS
11453 ac_dir=`dirname $GCJ_FOR_TARGET`
11454 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11455echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11456 elif test "x$target" = "x$host"; then
11457 # We can use an host tool
11458 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11459 echo "$as_me:$LINENO: result: host tool" >&5
11460echo "${ECHO_T}host tool" >&6
be01d343
PB
11461 else
11462 # We need a cross tool
c6b750e1
DJ
11463 echo "$as_me:$LINENO: result: pre-installed" >&5
11464echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11465 fi
11466fi
4b900473 11467
c6b750e1
DJ
11468echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11469echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11470if test "x${build}" != "x${host}" ; then
2429c060
PB
11471 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11472 # We already found the complete path
b8025f34
AS
11473 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11474 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11475echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11476 else
11477 # Canadian cross, just use what we found
c6b750e1
DJ
11478 echo "$as_me:$LINENO: result: pre-installed" >&5
11479echo "${ECHO_T}pre-installed" >&6
2429c060 11480 fi
be01d343
PB
11481else
11482 ok=yes
11483 case " ${configdirs} " in
11484 *" gcc "*) ;;
11485 *) ok=no ;;
11486 esac
11487 case ,${enable_languages}, in
11488 *,fortran,*) ;;
11489 *) ok=no ;;
11490 esac
11491 if test $ok = yes; then
11492 # An in-tree tool is available and we can use it
11493 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11494 echo "$as_me:$LINENO: result: just compiled" >&5
11495echo "${ECHO_T}just compiled" >&6
2429c060
PB
11496 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11497 # We already found the complete path
b8025f34
AS
11498 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11499 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11500echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11501 elif test "x$target" = "x$host"; then
11502 # We can use an host tool
11503 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11504 echo "$as_me:$LINENO: result: host tool" >&5
11505echo "${ECHO_T}host tool" >&6
be01d343
PB
11506 else
11507 # We need a cross tool
c6b750e1
DJ
11508 echo "$as_me:$LINENO: result: pre-installed" >&5
11509echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11510 fi
11511fi
4b900473 11512
c6b750e1
DJ
11513echo "$as_me:$LINENO: checking where to find the target ld" >&5
11514echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11515if test "x${build}" != "x${host}" ; then
2429c060
PB
11516 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11517 # We already found the complete path
b8025f34
AS
11518 ac_dir=`dirname $LD_FOR_TARGET`
11519 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11520echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11521 else
11522 # Canadian cross, just use what we found
c6b750e1
DJ
11523 echo "$as_me:$LINENO: result: pre-installed" >&5
11524echo "${ECHO_T}pre-installed" >&6
2429c060 11525 fi
be01d343
PB
11526else
11527 ok=yes
11528 case " ${configdirs} " in
11529 *" ld "*) ;;
11530 *) ok=no ;;
11531 esac
c6b750e1 11532
be01d343
PB
11533 if test $ok = yes; then
11534 # An in-tree tool is available and we can use it
11535 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11536 echo "$as_me:$LINENO: result: just compiled" >&5
11537echo "${ECHO_T}just compiled" >&6
2429c060
PB
11538 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11539 # We already found the complete path
b8025f34
AS
11540 ac_dir=`dirname $LD_FOR_TARGET`
11541 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11542echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11543 elif test "x$target" = "x$host"; then
11544 # We can use an host tool
11545 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11546 echo "$as_me:$LINENO: result: host tool" >&5
11547echo "${ECHO_T}host tool" >&6
be01d343
PB
11548 else
11549 # We need a cross tool
c6b750e1
DJ
11550 echo "$as_me:$LINENO: result: pre-installed" >&5
11551echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11552 fi
11553fi
4b900473 11554
c6b750e1
DJ
11555echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11556echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11557if test "x${build}" != "x${host}" ; then
2429c060
PB
11558 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11559 # We already found the complete path
b8025f34
AS
11560 ac_dir=`dirname $LIPO_FOR_TARGET`
11561 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11562echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11563 else
11564 # Canadian cross, just use what we found
c6b750e1
DJ
11565 echo "$as_me:$LINENO: result: pre-installed" >&5
11566echo "${ECHO_T}pre-installed" >&6
2429c060 11567 fi
be01d343 11568else
2429c060
PB
11569 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
b8025f34
AS
11571 ac_dir=`dirname $LIPO_FOR_TARGET`
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11574 elif test "x$target" = "x$host"; then
be01d343
PB
11575 # We can use an host tool
11576 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11577 echo "$as_me:$LINENO: result: host tool" >&5
11578echo "${ECHO_T}host tool" >&6
be01d343
PB
11579 else
11580 # We need a cross tool
c6b750e1
DJ
11581 echo "$as_me:$LINENO: result: pre-installed" >&5
11582echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11583 fi
11584fi
4b900473 11585
c6b750e1
DJ
11586echo "$as_me:$LINENO: checking where to find the target nm" >&5
11587echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11588if test "x${build}" != "x${host}" ; then
2429c060
PB
11589 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11590 # We already found the complete path
b8025f34
AS
11591 ac_dir=`dirname $NM_FOR_TARGET`
11592 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11593echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11594 else
11595 # Canadian cross, just use what we found
c6b750e1
DJ
11596 echo "$as_me:$LINENO: result: pre-installed" >&5
11597echo "${ECHO_T}pre-installed" >&6
2429c060 11598 fi
be01d343
PB
11599else
11600 ok=yes
11601 case " ${configdirs} " in
11602 *" binutils "*) ;;
11603 *) ok=no ;;
11604 esac
c6b750e1 11605
be01d343
PB
11606 if test $ok = yes; then
11607 # An in-tree tool is available and we can use it
11608 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11609 echo "$as_me:$LINENO: result: just compiled" >&5
11610echo "${ECHO_T}just compiled" >&6
2429c060
PB
11611 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
b8025f34
AS
11613 ac_dir=`dirname $NM_FOR_TARGET`
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11616 elif test "x$target" = "x$host"; then
11617 # We can use an host tool
11618 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11619 echo "$as_me:$LINENO: result: host tool" >&5
11620echo "${ECHO_T}host tool" >&6
be01d343
PB
11621 else
11622 # We need a cross tool
c6b750e1
DJ
11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11625 fi
11626fi
4b900473 11627
c6b750e1
DJ
11628echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11629echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11630if test "x${build}" != "x${host}" ; then
2429c060
PB
11631 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11632 # We already found the complete path
b8025f34
AS
11633 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11634 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11635echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11636 else
11637 # Canadian cross, just use what we found
c6b750e1
DJ
11638 echo "$as_me:$LINENO: result: pre-installed" >&5
11639echo "${ECHO_T}pre-installed" >&6
2429c060 11640 fi
be01d343
PB
11641else
11642 ok=yes
11643 case " ${configdirs} " in
11644 *" binutils "*) ;;
11645 *) ok=no ;;
11646 esac
c6b750e1 11647
be01d343
PB
11648 if test $ok = yes; then
11649 # An in-tree tool is available and we can use it
11650 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11651 echo "$as_me:$LINENO: result: just compiled" >&5
11652echo "${ECHO_T}just compiled" >&6
2429c060
PB
11653 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11654 # We already found the complete path
b8025f34
AS
11655 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11656 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11657echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11658 elif test "x$target" = "x$host"; then
11659 # We can use an host tool
11660 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11661 echo "$as_me:$LINENO: result: host tool" >&5
11662echo "${ECHO_T}host tool" >&6
be01d343
PB
11663 else
11664 # We need a cross tool
c6b750e1
DJ
11665 echo "$as_me:$LINENO: result: pre-installed" >&5
11666echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11667 fi
11668fi
4b900473 11669
c6b750e1
DJ
11670echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11671echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11672if test "x${build}" != "x${host}" ; then
2429c060
PB
11673 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11674 # We already found the complete path
b8025f34
AS
11675 ac_dir=`dirname $RANLIB_FOR_TARGET`
11676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11677echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11678 else
11679 # Canadian cross, just use what we found
c6b750e1
DJ
11680 echo "$as_me:$LINENO: result: pre-installed" >&5
11681echo "${ECHO_T}pre-installed" >&6
2429c060 11682 fi
be01d343
PB
11683else
11684 ok=yes
11685 case " ${configdirs} " in
11686 *" binutils "*) ;;
11687 *) ok=no ;;
11688 esac
c6b750e1 11689
be01d343
PB
11690 if test $ok = yes; then
11691 # An in-tree tool is available and we can use it
11692 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11693 echo "$as_me:$LINENO: result: just compiled" >&5
11694echo "${ECHO_T}just compiled" >&6
2429c060
PB
11695 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11696 # We already found the complete path
b8025f34
AS
11697 ac_dir=`dirname $RANLIB_FOR_TARGET`
11698 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11699echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11700 elif test "x$target" = "x$host"; then
11701 # We can use an host tool
11702 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11703 echo "$as_me:$LINENO: result: host tool" >&5
11704echo "${ECHO_T}host tool" >&6
be01d343
PB
11705 else
11706 # We need a cross tool
c6b750e1
DJ
11707 echo "$as_me:$LINENO: result: pre-installed" >&5
11708echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11709 fi
11710fi
4b900473 11711
c6b750e1
DJ
11712echo "$as_me:$LINENO: checking where to find the target strip" >&5
11713echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11714if test "x${build}" != "x${host}" ; then
2429c060
PB
11715 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11716 # We already found the complete path
b8025f34
AS
11717 ac_dir=`dirname $STRIP_FOR_TARGET`
11718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11719echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11720 else
11721 # Canadian cross, just use what we found
c6b750e1
DJ
11722 echo "$as_me:$LINENO: result: pre-installed" >&5
11723echo "${ECHO_T}pre-installed" >&6
2429c060 11724 fi
be01d343
PB
11725else
11726 ok=yes
11727 case " ${configdirs} " in
11728 *" binutils "*) ;;
11729 *) ok=no ;;
11730 esac
c6b750e1 11731
be01d343
PB
11732 if test $ok = yes; then
11733 # An in-tree tool is available and we can use it
11734 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11735 echo "$as_me:$LINENO: result: just compiled" >&5
11736echo "${ECHO_T}just compiled" >&6
2429c060
PB
11737 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11738 # We already found the complete path
b8025f34
AS
11739 ac_dir=`dirname $STRIP_FOR_TARGET`
11740 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11741echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11742 elif test "x$target" = "x$host"; then
11743 # We can use an host tool
11744 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11745 echo "$as_me:$LINENO: result: host tool" >&5
11746echo "${ECHO_T}host tool" >&6
be01d343
PB
11747 else
11748 # We need a cross tool
c6b750e1
DJ
11749 echo "$as_me:$LINENO: result: pre-installed" >&5
11750echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11751 fi
11752fi
4b900473 11753
c6b750e1
DJ
11754echo "$as_me:$LINENO: checking where to find the target windres" >&5
11755echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11756if test "x${build}" != "x${host}" ; then
2429c060
PB
11757 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11758 # We already found the complete path
b8025f34
AS
11759 ac_dir=`dirname $WINDRES_FOR_TARGET`
11760 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11761echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11762 else
11763 # Canadian cross, just use what we found
c6b750e1
DJ
11764 echo "$as_me:$LINENO: result: pre-installed" >&5
11765echo "${ECHO_T}pre-installed" >&6
2429c060 11766 fi
be01d343
PB
11767else
11768 ok=yes
11769 case " ${configdirs} " in
11770 *" binutils "*) ;;
11771 *) ok=no ;;
11772 esac
c6b750e1 11773
be01d343
PB
11774 if test $ok = yes; then
11775 # An in-tree tool is available and we can use it
11776 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11777 echo "$as_me:$LINENO: result: just compiled" >&5
11778echo "${ECHO_T}just compiled" >&6
2429c060
PB
11779 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11780 # We already found the complete path
b8025f34
AS
11781 ac_dir=`dirname $WINDRES_FOR_TARGET`
11782 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11783echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11784 elif test "x$target" = "x$host"; then
11785 # We can use an host tool
11786 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11787 echo "$as_me:$LINENO: result: host tool" >&5
11788echo "${ECHO_T}host tool" >&6
be01d343
PB
11789 else
11790 # We need a cross tool
c6b750e1
DJ
11791 echo "$as_me:$LINENO: result: pre-installed" >&5
11792echo "${ECHO_T}pre-installed" >&6
be01d343 11793 fi
a0da8069 11794fi
54752a6b 11795
0c24b341
NC
11796echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11797echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11798if test "x${build}" != "x${host}" ; then
11799 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11800 # We already found the complete path
11801 ac_dir=`dirname $WINDMC_FOR_TARGET`
11802 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11803echo "${ECHO_T}pre-installed in $ac_dir" >&6
11804 else
11805 # Canadian cross, just use what we found
11806 echo "$as_me:$LINENO: result: pre-installed" >&5
11807echo "${ECHO_T}pre-installed" >&6
11808 fi
11809else
11810 ok=yes
11811 case " ${configdirs} " in
11812 *" binutils "*) ;;
11813 *) ok=no ;;
11814 esac
11815
11816 if test $ok = yes; then
11817 # An in-tree tool is available and we can use it
11818 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11819 echo "$as_me:$LINENO: result: just compiled" >&5
11820echo "${ECHO_T}just compiled" >&6
11821 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11822 # We already found the complete path
11823 ac_dir=`dirname $WINDMC_FOR_TARGET`
11824 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11825echo "${ECHO_T}pre-installed in $ac_dir" >&6
11826 elif test "x$target" = "x$host"; then
11827 # We can use an host tool
11828 WINDMC_FOR_TARGET='$(WINDMC)'
11829 echo "$as_me:$LINENO: result: host tool" >&5
11830echo "${ECHO_T}host tool" >&6
11831 else
11832 # We need a cross tool
11833 echo "$as_me:$LINENO: result: pre-installed" >&5
11834echo "${ECHO_T}pre-installed" >&6
11835 fi
11836fi
11837
54752a6b
NN
11838
11839
be01d343 11840
4b900473 11841
a0da8069
NN
11842# Certain tools may need extra flags.
11843AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11844RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11845NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11846
be01d343
PB
11847# When building target libraries, except in a Canadian cross, we use
11848# the same toolchain as the compiler we just built.
11849COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11850COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11851COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11852if test $host = $build; then
11853 case " $configdirs " in
11854 *" gcc "*)
11855 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11856 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11857 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11858 ;;
11859 esac
11860fi
11861
11862
11863
11864
11865
c6b750e1
DJ
11866echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11867echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11868# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11869if test "${enable_maintainer_mode+set}" = set; then
11870 enableval="$enable_maintainer_mode"
11871 USE_MAINTAINER_MODE=$enableval
11872else
11873 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11874fi;
11875echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11876echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11877
11878
11879if test "$USE_MAINTAINER_MODE" = yes; then
11880 MAINTAINER_MODE_TRUE=
11881 MAINTAINER_MODE_FALSE='#'
11882else
11883 MAINTAINER_MODE_TRUE='#'
11884 MAINTAINER_MODE_FALSE=
c6b750e1 11885fi
3d5e36ae
AO
11886MAINT=$MAINTAINER_MODE_TRUE
11887
1d39f329
NN
11888# ---------------------
11889# GCC bootstrap support
11890# ---------------------
11891
11892# Stage specific cflags for build.
11893stage1_cflags="-g"
11894case $build in
11895 vax-*-*)
11896 case ${GCC} in
11897 yes) stage1_cflags="-g -Wa,-J" ;;
11898 *) stage1_cflags="-g -J" ;;
11899 esac ;;
1d39f329
NN
11900esac
11901
1d89b610
PB
11902# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11903if test "$GCC" = yes; then
11904 saved_CFLAGS="$CFLAGS"
11905
11906 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11907 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11908 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11909echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916
2038f525
PB
11917#if (__GNUC__ < 3) \
11918 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11919 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11920#error http://gcc.gnu.org/PR29382
11921#endif
11922
c6b750e1
DJ
11923int
11924main ()
11925{
11926
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
11932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag"
11941 || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 echo "$as_me:$LINENO: result: yes" >&5
11954echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11955else
11956 echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
11959echo "$as_me:$LINENO: result: no" >&5
11960echo "${ECHO_T}no" >&6
11961fi
11962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
11963
11964 CFLAGS="$saved_CFLAGS"
11965fi
11966
11967
1d39f329 11968
8a0d8a5c
PB
11969# Enable --enable-checking in stage1 of the compiler.
11970# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11971if test "${enable_stage1_checking+set}" = set; then
11972 enableval="$enable_stage1_checking"
11973 stage1_checking=--enable-checking=${enable_stage1_checking}
11974else
11975 if test "x$enable_checking" = xno; then
11976 stage1_checking=--enable-checking
11977else
11978 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11979fi
c6b750e1 11980fi;
8a0d8a5c
PB
11981
11982
1d39f329 11983# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
11984# Check whether --enable-werror or --disable-werror was given.
11985if test "${enable_werror+set}" = set; then
11986 enableval="$enable_werror"
c6b750e1 11987
1d39f329 11988else
a0323144 11989 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 11990 enable_werror=yes
79fcd0ec
PB
11991else
11992 enable_werror=no
11993fi
c6b750e1 11994fi;
1a6f2dc7
NN
11995case ${enable_werror} in
11996 yes) stage2_werror_flag="--enable-werror-always" ;;
11997 *) stage2_werror_flag="" ;;
1d39f329
NN
11998esac
11999
12000
108a6f8e 12001# Flags needed to enable html installing and building
c6b750e1 12002
108a6f8e
CD
12003# Check whether --with-datarootdir or --without-datarootdir was given.
12004if test "${with_datarootdir+set}" = set; then
12005 withval="$with_datarootdir"
12006 datarootdir="\${prefix}/${withval}"
12007else
12008 datarootdir="\${prefix}/share"
c6b750e1 12009fi;
108a6f8e
CD
12010
12011
12012# Check whether --with-docdir or --without-docdir was given.
12013if test "${with_docdir+set}" = set; then
12014 withval="$with_docdir"
12015 docdir="\${prefix}/${withval}"
12016else
12017 docdir="\${datarootdir}/doc"
c6b750e1 12018fi;
108a6f8e
CD
12019
12020
a3ca38d2
DD
12021# Check whether --with-pdfdir or --without-pdfdir was given.
12022if test "${with_pdfdir+set}" = set; then
12023 withval="$with_pdfdir"
12024 pdfdir="\${prefix}/${withval}"
12025else
12026 pdfdir="\${docdir}"
12027fi;
12028
12029
108a6f8e
CD
12030# Check whether --with-htmldir or --without-htmldir was given.
12031if test "${with_htmldir+set}" = set; then
12032 withval="$with_htmldir"
12033 htmldir="\${prefix}/${withval}"
12034else
12035 htmldir="\${docdir}"
c6b750e1 12036fi;
108a6f8e
CD
12037
12038
12039
12040
12041
b8025f34 12042
c6b750e1
DJ
12043 ac_config_files="$ac_config_files Makefile"
12044cat >confcache <<\_ACEOF
a0da8069
NN
12045# This file is a shell script that caches the results of configure
12046# tests run on this system so they can be shared between configure
c6b750e1
DJ
12047# scripts and configure runs, see configure's option --config-cache.
12048# It is not useful on other systems. If it contains results you don't
12049# want to keep, you may remove or edit it.
a0da8069 12050#
c6b750e1
DJ
12051# config.status only pays attention to the cache file if you give it
12052# the --recheck option to rerun configure.
a0da8069 12053#
c6b750e1
DJ
12054# `ac_cv_env_foo' variables (set or unset) will be overridden when
12055# loading this file, other *unset* `ac_cv_foo' will be assigned the
12056# following values.
12057
12058_ACEOF
12059
a0da8069
NN
12060# The following way of writing the cache mishandles newlines in values,
12061# but we know of no workaround that is simple, portable, and efficient.
12062# So, don't put newlines in cache variables' values.
12063# Ultrix sh set writes to stderr and can't be redirected directly,
12064# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12065{
12066 (set) 2>&1 |
12067 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12068 *ac_space=\ *)
12069 # `set' does not quote correctly, so add quotes (double-quote
12070 # substitution turns \\\\ into \\, and sed turns \\ into \).
12071 sed -n \
12072 "s/'/'\\\\''/g;
12073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12074 ;;
12075 *)
12076 # `set' quotes correctly as required by POSIX, so do not add quotes.
12077 sed -n \
12078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12079 ;;
12080 esac;
12081} |
12082 sed '
12083 t clear
12084 : clear
12085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12086 t end
12087 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12088 : end' >>confcache
12089if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12090 if test -w $cache_file; then
c6b750e1
DJ
12091 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12092 cat confcache >$cache_file
a0da8069
NN
12093 else
12094 echo "not updating unwritable cache $cache_file"
12095 fi
852e5f18 12096fi
a0da8069 12097rm -f confcache
852e5f18 12098
a0da8069
NN
12099test "x$prefix" = xNONE && prefix=$ac_default_prefix
12100# Let make expand exec_prefix.
12101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12102
c6b750e1
DJ
12103# VPATH may cause trouble with some makes, so we remove $(srcdir),
12104# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12105# trailing colons and then remove the whole line if VPATH becomes empty
12106# (actually we leave an empty line to preserve line numbers).
a0da8069 12107if test "x$srcdir" = x.; then
c6b750e1
DJ
12108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12109s/:*\$(srcdir):*/:/;
12110s/:*\${srcdir}:*/:/;
12111s/:*@srcdir@:*/:/;
12112s/^\([^=]*=[ ]*\):*/\1/;
12113s/:*$//;
12114s/^[^=]*=[ ]*$//;
12115}'
a0da8069 12116fi
252b5132 12117
a0da8069
NN
12118# Transform confdefs.h into DEFS.
12119# Protect against shell expansion while executing Makefile rules.
12120# Protect against Makefile macro expansion.
c6b750e1
DJ
12121#
12122# If the first sed substitution is executed (which looks for macros that
12123# take arguments), then we branch to the quote section. Otherwise,
12124# look for a macro that doesn't take arguments.
12125cat >confdef2opt.sed <<\_ACEOF
12126t clear
12127: clear
12128s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12129t quote
12130s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12131t quote
12132d
12133: quote
12134s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12135s,\[,\\&,g
12136s,\],\\&,g
12137s,\$,$$,g
12138p
12139_ACEOF
12140# We use echo to avoid assuming a particular line-breaking character.
12141# The extra dot is to prevent the shell from consuming trailing
12142# line-breaks from the sub-command output. A line-break within
12143# single-quotes doesn't work because, if this script is created in a
12144# platform that uses two characters for line-breaks (e.g., DOS), tr
12145# would break.
12146ac_LF_and_DOT=`echo; echo .`
12147DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12148rm -f confdef2opt.sed
12149
12150
12151ac_libobjs=
12152ac_ltlibobjs=
12153for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12154 # 1. Remove the extension, and $U if already installed.
12155 ac_i=`echo "$ac_i" |
12156 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12157 # 2. Add them.
12158 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12159 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12160done
12161LIBOBJS=$ac_libobjs
852e5f18 12162
c6b750e1 12163LTLIBOBJS=$ac_ltlibobjs
376a0e54 12164
cac3d6c4 12165
c6b750e1
DJ
12166
12167: ${CONFIG_STATUS=./config.status}
12168ac_clean_files_save=$ac_clean_files
12169ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12170{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12171echo "$as_me: creating $CONFIG_STATUS" >&6;}
12172cat >$CONFIG_STATUS <<_ACEOF
12173#! $SHELL
12174# Generated by $as_me.
a0da8069 12175# Run this file to recreate the current configuration.
a0da8069 12176# Compiler output produced by configure, useful for debugging
c6b750e1 12177# configure, is in config.log if it exists.
376a0e54 12178
c6b750e1
DJ
12179debug=false
12180ac_cs_recheck=false
12181ac_cs_silent=false
12182SHELL=\${CONFIG_SHELL-$SHELL}
12183_ACEOF
12184
12185cat >>$CONFIG_STATUS <<\_ACEOF
12186## --------------------- ##
12187## M4sh Initialization. ##
12188## --------------------- ##
12189
12190# Be Bourne compatible
12191if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12192 emulate sh
12193 NULLCMD=:
12194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12195 # is contrary to our usage. Disable this feature.
12196 alias -g '${1+"$@"}'='"$@"'
12197elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12198 set -o posix
12199fi
12200DUALCASE=1; export DUALCASE # for MKS sh
12201
12202# Support unset when possible.
12203if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12204 as_unset=unset
12205else
12206 as_unset=false
12207fi
12208
12209
12210# Work around bugs in pre-3.0 UWIN ksh.
12211$as_unset ENV MAIL MAILPATH
12212PS1='$ '
12213PS2='> '
12214PS4='+ '
12215
12216# NLS nuisances.
12217for as_var in \
12218 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12219 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12220 LC_TELEPHONE LC_TIME
12221do
12222 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12223 eval $as_var=C; export $as_var
12224 else
12225 $as_unset $as_var
12226 fi
12227done
12228
12229# Required to use basename.
12230if expr a : '\(a\)' >/dev/null 2>&1; then
12231 as_expr=expr
12232else
12233 as_expr=false
12234fi
12235
12236if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12237 as_basename=basename
12238else
12239 as_basename=false
12240fi
12241
12242
12243# Name of the executable.
12244as_me=`$as_basename "$0" ||
12245$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12246 X"$0" : 'X\(//\)$' \| \
12247 X"$0" : 'X\(/\)$' \| \
12248 . : '\(.\)' 2>/dev/null ||
12249echo X/"$0" |
12250 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12251 /^X\/\(\/\/\)$/{ s//\1/; q; }
12252 /^X\/\(\/\).*/{ s//\1/; q; }
12253 s/.*/./; q'`
12254
12255
12256# PATH needs CR, and LINENO needs CR and PATH.
12257# Avoid depending upon Character Ranges.
12258as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12259as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12260as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12261as_cr_digits='0123456789'
12262as_cr_alnum=$as_cr_Letters$as_cr_digits
12263
12264# The user is always right.
12265if test "${PATH_SEPARATOR+set}" != set; then
12266 echo "#! /bin/sh" >conf$$.sh
12267 echo "exit 0" >>conf$$.sh
12268 chmod +x conf$$.sh
12269 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12270 PATH_SEPARATOR=';'
12271 else
12272 PATH_SEPARATOR=:
12273 fi
12274 rm -f conf$$.sh
12275fi
12276
12277
12278 as_lineno_1=$LINENO
12279 as_lineno_2=$LINENO
12280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12281 test "x$as_lineno_1" != "x$as_lineno_2" &&
12282 test "x$as_lineno_3" = "x$as_lineno_2" || {
12283 # Find who we are. Look in the path if we contain no path at all
12284 # relative or not.
12285 case $0 in
12286 *[\\/]* ) as_myself=$0 ;;
12287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288for as_dir in $PATH
12289do
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12293done
12294
12295 ;;
12296 esac
12297 # We did not find ourselves, most probably we were run as `sh COMMAND'
12298 # in which case we are not to be found in the path.
12299 if test "x$as_myself" = x; then
12300 as_myself=$0
12301 fi
12302 if test ! -f "$as_myself"; then
12303 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12304echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12305 { (exit 1); exit 1; }; }
12306 fi
12307 case $CONFIG_SHELL in
12308 '')
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12311do
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
12314 for as_base in sh bash ksh sh5; do
12315 case $as_dir in
12316 /*)
12317 if ("$as_dir/$as_base" -c '
12318 as_lineno_1=$LINENO
12319 as_lineno_2=$LINENO
12320 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12321 test "x$as_lineno_1" != "x$as_lineno_2" &&
12322 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12323 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12324 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12325 CONFIG_SHELL=$as_dir/$as_base
12326 export CONFIG_SHELL
12327 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12328 fi;;
12329 esac
12330 done
12331done
12332;;
12333 esac
12334
12335 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12336 # uniformly replaced by the line number. The first 'sed' inserts a
12337 # line-number line before each line; the second 'sed' does the real
12338 # work. The second script uses 'N' to pair each line-number line
12339 # with the numbered line, and appends trailing '-' during
12340 # substitution so that $LINENO is not a special case at line end.
12341 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12342 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12343 sed '=' <$as_myself |
12344 sed '
12345 N
12346 s,$,-,
12347 : loop
12348 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12349 t loop
12350 s,-$,,
12351 s,^['$as_cr_digits']*\n,,
12352 ' >$as_me.lineno &&
12353 chmod +x $as_me.lineno ||
12354 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12355echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12356 { (exit 1); exit 1; }; }
12357
12358 # Don't try to exec as it changes $[0], causing all sort of problems
12359 # (the dirname of $[0] is not the place where we might find the
12360 # original and so on. Autoconf is especially sensible to this).
12361 . ./$as_me.lineno
12362 # Exit status is that of the last command.
12363 exit
12364}
12365
12366
12367case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12368 *c*,-n*) ECHO_N= ECHO_C='
12369' ECHO_T=' ' ;;
12370 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12371 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12372esac
12373
12374if expr a : '\(a\)' >/dev/null 2>&1; then
12375 as_expr=expr
12376else
12377 as_expr=false
12378fi
12379
12380rm -f conf$$ conf$$.exe conf$$.file
12381echo >conf$$.file
12382if ln -s conf$$.file conf$$ 2>/dev/null; then
12383 # We could just check for DJGPP; but this test a) works b) is more generic
12384 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12385 if test -f conf$$.exe; then
12386 # Don't use ln at all; we don't have any links
12387 as_ln_s='cp -p'
12388 else
12389 as_ln_s='ln -s'
12390 fi
12391elif ln conf$$.file conf$$ 2>/dev/null; then
12392 as_ln_s=ln
12393else
12394 as_ln_s='cp -p'
12395fi
12396rm -f conf$$ conf$$.exe conf$$.file
12397
12398if mkdir -p . 2>/dev/null; then
12399 as_mkdir_p=:
12400else
12401 test -d ./-p && rmdir ./-p
12402 as_mkdir_p=false
12403fi
12404
12405as_executable_p="test -f"
12406
12407# Sed expression to map a string onto a valid CPP name.
12408as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12409
12410# Sed expression to map a string onto a valid variable name.
12411as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12412
12413
12414# IFS
12415# We need space, tab and new line, in precisely that order.
12416as_nl='
12417'
12418IFS=" $as_nl"
12419
12420# CDPATH.
12421$as_unset CDPATH
12422
12423exec 6>&1
12424
12425# Open the log real soon, to keep \$[0] and so on meaningful, and to
12426# report actual input values of CONFIG_FILES etc. instead of their
12427# values after options handling. Logging --version etc. is OK.
12428exec 5>>config.log
12429{
12430 echo
12431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12432## Running $as_me. ##
12433_ASBOX
12434} >&5
12435cat >&5 <<_CSEOF
12436
12437This file was extended by $as_me, which was
12438generated by GNU Autoconf 2.59. Invocation command line was
12439
12440 CONFIG_FILES = $CONFIG_FILES
12441 CONFIG_HEADERS = $CONFIG_HEADERS
12442 CONFIG_LINKS = $CONFIG_LINKS
12443 CONFIG_COMMANDS = $CONFIG_COMMANDS
12444 $ $0 $@
12445
12446_CSEOF
12447echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12448echo >&5
12449_ACEOF
12450
12451# Files that config.status was made for.
12452if test -n "$ac_config_files"; then
12453 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12454fi
12455
12456if test -n "$ac_config_headers"; then
12457 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12458fi
12459
12460if test -n "$ac_config_links"; then
12461 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12462fi
12463
12464if test -n "$ac_config_commands"; then
12465 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12466fi
12467
12468cat >>$CONFIG_STATUS <<\_ACEOF
12469
12470ac_cs_usage="\
12471\`$as_me' instantiates files from templates according to the
12472current configuration.
12473
12474Usage: $0 [OPTIONS] [FILE]...
12475
12476 -h, --help print this help, then exit
12477 -V, --version print version number, then exit
12478 -q, --quiet do not print progress messages
12479 -d, --debug don't remove temporary files
12480 --recheck update $as_me by reconfiguring in the same conditions
12481 --file=FILE[:TEMPLATE]
12482 instantiate the configuration file FILE
12483
12484Configuration files:
12485$config_files
12486
12487Report bugs to <bug-autoconf@gnu.org>."
12488_ACEOF
12489
12490cat >>$CONFIG_STATUS <<_ACEOF
12491ac_cs_version="\\
12492config.status
12493configured by $0, generated by GNU Autoconf 2.59,
12494 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12495
12496Copyright (C) 2003 Free Software Foundation, Inc.
12497This config.status script is free software; the Free Software Foundation
12498gives unlimited permission to copy, distribute and modify it."
12499srcdir=$srcdir
12500INSTALL="$INSTALL"
12501_ACEOF
12502
12503cat >>$CONFIG_STATUS <<\_ACEOF
12504# If no file are specified by the user, then we need to provide default
12505# value. By we need to know if files were specified by the user.
12506ac_need_defaults=:
12507while test $# != 0
a0da8069 12508do
c6b750e1
DJ
12509 case $1 in
12510 --*=*)
12511 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12512 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12513 ac_shift=:
12514 ;;
12515 -*)
12516 ac_option=$1
12517 ac_optarg=$2
12518 ac_shift=shift
12519 ;;
12520 *) # This is not an option, so the user has probably given explicit
12521 # arguments.
12522 ac_option=$1
12523 ac_need_defaults=false;;
12524 esac
12525
12526 case $ac_option in
12527 # Handling of the options.
12528_ACEOF
12529cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12531 ac_cs_recheck=: ;;
12532 --version | --vers* | -V )
12533 echo "$ac_cs_version"; exit 0 ;;
12534 --he | --h)
12535 # Conflict between --help and --header
12536 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12537Try \`$0 --help' for more information." >&5
12538echo "$as_me: error: ambiguous option: $1
12539Try \`$0 --help' for more information." >&2;}
12540 { (exit 1); exit 1; }; };;
12541 --help | --hel | -h )
12542 echo "$ac_cs_usage"; exit 0 ;;
12543 --debug | --d* | -d )
12544 debug=: ;;
12545 --file | --fil | --fi | --f )
12546 $ac_shift
12547 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12548 ac_need_defaults=false;;
12549 --header | --heade | --head | --hea )
12550 $ac_shift
12551 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12552 ac_need_defaults=false;;
12553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12555 ac_cs_silent=: ;;
12556
12557 # This is an error.
12558 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12559Try \`$0 --help' for more information." >&5
12560echo "$as_me: error: unrecognized option: $1
12561Try \`$0 --help' for more information." >&2;}
12562 { (exit 1); exit 1; }; } ;;
12563
12564 *) ac_config_targets="$ac_config_targets $1" ;;
12565
376a0e54 12566 esac
c6b750e1 12567 shift
376a0e54
CM
12568done
12569
c6b750e1 12570ac_configure_extra_args=
376a0e54 12571
c6b750e1
DJ
12572if $ac_cs_silent; then
12573 exec 6>/dev/null
12574 ac_configure_extra_args="$ac_configure_extra_args --silent"
12575fi
376a0e54 12576
c6b750e1
DJ
12577_ACEOF
12578cat >>$CONFIG_STATUS <<_ACEOF
12579if \$ac_cs_recheck; then
12580 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12581 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12582fi
12583
12584_ACEOF
12585
12586
12587
12588
12589
12590cat >>$CONFIG_STATUS <<\_ACEOF
12591for ac_config_target in $ac_config_targets
12592do
12593 case "$ac_config_target" in
12594 # Handling of arguments.
12595 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12597echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12598 { (exit 1); exit 1; }; };;
12599 esac
12600done
12601
12602# If the user did not use the arguments to specify the items to instantiate,
12603# then the envvar interface is used. Set only those that are not.
12604# We use the long form for the default assignment because of an extremely
12605# bizarre bug on SunOS 4.1.3.
12606if $ac_need_defaults; then
12607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12608fi
12609
12610# Have a temporary directory for convenience. Make it in the build tree
12611# simply because there is no reason to put it here, and in addition,
12612# creating and moving files from /tmp can sometimes cause problems.
12613# Create a temporary directory, and hook for its removal unless debugging.
12614$debug ||
12615{
12616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12617 trap '{ (exit 1); exit 1; }' 1 2 13 15
12618}
12619
12620# Create a (secure) tmp directory for tmp files.
12621
12622{
12623 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12624 test -n "$tmp" && test -d "$tmp"
12625} ||
12626{
12627 tmp=./confstat$$-$RANDOM
12628 (umask 077 && mkdir $tmp)
12629} ||
12630{
12631 echo "$me: cannot create a temporary directory in ." >&2
12632 { (exit 1); exit 1; }
12633}
12634
12635_ACEOF
12636
12637cat >>$CONFIG_STATUS <<_ACEOF
12638
12639#
12640# CONFIG_FILES section.
12641#
12642
12643# No need to generate the scripts if there are no CONFIG_FILES.
12644# This happens for instance when ./config.status config.h
12645if test -n "\$CONFIG_FILES"; then
12646 # Protect against being on the right side of a sed subst in config.status.
12647 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12648 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12649s,@SHELL@,$SHELL,;t t
12650s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12651s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12652s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12653s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12654s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12655s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12656s,@exec_prefix@,$exec_prefix,;t t
12657s,@prefix@,$prefix,;t t
12658s,@program_transform_name@,$program_transform_name,;t t
12659s,@bindir@,$bindir,;t t
12660s,@sbindir@,$sbindir,;t t
12661s,@libexecdir@,$libexecdir,;t t
12662s,@datadir@,$datadir,;t t
12663s,@sysconfdir@,$sysconfdir,;t t
12664s,@sharedstatedir@,$sharedstatedir,;t t
12665s,@localstatedir@,$localstatedir,;t t
12666s,@libdir@,$libdir,;t t
12667s,@includedir@,$includedir,;t t
12668s,@oldincludedir@,$oldincludedir,;t t
12669s,@infodir@,$infodir,;t t
12670s,@mandir@,$mandir,;t t
12671s,@build_alias@,$build_alias,;t t
12672s,@host_alias@,$host_alias,;t t
12673s,@target_alias@,$target_alias,;t t
12674s,@DEFS@,$DEFS,;t t
12675s,@ECHO_C@,$ECHO_C,;t t
12676s,@ECHO_N@,$ECHO_N,;t t
12677s,@ECHO_T@,$ECHO_T,;t t
12678s,@LIBS@,$LIBS,;t t
12679s,@build@,$build,;t t
12680s,@build_cpu@,$build_cpu,;t t
12681s,@build_vendor@,$build_vendor,;t t
12682s,@build_os@,$build_os,;t t
12683s,@build_noncanonical@,$build_noncanonical,;t t
12684s,@host_noncanonical@,$host_noncanonical,;t t
12685s,@target_noncanonical@,$target_noncanonical,;t t
12686s,@host@,$host,;t t
12687s,@host_cpu@,$host_cpu,;t t
12688s,@host_vendor@,$host_vendor,;t t
12689s,@host_os@,$host_os,;t t
12690s,@target@,$target,;t t
12691s,@target_cpu@,$target_cpu,;t t
12692s,@target_vendor@,$target_vendor,;t t
12693s,@target_os@,$target_os,;t t
12694s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12695s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12696s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12697s,@LN@,$LN,;t t
12698s,@LN_S@,$LN_S,;t t
12699s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12700s,@build_libsubdir@,$build_libsubdir,;t t
12701s,@build_subdir@,$build_subdir,;t t
12702s,@host_subdir@,$host_subdir,;t t
12703s,@target_subdir@,$target_subdir,;t t
12704s,@CC@,$CC,;t t
12705s,@CFLAGS@,$CFLAGS,;t t
12706s,@LDFLAGS@,$LDFLAGS,;t t
12707s,@CPPFLAGS@,$CPPFLAGS,;t t
12708s,@ac_ct_CC@,$ac_ct_CC,;t t
12709s,@EXEEXT@,$EXEEXT,;t t
12710s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12711s,@CXX@,$CXX,;t t
12712s,@CXXFLAGS@,$CXXFLAGS,;t t
12713s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12714s,@GNATBIND@,$GNATBIND,;t t
12715s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12716s,@GNATMAKE@,$GNATMAKE,;t t
12717s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12718s,@do_compare@,$do_compare,;t t
12719s,@gmplibs@,$gmplibs,;t t
12720s,@gmpinc@,$gmpinc,;t t
12721s,@stage1_languages@,$stage1_languages,;t t
12722s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12723s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12724s,@tooldir@,$tooldir,;t t
12725s,@build_tooldir@,$build_tooldir,;t t
12726s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12727s,@GDB_TK@,$GDB_TK,;t t
12728s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12729s,@build_configargs@,$build_configargs,;t t
12730s,@build_configdirs@,$build_configdirs,;t t
12731s,@host_configargs@,$host_configargs,;t t
12732s,@configdirs@,$configdirs,;t t
12733s,@target_configargs@,$target_configargs,;t t
12734s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12735s,@config_shell@,$config_shell,;t t
12736s,@YACC@,$YACC,;t t
12737s,@BISON@,$BISON,;t t
12738s,@M4@,$M4,;t t
12739s,@LEX@,$LEX,;t t
12740s,@FLEX@,$FLEX,;t t
12741s,@MAKEINFO@,$MAKEINFO,;t t
12742s,@EXPECT@,$EXPECT,;t t
12743s,@RUNTEST@,$RUNTEST,;t t
12744s,@AR@,$AR,;t t
12745s,@AS@,$AS,;t t
12746s,@DLLTOOL@,$DLLTOOL,;t t
12747s,@LD@,$LD,;t t
12748s,@LIPO@,$LIPO,;t t
12749s,@NM@,$NM,;t t
12750s,@RANLIB@,$RANLIB,;t t
12751s,@STRIP@,$STRIP,;t t
12752s,@WINDRES@,$WINDRES,;t t
0c24b341 12753s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12754s,@OBJCOPY@,$OBJCOPY,;t t
12755s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12756s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12757s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12758s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12759s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12760s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12761s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12762s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12763s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12764s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12765s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12766s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12767s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12768s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12769s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12770s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12771s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12772s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12773s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12774s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12775s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12776s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12777s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12778s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12779s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12780s,@MAINT@,$MAINT,;t t
12781s,@stage1_cflags@,$stage1_cflags,;t t
12782s,@stage1_checking@,$stage1_checking,;t t
12783s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12784s,@datarootdir@,$datarootdir,;t t
12785s,@docdir@,$docdir,;t t
a3ca38d2 12786s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12787s,@htmldir@,$htmldir,;t t
12788s,@LIBOBJS@,$LIBOBJS,;t t
12789s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12790/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12791s,@serialization_dependencies@,,;t t
a0da8069 12792/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12793s,@host_makefile_frag@,,;t t
a0da8069 12794/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12795s,@target_makefile_frag@,,;t t
a0da8069 12796/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12797s,@alphaieee_frag@,,;t t
a0da8069 12798/@ospace_frag@/r $ospace_frag
c6b750e1 12799s,@ospace_frag@,,;t t
a0da8069 12800CEOF
252b5132 12801
c6b750e1
DJ
12802_ACEOF
12803
12804 cat >>$CONFIG_STATUS <<\_ACEOF
12805 # Split the substitutions into bite-sized pieces for seds with
12806 # small command number limits, like on Digital OSF/1 and HP-UX.
12807 ac_max_sed_lines=48
12808 ac_sed_frag=1 # Number of current file.
12809 ac_beg=1 # First line for current file.
12810 ac_end=$ac_max_sed_lines # Line after last line for current file.
12811 ac_more_lines=:
12812 ac_sed_cmds=
12813 while $ac_more_lines; do
12814 if test $ac_beg -gt 1; then
12815 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12816 else
12817 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12818 fi
12819 if test ! -s $tmp/subs.frag; then
12820 ac_more_lines=false
a0da8069 12821 else
c6b750e1
DJ
12822 # The purpose of the label and of the branching condition is to
12823 # speed up the sed processing (if there are no `@' at all, there
12824 # is no need to browse any of the substitutions).
12825 # These are the two extra sed commands mentioned above.
12826 (echo ':t
12827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12828 if test -z "$ac_sed_cmds"; then
12829 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12830 else
12831 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12832 fi
12833 ac_sed_frag=`expr $ac_sed_frag + 1`
12834 ac_beg=$ac_end
12835 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12836 fi
c6b750e1
DJ
12837 done
12838 if test -z "$ac_sed_cmds"; then
12839 ac_sed_cmds=cat
852e5f18 12840 fi
c6b750e1 12841fi # test -n "$CONFIG_FILES"
cac3d6c4 12842
c6b750e1
DJ
12843_ACEOF
12844cat >>$CONFIG_STATUS <<\_ACEOF
12845for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12847 case $ac_file in
12848 - | *:- | *:-:* ) # input from stdin
12849 cat >$tmp/stdin
12850 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12852 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12854 * ) ac_file_in=$ac_file.in ;;
a0da8069 12855 esac
252b5132 12856
c6b750e1
DJ
12857 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12858 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12859$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12860 X"$ac_file" : 'X\(//\)[^/]' \| \
12861 X"$ac_file" : 'X\(//\)$' \| \
12862 X"$ac_file" : 'X\(/\)' \| \
12863 . : '\(.\)' 2>/dev/null ||
12864echo X"$ac_file" |
12865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12867 /^X\(\/\/\)$/{ s//\1/; q; }
12868 /^X\(\/\).*/{ s//\1/; q; }
12869 s/.*/./; q'`
12870 { if $as_mkdir_p; then
12871 mkdir -p "$ac_dir"
cac3d6c4 12872 else
c6b750e1
DJ
12873 as_dir="$ac_dir"
12874 as_dirs=
12875 while test ! -d "$as_dir"; do
12876 as_dirs="$as_dir $as_dirs"
12877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12879 X"$as_dir" : 'X\(//\)[^/]' \| \
12880 X"$as_dir" : 'X\(//\)$' \| \
12881 X"$as_dir" : 'X\(/\)' \| \
12882 . : '\(.\)' 2>/dev/null ||
12883echo X"$as_dir" |
12884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12886 /^X\(\/\/\)$/{ s//\1/; q; }
12887 /^X\(\/\).*/{ s//\1/; q; }
12888 s/.*/./; q'`
12889 done
12890 test ! -n "$as_dirs" || mkdir $as_dirs
12891 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12892echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12893 { (exit 1); exit 1; }; }; }
12894
12895 ac_builddir=.
252b5132 12896
c6b750e1
DJ
12897if test "$ac_dir" != .; then
12898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12899 # A "../" for each directory in $ac_dir_suffix.
12900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12901else
12902 ac_dir_suffix= ac_top_builddir=
12903fi
12904
12905case $srcdir in
12906 .) # No --srcdir option. We are building in place.
12907 ac_srcdir=.
12908 if test -z "$ac_top_builddir"; then
12909 ac_top_srcdir=.
12910 else
12911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12912 fi ;;
12913 [\\/]* | ?:[\\/]* ) # Absolute path.
12914 ac_srcdir=$srcdir$ac_dir_suffix;
12915 ac_top_srcdir=$srcdir ;;
a0da8069 12916 *) # Relative path.
c6b750e1
DJ
12917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12919esac
252b5132 12920
c6b750e1
DJ
12921# Do not use `cd foo && pwd` to compute absolute paths, because
12922# the directories may not exist.
12923case `pwd` in
12924.) ac_abs_builddir="$ac_dir";;
12925*)
12926 case "$ac_dir" in
12927 .) ac_abs_builddir=`pwd`;;
12928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12930 esac;;
12931esac
12932case $ac_abs_builddir in
12933.) ac_abs_top_builddir=${ac_top_builddir}.;;
12934*)
12935 case ${ac_top_builddir}. in
12936 .) ac_abs_top_builddir=$ac_abs_builddir;;
12937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12939 esac;;
12940esac
12941case $ac_abs_builddir in
12942.) ac_abs_srcdir=$ac_srcdir;;
12943*)
12944 case $ac_srcdir in
12945 .) ac_abs_srcdir=$ac_abs_builddir;;
12946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12948 esac;;
12949esac
12950case $ac_abs_builddir in
12951.) ac_abs_top_srcdir=$ac_top_srcdir;;
12952*)
12953 case $ac_top_srcdir in
12954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12957 esac;;
12958esac
252b5132 12959
c6b750e1
DJ
12960
12961 case $INSTALL in
12962 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12963 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 12964 esac
252b5132 12965
c6b750e1
DJ
12966 if test x"$ac_file" != x-; then
12967 { echo "$as_me:$LINENO: creating $ac_file" >&5
12968echo "$as_me: creating $ac_file" >&6;}
12969 rm -f "$ac_file"
12970 fi
12971 # Let's still pretend it is `configure' which instantiates (i.e., don't
12972 # use $as_me), people would be surprised to read:
12973 # /* config.h. Generated by config.status. */
12974 if test x"$ac_file" = x-; then
12975 configure_input=
12976 else
12977 configure_input="$ac_file. "
12978 fi
12979 configure_input=$configure_input"Generated from `echo $ac_file_in |
12980 sed 's,.*/,,'` by configure."
12981
12982 # First look for the input files in the build tree, otherwise in the
12983 # src tree.
12984 ac_file_inputs=`IFS=:
12985 for f in $ac_file_in; do
12986 case $f in
12987 -) echo $tmp/stdin ;;
12988 [\\/$]*)
12989 # Absolute (can't be DOS-style, as IFS=:)
12990 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12991echo "$as_me: error: cannot find input file: $f" >&2;}
12992 { (exit 1); exit 1; }; }
12993 echo "$f";;
12994 *) # Relative
12995 if test -f "$f"; then
12996 # Build tree
12997 echo "$f"
12998 elif test -f "$srcdir/$f"; then
12999 # Source tree
13000 echo "$srcdir/$f"
13001 else
13002 # /dev/null tree
13003 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13004echo "$as_me: error: cannot find input file: $f" >&2;}
13005 { (exit 1); exit 1; }; }
13006 fi;;
13007 esac
13008 done` || { (exit 1); exit 1; }
13009_ACEOF
13010cat >>$CONFIG_STATUS <<_ACEOF
13011 sed "$ac_vpsub
13012$extrasub
13013_ACEOF
13014cat >>$CONFIG_STATUS <<\_ACEOF
13015:t
13016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13017s,@configure_input@,$configure_input,;t t
13018s,@srcdir@,$ac_srcdir,;t t
13019s,@abs_srcdir@,$ac_abs_srcdir,;t t
13020s,@top_srcdir@,$ac_top_srcdir,;t t
13021s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13022s,@builddir@,$ac_builddir,;t t
13023s,@abs_builddir@,$ac_abs_builddir,;t t
13024s,@top_builddir@,$ac_top_builddir,;t t
13025s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13026s,@INSTALL@,$ac_INSTALL,;t t
13027" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13028 rm -f $tmp/stdin
13029 if test x"$ac_file" != x-; then
13030 mv $tmp/out $ac_file
13031 else
13032 cat $tmp/out
13033 rm -f $tmp/out
13034 fi
c148b4cb 13035
c6b750e1
DJ
13036done
13037_ACEOF
c148b4cb 13038
c6b750e1 13039cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13040
c6b750e1
DJ
13041{ (exit 0); exit 0; }
13042_ACEOF
c148b4cb 13043chmod +x $CONFIG_STATUS
c6b750e1
DJ
13044ac_clean_files=$ac_clean_files_save
13045
13046
13047# configure is writing to config.log, and then calls config.status.
13048# config.status does its own redirection, appending to config.log.
13049# Unfortunately, on DOS this fails, as config.log is still kept open
13050# by configure, so config.status won't be able to write to it; its
13051# output is simply discarded. So we exec the FD to /dev/null,
13052# effectively closing config.log, so it can be properly (re)opened and
13053# appended to by config.status. When coming back to configure, we
13054# need to make the FD available again.
13055if test "$no_create" != yes; then
13056 ac_cs_success=:
13057 ac_config_status_args=
13058 test "$silent" = yes &&
13059 ac_config_status_args="$ac_config_status_args --quiet"
13060 exec 5>/dev/null
13061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13062 exec 5>>config.log
13063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13064 # would make configure fail if this is the last instruction.
13065 $ac_cs_success || { (exit 1); exit 1; }
13066fi
c148b4cb 13067