]> gcc.gnu.org Git - gcc.git/blame - configure
gfortran.texi (Fortran 2003): Add ISO Bind C.
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
2aeb72e9 3# Generated by GNU Autoconf 2.59.
671aa708 4#
2aeb72e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
2aeb72e9 12# Be Bourne compatible
1c710c3c
DJ
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+"$@"}'='"$@"'
2aeb72e9
DD
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
1c710c3c 21fi
2aeb72e9 22DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
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.
2aeb72e9 33$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
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
2aeb72e9 47 $as_unset $as_var
1c710c3c
DJ
48 fi
49done
50
51# Required to use basename.
2aeb72e9 52if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
53 as_expr=expr
54else
55 as_expr=false
56fi
57
2aeb72e9 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
2aeb72e9 66as_me=`$as_basename "$0" ||
1c710c3c
DJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
1c710c3c 71echo X/"$0" |
2aeb72e9
DD
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
1c710c3c 76
1c710c3c 77
2aeb72e9
DD
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
11a67599 85
2aeb72e9
DD
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
11a67599
ZW
97fi
98
11a67599 99
2aeb72e9
DD
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
11a67599 116
2aeb72e9
DD
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 '')
1c710c3c
DJ
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=.
2aeb72e9
DD
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
1c710c3c 137 /*)
2aeb72e9 138 if ("$as_dir/$as_base" -c '
11a67599
ZW
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
2aeb72e9 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11a67599 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
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
1c710c3c
DJ
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
2aeb72e9
DD
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.
1c710c3c 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
1c710c3c
DJ
165 sed '
166 N
2aeb72e9
DD
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 170 t loop
2aeb72e9
DD
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
1c710c3c 173 ' >$as_me.lineno &&
2aeb72e9 174 chmod +x $as_me.lineno ||
1c710c3c
DJ
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
2aeb72e9
DD
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
1c710c3c
DJ
182 # Exit status is that of the last command.
183 exit
184}
185
186
2aeb72e9
DD
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= ;;
1c710c3c
DJ
192esac
193
2aeb72e9 194if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
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
2aeb72e9
DD
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
1c710c3c 207 as_ln_s='cp -p'
2aeb72e9
DD
208 else
209 as_ln_s='ln -s'
210 fi
1c710c3c
DJ
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
2aeb72e9 216rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
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
2aeb72e9 225as_executable_p="test -f"
0b0dc272 226
1c710c3c
DJ
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
2aeb72e9
DD
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
1c710c3c
DJ
242
243
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
2aeb72e9
DD
249exec 6>&1
250
1c710c3c
DJ
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
2aeb72e9
DD
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
1c710c3c
DJ
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
901119ae 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'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
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.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
2aeb72e9 306datadir='${prefix}/share'
671aa708
NN
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
2aeb72e9 310libdir='${exec_prefix}/lib'
671aa708
NN
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
2aeb72e9
DD
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
2aeb72e9 321 eval "$ac_prev=\$ac_option"
671aa708
NN
322 ac_prev=
323 continue
324 fi
79c06341 325
2aeb72e9 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
2aeb72e9 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708 351
2aeb72e9 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 353 ac_prev=datadir ;;
2aeb72e9
DD
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
2aeb72e9 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
2aeb72e9
DD
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
2aeb72e9 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
2aeb72e9
DD
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
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=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
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 ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
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=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
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 \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
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=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
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=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
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=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
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=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
2aeb72e9 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
2aeb72e9
DD
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
2aeb72e9 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
2aeb72e9
DD
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
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=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
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=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
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; }; }
2aeb72e9
DD
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
602 export $ac_envvar ;;
603
671aa708 604 *)
1c710c3c
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}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
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; }; }
af71363e 619fi
af71363e 620
2aeb72e9
DD
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
671aa708 623do
2aeb72e9 624 eval ac_val=$`echo $ac_var`
1c710c3c 625 case $ac_val in
2aeb72e9
DD
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
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
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; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
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
0b0dc272 650
1c710c3c
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
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
2aeb72e9
DD
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
1c710c3c 678echo X"$0" |
2aeb72e9
DD
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708 684 srcdir=$ac_confdir
2aeb72e9 685 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
2aeb72e9
DD
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 697 { (exit 1); exit 1; }; }
2aeb72e9 698 fi
1c710c3c 699fi
2aeb72e9
DD
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
1c710c3c 702 { (exit 1); exit 1; }; }
2aeb72e9
DD
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
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
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
901119ae
KT
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
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
901119ae
KT
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
1c710c3c
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
2aeb72e9
DD
880_ACEOF
881
882 cat <<_ACEOF
1c710c3c
DJ
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]
2aeb72e9 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
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]
2aeb72e9
DD
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
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
923fi
924
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]
932 --enable-libada Builds libada directory
933 --enable-libssp Builds libssp directory
934 --enable-stage1-languages=all choose additional languages to build during
935 stage1. Mostly useful for compiler development.
936 --enable-objc-gc enable the use of Boehm's garbage collector with
937 the 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
941 sub-packages for the host, target or build
942 machine, or all sub-packages
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
945 --enable-stage1-checking=all choose additional checking for stage1
946 of the compiler.
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
953 --with-mpfr-dir=PATH This option has been REMOVED
954 --with-mpfr=PATH Specify prefix directory for installed MPFR package
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
958 Specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH Specify the 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
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
964 --with-gmp-include=PATH Specify directory for installed GMP include files
965 --with-gmp-lib=PATH Specify the directory for the installed GMP library
966 --with-build-sysroot=sysroot
967 use sysroot as the system root during the build
968 --with-build-time-tools=path
969 use given path to find target tools during the build
970 --with-datarootdir Use datarootdir as the data root directory.
971 --with-docdir Install documentation in this directory.
9c4d2493 972 --with-pdfdir Install pdf in this directory.
1c710c3c
DJ
973 --with-htmldir Install html in this directory.
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>
2aeb72e9
DD
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
c3a86da9
DJ
982 CXX C++ compiler command
983 CXXFLAGS C++ compiler flags
278a7a38
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
901119ae 993 WINDMC WINDMC for the host
278a7a38
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
901119ae
KT
1026 WINDMC_FOR_TARGET
1027 WINDMC for the target
1c710c3c
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.
2aeb72e9 1037 ac_popdir=`pwd`
1c710c3c 1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1039 test -d $ac_dir || continue
1c710c3c
DJ
1040 ac_builddir=.
1041
2aeb72e9 1042if test "$ac_dir" != .; then
1c710c3c 1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
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
1c710c3c
DJ
1049
1050case $srcdir in
2aeb72e9 1051 .) # No --srcdir option. We are building in place.
1c710c3c 1052 ac_srcdir=.
2aeb72e9
DD
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.
1c710c3c 1059 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
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;;
1c710c3c 1103esac
2aeb72e9
DD
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
1c710c3c
DJ
1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1119 fi
1120 cd $ac_popdir
1c710c3c
DJ
1121 done
1122fi
1123
2aeb72e9 1124test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1125if $ac_init_version; then
1126 cat <<\_ACEOF
1127
2aeb72e9 1128Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1129This configure script is free software; the Free Software Foundation
1130gives unlimited permission to copy, distribute and modify it.
1131_ACEOF
2aeb72e9 1132 exit 0
0b0dc272 1133fi
2aeb72e9
DD
1134exec 5>config.log
1135cat >&5 <<_ACEOF
1c710c3c
DJ
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
2aeb72e9 1140generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
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`
2aeb72e9 1163hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
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=
2aeb72e9 1198ac_sep=
1c710c3c
DJ
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 ;;
2aeb72e9 1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
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
2aeb72e9
DD
1231 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1232 # Get rid of the leading space.
1233 ac_sep=" "
1c710c3c
DJ
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.
2aeb72e9
DD
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.
1c710c3c
DJ
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,
2aeb72e9 1258{
1c710c3c 1259 (set) 2>&1 |
2aeb72e9
DD
1260 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261 *ac_space=\ *)
1c710c3c 1262 sed -n \
2aeb72e9
DD
1263 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265 ;;
1c710c3c 1266 *)
2aeb72e9
DD
1267 sed -n \
1268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1269 ;;
2aeb72e9
DD
1270 esac;
1271}
1c710c3c
DJ
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
2aeb72e9
DD
1282 eval ac_val=$`echo $ac_var`
1283 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1284 done | sort
1285 echo
1286
1287 if test -n "$ac_subst_files"; then
1288 cat <<\_ASBOX
2aeb72e9
DD
1289## ------------- ##
1290## Output files. ##
1291## ------------- ##
1c710c3c
DJ
1292_ASBOX
1293 echo
1294 for ac_var in $ac_subst_files
1295 do
2aeb72e9
DD
1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
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
2aeb72e9 1309 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
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
2aeb72e9
DD
1316 rm -f core *.core &&
1317 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1318 exit $exit_status
2aeb72e9 1319 ' 0
1c710c3c
DJ
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.
2aeb72e9
DD
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
1c710c3c
DJ
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
0b0dc272 1345
1c710c3c
DJ
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.
671aa708 1358# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
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"
1364 fi
671aa708 1365fi
2aeb72e9 1366for ac_site_file in $CONFIG_SITE; do
671aa708 1367 if test -r "$ac_site_file"; then
1c710c3c
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
671aa708
NN
1371 . "$ac_site_file"
1372 fi
1373done
1374
1375if test -r "$cache_file"; then
1c710c3c
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
2aeb72e9
DD
1382 [\\/]* | ?:[\\/]* ) . $cache_file;;
1383 *) . ./$cache_file;;
1c710c3c
DJ
1384 esac
1385 fi
671aa708 1386else
1c710c3c
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
2aeb72e9
DD
1395for ac_var in `(set) 2>&1 |
1396 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1398 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1399 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1400 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
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
2aeb72e9
DD
1425 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
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; }; }
671aa708
NN
1441fi
1442
2aeb72e9
DD
1443ac_ext=c
1444ac_cpp='$CPP $CPPFLAGS'
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
1c710c3c
DJ
1449
1450
1451
1452
671aa708
NN
1453
1454
d02c69be 1455
1c710c3c
DJ
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469# Find the build, host, and target systems.
671aa708 1470ac_aux_dir=
2aeb72e9
DD
1471for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1472 if test -f $ac_dir/install-sh; then
671aa708
NN
1473 ac_aux_dir=$ac_dir
1474 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 break
2aeb72e9 1476 elif test -f $ac_dir/install.sh; then
671aa708
NN
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 break
2aeb72e9 1480 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/shtool install -c"
1483 break
671aa708
NN
1484 fi
1485done
1486if test -z "$ac_aux_dir"; then
2aeb72e9
DD
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;}
1c710c3c 1489 { (exit 1); exit 1; }; }
671aa708 1490fi
2aeb72e9
DD
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.
671aa708 1494
1c710c3c 1495# Make sure we can run config.sub.
2aeb72e9
DD
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;}
1c710c3c
DJ
1499 { (exit 1); exit 1; }; }
1500
2aeb72e9
DD
1501echo "$as_me:$LINENO: checking build system type" >&5
1502echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1503if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
2aeb72e9
DD
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" &&
1c710c3c
DJ
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; }; }
2aeb72e9
DD
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;}
1c710c3c
DJ
1516 { (exit 1); exit 1; }; }
1517
1518fi
2aeb72e9
DD
1519echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1521build=$ac_cv_build
2aeb72e9
DD
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/'`
671aa708 1525
671aa708 1526
1c710c3c
DJ
1527 case ${build_alias} in
1528 "") build_noncanonical=${build} ;;
1529 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1530esac
1531
1532
af71363e 1533
1c710c3c
DJ
1534 case ${host_alias} in
1535 "") host_noncanonical=${build_noncanonical} ;;
1536 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1537esac
1538
af71363e 1539
1c710c3c
DJ
1540
1541 case ${target_alias} in
1542 "") target_noncanonical=${host_noncanonical} ;;
1543 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1544esac
1545
af71363e 1546
1c710c3c
DJ
1547
1548
1549test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
1c710c3c 1552 program_transform_name=s,y,y,
af71363e 1553
2aeb72e9
DD
1554echo "$as_me:$LINENO: checking host system type" >&5
1555echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1556if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1558else
2aeb72e9
DD
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;}
1c710c3c
DJ
1565 { (exit 1); exit 1; }; }
1566
af71363e 1567fi
2aeb72e9
DD
1568echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1570host=$ac_cv_host
2aeb72e9
DD
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
1c710c3c
DJ
1578if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
2aeb72e9
DD
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;}
1c710c3c
DJ
1587 { (exit 1); exit 1; }; }
1588
1589fi
2aeb72e9
DD
1590echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1592target=$ac_cv_target
2aeb72e9
DD
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/'`
1c710c3c
DJ
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}-
671aa708 1604test "$program_prefix" != NONE &&
2aeb72e9 1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1606# Use a double $ so make ignores it.
1607test "$program_suffix" != NONE &&
2aeb72e9 1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
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`
2aeb72e9 1615rm conftest.sed
af71363e 1616
671aa708
NN
1617
1618
775956d0
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
1c710c3c 1627# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
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"
1c710c3c 1631# OS/2's system install, which has a completely different semantic
775956d0 1632# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1633echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1634echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1635if test -z "$INSTALL"; then
1c710c3c
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
2aeb72e9 1656 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1657 if test $ac_prog = install &&
1c710c3c 1658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1659 # AIX install. It has an incompatible calling convention.
1660 :
1c710c3c
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 :
775956d0 1665 else
1c710c3c
DJ
1666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1667 break 3
775956d0
NN
1668 fi
1669 fi
1670 done
1c710c3c
DJ
1671 done
1672 ;;
1673esac
1674done
1675
775956d0
NN
1676
1677fi
1678 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1679 INSTALL=$ac_cv_path_install
775956d0 1680 else
2aeb72e9
DD
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
775956d0 1683 # break other packages using the cache if that directory is
2aeb72e9 1684 # removed, or if the path is relative.
1c710c3c 1685 INSTALL=$ac_install_sh
775956d0
NN
1686 fi
1687fi
2aeb72e9
DD
1688echo "$as_me:$LINENO: result: $INSTALL" >&5
1689echo "${ECHO_T}$INSTALL" >&6
775956d0
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
1c710c3c 1695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1696
1697test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698
2aeb72e9
DD
1699echo "$as_me:$LINENO: checking whether ln works" >&5
1700echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1701if test "${acx_cv_prog_LN+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
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"
2aeb72e9
DD
1717 echo "$as_me:$LINENO: result: no, using $LN" >&5
1718echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1719else
1720 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1721 echo "$as_me:$LINENO: result: yes" >&5
1722echo "${ECHO_T}yes" >&6
ad6717df
PB
1723fi
1724
2aeb72e9
DD
1725echo "$as_me:$LINENO: checking whether ln -s works" >&5
1726echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1727LN_S=$as_ln_s
1728if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1729 echo "$as_me:$LINENO: result: yes" >&5
1730echo "${ECHO_T}yes" >&6
fb0103e5 1731else
2aeb72e9
DD
1732 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1733echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1734fi
1735
775956d0 1736
79c06341 1737### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
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*)
671aa708
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
79c06341
JL
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
79c06341
JL
1771progname=$0
1772# if PWD already has a value, it is probably wrong.
671aa708 1773if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1774
beeaf216
MM
1775# Export original configure arguments for use by sub-configures.
1776# Quote arguments with shell meta charatcers.
1777TOPLEVEL_CONFIGURE_ARGUMENTS=
1778set -- "$progname" "$@"
9f8c6739
JM
1779for ac_arg
1780do
beeaf216 1781 case "$ac_arg" in
8c79f3c4 1782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
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
1791# Remove the initial space we just introduced and, as these will be
1792# expanded by make, quote '$'.
1793TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1794
cc1e60ea 1795
671aa708 1796moveifchange=${srcdir}/move-if-change
79c06341 1797
ee6a22df
L
1798srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1799
1800# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1801# a relative path.
1802if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1803 INSTALL="${srcpwd}/install-sh -c"
1804fi
1805
671aa708
NN
1806# Set srcdir to "." if that's what it is.
1807# This is important for multilib support.
1808pwd=`${PWDCMD-pwd}`
671aa708
NN
1809if test "${pwd}" = "${srcpwd}" ; then
1810 srcdir=.
79c06341
JL
1811fi
1812
671aa708 1813topsrcdir=$srcpwd
5d4a5ee6 1814
671aa708 1815extra_host_args=
afabd8e6 1816
671aa708
NN
1817### To add a new directory to the tree, first choose whether it is a target
1818### or a host dependent tool. Then put it into the appropriate list
1819### (library or tools, host or target), doing a dependency sort.
79c06341 1820
1c710c3c 1821# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1822# configdirs, or target_configdirs; see the serialization section below.
79c06341 1823
1c710c3c
DJ
1824# Dependency sorting is only needed when *configuration* must be done in
1825# a particular order. In all cases a dependency should be specified in
671aa708 1826# the Makefile, whether or not it's implicitly specified here.
79c06341 1827
671aa708
NN
1828# Double entries in build_configdirs, configdirs, or target_configdirs may
1829# cause circular dependencies and break everything horribly.
79c06341 1830
23f6b2f9
PB
1831# these library is used by various programs built for the build
1832# environment
1833#
1834build_libs="build-libiberty"
1835
1836# these tools are built for the build environment
71b5d516 1837build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1838
671aa708
NN
1839# these libraries are used by various programs built for the host environment
1840#
e69bf64b 1841host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1842
671aa708
NN
1843# these tools are built for the host environment
1844# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1845# know that we are building the simulator.
1846# binutils, gas and ld appear in that order because it makes sense to run
1847# "make check" in that particular order.
5395b47b 1848host_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"
671aa708
NN
1849
1850# libgcj represents the runtime libraries only used by gcj.
1851libgcj="target-libffi \
671aa708
NN
1852 target-zlib \
1853 target-qthreads \
1854 target-libjava"
1855
1856# these libraries are built for the target environment, and are built after
1857# the host libraries and the host tools (which may be a cross compiler)
1858#
291f172e
DJ
1859target_libraries="target-libgcc \
1860 target-libiberty \
671aa708
NN
1861 target-libgloss \
1862 target-newlib \
cb543528 1863 target-libstdc++-v3 \
6de9cd9a 1864 target-libmudflap \
77008252 1865 target-libssp \
6de9cd9a 1866 target-libgfortran \
7cd0cf9c 1867 target-boehm-gc \
77d187bc 1868 ${libgcj} \
d9cdb878 1869 target-libobjc \
953ff289
DN
1870 target-libada \
1871 target-libgomp"
671aa708 1872
4dbda6f0
NN
1873# these tools are built using the target libraries, and are intended to
1874# run only in the target environment
671aa708 1875#
4dbda6f0 1876# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1877# list belongs in this list. those programs are also very likely
1878# candidates for the "native_only" list which follows
1879#
97286f7f 1880target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1881
671aa708 1882################################################################################
79c06341 1883
671aa708
NN
1884## All tools belong in one of the four categories, and are assigned above
1885## We assign ${configdirs} this way to remove all embedded newlines. This
1886## is important because configure will choke if they ever get through.
1887## ${configdirs} is directories we build using the host tools.
1888## ${target_configdirs} is directories we build using the target tools.
671aa708 1889configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1890target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1891build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1892
671aa708 1893################################################################################
79c06341 1894
671aa708 1895srcname="gnu development package"
79c06341 1896
671aa708
NN
1897# This gets set non-empty for some net releases of packages.
1898appdirs=""
79c06341 1899
671aa708
NN
1900# Define is_cross_compiler to save on calls to 'test'.
1901is_cross_compiler=
1902if test x"${host}" = x"${target}" ; then
1903 is_cross_compiler=no
79c06341 1904else
671aa708 1905 is_cross_compiler=yes
1c710c3c 1906fi
79c06341 1907
b4acb5ef 1908# Find the build and target subdir names.
8b87bb96 1909
2e9e6f68
DJ
1910# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1911# have matching libraries, they should use host libraries: Makefile.tpl
1912# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1913# However, they still use the build modules, because the corresponding
1914# host modules (e.g. bison) are only built for the host when bootstrap
1915# finishes. So:
1916# - build_subdir is where we find build modules, and never changes.
1917# - build_libsubdir is where we find build libraries, and can be overridden.
1918
1919# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1920build_subdir="build-${build_noncanonical}"
1c710c3c 1921
2aeb72e9 1922# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1923if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1924 withval="$with_build_libsubdir"
1925 build_libsubdir="$withval"
2e9e6f68
DJ
1926else
1927 build_libsubdir="$build_subdir"
2aeb72e9 1928fi;
215c351a
PB
1929# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1930if ( test $srcdir = . && test -d gcc ) \
1931 || test -d $srcdir/../host-${host_noncanonical}; then
1932 host_subdir="host-${host_noncanonical}"
1933else
1934 host_subdir=.
1935fi
8b87bb96
NN
1936# No prefix.
1937target_subdir=${target_noncanonical}
1c710c3c 1938
79c06341 1939
671aa708
NN
1940# Skipdirs are removed silently.
1941skipdirs=
1942# Noconfigdirs are removed loudly.
1943noconfigdirs=""
79c06341 1944
671aa708
NN
1945use_gnu_ld=
1946# Make sure we don't let GNU ld be added if we didn't want it.
1947if test x$with_gnu_ld = xno ; then
1948 use_gnu_ld=no
1949 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1950fi
1951
671aa708
NN
1952use_gnu_as=
1953# Make sure we don't let GNU as be added if we didn't want it.
1954if test x$with_gnu_as = xno ; then
1955 use_gnu_as=no
1956 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1957fi
1958
1c710c3c 1959# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1960# it's not even worth trying to configure, much less build, that tool.
79c06341 1961
671aa708
NN
1962case ${with_x} in
1963 yes | "") ;; # the default value for this tree is that X11 is available
1964 no)
b4f96efe 1965 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1966 # We won't be able to build gdbtk without X.
1c710c3c 1967 enable_gdbtk=no
671aa708
NN
1968 ;;
1969 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1970esac
79c06341 1971
671aa708 1972# Some tools are only suitable for building in a "native" situation.
1c710c3c 1973# Remove these if host!=target.
9e299237 1974native_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"
79c06341 1975
671aa708
NN
1976# Similarly, some are only suitable for cross toolchains.
1977# Remove these if host=target.
1978cross_only="target-libgloss target-newlib target-opcodes"
1979
1980case $is_cross_compiler in
1981 no) skipdirs="${skipdirs} ${cross_only}" ;;
1982 yes) skipdirs="${skipdirs} ${native_only}" ;;
1983esac
79c06341 1984
671aa708
NN
1985# If both --with-headers and --with-libs are specified, default to
1986# --without-newlib.
ee6a22df
L
1987if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1988 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1989 if test x"${with_newlib}" = x ; then
1990 with_newlib=no
1991 fi
79c06341
JL
1992fi
1993
671aa708
NN
1994# Recognize --with-newlib/--without-newlib.
1995case ${with_newlib} in
1996 no) skipdirs="${skipdirs} target-newlib" ;;
1997 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1998esac
79c06341 1999
671aa708 2000# Configure extra directories which are host specific
79c06341 2001
671aa708
NN
2002case "${host}" in
2003 *-cygwin*)
2004 configdirs="$configdirs libtermcap" ;;
2005esac
79c06341 2006
4fab7234
HPN
2007# A target can indicate whether a language isn't supported for some reason.
2008# Only spaces may be used in this macro; not newlines or tabs.
2009unsupported_languages=
2010
1c710c3c 2011# Remove more programs from consideration, based on the host or
671aa708
NN
2012# target this usually means that a port of the program doesn't
2013# exist yet.
ec8d6ddc 2014
671aa708
NN
2015case "${host}" in
2016 hppa*64*-*-*)
2017 noconfigdirs="$noconfigdirs byacc"
2018 ;;
f2a0e225 2019 i[3456789]86-*-vsta)
b4f96efe 2020 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2021 ;;
f2a0e225 2022 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2023 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2024 ;;
95af8923
KT
2025 x86_64-*-mingw*)
2026 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2027 ;;
f2a0e225 2028 i[3456789]86-*-mingw32*)
b4f96efe 2029 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2030 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2031 ;;
f2a0e225 2032 i[3456789]86-*-beos*)
b4f96efe 2033 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2034 ;;
671aa708 2035 *-*-cygwin*)
a22c2d8d 2036 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2037 ;;
2038 *-*-netbsd*)
a22c2d8d 2039 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2040 ;;
2041 ppc*-*-pe)
b4f96efe 2042 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2043 ;;
2044 powerpc-*-beos*)
b4f96efe 2045 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2046 ;;
671aa708 2047esac
ec8d6ddc 2048
6de9cd9a 2049
2aeb72e9 2050# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2051if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2052 enableval="$enable_libada"
2053 ENABLE_LIBADA=$enableval
d9cdb878
AC
2054else
2055 ENABLE_LIBADA=yes
2aeb72e9 2056fi;
d9cdb878 2057if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2058 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2059fi
2060
2aeb72e9 2061# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2062if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2063 enableval="$enable_libssp"
2064 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2065else
2066 ENABLE_LIBSSP=yes
2aeb72e9 2067fi;
ef0087a7 2068
671aa708
NN
2069# Save it here so that, even in case of --enable-libgcj, if the Java
2070# front-end isn't enabled, we still get libgcj disabled.
2071libgcj_saved=$libgcj
2072case $enable_libgcj in
2073yes)
2074 # If we reset it here, it won't get added to noconfigdirs in the
2075 # target-specific build rules, so it will be forcibly enabled
2076 # (unless the Java language itself isn't enabled).
2077 libgcj=
2078 ;;
2079no)
2080 # Make sure we get it printed in the list of not supported target libs.
2081 noconfigdirs="$noconfigdirs ${libgcj}"
2082 ;;
2083esac
ec8d6ddc 2084
6de9cd9a 2085
27079765
AH
2086# Disable libmudflap on some systems.
2087if test x$enable_libmudflap = x ; then
dfcada9a 2088 case "${target}" in
901119ae 2089 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
98a5bb3b 2090 # Enable libmudflap by default in GNU and friends.
dfcada9a 2091 ;;
a3e8d8b4
LR
2092 *-*-freebsd*)
2093 # Enable libmudflap by default in FreeBSD.
2094 ;;
dfcada9a
MM
2095 *)
2096 # Disable it by default everywhere else.
2097 noconfigdirs="$noconfigdirs target-libmudflap"
2098 ;;
2099 esac
27079765 2100fi
6de9cd9a 2101
27079765
AH
2102# Disable libgomp on non POSIX hosted systems.
2103if test x$enable_libgomp = x ; then
953ff289
DN
2104 # Enable libgomp by default on hosted POSIX systems.
2105 case "${target}" in
670cbfcf 2106 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2107 ;;
2108 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2109 ;;
04879af3 2110 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2111 ;;
cac90078 2112 *-*-darwin* | *-*-aix*)
953ff289
DN
2113 ;;
2114 *)
2115 noconfigdirs="$noconfigdirs target-libgomp"
2116 ;;
2117 esac
27079765 2118fi
953ff289 2119
6de9cd9a 2120
671aa708
NN
2121case "${target}" in
2122 *-*-chorusos)
cb253473 2123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2124 ;;
42c1cd8a 2125 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2126 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2127 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2128 ;;
42c1cd8a
AT
2129 *-*-darwin*)
2130 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2131 noconfigdirs="$noconfigdirs sim target-rda"
2132 noconfigdirs="$noconfigdirs ${libgcj}"
2133 ;;
671aa708 2134 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2135 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2136 ;;
c3f84f61 2137 *-*-freebsd*)
6de9cd9a
DN
2138 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2139 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2140 && test -f /usr/local/include/gmp.h; then
2141 with_gmp=/usr/local
2142 fi
2143
2144 # Skip some stuff that's unsupported on some FreeBSD configurations.
2145 case "${target}" in
2146 i*86-*-*) ;;
2147 alpha*-*-*) ;;
2148 *)
cb253473 2149 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2150 ;;
2151 esac
2152 ;;
ef4e7569
US
2153 *-*-kaos*)
2154 # Remove unsupported stuff on all kaOS configurations.
cb253473 2155 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2156 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2157 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2158 noconfigdirs="$noconfigdirs target-libgloss"
2159 ;;
671aa708
NN
2160 *-*-netbsd*)
2161 # Skip some stuff on all NetBSD configurations.
2162 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2163
2164 # Skip some stuff that's unsupported on some NetBSD configurations.
2165 case "${target}" in
2166 i*86-*-netbsdelf*) ;;
0590b963 2167 arm*-*-netbsdelf*) ;;
671aa708 2168 *)
cb253473 2169 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2170 ;;
2171 esac
2172 ;;
61fec9ff 2173 *-*-netware*)
cb253473 2174 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2175 ;;
2176 *-*-rtems*)
cb253473 2177 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2178 ;;
a8ba31f2
EC
2179 # The tpf target doesn't support gdb yet.
2180 *-*-tpf*)
cb253473 2181 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2182 ;;
5785c0ed 2183 *-*-uclinux*)
cb253473 2184 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2185 ;;
671aa708 2186 *-*-vxworks*)
cb253473 2187 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2188 ;;
2189 alpha*-dec-osf*)
2190 # ld works, but does not support shared libraries.
2191 # newlib is not 64 bit ready. I'm not sure about fileutils.
2192 # gas doesn't generate exception information.
2193 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2194 ;;
2195 alpha*-*-*vms*)
cb253473 2196 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2197 ;;
2198 alpha*-*-linux*)
2199 # newlib is not 64 bit ready
2200 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2201 ;;
671aa708
NN
2202 alpha*-*-*)
2203 # newlib is not 64 bit ready
cb253473 2204 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2205 ;;
33952f6f 2206 am33_2.0-*-linux*)
cb253473 2207 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2208 ;;
671aa708 2209 sh-*-linux*)
cb253473 2210 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2211 ;;
671aa708 2212 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2213 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2214 noconfigdirs="$noconfigdirs target-examples"
2215 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2216 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2217 noconfigdirs="$noconfigdirs expect dejagnu"
2218 # the C++ libraries don't build on top of CE's C libraries
cb543528 2219 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2220 noconfigdirs="$noconfigdirs target-newlib"
2221 case "${host}" in
2222 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2223 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2224 ;;
2225 esac
2226 ;;
2227 arc-*-*)
cb253473 2228 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2229 ;;
ee6a22df 2230 arm-semi-aof )
ee6a22df 2231 ;;
671aa708 2232 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2233 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2234 ;;
b3f8d95d 2235 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2236 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2237 ;;
077fc835
KH
2238 arm*-*-linux-gnueabi)
2239 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2240 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2241 ;;
972974fc 2242 arm*-*-symbianelf*)
cb253473 2243 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2244 ;;
671aa708 2245 arm-*-pe*)
cb253473 2246 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2247 ;;
671aa708 2248 thumb-*-coff)
cb253473 2249 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2250 ;;
2251 thumb-*-elf)
cb253473 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2253 ;;
671aa708 2254 thumb-*-pe)
cb253473 2255 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2256 ;;
2257 arm-*-riscix*)
cb253473 2258 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2259 ;;
2260 avr-*-*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2262 ;;
6b65a26d 2263 bfin-*-*)
8b3c6c5a 2264 noconfigdirs="$noconfigdirs gdb"
61efc800 2265 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2266 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2267 fi
2268 ;;
671aa708 2269 c4x-*-* | tic4x-*-*)
cb253473 2270 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2271 ;;
2272 c54x*-*-* | tic54x-*-*)
cb253473 2273 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2274 ;;
40d64b5a 2275 cris-*-* | crisv32-*-*)
4fab7234 2276 unsupported_languages="$unsupported_languages java"
40d64b5a 2277 case "${target}" in
c2e0d3a9 2278 *-*-aout)
7f26dfa3 2279 unsupported_languages="$unsupported_languages fortran"
4fab7234 2280 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2281 *-*-elf)
7f26dfa3 2282 unsupported_languages="$unsupported_languages fortran"
789ec619 2283 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2284 *-*-linux*)
789ec619 2285 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2286 *)
7f26dfa3 2287 unsupported_languages="$unsupported_languages fortran"
cb253473 2288 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2289 esac
671aa708 2290 ;;
25b656e7 2291 crx-*-*)
cb253473 2292 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2293 ;;
671aa708 2294 d10v-*-*)
cb253473 2295 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2296 ;;
2297 d30v-*-*)
cb253473 2298 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2299 ;;
2300 fr30-*-elf*)
cb253473 2301 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2302 ;;
2303 frv-*-*)
cb253473 2304 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2305 ;;
2306 h8300*-*-*)
cb253473 2307 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2308 ;;
2309 h8500-*-*)
cb253473 2310 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2311 ;;
ee6a22df 2312 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2313 ;;
671aa708
NN
2314 hppa*64*-*-linux* | parisc*64*-*-linux*)
2315 # In this case, it's because the hppa64-linux target is for
2316 # the kernel only at this point and has no libc, and thus no
2317 # headers, crt*.o, etc., all of which are needed by these.
2318 noconfigdirs="$noconfigdirs target-zlib"
2319 ;;
3e732ba0
JDA
2320 parisc*-*-linux* | hppa*-*-linux*)
2321 ;;
671aa708 2322 hppa*-*-*elf* | \
671aa708
NN
2323 hppa*-*-lites* | \
2324 hppa*-*-openbsd* | \
2325 hppa*64*-*-*)
cb253473 2326 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2327 ;;
2a332582
JDA
2328 hppa*-hp-hpux11*)
2329 noconfigdirs="$noconfigdirs ld shellutils"
2330 ;;
671aa708
NN
2331 hppa*-*-*)
2332 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2333 # build on HP-UX 10.20.
cb253473 2334 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2335 ;;
fb87ad5d 2336 i960-*-*)
cb253473 2337 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2338 ;;
671aa708
NN
2339 ia64*-*-elf*)
2340 # No gdb support yet.
b4f96efe 2341 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2342 ;;
2343 ia64*-**-hpux*)
2344 # No gdb or ld support yet.
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2346 ;;
ee6a22df 2347 i370-*-opened*)
ee6a22df 2348 ;;
f2a0e225 2349 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2350 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2351 ;;
f2a0e225 2352 i[3456789]86-*-linux*)
671aa708
NN
2353 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2354 # not build java stuff by default.
2355 case "${target}" in
2356 *-*-*libc1*)
cb253473 2357 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2358 esac
2359
2360 # This section makes it possible to build newlib natively on linux.
2361 # If we are using a cross compiler then don't configure newlib.
2362 if test x${is_cross_compiler} != xno ; then
3aa83176 2363 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2364 fi
2365 noconfigdirs="$noconfigdirs target-libgloss"
2366 # If we are not using a cross compiler, do configure newlib.
2367 # Note however, that newlib will only be configured in this situation
2368 # if the --with-newlib option has been given, because otherwise
2369 # 'target-newlib' will appear in skipdirs.
2370 ;;
f2a0e225 2371 i[3456789]86-*-mingw32*)
b91f0a41
CV
2372 target_configdirs="$target_configdirs target-winsup"
2373 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2374 ;;
95af8923
KT
2375 x86_64-*-mingw*)
2376 target_configdirs="$target_configdirs target-winsup"
2377 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2378 ;;
671aa708
NN
2379 *-*-cygwin*)
2380 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2381 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2382 # always build newlib if winsup directory is present.
b91f0a41 2383 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2384 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2385 elif test -d "$srcdir/newlib"; then
b91f0a41 2386 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2387 fi
1c710c3c 2388 ;;
ee6a22df
L
2389 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2390 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2391 ;;
f2a0e225 2392 i[3456789]86-*-pe)
cb253473 2393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2394 ;;
f2a0e225 2395 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2396 # The linker does not yet know about weak symbols in COFF,
2397 # and is not configured to handle mixed ELF and COFF.
cb253473 2398 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2399 ;;
f2a0e225 2400 i[3456789]86-*-sco*)
cb253473 2401 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2402 ;;
f2a0e225 2403 i[3456789]86-*-solaris2*)
671aa708
NN
2404 noconfigdirs="$noconfigdirs target-libgloss"
2405 ;;
f2a0e225 2406 i[3456789]86-*-sysv4*)
cb253473 2407 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2408 ;;
f2a0e225 2409 i[3456789]86-*-beos*)
cb253473 2410 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2411 ;;
d1f8db0c
PB
2412 i[3456789]86-*-rdos*)
2413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2414 ;;
fb87ad5d 2415 m32r-*-*)
cb253473 2416 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2417 ;;
671aa708 2418 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2419 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2420 ;;
2421 m68k-*-elf*)
cb253473 2422 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2423 ;;
2424 m68k-*-coff*)
cb253473 2425 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2426 ;;
2427 mcore-*-pe*)
2428 # The EPOC C++ environment does not support exceptions or rtti,
2429 # and so building libstdc++-v3 tends not to always work.
2430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2431 ;;
2432 mmix-*-*)
4fab7234 2433 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2434 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2435 ;;
2436 mn10200-*-*)
cb253473 2437 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2438 ;;
2439 mn10300-*-*)
cb253473 2440 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2441 ;;
ab34901f 2442 mt-*-*)
79dd769c
AH
2443 noconfigdirs="$noconfigdirs sim"
2444 ;;
671aa708
NN
2445 powerpc-*-aix*)
2446 # copied from rs6000-*-* entry
cb253473 2447 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2448 ;;
2449 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2450 target_configdirs="$target_configdirs target-winsup"
cb253473 2451 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2452 # always build newlib.
2453 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2454 ;;
2455 # This is temporary until we can link against shared libraries
2456 powerpcle-*-solaris*)
cb253473 2457 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2458 ;;
2459 powerpc-*-beos*)
cb253473 2460 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2461 ;;
671aa708 2462 powerpc-*-eabi)
cb253473 2463 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2464 ;;
2465 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2466 ;;
671aa708 2467 rs6000-*-lynxos*)
cb253473 2468 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2469 ;;
2470 rs6000-*-aix*)
cb253473 2471 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2472 ;;
2473 rs6000-*-*)
cb253473 2474 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2475 ;;
2476 m68k-apollo-*)
cb253473 2477 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2478 ;;
2479 mips*-*-irix5*)
cb253473 2480 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2481 ;;
2482 mips*-*-irix6*)
671aa708
NN
2483 # Linking libjava exceeds command-line length limits on at least
2484 # IRIX 6.2, but not on IRIX 6.5.
2485 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2486 # <oldham@codesourcery.com>
cb253473 2487 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2488 ;;
671aa708 2489 mips*-*-bsd*)
cb253473 2490 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2491 ;;
d0fe5ad3 2492 mips64*-*-linux*)
1ee4c5a0 2493 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2494 ;;
671aa708
NN
2495 mips*-*-linux*)
2496 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2497 ;;
2498 mips*-*-*)
cb253473 2499 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2500 ;;
2501 romp-*-*)
cb253473 2502 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2503 ;;
669f01d8 2504 sh-*-* | sh64-*-*)
671aa708 2505 case "${host}" in
f2a0e225
KC
2506 i[3456789]86-*-vsta) ;; # don't add gprof back in
2507 i[3456789]86-*-go32*) ;; # don't add gprof back in
2508 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2509 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2510 esac
cb253473 2511 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2512 ;;
671aa708 2513 sparc-*-elf*)
cb253473 2514 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2515 ;;
2516 sparc64-*-elf*)
cb253473 2517 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2518 ;;
2519 sparclite-*-*)
cb253473 2520 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2521 ;;
2522 sparc-*-sunos4*)
cb253473 2523 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2524 if test x${is_cross_compiler} != xno ; then
2525 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2526 else
2527 use_gnu_ld=no
2528 fi
2529 ;;
bba5e0ca 2530 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2531 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2532 ;;
671aa708
NN
2533 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2534 ;;
85d9c13c 2535 spu-*-*)
ea6f5c57 2536 skipdirs="target-libssp"
85d9c13c 2537 ;;
671aa708 2538 v810-*-*)
cb253473 2539 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2540 ;;
2541 v850-*-*)
cb253473 2542 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2543 ;;
2544 v850e-*-*)
cb253473 2545 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2546 ;;
2547 v850ea-*-*)
cb253473 2548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2549 ;;
2550 vax-*-vms)
cb253473 2551 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2552 ;;
2553 vax-*-*)
cb253473 2554 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2555 ;;
0d4f1b4e 2556 xtensa-*-*)
cb253473 2557 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2558 ;;
671aa708 2559 ip2k-*-*)
cb253473 2560 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2561 ;;
c3f84f61 2562 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2564 ;;
2565 *-*-lynxos*)
cb253473 2566 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2567 ;;
671aa708 2568 *-*-*)
cb253473 2569 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2570 ;;
2571esac
79c06341 2572
671aa708
NN
2573# If we aren't building newlib, then don't build libgloss, since libgloss
2574# depends upon some newlib header files.
2575case "${noconfigdirs}" in
2576 *target-libgloss*) ;;
2577 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2578esac
2579
671aa708
NN
2580# Work in distributions that contain no compiler tools, like Autoconf.
2581tentative_cc=""
2582host_makefile_frag=/dev/null
2583if test -d ${srcdir}/config ; then
2584case "${host}" in
2585 m68k-hp-hpux*)
2586 # Avoid "too much defining" errors from HPUX compiler.
2587 tentative_cc="cc -Wp,-H256000"
2588 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2589 # If it's HP/UX ar, this should be harmless.
2590 RANLIB="ar ts"
2591 ;;
2592 m68k-apollo-sysv*)
2593 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2594 ;;
2595 m68k-apollo-bsd*)
2596 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2597 # chokes on bfd, the compiler won't let you assign integers to enums, and
2598 # other problems. Defining CC to gcc is a questionable way to say "don't use
2599 # the apollo compiler" (the preferred version of GCC could be called cc,
2600 # or whatever), but I'm not sure leaving CC as cc is any better...
2601 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2602 # Used to have BISON=yacc.
2603 tentative_cc=gcc
2604 ;;
2605 m88k-dg-dgux*)
2606 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2607 ;;
2608 m88k-harris-cxux*)
2609 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2610 tentative_cc="cc -Xa"
2611 host_makefile_frag="config/mh-cxux"
2612 ;;
2613 m88k-motorola-sysv*)
2614 ;;
2615 mips*-dec-ultrix*)
2616 tentative_cc="cc -Wf,-XNg1000"
2617 host_makefile_frag="config/mh-decstation"
2618 ;;
2619 mips*-nec-sysv4*)
2620 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2621 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2622 host_makefile_frag="config/mh-necv4"
2623 ;;
2624 mips*-sgi-irix4*)
2625 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2626 # environment. Also bump switch table size so that cp-parse will
2627 # compile. Bump string length limit so linker builds.
2628 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2629 ;;
2630 mips*-*-sysv4*)
2631 host_makefile_frag="config/mh-sysv4"
2632 ;;
2633 mips*-*-sysv*)
2634 # This is for a MIPS running RISC/os 4.52C.
2635
2636 # This is needed for GDB, but needs to be in the top-level make because
2637 # if a library is compiled with the bsd headers and gets linked with the
2638 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2639 # a different size).
2640 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2641 # known except to select the sysv environment. Could we use /proc instead?
2642 # These "sysv environments" and "bsd environments" often end up being a pain.
2643 #
2644 # This is not part of CFLAGS because perhaps not all C compilers have this
2645 # option.
2646 tentative_cc="cc -systype sysv"
2647 ;;
2648 i370-ibm-opened*)
2649 tentative_cc="c89"
2650 ;;
f2a0e225 2651 i[3456789]86-*-sysv5*)
671aa708
NN
2652 host_makefile_frag="config/mh-sysv5"
2653 ;;
f2a0e225 2654 i[3456789]86-*-dgux*)
671aa708
NN
2655 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2656 host_makefile_frag="config/mh-dgux386"
2657 ;;
f2a0e225 2658 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2659 # The MetaWare compiler will generate a copyright message unless you
2660 # turn it off by adding the -Hnocopyr flag.
2661 tentative_cc="cc -Hnocopyr"
2662 ;;
f2a0e225 2663 i[3456789]86-ncr-sysv4*)
671aa708
NN
2664 # for an NCR 3000 (i486/SVR4) system.
2665 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2666 # This compiler not only emits obnoxious copyright messages every time
2667 # you run it, but it chokes and dies on a whole bunch of GNU source
2668 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2669 tentative_cc="/usr/ccs/ATT/cc"
2670 host_makefile_frag="config/mh-ncr3000"
2671 ;;
f2a0e225 2672 i[3456789]86-*-sco3.2v5*)
671aa708 2673 ;;
f2a0e225 2674 i[3456789]86-*-sco*)
671aa708
NN
2675 # The native C compiler botches some simple uses of const. Unfortunately,
2676 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2677 tentative_cc="cc -Dconst="
2678 host_makefile_frag="config/mh-sco"
2679 ;;
f2a0e225 2680 i[3456789]86-*-udk*)
671aa708
NN
2681 host_makefile_frag="config/mh-sysv5"
2682 ;;
f2a0e225 2683 i[3456789]86-*-solaris2*)
671aa708
NN
2684 host_makefile_frag="config/mh-sysv4"
2685 ;;
f2a0e225 2686 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2687 host_makefile_frag="config/mh-djgpp"
2688 ;;
2689 *-cygwin*)
2690 host_makefile_frag="config/mh-cygwin"
2691 ;;
2692 *-mingw32*)
671aa708 2693 ;;
95af8923
KT
2694 *-mingw64*)
2695 ;;
671aa708
NN
2696 *-interix*)
2697 host_makefile_frag="config/mh-interix"
2698 ;;
2699 vax-*-ultrix2*)
2700 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2701 tentative_cc=gcc
2702 ;;
2703 *-*-solaris2*)
2704 host_makefile_frag="config/mh-solaris"
2705 ;;
2706 m68k-sun-sunos*)
2707 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2708 # without overflowing the jump tables (-J says to use a 32 bit table)
2709 tentative_cc="cc -J"
2710 ;;
2711 *-hp-hpux*)
2712 tentative_cc="cc -Wp,-H256000"
2713 ;;
2714 *-*-hiux*)
2715 tentative_cc="cc -Wp,-H256000"
2716 ;;
2717 rs6000-*-lynxos*)
2718 # /bin/cc is less than useful for our purposes. Always use GCC
2719 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2720 host_makefile_frag="config/mh-lynxrs6k"
2721 ;;
45f366ab 2722 powerpc-*-darwin*)
be8fff81
RB
2723 host_makefile_frag="config/mh-ppc-darwin"
2724 ;;
d19bca38
PB
2725 powerpc-*-aix*)
2726 host_makefile_frag="config/mh-ppc-aix"
2727 ;;
2728 rs6000-*-aix*)
2729 host_makefile_frag="config/mh-ppc-aix"
2730 ;;
671aa708
NN
2731 *-*-lynxos*)
2732 # /bin/cc is less than useful for our purposes. Always use GCC
2733 tentative_cc="/bin/gcc"
2734 ;;
2735 *-*-sysv4*)
2736 host_makefile_frag="config/mh-sysv4"
2737 ;;
95c53c62
RS
2738 # This is placed last to prevent interfering with the cases above.
2739 i[3456789]86-*-*)
2740 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2741 host_makefile_frag="config/mh-x86omitfp"
2742 ;;
671aa708
NN
2743esac
2744fi
2745
55ffb5ed
NN
2746# If we aren't going to be using gcc, see if we can extract a definition
2747# of CC from the fragment.
2748# Actually, use the 'pre-extracted' version above.
2749if test -z "${CC}" && test "${build}" = "${host}" ; then
2750 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2751 found=
2752 for dir in $PATH; do
2753 test -z "$dir" && dir=.
2754 if test -f $dir/gcc; then
2755 found=yes
2756 break
2757 fi
2758 done
2759 IFS="$save_ifs"
2760 if test -z "${found}" && test -n "${tentative_cc}" ; then
2761 CC=$tentative_cc
2762 fi
2763fi
2764
2765if test "${build}" != "${host}" ; then
55ffb5ed 2766 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2767else
fb0103e5 2768 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2769fi
2770
2771ac_ext=c
1c710c3c
DJ
2772ac_cpp='$CPP $CPPFLAGS'
2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2778set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2779echo "$as_me:$LINENO: checking for $ac_word" >&5
2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2781if test "${ac_cv_prog_CC+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799done
2800
2801fi
2802fi
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2aeb72e9
DD
2805 echo "$as_me:$LINENO: result: $CC" >&5
2806echo "${ECHO_T}$CC" >&6
1c710c3c 2807else
2aeb72e9
DD
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
1c710c3c
DJ
2810fi
2811
2812fi
2813if test -z "$ac_cv_prog_CC"; then
2814 ac_ct_CC=$CC
fb0103e5
RG
2815 # Extract the first word of "gcc", so it can be a program name with args.
2816set dummy gcc; ac_word=$2
2aeb72e9
DD
2817echo "$as_me:$LINENO: checking for $ac_word" >&5
2818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2819if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821else
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2832 ac_cv_prog_ac_ct_CC="gcc"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2837done
2838
2839fi
2840fi
2841ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2844echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2845else
2aeb72e9
DD
2846 echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6
1c710c3c
DJ
2848fi
2849
2aeb72e9 2850 CC=$ac_ct_CC
1c710c3c
DJ
2851else
2852 CC="$ac_cv_prog_CC"
2853fi
2854
2855if test -z "$CC"; then
2aeb72e9
DD
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2858set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2859echo "$as_me:$LINENO: checking for $ac_word" >&5
2860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2861if test "${ac_cv_prog_CC+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2863else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866else
1c710c3c
DJ
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878done
2879done
2880
0b0dc272 2881fi
0b0dc272 2882fi
1c710c3c 2883CC=$ac_cv_prog_CC
af71363e 2884if test -n "$CC"; then
2aeb72e9
DD
2885 echo "$as_me:$LINENO: result: $CC" >&5
2886echo "${ECHO_T}$CC" >&6
0b0dc272 2887else
2aeb72e9
DD
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
0b0dc272
AM
2890fi
2891
2aeb72e9
DD
2892fi
2893if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "cc", so it can be a program name with args.
2896set dummy cc; ac_word=$2
2897echo "$as_me:$LINENO: checking for $ac_word" >&5
2898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="cc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
11a67599 2915 fi
2aeb72e9
DD
2916done
2917done
2918
2919fi
2920fi
2921ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922if test -n "$ac_ct_CC"; then
2923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2924echo "${ECHO_T}$ac_ct_CC" >&6
2925else
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928fi
2929
2930 CC=$ac_ct_CC
2931else
2932 CC="$ac_cv_prog_CC"
2933fi
2934
1c710c3c 2935fi
55ffb5ed
NN
2936if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938set dummy cc; ac_word=$2
2aeb72e9
DD
2939echo "$as_me:$LINENO: checking for $ac_word" >&5
2940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2941if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2943else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
0b0dc272 2947 ac_prog_rejected=no
1c710c3c
DJ
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2957 continue
2958 fi
2959 ac_cv_prog_CC="cc"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963done
2964done
2965
55ffb5ed
NN
2966if test $ac_prog_rejected = yes; then
2967 # We found a bogon in the path, so make sure we never use it.
2968 set dummy $ac_cv_prog_CC
2969 shift
1c710c3c 2970 if test $# != 0; then
55ffb5ed
NN
2971 # We chose a different compiler from the bogus one.
2972 # However, it has the same basename, so the bogon will be chosen
2973 # first if we set CC to just the basename; use the full file name.
2974 shift
1c710c3c 2975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2976 fi
2977fi
2978fi
2979fi
1c710c3c 2980CC=$ac_cv_prog_CC
55ffb5ed 2981if test -n "$CC"; then
2aeb72e9
DD
2982 echo "$as_me:$LINENO: result: $CC" >&5
2983echo "${ECHO_T}$CC" >&6
55ffb5ed 2984else
2aeb72e9
DD
2985 echo "$as_me:$LINENO: result: no" >&5
2986echo "${ECHO_T}no" >&6
55ffb5ed
NN
2987fi
2988
1c710c3c
DJ
2989fi
2990if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2aeb72e9 2992 for ac_prog in cl
1c710c3c
DJ
2993 do
2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
2996echo "$as_me:$LINENO: checking for $ac_word" >&5
2997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2998if test "${ac_cv_prog_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3000else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003else
1c710c3c
DJ
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015done
3016done
3017
55ffb5ed
NN
3018fi
3019fi
1c710c3c 3020CC=$ac_cv_prog_CC
55ffb5ed 3021if test -n "$CC"; then
2aeb72e9
DD
3022 echo "$as_me:$LINENO: result: $CC" >&5
3023echo "${ECHO_T}$CC" >&6
a4b9e93e 3024else
2aeb72e9
DD
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
fb0103e5 3027fi
af71363e 3028
1c710c3c
DJ
3029 test -n "$CC" && break
3030 done
af71363e 3031fi
1c710c3c
DJ
3032if test -z "$CC"; then
3033 ac_ct_CC=$CC
2aeb72e9 3034 for ac_prog in cl
1c710c3c
DJ
3035do
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3038echo "$as_me:$LINENO: checking for $ac_word" >&5
3039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3042else
1c710c3c
DJ
3043 if test -n "$ac_ct_CC"; then
3044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3045else
1c710c3c
DJ
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3053 ac_cv_prog_ac_ct_CC="$ac_prog"
3054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057done
3058done
3059
af71363e
AS
3060fi
3061fi
1c710c3c
DJ
3062ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3065echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3066else
2aeb72e9
DD
3067 echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6
af71363e 3069fi
0b0dc272 3070
1c710c3c
DJ
3071 test -n "$ac_ct_CC" && break
3072done
3073
2aeb72e9 3074 CC=$ac_ct_CC
1c710c3c
DJ
3075fi
3076
3077fi
3078
3079
3080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3081See \`config.log' for more details." >&5
3082echo "$as_me: error: no acceptable C compiler found in \$PATH
3083See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3085
3086# Provide some information about the compiler.
2aeb72e9
DD
3087echo "$as_me:$LINENO:" \
3088 "checking for C compiler version" >&5
1c710c3c 3089ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3091 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }
2aeb72e9
DD
3095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3096 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }
2aeb72e9
DD
3100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3101 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3105
3106cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121ac_clean_files_save=$ac_clean_files
3122ac_clean_files="$ac_clean_files a.out a.exe b.out"
3123# Try to create an executable without -o first, disregard a.out.
3124# It will help us diagnose broken compilers, and finding out an intuition
3125# of exeext.
2aeb72e9
DD
3126echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3127echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3128ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3129if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3130 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; then
2aeb72e9
DD
3134 # Find the output, starting from the most likely. This scheme is
3135# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3136# resort.
3137
3138# Be careful to initialize this variable, since it used to be cached.
3139# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3140ac_cv_exeext=
3141# b.out is created by i960 compilers.
3142for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3143do
3144 test -f "$ac_file" || continue
3145 case $ac_file in
2aeb72e9
DD
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3147 ;;
3148 conftest.$ac_ext )
3149 # This is the source file.
1c710c3c
DJ
3150 ;;
3151 [ab].out )
3152 # We found the default executable, but exeext='' is most
3153 # certainly right.
3154 break;;
3155 *.* )
2aeb72e9
DD
3156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 # FIXME: I believe we export ac_cv_exeext for Libtool,
3158 # but it would be cool to find out if it's true. Does anybody
3159 # maintain Libtool? --akim.
3160 export ac_cv_exeext
1c710c3c
DJ
3161 break;;
3162 * )
3163 break;;
3164 esac
3165done
3166else
3167 echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3171See \`config.log' for more details." >&5
3172echo "$as_me: error: C compiler cannot create executables
3173See \`config.log' for more details." >&2;}
3174 { (exit 77); exit 77; }; }
3175fi
3176
3177ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3178echo "$as_me:$LINENO: result: $ac_file" >&5
3179echo "${ECHO_T}$ac_file" >&6
1c710c3c 3180
2aeb72e9 3181# Check the compiler produces executables we can run. If not, either
1c710c3c 3182# the compiler is broken, or we cross compile.
2aeb72e9
DD
3183echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3184echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3185# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3186# If not cross compiling, check that we can run a simple program.
3187if test "$cross_compiling" != yes; then
3188 if { ac_try='./$ac_file'
2aeb72e9
DD
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
1c710c3c
DJ
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 cross_compiling=no
3195 else
3196 if test "$cross_compiling" = maybe; then
3197 cross_compiling=yes
3198 else
3199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3200If you meant to cross compile, use \`--host'.
3201See \`config.log' for more details." >&5
3202echo "$as_me: error: cannot run C compiled programs.
3203If you meant to cross compile, use \`--host'.
3204See \`config.log' for more details." >&2;}
3205 { (exit 1); exit 1; }; }
3206 fi
3207 fi
3208fi
2aeb72e9
DD
3209echo "$as_me:$LINENO: result: yes" >&5
3210echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3211
3212rm -f a.out a.exe conftest$ac_cv_exeext b.out
3213ac_clean_files=$ac_clean_files_save
2aeb72e9 3214# Check the compiler produces executables we can run. If not, either
1c710c3c 3215# the compiler is broken, or we cross compile.
2aeb72e9
DD
3216echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3217echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3218echo "$as_me:$LINENO: result: $cross_compiling" >&5
3219echo "${ECHO_T}$cross_compiling" >&6
3220
3221echo "$as_me:$LINENO: checking for suffix of executables" >&5
3222echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224 (eval $ac_link) 2>&5
1c710c3c
DJ
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; then
3228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3230# work properly (i.e., refer to `conftest.exe'), while it won't with
3231# `rm'.
3232for ac_file in conftest.exe conftest conftest.*; do
3233 test -f "$ac_file" || continue
3234 case $ac_file in
2aeb72e9 3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3237 export ac_cv_exeext
1c710c3c
DJ
3238 break;;
3239 * ) break;;
3240 esac
3241done
af71363e 3242else
1c710c3c
DJ
3243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3244See \`config.log' for more details." >&5
3245echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3246See \`config.log' for more details." >&2;}
3247 { (exit 1); exit 1; }; }
3248fi
3249
3250rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3251echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3252echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3253
3254rm -f conftest.$ac_ext
3255EXEEXT=$ac_cv_exeext
3256ac_exeext=$EXEEXT
2aeb72e9
DD
3257echo "$as_me:$LINENO: checking for suffix of object files" >&5
3258echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3259if test "${ac_cv_objext+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262 cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h. */
3268
3269int
3270main ()
3271{
3272
3273 ;
3274 return 0;
3275}
3276_ACEOF
3277rm -f conftest.o conftest.obj
2aeb72e9
DD
3278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>&5
1c710c3c
DJ
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; then
2aeb72e9 3283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3284 case $ac_file in
2aeb72e9 3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 break;;
3288 esac
3289done
3290else
3291 echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3295See \`config.log' for more details." >&5
3296echo "$as_me: error: cannot compute suffix of object files: cannot compile
3297See \`config.log' for more details." >&2;}
3298 { (exit 1); exit 1; }; }
3299fi
3300
3301rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302fi
2aeb72e9
DD
3303echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3304echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3305OBJEXT=$ac_cv_objext
3306ac_objext=$OBJEXT
2aeb72e9
DD
3307echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3308echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3309if test "${ac_cv_c_compiler_gnu+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 cat >conftest.$ac_ext <<_ACEOF
3313/* confdefs.h. */
3314_ACEOF
3315cat confdefs.h >>conftest.$ac_ext
3316cat >>conftest.$ac_ext <<_ACEOF
3317/* end confdefs.h. */
3318
3319int
3320main ()
3321{
3322#ifndef __GNUC__
3323 choke me
3324#endif
3325
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330rm -f conftest.$ac_objext
2aeb72e9
DD
3331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag"
3340 || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
1c710c3c
DJ
3352 ac_compiler_gnu=yes
3353else
3354 echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
2aeb72e9 3357ac_compiler_gnu=no
1c710c3c 3358fi
2aeb72e9 3359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3360ac_cv_c_compiler_gnu=$ac_compiler_gnu
3361
3362fi
2aeb72e9
DD
3363echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3365GCC=`test $ac_compiler_gnu = yes && echo yes`
3366ac_test_CFLAGS=${CFLAGS+set}
3367ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3368CFLAGS="-g"
3369echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3370echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3371if test "${ac_cv_prog_cc_g+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
2aeb72e9 3374 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3375/* confdefs.h. */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h. */
3380
3381int
3382main ()
3383{
3384
3385 ;
3386 return 0;
3387}
3388_ACEOF
3389rm -f conftest.$ac_objext
2aeb72e9
DD
3390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3397 (exit $ac_status); } &&
3398 { ac_try='test -z "$ac_c_werror_flag"
3399 || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
1c710c3c
DJ
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
1c710c3c
DJ
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3410 (exit $ac_status); }; }; then
55ffb5ed
NN
3411 ac_cv_prog_cc_g=yes
3412else
1c710c3c
DJ
3413 echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3415
2aeb72e9 3416ac_cv_prog_cc_g=no
0b0dc272 3417fi
2aeb72e9 3418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3419fi
2aeb72e9
DD
3420echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3421echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3422if test "$ac_test_CFLAGS" = set; then
1c710c3c 3423 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3424elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3429 fi
3430else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3435 fi
3436fi
2aeb72e9
DD
3437echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3438echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3439if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
2aeb72e9 3442 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3443ac_save_CC=$CC
3444cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
3450#include <stdarg.h>
3451#include <stdio.h>
3452#include <sys/types.h>
3453#include <sys/stat.h>
3454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3455struct buf { int x; };
3456FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457static char *e (p, i)
3458 char **p;
3459 int i;
3460{
3461 return p[i];
3462}
3463static char *f (char * (*g) (char **, int), char **p, ...)
3464{
3465 char *s;
3466 va_list v;
3467 va_start (v,p);
3468 s = g (p, va_arg (v,int));
3469 va_end (v);
3470 return s;
3471}
3472
3473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3474 function prototypes and stuff, but not '\xHH' hex character constants.
3475 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3476 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3478 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3479 that's true only with -std1. */
1c710c3c
DJ
3480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3481
3482int test (int i, double x);
3483struct s1 {int (*f) (int a);};
3484struct s2 {int (*f) (double a);};
3485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486int argc;
3487char **argv;
3488int
3489main ()
3490{
3491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3492 ;
3493 return 0;
3494}
3495_ACEOF
2aeb72e9
DD
3496# Don't try gcc -ansi; that turns off useful extensions and
3497# breaks some systems' header files.
3498# AIX -qlanglvl=ansi
3499# Ultrix and OSF/1 -std1
3500# HP-UX 10.20 and later -Ae
3501# HP-UX older versions -Aa -D_HPUX_SOURCE
3502# SVR4 -Xc -D__EXTENSIONS__
3503for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3504do
3505 CC="$ac_save_CC $ac_arg"
3506 rm -f conftest.$ac_objext
2aeb72e9
DD
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3528 ac_cv_prog_cc_stdc=$ac_arg
3529break
1c710c3c
DJ
3530else
3531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534fi
2aeb72e9 3535rm -f conftest.err conftest.$ac_objext
1c710c3c 3536done
2aeb72e9 3537rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3538CC=$ac_save_CC
3539
3540fi
2aeb72e9
DD
3541
3542case "x$ac_cv_prog_cc_stdc" in
3543 x|xno)
3544 echo "$as_me:$LINENO: result: none needed" >&5
3545echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3546 *)
2aeb72e9
DD
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3548echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3549 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3550esac
3551
2aeb72e9
DD
3552# Some people use a C++ compiler to compile C. Since we use `exit',
3553# in C++ we need to declare it. In case someone uses the same compiler
3554# for both compiling C and C++ we need to have the C++ compiler decide
3555# the declaration of exit, since it's the most demanding environment.
3556cat >conftest.$ac_ext <<_ACEOF
3557#ifndef __cplusplus
3558 choke me
3559#endif
3560_ACEOF
3561rm -f conftest.$ac_objext
3562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3583 for ac_declaration in \
3584 '' \
3585 'extern "C" void std::exit (int) throw (); using std::exit;' \
3586 'extern "C" void std::exit (int); using std::exit;' \
3587 'extern "C" void exit (int) throw ();' \
3588 'extern "C" void exit (int);' \
3589 'void exit (int);'
3590do
3591 cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
3597$ac_declaration
3598#include <stdlib.h>
3599int
3600main ()
3601{
3602exit (42);
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3629 :
3630else
3631 echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634continue
3635fi
3636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643$ac_declaration
3644int
3645main ()
3646{
3647exit (42);
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3674 break
3675else
3676 echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679fi
3680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681done
3682rm -f conftest*
3683if test -n "$ac_declaration"; then
3684 echo '#ifdef __cplusplus' >>confdefs.h
3685 echo $ac_declaration >>confdefs.h
3686 echo '#endif' >>confdefs.h
3687fi
3688
3689else
3690 echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
3692
3693fi
3694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700
3701ac_ext=cc
3702ac_cpp='$CXXCPP $CPPFLAGS'
3703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3706if test -n "$ac_tool_prefix"; then
3707 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3708 do
3709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3711echo "$as_me:$LINENO: checking for $ac_word" >&5
3712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713if test "${ac_cv_prog_CXX+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
3716 if test -n "$CXX"; then
3717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3729 fi
3730done
3731done
55ffb5ed 3732
c3a86da9
DJ
3733fi
3734fi
3735CXX=$ac_cv_prog_CXX
3736if test -n "$CXX"; then
2aeb72e9
DD
3737 echo "$as_me:$LINENO: result: $CXX" >&5
3738echo "${ECHO_T}$CXX" >&6
c3a86da9 3739else
2aeb72e9
DD
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
c3a86da9
DJ
3742fi
3743
3744 test -n "$CXX" && break
3745 done
3746fi
3747if test -z "$CXX"; then
3748 ac_ct_CXX=$CXX
2aeb72e9 3749 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3750do
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3753echo "$as_me:$LINENO: checking for $ac_word" >&5
3754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3755if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758 if test -n "$ac_ct_CXX"; then
3759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3760else
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3768 ac_cv_prog_ac_ct_CXX="$ac_prog"
3769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772done
3773done
3774
3775fi
3776fi
3777ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3779 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3780echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3781else
2aeb72e9
DD
3782 echo "$as_me:$LINENO: result: no" >&5
3783echo "${ECHO_T}no" >&6
c3a86da9
DJ
3784fi
3785
3786 test -n "$ac_ct_CXX" && break
3787done
2aeb72e9 3788test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3789
2aeb72e9 3790 CXX=$ac_ct_CXX
c3a86da9
DJ
3791fi
3792
2aeb72e9 3793
c3a86da9 3794# Provide some information about the compiler.
2aeb72e9
DD
3795echo "$as_me:$LINENO:" \
3796 "checking for C++ compiler version" >&5
c3a86da9 3797ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3798{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3799 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
2aeb72e9
DD
3803{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3804 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
2aeb72e9
DD
3808{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3809 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }
3813
2aeb72e9
DD
3814echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3815echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3816if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819 cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h. */
3825
3826int
3827main ()
3828{
3829#ifndef __GNUC__
3830 choke me
3831#endif
3832
3833 ;
3834 return 0;
3835}
3836_ACEOF
3837rm -f conftest.$ac_objext
2aeb72e9
DD
3838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_cxx_werror_flag"
3847 || test ! -s conftest.err'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; } &&
3853 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
c3a86da9
DJ
3859 ac_compiler_gnu=yes
3860else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
2aeb72e9 3864ac_compiler_gnu=no
c3a86da9 3865fi
2aeb72e9 3866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3867ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3868
3869fi
2aeb72e9
DD
3870echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3871echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3872GXX=`test $ac_compiler_gnu = yes && echo yes`
3873ac_test_CXXFLAGS=${CXXFLAGS+set}
3874ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3875CXXFLAGS="-g"
3876echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3877echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3878if test "${ac_cv_prog_cxx_g+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
2aeb72e9 3881 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
3887
3888int
3889main ()
3890{
3891
3892 ;
3893 return 0;
3894}
3895_ACEOF
3896rm -f conftest.$ac_objext
2aeb72e9
DD
3897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3899 ac_status=$?
3900 grep -v '^ *+' conftest.er1 >conftest.err
3901 rm -f conftest.er1
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3904 (exit $ac_status); } &&
3905 { ac_try='test -z "$ac_cxx_werror_flag"
3906 || test ! -s conftest.err'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; } &&
3912 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
c3a86da9
DJ
3918 ac_cv_prog_cxx_g=yes
3919else
3920 echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
2aeb72e9
DD
3923ac_cv_prog_cxx_g=no
3924fi
3925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3926fi
3927echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3928echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3929if test "$ac_test_CXXFLAGS" = set; then
3930 CXXFLAGS=$ac_save_CXXFLAGS
3931elif test $ac_cv_prog_cxx_g = yes; then
3932 if test "$GXX" = yes; then
3933 CXXFLAGS="-g -O2"
3934 else
3935 CXXFLAGS="-g"
3936 fi
3937else
3938 if test "$GXX" = yes; then
3939 CXXFLAGS="-O2"
3940 else
3941 CXXFLAGS=
3942 fi
3943fi
3944for ac_declaration in \
3945 '' \
3946 'extern "C" void std::exit (int) throw (); using std::exit;' \
3947 'extern "C" void std::exit (int); using std::exit;' \
3948 'extern "C" void exit (int) throw ();' \
3949 'extern "C" void exit (int);' \
3950 'void exit (int);'
3951do
3952 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3953/* confdefs.h. */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h. */
2aeb72e9
DD
3958$ac_declaration
3959#include <stdlib.h>
c3a86da9
DJ
3960int
3961main ()
3962{
2aeb72e9 3963exit (42);
c3a86da9
DJ
3964 ;
3965 return 0;
3966}
3967_ACEOF
3968rm -f conftest.$ac_objext
2aeb72e9
DD
3969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3976 (exit $ac_status); } &&
3977 { ac_try='test -z "$ac_cxx_werror_flag"
3978 || test ! -s conftest.err'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; } &&
3984 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
c3a86da9
DJ
3990 :
3991else
3992 echo "$as_me: failed program was:" >&5
3993sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 3994
2aeb72e9
DD
3995continue
3996fi
3997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3998 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
2aeb72e9 4004$ac_declaration
c3a86da9
DJ
4005int
4006main ()
4007{
2aeb72e9 4008exit (42);
c3a86da9
DJ
4009 ;
4010 return 0;
4011}
4012_ACEOF
4013rm -f conftest.$ac_objext
2aeb72e9
DD
4014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4021 (exit $ac_status); } &&
4022 { ac_try='test -z "$ac_cxx_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4035 break
c3a86da9
DJ
4036else
4037 echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
11a67599 4040fi
2aeb72e9
DD
4041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042done
4043rm -f conftest*
4044if test -n "$ac_declaration"; then
4045 echo '#ifdef __cplusplus' >>confdefs.h
4046 echo $ac_declaration >>confdefs.h
4047 echo '#endif' >>confdefs.h
c3a86da9
DJ
4048fi
4049
4050ac_ext=c
4051ac_cpp='$CPP $CPPFLAGS'
4052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056
4057# We must set the default linker to the linker used by gcc for the correct
4058# operation of libtool. If LD is not defined and we are using gcc, try to
4059# set the LD default to the ld used by gcc.
4060if test -z "$LD"; then
4061 if test "$GCC" = yes; then
4062 case $build in
4063 *-*-mingw*)
4064 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4065 *)
4066 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4067 esac
4068 case $gcc_prog_ld in
4069 # Accept absolute paths.
4070 [\\/]* | [A-Za-z]:[\\/]*)
4071 LD="$gcc_prog_ld" ;;
4072 esac
4073 fi
23f6b2f9
PB
4074fi
4075
23f6b2f9
PB
4076
4077
55ffb5ed 4078
1c710c3c
DJ
4079if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4081set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4082echo "$as_me:$LINENO: checking for $ac_word" >&5
4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4084if test "${ac_cv_prog_GNATBIND+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4086else
4087 if test -n "$GNATBIND"; then
4088 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4089else
1c710c3c
DJ
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4097 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101done
4102done
4103
55ffb5ed
NN
4104fi
4105fi
1c710c3c 4106GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4107if test -n "$GNATBIND"; then
2aeb72e9
DD
4108 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4109echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4110else
2aeb72e9
DD
4111 echo "$as_me:$LINENO: result: no" >&5
4112echo "${ECHO_T}no" >&6
55ffb5ed
NN
4113fi
4114
1c710c3c 4115fi
55ffb5ed 4116if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4117 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4118 # Extract the first word of "gnatbind", so it can be a program name with args.
4119set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4120echo "$as_me:$LINENO: checking for $ac_word" >&5
4121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4122if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4124else
1c710c3c
DJ
4125 if test -n "$ac_ct_GNATBIND"; then
4126 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4127else
1c710c3c
DJ
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4135 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139done
4140done
4141
2aeb72e9 4142 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4143fi
4144fi
1c710c3c
DJ
4145ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4146if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4147 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4148echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4149else
2aeb72e9
DD
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
55ffb5ed
NN
4152fi
4153
2aeb72e9 4154 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4155else
1c710c3c 4156 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4157fi
4158
1c710c3c
DJ
4159if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4161set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4162echo "$as_me:$LINENO: checking for $ac_word" >&5
4163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4164if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4166else
4167 if test -n "$GNATMAKE"; then
4168 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4169else
1c710c3c
DJ
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4177 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4180 fi
4181done
4182done
4183
5305be7e
RG
4184fi
4185fi
1c710c3c 4186GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4187if test -n "$GNATMAKE"; then
2aeb72e9
DD
4188 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4189echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4190else
2aeb72e9
DD
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
5305be7e
RG
4193fi
4194
1c710c3c 4195fi
5305be7e 4196if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4197 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4198 # Extract the first word of "gnatmake", so it can be a program name with args.
4199set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4200echo "$as_me:$LINENO: checking for $ac_word" >&5
4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4202if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4204else
1c710c3c
DJ
4205 if test -n "$ac_ct_GNATMAKE"; then
4206 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4207else
1c710c3c
DJ
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4215 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219done
4220done
4221
2aeb72e9 4222 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4223fi
4224fi
1c710c3c
DJ
4225ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4226if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4227 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4228echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4229else
2aeb72e9
DD
4230 echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
5305be7e
RG
4232fi
4233
2aeb72e9 4234 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4235else
1c710c3c 4236 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4237fi
4238
2aeb72e9
DD
4239echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4240echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4241if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4243else
4244 cat >conftest.adb <<EOF
4245procedure conftest is begin null; end conftest;
4246EOF
4247acx_cv_cc_gcc_supports_ada=no
4248# There is a bug in old released versions of GCC which causes the
4249# driver to exit successfully when the appropriate language module
4250# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4251# Therefore we must check for the error message as well as an
4252# unsuccessful exit.
1db673ca
RO
4253# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4254# given a .adb file, but produce no object file. So we must check
4255# if an object file was really produced to guard against this.
55ffb5ed 4256errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4257if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4258 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4259fi
4260rm -f conftest.*
4261fi
2aeb72e9
DD
4262echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4263echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4264
5305be7e 4265if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4266 have_gnat=yes
4267else
4268 have_gnat=no
4269fi
4270
2aeb72e9
DD
4271echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4272echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4273if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4275else
4276 echo abfoo >t1
4277 echo cdfoo >t2
4278 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4279 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4280 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4281 :
4282 else
4283 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4284 fi
4285 fi
a76494aa
PB
4286 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4287 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4288 :
a76494aa
PB
4289 else
4290 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4291 fi
4292 fi
4293 rm t1 t2
4294
4295fi
2aeb72e9
DD
4296echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4297echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4298do_compare="$gcc_cv_prog_cmp_skip"
4299
4300
55ffb5ed 4301
bebf829d 4302# Check for GMP and MPFR
e69bf64b 4303gmplibs="-lmpfr -lgmp"
6de9cd9a 4304gmpinc=
e69bf64b
PB
4305have_gmp=no
4306
bebf829d
PB
4307# Specify a location for mpfr
4308# check for this first so it ends up on the link line before gmp.
1c710c3c 4309
2aeb72e9 4310# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4311if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4312 withval="$with_mpfr_dir"
4313 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4314Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4315echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4316Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4317 { (exit 1); exit 1; }; }
2aeb72e9 4318fi;
bebf829d
PB
4319
4320
2aeb72e9 4321# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4322if test "${with_mpfr+set}" = set; then
2aeb72e9 4323 withval="$with_mpfr"
1c710c3c 4324
2aeb72e9 4325fi;
bebf829d 4326
2aeb72e9 4327# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4328if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4329 withval="$with_mpfr_include"
1c710c3c 4330
2aeb72e9 4331fi;
8a877c9c 4332
2aeb72e9 4333# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4334if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4335 withval="$with_mpfr_lib"
8a877c9c 4336
2aeb72e9 4337fi;
bebf829d
PB
4338
4339if test "x$with_mpfr" != x; then
4340 gmplibs="-L$with_mpfr/lib $gmplibs"
4341 gmpinc="-I$with_mpfr/include"
4342fi
8a877c9c
KG
4343if test "x$with_mpfr_include" != x; then
4344 gmpinc="-I$with_mpfr_include"
4345fi
4346if test "x$with_mpfr_lib" != x; then
4347 gmplibs="-L$with_mpfr_lib $gmplibs"
4348fi
e69bf64b
PB
4349if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4350 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4351 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4352 # Do not test the mpfr version. Assume that it is sufficient, since
4353 # it is in the source tree, and the library has not been built yet
4354 # but it would be included on the link line in the version check below
4355 # hence making the test fail.
4356 have_gmp=yes
4357fi
bebf829d 4358
6de9cd9a 4359# Specify a location for gmp
1c710c3c 4360
2aeb72e9 4361# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4362if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4363 withval="$with_gmp_dir"
4364 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4365Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4366echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4367Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4368 { (exit 1); exit 1; }; }
2aeb72e9 4369fi;
6de9cd9a 4370
6de9cd9a 4371
2aeb72e9 4372# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4373if test "${with_gmp+set}" = set; then
2aeb72e9 4374 withval="$with_gmp"
1c710c3c 4375
2aeb72e9 4376fi;
6de9cd9a 4377
2aeb72e9 4378# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4379if test "${with_gmp_include+set}" = set; then
2aeb72e9 4380 withval="$with_gmp_include"
1c710c3c 4381
2aeb72e9 4382fi;
8a877c9c 4383
2aeb72e9 4384# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4385if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4386 withval="$with_gmp_lib"
8a877c9c 4387
2aeb72e9 4388fi;
8a877c9c 4389
6de9cd9a 4390
bebf829d
PB
4391if test "x$with_gmp" != x; then
4392 gmplibs="-L$with_gmp/lib $gmplibs"
4393 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4394fi
8a877c9c
KG
4395if test "x$with_gmp_include" != x; then
4396 gmpinc="-I$with_gmp_include $gmpinc"
4397fi
4398if test "x$with_gmp_lib" != x; then
4399 gmplibs="-L$with_gmp_lib $gmplibs"
4400fi
e69bf64b
PB
4401if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4402 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4403 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4404 # Do not test the gmp version. Assume that it is sufficient, since
4405 # it is in the source tree, and the library has not been built yet
4406 # but it would be included on the link line in the version check below
4407 # hence making the test fail.
4408 have_gmp=yes
4409fi
6de9cd9a 4410
d943d7c4 4411if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4412 have_gmp=yes
4413 saved_CFLAGS="$CFLAGS"
4414 CFLAGS="$CFLAGS $gmpinc"
4415 # Check GMP actually works
2aeb72e9
DD
4416 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4417echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4418
4419cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h. */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h. */
6de9cd9a 4425#include "gmp.h"
1c710c3c
DJ
4426int
4427main ()
4428{
6de9cd9a 4429
e69bf64b
PB
4430 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4431 choke me
4432 #endif
1c710c3c
DJ
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438rm -f conftest.$ac_objext
2aeb72e9
DD
4439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4460 echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4462else
4463 echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
4465
2aeb72e9
DD
4466echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4468fi
2aeb72e9 4469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4470
e69bf64b
PB
4471 if test x"$have_gmp" = xyes; then
4472 saved_LIBS="$LIBS"
4473 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4474 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4475echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4476 cat >conftest.$ac_ext <<_ACEOF
4477/* confdefs.h. */
4478_ACEOF
4479cat confdefs.h >>conftest.$ac_ext
4480cat >>conftest.$ac_ext <<_ACEOF
4481/* end confdefs.h. */
70ec446f 4482#include <gmp.h>
e69bf64b 4483 #include <mpfr.h>
1c710c3c
DJ
4484int
4485main ()
4486{
e48d66a9 4487
e69bf64b
PB
4488 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4489 choke me
4490 #endif
54e433bc
MK
4491 mpfr_t n;
4492 mpfr_t x;
e69bf64b 4493 int t;
54e433bc
MK
4494 mpfr_init (n);
4495 mpfr_init (x);
e69bf64b
PB
4496 mpfr_atan2 (n, n, x, GMP_RNDN);
4497 mpfr_erfc (n, x, GMP_RNDN);
4498 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4499
4500 ;
4501 return 0;
4502}
4503_ACEOF
4504rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
1c710c3c
DJ
4526 cat >conftest.$ac_ext <<_ACEOF
4527/* confdefs.h. */
4528_ACEOF
4529cat confdefs.h >>conftest.$ac_ext
4530cat >>conftest.$ac_ext <<_ACEOF
4531/* end confdefs.h. */
a3993f33 4532#include <gmp.h>
e69bf64b 4533 #include <mpfr.h>
1c710c3c
DJ
4534int
4535main ()
4536{
a3993f33 4537
e69bf64b
PB
4538 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4539 choke me
4540 #endif
4541 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4571else
4572 echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
2aeb72e9
DD
4575echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4576echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4577fi
2aeb72e9 4578rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4579 conftest$ac_exeext conftest.$ac_ext
4580else
4581 echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
2aeb72e9
DD
4584echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4586fi
2aeb72e9 4587rm -f conftest.err conftest.$ac_objext \
1c710c3c 4588 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4589 LIBS="$saved_LIBS"
4590 fi
4591 CFLAGS="$saved_CFLAGS"
6de9cd9a 4592
e69bf64b 4593 if test x$have_gmp != xyes; then
1c710c3c
DJ
4594 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4595Try the --with-gmp and/or --with-mpfr options to specify their locations.
4596Copies of these libraries' source code can be found at their respective
4597hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4598See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4599If you obtained GMP and/or MPFR from a vendor distribution package, make
4600sure that you have installed both the libraries and the header files.
4601They may be located in separate packages." >&5
4602echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4603Try the --with-gmp and/or --with-mpfr options to specify their locations.
4604Copies of these libraries' source code can be found at their respective
4605hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4606See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4607If you obtained GMP and/or MPFR from a vendor distribution package, make
4608sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4609They may be located in separate packages." >&2;}
4610 { (exit 1); exit 1; }; }
e69bf64b 4611 fi
70ec446f
KG
4612fi
4613
bebf829d 4614# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4615
4616
4617
1e0f07d3 4618# By default, C is the only stage 1 language.
e1888513 4619stage1_languages=,c,
2805b53a 4620
55ffb5ed
NN
4621# Figure out what language subdirectories are present.
4622# Look if the user specified --enable-languages="..."; if not, use
4623# the environment variable $LANGUAGES if defined. $LANGUAGES might
4624# go away some day.
4625# NB: embedded tabs in this IF block -- do not untabify
4626if test -d ${srcdir}/gcc; then
4627 if test x"${enable_languages+set}" != xset; then
4628 if test x"${LANGUAGES+set}" = xset; then
4629 enable_languages="${LANGUAGES}"
4630 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4631 else
4632 enable_languages=all
4633 fi
4634 else
4635 if test x"${enable_languages}" = x ||
4636 test x"${enable_languages}" = xyes;
4637 then
4638 echo configure.in: --enable-languages needs at least one language argument 1>&2
4639 exit 1
4640 fi
4641 fi
4642 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4643
7f26dfa3
FXC
4644 # 'f95' is the old name for the 'fortran' language. We issue a warning
4645 # and make the substitution.
4646 case ,${enable_languages}, in
4647 *,f95,*)
4648 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4649 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4650 ;;
4651 esac
4652
55ffb5ed
NN
4653 # First scan to see if an enabled language requires some other language.
4654 # We assume that a given config-lang.in will list all the language
4655 # front ends it requires, even if some are required indirectly.
4656 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4657 case ${lang_frag} in
4658 ..) ;;
4659 # The odd quoting in the next line works around
4660 # an apparent bug in bash 1.12 on linux.
4661 ${srcdir}/gcc/[*]/config-lang.in) ;;
4662 *)
4663 # From the config-lang.in, get $language, $lang_requires
4664 language=
4665 lang_requires=
4666 . ${lang_frag}
4667 for other in ${lang_requires} ; do
4668 case ,${enable_languages}, in
4669 *,$other,*) ;;
4670 *,all,*) ;;
4671 *,$language,*)
4672 echo " \`$other' language required by \`$language'; enabling" 1>&2
4673 enable_languages="${enable_languages},${other}"
4674 ;;
4675 esac
4676 done
4677 ;;
4678 esac
4679 done
4680
e1888513 4681 new_enable_languages=,c,
55ffb5ed 4682 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4683 potential_languages=,c,
55ffb5ed
NN
4684
4685 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4686 case ${lang_frag} in
4687 ..) ;;
4688 # The odd quoting in the next line works around
4689 # an apparent bug in bash 1.12 on linux.
4690 ${srcdir}/gcc/[*]/config-lang.in) ;;
4691 *)
1c710c3c 4692 # From the config-lang.in, get $language, $target_libs,
2805b53a 4693 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4694 language=
4695 target_libs=
4696 lang_dirs=
1546bb64 4697 subdir_requires=
e1888513
PB
4698 boot_language=no
4699 build_by_default=yes
55ffb5ed 4700 . ${lang_frag}
e1888513
PB
4701 if test x${language} = x; then
4702 echo "${lang_frag} doesn't set \$language." 1>&2
4703 exit 1
4704 fi
4705
4706 case ,${enable_languages}, in
4707 *,${language},*)
55ffb5ed
NN
4708 # Language was explicitly selected; include it.
4709 add_this_lang=yes
4710 ;;
e1888513
PB
4711 *,all,*)
4712 # 'all' was selected, select it if it is a default language
4713 add_this_lang=${build_by_default}
55ffb5ed
NN
4714 ;;
4715 *)
4716 add_this_lang=no
4717 ;;
4718 esac
6de9cd9a 4719
1546bb64 4720 # Disable languages that need other directories if these aren't available.
95695ad3 4721 for i in $subdir_requires; do
b6348cb3 4722 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4723 case ,${enable_languages}, in
4724 *,${language},*)
4725 # Specifically requested language; tell them.
1c710c3c
DJ
4726 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4727echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4728 { (exit 1); exit 1; }; }
1546bb64
PB
4729 ;;
4730 *)
4731 # Silently disable.
e1888513 4732 add_this_lang=unsupported
1546bb64
PB
4733 ;;
4734 esac
4735 done
4736
e1888513
PB
4737 # Disable Ada if no preexisting GNAT is available.
4738 case ,${enable_languages},:${language}:${have_gnat} in
4739 *,${language},*:ada:no)
4740 # Specifically requested language; tell them.
1c710c3c
DJ
4741 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4742echo "$as_me: error: GNAT is required to build $language" >&2;}
4743 { (exit 1); exit 1; }; }
e1888513
PB
4744 ;;
4745 *:ada:no)
4746 # Silently disable.
4747 add_this_lang=unsupported
4748 ;;
4749 esac
4750
4fab7234
HPN
4751 # Disable a language that is unsupported by the target.
4752 case " $unsupported_languages " in
4753 *" $language "*)
e1888513 4754 add_this_lang=unsupported
4fab7234
HPN
4755 ;;
4756 esac
4757
6de9cd9a 4758 case $add_this_lang in
e1888513 4759 unsupported)
55ffb5ed 4760 # Remove language-dependent dirs.
2805b53a
NN
4761 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4762 ;;
e1888513
PB
4763 no)
4764 # Remove language-dependent dirs; still show language as supported.
4765 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4766 potential_languages="${potential_languages}${language},"
4767 ;;
4768 yes)
4769 new_enable_languages="${new_enable_languages}${language},"
4770 potential_languages="${potential_languages}${language},"
2805b53a
NN
4771 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4772 case ${boot_language} in
4773 yes)
340de83f 4774 # Add to (comma-separated) list of stage 1 languages.
e1888513 4775 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4776 ;;
4777 esac
4778 ;;
55ffb5ed
NN
4779 esac
4780 ;;
4781 esac
4782 done
4783
2aeb72e9 4784 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4785if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4786 enableval="$enable_stage1_languages"
4787 case ,${enable_stage1_languages}, in
e1888513
PB
4788 ,no,|,,)
4789 # Set it to something that will have no effect in the loop below
4790 enable_stage1_languages=c ;;
4791 ,yes,)
4792 enable_stage1_languages=`echo $new_enable_languages | \
4793 sed -e "s/^,//" -e "s/,$//" ` ;;
4794 *,all,*)
4795 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4796 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4797 esac
4798
4799 # Add "good" languages from enable_stage1_languages to stage1_languages,
4800 # while "bad" languages go in missing_languages. Leave no duplicates.
4801 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4802 case $potential_languages in
4803 *,$i,*)
4804 case $stage1_languages in
4805 *,$i,*) ;;
4806 *) stage1_languages="$stage1_languages$i," ;;
4807 esac ;;
4808 *)
4809 case $missing_languages in
4810 *,$i,*) ;;
4811 *) missing_languages="$missing_languages$i," ;;
4812 esac ;;
4813 esac
4814 done
2aeb72e9 4815fi;
e1888513
PB
4816
4817 # Remove leading/trailing commas that were added for simplicity
4818 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4819 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4820 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4821 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4822
55ffb5ed 4823 if test "x$missing_languages" != x; then
1c710c3c 4824 { { echo "$as_me:$LINENO: error:
0cf085e4 4825The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4826Supported languages are: ${potential_languages}" >&5
4827echo "$as_me: error:
4828The following requested languages could not be built: ${missing_languages}
4829Supported languages are: ${potential_languages}" >&2;}
4830 { (exit 1); exit 1; }; }
55ffb5ed 4831 fi
55ffb5ed
NN
4832 if test "x$new_enable_languages" != "x$enable_languages"; then
4833 echo The following languages will be built: ${new_enable_languages}
e1888513 4834 enable_languages="$new_enable_languages"
55ffb5ed 4835 fi
e1888513 4836
1c710c3c 4837
b2eaac4a 4838 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4839fi
4840
27079765
AH
4841# Handle --disable-<component> generically.
4842for dir in $configdirs $build_configdirs $target_configdirs ; do
4843 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4844 if eval test x\${enable_${dirname}} "=" xno ; then
4845 noconfigdirs="$noconfigdirs $dir"
4846 fi
4847done
4848
7cd0cf9c 4849# Check for Boehm's garbage collector
2aeb72e9 4850# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4851if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4852 enableval="$enable_objc_gc"
4853 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4854 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4855 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4856echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4857 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4858 ;;
4859esac
2aeb72e9 4860fi;
7cd0cf9c
DA
4861
4862# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4863case ,${enable_languages},:${enable_objc_gc} in
4864 *,objc,*:yes)
7cd0cf9c
DA
4865 # Keep target-boehm-gc if requested for Objective-C.
4866 ;;
7cd0cf9c 4867 *)
2a79fd67
DA
4868 # Otherwise remove target-boehm-gc depending on target-libjava.
4869 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4870 noconfigdirs="$noconfigdirs target-boehm-gc"
4871 fi
7cd0cf9c
DA
4872 ;;
4873esac
4874
ee6a22df
L
4875# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4876# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4877# If we have the source for $noconfigdirs entries, add them to $notsupp.
4878
4879notsupp=""
4880for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4881 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4882 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4883 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4884 if test -r $srcdir/$dirname/configure ; then
4885 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4886 true
4887 else
4888 notsupp="$notsupp $dir"
4889 fi
4890 fi
4891 fi
ee6a22df
L
4892 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4893 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4894 if test -r $srcdir/$dirname/configure ; then
4895 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4896 true
4897 else
4898 notsupp="$notsupp $dir"
4899 fi
4900 fi
4901 fi
55ffb5ed
NN
4902 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4903 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4904 if test -r $srcdir/$dirname/configure ; then
4905 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4906 true
4907 else
4908 notsupp="$notsupp $dir"
4909 fi
4910 fi
4911 fi
4912done
4913
4914# Sometimes the tools are distributed with libiberty but with no other
4915# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4916# Don't let libgcc imply libiberty either.
55ffb5ed 4917if test -n "${target_configdirs}" ; then
54fdc474 4918 libgcc=
55ffb5ed
NN
4919 others=
4920 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4921 if test "$i" = "libgcc"; then
4922 libgcc=target-libgcc
4923 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4924 if test -r $srcdir/$i/configure ; then
4925 others=yes;
4926 break;
4927 fi
4928 fi
4929 done
4930 if test -z "${others}" ; then
54fdc474 4931 target_configdirs=$libgcc
55ffb5ed
NN
4932 fi
4933fi
4934
4935# Quietly strip out all directories which aren't configurable in this tree.
4936# This relies on all configurable subdirectories being autoconfiscated, which
4937# is now the case.
23f6b2f9
PB
4938build_configdirs_all="$build_configdirs"
4939build_configdirs=
4940for i in ${build_configdirs_all} ; do
1c710c3c 4941 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4942 if test -f ${srcdir}/$j/configure ; then
4943 build_configdirs="${build_configdirs} $i"
4944 fi
4945done
4946
55ffb5ed
NN
4947configdirs_all="$configdirs"
4948configdirs=
4949for i in ${configdirs_all} ; do
4950 if test -f ${srcdir}/$i/configure ; then
4951 configdirs="${configdirs} $i"
4952 fi
4953done
23f6b2f9 4954
55ffb5ed
NN
4955target_configdirs_all="$target_configdirs"
4956target_configdirs=
4957for i in ${target_configdirs_all} ; do
1c710c3c 4958 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4959 if test -f ${srcdir}/$j/configure ; then
4960 target_configdirs="${target_configdirs} $i"
4961 fi
4962done
4963
4964# Produce a warning message for the subdirs we can't configure.
4965# This isn't especially interesting in the Cygnus tree, but in the individual
4966# FSF releases, it's important to let people know when their machine isn't
4967# supported by the one or two programs in a package.
4968
4969if test -n "${notsupp}" && test -z "${norecursion}" ; then
4970 # If $appdirs is non-empty, at least one of those directories must still
4971 # be configured, or we error out. (E.g., if the gas release supports a
4972 # specified target in some subdirs but not the gas subdir, we shouldn't
4973 # pretend that all is well.)
4974 if test -n "$appdirs" ; then
4975 for dir in $appdirs ; do
4976 if test -r $dir/Makefile.in ; then
4977 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4978 appdirs=""
4979 break
4980 fi
23f6b2f9 4981 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4982 appdirs=""
4983 break
4984 fi
4985 fi
4986 done
4987 if test -n "$appdirs" ; then
4988 echo "*** This configuration is not supported by this package." 1>&2
4989 exit 1
4990 fi
4991 fi
4992 # Okay, some application will build, or we don't care to check. Still
4993 # notify of subdirs not getting built.
4994 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4995 echo " ${notsupp}" 1>&2
4996 echo " (Any other directories should still work fine.)" 1>&2
4997fi
4998
4999case "$host" in
5000 *msdosdjgpp*)
5001 enable_gdbtk=no ;;
5002esac
5003
c3a86da9
DJ
5004# To find our prefix, in gcc_cv_tool_prefix.
5005
5006# The user is always right.
5007if test "${PATH_SEPARATOR+set}" != set; then
5008 echo "#! /bin/sh" >conf$$.sh
5009 echo "exit 0" >>conf$$.sh
5010 chmod +x conf$$.sh
5011 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5012 PATH_SEPARATOR=';'
5013 else
5014 PATH_SEPARATOR=:
5015 fi
5016 rm -f conf$$.sh
5017fi
5018
5019
5020
5021if test "x$exec_prefix" = xNONE; then
5022 if test "x$prefix" = xNONE; then
5023 gcc_cv_tool_prefix=$ac_default_prefix
5024 else
5025 gcc_cv_tool_prefix=$prefix
5026 fi
5027else
5028 gcc_cv_tool_prefix=$exec_prefix
5029fi
5030
5031# If there is no compiler in the tree, use the PATH only. In any
5032# case, if there is no compiler in the tree nobody should use
5033# AS_FOR_TARGET and LD_FOR_TARGET.
5034if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5035 gcc_version=`cat $srcdir/gcc/BASE-VER`
5036 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5037 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5038 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5039 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5040 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5041 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5042else
5043 gcc_cv_tool_dirs=
5044fi
5045
5046if test x$build = x$target && test -n "$md_exec_prefix"; then
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5048fi
5049
5050
5051
55ffb5ed
NN
5052copy_dirs=
5053
1c710c3c 5054
2aeb72e9 5055# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5056if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5057 withval="$with_build_sysroot"
5058 if test x"$withval" != x ; then
526635cb
MM
5059 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5060 fi
5061else
5062 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5063fi;
526635cb
MM
5064
5065
55ffb5ed
NN
5066# Handle --with-headers=XXX. If the value is not "yes", the contents of
5067# the named directory are copied to $(tooldir)/sys-include.
5068if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5069 if test x${is_cross_compiler} = xno ; then
5070 echo 1>&2 '***' --with-headers is only supported when cross compiling
5071 exit 1
5072 fi
5073 if test x"${with_headers}" != xyes ; then
c3a86da9 5074 x=${gcc_cv_tool_prefix}
1c710c3c 5075 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5076 fi
5077fi
5078
5079# Handle --with-libs=XXX. If the value is not "yes", the contents of
5080# the name directories are copied to $(tooldir)/lib. Multiple directories
5081# are permitted.
5082if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5083 if test x${is_cross_compiler} = xno ; then
5084 echo 1>&2 '***' --with-libs is only supported when cross compiling
5085 exit 1
5086 fi
5087 if test x"${with_libs}" != xyes ; then
5088 # Copy the libraries in reverse order, so that files in the first named
5089 # library override files in subsequent libraries.
c3a86da9 5090 x=${gcc_cv_tool_prefix}
55ffb5ed 5091 for l in ${with_libs}; do
1c710c3c 5092 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5093 done
5094 fi
5095fi
5096
e8b05380
PB
5097# Set with_gnu_as and with_gnu_ld as appropriate.
5098#
5099# This is done by determining whether or not the appropriate directory
5100# is available, and by checking whether or not specific configurations
5101# have requested that this magic not happen.
1c710c3c
DJ
5102#
5103# The command line options always override the explicit settings in
e8b05380
PB
5104# configure.in, and the settings in configure.in override this magic.
5105#
1c710c3c 5106# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5107# want to do that, then you should use the --without-gnu-as and
5108# --without-gnu-ld options for the configure script.
5109
5110if test x${use_gnu_as} = x &&
5111 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5112 with_gnu_as=yes
5113 extra_host_args="$extra_host_args --with-gnu-as"
5114fi
5115
5116if test x${use_gnu_ld} = x &&
5117 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5118 with_gnu_ld=yes
5119 extra_host_args="$extra_host_args --with-gnu-ld"
5120fi
5121
5122# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5123# can detect this case.
5124
5125if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5126 with_newlib=yes
5127 extra_host_args="$extra_host_args --with-newlib"
5128fi
5129
55ffb5ed
NN
5130# Handle ${copy_dirs}
5131set fnord ${copy_dirs}
5132shift
5133while test $# != 0 ; do
5134 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5135 :
5136 else
5137 echo Copying $1 to $2
5138
5139 # Use the install script to create the directory and all required
5140 # parent directories.
5141 if test -d $2 ; then
5142 :
5143 else
5144 echo >config.temp
5145 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5146 fi
5147
5148 # Copy the directory, assuming we have tar.
5149 # FIXME: Should we use B in the second tar? Not all systems support it.
5150 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5151
5152 # It is the responsibility of the user to correctly adjust all
5153 # symlinks. If somebody can figure out how to handle them correctly
5154 # here, feel free to add the code.
5155
5156 echo $1 > $2/COPIED
5157 fi
5158 shift; shift
5159done
5160
e8b05380
PB
5161# Determine a target-dependent exec_prefix that the installed
5162# gcc will search in. Keep this list sorted by triplet, with
5163# the *-*-osname triplets last.
5164md_exec_prefix=
5165case "${target}" in
5166 alpha*-*-*vms*)
5167 md_exec_prefix=/gnu/lib/gcc-lib
5168 ;;
5169 i3456786-pc-msdosdjgpp*)
5170 md_exec_prefix=/dev/env/DJDIR/bin
5171 ;;
5172 i3456786-*-sco3.2v5*)
5173 if test $with_gnu_as = yes; then
5174 md_exec_prefix=/usr/gnu/bin
5175 else
5176 md_exec_prefix=/usr/ccs/bin/elf
5177 fi
5178 ;;
5179
5180 mn10300-*-* | \
5181 powerpc-*-chorusos* | \
5182 powerpc*-*-eabi* | \
5183 powerpc*-*-sysv* | \
5184 powerpc*-*-kaos* | \
5185 s390x-ibm-tpf*)
5186 md_exec_prefix=/usr/ccs/bin
5187 ;;
5188 sparc64-*-elf*)
5189 ;;
5190 v850*-*-*)
5191 md_exec_prefix=/usr/ccs/bin
5192 ;;
5193 xtensa-*-elf*)
5194 ;;
5195
5196 *-*-beos* | \
5197 *-*-elf* | \
5198 *-*-hpux* | \
5199 *-*-netware* | \
5200 *-*-nto-qnx* | \
5201 *-*-rtems* | \
5202 *-*-solaris2* | \
5203 *-*-sysv45* | \
5204 *-*-vxworks* | \
5205 *-wrs-windiss)
5206 md_exec_prefix=/usr/ccs/bin
5207 ;;
5208esac
5209
671aa708
NN
5210extra_arflags_for_target=
5211extra_nmflags_for_target=
5212extra_ranlibflags_for_target=
5213target_makefile_frag=/dev/null
5214case "${target}" in
3e19841a
PB
5215 mep*-*-*)
5216 target_makefile_frag="config/mt-mep"
5217 ;;
58e24147
AM
5218 spu-*-*)
5219 target_makefile_frag="config/mt-spu"
5220 ;;
61fec9ff 5221 *-*-netware*)
671aa708
NN
5222 target_makefile_frag="config/mt-netware"
5223 ;;
98a5bb3b
RM
5224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5225 target_makefile_frag="config/mt-gnu"
671aa708
NN
5226 ;;
5227 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5228 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5229 # commands to handle both 32-bit and 64-bit objects. These flags are
5230 # harmless if we're using GNU nm or ar.
5231 extra_arflags_for_target=" -X32_64"
5232 extra_nmflags_for_target=" -B -X32_64"
5233 ;;
5234 *-*-darwin*)
5235 # ranlib from Darwin requires the -c flag to look at common symbols.
5236 extra_ranlibflags_for_target=" -c"
5237 ;;
5238 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5239 target_makefile_frag="config/mt-wince"
5240 ;;
5241esac
5242
5243alphaieee_frag=/dev/null
5244case $target in
5245 alpha*-*-*)
5246 # This just makes sure to use the -mieee option to build target libs.
5247 # This should probably be set individually by each library.
5248 alphaieee_frag="config/mt-alphaieee"
5249 ;;
5250esac
5251
5252# If --enable-target-optspace always use -Os instead of -O2 to build
5253# the target libraries, similarly if it is not specified, use -Os
5254# on selected platforms.
5255ospace_frag=/dev/null
5256case "${enable_target_optspace}:${target}" in
5257 yes:*)
5258 ospace_frag="config/mt-ospace"
5259 ;;
5260 :d30v-*)
5261 ospace_frag="config/mt-d30v"
5262 ;;
5263 :m32r-* | :d10v-* | :fr30-*)
5264 ospace_frag="config/mt-ospace"
5265 ;;
5266 no:* | :*)
5267 ;;
5268 *)
5269 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5270 ;;
5271esac
5272
671aa708
NN
5273# Default to using --with-stabs for certain targets.
5274if test x${with_stabs} = x ; then
5275 case "${target}" in
89a95129 5276 mips*-*-irix[56]*)
671aa708
NN
5277 ;;
5278 mips*-*-* | alpha*-*-osf*)
5279 with_stabs=yes;
5280 extra_host_args="${extra_host_args} --with-stabs"
5281 ;;
5282 esac
5283fi
5284
5285# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5286# them automatically.
5287case "${host}" in
1c710c3c 5288 hppa*64*-*-hpux11*)
671aa708
NN
5289 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5290 ;;
5291esac
5292
671aa708
NN
5293# Some systems (e.g., one of the i386-aix systems the gas testers are
5294# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5295tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5296build_tooldir=${tooldir}
5297
671aa708
NN
5298# Create a .gdbinit file which runs the one in srcdir
5299# and tells GDB to look there for source files.
5300
5301if test -r ${srcdir}/.gdbinit ; then
5302 case ${srcdir} in
5303 .) ;;
5304 *) cat > ./.gdbinit <<EOF
5305# ${NO_EDIT}
5306dir ${srcdir}
5307dir .
5308source ${srcdir}/.gdbinit
5309EOF
5310 ;;
5311 esac
5312fi
5313
671aa708
NN
5314# Make sure that the compiler is able to generate an executable. If it
5315# can't, we are probably in trouble. We don't care whether we can run the
5316# executable--we might be using a cross compiler--we only care whether it
5317# can be created. At this point the main configure script has set CC.
5318we_are_ok=no
5319echo "int main () { return 0; }" > conftest.c
5320${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5321if test $? = 0 ; then
5322 if test -s conftest || test -s conftest.exe ; then
5323 we_are_ok=yes
5324 fi
1c710c3c 5325fi
671aa708
NN
5326case $we_are_ok in
5327 no)
5328 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5329 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5330 rm -f conftest*
5331 exit 1
5332 ;;
5333esac
5334rm -f conftest*
5335
5336# The Solaris /usr/ucb/cc compiler does not appear to work.
5337case "${host}" in
5338 sparc-sun-solaris2*)
5339 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5340 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5341 could_use=
5342 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5343 if test -d /opt/cygnus/bin ; then
5344 if test "$could_use" = "" ; then
5345 could_use="/opt/cygnus/bin"
5346 else
5347 could_use="$could_use or /opt/cygnus/bin"
5348 fi
5349 fi
5350 if test "$could_use" = "" ; then
5351 echo "Warning: compilation may fail because you're using"
5352 echo "/usr/ucb/cc. You should change your PATH or CC "
5353 echo "variable and rerun configure."
5354 else
5355 echo "Warning: compilation may fail because you're using"
5356 echo "/usr/ucb/cc, when you should use the C compiler from"
5357 echo "$could_use. You should change your"
5358 echo "PATH or CC variable and rerun configure."
5359 fi
5360 fi
5361 ;;
5362esac
5363
671aa708
NN
5364case "${host}" in
5365 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5366 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5367 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5368esac
5369
5370# Record target_configdirs and the configure arguments for target and
5371# build configuration in Makefile.
5372target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5373build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5374
671aa708
NN
5375# Determine whether gdb needs tk/tcl or not.
5376# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5377# and in that case we want gdb to be built without tk. Ugh!
5378# In fact I believe gdb is the *only* package directly dependent on tk,
5379# so we should be able to put the 'maybe's in unconditionally and
5380# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5381# 100% sure that that's safe though.
e914a571 5382
b4f96efe 5383gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5384case "$enable_gdbtk" in
5385 no)
5386 GDB_TK="" ;;
e914a571
AC
5387 yes)
5388 GDB_TK="${gdb_tk}" ;;
671aa708 5389 *)
e914a571
AC
5390 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5391 # distro. Eventually someone will fix this and move Insight, nee
5392 # gdbtk to a separate directory.
5393 if test -d ${srcdir}/gdb/gdbtk ; then
5394 GDB_TK="${gdb_tk}"
5395 else
5396 GDB_TK=""
5397 fi
5398 ;;
671aa708 5399esac
ef9db8d5
DJ
5400CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5401INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5402
60975492 5403# Strip out unwanted targets.
8b87bb96
NN
5404
5405# While at that, we remove Makefiles if we were started for recursive
5406# configuration, so that the top-level Makefile reconfigures them,
5407# like we used to do when configure itself was recursive.
8b87bb96 5408
60975492
PB
5409# Loop over modules. $extrasub must be used with care, limiting as
5410# much as possible the usage of range addresses. That's because autoconf
5411# splits the sed script to overcome limits in the number of commands,
5412# and relying on carefully-timed sed passes may turn out to be very hard
5413# to maintain later. In this particular case, you just have to be careful
5414# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5415
2aeb72e9 5416# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5417if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5418 enableval="$enable_bootstrap"
5419
f516a7da 5420else
ce521a9c 5421 enable_bootstrap=default
2aeb72e9 5422fi;
f516a7da 5423
ce521a9c
PB
5424# Issue errors and warnings for invalid/strange bootstrap combinations.
5425case "$configdirs" in
5426 *gcc*) have_compiler=yes ;;
5427 *) have_compiler=no ;;
5428esac
5429
5430case "$have_compiler:$host:$target:$enable_bootstrap" in
5431 *:*:*:no) ;;
5432
1ca26cd2 5433 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5434 # and we are in a native configuration.
5435 yes:$build:$build:default)
1ca26cd2 5436 enable_bootstrap=yes ;;
ce521a9c
PB
5437
5438 *:*:*:default)
5439 enable_bootstrap=no ;;
5440
5441 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5442 yes:$build:$build:yes)
ce521a9c
PB
5443 ;;
5444
5445 # Other configurations, but we have a compiler. Assume the user knows
5446 # what he's doing.
2d309510 5447 yes:*:*:yes)
1c710c3c
DJ
5448 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5449echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5450 ;;
5451
5452 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5453 no:*:*:yes)
1c710c3c
DJ
5454 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5455echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5456 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5457
5458 # Fail if wrong command line
5459 *)
1c710c3c
DJ
5460 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5461echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5462 { (exit 1); exit 1; }; }
ce521a9c
PB
5463 ;;
5464esac
5465
5466# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5467case "$enable_bootstrap" in
5468 yes)
5607edfd 5469 bootstrap_suffix=bootstrap ;;
f516a7da 5470 no)
5607edfd 5471 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5472esac
5473
23f6b2f9 5474for module in ${build_configdirs} ; do
5607edfd
PB
5475 if test -z "${no_recursion}" \
5476 && test -f ${build_subdir}/${module}/Makefile; then
5477 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5478 rm -f ${build_subdir}/${module}/Makefile
5479 fi
5480 extrasub="$extrasub
5481/^@if build-$module\$/d
5482/^@endif build-$module\$/d
5483/^@if build-$module-$bootstrap_suffix\$/d
5484/^@endif build-$module-$bootstrap_suffix\$/d"
5485done
5486for module in ${configdirs} ; do
a6fbc1e2 5487 if test -z "${no_recursion}"; then
f063a9ed 5488 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5489 if test -f ${file}; then
5490 echo 1>&2 "*** removing ${file} to force reconfigure"
5491 rm -f ${file}
5492 fi
5493 done
5607edfd
PB
5494 fi
5495 extrasub="$extrasub
5496/^@if $module\$/d
5497/^@endif $module\$/d
5498/^@if $module-$bootstrap_suffix\$/d
5499/^@endif $module-$bootstrap_suffix\$/d"
5500done
5501for module in ${target_configdirs} ; do
5502 if test -z "${no_recursion}" \
5503 && test -f ${target_subdir}/${module}/Makefile; then
5504 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5505 rm -f ${target_subdir}/${module}/Makefile
5506 fi
5507 extrasub="$extrasub
5508/^@if target-$module\$/d
5509/^@endif target-$module\$/d
5510/^@if target-$module-$bootstrap_suffix\$/d
5511/^@endif target-$module-$bootstrap_suffix\$/d"
5512done
5513
60975492
PB
5514extrasub="$extrasub
5515/^@if /,/^@endif /d"
671aa708
NN
5516
5517# Create the serialization dependencies. This uses a temporary file.
5518
2aeb72e9 5519# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5520if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5521 enableval="$enable_serial_configure"
ade82b16 5522
2aeb72e9 5523fi;
ade82b16 5524
bf1d3e81
NN
5525case ${enable_serial_configure} in
5526 yes)
5527 enable_serial_build_configure=yes
5528 enable_serial_host_configure=yes
5529 enable_serial_target_configure=yes
5530 ;;
5531esac
5532
671aa708
NN
5533# These force 'configure's to be done one at a time, to avoid problems
5534# with contention over a shared config.cache.
5535rm -f serdep.tmp
ade82b16 5536echo '# serdep.tmp' > serdep.tmp
671aa708 5537olditem=
bf1d3e81 5538test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5539for item in ${build_configdirs} ; do
5540 case ${olditem} in
5541 "") ;;
ade82b16 5542 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5543 esac
5544 olditem=${item}
5545done
5546olditem=
bf1d3e81 5547test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5548for item in ${configdirs} ; do
5549 case ${olditem} in
5550 "") ;;
ade82b16 5551 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5552 esac
5553 olditem=${item}
5554done
5555olditem=
bf1d3e81 5556test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5557for item in ${target_configdirs} ; do
5558 case ${olditem} in
5559 "") ;;
ade82b16 5560 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5561 esac
5562 olditem=${item}
5563done
5564serialization_dependencies=serdep.tmp
5565
5566
ade82b16 5567# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5568# target, nonopt, and variable assignments. These are the ones we
5569# might not want to pass down to subconfigures. Also strip
5570# program-prefix, program-suffix, and program-transform-name, so that
5571# we can pass down a consistent program-transform-name.
5572baseargs=
5573keep_next=no
5574skip_next=no
5575eval "set -- $ac_configure_args"
44bfc3ac
DJ
5576for ac_arg
5577do
1c710c3c
DJ
5578 if test X"$skip_next" = X"yes"; then
5579 skip_next=no
5580 continue
5581 fi
5582 if test X"$keep_next" = X"yes"; then
5583 case $ac_arg in
5584 *\'*)
5585 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5586 esac
5587 baseargs="$baseargs '$ac_arg'"
5588 keep_next=no
5589 continue
5590 fi
5591
5592 # Handle separated arguments. Based on the logic generated by
5593 # autoconf 2.59.
5594 case $ac_arg in
5595 *=* | --config-cache | -C | -disable-* | --disable-* \
5596 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5597 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5598 | -with-* | --with-* | -without-* | --without-* | --x)
5599 separate_arg=no
5600 ;;
5601 -*)
5602 separate_arg=yes
5603 ;;
5604 *)
5605 separate_arg=no
5606 ;;
5607 esac
5608
5609 case "$ac_arg" in
5610 --no*)
5611 continue
5612 ;;
5613 --c* | \
5614 --sr* | \
5615 --ho* | \
5616 --bu* | \
5617 --t* | \
5618 --program-* | \
5619 -cache_file* | \
5620 -srcdir* | \
5621 -host* | \
5622 -build* | \
5623 -target* | \
5624 -program-prefix* | \
5625 -program-suffix* | \
5626 -program-transform-name* )
5627 skip_next=$separate_arg
5628 continue
5629 ;;
5630 -*)
5631 # An option. Add it.
5632 case $ac_arg in
5633 *\'*)
5634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5635 esac
5636 baseargs="$baseargs '$ac_arg'"
5637 keep_next=$separate_arg
5638 ;;
5639 *)
5640 # Either a variable assignment, or a nonopt (triplet). Don't
5641 # pass it down; let the Makefile handle this.
5642 continue
5643 ;;
5644 esac
5645done
5646# Remove the initial space we just introduced and, as these will be
5647# expanded by make, quote '$'.
5648baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5649
43bb47c2
DJ
5650# Add in --program-transform-name, after --program-prefix and
5651# --program-suffix have been applied to it. Autoconf has already
5652# doubled dollar signs and backslashes in program_transform_name; we want
5653# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5654# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5655# Also, because we want to override the logic in subdir configure scripts to
5656# choose program_transform_name, replace any s,x,x, with s,y,y,.
5657sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5658${program_transform_name}
5659EOF_SED
5660gcc_transform_name=`cat conftestsed.out`
5661rm -f conftestsed.out
5662baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5663
671aa708
NN
5664# For the build-side libraries, we just need to pretend we're native,
5665# and not use the same cache file. Multilibs are neither needed nor
5666# desired.
e69bf64b 5667build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5668
5669# For host modules, accept cache file option, or specification as blank.
5670case "${cache_file}" in
5671"") # empty
5672 cache_file_option="" ;;
5673/* | [A-Za-z]:[\\/]* ) # absolute path
5674 cache_file_option="--cache-file=${cache_file}" ;;
5675*) # relative path
5676 cache_file_option="--cache-file=../${cache_file}" ;;
5677esac
5678
09438bde
NN
5679# Host dirs don't like to share a cache file either, horribly enough.
5680# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5681host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5682
5683target_configargs=${baseargs}
5684
5685# Passing a --with-cross-host argument lets the target libraries know
5686# whether they are being built with a cross-compiler or being built
5687# native. However, it would be better to use other mechanisms to make the
5688# sorts of decisions they want to make on this basis. Please consider
5689# this option to be deprecated. FIXME.
5690if test x${is_cross_compiler} = xyes ; then
1c710c3c 5691 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5692fi
5693
5694# Default to --enable-multilib.
5695if test x${enable_multilib} = x ; then
5696 target_configargs="--enable-multilib ${target_configargs}"
5697fi
5698
5699# Pass --with-newlib if appropriate. Note that target_configdirs has
5700# changed from the earlier setting of with_newlib.
5701if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5702 target_configargs="--with-newlib ${target_configargs}"
5703fi
5704
6b9eb62c
NN
5705# Different target subdirs use different values of certain variables
5706# (notably CXX). Worse, multilibs use *lots* of different values.
5707# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5708# it doesn't automatically accept command-line overrides of them.
5709# This means it's not safe for target subdirs to share a cache file,
5710# which is disgusting, but there you have it. Hopefully this can be
5711# fixed in future. It's still worthwhile to use a cache file for each
5712# directory. I think.
5713
bebcd931
MS
5714# Pass the appropriate --build, --host, --target and --cache-file arguments.
5715# We need to pass --target, as newer autoconf's requires consistency
5716# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5717target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5718
671aa708
NN
5719FLAGS_FOR_TARGET=
5720case " $target_configdirs " in
5721 *" newlib "*)
5722 case " $target_configargs " in
5723 *" --with-newlib "*)
5724 case "$target" in
5725 *-cygwin*)
aa8f1f57 5726 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' ;;
671aa708
NN
5727 esac
5728
5729 # If we're not building GCC, don't discard standard headers.
5730 if test -d ${srcdir}/gcc; then
5731 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5732
5733 if test "${build}" != "${host}"; then
5734 # On Canadian crosses, CC_FOR_TARGET will have already been set
5735 # by `configure', so we won't have an opportunity to add -Bgcc/
5736 # to it. This is right: we don't want to search that directory
5737 # for binaries, but we want the header files in there, so add
5738 # them explicitly.
215c351a 5739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5740
5741 # Someone might think of using the pre-installed headers on
5742 # Canadian crosses, in case the installed compiler is not fully
5743 # compatible with the compiler being built. In this case, it
5744 # would be better to flag an error than risking having
5745 # incompatible object files being constructed. We can't
5746 # guarantee that an error will be flagged, but let's hope the
5747 # compiler will do it, when presented with incompatible header
5748 # files.
5749 fi
5750 fi
5751
5752 case "${target}-${is_cross_compiler}" in
f2a0e225 5753 i[3456789]86-*-linux*-no)
671aa708
NN
5754 # Here host == target, so we don't need to build gcc,
5755 # so we don't want to discard standard headers.
5756 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5757 ;;
5758 *)
5759 # If we're building newlib, use its generic headers last, but search
5760 # for any libc-related directories first (so make it the last -B
5761 # switch).
5762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5763 ;;
5764 esac
5765 ;;
5766 esac
5767 ;;
5768esac
b91f0a41
CV
5769case "$target" in
5770*-mingw*)
5771 # Can't be handled as Cygwin above since Mingw does not use newlib.
5772 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' ;;
5773esac
671aa708 5774
6691a79e
ME
5775# Allow the user to override the flags for
5776# our build compiler if desired.
5777CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5778
671aa708
NN
5779# On Canadian crosses, we'll be searching the right directories for
5780# the previously-installed cross compiler, so don't bother to add
5781# flags for directories within the install tree of the compiler
5782# being built; programs in there won't even run.
5783if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5784 # Search for pre-installed headers if nothing else fits.
9124bc53 5785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
5786fi
5787
5788if test "x${use_gnu_ld}" = x &&
5789 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5790 # Arrange for us to find uninstalled linker scripts.
215c351a 5791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5792fi
5793
e88a2c09
DD
5794# Search for other target-specific linker scripts and such.
5795case "${target}" in
5796 m32c-*-* )
5797 if test -d ${srcdir}/libgloss/m32c; then
5798 # This is for crt0.o
5799 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5800 # This is for r8c.ld
5801 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5802 # This is for libnosys.a
5803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5804 fi
5805 ;;
3e19841a
PB
5806 mep*)
5807 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5808 ;;
e88a2c09
DD
5809esac
5810
671aa708 5811# Makefile fragments.
7b61653a
PE
5812for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5813do
5814 eval fragval=\$$frag
5815 if test $fragval != /dev/null; then
5816 eval $frag=${srcdir}/$fragval
5817 fi
5818done
671aa708
NN
5819
5820
5821
5822
5823
5824# Miscellanea: directories, flags, etc.
5825
5826
5827
5828
5829
5830
5831
23f6b2f9 5832# Build module lists & subconfigure args.
671aa708
NN
5833
5834
5835
2abefe3d
PB
5836# Host module lists & subconfigure args.
5837
5838
5839
5840# Target module lists & subconfigure args.
5841
5842
5843
5844# Build tools.
5845
5846
5847
5848# Generate default definitions for YACC, M4, LEX and other programs that run
5849# on the build machine. These are used if the Makefile can't locate these
5850# programs in objdir.
5851MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5852
5853for ac_prog in 'bison -y' byacc yacc
5854do
1c710c3c 5855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5856set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5857echo "$as_me:$LINENO: checking for $ac_word" >&5
5858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5859if test "${ac_cv_prog_YACC+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5861else
5862 if test -n "$YACC"; then
5863 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5864else
1c710c3c
DJ
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5872 ac_cv_prog_YACC="$ac_prog"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877done
5878
2abefe3d
PB
5879fi
5880fi
1c710c3c 5881YACC=$ac_cv_prog_YACC
2abefe3d 5882if test -n "$YACC"; then
2aeb72e9
DD
5883 echo "$as_me:$LINENO: result: $YACC" >&5
5884echo "${ECHO_T}$YACC" >&6
2abefe3d 5885else
2aeb72e9
DD
5886 echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6
2abefe3d
PB
5888fi
5889
1c710c3c 5890 test -n "$YACC" && break
2abefe3d
PB
5891done
5892test -n "$YACC" || YACC="$MISSING bison -y"
5893
5894case " $build_configdirs " in
5895 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5896 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5897esac
5898
5899for ac_prog in bison
5900do
1c710c3c 5901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5902set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5903echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5905if test "${ac_cv_prog_BISON+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5907else
5908 if test -n "$BISON"; then
5909 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5910else
1c710c3c
DJ
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5918 ac_cv_prog_BISON="$ac_prog"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922done
5923done
5924
2abefe3d
PB
5925fi
5926fi
1c710c3c 5927BISON=$ac_cv_prog_BISON
2abefe3d 5928if test -n "$BISON"; then
2aeb72e9
DD
5929 echo "$as_me:$LINENO: result: $BISON" >&5
5930echo "${ECHO_T}$BISON" >&6
2abefe3d 5931else
2aeb72e9
DD
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
2abefe3d
PB
5934fi
5935
1c710c3c 5936 test -n "$BISON" && break
2abefe3d
PB
5937done
5938test -n "$BISON" || BISON="$MISSING bison"
5939
5940case " $build_configdirs " in
5941 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5942esac
5943
5944for ac_prog in gm4 gnum4 m4
5945do
1c710c3c 5946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5947set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5948echo "$as_me:$LINENO: checking for $ac_word" >&5
5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5950if test "${ac_cv_prog_M4+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5952else
5953 if test -n "$M4"; then
5954 ac_cv_prog_M4="$M4" # Let the user override the test.
5955else
1c710c3c
DJ
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5963 ac_cv_prog_M4="$ac_prog"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967done
5968done
5969
2abefe3d
PB
5970fi
5971fi
1c710c3c 5972M4=$ac_cv_prog_M4
2abefe3d 5973if test -n "$M4"; then
2aeb72e9
DD
5974 echo "$as_me:$LINENO: result: $M4" >&5
5975echo "${ECHO_T}$M4" >&6
2abefe3d 5976else
2aeb72e9
DD
5977 echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6
2abefe3d
PB
5979fi
5980
1c710c3c 5981 test -n "$M4" && break
2abefe3d
PB
5982done
5983test -n "$M4" || M4="$MISSING m4"
5984
5985case " $build_configdirs " in
5986 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5987esac
5988
5989for ac_prog in flex lex
5990do
1c710c3c 5991 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5992set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5993echo "$as_me:$LINENO: checking for $ac_word" >&5
5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5995if test "${ac_cv_prog_LEX+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5997else
5998 if test -n "$LEX"; then
5999 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6000else
1c710c3c
DJ
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6008 ac_cv_prog_LEX="$ac_prog"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012done
6013done
6014
2abefe3d
PB
6015fi
6016fi
1c710c3c 6017LEX=$ac_cv_prog_LEX
2abefe3d 6018if test -n "$LEX"; then
2aeb72e9
DD
6019 echo "$as_me:$LINENO: result: $LEX" >&5
6020echo "${ECHO_T}$LEX" >&6
2abefe3d 6021else
2aeb72e9
DD
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
2abefe3d
PB
6024fi
6025
1c710c3c 6026 test -n "$LEX" && break
2abefe3d
PB
6027done
6028test -n "$LEX" || LEX="$MISSING flex"
6029
6030case " $build_configdirs " in
6031 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6032 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6033esac
6034
6035for ac_prog in flex
6036do
1c710c3c 6037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6038set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6039echo "$as_me:$LINENO: checking for $ac_word" >&5
6040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6041if test "${ac_cv_prog_FLEX+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6043else
6044 if test -n "$FLEX"; then
6045 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6046else
1c710c3c
DJ
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6054 ac_cv_prog_FLEX="$ac_prog"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058done
6059done
6060
2abefe3d
PB
6061fi
6062fi
1c710c3c 6063FLEX=$ac_cv_prog_FLEX
2abefe3d 6064if test -n "$FLEX"; then
2aeb72e9
DD
6065 echo "$as_me:$LINENO: result: $FLEX" >&5
6066echo "${ECHO_T}$FLEX" >&6
2abefe3d 6067else
2aeb72e9
DD
6068 echo "$as_me:$LINENO: result: no" >&5
6069echo "${ECHO_T}no" >&6
2abefe3d
PB
6070fi
6071
1c710c3c 6072 test -n "$FLEX" && break
2abefe3d
PB
6073done
6074test -n "$FLEX" || FLEX="$MISSING flex"
6075
6076case " $build_configdirs " in
6077 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6078esac
6079
6080for ac_prog in makeinfo
6081do
1c710c3c 6082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6083set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6084echo "$as_me:$LINENO: checking for $ac_word" >&5
6085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6086if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6088else
6089 if test -n "$MAKEINFO"; then
6090 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6091else
1c710c3c
DJ
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6099 ac_cv_prog_MAKEINFO="$ac_prog"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103done
6104done
6105
2abefe3d
PB
6106fi
6107fi
1c710c3c 6108MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6109if test -n "$MAKEINFO"; then
2aeb72e9
DD
6110 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6111echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6112else
2aeb72e9
DD
6113 echo "$as_me:$LINENO: result: no" >&5
6114echo "${ECHO_T}no" >&6
2abefe3d
PB
6115fi
6116
1c710c3c 6117 test -n "$MAKEINFO" && break
2abefe3d
PB
6118done
6119test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6120
6121case " $build_configdirs " in
6122 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6123 *)
6124
27b6c940 6125 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
6126 # higher, else we use the "missing" dummy.
6127 if ${MAKEINFO} --version \
27b6c940 6128 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
6129 :
6130 else
6131 MAKEINFO="$MISSING makeinfo"
6132 fi
6133 ;;
6134
6135esac
671aa708 6136
2abefe3d 6137# FIXME: expect and dejagnu may become build tools?
671aa708 6138
2abefe3d
PB
6139for ac_prog in expect
6140do
1c710c3c 6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6142set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6143echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6145if test "${ac_cv_prog_EXPECT+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6147else
6148 if test -n "$EXPECT"; then
6149 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6150else
1c710c3c
DJ
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6158 ac_cv_prog_EXPECT="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164
2abefe3d
PB
6165fi
6166fi
1c710c3c 6167EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6168if test -n "$EXPECT"; then
2aeb72e9
DD
6169 echo "$as_me:$LINENO: result: $EXPECT" >&5
6170echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6171else
2aeb72e9
DD
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
2abefe3d 6174fi
671aa708 6175
1c710c3c 6176 test -n "$EXPECT" && break
2abefe3d
PB
6177done
6178test -n "$EXPECT" || EXPECT="expect"
671aa708 6179
2abefe3d
PB
6180case " $configdirs " in
6181 *" expect "*)
6182 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6183 ;;
6184esac
671aa708 6185
2abefe3d
PB
6186for ac_prog in runtest
6187do
1c710c3c 6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6189set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6190echo "$as_me:$LINENO: checking for $ac_word" >&5
6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6192if test "${ac_cv_prog_RUNTEST+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6194else
6195 if test -n "$RUNTEST"; then
6196 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6197else
1c710c3c
DJ
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6205 ac_cv_prog_RUNTEST="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210done
6211
2abefe3d
PB
6212fi
6213fi
1c710c3c 6214RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6215if test -n "$RUNTEST"; then
2aeb72e9
DD
6216 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6217echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6218else
2aeb72e9
DD
6219 echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6
2abefe3d 6221fi
671aa708 6222
1c710c3c 6223 test -n "$RUNTEST" && break
2abefe3d
PB
6224done
6225test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6226
2abefe3d
PB
6227case " $configdirs " in
6228 *" dejagnu "*)
c394e891 6229 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6230 ;;
6231esac
671aa708
NN
6232
6233
671aa708 6234# Host tools.
ca9f4b81
AO
6235ncn_tool_prefix=
6236test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6237ncn_target_tool_prefix=
6238test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6239
278a7a38
AO
6240
6241
6242if test -n "$AR"; then
6243 ac_cv_prog_AR=$AR
6244elif test -n "$ac_cv_prog_AR"; then
6245 AR=$ac_cv_prog_AR
6246fi
6247
6248if test -n "$ac_cv_prog_AR"; then
6249 for ncn_progname in ar; do
6250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6251set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6252echo "$as_me:$LINENO: checking for $ac_word" >&5
6253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6254if test "${ac_cv_prog_AR+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256else
6257 if test -n "$AR"; then
6258 ac_cv_prog_AR="$AR" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6267 ac_cv_prog_AR="${ncn_progname}"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271done
6272done
6273
6274fi
6275fi
6276AR=$ac_cv_prog_AR
6277if test -n "$AR"; then
2aeb72e9
DD
6278 echo "$as_me:$LINENO: result: $AR" >&5
6279echo "${ECHO_T}$AR" >&6
278a7a38 6280else
2aeb72e9
DD
6281 echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
278a7a38
AO
6283fi
6284
6285 done
6286fi
6287
6288for ncn_progname in ar; do
2693c0b0
PB
6289 if test -n "$ncn_tool_prefix"; then
6290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6292echo "$as_me:$LINENO: checking for $ac_word" >&5
6293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6294if test "${ac_cv_prog_AR+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6296else
6297 if test -n "$AR"; then
6298 ac_cv_prog_AR="$AR" # Let the user override the test.
6299else
1c710c3c
DJ
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
6302do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6307 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311done
6312done
6313
ca9f4b81
AO
6314fi
6315fi
1c710c3c 6316AR=$ac_cv_prog_AR
ca9f4b81 6317if test -n "$AR"; then
2aeb72e9
DD
6318 echo "$as_me:$LINENO: result: $AR" >&5
6319echo "${ECHO_T}$AR" >&6
ca9f4b81 6320else
2aeb72e9
DD
6321 echo "$as_me:$LINENO: result: no" >&5
6322echo "${ECHO_T}no" >&6
ca9f4b81
AO
6323fi
6324
2693c0b0
PB
6325 fi
6326 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6328set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6329echo "$as_me:$LINENO: checking for $ac_word" >&5
6330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6331if test "${ac_cv_prog_AR+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6333else
2693c0b0 6334 if test -n "$AR"; then
af71363e
AS
6335 ac_cv_prog_AR="$AR" # Let the user override the test.
6336else
1c710c3c
DJ
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6344 ac_cv_prog_AR="${ncn_progname}"
6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349done
6350
ca9f4b81
AO
6351fi
6352fi
1c710c3c 6353AR=$ac_cv_prog_AR
2693c0b0 6354if test -n "$AR"; then
2aeb72e9
DD
6355 echo "$as_me:$LINENO: result: $AR" >&5
6356echo "${ECHO_T}$AR" >&6
ca9f4b81 6357else
2aeb72e9
DD
6358 echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
ca9f4b81 6360fi
1c710c3c 6361
2693c0b0
PB
6362 fi
6363 test -n "$ac_cv_prog_AR" && break
6364done
6365
6366if test -z "$ac_cv_prog_AR" ; then
6367 set dummy ar
6368 if test $build = $host ; then
6369 AR="$2"
ca9f4b81 6370 else
2693c0b0 6371 AR="${ncn_tool_prefix}$2"
ca9f4b81 6372 fi
ca9f4b81
AO
6373fi
6374
278a7a38
AO
6375
6376
6377if test -n "$AS"; then
6378 ac_cv_prog_AS=$AS
6379elif test -n "$ac_cv_prog_AS"; then
6380 AS=$ac_cv_prog_AS
6381fi
6382
6383if test -n "$ac_cv_prog_AS"; then
6384 for ncn_progname in as; do
6385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6386set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6387echo "$as_me:$LINENO: checking for $ac_word" >&5
6388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6389if test "${ac_cv_prog_AS+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392 if test -n "$AS"; then
6393 ac_cv_prog_AS="$AS" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6402 ac_cv_prog_AS="${ncn_progname}"
6403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6405 fi
6406done
6407done
6408
6409fi
6410fi
6411AS=$ac_cv_prog_AS
6412if test -n "$AS"; then
2aeb72e9
DD
6413 echo "$as_me:$LINENO: result: $AS" >&5
6414echo "${ECHO_T}$AS" >&6
278a7a38 6415else
2aeb72e9
DD
6416 echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6
278a7a38
AO
6418fi
6419
6420 done
6421fi
6422
6423for ncn_progname in as; do
2693c0b0
PB
6424 if test -n "$ncn_tool_prefix"; then
6425 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6426set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6427echo "$as_me:$LINENO: checking for $ac_word" >&5
6428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6429if test "${ac_cv_prog_AS+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6431else
6432 if test -n "$AS"; then
6433 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6434else
1c710c3c
DJ
6435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6442 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446done
6447done
6448
ca9f4b81
AO
6449fi
6450fi
1c710c3c 6451AS=$ac_cv_prog_AS
ca9f4b81 6452if test -n "$AS"; then
2aeb72e9
DD
6453 echo "$as_me:$LINENO: result: $AS" >&5
6454echo "${ECHO_T}$AS" >&6
ca9f4b81 6455else
2aeb72e9
DD
6456 echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6
ca9f4b81
AO
6458fi
6459
2693c0b0
PB
6460 fi
6461 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6463set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6464echo "$as_me:$LINENO: checking for $ac_word" >&5
6465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6466if test "${ac_cv_prog_AS+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6468else
2693c0b0
PB
6469 if test -n "$AS"; then
6470 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6471else
1c710c3c
DJ
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6479 ac_cv_prog_AS="${ncn_progname}"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483done
6484done
6485
ca9f4b81
AO
6486fi
6487fi
1c710c3c 6488AS=$ac_cv_prog_AS
2693c0b0 6489if test -n "$AS"; then
2aeb72e9
DD
6490 echo "$as_me:$LINENO: result: $AS" >&5
6491echo "${ECHO_T}$AS" >&6
ca9f4b81 6492else
2aeb72e9
DD
6493 echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6
ca9f4b81 6495fi
1c710c3c 6496
2693c0b0
PB
6497 fi
6498 test -n "$ac_cv_prog_AS" && break
6499done
6500
6501if test -z "$ac_cv_prog_AS" ; then
6502 set dummy as
6503 if test $build = $host ; then
6504 AS="$2"
ca9f4b81 6505 else
2693c0b0 6506 AS="${ncn_tool_prefix}$2"
ca9f4b81 6507 fi
ca9f4b81
AO
6508fi
6509
278a7a38
AO
6510
6511
6512if test -n "$DLLTOOL"; then
6513 ac_cv_prog_DLLTOOL=$DLLTOOL
6514elif test -n "$ac_cv_prog_DLLTOOL"; then
6515 DLLTOOL=$ac_cv_prog_DLLTOOL
6516fi
6517
6518if test -n "$ac_cv_prog_DLLTOOL"; then
6519 for ncn_progname in dlltool; do
6520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6521set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6522echo "$as_me:$LINENO: checking for $ac_word" >&5
6523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6524if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 if test -n "$DLLTOOL"; then
6528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6537 ac_cv_prog_DLLTOOL="${ncn_progname}"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6540 fi
6541done
6542done
6543
6544fi
6545fi
6546DLLTOOL=$ac_cv_prog_DLLTOOL
6547if test -n "$DLLTOOL"; then
2aeb72e9
DD
6548 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6549echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6550else
2aeb72e9
DD
6551 echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6
278a7a38
AO
6553fi
6554
6555 done
6556fi
6557
6558for ncn_progname in dlltool; do
2693c0b0
PB
6559 if test -n "$ncn_tool_prefix"; then
6560 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6561set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6562echo "$as_me:$LINENO: checking for $ac_word" >&5
6563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6564if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6566else
6567 if test -n "$DLLTOOL"; then
6568 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6569else
1c710c3c
DJ
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6577 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6580 fi
6581done
6582done
6583
ca9f4b81
AO
6584fi
6585fi
1c710c3c 6586DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6587if test -n "$DLLTOOL"; then
2aeb72e9
DD
6588 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6589echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6590else
2aeb72e9
DD
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
ca9f4b81
AO
6593fi
6594
2693c0b0
PB
6595 fi
6596 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6598set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6599echo "$as_me:$LINENO: checking for $ac_word" >&5
6600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6601if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6603else
2693c0b0
PB
6604 if test -n "$DLLTOOL"; then
6605 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6606else
1c710c3c
DJ
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6614 ac_cv_prog_DLLTOOL="${ncn_progname}"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619done
6620
ca9f4b81
AO
6621fi
6622fi
1c710c3c 6623DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6624if test -n "$DLLTOOL"; then
2aeb72e9
DD
6625 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6626echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6627else
2aeb72e9
DD
6628 echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
ca9f4b81 6630fi
1c710c3c 6631
2693c0b0
PB
6632 fi
6633 test -n "$ac_cv_prog_DLLTOOL" && break
6634done
6635
6636if test -z "$ac_cv_prog_DLLTOOL" ; then
6637 set dummy dlltool
6638 if test $build = $host ; then
6639 DLLTOOL="$2"
ca9f4b81 6640 else
2693c0b0 6641 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6642 fi
ca9f4b81
AO
6643fi
6644
278a7a38
AO
6645
6646
6647if test -n "$LD"; then
6648 ac_cv_prog_LD=$LD
6649elif test -n "$ac_cv_prog_LD"; then
6650 LD=$ac_cv_prog_LD
6651fi
6652
6653if test -n "$ac_cv_prog_LD"; then
6654 for ncn_progname in ld; do
6655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6656set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6657echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6659if test "${ac_cv_prog_LD+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662 if test -n "$LD"; then
6663 ac_cv_prog_LD="$LD" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6672 ac_cv_prog_LD="${ncn_progname}"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
6678
6679fi
6680fi
6681LD=$ac_cv_prog_LD
6682if test -n "$LD"; then
2aeb72e9
DD
6683 echo "$as_me:$LINENO: result: $LD" >&5
6684echo "${ECHO_T}$LD" >&6
278a7a38 6685else
2aeb72e9
DD
6686 echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6
278a7a38
AO
6688fi
6689
6690 done
6691fi
6692
6693for ncn_progname in ld; do
2693c0b0
PB
6694 if test -n "$ncn_tool_prefix"; then
6695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6696set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6697echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6699if test "${ac_cv_prog_LD+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6701else
6702 if test -n "$LD"; then
6703 ac_cv_prog_LD="$LD" # Let the user override the test.
6704else
1c710c3c
DJ
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6712 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718
ca9f4b81
AO
6719fi
6720fi
1c710c3c 6721LD=$ac_cv_prog_LD
ca9f4b81 6722if test -n "$LD"; then
2aeb72e9
DD
6723 echo "$as_me:$LINENO: result: $LD" >&5
6724echo "${ECHO_T}$LD" >&6
ca9f4b81 6725else
2aeb72e9
DD
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
ca9f4b81
AO
6728fi
6729
2693c0b0
PB
6730 fi
6731 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6733set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6734echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6736if test "${ac_cv_prog_LD+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6738else
2693c0b0
PB
6739 if test -n "$LD"; then
6740 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6741else
1c710c3c
DJ
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6749 ac_cv_prog_LD="${ncn_progname}"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754done
6755
ca9f4b81
AO
6756fi
6757fi
1c710c3c 6758LD=$ac_cv_prog_LD
2693c0b0 6759if test -n "$LD"; then
2aeb72e9
DD
6760 echo "$as_me:$LINENO: result: $LD" >&5
6761echo "${ECHO_T}$LD" >&6
ca9f4b81 6762else
2aeb72e9
DD
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
ca9f4b81 6765fi
1c710c3c 6766
2693c0b0
PB
6767 fi
6768 test -n "$ac_cv_prog_LD" && break
6769done
6770
6771if test -z "$ac_cv_prog_LD" ; then
6772 set dummy ld
6773 if test $build = $host ; then
6774 LD="$2"
ca9f4b81 6775 else
2693c0b0 6776 LD="${ncn_tool_prefix}$2"
ca9f4b81 6777 fi
ca9f4b81
AO
6778fi
6779
278a7a38
AO
6780
6781
6782if test -n "$LIPO"; then
6783 ac_cv_prog_LIPO=$LIPO
6784elif test -n "$ac_cv_prog_LIPO"; then
6785 LIPO=$ac_cv_prog_LIPO
6786fi
6787
6788if test -n "$ac_cv_prog_LIPO"; then
6789 for ncn_progname in lipo; do
6790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6791set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6792echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6794if test "${ac_cv_prog_LIPO+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797 if test -n "$LIPO"; then
6798 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6807 ac_cv_prog_LIPO="${ncn_progname}"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811done
6812done
6813
6814fi
6815fi
6816LIPO=$ac_cv_prog_LIPO
6817if test -n "$LIPO"; then
2aeb72e9
DD
6818 echo "$as_me:$LINENO: result: $LIPO" >&5
6819echo "${ECHO_T}$LIPO" >&6
278a7a38 6820else
2aeb72e9
DD
6821 echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6
278a7a38
AO
6823fi
6824
6825 done
6826fi
6827
6828for ncn_progname in lipo; do
2abefe3d
PB
6829 if test -n "$ncn_tool_prefix"; then
6830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6831set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6832echo "$as_me:$LINENO: checking for $ac_word" >&5
6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6834if test "${ac_cv_prog_LIPO+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6836else
6837 if test -n "$LIPO"; then
6838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6839else
1c710c3c
DJ
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6847 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851done
6852done
6853
2abefe3d
PB
6854fi
6855fi
1c710c3c 6856LIPO=$ac_cv_prog_LIPO
2abefe3d 6857if test -n "$LIPO"; then
2aeb72e9
DD
6858 echo "$as_me:$LINENO: result: $LIPO" >&5
6859echo "${ECHO_T}$LIPO" >&6
2abefe3d 6860else
2aeb72e9
DD
6861 echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6
2abefe3d
PB
6863fi
6864
6865 fi
6866 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6868set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6869echo "$as_me:$LINENO: checking for $ac_word" >&5
6870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6871if test "${ac_cv_prog_LIPO+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6873else
6874 if test -n "$LIPO"; then
6875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6876else
1c710c3c
DJ
6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6884 ac_cv_prog_LIPO="${ncn_progname}"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888done
6889done
6890
2abefe3d
PB
6891fi
6892fi
1c710c3c 6893LIPO=$ac_cv_prog_LIPO
2abefe3d 6894if test -n "$LIPO"; then
2aeb72e9
DD
6895 echo "$as_me:$LINENO: result: $LIPO" >&5
6896echo "${ECHO_T}$LIPO" >&6
2abefe3d 6897else
2aeb72e9
DD
6898 echo "$as_me:$LINENO: result: no" >&5
6899echo "${ECHO_T}no" >&6
2abefe3d 6900fi
1c710c3c 6901
2abefe3d
PB
6902 fi
6903 test -n "$ac_cv_prog_LIPO" && break
6904done
6905
6906if test -z "$ac_cv_prog_LIPO" ; then
6907 set dummy lipo
6908 if test $build = $host ; then
6909 LIPO="$2"
6910 else
6911 LIPO="${ncn_tool_prefix}$2"
6912 fi
6913fi
6914
278a7a38
AO
6915
6916
6917if test -n "$NM"; then
6918 ac_cv_prog_NM=$NM
6919elif test -n "$ac_cv_prog_NM"; then
6920 NM=$ac_cv_prog_NM
6921fi
6922
6923if test -n "$ac_cv_prog_NM"; then
6924 for ncn_progname in nm; do
6925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6926set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6927echo "$as_me:$LINENO: checking for $ac_word" >&5
6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6929if test "${ac_cv_prog_NM+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6931else
6932 if test -n "$NM"; then
6933 ac_cv_prog_NM="$NM" # Let the user override the test.
6934else
1c710c3c
DJ
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6942 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948
ca9f4b81
AO
6949fi
6950fi
1c710c3c 6951NM=$ac_cv_prog_NM
ca9f4b81 6952if test -n "$NM"; then
2aeb72e9
DD
6953 echo "$as_me:$LINENO: result: $NM" >&5
6954echo "${ECHO_T}$NM" >&6
ca9f4b81 6955else
2aeb72e9
DD
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
ca9f4b81
AO
6958fi
6959
278a7a38
AO
6960 done
6961fi
6962
6963for ncn_progname in nm; do
6964 if test -n "$ncn_tool_prefix"; then
6965 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6966set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6967echo "$as_me:$LINENO: checking for $ac_word" >&5
6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6969if test "${ac_cv_prog_NM+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6971else
2693c0b0
PB
6972 if test -n "$NM"; then
6973 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 6974else
1c710c3c
DJ
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6982 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986done
6987done
6988
ca9f4b81
AO
6989fi
6990fi
1c710c3c 6991NM=$ac_cv_prog_NM
2693c0b0 6992if test -n "$NM"; then
2aeb72e9
DD
6993 echo "$as_me:$LINENO: result: $NM" >&5
6994echo "${ECHO_T}$NM" >&6
ca9f4b81 6995else
2aeb72e9
DD
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
ca9f4b81 6998fi
1c710c3c 6999
2693c0b0 7000 fi
278a7a38
AO
7001 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7003set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7004echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7006if test "${ac_cv_prog_NM+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 if test -n "$NM"; then
7010 ac_cv_prog_NM="$NM" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7019 ac_cv_prog_NM="${ncn_progname}"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023done
7024done
7025
7026fi
7027fi
7028NM=$ac_cv_prog_NM
7029if test -n "$NM"; then
2aeb72e9
DD
7030 echo "$as_me:$LINENO: result: $NM" >&5
7031echo "${ECHO_T}$NM" >&6
278a7a38 7032else
2aeb72e9
DD
7033 echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6
278a7a38
AO
7035fi
7036
7037 fi
7038 test -n "$ac_cv_prog_NM" && break
7039done
7040
7041if test -z "$ac_cv_prog_NM" ; then
7042 set dummy nm
7043 if test $build = $host ; then
7044 NM="$2"
7045 else
7046 NM="${ncn_tool_prefix}$2"
7047 fi
7048fi
7049
7050
7051
7052if test -n "$RANLIB"; then
7053 ac_cv_prog_RANLIB=$RANLIB
7054elif test -n "$ac_cv_prog_RANLIB"; then
7055 RANLIB=$ac_cv_prog_RANLIB
7056fi
7057
7058if test -n "$ac_cv_prog_RANLIB"; then
7059 for ncn_progname in ranlib; do
7060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7061set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7062echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7064if test "${ac_cv_prog_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067 if test -n "$RANLIB"; then
7068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7077 ac_cv_prog_RANLIB="${ncn_progname}"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081done
7082done
7083
7084fi
7085fi
7086RANLIB=$ac_cv_prog_RANLIB
7087if test -n "$RANLIB"; then
2aeb72e9
DD
7088 echo "$as_me:$LINENO: result: $RANLIB" >&5
7089echo "${ECHO_T}$RANLIB" >&6
278a7a38 7090else
2aeb72e9
DD
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
278a7a38
AO
7093fi
7094
7095 done
7096fi
ca9f4b81 7097
278a7a38 7098for ncn_progname in ranlib; do
2693c0b0
PB
7099 if test -n "$ncn_tool_prefix"; then
7100 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7101set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7102echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7104if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7106else
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109else
1c710c3c
DJ
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7117 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121done
7122done
7123
ca9f4b81
AO
7124fi
7125fi
1c710c3c 7126RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7127if test -n "$RANLIB"; then
2aeb72e9
DD
7128 echo "$as_me:$LINENO: result: $RANLIB" >&5
7129echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7130else
2aeb72e9
DD
7131 echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6
ca9f4b81
AO
7133fi
7134
2693c0b0
PB
7135 fi
7136 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7138set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7139echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7141if test "${ac_cv_prog_RANLIB+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7143else
2693c0b0
PB
7144 if test -n "$RANLIB"; then
7145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7146else
1c710c3c
DJ
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7154 ac_cv_prog_RANLIB="${ncn_progname}"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158done
7159done
7160
ca9f4b81
AO
7161fi
7162fi
1c710c3c 7163RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7164if test -n "$RANLIB"; then
2aeb72e9
DD
7165 echo "$as_me:$LINENO: result: $RANLIB" >&5
7166echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7167else
2aeb72e9
DD
7168 echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6
ca9f4b81 7170fi
1c710c3c 7171
ca9f4b81 7172 fi
2693c0b0
PB
7173 test -n "$ac_cv_prog_RANLIB" && break
7174done
7175
7176if test -z "$ac_cv_prog_RANLIB" ; then
7177 RANLIB=":"
ca9f4b81
AO
7178fi
7179
278a7a38
AO
7180
7181
7182if test -n "$STRIP"; then
7183 ac_cv_prog_STRIP=$STRIP
7184elif test -n "$ac_cv_prog_STRIP"; then
7185 STRIP=$ac_cv_prog_STRIP
7186fi
7187
7188if test -n "$ac_cv_prog_STRIP"; then
7189 for ncn_progname in strip; do
7190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7191set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7192echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7194if test "${ac_cv_prog_STRIP+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 if test -n "$STRIP"; then
7198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7207 ac_cv_prog_STRIP="${ncn_progname}"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211done
7212done
7213
7214fi
7215fi
7216STRIP=$ac_cv_prog_STRIP
7217if test -n "$STRIP"; then
2aeb72e9
DD
7218 echo "$as_me:$LINENO: result: $STRIP" >&5
7219echo "${ECHO_T}$STRIP" >&6
278a7a38 7220else
2aeb72e9
DD
7221 echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6
278a7a38
AO
7223fi
7224
7225 done
7226fi
7227
7228for ncn_progname in strip; do
2abefe3d
PB
7229 if test -n "$ncn_tool_prefix"; then
7230 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7231set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7232echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7234if test "${ac_cv_prog_STRIP+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7236else
7237 if test -n "$STRIP"; then
7238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7239else
1c710c3c
DJ
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7247 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251done
7252done
7253
2abefe3d
PB
7254fi
7255fi
1c710c3c 7256STRIP=$ac_cv_prog_STRIP
2abefe3d 7257if test -n "$STRIP"; then
2aeb72e9
DD
7258 echo "$as_me:$LINENO: result: $STRIP" >&5
7259echo "${ECHO_T}$STRIP" >&6
2abefe3d 7260else
2aeb72e9
DD
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
2abefe3d
PB
7263fi
7264
7265 fi
7266 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7268set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7269echo "$as_me:$LINENO: checking for $ac_word" >&5
7270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7271if test "${ac_cv_prog_STRIP+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7273else
7274 if test -n "$STRIP"; then
7275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7276else
1c710c3c
DJ
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7284 ac_cv_prog_STRIP="${ncn_progname}"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288done
7289done
7290
2abefe3d
PB
7291fi
7292fi
1c710c3c 7293STRIP=$ac_cv_prog_STRIP
2abefe3d 7294if test -n "$STRIP"; then
2aeb72e9
DD
7295 echo "$as_me:$LINENO: result: $STRIP" >&5
7296echo "${ECHO_T}$STRIP" >&6
2abefe3d 7297else
2aeb72e9
DD
7298 echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6
2abefe3d 7300fi
1c710c3c 7301
2abefe3d
PB
7302 fi
7303 test -n "$ac_cv_prog_STRIP" && break
7304done
7305
7306if test -z "$ac_cv_prog_STRIP" ; then
7307 STRIP=":"
7308fi
7309
278a7a38
AO
7310
7311
7312if test -n "$WINDRES"; then
7313 ac_cv_prog_WINDRES=$WINDRES
7314elif test -n "$ac_cv_prog_WINDRES"; then
7315 WINDRES=$ac_cv_prog_WINDRES
7316fi
7317
7318if test -n "$ac_cv_prog_WINDRES"; then
7319 for ncn_progname in windres; do
7320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7321set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7322echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7324if test "${ac_cv_prog_WINDRES+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 if test -n "$WINDRES"; then
7328 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7329else
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7337 ac_cv_prog_WINDRES="${ncn_progname}"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343
7344fi
7345fi
7346WINDRES=$ac_cv_prog_WINDRES
7347if test -n "$WINDRES"; then
2aeb72e9
DD
7348 echo "$as_me:$LINENO: result: $WINDRES" >&5
7349echo "${ECHO_T}$WINDRES" >&6
278a7a38 7350else
2aeb72e9
DD
7351 echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6
278a7a38
AO
7353fi
7354
7355 done
7356fi
7357
7358for ncn_progname in windres; do
2693c0b0
PB
7359 if test -n "$ncn_tool_prefix"; then
7360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7361set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7362echo "$as_me:$LINENO: checking for $ac_word" >&5
7363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7364if test "${ac_cv_prog_WINDRES+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7366else
7367 if test -n "$WINDRES"; then
7368 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7369else
1c710c3c
DJ
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7377 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381done
7382done
7383
ca9f4b81
AO
7384fi
7385fi
1c710c3c 7386WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7387if test -n "$WINDRES"; then
2aeb72e9
DD
7388 echo "$as_me:$LINENO: result: $WINDRES" >&5
7389echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7390else
2aeb72e9
DD
7391 echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
ca9f4b81
AO
7393fi
7394
2693c0b0
PB
7395 fi
7396 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7398set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7399echo "$as_me:$LINENO: checking for $ac_word" >&5
7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7401if test "${ac_cv_prog_WINDRES+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7403else
2693c0b0
PB
7404 if test -n "$WINDRES"; then
7405 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7406else
1c710c3c
DJ
7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7414 ac_cv_prog_WINDRES="${ncn_progname}"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418done
7419done
7420
ca9f4b81
AO
7421fi
7422fi
1c710c3c 7423WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7424if test -n "$WINDRES"; then
2aeb72e9
DD
7425 echo "$as_me:$LINENO: result: $WINDRES" >&5
7426echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7427else
2aeb72e9
DD
7428 echo "$as_me:$LINENO: result: no" >&5
7429echo "${ECHO_T}no" >&6
ca9f4b81 7430fi
1c710c3c 7431
2693c0b0
PB
7432 fi
7433 test -n "$ac_cv_prog_WINDRES" && break
7434done
7435
7436if test -z "$ac_cv_prog_WINDRES" ; then
7437 set dummy windres
7438 if test $build = $host ; then
7439 WINDRES="$2"
ca9f4b81 7440 else
2693c0b0 7441 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7442 fi
ca9f4b81
AO
7443fi
7444
278a7a38
AO
7445
7446
901119ae
KT
7447if test -n "$WINDMC"; then
7448 ac_cv_prog_WINDMC=$WINDMC
7449elif test -n "$ac_cv_prog_WINDMC"; then
7450 WINDMC=$ac_cv_prog_WINDMC
7451fi
7452
7453if test -n "$ac_cv_prog_WINDMC"; then
7454 for ncn_progname in windmc; do
7455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7456set dummy ${ncn_progname}; ac_word=$2
7457echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7459if test "${ac_cv_prog_WINDMC+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462 if test -n "$WINDMC"; then
7463 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_WINDMC="${ncn_progname}"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476done
7477done
7478
7479fi
7480fi
7481WINDMC=$ac_cv_prog_WINDMC
7482if test -n "$WINDMC"; then
7483 echo "$as_me:$LINENO: result: $WINDMC" >&5
7484echo "${ECHO_T}$WINDMC" >&6
7485else
7486 echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6
7488fi
7489
7490 done
7491fi
7492
7493for ncn_progname in windmc; do
7494 if test -n "$ncn_tool_prefix"; then
7495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7496set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7497echo "$as_me:$LINENO: checking for $ac_word" >&5
7498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7499if test "${ac_cv_prog_WINDMC+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 if test -n "$WINDMC"; then
7503 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7504else
7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516done
7517done
7518
7519fi
7520fi
7521WINDMC=$ac_cv_prog_WINDMC
7522if test -n "$WINDMC"; then
7523 echo "$as_me:$LINENO: result: $WINDMC" >&5
7524echo "${ECHO_T}$WINDMC" >&6
7525else
7526 echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6
7528fi
7529
7530 fi
7531 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7533set dummy ${ncn_progname}; ac_word=$2
7534echo "$as_me:$LINENO: checking for $ac_word" >&5
7535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7536if test "${ac_cv_prog_WINDMC+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539 if test -n "$WINDMC"; then
7540 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7541else
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_WINDMC="${ncn_progname}"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553done
7554done
7555
7556fi
7557fi
7558WINDMC=$ac_cv_prog_WINDMC
7559if test -n "$WINDMC"; then
7560 echo "$as_me:$LINENO: result: $WINDMC" >&5
7561echo "${ECHO_T}$WINDMC" >&6
7562else
7563 echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6
7565fi
7566
7567 fi
7568 test -n "$ac_cv_prog_WINDMC" && break
7569done
7570
7571if test -z "$ac_cv_prog_WINDMC" ; then
7572 set dummy windmc
7573 if test $build = $host ; then
7574 WINDMC="$2"
7575 else
7576 WINDMC="${ncn_tool_prefix}$2"
7577 fi
7578fi
7579
7580
7581
278a7a38
AO
7582if test -n "$OBJCOPY"; then
7583 ac_cv_prog_OBJCOPY=$OBJCOPY
7584elif test -n "$ac_cv_prog_OBJCOPY"; then
7585 OBJCOPY=$ac_cv_prog_OBJCOPY
7586fi
7587
7588if test -n "$ac_cv_prog_OBJCOPY"; then
7589 for ncn_progname in objcopy; do
7590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7591set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7592echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7594if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597 if test -n "$OBJCOPY"; then
7598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7599else
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7607 ac_cv_prog_OBJCOPY="${ncn_progname}"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612done
7613
7614fi
7615fi
7616OBJCOPY=$ac_cv_prog_OBJCOPY
7617if test -n "$OBJCOPY"; then
2aeb72e9
DD
7618 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7619echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7620else
2aeb72e9
DD
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
278a7a38
AO
7623fi
7624
7625 done
7626fi
7627
7628for ncn_progname in objcopy; do
2693c0b0
PB
7629 if test -n "$ncn_tool_prefix"; then
7630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7631set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7632echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7634if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7636else
7637 if test -n "$OBJCOPY"; then
7638 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7639else
1c710c3c
DJ
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7647 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7650 fi
7651done
7652done
7653
ca9f4b81
AO
7654fi
7655fi
1c710c3c 7656OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7657if test -n "$OBJCOPY"; then
2aeb72e9
DD
7658 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7659echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7660else
2aeb72e9
DD
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
ca9f4b81
AO
7663fi
7664
2693c0b0
PB
7665 fi
7666 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7668set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7669echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7671if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7673else
2693c0b0
PB
7674 if test -n "$OBJCOPY"; then
7675 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7676else
1c710c3c
DJ
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7684 ac_cv_prog_OBJCOPY="${ncn_progname}"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688done
7689done
7690
ca9f4b81
AO
7691fi
7692fi
1c710c3c 7693OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7694if test -n "$OBJCOPY"; then
2aeb72e9
DD
7695 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7696echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7697else
2aeb72e9
DD
7698 echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
ca9f4b81 7700fi
1c710c3c 7701
2693c0b0
PB
7702 fi
7703 test -n "$ac_cv_prog_OBJCOPY" && break
7704done
7705
7706if test -z "$ac_cv_prog_OBJCOPY" ; then
7707 set dummy objcopy
7708 if test $build = $host ; then
7709 OBJCOPY="$2"
ca9f4b81 7710 else
2693c0b0 7711 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7712 fi
ca9f4b81
AO
7713fi
7714
278a7a38
AO
7715
7716
7717if test -n "$OBJDUMP"; then
7718 ac_cv_prog_OBJDUMP=$OBJDUMP
7719elif test -n "$ac_cv_prog_OBJDUMP"; then
7720 OBJDUMP=$ac_cv_prog_OBJDUMP
7721fi
7722
7723if test -n "$ac_cv_prog_OBJDUMP"; then
7724 for ncn_progname in objdump; do
7725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7726set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7727echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7729if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732 if test -n "$OBJDUMP"; then
7733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7742 ac_cv_prog_OBJDUMP="${ncn_progname}"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747done
7748
7749fi
7750fi
7751OBJDUMP=$ac_cv_prog_OBJDUMP
7752if test -n "$OBJDUMP"; then
2aeb72e9
DD
7753 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7754echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7755else
2aeb72e9
DD
7756 echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6
278a7a38
AO
7758fi
7759
7760 done
7761fi
7762
7763for ncn_progname in objdump; do
2693c0b0
PB
7764 if test -n "$ncn_tool_prefix"; then
7765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7766set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7767echo "$as_me:$LINENO: checking for $ac_word" >&5
7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7769if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7771else
7772 if test -n "$OBJDUMP"; then
7773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7774else
1c710c3c
DJ
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7782 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786done
7787done
7788
ca9f4b81
AO
7789fi
7790fi
1c710c3c 7791OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7792if test -n "$OBJDUMP"; then
2aeb72e9
DD
7793 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7794echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7795else
2aeb72e9
DD
7796 echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
ca9f4b81
AO
7798fi
7799
2693c0b0
PB
7800 fi
7801 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7803set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7804echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7806if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7808else
2693c0b0
PB
7809 if test -n "$OBJDUMP"; then
7810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7811else
1c710c3c
DJ
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7819 ac_cv_prog_OBJDUMP="${ncn_progname}"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823done
7824done
7825
ca9f4b81
AO
7826fi
7827fi
1c710c3c 7828OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7829if test -n "$OBJDUMP"; then
2aeb72e9
DD
7830 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7831echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7832else
2aeb72e9
DD
7833 echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
ca9f4b81 7835fi
1c710c3c 7836
2693c0b0
PB
7837 fi
7838 test -n "$ac_cv_prog_OBJDUMP" && break
7839done
7840
7841if test -z "$ac_cv_prog_OBJDUMP" ; then
7842 set dummy objdump
7843 if test $build = $host ; then
7844 OBJDUMP="$2"
ca9f4b81 7845 else
2693c0b0 7846 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7847 fi
ca9f4b81
AO
7848fi
7849
671aa708
NN
7850
7851
7852
7853
7854
7855
2abefe3d 7856# Target tools.
1c710c3c 7857
2aeb72e9 7858# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7859if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7860 withval="$with_build_time_tools"
7861 case x"$withval" in
e8b05380
PB
7862 x/*) ;;
7863 *)
7864 with_build_time_tools=
1c710c3c
DJ
7865 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7866echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7867 ;;
7868 esac
ca9f4b81 7869else
e8b05380 7870 with_build_time_tools=
2aeb72e9 7871fi;
ca9f4b81 7872
278a7a38
AO
7873
7874
7875if test -n "$CC_FOR_TARGET"; then
7876 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7877elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7878 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7879fi
7880
7881if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7882 for ncn_progname in cc gcc; do
7883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7884set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7885echo "$as_me:$LINENO: checking for $ac_word" >&5
7886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7887if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889else
7890 if test -n "$CC_FOR_TARGET"; then
7891 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7900 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904done
7905done
7906
7907fi
7908fi
7909CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7910if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7911 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7912echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 7913else
2aeb72e9
DD
7914 echo "$as_me:$LINENO: result: no" >&5
7915echo "${ECHO_T}no" >&6
278a7a38
AO
7916fi
7917
7918 done
7919fi
7920
7921if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7922 for ncn_progname in cc gcc; do
2aeb72e9
DD
7923 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7924echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7925 if test -x $with_build_time_tools/${ncn_progname}; then
7926 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
7927 echo "$as_me:$LINENO: result: yes" >&5
7928echo "${ECHO_T}yes" >&6
72a7ab82 7929 break
e8b05380 7930 else
2aeb72e9
DD
7931 echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6
72a7ab82
AP
7933 fi
7934 done
4de997d1
PB
7935fi
7936
e8b05380
PB
7937if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7938 for ncn_progname in cc gcc; do
7939 if test -n "$ncn_target_tool_prefix"; then
7940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7941set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7942echo "$as_me:$LINENO: checking for $ac_word" >&5
7943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7944if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7946else
7947 if test -n "$CC_FOR_TARGET"; then
7948 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7949else
1c710c3c
DJ
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7957 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961done
7962done
7963
4de997d1
PB
7964fi
7965fi
1c710c3c 7966CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 7967if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7968 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7969echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7970else
2aeb72e9
DD
7971 echo "$as_me:$LINENO: result: no" >&5
7972echo "${ECHO_T}no" >&6
4de997d1
PB
7973fi
7974
e8b05380
PB
7975 fi
7976 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7978set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7979echo "$as_me:$LINENO: checking for $ac_word" >&5
7980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7981if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7983else
2693c0b0
PB
7984 if test -n "$CC_FOR_TARGET"; then
7985 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 7986else
1c710c3c
DJ
7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988for as_dir in $PATH
7989do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7994 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998done
7999done
8000
4de997d1
PB
8001fi
8002fi
1c710c3c 8003CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8004if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8005 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8006echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8007else
2aeb72e9
DD
8008 echo "$as_me:$LINENO: result: no" >&5
8009echo "${ECHO_T}no" >&6
4de997d1 8010fi
1c710c3c 8011
e8b05380
PB
8012 fi
8013 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8014 done
8015fi
1c710c3c 8016
2693c0b0
PB
8017if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8018 set dummy cc gcc
8019 if test $build = $target ; then
8020 CC_FOR_TARGET="$2"
4de997d1 8021 else
2693c0b0 8022 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8023 fi
4de997d1
PB
8024fi
8025
278a7a38
AO
8026
8027
8028if test -n "$CXX_FOR_TARGET"; then
8029 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8030elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8031 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8032fi
8033
8034if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8035 for ncn_progname in c++ g++ cxx gxx; do
8036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8037set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8038echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8040if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043 if test -n "$CXX_FOR_TARGET"; then
8044 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8045else
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8053 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058done
8059
8060fi
8061fi
8062CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8063if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8064 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8065echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8066else
2aeb72e9
DD
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
278a7a38
AO
8069fi
8070
8071 done
8072fi
8073
8074if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8075 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8076 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8077echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8078 if test -x $with_build_time_tools/${ncn_progname}; then
8079 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8080 echo "$as_me:$LINENO: result: yes" >&5
8081echo "${ECHO_T}yes" >&6
e8b05380
PB
8082 break
8083 else
2aeb72e9
DD
8084 echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6
e8b05380
PB
8086 fi
8087 done
8088fi
8089
8090if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8091 for ncn_progname in c++ g++ cxx gxx; do
8092 if test -n "$ncn_target_tool_prefix"; then
8093 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8094set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8095echo "$as_me:$LINENO: checking for $ac_word" >&5
8096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8097if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8099else
8100 if test -n "$CXX_FOR_TARGET"; then
8101 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8102else
1c710c3c
DJ
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8110 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8113 fi
8114done
8115done
8116
4de997d1
PB
8117fi
8118fi
1c710c3c 8119CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8120if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8121 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8122echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8123else
2aeb72e9
DD
8124 echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6
4de997d1
PB
8126fi
8127
e8b05380
PB
8128 fi
8129 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8131set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8132echo "$as_me:$LINENO: checking for $ac_word" >&5
8133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8134if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8136else
2693c0b0
PB
8137 if test -n "$CXX_FOR_TARGET"; then
8138 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8139else
1c710c3c
DJ
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8147 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152done
8153
4de997d1
PB
8154fi
8155fi
1c710c3c 8156CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8157if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8158 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8159echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8160else
2aeb72e9
DD
8161 echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6
4de997d1 8163fi
1c710c3c 8164
e8b05380
PB
8165 fi
8166 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8167 done
8168fi
1c710c3c 8169
2693c0b0
PB
8170if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8171 set dummy c++ g++ cxx gxx
8172 if test $build = $target ; then
8173 CXX_FOR_TARGET="$2"
4de997d1 8174 else
2693c0b0 8175 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8176 fi
ca9f4b81
AO
8177fi
8178
278a7a38
AO
8179
8180
8181if test -n "$GCC_FOR_TARGET"; then
8182 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8183elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8184 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8185fi
8186
8187if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8188 for ncn_progname in gcc; do
8189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8190set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8191echo "$as_me:$LINENO: checking for $ac_word" >&5
8192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8193if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 if test -n "$GCC_FOR_TARGET"; then
8197 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8198else
8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8206 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210done
8211done
8212
8213fi
8214fi
8215GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8216if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8217 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8218echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8219else
2aeb72e9
DD
8220 echo "$as_me:$LINENO: result: no" >&5
8221echo "${ECHO_T}no" >&6
278a7a38
AO
8222fi
8223
8224 done
8225fi
8226
8227if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8228 for ncn_progname in gcc; do
2aeb72e9
DD
8229 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8230echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8231 if test -x $with_build_time_tools/${ncn_progname}; then
8232 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8233 echo "$as_me:$LINENO: result: yes" >&5
8234echo "${ECHO_T}yes" >&6
e8b05380
PB
8235 break
8236 else
2aeb72e9
DD
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
e8b05380
PB
8239 fi
8240 done
8241fi
8242
8243if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8244 for ncn_progname in gcc; do
8245 if test -n "$ncn_target_tool_prefix"; then
8246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8247set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8248echo "$as_me:$LINENO: checking for $ac_word" >&5
8249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8250if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8252else
e8b05380
PB
8253 if test -n "$GCC_FOR_TARGET"; then
8254 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8255else
1c710c3c
DJ
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8263 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267done
8268done
8269
ca9f4b81
AO
8270fi
8271fi
1c710c3c 8272GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8273if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8274 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8275echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8276else
2aeb72e9
DD
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
ca9f4b81
AO
8279fi
8280
e8b05380
PB
8281 fi
8282 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8284set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8285echo "$as_me:$LINENO: checking for $ac_word" >&5
8286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8287if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8289else
e8b05380
PB
8290 if test -n "$GCC_FOR_TARGET"; then
8291 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8292else
1c710c3c
DJ
8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8300 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304done
8305done
8306
ca9f4b81
AO
8307fi
8308fi
1c710c3c 8309GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8310if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8311 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8312echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8313else
2aeb72e9
DD
8314 echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6
ca9f4b81 8316fi
1c710c3c 8317
e8b05380
PB
8318 fi
8319 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8320 done
8321fi
1c710c3c 8322
e8b05380
PB
8323if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8324 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8325fi
8326
278a7a38
AO
8327
8328
8329if test -n "$GCJ_FOR_TARGET"; then
8330 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8331elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8332 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8333fi
8334
8335if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8336 for ncn_progname in gcj; do
8337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8338set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8339echo "$as_me:$LINENO: checking for $ac_word" >&5
8340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8341if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343else
8344 if test -n "$GCJ_FOR_TARGET"; then
8345 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8346else
8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8354 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8357 fi
8358done
8359done
8360
8361fi
8362fi
8363GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8364if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8365 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8366echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8367else
2aeb72e9
DD
8368 echo "$as_me:$LINENO: result: no" >&5
8369echo "${ECHO_T}no" >&6
278a7a38
AO
8370fi
8371
8372 done
8373fi
8374
8375if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8376 for ncn_progname in gcj; do
2aeb72e9
DD
8377 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8378echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8379 if test -x $with_build_time_tools/${ncn_progname}; then
8380 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8381 echo "$as_me:$LINENO: result: yes" >&5
8382echo "${ECHO_T}yes" >&6
e8b05380
PB
8383 break
8384 else
2aeb72e9
DD
8385 echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6
e8b05380
PB
8387 fi
8388 done
8389fi
8390
8391if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8392 for ncn_progname in gcj; do
8393 if test -n "$ncn_target_tool_prefix"; then
8394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8395set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8396echo "$as_me:$LINENO: checking for $ac_word" >&5
8397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8398if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8400else
fb0103e5
RG
8401 if test -n "$GCJ_FOR_TARGET"; then
8402 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8403else
1c710c3c
DJ
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8411 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415done
8416done
8417
e8b05380
PB
8418fi
8419fi
278a7a38
AO
8420GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8421if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8422 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8423echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8424else
2aeb72e9
DD
8425 echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6
278a7a38
AO
8427fi
8428
8429 fi
8430 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8432set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8433echo "$as_me:$LINENO: checking for $ac_word" >&5
8434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8435if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438 if test -n "$GCJ_FOR_TARGET"; then
8439 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8440else
8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8448 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452done
8453done
8454
8455fi
8456fi
8457GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8458if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8459 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8460echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8461else
2aeb72e9
DD
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
278a7a38
AO
8464fi
8465
8466 fi
8467 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8468 done
8469fi
8470
8471if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8472 set dummy gcj
8473 if test $build = $target ; then
8474 GCJ_FOR_TARGET="$2"
8475 else
8476 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8477 fi
8478fi
8479
8480
8481
8482if test -n "$GFORTRAN_FOR_TARGET"; then
8483 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8484elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8485 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8486fi
8487
278a7a38
AO
8488if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8489 for ncn_progname in gfortran; do
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8491set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8492echo "$as_me:$LINENO: checking for $ac_word" >&5
8493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8494if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8495 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8496else
278a7a38
AO
8497 if test -n "$GFORTRAN_FOR_TARGET"; then
8498 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8499else
1c710c3c
DJ
8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8507 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511done
8512done
8513
e8b05380
PB
8514fi
8515fi
278a7a38
AO
8516GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8517if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8518 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8519echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8520else
2aeb72e9
DD
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
e8b05380 8523fi
1c710c3c 8524
e8b05380
PB
8525 done
8526fi
1c710c3c 8527
278a7a38 8528if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8529 for ncn_progname in gfortran; do
2aeb72e9
DD
8530 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8531echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8532 if test -x $with_build_time_tools/${ncn_progname}; then
8533 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8534 echo "$as_me:$LINENO: result: yes" >&5
8535echo "${ECHO_T}yes" >&6
e8b05380
PB
8536 break
8537 else
2aeb72e9
DD
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
e8b05380
PB
8540 fi
8541 done
8542fi
8543
8544if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8545 for ncn_progname in gfortran; do
8546 if test -n "$ncn_target_tool_prefix"; then
8547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8548set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8549echo "$as_me:$LINENO: checking for $ac_word" >&5
8550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8551if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8553else
8554 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8555 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8564 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568done
8569done
8570
e8b05380
PB
8571fi
8572fi
1c710c3c 8573GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8574if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8575 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8576echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8577else
2aeb72e9
DD
8578 echo "$as_me:$LINENO: result: no" >&5
8579echo "${ECHO_T}no" >&6
e8b05380
PB
8580fi
8581
8582 fi
8583 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8585set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8586echo "$as_me:$LINENO: checking for $ac_word" >&5
8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8588if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8590else
8591 if test -n "$GFORTRAN_FOR_TARGET"; then
8592 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8593else
1c710c3c
DJ
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8601 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606done
8607
e8b05380
PB
8608fi
8609fi
1c710c3c 8610GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8611if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8612 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8613echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8614else
2aeb72e9
DD
8615 echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6
e8b05380 8617fi
1c710c3c 8618
e8b05380
PB
8619 fi
8620 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8621 done
8622fi
1c710c3c 8623
e8b05380
PB
8624if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8625 set dummy gfortran
2693c0b0 8626 if test $build = $target ; then
e8b05380 8627 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8628 else
e8b05380
PB
8629 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8630 fi
8631fi
8632
8633
8634
e8b05380
PB
8635cat > conftest.c << \EOF
8636#ifdef __GNUC__
8637 gcc_yay;
8638#endif
8639EOF
8640if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8641 have_gcc_for_target=yes
8642else
8643 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8644 have_gcc_for_target=no
8645fi
8646rm conftest.c
8647
8648
8649
8650
8651if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8652 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8653 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8654echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8655 if test -x $with_build_time_tools/ar; then
8656 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8657 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8658 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8659echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8660 else
2aeb72e9
DD
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
d1f8db0c 8663 fi
e8b05380
PB
8664 elif test $build != $host && test $have_gcc_for_target = yes; then
8665 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
901119ae
KT
8666 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8667 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8668 fi
8669fi
3e19841a 8670if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8671 # Extract the first word of "ar", so it can be a program name with args.
8672set dummy ar; ac_word=$2
2aeb72e9
DD
8673echo "$as_me:$LINENO: checking for $ac_word" >&5
8674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8675if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8677else
1c710c3c
DJ
8678 case $AR_FOR_TARGET in
8679 [\\/]* | ?:[\\/]*)
e8b05380
PB
8680 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8681 ;;
e8b05380 8682 *)
1c710c3c
DJ
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $gcc_cv_tool_dirs
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8690 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694done
8695done
8696
e8b05380
PB
8697 ;;
8698esac
8699fi
1c710c3c 8700AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8701
e8b05380 8702if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8703 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8704echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8705else
2aeb72e9
DD
8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
4de997d1
PB
8708fi
8709
e8b05380
PB
8710fi
8711if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8712
8713
8714if test -n "$AR_FOR_TARGET"; then
8715 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8716elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8717 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8718fi
8719
8720if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8721 for ncn_progname in ar; do
8722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8724echo "$as_me:$LINENO: checking for $ac_word" >&5
8725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8726if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728else
8729 if test -n "$AR_FOR_TARGET"; then
8730 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8731else
8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8739 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8742 fi
8743done
8744done
8745
8746fi
8747fi
8748AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8749if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8750 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8751echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8752else
2aeb72e9
DD
8753 echo "$as_me:$LINENO: result: no" >&5
8754echo "${ECHO_T}no" >&6
278a7a38
AO
8755fi
8756
8757 done
8758fi
8759
8760if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8761 for ncn_progname in ar; do
2aeb72e9
DD
8762 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8763echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8764 if test -x $with_build_time_tools/${ncn_progname}; then
8765 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8766 echo "$as_me:$LINENO: result: yes" >&5
8767echo "${ECHO_T}yes" >&6
e8b05380
PB
8768 break
8769 else
2aeb72e9
DD
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
e8b05380
PB
8772 fi
8773 done
8774fi
8775
8776if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8777 for ncn_progname in ar; do
8778 if test -n "$ncn_target_tool_prefix"; then
8779 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8780set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8781echo "$as_me:$LINENO: checking for $ac_word" >&5
8782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8783if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8785else
e8b05380
PB
8786 if test -n "$AR_FOR_TARGET"; then
8787 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8788else
1c710c3c
DJ
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8796 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800done
8801done
8802
4de997d1
PB
8803fi
8804fi
1c710c3c 8805AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8806if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8807 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8808echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8809else
2aeb72e9
DD
8810 echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
4de997d1
PB
8812fi
8813
e8b05380
PB
8814 fi
8815 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8818echo "$as_me:$LINENO: checking for $ac_word" >&5
8819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8820if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8822else
8823 if test -n "$AR_FOR_TARGET"; then
8824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8825else
1c710c3c
DJ
8826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827for as_dir in $PATH
8828do
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8833 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 break 2
8836 fi
8837done
8838done
8839
e8b05380
PB
8840fi
8841fi
1c710c3c 8842AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8843if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8844 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8845echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8846else
2aeb72e9
DD
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
e8b05380 8849fi
1c710c3c 8850
e8b05380
PB
8851 fi
8852 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8853 done
8854fi
1c710c3c 8855
e8b05380
PB
8856if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8857 set dummy ar
8858 if test $build = $target ; then
8859 AR_FOR_TARGET="$2"
8860 else
8861 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8862 fi
e8b05380
PB
8863fi
8864
d1f8db0c
PB
8865else
8866 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8867fi
8868
8869
8870
8871
8872if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8873 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8874 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8875echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8876 if test -x $with_build_time_tools/as; then
8877 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8878 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
8879 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8880echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8881 else
2aeb72e9
DD
8882 echo "$as_me:$LINENO: result: no" >&5
8883echo "${ECHO_T}no" >&6
d1f8db0c 8884 fi
e8b05380
PB
8885 elif test $build != $host && test $have_gcc_for_target = yes; then
8886 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
901119ae
KT
8887 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8888 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
8889 fi
8890fi
3e19841a 8891if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8892 # Extract the first word of "as", so it can be a program name with args.
8893set dummy as; ac_word=$2
2aeb72e9
DD
8894echo "$as_me:$LINENO: checking for $ac_word" >&5
8895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8896if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8898else
1c710c3c
DJ
8899 case $AS_FOR_TARGET in
8900 [\\/]* | ?:[\\/]*)
e8b05380
PB
8901 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8902 ;;
e8b05380 8903 *)
1c710c3c
DJ
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905for as_dir in $gcc_cv_tool_dirs
8906do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8911 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915done
8916done
8917
e8b05380
PB
8918 ;;
8919esac
8920fi
1c710c3c 8921AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 8922
e8b05380 8923if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
8924 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8925echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8926else
2aeb72e9
DD
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
e8b05380
PB
8929fi
8930
8931fi
8932if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
8933
8934
8935if test -n "$AS_FOR_TARGET"; then
8936 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8937elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8938 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8939fi
8940
8941if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8942 for ncn_progname in as; do
8943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8944set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8945echo "$as_me:$LINENO: checking for $ac_word" >&5
8946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8947if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950 if test -n "$AS_FOR_TARGET"; then
8951 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8952else
8953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954for as_dir in $PATH
8955do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8960 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964done
8965done
8966
8967fi
8968fi
8969AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8970if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
8971 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8972echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 8973else
2aeb72e9
DD
8974 echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
278a7a38
AO
8976fi
8977
8978 done
8979fi
8980
8981if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8982 for ncn_progname in as; do
2aeb72e9
DD
8983 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8984echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8985 if test -x $with_build_time_tools/${ncn_progname}; then
8986 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8987 echo "$as_me:$LINENO: result: yes" >&5
8988echo "${ECHO_T}yes" >&6
e8b05380
PB
8989 break
8990 else
2aeb72e9
DD
8991 echo "$as_me:$LINENO: result: no" >&5
8992echo "${ECHO_T}no" >&6
e8b05380
PB
8993 fi
8994 done
8995fi
8996
8997if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8998 for ncn_progname in as; do
8999 if test -n "$ncn_target_tool_prefix"; then
9000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9001set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9002echo "$as_me:$LINENO: checking for $ac_word" >&5
9003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9004if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9006else
9007 if test -n "$AS_FOR_TARGET"; then
9008 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9009else
1c710c3c
DJ
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9017 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9020 fi
9021done
9022done
9023
e8b05380
PB
9024fi
9025fi
1c710c3c 9026AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9027if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9028 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9029echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9030else
2aeb72e9
DD
9031 echo "$as_me:$LINENO: result: no" >&5
9032echo "${ECHO_T}no" >&6
e8b05380
PB
9033fi
9034
9035 fi
9036 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9038set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9039echo "$as_me:$LINENO: checking for $ac_word" >&5
9040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9041if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9043else
e8b05380
PB
9044 if test -n "$AS_FOR_TARGET"; then
9045 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9046else
1c710c3c
DJ
9047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9054 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9057 fi
9058done
9059done
9060
4de997d1
PB
9061fi
9062fi
1c710c3c 9063AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9064if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9065 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9066echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9067else
2aeb72e9
DD
9068 echo "$as_me:$LINENO: result: no" >&5
9069echo "${ECHO_T}no" >&6
4de997d1 9070fi
1c710c3c 9071
e8b05380
PB
9072 fi
9073 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9074 done
9075fi
1c710c3c 9076
e8b05380
PB
9077if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9078 set dummy as
9079 if test $build = $target ; then
9080 AS_FOR_TARGET="$2"
9081 else
9082 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9083 fi
e8b05380 9084fi
2693c0b0 9085
d1f8db0c
PB
9086else
9087 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9088fi
9089
e8b05380
PB
9090
9091
9092
9093if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9094 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9095 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9096echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9097 if test -x $with_build_time_tools/dlltool; then
9098 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9099 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9100 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9101echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9102 else
2aeb72e9
DD
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
d1f8db0c 9105 fi
e8b05380
PB
9106 elif test $build != $host && test $have_gcc_for_target = yes; then
9107 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
901119ae
KT
9108 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
9109 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9110 fi
9111fi
3e19841a 9112if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9113 # Extract the first word of "dlltool", so it can be a program name with args.
9114set dummy dlltool; ac_word=$2
2aeb72e9
DD
9115echo "$as_me:$LINENO: checking for $ac_word" >&5
9116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9117if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9119else
1c710c3c
DJ
9120 case $DLLTOOL_FOR_TARGET in
9121 [\\/]* | ?:[\\/]*)
e8b05380
PB
9122 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9123 ;;
e8b05380 9124 *)
1c710c3c
DJ
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $gcc_cv_tool_dirs
9127do
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9132 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9135 fi
9136done
9137done
9138
e8b05380
PB
9139 ;;
9140esac
4de997d1 9141fi
1c710c3c 9142DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9143
e8b05380 9144if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9145 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9146echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9147else
2aeb72e9
DD
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
4de997d1
PB
9150fi
9151
e8b05380
PB
9152fi
9153if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9154
9155
9156if test -n "$DLLTOOL_FOR_TARGET"; then
9157 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9158elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9159 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9160fi
9161
9162if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9163 for ncn_progname in dlltool; do
9164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9165set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9166echo "$as_me:$LINENO: checking for $ac_word" >&5
9167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9168if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170else
9171 if test -n "$DLLTOOL_FOR_TARGET"; then
9172 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9173else
9174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175for as_dir in $PATH
9176do
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9181 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9184 fi
9185done
9186done
9187
9188fi
9189fi
9190DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9191if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9192 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9193echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9194else
2aeb72e9
DD
9195 echo "$as_me:$LINENO: result: no" >&5
9196echo "${ECHO_T}no" >&6
278a7a38
AO
9197fi
9198
9199 done
9200fi
9201
9202if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9203 for ncn_progname in dlltool; do
2aeb72e9
DD
9204 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9205echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9206 if test -x $with_build_time_tools/${ncn_progname}; then
9207 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9208 echo "$as_me:$LINENO: result: yes" >&5
9209echo "${ECHO_T}yes" >&6
e8b05380
PB
9210 break
9211 else
2aeb72e9
DD
9212 echo "$as_me:$LINENO: result: no" >&5
9213echo "${ECHO_T}no" >&6
e8b05380
PB
9214 fi
9215 done
9216fi
9217
9218if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9219 for ncn_progname in dlltool; do
9220 if test -n "$ncn_target_tool_prefix"; then
9221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9222set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9223echo "$as_me:$LINENO: checking for $ac_word" >&5
9224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9225if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9227else
e8b05380
PB
9228 if test -n "$DLLTOOL_FOR_TARGET"; then
9229 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9230else
1c710c3c
DJ
9231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232for as_dir in $PATH
9233do
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9238 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9241 fi
9242done
9243done
9244
4de997d1
PB
9245fi
9246fi
1c710c3c 9247DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9248if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9249 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9250echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9251else
2aeb72e9
DD
9252 echo "$as_me:$LINENO: result: no" >&5
9253echo "${ECHO_T}no" >&6
4de997d1 9254fi
4de997d1 9255
e8b05380
PB
9256 fi
9257 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9259set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9260echo "$as_me:$LINENO: checking for $ac_word" >&5
9261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9262if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9264else
e8b05380
PB
9265 if test -n "$DLLTOOL_FOR_TARGET"; then
9266 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9267else
1c710c3c
DJ
9268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9275 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9278 fi
9279done
9280done
9281
4de997d1
PB
9282fi
9283fi
1c710c3c 9284DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9285if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9286 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9287echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9288else
2aeb72e9
DD
9289 echo "$as_me:$LINENO: result: no" >&5
9290echo "${ECHO_T}no" >&6
4de997d1 9291fi
1c710c3c 9292
e8b05380
PB
9293 fi
9294 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9295 done
9296fi
1c710c3c 9297
e8b05380
PB
9298if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9299 set dummy dlltool
9300 if test $build = $target ; then
9301 DLLTOOL_FOR_TARGET="$2"
9302 else
9303 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9304 fi
9305fi
9306
d1f8db0c
PB
9307else
9308 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9309fi
9310
4de997d1 9311
e8b05380
PB
9312
9313
9314if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9315 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9316 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9317echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9318 if test -x $with_build_time_tools/ld; then
9319 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9320 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9321 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9322echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9323 else
2aeb72e9
DD
9324 echo "$as_me:$LINENO: result: no" >&5
9325echo "${ECHO_T}no" >&6
d1f8db0c 9326 fi
e8b05380
PB
9327 elif test $build != $host && test $have_gcc_for_target = yes; then
9328 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
901119ae
KT
9329 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9330 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9331 fi
e8b05380 9332fi
3e19841a 9333if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9334 # Extract the first word of "ld", so it can be a program name with args.
9335set dummy ld; ac_word=$2
2aeb72e9
DD
9336echo "$as_me:$LINENO: checking for $ac_word" >&5
9337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9338if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9340else
1c710c3c
DJ
9341 case $LD_FOR_TARGET in
9342 [\\/]* | ?:[\\/]*)
e8b05380
PB
9343 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9344 ;;
e8b05380 9345 *)
1c710c3c
DJ
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347for as_dir in $gcc_cv_tool_dirs
9348do
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9353 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9356 fi
9357done
9358done
9359
e8b05380
PB
9360 ;;
9361esac
4de997d1 9362fi
1c710c3c 9363LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9364
e8b05380 9365if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9366 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9367echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9368else
2aeb72e9
DD
9369 echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
4de997d1 9371fi
2693c0b0 9372
e8b05380
PB
9373fi
9374if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9375
9376
9377if test -n "$LD_FOR_TARGET"; then
9378 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9379elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9380 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9381fi
9382
9383if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9384 for ncn_progname in ld; do
9385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9386set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9387echo "$as_me:$LINENO: checking for $ac_word" >&5
9388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9389if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391else
9392 if test -n "$LD_FOR_TARGET"; then
9393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9394else
9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $PATH
9397do
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9402 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9405 fi
9406done
9407done
9408
9409fi
9410fi
9411LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9412if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9413 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9414echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9415else
2aeb72e9
DD
9416 echo "$as_me:$LINENO: result: no" >&5
9417echo "${ECHO_T}no" >&6
278a7a38
AO
9418fi
9419
9420 done
9421fi
9422
9423if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9424 for ncn_progname in ld; do
2aeb72e9
DD
9425 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9426echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9427 if test -x $with_build_time_tools/${ncn_progname}; then
9428 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9429 echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6
e8b05380
PB
9431 break
9432 else
2aeb72e9
DD
9433 echo "$as_me:$LINENO: result: no" >&5
9434echo "${ECHO_T}no" >&6
e8b05380
PB
9435 fi
9436 done
ca9f4b81
AO
9437fi
9438
e8b05380
PB
9439if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9440 for ncn_progname in ld; do
9441 if test -n "$ncn_target_tool_prefix"; then
9442 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9443set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9444echo "$as_me:$LINENO: checking for $ac_word" >&5
9445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9446if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9448else
4de997d1
PB
9449 if test -n "$LD_FOR_TARGET"; then
9450 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9451else
1c710c3c
DJ
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9459 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9462 fi
9463done
9464done
9465
ca9f4b81
AO
9466fi
9467fi
1c710c3c 9468LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9469if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9470 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9471echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9472else
2aeb72e9
DD
9473 echo "$as_me:$LINENO: result: no" >&5
9474echo "${ECHO_T}no" >&6
ca9f4b81
AO
9475fi
9476
e8b05380
PB
9477 fi
9478 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9480set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9481echo "$as_me:$LINENO: checking for $ac_word" >&5
9482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9483if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9485else
2693c0b0
PB
9486 if test -n "$LD_FOR_TARGET"; then
9487 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9488else
1c710c3c
DJ
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9496 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 break 2
9499 fi
9500done
9501done
9502
ca9f4b81
AO
9503fi
9504fi
1c710c3c 9505LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9506if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9507 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9508echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9509else
2aeb72e9
DD
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
ca9f4b81 9512fi
1c710c3c 9513
e8b05380
PB
9514 fi
9515 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9516 done
9517fi
1c710c3c 9518
2693c0b0
PB
9519if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9520 set dummy ld
9521 if test $build = $target ; then
9522 LD_FOR_TARGET="$2"
ca9f4b81 9523 else
2693c0b0 9524 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9525 fi
ca9f4b81
AO
9526fi
9527
d1f8db0c
PB
9528else
9529 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9530fi
9531
9532
9533
9534
9535if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9536 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9537 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9538echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9539 if test -x $with_build_time_tools/lipo; then
9540 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9541 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9542 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9543echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9544 else
2aeb72e9
DD
9545 echo "$as_me:$LINENO: result: no" >&5
9546echo "${ECHO_T}no" >&6
d1f8db0c 9547 fi
e8b05380
PB
9548 elif test $build != $host && test $have_gcc_for_target = yes; then
9549 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
901119ae
KT
9550 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9551 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9552 fi
9553fi
278a7a38
AO
9554if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9555 # Extract the first word of "lipo", so it can be a program name with args.
9556set dummy lipo; ac_word=$2
2aeb72e9
DD
9557echo "$as_me:$LINENO: checking for $ac_word" >&5
9558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9559if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561else
9562 case $LIPO_FOR_TARGET in
9563 [\\/]* | ?:[\\/]*)
9564 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9565 ;;
9566 *)
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $gcc_cv_tool_dirs
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9574 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9577 fi
9578done
9579done
9580
9581 ;;
9582esac
9583fi
9584LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9585
278a7a38 9586if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9587 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9588echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9589else
2aeb72e9
DD
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
278a7a38
AO
9592fi
9593
9594fi
9595if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9596
9597
9598if test -n "$LIPO_FOR_TARGET"; then
9599 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9600elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9601 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9602fi
9603
9604if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9605 for ncn_progname in lipo; do
9606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9607set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9608echo "$as_me:$LINENO: checking for $ac_word" >&5
9609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9610if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9611 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9612else
278a7a38
AO
9613 if test -n "$LIPO_FOR_TARGET"; then
9614 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9615else
9616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617for as_dir in $PATH
1c710c3c
DJ
9618do
9619 IFS=$as_save_IFS
9620 test -z "$as_dir" && as_dir=.
9621 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9623 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 break 2
9626 fi
9627done
9628done
9629
e8b05380 9630fi
278a7a38
AO
9631fi
9632LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9633if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9634 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9635echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9636else
2aeb72e9
DD
9637 echo "$as_me:$LINENO: result: no" >&5
9638echo "${ECHO_T}no" >&6
e8b05380
PB
9639fi
9640
278a7a38 9641 done
e8b05380 9642fi
278a7a38
AO
9643
9644if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9645 for ncn_progname in lipo; do
2aeb72e9
DD
9646 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9647echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9648 if test -x $with_build_time_tools/${ncn_progname}; then
9649 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9650 echo "$as_me:$LINENO: result: yes" >&5
9651echo "${ECHO_T}yes" >&6
e8b05380
PB
9652 break
9653 else
2aeb72e9
DD
9654 echo "$as_me:$LINENO: result: no" >&5
9655echo "${ECHO_T}no" >&6
e8b05380
PB
9656 fi
9657 done
9658fi
9659
9660if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9661 for ncn_progname in lipo; do
9662 if test -n "$ncn_target_tool_prefix"; then
9663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9664set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9665echo "$as_me:$LINENO: checking for $ac_word" >&5
9666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9667if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9669else
9670 if test -n "$LIPO_FOR_TARGET"; then
9671 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9672else
1c710c3c
DJ
9673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674for as_dir in $PATH
9675do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9680 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9683 fi
9684done
9685done
9686
040b1c5a
GK
9687fi
9688fi
1c710c3c 9689LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9690if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9691 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9692echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9693else
2aeb72e9
DD
9694 echo "$as_me:$LINENO: result: no" >&5
9695echo "${ECHO_T}no" >&6
040b1c5a
GK
9696fi
9697
e8b05380
PB
9698 fi
9699 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9701set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9702echo "$as_me:$LINENO: checking for $ac_word" >&5
9703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9704if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9706else
9707 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9708 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9709else
1c710c3c
DJ
9710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711for as_dir in $PATH
9712do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9717 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9720 fi
9721done
9722done
9723
040b1c5a
GK
9724fi
9725fi
1c710c3c 9726LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9727if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9728 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9729echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9730else
2aeb72e9
DD
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
040b1c5a 9733fi
1c710c3c 9734
e8b05380
PB
9735 fi
9736 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9737 done
9738fi
1c710c3c 9739
040b1c5a
GK
9740if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9741 set dummy lipo
9742 if test $build = $target ; then
9743 LIPO_FOR_TARGET="$2"
9744 else
9745 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9746 fi
9747fi
9748
d1f8db0c
PB
9749else
9750 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9751fi
9752
9753
9754
9755
9756if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9757 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9758 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9759echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9760 if test -x $with_build_time_tools/nm; then
9761 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9762 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9763 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9764echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9765 else
2aeb72e9
DD
9766 echo "$as_me:$LINENO: result: no" >&5
9767echo "${ECHO_T}no" >&6
d1f8db0c 9768 fi
e8b05380
PB
9769 elif test $build != $host && test $have_gcc_for_target = yes; then
9770 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
901119ae
KT
9771 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9772 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9773 fi
9774fi
3e19841a 9775if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9776 # Extract the first word of "nm", so it can be a program name with args.
9777set dummy nm; ac_word=$2
2aeb72e9
DD
9778echo "$as_me:$LINENO: checking for $ac_word" >&5
9779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9780if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9782else
1c710c3c
DJ
9783 case $NM_FOR_TARGET in
9784 [\\/]* | ?:[\\/]*)
e8b05380
PB
9785 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9786 ;;
e8b05380 9787 *)
1c710c3c
DJ
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $gcc_cv_tool_dirs
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9795 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800done
9801
e8b05380
PB
9802 ;;
9803esac
9804fi
1c710c3c 9805NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9806
e8b05380 9807if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9808 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9809echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9810else
2aeb72e9
DD
9811 echo "$as_me:$LINENO: result: no" >&5
9812echo "${ECHO_T}no" >&6
e8b05380
PB
9813fi
9814
9815fi
9816if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9817
9818
9819if test -n "$NM_FOR_TARGET"; then
9820 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9821elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9822 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9823fi
9824
9825if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9826 for ncn_progname in nm; do
9827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9828set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9829echo "$as_me:$LINENO: checking for $ac_word" >&5
9830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9831if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833else
9834 if test -n "$NM_FOR_TARGET"; then
9835 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9836else
9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9844 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9847 fi
9848done
9849done
9850
9851fi
9852fi
9853NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9854if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9855 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9856echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9857else
2aeb72e9
DD
9858 echo "$as_me:$LINENO: result: no" >&5
9859echo "${ECHO_T}no" >&6
278a7a38
AO
9860fi
9861
9862 done
9863fi
9864
9865if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9866 for ncn_progname in nm; do
2aeb72e9
DD
9867 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9868echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9869 if test -x $with_build_time_tools/${ncn_progname}; then
9870 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9871 echo "$as_me:$LINENO: result: yes" >&5
9872echo "${ECHO_T}yes" >&6
e8b05380
PB
9873 break
9874 else
2aeb72e9
DD
9875 echo "$as_me:$LINENO: result: no" >&5
9876echo "${ECHO_T}no" >&6
e8b05380
PB
9877 fi
9878 done
9879fi
9880
9881if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9882 for ncn_progname in nm; do
9883 if test -n "$ncn_target_tool_prefix"; then
9884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9885set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9886echo "$as_me:$LINENO: checking for $ac_word" >&5
9887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9888if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9890else
4de997d1
PB
9891 if test -n "$NM_FOR_TARGET"; then
9892 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9893else
1c710c3c
DJ
9894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9901 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905done
9906done
9907
ca9f4b81
AO
9908fi
9909fi
1c710c3c 9910NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 9911if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9912 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9913echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9914else
2aeb72e9
DD
9915 echo "$as_me:$LINENO: result: no" >&5
9916echo "${ECHO_T}no" >&6
ca9f4b81
AO
9917fi
9918
e8b05380
PB
9919 fi
9920 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9922set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9923echo "$as_me:$LINENO: checking for $ac_word" >&5
9924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9925if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9927else
2693c0b0
PB
9928 if test -n "$NM_FOR_TARGET"; then
9929 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9930else
1c710c3c
DJ
9931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932for as_dir in $PATH
9933do
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9938 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9941 fi
9942done
9943done
9944
ca9f4b81
AO
9945fi
9946fi
1c710c3c 9947NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 9948if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9949 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9950echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9951else
2aeb72e9
DD
9952 echo "$as_me:$LINENO: result: no" >&5
9953echo "${ECHO_T}no" >&6
ca9f4b81 9954fi
1c710c3c 9955
e8b05380
PB
9956 fi
9957 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9958 done
9959fi
1c710c3c 9960
2693c0b0
PB
9961if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9962 set dummy nm
9963 if test $build = $target ; then
9964 NM_FOR_TARGET="$2"
ca9f4b81 9965 else
2693c0b0 9966 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9967 fi
ca9f4b81
AO
9968fi
9969
d1f8db0c
PB
9970else
9971 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
9972fi
9973
9974
9975
9976
9977if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9978 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9979 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9980echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9981 if test -x $with_build_time_tools/objdump; then
9982 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9983 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
9984 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9985echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 9986 else
2aeb72e9
DD
9987 echo "$as_me:$LINENO: result: no" >&5
9988echo "${ECHO_T}no" >&6
d1f8db0c 9989 fi
e8b05380
PB
9990 elif test $build != $host && test $have_gcc_for_target = yes; then
9991 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
901119ae
KT
9992 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9993 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
9994 fi
9995fi
3e19841a 9996if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9997 # Extract the first word of "objdump", so it can be a program name with args.
9998set dummy objdump; ac_word=$2
2aeb72e9
DD
9999echo "$as_me:$LINENO: checking for $ac_word" >&5
10000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10001if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10003else
1c710c3c
DJ
10004 case $OBJDUMP_FOR_TARGET in
10005 [\\/]* | ?:[\\/]*)
e8b05380
PB
10006 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10007 ;;
e8b05380 10008 *)
1c710c3c
DJ
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010for as_dir in $gcc_cv_tool_dirs
10011do
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10016 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10019 fi
10020done
10021done
10022
e8b05380
PB
10023 ;;
10024esac
10025fi
1c710c3c 10026OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10027
e8b05380 10028if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10029 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10030echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10031else
2aeb72e9
DD
10032 echo "$as_me:$LINENO: result: no" >&5
10033echo "${ECHO_T}no" >&6
e8b05380
PB
10034fi
10035
10036fi
10037if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10038
10039
10040if test -n "$OBJDUMP_FOR_TARGET"; then
10041 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10042elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10043 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10044fi
10045
10046if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10047 for ncn_progname in objdump; do
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10049set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10050echo "$as_me:$LINENO: checking for $ac_word" >&5
10051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10052if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055 if test -n "$OBJDUMP_FOR_TARGET"; then
10056 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10065 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070done
10071
10072fi
10073fi
10074OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10075if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10076 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10077echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10078else
2aeb72e9
DD
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
278a7a38
AO
10081fi
10082
10083 done
10084fi
10085
10086if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10087 for ncn_progname in objdump; do
2aeb72e9
DD
10088 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10089echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10090 if test -x $with_build_time_tools/${ncn_progname}; then
10091 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10092 echo "$as_me:$LINENO: result: yes" >&5
10093echo "${ECHO_T}yes" >&6
e8b05380
PB
10094 break
10095 else
2aeb72e9
DD
10096 echo "$as_me:$LINENO: result: no" >&5
10097echo "${ECHO_T}no" >&6
e8b05380
PB
10098 fi
10099 done
10100fi
10101
10102if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10103 for ncn_progname in objdump; do
10104 if test -n "$ncn_target_tool_prefix"; then
10105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10106set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10107echo "$as_me:$LINENO: checking for $ac_word" >&5
10108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10109if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10111else
10112 if test -n "$OBJDUMP_FOR_TARGET"; then
10113 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10114else
1c710c3c
DJ
10115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116for as_dir in $PATH
10117do
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10122 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10125 fi
10126done
10127done
10128
d739199a
DJ
10129fi
10130fi
1c710c3c 10131OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10132if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10133 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10134echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10135else
2aeb72e9
DD
10136 echo "$as_me:$LINENO: result: no" >&5
10137echo "${ECHO_T}no" >&6
d739199a
DJ
10138fi
10139
e8b05380
PB
10140 fi
10141 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10143set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10144echo "$as_me:$LINENO: checking for $ac_word" >&5
10145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10146if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10148else
10149 if test -n "$OBJDUMP_FOR_TARGET"; then
10150 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10151else
1c710c3c
DJ
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10159 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163done
10164done
10165
d739199a
DJ
10166fi
10167fi
1c710c3c 10168OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10169if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10170 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10171echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10172else
2aeb72e9
DD
10173 echo "$as_me:$LINENO: result: no" >&5
10174echo "${ECHO_T}no" >&6
d739199a 10175fi
1c710c3c 10176
e8b05380
PB
10177 fi
10178 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10179 done
10180fi
1c710c3c 10181
d739199a
DJ
10182if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10183 set dummy objdump
10184 if test $build = $target ; then
10185 OBJDUMP_FOR_TARGET="$2"
10186 else
10187 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10188 fi
10189fi
10190
d1f8db0c
PB
10191else
10192 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10193fi
10194
10195
10196
10197
10198if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10199 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10200 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10201echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10202 if test -x $with_build_time_tools/ranlib; then
10203 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10204 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10205 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10206echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10207 else
2aeb72e9
DD
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
d1f8db0c 10210 fi
e8b05380
PB
10211 elif test $build != $host && test $have_gcc_for_target = yes; then
10212 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
901119ae
KT
10213 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10214 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10215 fi
10216fi
3e19841a 10217if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10218 # Extract the first word of "ranlib", so it can be a program name with args.
10219set dummy ranlib; ac_word=$2
2aeb72e9
DD
10220echo "$as_me:$LINENO: checking for $ac_word" >&5
10221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10222if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10224else
1c710c3c
DJ
10225 case $RANLIB_FOR_TARGET in
10226 [\\/]* | ?:[\\/]*)
e8b05380
PB
10227 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10228 ;;
e8b05380 10229 *)
1c710c3c
DJ
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $gcc_cv_tool_dirs
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10237 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
e8b05380
PB
10244 ;;
10245esac
10246fi
1c710c3c 10247RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10248
e8b05380 10249if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10250 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10251echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10252else
2aeb72e9
DD
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
e8b05380
PB
10255fi
10256
10257fi
10258if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10259
10260
10261if test -n "$RANLIB_FOR_TARGET"; then
10262 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10263elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10264 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10265fi
10266
10267if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10268 for ncn_progname in ranlib; do
10269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10270set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10271echo "$as_me:$LINENO: checking for $ac_word" >&5
10272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10273if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
10276 if test -n "$RANLIB_FOR_TARGET"; then
10277 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10278else
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10286 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10289 fi
10290done
10291done
10292
10293fi
10294fi
10295RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10296if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10297 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10298echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10299else
2aeb72e9
DD
10300 echo "$as_me:$LINENO: result: no" >&5
10301echo "${ECHO_T}no" >&6
278a7a38
AO
10302fi
10303
10304 done
10305fi
10306
10307if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10308 for ncn_progname in ranlib; do
2aeb72e9
DD
10309 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10310echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10311 if test -x $with_build_time_tools/${ncn_progname}; then
10312 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10313 echo "$as_me:$LINENO: result: yes" >&5
10314echo "${ECHO_T}yes" >&6
e8b05380
PB
10315 break
10316 else
2aeb72e9
DD
10317 echo "$as_me:$LINENO: result: no" >&5
10318echo "${ECHO_T}no" >&6
e8b05380
PB
10319 fi
10320 done
10321fi
10322
10323if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10324 for ncn_progname in ranlib; do
10325 if test -n "$ncn_target_tool_prefix"; then
10326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10327set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10328echo "$as_me:$LINENO: checking for $ac_word" >&5
10329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10330if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10332else
4de997d1
PB
10333 if test -n "$RANLIB_FOR_TARGET"; then
10334 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10335else
1c710c3c
DJ
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10343 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347done
10348done
10349
ca9f4b81
AO
10350fi
10351fi
1c710c3c 10352RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10353if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10354 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10355echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10356else
2aeb72e9
DD
10357 echo "$as_me:$LINENO: result: no" >&5
10358echo "${ECHO_T}no" >&6
ca9f4b81
AO
10359fi
10360
e8b05380
PB
10361 fi
10362 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10364set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10365echo "$as_me:$LINENO: checking for $ac_word" >&5
10366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10367if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10369else
2693c0b0
PB
10370 if test -n "$RANLIB_FOR_TARGET"; then
10371 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10372else
1c710c3c
DJ
10373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374for as_dir in $PATH
10375do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10380 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10383 fi
10384done
10385done
10386
ca9f4b81
AO
10387fi
10388fi
1c710c3c 10389RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10390if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10391 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10392echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10393else
2aeb72e9
DD
10394 echo "$as_me:$LINENO: result: no" >&5
10395echo "${ECHO_T}no" >&6
ca9f4b81 10396fi
1c710c3c 10397
e8b05380
PB
10398 fi
10399 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10400 done
10401fi
1c710c3c 10402
e8b05380
PB
10403if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10404 set dummy ranlib
10405 if test $build = $target ; then
10406 RANLIB_FOR_TARGET="$2"
10407 else
10408 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10409 fi
e8b05380 10410fi
2693c0b0 10411
d1f8db0c
PB
10412else
10413 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10414fi
10415
e8b05380
PB
10416
10417
10418
10419if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10420 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10421 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10422echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10423 if test -x $with_build_time_tools/strip; then
10424 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10425 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10426 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10427echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10428 else
2aeb72e9
DD
10429 echo "$as_me:$LINENO: result: no" >&5
10430echo "${ECHO_T}no" >&6
d1f8db0c 10431 fi
e8b05380
PB
10432 elif test $build != $host && test $have_gcc_for_target = yes; then
10433 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
901119ae
KT
10434 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10435 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10436 fi
10437fi
3e19841a 10438if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10439 # Extract the first word of "strip", so it can be a program name with args.
10440set dummy strip; ac_word=$2
2aeb72e9
DD
10441echo "$as_me:$LINENO: checking for $ac_word" >&5
10442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10443if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10445else
1c710c3c
DJ
10446 case $STRIP_FOR_TARGET in
10447 [\\/]* | ?:[\\/]*)
e8b05380
PB
10448 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10449 ;;
e8b05380 10450 *)
1c710c3c
DJ
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $gcc_cv_tool_dirs
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10458 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462done
10463done
10464
e8b05380
PB
10465 ;;
10466esac
10467fi
1c710c3c 10468STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10469
e8b05380 10470if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10471 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10472echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10473else
2aeb72e9
DD
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
e8b05380
PB
10476fi
10477
10478fi
10479if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10480
10481
10482if test -n "$STRIP_FOR_TARGET"; then
10483 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10484elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10485 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10486fi
10487
10488if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10489 for ncn_progname in strip; do
10490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10491set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10492echo "$as_me:$LINENO: checking for $ac_word" >&5
10493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10494if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496else
10497 if test -n "$STRIP_FOR_TARGET"; then
10498 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10507 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10510 fi
10511done
10512done
10513
10514fi
10515fi
10516STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10517if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10518 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10519echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10520else
2aeb72e9
DD
10521 echo "$as_me:$LINENO: result: no" >&5
10522echo "${ECHO_T}no" >&6
278a7a38
AO
10523fi
10524
10525 done
10526fi
10527
10528if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10529 for ncn_progname in strip; do
2aeb72e9
DD
10530 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10531echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10532 if test -x $with_build_time_tools/${ncn_progname}; then
10533 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10534 echo "$as_me:$LINENO: result: yes" >&5
10535echo "${ECHO_T}yes" >&6
e8b05380
PB
10536 break
10537 else
2aeb72e9
DD
10538 echo "$as_me:$LINENO: result: no" >&5
10539echo "${ECHO_T}no" >&6
e8b05380
PB
10540 fi
10541 done
10542fi
10543
10544if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10545 for ncn_progname in strip; do
10546 if test -n "$ncn_target_tool_prefix"; then
10547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10548set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10549echo "$as_me:$LINENO: checking for $ac_word" >&5
10550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10551if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10553else
10554 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10555 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10556else
10557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558for as_dir in $PATH
10559do
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10564 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10567 fi
10568done
10569done
10570
040b1c5a
GK
10571fi
10572fi
1c710c3c 10573STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10574if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10575 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10576echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10577else
2aeb72e9
DD
10578 echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6
040b1c5a
GK
10580fi
10581
e8b05380
PB
10582 fi
10583 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10585set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10586echo "$as_me:$LINENO: checking for $ac_word" >&5
10587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10588if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10590else
10591 if test -n "$STRIP_FOR_TARGET"; then
10592 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10593else
1c710c3c
DJ
10594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595for as_dir in $PATH
10596do
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10601 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10604 fi
10605done
10606done
10607
040b1c5a
GK
10608fi
10609fi
1c710c3c 10610STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10611if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10612 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10613echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10614else
2aeb72e9
DD
10615 echo "$as_me:$LINENO: result: no" >&5
10616echo "${ECHO_T}no" >&6
040b1c5a 10617fi
1c710c3c 10618
e8b05380
PB
10619 fi
10620 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10621 done
10622fi
1c710c3c 10623
040b1c5a
GK
10624if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10625 set dummy strip
10626 if test $build = $target ; then
10627 STRIP_FOR_TARGET="$2"
10628 else
10629 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10630 fi
10631fi
10632
d1f8db0c
PB
10633else
10634 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10635fi
10636
10637
10638
10639
10640if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10641 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10642 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10643echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10644 if test -x $with_build_time_tools/windres; then
10645 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10646 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10647 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10648echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10649 else
2aeb72e9
DD
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
d1f8db0c 10652 fi
e8b05380
PB
10653 elif test $build != $host && test $have_gcc_for_target = yes; then
10654 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
901119ae
KT
10655 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10656 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10657 fi
10658fi
3e19841a 10659if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10660 # Extract the first word of "windres", so it can be a program name with args.
10661set dummy windres; ac_word=$2
2aeb72e9
DD
10662echo "$as_me:$LINENO: checking for $ac_word" >&5
10663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10664if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10666else
1c710c3c
DJ
10667 case $WINDRES_FOR_TARGET in
10668 [\\/]* | ?:[\\/]*)
e8b05380
PB
10669 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10670 ;;
e8b05380 10671 *)
1c710c3c
DJ
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $gcc_cv_tool_dirs
10674do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10679 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10682 fi
10683done
10684done
10685
e8b05380
PB
10686 ;;
10687esac
10688fi
1c710c3c 10689WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10690
e8b05380 10691if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10692 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10693echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10694else
2aeb72e9
DD
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
e8b05380
PB
10697fi
10698
10699fi
10700if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10701
10702
10703if test -n "$WINDRES_FOR_TARGET"; then
10704 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10705elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10706 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10707fi
10708
10709if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10710 for ncn_progname in windres; do
10711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10712set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10713echo "$as_me:$LINENO: checking for $ac_word" >&5
10714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10715if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717else
10718 if test -n "$WINDRES_FOR_TARGET"; then
10719 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10720else
10721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722for as_dir in $PATH
10723do
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10728 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10731 fi
10732done
10733done
10734
10735fi
10736fi
10737WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10738if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10739 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10740echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10741else
2aeb72e9
DD
10742 echo "$as_me:$LINENO: result: no" >&5
10743echo "${ECHO_T}no" >&6
278a7a38
AO
10744fi
10745
10746 done
10747fi
10748
10749if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10750 for ncn_progname in windres; do
2aeb72e9
DD
10751 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10752echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10753 if test -x $with_build_time_tools/${ncn_progname}; then
10754 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10755 echo "$as_me:$LINENO: result: yes" >&5
10756echo "${ECHO_T}yes" >&6
e8b05380
PB
10757 break
10758 else
2aeb72e9
DD
10759 echo "$as_me:$LINENO: result: no" >&5
10760echo "${ECHO_T}no" >&6
e8b05380
PB
10761 fi
10762 done
10763fi
10764
10765if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10766 for ncn_progname in windres; do
10767 if test -n "$ncn_target_tool_prefix"; then
10768 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10769set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10770echo "$as_me:$LINENO: checking for $ac_word" >&5
10771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10772if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10774else
4de997d1
PB
10775 if test -n "$WINDRES_FOR_TARGET"; then
10776 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10777else
1c710c3c
DJ
10778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779for as_dir in $PATH
10780do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10785 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10788 fi
10789done
10790done
10791
ca9f4b81
AO
10792fi
10793fi
1c710c3c 10794WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10795if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10796 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10797echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10798else
2aeb72e9
DD
10799 echo "$as_me:$LINENO: result: no" >&5
10800echo "${ECHO_T}no" >&6
ca9f4b81
AO
10801fi
10802
e8b05380
PB
10803 fi
10804 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10806set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10807echo "$as_me:$LINENO: checking for $ac_word" >&5
10808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10809if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10811else
2693c0b0
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.
ca9f4b81 10814else
1c710c3c
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
2aeb72e9 10821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10822 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10825 fi
10826done
10827done
10828
ca9f4b81
AO
10829fi
10830fi
1c710c3c 10831WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10832if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10833 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10834echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10835else
2aeb72e9
DD
10836 echo "$as_me:$LINENO: result: no" >&5
10837echo "${ECHO_T}no" >&6
ca9f4b81 10838fi
1c710c3c 10839
e8b05380
PB
10840 fi
10841 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10842 done
10843fi
1c710c3c 10844
2693c0b0
PB
10845if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10846 set dummy windres
10847 if test $build = $target ; then
10848 WINDRES_FOR_TARGET="$2"
ca9f4b81 10849 else
2693c0b0 10850 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10851 fi
ca9f4b81
AO
10852fi
10853
d1f8db0c
PB
10854else
10855 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10856fi
10857
4977bab6 10858
901119ae
KT
10859
10860
10861if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10862 if test -n "$with_build_time_tools"; then
10863 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10864echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10865 if test -x $with_build_time_tools/windmc; then
10866 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10867 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10868 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10869echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10870 else
10871 echo "$as_me:$LINENO: result: no" >&5
10872echo "${ECHO_T}no" >&6
10873 fi
10874 elif test $build != $host && test $have_gcc_for_target = yes; then
10875 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10876 test $WINDMC_FOR_TARGET=windmc && WINDMC_FOR_TARGET=
10877 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10878 fi
10879fi
10880if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10881 # Extract the first word of "windmc", so it can be a program name with args.
10882set dummy windmc; ac_word=$2
10883echo "$as_me:$LINENO: checking for $ac_word" >&5
10884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10885if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887else
10888 case $WINDMC_FOR_TARGET in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10891 ;;
10892 *)
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $gcc_cv_tool_dirs
10895do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904done
10905done
10906
10907 ;;
10908esac
10909fi
10910WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10911
10912if test -n "$WINDMC_FOR_TARGET"; then
10913 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10914echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10915else
10916 echo "$as_me:$LINENO: result: no" >&5
10917echo "${ECHO_T}no" >&6
10918fi
10919
10920fi
10921if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10922
10923
10924if test -n "$WINDMC_FOR_TARGET"; then
10925 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10926elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10927 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10928fi
10929
10930if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10931 for ncn_progname in windmc; do
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933set dummy ${ncn_progname}; ac_word=$2
10934echo "$as_me:$LINENO: checking for $ac_word" >&5
10935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10936if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 if test -n "$WINDMC_FOR_TARGET"; then
10940 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10941else
10942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943for as_dir in $PATH
10944do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
10950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953done
10954done
10955
10956fi
10957fi
10958WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10959if test -n "$WINDMC_FOR_TARGET"; then
10960 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10961echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10962else
10963 echo "$as_me:$LINENO: result: no" >&5
10964echo "${ECHO_T}no" >&6
10965fi
10966
10967 done
10968fi
10969
10970if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10971 for ncn_progname in windmc; do
10972 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10973echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10974 if test -x $with_build_time_tools/${ncn_progname}; then
10975 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10976 echo "$as_me:$LINENO: result: yes" >&5
10977echo "${ECHO_T}yes" >&6
10978 break
10979 else
10980 echo "$as_me:$LINENO: result: no" >&5
10981echo "${ECHO_T}no" >&6
10982 fi
10983 done
10984fi
10985
10986if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10987 for ncn_progname in windmc; do
10988 if test -n "$ncn_target_tool_prefix"; then
10989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10990set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10991echo "$as_me:$LINENO: checking for $ac_word" >&5
10992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10993if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996 if test -n "$WINDMC_FOR_TARGET"; then
10997 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10998else
10999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000for as_dir in $PATH
11001do
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11006 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11009 fi
11010done
11011done
11012
11013fi
11014fi
11015WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11016if test -n "$WINDMC_FOR_TARGET"; then
11017 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11018echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11019else
11020 echo "$as_me:$LINENO: result: no" >&5
11021echo "${ECHO_T}no" >&6
11022fi
11023
11024 fi
11025 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11027set dummy ${ncn_progname}; ac_word=$2
11028echo "$as_me:$LINENO: checking for $ac_word" >&5
11029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11030if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032else
11033 if test -n "$WINDMC_FOR_TARGET"; then
11034 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11035else
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047done
11048done
11049
11050fi
11051fi
11052WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11053if test -n "$WINDMC_FOR_TARGET"; then
11054 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11055echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11056else
11057 echo "$as_me:$LINENO: result: no" >&5
11058echo "${ECHO_T}no" >&6
11059fi
11060
11061 fi
11062 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11063 done
11064fi
11065
11066if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11067 set dummy windmc
11068 if test $build = $target ; then
11069 WINDMC_FOR_TARGET="$2"
11070 else
11071 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11072 fi
11073fi
11074
11075else
11076 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11077fi
11078
11079
2abefe3d
PB
11080RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11081
2aeb72e9
DD
11082echo "$as_me:$LINENO: checking where to find the target ar" >&5
11083echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11084if test "x${build}" != "x${host}" ; then
e8b05380
PB
11085 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11086 # We already found the complete path
172e41aa 11087 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11088 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11089echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11090 else
11091 # Canadian cross, just use what we found
2aeb72e9
DD
11092 echo "$as_me:$LINENO: result: pre-installed" >&5
11093echo "${ECHO_T}pre-installed" >&6
e8b05380 11094 fi
2abefe3d
PB
11095else
11096 ok=yes
11097 case " ${configdirs} " in
11098 *" binutils "*) ;;
11099 *) ok=no ;;
11100 esac
1c710c3c 11101
2abefe3d
PB
11102 if test $ok = yes; then
11103 # An in-tree tool is available and we can use it
11104 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11105 echo "$as_me:$LINENO: result: just compiled" >&5
11106echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11107 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11108 # We already found the complete path
172e41aa 11109 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11110 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11111echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11112 elif test "x$target" = "x$host"; then
11113 # We can use an host tool
11114 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11115 echo "$as_me:$LINENO: result: host tool" >&5
11116echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11117 else
11118 # We need a cross tool
2aeb72e9
DD
11119 echo "$as_me:$LINENO: result: pre-installed" >&5
11120echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11121 fi
11122fi
0b0dc272 11123
2aeb72e9
DD
11124echo "$as_me:$LINENO: checking where to find the target as" >&5
11125echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11126if test "x${build}" != "x${host}" ; then
e8b05380
PB
11127 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11128 # We already found the complete path
172e41aa 11129 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11130 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11131echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11132 else
11133 # Canadian cross, just use what we found
2aeb72e9
DD
11134 echo "$as_me:$LINENO: result: pre-installed" >&5
11135echo "${ECHO_T}pre-installed" >&6
e8b05380 11136 fi
2abefe3d
PB
11137else
11138 ok=yes
11139 case " ${configdirs} " in
11140 *" gas "*) ;;
11141 *) ok=no ;;
11142 esac
1c710c3c 11143
2abefe3d
PB
11144 if test $ok = yes; then
11145 # An in-tree tool is available and we can use it
11146 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11147 echo "$as_me:$LINENO: result: just compiled" >&5
11148echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11149 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11150 # We already found the complete path
172e41aa 11151 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11152 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11153echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11154 elif test "x$target" = "x$host"; then
11155 # We can use an host tool
11156 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11157 echo "$as_me:$LINENO: result: host tool" >&5
11158echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11159 else
11160 # We need a cross tool
2aeb72e9
DD
11161 echo "$as_me:$LINENO: result: pre-installed" >&5
11162echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11163 fi
11164fi
0b0dc272 11165
2aeb72e9
DD
11166echo "$as_me:$LINENO: checking where to find the target cc" >&5
11167echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11168if test "x${build}" != "x${host}" ; then
e8b05380
PB
11169 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11170 # We already found the complete path
172e41aa 11171 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11172 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11173echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11174 else
11175 # Canadian cross, just use what we found
2aeb72e9
DD
11176 echo "$as_me:$LINENO: result: pre-installed" >&5
11177echo "${ECHO_T}pre-installed" >&6
e8b05380 11178 fi
2abefe3d
PB
11179else
11180 ok=yes
11181 case " ${configdirs} " in
11182 *" gcc "*) ;;
11183 *) ok=no ;;
11184 esac
1c710c3c 11185
2abefe3d
PB
11186 if test $ok = yes; then
11187 # An in-tree tool is available and we can use it
11188 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11189 echo "$as_me:$LINENO: result: just compiled" >&5
11190echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11191 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11192 # We already found the complete path
172e41aa 11193 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11194 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11195echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11196 elif test "x$target" = "x$host"; then
11197 # We can use an host tool
11198 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11199 echo "$as_me:$LINENO: result: host tool" >&5
11200echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11201 else
11202 # We need a cross tool
2aeb72e9
DD
11203 echo "$as_me:$LINENO: result: pre-installed" >&5
11204echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11205 fi
11206fi
0b0dc272 11207
2aeb72e9
DD
11208echo "$as_me:$LINENO: checking where to find the target c++" >&5
11209echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11210if test "x${build}" != "x${host}" ; then
e8b05380
PB
11211 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11212 # We already found the complete path
172e41aa 11213 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11214 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11215echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11216 else
11217 # Canadian cross, just use what we found
2aeb72e9
DD
11218 echo "$as_me:$LINENO: result: pre-installed" >&5
11219echo "${ECHO_T}pre-installed" >&6
e8b05380 11220 fi
2abefe3d
PB
11221else
11222 ok=yes
11223 case " ${configdirs} " in
11224 *" gcc "*) ;;
11225 *) ok=no ;;
11226 esac
11227 case ,${enable_languages}, in
11228 *,c++,*) ;;
11229 *) ok=no ;;
11230 esac
11231 if test $ok = yes; then
11232 # An in-tree tool is available and we can use it
11233 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'
2aeb72e9
DD
11234 echo "$as_me:$LINENO: result: just compiled" >&5
11235echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11236 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11237 # We already found the complete path
172e41aa 11238 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11239 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11240echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11241 elif test "x$target" = "x$host"; then
11242 # We can use an host tool
11243 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11244 echo "$as_me:$LINENO: result: host tool" >&5
11245echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11246 else
11247 # We need a cross tool
2aeb72e9
DD
11248 echo "$as_me:$LINENO: result: pre-installed" >&5
11249echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11250 fi
11251fi
0b0dc272 11252
2aeb72e9
DD
11253echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11254echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11255if test "x${build}" != "x${host}" ; then
e8b05380
PB
11256 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11257 # We already found the complete path
172e41aa 11258 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11259 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11260echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11261 else
11262 # Canadian cross, just use what we found
2aeb72e9
DD
11263 echo "$as_me:$LINENO: result: pre-installed" >&5
11264echo "${ECHO_T}pre-installed" >&6
e8b05380 11265 fi
2abefe3d
PB
11266else
11267 ok=yes
11268 case " ${configdirs} " in
11269 *" gcc "*) ;;
11270 *) ok=no ;;
11271 esac
11272 case ,${enable_languages}, in
11273 *,c++,*) ;;
11274 *) ok=no ;;
11275 esac
11276 if test $ok = yes; then
11277 # An in-tree tool is available and we can use it
11278 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'
2aeb72e9
DD
11279 echo "$as_me:$LINENO: result: just compiled" >&5
11280echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11281 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11282 # We already found the complete path
172e41aa 11283 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11284 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11285echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11286 elif test "x$target" = "x$host"; then
11287 # We can use an host tool
11288 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11289 echo "$as_me:$LINENO: result: host tool" >&5
11290echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11291 else
11292 # We need a cross tool
2aeb72e9
DD
11293 echo "$as_me:$LINENO: result: pre-installed" >&5
11294echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11295 fi
11296fi
0b0dc272 11297
2aeb72e9
DD
11298echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11299echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11300if test "x${build}" != "x${host}" ; then
e8b05380
PB
11301 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11302 # We already found the complete path
172e41aa 11303 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11304 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11305echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11306 else
11307 # Canadian cross, just use what we found
2aeb72e9
DD
11308 echo "$as_me:$LINENO: result: pre-installed" >&5
11309echo "${ECHO_T}pre-installed" >&6
e8b05380 11310 fi
2abefe3d
PB
11311else
11312 ok=yes
11313 case " ${configdirs} " in
11314 *" binutils "*) ;;
11315 *) ok=no ;;
11316 esac
1c710c3c 11317
2abefe3d
PB
11318 if test $ok = yes; then
11319 # An in-tree tool is available and we can use it
11320 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11321 echo "$as_me:$LINENO: result: just compiled" >&5
11322echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11323 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11324 # We already found the complete path
172e41aa 11325 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11326 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11327echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11328 elif test "x$target" = "x$host"; then
11329 # We can use an host tool
11330 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11331 echo "$as_me:$LINENO: result: host tool" >&5
11332echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11333 else
11334 # We need a cross tool
2aeb72e9
DD
11335 echo "$as_me:$LINENO: result: pre-installed" >&5
11336echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11337 fi
11338fi
0b0dc272 11339
2aeb72e9
DD
11340echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11341echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11342if test "x${build}" != "x${host}" ; then
e8b05380
PB
11343 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11344 # We already found the complete path
172e41aa 11345 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11346 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11347echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11348 else
11349 # Canadian cross, just use what we found
2aeb72e9
DD
11350 echo "$as_me:$LINENO: result: pre-installed" >&5
11351echo "${ECHO_T}pre-installed" >&6
e8b05380 11352 fi
2abefe3d
PB
11353else
11354 ok=yes
11355 case " ${configdirs} " in
11356 *" gcc "*) ;;
11357 *) ok=no ;;
11358 esac
1c710c3c 11359
2abefe3d
PB
11360 if test $ok = yes; then
11361 # An in-tree tool is available and we can use it
11362 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11363 echo "$as_me:$LINENO: result: just compiled" >&5
11364echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11365 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11366 # We already found the complete path
172e41aa 11367 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11368 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11369echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11370 elif test "x$target" = "x$host"; then
11371 # We can use an host tool
11372 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11373 echo "$as_me:$LINENO: result: host tool" >&5
11374echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11375 else
11376 # We need a cross tool
2aeb72e9
DD
11377 echo "$as_me:$LINENO: result: pre-installed" >&5
11378echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11379 fi
11380fi
0b0dc272 11381
2aeb72e9
DD
11382echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11383echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11384if test "x${build}" != "x${host}" ; then
e8b05380
PB
11385 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11386 # We already found the complete path
172e41aa 11387 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11388 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11389echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11390 else
11391 # Canadian cross, just use what we found
2aeb72e9
DD
11392 echo "$as_me:$LINENO: result: pre-installed" >&5
11393echo "${ECHO_T}pre-installed" >&6
e8b05380 11394 fi
2abefe3d
PB
11395else
11396 ok=yes
11397 case " ${configdirs} " in
11398 *" gcc "*) ;;
11399 *) ok=no ;;
11400 esac
11401 case ,${enable_languages}, in
11402 *,java,*) ;;
11403 *) ok=no ;;
11404 esac
11405 if test $ok = yes; then
11406 # An in-tree tool is available and we can use it
11407 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11408 echo "$as_me:$LINENO: result: just compiled" >&5
11409echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11410 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11411 # We already found the complete path
172e41aa 11412 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11413 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11414echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11415 elif test "x$target" = "x$host"; then
11416 # We can use an host tool
11417 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11418 echo "$as_me:$LINENO: result: host tool" >&5
11419echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11420 else
11421 # We need a cross tool
2aeb72e9
DD
11422 echo "$as_me:$LINENO: result: pre-installed" >&5
11423echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11424 fi
11425fi
0b0dc272 11426
2aeb72e9
DD
11427echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11428echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11429if test "x${build}" != "x${host}" ; then
e8b05380
PB
11430 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11431 # We already found the complete path
172e41aa 11432 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11433 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11434echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11435 else
11436 # Canadian cross, just use what we found
2aeb72e9
DD
11437 echo "$as_me:$LINENO: result: pre-installed" >&5
11438echo "${ECHO_T}pre-installed" >&6
e8b05380 11439 fi
2abefe3d
PB
11440else
11441 ok=yes
11442 case " ${configdirs} " in
11443 *" gcc "*) ;;
11444 *) ok=no ;;
11445 esac
11446 case ,${enable_languages}, in
11447 *,fortran,*) ;;
11448 *) ok=no ;;
11449 esac
11450 if test $ok = yes; then
11451 # An in-tree tool is available and we can use it
11452 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11453 echo "$as_me:$LINENO: result: just compiled" >&5
11454echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11455 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11456 # We already found the complete path
172e41aa 11457 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11458 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11459echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11460 elif test "x$target" = "x$host"; then
11461 # We can use an host tool
11462 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11463 echo "$as_me:$LINENO: result: host tool" >&5
11464echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11465 else
11466 # We need a cross tool
2aeb72e9
DD
11467 echo "$as_me:$LINENO: result: pre-installed" >&5
11468echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11469 fi
11470fi
0b0dc272 11471
2aeb72e9
DD
11472echo "$as_me:$LINENO: checking where to find the target ld" >&5
11473echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11474if test "x${build}" != "x${host}" ; then
e8b05380
PB
11475 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11476 # We already found the complete path
172e41aa 11477 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11478 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11479echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11480 else
11481 # Canadian cross, just use what we found
2aeb72e9
DD
11482 echo "$as_me:$LINENO: result: pre-installed" >&5
11483echo "${ECHO_T}pre-installed" >&6
e8b05380 11484 fi
2abefe3d
PB
11485else
11486 ok=yes
11487 case " ${configdirs} " in
11488 *" ld "*) ;;
11489 *) ok=no ;;
11490 esac
1c710c3c 11491
2abefe3d
PB
11492 if test $ok = yes; then
11493 # An in-tree tool is available and we can use it
11494 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11495 echo "$as_me:$LINENO: result: just compiled" >&5
11496echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11497 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11498 # We already found the complete path
172e41aa 11499 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11500 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11501echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11502 elif test "x$target" = "x$host"; then
11503 # We can use an host tool
11504 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11505 echo "$as_me:$LINENO: result: host tool" >&5
11506echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11507 else
11508 # We need a cross tool
2aeb72e9
DD
11509 echo "$as_me:$LINENO: result: pre-installed" >&5
11510echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11511 fi
11512fi
0b0dc272 11513
2aeb72e9
DD
11514echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11515echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11516if test "x${build}" != "x${host}" ; then
e8b05380
PB
11517 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11518 # We already found the complete path
172e41aa 11519 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11520 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11521echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11522 else
11523 # Canadian cross, just use what we found
2aeb72e9
DD
11524 echo "$as_me:$LINENO: result: pre-installed" >&5
11525echo "${ECHO_T}pre-installed" >&6
e8b05380 11526 fi
2abefe3d 11527else
e8b05380
PB
11528 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11529 # We already found the complete path
172e41aa 11530 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11531 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11532echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11533 elif test "x$target" = "x$host"; then
2abefe3d
PB
11534 # We can use an host tool
11535 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11536 echo "$as_me:$LINENO: result: host tool" >&5
11537echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11538 else
11539 # We need a cross tool
2aeb72e9
DD
11540 echo "$as_me:$LINENO: result: pre-installed" >&5
11541echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11542 fi
11543fi
0b0dc272 11544
2aeb72e9
DD
11545echo "$as_me:$LINENO: checking where to find the target nm" >&5
11546echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11547if test "x${build}" != "x${host}" ; then
e8b05380
PB
11548 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11549 # We already found the complete path
172e41aa 11550 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11551 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11552echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11553 else
11554 # Canadian cross, just use what we found
2aeb72e9
DD
11555 echo "$as_me:$LINENO: result: pre-installed" >&5
11556echo "${ECHO_T}pre-installed" >&6
e8b05380 11557 fi
2abefe3d
PB
11558else
11559 ok=yes
11560 case " ${configdirs} " in
11561 *" binutils "*) ;;
11562 *) ok=no ;;
11563 esac
1c710c3c 11564
2abefe3d
PB
11565 if test $ok = yes; then
11566 # An in-tree tool is available and we can use it
11567 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11568 echo "$as_me:$LINENO: result: just compiled" >&5
11569echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11570 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11571 # We already found the complete path
172e41aa 11572 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11573 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11574echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11575 elif test "x$target" = "x$host"; then
11576 # We can use an host tool
11577 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11578 echo "$as_me:$LINENO: result: host tool" >&5
11579echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11580 else
11581 # We need a cross tool
2aeb72e9
DD
11582 echo "$as_me:$LINENO: result: pre-installed" >&5
11583echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11584 fi
11585fi
0b0dc272 11586
2aeb72e9
DD
11587echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11588echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11589if test "x${build}" != "x${host}" ; then
e8b05380
PB
11590 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11591 # We already found the complete path
172e41aa 11592 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11593 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11594echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11595 else
11596 # Canadian cross, just use what we found
2aeb72e9
DD
11597 echo "$as_me:$LINENO: result: pre-installed" >&5
11598echo "${ECHO_T}pre-installed" >&6
e8b05380 11599 fi
2abefe3d
PB
11600else
11601 ok=yes
11602 case " ${configdirs} " in
11603 *" binutils "*) ;;
11604 *) ok=no ;;
11605 esac
1c710c3c 11606
2abefe3d
PB
11607 if test $ok = yes; then
11608 # An in-tree tool is available and we can use it
11609 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11610 echo "$as_me:$LINENO: result: just compiled" >&5
11611echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11612 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11613 # We already found the complete path
172e41aa 11614 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11615 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11616echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11617 elif test "x$target" = "x$host"; then
11618 # We can use an host tool
11619 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11620 echo "$as_me:$LINENO: result: host tool" >&5
11621echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11622 else
11623 # We need a cross tool
2aeb72e9
DD
11624 echo "$as_me:$LINENO: result: pre-installed" >&5
11625echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11626 fi
11627fi
0b0dc272 11628
2aeb72e9
DD
11629echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11630echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11631if test "x${build}" != "x${host}" ; then
e8b05380
PB
11632 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11633 # We already found the complete path
172e41aa 11634 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11635 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11636echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11637 else
11638 # Canadian cross, just use what we found
2aeb72e9
DD
11639 echo "$as_me:$LINENO: result: pre-installed" >&5
11640echo "${ECHO_T}pre-installed" >&6
e8b05380 11641 fi
2abefe3d
PB
11642else
11643 ok=yes
11644 case " ${configdirs} " in
11645 *" binutils "*) ;;
11646 *) ok=no ;;
11647 esac
1c710c3c 11648
2abefe3d
PB
11649 if test $ok = yes; then
11650 # An in-tree tool is available and we can use it
11651 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11652 echo "$as_me:$LINENO: result: just compiled" >&5
11653echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11654 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11655 # We already found the complete path
172e41aa 11656 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11657 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11658echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11659 elif test "x$target" = "x$host"; then
11660 # We can use an host tool
11661 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11662 echo "$as_me:$LINENO: result: host tool" >&5
11663echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11664 else
11665 # We need a cross tool
2aeb72e9
DD
11666 echo "$as_me:$LINENO: result: pre-installed" >&5
11667echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11668 fi
11669fi
0b0dc272 11670
2aeb72e9
DD
11671echo "$as_me:$LINENO: checking where to find the target strip" >&5
11672echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11673if test "x${build}" != "x${host}" ; then
e8b05380
PB
11674 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11675 # We already found the complete path
172e41aa 11676 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11677 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11678echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11679 else
11680 # Canadian cross, just use what we found
2aeb72e9
DD
11681 echo "$as_me:$LINENO: result: pre-installed" >&5
11682echo "${ECHO_T}pre-installed" >&6
e8b05380 11683 fi
2abefe3d
PB
11684else
11685 ok=yes
11686 case " ${configdirs} " in
11687 *" binutils "*) ;;
11688 *) ok=no ;;
11689 esac
1c710c3c 11690
2abefe3d
PB
11691 if test $ok = yes; then
11692 # An in-tree tool is available and we can use it
11693 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11694 echo "$as_me:$LINENO: result: just compiled" >&5
11695echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11696 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11697 # We already found the complete path
172e41aa 11698 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11699 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11700echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11701 elif test "x$target" = "x$host"; then
11702 # We can use an host tool
11703 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11704 echo "$as_me:$LINENO: result: host tool" >&5
11705echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11706 else
11707 # We need a cross tool
2aeb72e9
DD
11708 echo "$as_me:$LINENO: result: pre-installed" >&5
11709echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11710 fi
11711fi
0b0dc272 11712
2aeb72e9
DD
11713echo "$as_me:$LINENO: checking where to find the target windres" >&5
11714echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11715if test "x${build}" != "x${host}" ; then
e8b05380
PB
11716 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11717 # We already found the complete path
172e41aa 11718 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11719 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11720echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11721 else
11722 # Canadian cross, just use what we found
2aeb72e9
DD
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724echo "${ECHO_T}pre-installed" >&6
e8b05380 11725 fi
2abefe3d
PB
11726else
11727 ok=yes
11728 case " ${configdirs} " in
11729 *" binutils "*) ;;
11730 *) ok=no ;;
11731 esac
1c710c3c 11732
2abefe3d
PB
11733 if test $ok = yes; then
11734 # An in-tree tool is available and we can use it
11735 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11736 echo "$as_me:$LINENO: result: just compiled" >&5
11737echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11738 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11739 # We already found the complete path
172e41aa 11740 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11741 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11742echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11743 elif test "x$target" = "x$host"; then
11744 # We can use an host tool
11745 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11746 echo "$as_me:$LINENO: result: host tool" >&5
11747echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11748 else
11749 # We need a cross tool
2aeb72e9
DD
11750 echo "$as_me:$LINENO: result: pre-installed" >&5
11751echo "${ECHO_T}pre-installed" >&6
2abefe3d 11752 fi
671aa708 11753fi
be912515 11754
901119ae
KT
11755echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11756echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11757if test "x${build}" != "x${host}" ; then
11758 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11759 # We already found the complete path
11760 ac_dir=`dirname $WINDMC_FOR_TARGET`
11761 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11762echo "${ECHO_T}pre-installed in $ac_dir" >&6
11763 else
11764 # Canadian cross, just use what we found
11765 echo "$as_me:$LINENO: result: pre-installed" >&5
11766echo "${ECHO_T}pre-installed" >&6
11767 fi
11768else
11769 ok=yes
11770 case " ${configdirs} " in
11771 *" binutils "*) ;;
11772 *) ok=no ;;
11773 esac
11774
11775 if test $ok = yes; then
11776 # An in-tree tool is available and we can use it
11777 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11778 echo "$as_me:$LINENO: result: just compiled" >&5
11779echo "${ECHO_T}just compiled" >&6
11780 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11781 # We already found the complete path
11782 ac_dir=`dirname $WINDMC_FOR_TARGET`
11783 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11784echo "${ECHO_T}pre-installed in $ac_dir" >&6
11785 elif test "x$target" = "x$host"; then
11786 # We can use an host tool
11787 WINDMC_FOR_TARGET='$(WINDMC)'
11788 echo "$as_me:$LINENO: result: host tool" >&5
11789echo "${ECHO_T}host tool" >&6
11790 else
11791 # We need a cross tool
11792 echo "$as_me:$LINENO: result: pre-installed" >&5
11793echo "${ECHO_T}pre-installed" >&6
11794 fi
11795fi
11796
be912515
NN
11797
11798
2abefe3d 11799
0b0dc272 11800
671aa708
NN
11801# Certain tools may need extra flags.
11802AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11803RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11804NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11805
2abefe3d
PB
11806# When building target libraries, except in a Canadian cross, we use
11807# the same toolchain as the compiler we just built.
11808COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11809COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11810COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11811if test $host = $build; then
11812 case " $configdirs " in
11813 *" gcc "*)
11814 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11815 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11816 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11817 ;;
11818 esac
11819fi
11820
11821
11822
11823
11824
2aeb72e9
DD
11825echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11826echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11827# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11828if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11829 enableval="$enable_maintainer_mode"
11830 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11831else
11832 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11833fi;
11834echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11835echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11836
11837
11838if test "$USE_MAINTAINER_MODE" = yes; then
11839 MAINTAINER_MODE_TRUE=
11840 MAINTAINER_MODE_FALSE='#'
11841else
11842 MAINTAINER_MODE_TRUE='#'
11843 MAINTAINER_MODE_FALSE=
1c710c3c 11844fi
ee03dc5e
AO
11845MAINT=$MAINTAINER_MODE_TRUE
11846
2805b53a
NN
11847# ---------------------
11848# GCC bootstrap support
11849# ---------------------
11850
11851# Stage specific cflags for build.
11852stage1_cflags="-g"
11853case $build in
11854 vax-*-*)
11855 case ${GCC} in
11856 yes) stage1_cflags="-g -Wa,-J" ;;
11857 *) stage1_cflags="-g -J" ;;
11858 esac ;;
2805b53a
NN
11859esac
11860
0b50988a
EB
11861# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11862if test "$GCC" = yes; then
11863 saved_CFLAGS="$CFLAGS"
11864
11865 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11866 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
11867 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11868echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
11869 cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h. */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h. */
11875
9cc1244e
JJ
11876#if (__GNUC__ < 3) \
11877 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11878 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11879#error http://gcc.gnu.org/PR29382
11880#endif
11881
1c710c3c
DJ
11882int
11883main ()
11884{
11885
11886 ;
11887 return 0;
11888}
11889_ACEOF
11890rm -f conftest.$ac_objext
2aeb72e9
DD
11891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
11898 (exit $ac_status); } &&
11899 { ac_try='test -z "$ac_c_werror_flag"
11900 || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest.$ac_objext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 echo "$as_me:$LINENO: result: yes" >&5
11913echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
11914else
11915 echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
2aeb72e9
DD
11918echo "$as_me:$LINENO: result: no" >&5
11919echo "${ECHO_T}no" >&6
1c710c3c 11920fi
2aeb72e9 11921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
11922
11923 CFLAGS="$saved_CFLAGS"
11924fi
11925
11926
2805b53a 11927
8efea775 11928# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 11929# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 11930if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
11931 enableval="$enable_stage1_checking"
11932 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775
PB
11933else
11934 if test "x$enable_checking" = xno; then
11935 stage1_checking=--enable-checking
11936else
11937 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11938fi
2aeb72e9 11939fi;
8efea775
PB
11940
11941
2805b53a 11942# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 11943# Check whether --enable-werror or --disable-werror was given.
2805b53a 11944if test "${enable_werror+set}" = set; then
2aeb72e9
DD
11945 enableval="$enable_werror"
11946
2805b53a 11947else
416cfb5e 11948 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 11949 enable_werror=yes
88fceb68
PB
11950else
11951 enable_werror=no
11952fi
2aeb72e9 11953fi;
09a9c095
NN
11954case ${enable_werror} in
11955 yes) stage2_werror_flag="--enable-werror-always" ;;
11956 *) stage2_werror_flag="" ;;
2805b53a
NN
11957esac
11958
11959
32845532 11960# Flags needed to enable html installing and building
1c710c3c 11961
2aeb72e9 11962# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 11963if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
11964 withval="$with_datarootdir"
11965 datarootdir="\${prefix}/${withval}"
32845532
CD
11966else
11967 datarootdir="\${prefix}/share"
2aeb72e9 11968fi;
32845532
CD
11969
11970
2aeb72e9 11971# Check whether --with-docdir or --without-docdir was given.
32845532 11972if test "${with_docdir+set}" = set; then
2aeb72e9
DD
11973 withval="$with_docdir"
11974 docdir="\${prefix}/${withval}"
32845532
CD
11975else
11976 docdir="\${datarootdir}/doc"
2aeb72e9 11977fi;
32845532
CD
11978
11979
2aeb72e9 11980# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 11981if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
11982 withval="$with_pdfdir"
11983 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
11984else
11985 pdfdir="\${docdir}"
2aeb72e9 11986fi;
9c4d2493
BM
11987
11988
2aeb72e9 11989# Check whether --with-htmldir or --without-htmldir was given.
32845532 11990if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
11991 withval="$with_htmldir"
11992 htmldir="\${prefix}/${withval}"
32845532
CD
11993else
11994 htmldir="\${docdir}"
2aeb72e9 11995fi;
32845532
CD
11996
11997
11998
11999
172e41aa 12000
11a67599 12001
2aeb72e9 12002 ac_config_files="$ac_config_files Makefile"
1c710c3c 12003cat >confcache <<\_ACEOF
671aa708
NN
12004# This file is a shell script that caches the results of configure
12005# tests run on this system so they can be shared between configure
1c710c3c
DJ
12006# scripts and configure runs, see configure's option --config-cache.
12007# It is not useful on other systems. If it contains results you don't
12008# want to keep, you may remove or edit it.
671aa708 12009#
1c710c3c
DJ
12010# config.status only pays attention to the cache file if you give it
12011# the --recheck option to rerun configure.
671aa708 12012#
1c710c3c
DJ
12013# `ac_cv_env_foo' variables (set or unset) will be overridden when
12014# loading this file, other *unset* `ac_cv_foo' will be assigned the
12015# following values.
12016
12017_ACEOF
12018
671aa708
NN
12019# The following way of writing the cache mishandles newlines in values,
12020# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12021# So, don't put newlines in cache variables' values.
671aa708
NN
12022# Ultrix sh set writes to stderr and can't be redirected directly,
12023# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12024{
1c710c3c 12025 (set) 2>&1 |
2aeb72e9
DD
12026 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12027 *ac_space=\ *)
1c710c3c
DJ
12028 # `set' does not quote correctly, so add quotes (double-quote
12029 # substitution turns \\\\ into \\, and sed turns \\ into \).
12030 sed -n \
12031 "s/'/'\\\\''/g;
12032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12033 ;;
1c710c3c
DJ
12034 *)
12035 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12036 sed -n \
12037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12038 ;;
2aeb72e9
DD
12039 esac;
12040} |
1c710c3c
DJ
12041 sed '
12042 t clear
2aeb72e9 12043 : clear
1c710c3c
DJ
12044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12045 t end
2aeb72e9
DD
12046 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12047 : end' >>confcache
12048if diff $cache_file confcache >/dev/null 2>&1; then :; else
12049 if test -w $cache_file; then
12050 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12051 cat confcache >$cache_file
671aa708 12052 else
2aeb72e9 12053 echo "not updating unwritable cache $cache_file"
671aa708 12054 fi
4977bab6 12055fi
671aa708 12056rm -f confcache
79c06341 12057
671aa708
NN
12058test "x$prefix" = xNONE && prefix=$ac_default_prefix
12059# Let make expand exec_prefix.
12060test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12061
2aeb72e9
DD
12062# VPATH may cause trouble with some makes, so we remove $(srcdir),
12063# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12064# trailing colons and then remove the whole line if VPATH becomes empty
12065# (actually we leave an empty line to preserve line numbers).
12066if test "x$srcdir" = x.; then
12067 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12068s/:*\$(srcdir):*/:/;
12069s/:*\${srcdir}:*/:/;
12070s/:*@srcdir@:*/:/;
12071s/^\([^=]*=[ ]*\):*/\1/;
12072s/:*$//;
12073s/^[^=]*=[ ]*$//;
12074}'
12075fi
12076
671aa708
NN
12077# Transform confdefs.h into DEFS.
12078# Protect against shell expansion while executing Makefile rules.
12079# Protect against Makefile macro expansion.
1c710c3c
DJ
12080#
12081# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12082# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12083# look for a macro that doesn't take arguments.
2aeb72e9 12084cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12085t clear
2aeb72e9
DD
12086: clear
12087s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12088t quote
2aeb72e9 12089s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12090t quote
2aeb72e9
DD
12091d
12092: quote
12093s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12094s,\[,\\&,g
12095s,\],\\&,g
12096s,\$,$$,g
12097p
12098_ACEOF
12099# We use echo to avoid assuming a particular line-breaking character.
12100# The extra dot is to prevent the shell from consuming trailing
12101# line-breaks from the sub-command output. A line-break within
12102# single-quotes doesn't work because, if this script is created in a
12103# platform that uses two characters for line-breaks (e.g., DOS), tr
12104# would break.
12105ac_LF_and_DOT=`echo; echo .`
12106DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12107rm -f confdef2opt.sed
1c710c3c
DJ
12108
12109
12110ac_libobjs=
12111ac_ltlibobjs=
12112for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12113 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12114 ac_i=`echo "$ac_i" |
12115 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12116 # 2. Add them.
12117 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12118 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12119done
12120LIBOBJS=$ac_libobjs
fb0103e5 12121
1c710c3c 12122LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12123
af71363e 12124
1c710c3c
DJ
12125
12126: ${CONFIG_STATUS=./config.status}
12127ac_clean_files_save=$ac_clean_files
12128ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12129{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12130echo "$as_me: creating $CONFIG_STATUS" >&6;}
12131cat >$CONFIG_STATUS <<_ACEOF
12132#! $SHELL
12133# Generated by $as_me.
671aa708 12134# Run this file to recreate the current configuration.
671aa708 12135# Compiler output produced by configure, useful for debugging
1c710c3c 12136# configure, is in config.log if it exists.
0b0dc272 12137
1c710c3c
DJ
12138debug=false
12139ac_cs_recheck=false
12140ac_cs_silent=false
12141SHELL=\${CONFIG_SHELL-$SHELL}
12142_ACEOF
12143
12144cat >>$CONFIG_STATUS <<\_ACEOF
12145## --------------------- ##
12146## M4sh Initialization. ##
12147## --------------------- ##
12148
2aeb72e9 12149# Be Bourne compatible
1c710c3c
DJ
12150if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12151 emulate sh
12152 NULLCMD=:
12153 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12154 # is contrary to our usage. Disable this feature.
12155 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12156elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12157 set -o posix
1c710c3c 12158fi
2aeb72e9 12159DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12160
12161# Support unset when possible.
12162if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12163 as_unset=unset
12164else
12165 as_unset=false
12166fi
12167
12168
12169# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12170$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12171PS1='$ '
12172PS2='> '
12173PS4='+ '
12174
12175# NLS nuisances.
12176for as_var in \
12177 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12178 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12179 LC_TELEPHONE LC_TIME
12180do
12181 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12182 eval $as_var=C; export $as_var
12183 else
2aeb72e9 12184 $as_unset $as_var
1c710c3c
DJ
12185 fi
12186done
12187
12188# Required to use basename.
2aeb72e9 12189if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12190 as_expr=expr
12191else
12192 as_expr=false
12193fi
12194
2aeb72e9 12195if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12196 as_basename=basename
12197else
12198 as_basename=false
12199fi
12200
12201
12202# Name of the executable.
2aeb72e9 12203as_me=`$as_basename "$0" ||
1c710c3c
DJ
12204$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12205 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12206 X"$0" : 'X\(/\)$' \| \
12207 . : '\(.\)' 2>/dev/null ||
1c710c3c 12208echo X/"$0" |
2aeb72e9
DD
12209 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12210 /^X\/\(\/\/\)$/{ s//\1/; q; }
12211 /^X\/\(\/\).*/{ s//\1/; q; }
12212 s/.*/./; q'`
1c710c3c 12213
2aeb72e9
DD
12214
12215# PATH needs CR, and LINENO needs CR and PATH.
12216# Avoid depending upon Character Ranges.
12217as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12218as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12219as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12220as_cr_digits='0123456789'
12221as_cr_alnum=$as_cr_Letters$as_cr_digits
12222
12223# The user is always right.
12224if test "${PATH_SEPARATOR+set}" != set; then
12225 echo "#! /bin/sh" >conf$$.sh
12226 echo "exit 0" >>conf$$.sh
12227 chmod +x conf$$.sh
12228 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12229 PATH_SEPARATOR=';'
12230 else
12231 PATH_SEPARATOR=:
12232 fi
12233 rm -f conf$$.sh
12234fi
1c710c3c
DJ
12235
12236
2aeb72e9
DD
12237 as_lineno_1=$LINENO
12238 as_lineno_2=$LINENO
12239 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12240 test "x$as_lineno_1" != "x$as_lineno_2" &&
12241 test "x$as_lineno_3" = "x$as_lineno_2" || {
12242 # Find who we are. Look in the path if we contain no path at all
12243 # relative or not.
12244 case $0 in
12245 *[\\/]* ) as_myself=$0 ;;
12246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247for as_dir in $PATH
12248do
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12252done
1c710c3c 12253
2aeb72e9
DD
12254 ;;
12255 esac
12256 # We did not find ourselves, most probably we were run as `sh COMMAND'
12257 # in which case we are not to be found in the path.
12258 if test "x$as_myself" = x; then
12259 as_myself=$0
12260 fi
12261 if test ! -f "$as_myself"; then
12262 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12263echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12264 { (exit 1); exit 1; }; }
12265 fi
12266 case $CONFIG_SHELL in
12267 '')
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12270do
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for as_base in sh bash ksh sh5; do
12274 case $as_dir in
12275 /*)
12276 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12277 as_lineno_1=$LINENO
12278 as_lineno_2=$LINENO
2aeb72e9 12279 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12280 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12281 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12282 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12283 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12284 CONFIG_SHELL=$as_dir/$as_base
12285 export CONFIG_SHELL
12286 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12287 fi;;
12288 esac
12289 done
12290done
12291;;
12292 esac
1c710c3c
DJ
12293
12294 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12295 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12296 # line-number line before each line; the second 'sed' does the real
12297 # work. The second script uses 'N' to pair each line-number line
12298 # with the numbered line, and appends trailing '-' during
12299 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12300 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12301 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12302 sed '=' <$as_myself |
1c710c3c
DJ
12303 sed '
12304 N
2aeb72e9
DD
12305 s,$,-,
12306 : loop
12307 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12308 t loop
2aeb72e9
DD
12309 s,-$,,
12310 s,^['$as_cr_digits']*\n,,
1c710c3c 12311 ' >$as_me.lineno &&
2aeb72e9
DD
12312 chmod +x $as_me.lineno ||
12313 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12314echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12315 { (exit 1); exit 1; }; }
12316
12317 # Don't try to exec as it changes $[0], causing all sort of problems
12318 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12319 # original and so on. Autoconf is especially sensible to this).
12320 . ./$as_me.lineno
1c710c3c
DJ
12321 # Exit status is that of the last command.
12322 exit
12323}
12324
12325
2aeb72e9
DD
12326case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12327 *c*,-n*) ECHO_N= ECHO_C='
12328' ECHO_T=' ' ;;
12329 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12330 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12331esac
12332
2aeb72e9 12333if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12334 as_expr=expr
12335else
12336 as_expr=false
12337fi
12338
12339rm -f conf$$ conf$$.exe conf$$.file
12340echo >conf$$.file
12341if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12342 # We could just check for DJGPP; but this test a) works b) is more generic
12343 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12344 if test -f conf$$.exe; then
12345 # Don't use ln at all; we don't have any links
1c710c3c 12346 as_ln_s='cp -p'
2aeb72e9
DD
12347 else
12348 as_ln_s='ln -s'
12349 fi
1c710c3c
DJ
12350elif ln conf$$.file conf$$ 2>/dev/null; then
12351 as_ln_s=ln
12352else
12353 as_ln_s='cp -p'
12354fi
2aeb72e9 12355rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12356
12357if mkdir -p . 2>/dev/null; then
12358 as_mkdir_p=:
12359else
12360 test -d ./-p && rmdir ./-p
12361 as_mkdir_p=false
12362fi
12363
2aeb72e9 12364as_executable_p="test -f"
1c710c3c
DJ
12365
12366# Sed expression to map a string onto a valid CPP name.
12367as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12368
12369# Sed expression to map a string onto a valid variable name.
12370as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12371
12372
2aeb72e9
DD
12373# IFS
12374# We need space, tab and new line, in precisely that order.
12375as_nl='
12376'
12377IFS=" $as_nl"
12378
12379# CDPATH.
12380$as_unset CDPATH
12381
1c710c3c
DJ
12382exec 6>&1
12383
2aeb72e9 12384# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12385# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12386# values after options handling. Logging --version etc. is OK.
12387exec 5>>config.log
12388{
12389 echo
12390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12391## Running $as_me. ##
12392_ASBOX
12393} >&5
12394cat >&5 <<_CSEOF
12395
1c710c3c 12396This file was extended by $as_me, which was
2aeb72e9 12397generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12398
12399 CONFIG_FILES = $CONFIG_FILES
12400 CONFIG_HEADERS = $CONFIG_HEADERS
12401 CONFIG_LINKS = $CONFIG_LINKS
12402 CONFIG_COMMANDS = $CONFIG_COMMANDS
12403 $ $0 $@
12404
2aeb72e9
DD
12405_CSEOF
12406echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12407echo >&5
1c710c3c
DJ
12408_ACEOF
12409
12410# Files that config.status was made for.
2aeb72e9
DD
12411if test -n "$ac_config_files"; then
12412 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12413fi
1c710c3c 12414
2aeb72e9
DD
12415if test -n "$ac_config_headers"; then
12416 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12417fi
12418
12419if test -n "$ac_config_links"; then
12420 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12421fi
12422
12423if test -n "$ac_config_commands"; then
12424 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12425fi
1c710c3c
DJ
12426
12427cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12428
1c710c3c
DJ
12429ac_cs_usage="\
12430\`$as_me' instantiates files from templates according to the
12431current configuration.
12432
12433Usage: $0 [OPTIONS] [FILE]...
12434
12435 -h, --help print this help, then exit
2aeb72e9 12436 -V, --version print version number, then exit
1c710c3c
DJ
12437 -q, --quiet do not print progress messages
12438 -d, --debug don't remove temporary files
12439 --recheck update $as_me by reconfiguring in the same conditions
12440 --file=FILE[:TEMPLATE]
12441 instantiate the configuration file FILE
12442
12443Configuration files:
12444$config_files
12445
12446Report bugs to <bug-autoconf@gnu.org>."
11a67599 12447_ACEOF
2aeb72e9 12448
1c710c3c
DJ
12449cat >>$CONFIG_STATUS <<_ACEOF
12450ac_cs_version="\\
12451config.status
2aeb72e9
DD
12452configured by $0, generated by GNU Autoconf 2.59,
12453 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12454
2aeb72e9 12455Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12456This config.status script is free software; the Free Software Foundation
12457gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12458srcdir=$srcdir
12459INSTALL="$INSTALL"
1c710c3c
DJ
12460_ACEOF
12461
12462cat >>$CONFIG_STATUS <<\_ACEOF
12463# If no file are specified by the user, then we need to provide default
12464# value. By we need to know if files were specified by the user.
12465ac_need_defaults=:
12466while test $# != 0
a4b9e93e 12467do
1c710c3c
DJ
12468 case $1 in
12469 --*=*)
2aeb72e9
DD
12470 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12471 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12472 ac_shift=:
12473 ;;
2aeb72e9 12474 -*)
1c710c3c
DJ
12475 ac_option=$1
12476 ac_optarg=$2
12477 ac_shift=shift
12478 ;;
2aeb72e9
DD
12479 *) # This is not an option, so the user has probably given explicit
12480 # arguments.
12481 ac_option=$1
12482 ac_need_defaults=false;;
1c710c3c
DJ
12483 esac
12484
12485 case $ac_option in
12486 # Handling of the options.
2aeb72e9
DD
12487_ACEOF
12488cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12490 ac_cs_recheck=: ;;
2aeb72e9
DD
12491 --version | --vers* | -V )
12492 echo "$ac_cs_version"; exit 0 ;;
12493 --he | --h)
12494 # Conflict between --help and --header
12495 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12496Try \`$0 --help' for more information." >&5
12497echo "$as_me: error: ambiguous option: $1
12498Try \`$0 --help' for more information." >&2;}
12499 { (exit 1); exit 1; }; };;
12500 --help | --hel | -h )
12501 echo "$ac_cs_usage"; exit 0 ;;
12502 --debug | --d* | -d )
1c710c3c
DJ
12503 debug=: ;;
12504 --file | --fil | --fi | --f )
12505 $ac_shift
12506 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12507 ac_need_defaults=false;;
2aeb72e9
DD
12508 --header | --heade | --head | --hea )
12509 $ac_shift
12510 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12511 ac_need_defaults=false;;
1c710c3c
DJ
12512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12514 ac_cs_silent=: ;;
12515
12516 # This is an error.
2aeb72e9
DD
12517 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12518Try \`$0 --help' for more information." >&5
12519echo "$as_me: error: unrecognized option: $1
12520Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12521 { (exit 1); exit 1; }; } ;;
12522
2aeb72e9 12523 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12524
0b0dc272 12525 esac
1c710c3c 12526 shift
0b0dc272
AM
12527done
12528
1c710c3c 12529ac_configure_extra_args=
0b0dc272 12530
1c710c3c
DJ
12531if $ac_cs_silent; then
12532 exec 6>/dev/null
12533 ac_configure_extra_args="$ac_configure_extra_args --silent"
12534fi
0b0dc272 12535
1c710c3c
DJ
12536_ACEOF
12537cat >>$CONFIG_STATUS <<_ACEOF
12538if \$ac_cs_recheck; then
2aeb72e9
DD
12539 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12540 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12541fi
12542
12543_ACEOF
12544
1c710c3c 12545
11a67599 12546
2aeb72e9
DD
12547
12548
12549cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12550for ac_config_target in $ac_config_targets
12551do
2aeb72e9
DD
12552 case "$ac_config_target" in
12553 # Handling of arguments.
12554 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12555 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12556echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12557 { (exit 1); exit 1; }; };;
12558 esac
12559done
12560
12561# If the user did not use the arguments to specify the items to instantiate,
12562# then the envvar interface is used. Set only those that are not.
12563# We use the long form for the default assignment because of an extremely
12564# bizarre bug on SunOS 4.1.3.
12565if $ac_need_defaults; then
12566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12567fi
12568
12569# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12570# simply because there is no reason to put it here, and in addition,
1c710c3c 12571# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12572# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12573$debug ||
12574{
2aeb72e9 12575 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12576 trap '{ (exit 1); exit 1; }' 1 2 13 15
12577}
2aeb72e9 12578
1c710c3c
DJ
12579# Create a (secure) tmp directory for tmp files.
12580
12581{
2aeb72e9 12582 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12583 test -n "$tmp" && test -d "$tmp"
12584} ||
12585{
2aeb72e9
DD
12586 tmp=./confstat$$-$RANDOM
12587 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12588} ||
12589{
12590 echo "$me: cannot create a temporary directory in ." >&2
12591 { (exit 1); exit 1; }
12592}
12593
2aeb72e9
DD
12594_ACEOF
12595
12596cat >>$CONFIG_STATUS <<_ACEOF
12597
1c710c3c 12598#
2aeb72e9 12599# CONFIG_FILES section.
1c710c3c
DJ
12600#
12601
12602# No need to generate the scripts if there are no CONFIG_FILES.
12603# This happens for instance when ./config.status config.h
2aeb72e9
DD
12604if test -n "\$CONFIG_FILES"; then
12605 # Protect against being on the right side of a sed subst in config.status.
12606 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12607 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12608s,@SHELL@,$SHELL,;t t
12609s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12610s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12611s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12612s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12613s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12614s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12615s,@exec_prefix@,$exec_prefix,;t t
12616s,@prefix@,$prefix,;t t
12617s,@program_transform_name@,$program_transform_name,;t t
12618s,@bindir@,$bindir,;t t
12619s,@sbindir@,$sbindir,;t t
12620s,@libexecdir@,$libexecdir,;t t
12621s,@datadir@,$datadir,;t t
12622s,@sysconfdir@,$sysconfdir,;t t
12623s,@sharedstatedir@,$sharedstatedir,;t t
12624s,@localstatedir@,$localstatedir,;t t
12625s,@libdir@,$libdir,;t t
12626s,@includedir@,$includedir,;t t
12627s,@oldincludedir@,$oldincludedir,;t t
12628s,@infodir@,$infodir,;t t
12629s,@mandir@,$mandir,;t t
12630s,@build_alias@,$build_alias,;t t
12631s,@host_alias@,$host_alias,;t t
12632s,@target_alias@,$target_alias,;t t
12633s,@DEFS@,$DEFS,;t t
12634s,@ECHO_C@,$ECHO_C,;t t
12635s,@ECHO_N@,$ECHO_N,;t t
12636s,@ECHO_T@,$ECHO_T,;t t
12637s,@LIBS@,$LIBS,;t t
12638s,@build@,$build,;t t
12639s,@build_cpu@,$build_cpu,;t t
12640s,@build_vendor@,$build_vendor,;t t
12641s,@build_os@,$build_os,;t t
12642s,@build_noncanonical@,$build_noncanonical,;t t
12643s,@host_noncanonical@,$host_noncanonical,;t t
12644s,@target_noncanonical@,$target_noncanonical,;t t
12645s,@host@,$host,;t t
12646s,@host_cpu@,$host_cpu,;t t
12647s,@host_vendor@,$host_vendor,;t t
12648s,@host_os@,$host_os,;t t
12649s,@target@,$target,;t t
12650s,@target_cpu@,$target_cpu,;t t
12651s,@target_vendor@,$target_vendor,;t t
12652s,@target_os@,$target_os,;t t
12653s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12654s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12655s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12656s,@LN@,$LN,;t t
12657s,@LN_S@,$LN_S,;t t
12658s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12659s,@build_libsubdir@,$build_libsubdir,;t t
12660s,@build_subdir@,$build_subdir,;t t
12661s,@host_subdir@,$host_subdir,;t t
12662s,@target_subdir@,$target_subdir,;t t
12663s,@CC@,$CC,;t t
12664s,@CFLAGS@,$CFLAGS,;t t
12665s,@LDFLAGS@,$LDFLAGS,;t t
12666s,@CPPFLAGS@,$CPPFLAGS,;t t
12667s,@ac_ct_CC@,$ac_ct_CC,;t t
12668s,@EXEEXT@,$EXEEXT,;t t
12669s,@OBJEXT@,$OBJEXT,;t t
12670s,@CXX@,$CXX,;t t
12671s,@CXXFLAGS@,$CXXFLAGS,;t t
12672s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12673s,@GNATBIND@,$GNATBIND,;t t
12674s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12675s,@GNATMAKE@,$GNATMAKE,;t t
12676s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12677s,@do_compare@,$do_compare,;t t
12678s,@gmplibs@,$gmplibs,;t t
12679s,@gmpinc@,$gmpinc,;t t
12680s,@stage1_languages@,$stage1_languages,;t t
12681s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12682s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12683s,@tooldir@,$tooldir,;t t
12684s,@build_tooldir@,$build_tooldir,;t t
12685s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12686s,@GDB_TK@,$GDB_TK,;t t
12687s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12688s,@build_configargs@,$build_configargs,;t t
12689s,@build_configdirs@,$build_configdirs,;t t
12690s,@host_configargs@,$host_configargs,;t t
12691s,@configdirs@,$configdirs,;t t
12692s,@target_configargs@,$target_configargs,;t t
12693s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12694s,@config_shell@,$config_shell,;t t
12695s,@YACC@,$YACC,;t t
12696s,@BISON@,$BISON,;t t
12697s,@M4@,$M4,;t t
12698s,@LEX@,$LEX,;t t
12699s,@FLEX@,$FLEX,;t t
12700s,@MAKEINFO@,$MAKEINFO,;t t
12701s,@EXPECT@,$EXPECT,;t t
12702s,@RUNTEST@,$RUNTEST,;t t
12703s,@AR@,$AR,;t t
12704s,@AS@,$AS,;t t
12705s,@DLLTOOL@,$DLLTOOL,;t t
12706s,@LD@,$LD,;t t
12707s,@LIPO@,$LIPO,;t t
12708s,@NM@,$NM,;t t
12709s,@RANLIB@,$RANLIB,;t t
12710s,@STRIP@,$STRIP,;t t
12711s,@WINDRES@,$WINDRES,;t t
901119ae 12712s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12713s,@OBJCOPY@,$OBJCOPY,;t t
12714s,@OBJDUMP@,$OBJDUMP,;t t
12715s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12716s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12717s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12718s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12719s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12720s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12721s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12722s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12723s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12724s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12725s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12726s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12727s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12728s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12729s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12730s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12731s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12732s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12733s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12734s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12735s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12736s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12737s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12738s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12739s,@MAINT@,$MAINT,;t t
12740s,@stage1_cflags@,$stage1_cflags,;t t
12741s,@stage1_checking@,$stage1_checking,;t t
12742s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12743s,@datarootdir@,$datarootdir,;t t
12744s,@docdir@,$docdir,;t t
12745s,@pdfdir@,$pdfdir,;t t
12746s,@htmldir@,$htmldir,;t t
12747s,@LIBOBJS@,$LIBOBJS,;t t
12748s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12749/@serialization_dependencies@/r $serialization_dependencies
12750s,@serialization_dependencies@,,;t t
12751/@host_makefile_frag@/r $host_makefile_frag
12752s,@host_makefile_frag@,,;t t
12753/@target_makefile_frag@/r $target_makefile_frag
12754s,@target_makefile_frag@,,;t t
12755/@alphaieee_frag@/r $alphaieee_frag
12756s,@alphaieee_frag@,,;t t
12757/@ospace_frag@/r $ospace_frag
12758s,@ospace_frag@,,;t t
12759CEOF
79c06341 12760
1c710c3c
DJ
12761_ACEOF
12762
2aeb72e9
DD
12763 cat >>$CONFIG_STATUS <<\_ACEOF
12764 # Split the substitutions into bite-sized pieces for seds with
12765 # small command number limits, like on Digital OSF/1 and HP-UX.
12766 ac_max_sed_lines=48
12767 ac_sed_frag=1 # Number of current file.
12768 ac_beg=1 # First line for current file.
12769 ac_end=$ac_max_sed_lines # Line after last line for current file.
12770 ac_more_lines=:
12771 ac_sed_cmds=
12772 while $ac_more_lines; do
12773 if test $ac_beg -gt 1; then
12774 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12775 else
12776 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12777 fi
12778 if test ! -s $tmp/subs.frag; then
12779 ac_more_lines=false
12780 else
12781 # The purpose of the label and of the branching condition is to
12782 # speed up the sed processing (if there are no `@' at all, there
12783 # is no need to browse any of the substitutions).
12784 # These are the two extra sed commands mentioned above.
12785 (echo ':t
12786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12787 if test -z "$ac_sed_cmds"; then
12788 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12789 else
12790 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12791 fi
12792 ac_sed_frag=`expr $ac_sed_frag + 1`
12793 ac_beg=$ac_end
12794 ac_end=`expr $ac_end + $ac_max_sed_lines`
12795 fi
12796 done
12797 if test -z "$ac_sed_cmds"; then
12798 ac_sed_cmds=cat
11a67599 12799 fi
2aeb72e9 12800fi # test -n "$CONFIG_FILES"
11a67599 12801
11a67599 12802_ACEOF
1c710c3c 12803cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12804for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12806 case $ac_file in
12807 - | *:- | *:-:* ) # input from stdin
12808 cat >$tmp/stdin
12809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12813 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12814 esac
12815
2aeb72e9
DD
12816 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12819 X"$ac_file" : 'X\(//\)[^/]' \| \
12820 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12821 X"$ac_file" : 'X\(/\)' \| \
12822 . : '\(.\)' 2>/dev/null ||
1c710c3c 12823echo X"$ac_file" |
2aeb72e9
DD
12824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12826 /^X\(\/\/\)$/{ s//\1/; q; }
12827 /^X\(\/\).*/{ s//\1/; q; }
12828 s/.*/./; q'`
12829 { if $as_mkdir_p; then
12830 mkdir -p "$ac_dir"
12831 else
12832 as_dir="$ac_dir"
1c710c3c 12833 as_dirs=
2aeb72e9
DD
12834 while test ! -d "$as_dir"; do
12835 as_dirs="$as_dir $as_dirs"
12836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12838 X"$as_dir" : 'X\(//\)[^/]' \| \
12839 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12840 X"$as_dir" : 'X\(/\)' \| \
12841 . : '\(.\)' 2>/dev/null ||
1c710c3c 12842echo X"$as_dir" |
2aeb72e9
DD
12843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12845 /^X\(\/\/\)$/{ s//\1/; q; }
12846 /^X\(\/\).*/{ s//\1/; q; }
12847 s/.*/./; q'`
1c710c3c 12848 done
2aeb72e9
DD
12849 test ! -n "$as_dirs" || mkdir $as_dirs
12850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12851echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 12852 { (exit 1); exit 1; }; }; }
2aeb72e9 12853
1c710c3c 12854 ac_builddir=.
0b0dc272 12855
2aeb72e9 12856if test "$ac_dir" != .; then
1c710c3c 12857 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
12858 # A "../" for each directory in $ac_dir_suffix.
12859 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12860else
12861 ac_dir_suffix= ac_top_builddir=
12862fi
1c710c3c
DJ
12863
12864case $srcdir in
2aeb72e9 12865 .) # No --srcdir option. We are building in place.
1c710c3c 12866 ac_srcdir=.
2aeb72e9
DD
12867 if test -z "$ac_top_builddir"; then
12868 ac_top_srcdir=.
12869 else
12870 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12871 fi ;;
12872 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 12873 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
12874 ac_top_srcdir=$srcdir ;;
12875 *) # Relative path.
12876 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12877 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 12878esac
a4b9e93e 12879
2aeb72e9
DD
12880# Do not use `cd foo && pwd` to compute absolute paths, because
12881# the directories may not exist.
12882case `pwd` in
12883.) ac_abs_builddir="$ac_dir";;
12884*)
12885 case "$ac_dir" in
12886 .) ac_abs_builddir=`pwd`;;
12887 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12888 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12889 esac;;
12890esac
12891case $ac_abs_builddir in
12892.) ac_abs_top_builddir=${ac_top_builddir}.;;
12893*)
12894 case ${ac_top_builddir}. in
12895 .) ac_abs_top_builddir=$ac_abs_builddir;;
12896 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12897 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12898 esac;;
12899esac
12900case $ac_abs_builddir in
12901.) ac_abs_srcdir=$ac_srcdir;;
12902*)
12903 case $ac_srcdir in
12904 .) ac_abs_srcdir=$ac_abs_builddir;;
12905 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12906 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12907 esac;;
12908esac
12909case $ac_abs_builddir in
12910.) ac_abs_top_srcdir=$ac_top_srcdir;;
12911*)
12912 case $ac_top_srcdir in
12913 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12914 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12915 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12916 esac;;
12917esac
0b0dc272 12918
1c710c3c
DJ
12919
12920 case $INSTALL in
12921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 12922 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 12923 esac
11a67599 12924
2aeb72e9
DD
12925 if test x"$ac_file" != x-; then
12926 { echo "$as_me:$LINENO: creating $ac_file" >&5
12927echo "$as_me: creating $ac_file" >&6;}
12928 rm -f "$ac_file"
12929 fi
12930 # Let's still pretend it is `configure' which instantiates (i.e., don't
12931 # use $as_me), people would be surprised to read:
12932 # /* config.h. Generated by config.status. */
12933 if test x"$ac_file" = x-; then
12934 configure_input=
12935 else
12936 configure_input="$ac_file. "
12937 fi
12938 configure_input=$configure_input"Generated from `echo $ac_file_in |
12939 sed 's,.*/,,'` by configure."
12940
12941 # First look for the input files in the build tree, otherwise in the
12942 # src tree.
12943 ac_file_inputs=`IFS=:
12944 for f in $ac_file_in; do
12945 case $f in
12946 -) echo $tmp/stdin ;;
12947 [\\/$]*)
12948 # Absolute (can't be DOS-style, as IFS=:)
12949 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12950echo "$as_me: error: cannot find input file: $f" >&2;}
12951 { (exit 1); exit 1; }; }
12952 echo "$f";;
12953 *) # Relative
12954 if test -f "$f"; then
12955 # Build tree
12956 echo "$f"
12957 elif test -f "$srcdir/$f"; then
12958 # Source tree
12959 echo "$srcdir/$f"
12960 else
12961 # /dev/null tree
12962 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12963echo "$as_me: error: cannot find input file: $f" >&2;}
12964 { (exit 1); exit 1; }; }
12965 fi;;
12966 esac
12967 done` || { (exit 1); exit 1; }
11a67599 12968_ACEOF
1c710c3c
DJ
12969cat >>$CONFIG_STATUS <<_ACEOF
12970 sed "$ac_vpsub
12971$extrasub
12972_ACEOF
12973cat >>$CONFIG_STATUS <<\_ACEOF
12974:t
12975/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
12976s,@configure_input@,$configure_input,;t t
12977s,@srcdir@,$ac_srcdir,;t t
12978s,@abs_srcdir@,$ac_abs_srcdir,;t t
12979s,@top_srcdir@,$ac_top_srcdir,;t t
12980s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12981s,@builddir@,$ac_builddir,;t t
12982s,@abs_builddir@,$ac_abs_builddir,;t t
12983s,@top_builddir@,$ac_top_builddir,;t t
12984s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12985s,@INSTALL@,$ac_INSTALL,;t t
12986" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12987 rm -f $tmp/stdin
12988 if test x"$ac_file" != x-; then
12989 mv $tmp/out $ac_file
12990 else
12991 cat $tmp/out
12992 rm -f $tmp/out
12993 fi
11a67599 12994
2aeb72e9
DD
12995done
12996_ACEOF
11a67599 12997
2aeb72e9 12998cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 12999
1c710c3c
DJ
13000{ (exit 0); exit 0; }
13001_ACEOF
671aa708 13002chmod +x $CONFIG_STATUS
1c710c3c
DJ
13003ac_clean_files=$ac_clean_files_save
13004
13005
13006# configure is writing to config.log, and then calls config.status.
13007# config.status does its own redirection, appending to config.log.
13008# Unfortunately, on DOS this fails, as config.log is still kept open
13009# by configure, so config.status won't be able to write to it; its
13010# output is simply discarded. So we exec the FD to /dev/null,
13011# effectively closing config.log, so it can be properly (re)opened and
13012# appended to by config.status. When coming back to configure, we
13013# need to make the FD available again.
13014if test "$no_create" != yes; then
13015 ac_cs_success=:
13016 ac_config_status_args=
13017 test "$silent" = yes &&
13018 ac_config_status_args="$ac_config_status_args --quiet"
13019 exec 5>/dev/null
13020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13021 exec 5>>config.log
13022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13023 # would make configure fail if this is the last instruction.
13024 $ac_cs_success || { (exit 1); exit 1; }
13025fi
79c06341 13026
This page took 2.804578 seconds and 5 git commands to generate.