]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR c++/38636 (ICE with broken ctor declaration)
[thirdparty/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"
487e299b 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
18c04407 277ac_pwd=`pwd`
671aa708
NN
278
279# Initialize some variables set by options.
1c710c3c
DJ
280ac_init_help=
281ac_init_version=false
671aa708
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
1c710c3c 284cache_file=/dev/null
671aa708 285exec_prefix=NONE
671aa708 286no_create=
671aa708
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
671aa708
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
1c710c3c
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
2aeb72e9 307datadir='${prefix}/share'
671aa708
NN
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
2aeb72e9 311libdir='${exec_prefix}/lib'
671aa708
NN
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
2aeb72e9
DD
314infodir='${prefix}/info'
315mandir='${prefix}/man'
79c06341 316
671aa708
NN
317ac_prev=
318for ac_option
319do
671aa708
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
2aeb72e9 322 eval "$ac_prev=\$ac_option"
671aa708
NN
323 ac_prev=
324 continue
325 fi
79c06341 326
2aeb72e9 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
2aeb72e9 331 case $ac_option in
671aa708
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 336 bindir=$ac_optarg ;;
671aa708
NN
337
338 -build | --build | --buil | --bui | --bu)
1c710c3c 339 ac_prev=build_alias ;;
671aa708 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 341 build_alias=$ac_optarg ;;
671aa708
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
671aa708 352
2aeb72e9 353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 354 ac_prev=datadir ;;
2aeb72e9
DD
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
1c710c3c 357 datadir=$ac_optarg ;;
671aa708
NN
358
359 -disable-* | --disable-*)
1c710c3c 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 361 # Reject names that are not valid shell variable names.
2aeb72e9 362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
2aeb72e9
DD
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
671aa708
NN
367
368 -enable-* | --enable-*)
1c710c3c 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 370 # Reject names that are not valid shell variable names.
2aeb72e9 371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
2aeb72e9
DD
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
1c710c3c 388 exec_prefix=$ac_optarg ;;
671aa708
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
1c710c3c
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
671aa708
NN
400
401 -host | --host | --hos | --ho)
1c710c3c 402 ac_prev=host_alias ;;
671aa708 403 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 404 host_alias=$ac_optarg ;;
671aa708
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 411 includedir=$ac_optarg ;;
671aa708
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 416 infodir=$ac_optarg ;;
671aa708
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 421 libdir=$ac_optarg ;;
671aa708
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
1c710c3c 428 libexecdir=$ac_optarg ;;
671aa708
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 437 localstatedir=$ac_optarg ;;
671aa708
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 442 mandir=$ac_optarg ;;
671aa708
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 449 | --no-cr | --no-c | -n)
671aa708
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 463 oldincludedir=$ac_optarg ;;
671aa708
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 468 prefix=$ac_optarg ;;
671aa708
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 475 program_prefix=$ac_optarg ;;
671aa708
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 482 program_suffix=$ac_optarg ;;
671aa708
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 499 program_transform_name=$ac_optarg ;;
671aa708
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
1c710c3c 509 sbindir=$ac_optarg ;;
671aa708
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
1c710c3c 520 sharedstatedir=$ac_optarg ;;
671aa708
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
1c710c3c 525 site=$ac_optarg ;;
671aa708
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 530 srcdir=$ac_optarg ;;
671aa708
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 537 sysconfdir=$ac_optarg ;;
671aa708
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 540 ac_prev=target_alias ;;
671aa708 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 542 target_alias=$ac_optarg ;;
671aa708
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
1c710c3c
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
671aa708
NN
549
550 -with-* | --with-*)
1c710c3c 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 552 # Reject names that are not valid shell variable names.
2aeb72e9 553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
2aeb72e9
DD
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
562
563 -without-* | --without-*)
1c710c3c 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 565 # Reject names that are not valid shell variable names.
2aeb72e9 566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
2aeb72e9
DD
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
671aa708
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 581 x_includes=$ac_optarg ;;
671aa708
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 588 x_libraries=$ac_optarg ;;
671aa708 589
1c710c3c
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
671aa708
NN
593 ;;
594
1c710c3c
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
2aeb72e9
DD
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
603 export $ac_envvar ;;
604
671aa708 605 *)
1c710c3c
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
1c710c3c
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
af71363e 620fi
af71363e 621
2aeb72e9
DD
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
671aa708 624do
2aeb72e9 625 eval ac_val=$`echo $ac_var`
1c710c3c 626 case $ac_val in
2aeb72e9
DD
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
671aa708
NN
642 esac
643done
644
1c710c3c
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
0b0dc272 651
1c710c3c
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
671aa708 667
671aa708
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
2aeb72e9
DD
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
1c710c3c 679echo X"$0" |
2aeb72e9
DD
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
671aa708 685 srcdir=$ac_confdir
2aeb72e9 686 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
2aeb72e9
DD
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 698 { (exit 1); exit 1; }; }
2aeb72e9 699 fi
1c710c3c 700fi
2aeb72e9
DD
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 703 { (exit 1); exit 1; }; }
2aeb72e9
DD
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
ac9e6043
RW
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
2aeb72e9
DD
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
2aeb72e9
DD
883_ACEOF
884
885 cat <<_ACEOF
1c710c3c
DJ
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 935 --enable-gold use gold instead of ld
30b74385
RW
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
d789184e
SP
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
30b74385 940 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 941 stage1. Mostly useful for compiler development.
30b74385
RW
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
1c710c3c 947 sub-packages for the host, target or build
30b74385 948 machine, or all sub-packages
1c710c3c
DJ
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
30b74385
RW
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
1c710c3c
DJ
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
30b74385
RW
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
30b74385
RW
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
f8bf9252
SP
972 --with-ppl=PATH Specify prefix directory for the installed PPL package
973 Equivalent to --with-ppl-include=PATH/include
974 plus --with-ppl-lib=PATH/lib
975 --with-ppl-include=PATH Specify directory for installed PPL include files
976 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 977 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
978 Equivalent to --with-cloog-include=PATH/include
979 plus --with-cloog-lib=PATH/lib
d789184e
SP
980 --with-cloog-include=PATH Specify directory for installed CLooG include files
981 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 982 --with-build-sysroot=SYSROOT
1c710c3c 983 use sysroot as the system root during the build
c8aea42c
PB
984 --with-debug-prefix-map='A=B C=D ...'
985 map A to B, C to D ... in debug information
30b74385 986 --with-build-time-tools=PATH
1c710c3c 987 use given path to find target tools during the build
30b74385
RW
988 --with-datarootdir use datarootdir as the data root directory.
989 --with-docdir install documentation in this directory.
990 --with-pdfdir install pdf in this directory.
991 --with-htmldir install html in this directory.
1c710c3c
DJ
992
993Some influential environment variables:
994 CC C compiler command
995 CFLAGS C compiler flags
996 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
997 nonstandard directory <lib dir>
2aeb72e9
DD
998 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
999 headers in a nonstandard directory <include dir>
c3a86da9
DJ
1000 CXX C++ compiler command
1001 CXXFLAGS C++ compiler flags
278a7a38
AO
1002 AR AR for the host
1003 AS AS for the host
1004 DLLTOOL DLLTOOL for the host
1005 LD LD for the host
1006 LIPO LIPO for the host
1007 NM NM for the host
1008 RANLIB RANLIB for the host
1009 STRIP STRIP for the host
1010 WINDRES WINDRES for the host
901119ae 1011 WINDMC WINDMC for the host
278a7a38
AO
1012 OBJCOPY OBJCOPY for the host
1013 OBJDUMP OBJDUMP for the host
1014 CC_FOR_TARGET
1015 CC for the target
1016 CXX_FOR_TARGET
1017 CXX for the target
1018 GCC_FOR_TARGET
1019 GCC for the target
1020 GCJ_FOR_TARGET
1021 GCJ for the target
1022 GFORTRAN_FOR_TARGET
1023 GFORTRAN for the target
1024 AR_FOR_TARGET
1025 AR for the target
1026 AS_FOR_TARGET
1027 AS for the target
1028 DLLTOOL_FOR_TARGET
1029 DLLTOOL for the target
1030 LD_FOR_TARGET
1031 LD for the target
1032 LIPO_FOR_TARGET
1033 LIPO for the target
1034 NM_FOR_TARGET
1035 NM for the target
1036 OBJDUMP_FOR_TARGET
1037 OBJDUMP for the target
1038 RANLIB_FOR_TARGET
1039 RANLIB for the target
1040 STRIP_FOR_TARGET
1041 STRIP for the target
1042 WINDRES_FOR_TARGET
1043 WINDRES for the target
901119ae
KT
1044 WINDMC_FOR_TARGET
1045 WINDMC for the target
1c710c3c
DJ
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
2aeb72e9 1055 ac_popdir=`pwd`
1c710c3c 1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1057 test -d $ac_dir || continue
1c710c3c
DJ
1058 ac_builddir=.
1059
2aeb72e9 1060if test "$ac_dir" != .; then
1c710c3c 1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1c710c3c
DJ
1067
1068case $srcdir in
2aeb72e9 1069 .) # No --srcdir option. We are building in place.
1c710c3c 1070 ac_srcdir=.
2aeb72e9
DD
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1077 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082esac
1083
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1c710c3c 1121esac
2aeb72e9
DD
1122
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1c710c3c
DJ
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1137 fi
1138 cd $ac_popdir
1c710c3c
DJ
1139 done
1140fi
1141
2aeb72e9 1142test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1143if $ac_init_version; then
1144 cat <<\_ACEOF
1145
2aeb72e9 1146Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1147This configure script is free software; the Free Software Foundation
1148gives unlimited permission to copy, distribute and modify it.
1149_ACEOF
2aeb72e9 1150 exit 0
0b0dc272 1151fi
2aeb72e9
DD
1152exec 5>config.log
1153cat >&5 <<_ACEOF
1c710c3c
DJ
1154This file contains any messages produced by compilers while
1155running configure, to aid debugging if configure makes a mistake.
1156
1157It was created by $as_me, which was
2aeb72e9 1158generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1159
1160 $ $0 $@
1161
1162_ACEOF
1163{
1164cat <<_ASUNAME
1165## --------- ##
1166## Platform. ##
1167## --------- ##
1168
1169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177
1178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1181hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185
1186_ASUNAME
1187
1188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189for as_dir in $PATH
1190do
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194done
1195
1196} >&5
1197
1198cat >&5 <<_ACEOF
1199
1200
1201## ----------- ##
1202## Core tests. ##
1203## ----------- ##
1204
1205_ACEOF
1206
1207
1208# Keep a trace of the command line.
1209# Strip out --no-create and --no-recursion so they do not pile up.
1210# Strip out --silent because we don't want to record it for future runs.
1211# Also quote any args containing shell meta-characters.
1212# Make two passes to allow for proper duplicate-argument suppression.
1213ac_configure_args=
1214ac_configure_args0=
1215ac_configure_args1=
2aeb72e9 1216ac_sep=
1c710c3c
DJ
1217ac_must_keep_next=false
1218for ac_pass in 1 2
1219do
1220 for ac_arg
1221 do
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
2aeb72e9 1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232 2)
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1236 else
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1245 ;;
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1248 fi
2aeb72e9
DD
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1c710c3c
DJ
1252 ;;
1253 esac
1254 done
1255done
1256$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259# When interrupted or exit'd, cleanup temporary files, and complete
1260# config.log. We remove comments because anyway the quotes in there
1261# would cause problems or look ugly.
2aeb72e9
DD
1262# WARNING: Be sure not to use single quotes in there, as some shells,
1263# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1264trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1266 {
1267 echo
1268
1269 cat <<\_ASBOX
1270## ---------------- ##
1271## Cache variables. ##
1272## ---------------- ##
1273_ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1276{
1c710c3c 1277 (set) 2>&1 |
2aeb72e9
DD
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1c710c3c 1280 sed -n \
2aeb72e9
DD
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 ;;
1c710c3c 1284 *)
2aeb72e9
DD
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1287 ;;
2aeb72e9
DD
1288 esac;
1289}
1c710c3c
DJ
1290 echo
1291
1292 cat <<\_ASBOX
1293## ----------------- ##
1294## Output variables. ##
1295## ----------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1299 do
2aeb72e9
DD
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1302 done | sort
1303 echo
1304
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
2aeb72e9
DD
1307## ------------- ##
1308## Output files. ##
1309## ------------- ##
1c710c3c
DJ
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1313 do
2aeb72e9
DD
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1316 done | sort
1317 echo
1318 fi
1319
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322## ----------- ##
1323## confdefs.h. ##
1324## ----------- ##
1325_ASBOX
1326 echo
2aeb72e9 1327 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1328 echo
1329 fi
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
2aeb72e9
DD
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1336 exit $exit_status
2aeb72e9 1337 ' 0
1c710c3c
DJ
1338for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340done
1341ac_signal=0
1342
1343# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1344rm -rf conftest* confdefs.h
1345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346echo >confdefs.h
1c710c3c
DJ
1347
1348# Predefined preprocessor variables.
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_NAME "$PACKAGE_NAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362_ACEOF
0b0dc272 1363
1c710c3c
DJ
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_STRING "$PACKAGE_STRING"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372_ACEOF
1373
1374
1375# Let the site file select an alternate cache file if it wants to.
671aa708 1376# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1377if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 fi
671aa708 1383fi
2aeb72e9 1384for ac_site_file in $CONFIG_SITE; do
671aa708 1385 if test -r "$ac_site_file"; then
1c710c3c
DJ
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1389 . "$ac_site_file"
1390 fi
1391done
1392
1393if test -r "$cache_file"; then
1c710c3c
DJ
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
2aeb72e9
DD
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1c710c3c
DJ
1402 esac
1403 fi
671aa708 1404else
1c710c3c
DJ
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1408fi
1409
1410# Check that the precious variables saved in the cache have kept the same
1411# value.
1412ac_cache_corrupted=false
2aeb72e9
DD
1413for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1429 *)
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
7142fb32
PB
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1c710c3c 1436echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
7142fb32
PB
1437 ac_cache_corrupted=:
1438 else
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1442 fi
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
2aeb72e9
DD
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
18c04407
RW
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
671aa708
NN
1470fi
1471
2aeb72e9
DD
1472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477
1c710c3c
DJ
1478
1479
1480
1481
671aa708
NN
1482
1483
d02c69be 1484
1c710c3c
DJ
1485
1486
1487
1488
1489
1490
1491
1492
1493
18c04407
RW
1494
1495
1496
1c710c3c
DJ
1497
1498
1499
ad33ff57
RW
1500
1501progname=$0
1502# if PWD already has a value, it is probably wrong.
1503if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1504
1505# Export original configure arguments for use by sub-configures.
1506# Quote arguments with shell meta charatcers.
1507TOPLEVEL_CONFIGURE_ARGUMENTS=
1508set -- "$progname" "$@"
1509for ac_arg
1510do
1511 case "$ac_arg" in
1512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1514 # if the argument is of the form -foo=baz, quote the baz part only
1515 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1516 *) ;;
1517 esac
1518 # Add the quoted argument to the list.
1519 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1520done
1521if test "$silent" = yes; then
1522 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1523fi
1524# Remove the initial space we just introduced and, as these will be
1525# expanded by make, quote '$'.
1526TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1527
1c710c3c
DJ
1528
1529# Find the build, host, and target systems.
671aa708 1530ac_aux_dir=
2aeb72e9
DD
1531for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1532 if test -f $ac_dir/install-sh; then
671aa708
NN
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install-sh -c"
1535 break
2aeb72e9 1536 elif test -f $ac_dir/install.sh; then
671aa708
NN
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install.sh -c"
1539 break
2aeb72e9 1540 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/shtool install -c"
1543 break
671aa708
NN
1544 fi
1545done
1546if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1548echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1549 { (exit 1); exit 1; }; }
671aa708 1550fi
2aeb72e9
DD
1551ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1554
1c710c3c 1555# Make sure we can run config.sub.
2aeb72e9
DD
1556$ac_config_sub sun4 >/dev/null 2>&1 ||
1557 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1558echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1559 { (exit 1); exit 1; }; }
1560
2aeb72e9
DD
1561echo "$as_me:$LINENO: checking build system type" >&5
1562echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1563if test "${ac_cv_build+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
2aeb72e9
DD
1566 ac_cv_build_alias=$build_alias
1567test -z "$ac_cv_build_alias" &&
1568 ac_cv_build_alias=`$ac_config_guess`
1569test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1571echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1572 { (exit 1); exit 1; }; }
2aeb72e9
DD
1573ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1575echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1576 { (exit 1); exit 1; }; }
1577
1578fi
2aeb72e9
DD
1579echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1580echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1581build=$ac_cv_build
2aeb72e9
DD
1582build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1585
671aa708 1586
1c710c3c
DJ
1587 case ${build_alias} in
1588 "") build_noncanonical=${build} ;;
1589 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1590esac
1591
1592
af71363e 1593
1c710c3c
DJ
1594 case ${host_alias} in
1595 "") host_noncanonical=${build_noncanonical} ;;
1596 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1597esac
1598
af71363e 1599
1c710c3c
DJ
1600
1601 case ${target_alias} in
1602 "") target_noncanonical=${host_noncanonical} ;;
1603 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1604esac
1605
af71363e 1606
1c710c3c
DJ
1607
1608
1609test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1610 test "$program_prefix$program_suffix$program_transform_name" = \
1611 NONENONEs,x,x, &&
1c710c3c 1612 program_transform_name=s,y,y,
af71363e 1613
2aeb72e9
DD
1614echo "$as_me:$LINENO: checking host system type" >&5
1615echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1616if test "${ac_cv_host+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1618else
2aeb72e9
DD
1619 ac_cv_host_alias=$host_alias
1620test -z "$ac_cv_host_alias" &&
1621 ac_cv_host_alias=$ac_cv_build_alias
1622ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1624echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1625 { (exit 1); exit 1; }; }
1626
af71363e 1627fi
2aeb72e9
DD
1628echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1629echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1630host=$ac_cv_host
2aeb72e9
DD
1631host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636echo "$as_me:$LINENO: checking target system type" >&5
1637echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1638if test "${ac_cv_target+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
2aeb72e9
DD
1641 ac_cv_target_alias=$target_alias
1642test "x$ac_cv_target_alias" = "x" &&
1643 ac_cv_target_alias=$ac_cv_host_alias
1644ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1646echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1647 { (exit 1); exit 1; }; }
1648
1649fi
2aeb72e9
DD
1650echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1651echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1652target=$ac_cv_target
2aeb72e9
DD
1653target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1656
1657
1658# The aliases save the names the user supplied, while $host etc.
1659# will get canonicalized.
1660test -n "$target_alias" &&
1661 test "$program_prefix$program_suffix$program_transform_name" = \
1662 NONENONEs,x,x, &&
1663 program_prefix=${target_alias}-
671aa708 1664test "$program_prefix" != NONE &&
2aeb72e9 1665 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1666# Use a double $ so make ignores it.
1667test "$program_suffix" != NONE &&
2aeb72e9 1668 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1669# Double any \ or $. echo might interpret backslashes.
1670# By default was `s,x,x', remove it if useless.
1671cat <<\_ACEOF >conftest.sed
1672s/[\\$]/&&/g;s/;s,x,x,$//
1673_ACEOF
1674program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1675rm conftest.sed
af71363e 1676
671aa708
NN
1677
1678
775956d0
NN
1679# Get 'install' or 'install-sh' and its variants.
1680# Find a good install program. We prefer a C program (faster),
1681# so one script is as good as another. But avoid the broken or
1682# incompatible versions:
1683# SysV /etc/install, /usr/sbin/install
1684# SunOS /usr/etc/install
1685# IRIX /sbin/install
1686# AIX /bin/install
1c710c3c 1687# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1691# OS/2's system install, which has a completely different semantic
775956d0 1692# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1693# Reject install programs that cannot install multiple files.
2aeb72e9
DD
1694echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1695echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1696if test -z "$INSTALL"; then
1c710c3c
DJ
1697if test "${ac_cv_path_install+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH
1702do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 # Account for people who put trailing slashes in PATH elements.
1706case $as_dir/ in
1707 ./ | .// | /cC/* | \
1708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1710 /usr/ucb/* ) ;;
1711 *)
1712 # OSF1 and SCO ODT 3.0 have their own names for install.
1713 # Don't use installbsd from OSF since it installs stuff as root
1714 # by default.
1715 for ac_prog in ginstall scoinst install; do
1716 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1718 if test $ac_prog = install &&
1c710c3c 1719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1720 # AIX install. It has an incompatible calling convention.
1721 :
1c710c3c
DJ
1722 elif test $ac_prog = install &&
1723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1724 # program-specific install script used by HP pwplus--don't use.
1725 :
775956d0 1726 else
38d24731
RW
1727 rm -rf conftest.one conftest.two conftest.dir
1728 echo one > conftest.one
1729 echo two > conftest.two
1730 mkdir conftest.dir
1731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1732 test -s conftest.one && test -s conftest.two &&
1733 test -s conftest.dir/conftest.one &&
1734 test -s conftest.dir/conftest.two
1735 then
1736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1737 break 3
1738 fi
775956d0
NN
1739 fi
1740 fi
1741 done
1c710c3c
DJ
1742 done
1743 ;;
1744esac
1745done
1746
38d24731 1747rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
1748
1749fi
1750 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1751 INSTALL=$ac_cv_path_install
775956d0 1752 else
38d24731
RW
1753 # As a last resort, use the slow shell script. Don't cache a
1754 # value for INSTALL within a source directory, because that will
775956d0 1755 # break other packages using the cache if that directory is
38d24731 1756 # removed, or if the value is a relative name.
1c710c3c 1757 INSTALL=$ac_install_sh
775956d0
NN
1758 fi
1759fi
2aeb72e9
DD
1760echo "$as_me:$LINENO: result: $INSTALL" >&5
1761echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1762
1763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764# It thinks the first close brace ends the variable substitution.
1765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1c710c3c 1767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1768
1769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
2aeb72e9
DD
1771echo "$as_me:$LINENO: checking whether ln works" >&5
1772echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1773if test "${acx_cv_prog_LN+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1775else
1776 rm -f conftestdata_t
1777echo >conftestdata_f
1778if ln conftestdata_f conftestdata_t 2>/dev/null
1779then
1780 acx_cv_prog_LN=ln
1781else
1782 acx_cv_prog_LN=no
1783fi
1784rm -f conftestdata_f conftestdata_t
1785
1786fi
1787if test $acx_cv_prog_LN = no; then
1788 LN="cp"
2aeb72e9
DD
1789 echo "$as_me:$LINENO: result: no, using $LN" >&5
1790echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1791else
1792 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1793 echo "$as_me:$LINENO: result: yes" >&5
1794echo "${ECHO_T}yes" >&6
ad6717df
PB
1795fi
1796
2aeb72e9
DD
1797echo "$as_me:$LINENO: checking whether ln -s works" >&5
1798echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1799LN_S=$as_ln_s
1800if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1801 echo "$as_me:$LINENO: result: yes" >&5
1802echo "${ECHO_T}yes" >&6
fb0103e5 1803else
2aeb72e9
DD
1804 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1805echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1806fi
1807
775956d0 1808
79c06341 1809### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1810### If we are on Windows, search for the shell. This will permit people
1811### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1812### without also having to set CONFIG_SHELL. This code will work when
1813### using bash, which sets OSTYPE.
1814case "${OSTYPE}" in
1815*win32*)
671aa708
NN
1816 if test x${CONFIG_SHELL} = x ; then
1817 if test ! -f /bin/sh ; then
1818 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1819 CONFIG_SHELL=${SHELL}
1820 export CONFIG_SHELL
1821 else
1822 for prog in sh sh.exe bash bash.exe; do
1823 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1824 for dir in $PATH; do
1825 test -z "$dir" && dir=.
1826 if test -f $dir/$prog; then
1827 CONFIG_SHELL=$dir/$prog
1828 export CONFIG_SHELL
1829 break
1830 fi
1831 done
1832 IFS="$save_ifs"
1833 test -n "${CONFIG_SHELL}" && break
1834 done
1835 fi
1836 fi
1837 fi
1838 ;;
1839esac
1840
1841config_shell=${CONFIG_SHELL-/bin/sh}
1842
671aa708 1843moveifchange=${srcdir}/move-if-change
79c06341 1844
ee6a22df
L
1845srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1846
1847# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1848# a relative path.
1849if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1850 INSTALL="${srcpwd}/install-sh -c"
1851fi
1852
671aa708
NN
1853# Set srcdir to "." if that's what it is.
1854# This is important for multilib support.
1855pwd=`${PWDCMD-pwd}`
671aa708
NN
1856if test "${pwd}" = "${srcpwd}" ; then
1857 srcdir=.
79c06341
JL
1858fi
1859
671aa708 1860topsrcdir=$srcpwd
5d4a5ee6 1861
671aa708 1862extra_host_args=
afabd8e6 1863
671aa708
NN
1864### To add a new directory to the tree, first choose whether it is a target
1865### or a host dependent tool. Then put it into the appropriate list
1866### (library or tools, host or target), doing a dependency sort.
79c06341 1867
1c710c3c 1868# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1869# configdirs, or target_configdirs; see the serialization section below.
79c06341 1870
1c710c3c
DJ
1871# Dependency sorting is only needed when *configuration* must be done in
1872# a particular order. In all cases a dependency should be specified in
671aa708 1873# the Makefile, whether or not it's implicitly specified here.
79c06341 1874
671aa708
NN
1875# Double entries in build_configdirs, configdirs, or target_configdirs may
1876# cause circular dependencies and break everything horribly.
79c06341 1877
23f6b2f9
PB
1878# these library is used by various programs built for the build
1879# environment
1880#
1881build_libs="build-libiberty"
1882
1883# these tools are built for the build environment
71b5d516 1884build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1885
671aa708
NN
1886# these libraries are used by various programs built for the host environment
1887#
f8bf9252 1888host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog"
671aa708 1889
671aa708
NN
1890# these tools are built for the host environment
1891# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1892# know that we are building the simulator.
1893# binutils, gas and ld appear in that order because it makes sense to run
1894# "make check" in that particular order.
5afab7ad 1895# If --enable-gold is used, "gold" will replace "ld".
5395b47b 1896host_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
1897
1898# libgcj represents the runtime libraries only used by gcj.
1899libgcj="target-libffi \
671aa708
NN
1900 target-zlib \
1901 target-qthreads \
1902 target-libjava"
1903
1904# these libraries are built for the target environment, and are built after
1905# the host libraries and the host tools (which may be a cross compiler)
1906#
291f172e
DJ
1907target_libraries="target-libgcc \
1908 target-libiberty \
671aa708
NN
1909 target-libgloss \
1910 target-newlib \
6d3b5aea 1911 target-libgomp \
cb543528 1912 target-libstdc++-v3 \
6de9cd9a 1913 target-libmudflap \
77008252 1914 target-libssp \
6de9cd9a 1915 target-libgfortran \
7cd0cf9c 1916 target-boehm-gc \
77d187bc 1917 ${libgcj} \
d9cdb878 1918 target-libobjc \
6d3b5aea 1919 target-libada"
671aa708 1920
4dbda6f0
NN
1921# these tools are built using the target libraries, and are intended to
1922# run only in the target environment
671aa708 1923#
4dbda6f0 1924# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1925# list belongs in this list. those programs are also very likely
1926# candidates for the "native_only" list which follows
1927#
97286f7f 1928target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1929
671aa708 1930################################################################################
79c06341 1931
671aa708
NN
1932## All tools belong in one of the four categories, and are assigned above
1933## We assign ${configdirs} this way to remove all embedded newlines. This
1934## is important because configure will choke if they ever get through.
1935## ${configdirs} is directories we build using the host tools.
1936## ${target_configdirs} is directories we build using the target tools.
671aa708 1937configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1938target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1939build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1940
ac9e6043
RW
1941
1942
671aa708 1943################################################################################
79c06341 1944
671aa708 1945srcname="gnu development package"
79c06341 1946
671aa708
NN
1947# This gets set non-empty for some net releases of packages.
1948appdirs=""
79c06341 1949
671aa708
NN
1950# Define is_cross_compiler to save on calls to 'test'.
1951is_cross_compiler=
1952if test x"${host}" = x"${target}" ; then
1953 is_cross_compiler=no
79c06341 1954else
671aa708 1955 is_cross_compiler=yes
1c710c3c 1956fi
79c06341 1957
b4acb5ef 1958# Find the build and target subdir names.
8b87bb96 1959
2e9e6f68
DJ
1960# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1961# have matching libraries, they should use host libraries: Makefile.tpl
1962# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1963# However, they still use the build modules, because the corresponding
1964# host modules (e.g. bison) are only built for the host when bootstrap
1965# finishes. So:
1966# - build_subdir is where we find build modules, and never changes.
1967# - build_libsubdir is where we find build libraries, and can be overridden.
1968
1969# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1970build_subdir="build-${build_noncanonical}"
1c710c3c 1971
2aeb72e9 1972# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1973if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1974 withval="$with_build_libsubdir"
1975 build_libsubdir="$withval"
2e9e6f68
DJ
1976else
1977 build_libsubdir="$build_subdir"
2aeb72e9 1978fi;
215c351a
PB
1979# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1980if ( test $srcdir = . && test -d gcc ) \
1981 || test -d $srcdir/../host-${host_noncanonical}; then
1982 host_subdir="host-${host_noncanonical}"
1983else
1984 host_subdir=.
1985fi
8b87bb96
NN
1986# No prefix.
1987target_subdir=${target_noncanonical}
1c710c3c 1988
79c06341 1989
671aa708
NN
1990# Skipdirs are removed silently.
1991skipdirs=
1992# Noconfigdirs are removed loudly.
1993noconfigdirs=""
79c06341 1994
671aa708
NN
1995use_gnu_ld=
1996# Make sure we don't let GNU ld be added if we didn't want it.
1997if test x$with_gnu_ld = xno ; then
1998 use_gnu_ld=no
5afab7ad 1999 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2000fi
2001
671aa708
NN
2002use_gnu_as=
2003# Make sure we don't let GNU as be added if we didn't want it.
2004if test x$with_gnu_as = xno ; then
2005 use_gnu_as=no
2006 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2007fi
2008
1c710c3c 2009# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2010# it's not even worth trying to configure, much less build, that tool.
79c06341 2011
671aa708
NN
2012case ${with_x} in
2013 yes | "") ;; # the default value for this tree is that X11 is available
2014 no)
b4f96efe 2015 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2016 # We won't be able to build gdbtk without X.
1c710c3c 2017 enable_gdbtk=no
671aa708
NN
2018 ;;
2019 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2020esac
79c06341 2021
671aa708 2022# Some tools are only suitable for building in a "native" situation.
1c710c3c 2023# Remove these if host!=target.
9e299237 2024native_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 2025
671aa708
NN
2026# Similarly, some are only suitable for cross toolchains.
2027# Remove these if host=target.
2028cross_only="target-libgloss target-newlib target-opcodes"
2029
2030case $is_cross_compiler in
2031 no) skipdirs="${skipdirs} ${cross_only}" ;;
2032 yes) skipdirs="${skipdirs} ${native_only}" ;;
2033esac
79c06341 2034
671aa708
NN
2035# If both --with-headers and --with-libs are specified, default to
2036# --without-newlib.
ee6a22df
L
2037if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2038 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2039 if test x"${with_newlib}" = x ; then
2040 with_newlib=no
2041 fi
79c06341
JL
2042fi
2043
671aa708
NN
2044# Recognize --with-newlib/--without-newlib.
2045case ${with_newlib} in
2046 no) skipdirs="${skipdirs} target-newlib" ;;
2047 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2048esac
79c06341 2049
5afab7ad
ILT
2050# Handle --enable-gold.
2051
2052# Check whether --enable-gold or --disable-gold was given.
2053if test "${enable_gold+set}" = set; then
2054 enableval="$enable_gold"
2055 ENABLE_GOLD=$enableval
2056else
2057 ENABLE_GOLD=no
2058fi;
2059if test "${ENABLE_GOLD}" = "yes"; then
2060 # Check for ELF target.
2061 is_elf=no
2062 case "${target}" in
2063 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2064 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2065 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2066 case "${target}" in
2067 *-*-linux*aout* | *-*-linux*oldld*)
2068 ;;
2069 *)
2070 is_elf=yes
2071 ;;
2072 esac
2073 esac
2074
2075 if test "$is_elf" = "yes"; then
2076 # Check for target supported by gold.
2077 case "${target}" in
01b79d11 2078 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
5afab7ad
ILT
2079 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2080 ;;
2081 esac
2082 fi
2083fi
2084
671aa708 2085# Configure extra directories which are host specific
79c06341 2086
671aa708
NN
2087case "${host}" in
2088 *-cygwin*)
2089 configdirs="$configdirs libtermcap" ;;
2090esac
79c06341 2091
4fab7234
HPN
2092# A target can indicate whether a language isn't supported for some reason.
2093# Only spaces may be used in this macro; not newlines or tabs.
2094unsupported_languages=
2095
1c710c3c 2096# Remove more programs from consideration, based on the host or
671aa708
NN
2097# target this usually means that a port of the program doesn't
2098# exist yet.
ec8d6ddc 2099
671aa708
NN
2100case "${host}" in
2101 hppa*64*-*-*)
2102 noconfigdirs="$noconfigdirs byacc"
2103 ;;
f2a0e225 2104 i[3456789]86-*-vsta)
b4f96efe 2105 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2106 ;;
f2a0e225 2107 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2108 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2109 ;;
95af8923
KT
2110 x86_64-*-mingw*)
2111 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2112 ;;
f2a0e225 2113 i[3456789]86-*-mingw32*)
b4f96efe 2114 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2115 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2116 ;;
f2a0e225 2117 i[3456789]86-*-beos*)
b4f96efe 2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2119 ;;
671aa708 2120 *-*-cygwin*)
a22c2d8d 2121 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2122 ;;
2123 *-*-netbsd*)
a22c2d8d 2124 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2125 ;;
2126 ppc*-*-pe)
b4f96efe 2127 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2128 ;;
2129 powerpc-*-beos*)
b4f96efe 2130 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2131 ;;
671aa708 2132esac
ec8d6ddc 2133
6de9cd9a 2134
2aeb72e9 2135# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2136if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2137 enableval="$enable_libada"
2138 ENABLE_LIBADA=$enableval
d9cdb878
AC
2139else
2140 ENABLE_LIBADA=yes
2aeb72e9 2141fi;
d9cdb878 2142if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2143 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2144fi
2145
2aeb72e9 2146# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2147if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2148 enableval="$enable_libssp"
2149 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2150else
2151 ENABLE_LIBSSP=yes
2aeb72e9 2152fi;
ef0087a7 2153
671aa708
NN
2154# Save it here so that, even in case of --enable-libgcj, if the Java
2155# front-end isn't enabled, we still get libgcj disabled.
2156libgcj_saved=$libgcj
2157case $enable_libgcj in
2158yes)
2159 # If we reset it here, it won't get added to noconfigdirs in the
2160 # target-specific build rules, so it will be forcibly enabled
2161 # (unless the Java language itself isn't enabled).
2162 libgcj=
2163 ;;
2164no)
2165 # Make sure we get it printed in the list of not supported target libs.
2166 noconfigdirs="$noconfigdirs ${libgcj}"
2167 ;;
2168esac
ec8d6ddc 2169
6de9cd9a 2170
27079765
AH
2171# Disable libmudflap on some systems.
2172if test x$enable_libmudflap = x ; then
dfcada9a 2173 case "${target}" in
1c00b503 2174 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2175 # Enable libmudflap by default in GNU and friends.
dfcada9a 2176 ;;
a3e8d8b4
LR
2177 *-*-freebsd*)
2178 # Enable libmudflap by default in FreeBSD.
2179 ;;
dfcada9a
MM
2180 *)
2181 # Disable it by default everywhere else.
2182 noconfigdirs="$noconfigdirs target-libmudflap"
2183 ;;
2184 esac
27079765 2185fi
6de9cd9a 2186
27079765
AH
2187# Disable libgomp on non POSIX hosted systems.
2188if test x$enable_libgomp = x ; then
953ff289
DN
2189 # Enable libgomp by default on hosted POSIX systems.
2190 case "${target}" in
670cbfcf 2191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2192 ;;
2193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2194 ;;
04879af3 2195 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2196 ;;
cac90078 2197 *-*-darwin* | *-*-aix*)
953ff289
DN
2198 ;;
2199 *)
2200 noconfigdirs="$noconfigdirs target-libgomp"
2201 ;;
2202 esac
27079765 2203fi
953ff289 2204
c03353e2
RIL
2205# Default libgloss CPU subdirectory.
2206libgloss_dir="$target_cpu"
6de9cd9a 2207
671aa708
NN
2208case "${target}" in
2209 *-*-chorusos)
cb253473 2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2211 ;;
25783c30 2212 powerpc-*-darwin* | x86_64-*-darwin[912]*)
e1514c3f 2213 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2214 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2215 ;;
0db3a858
TG
2216 i[3456789]86-*-darwin*)
2217 noconfigdirs="$noconfigdirs ld gas gprof"
2218 noconfigdirs="$noconfigdirs sim target-rda"
2219 ;;
42c1cd8a
AT
2220 *-*-darwin*)
2221 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2222 noconfigdirs="$noconfigdirs sim target-rda"
2223 noconfigdirs="$noconfigdirs ${libgcj}"
2224 ;;
671aa708 2225 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2226 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2227 ;;
c3f84f61 2228 *-*-freebsd*)
6de9cd9a
DN
2229 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2230 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2231 && test -f /usr/local/include/gmp.h; then
2232 with_gmp=/usr/local
2233 fi
2234
2235 # Skip some stuff that's unsupported on some FreeBSD configurations.
2236 case "${target}" in
2237 i*86-*-*) ;;
2238 alpha*-*-*) ;;
2239 *)
cb253473 2240 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2241 ;;
2242 esac
2243 ;;
ef4e7569
US
2244 *-*-kaos*)
2245 # Remove unsupported stuff on all kaOS configurations.
cb253473 2246 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2247 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2248 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2249 noconfigdirs="$noconfigdirs target-libgloss"
2250 ;;
671aa708
NN
2251 *-*-netbsd*)
2252 # Skip some stuff on all NetBSD configurations.
2253 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2254
2255 # Skip some stuff that's unsupported on some NetBSD configurations.
2256 case "${target}" in
2257 i*86-*-netbsdelf*) ;;
0590b963 2258 arm*-*-netbsdelf*) ;;
671aa708 2259 *)
cb253473 2260 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2261 ;;
2262 esac
2263 ;;
61fec9ff 2264 *-*-netware*)
cb253473 2265 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2266 ;;
2267 *-*-rtems*)
cb253473 2268 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2269 ;;
a8ba31f2
EC
2270 # The tpf target doesn't support gdb yet.
2271 *-*-tpf*)
cb253473 2272 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2273 ;;
5785c0ed 2274 *-*-uclinux*)
cb253473 2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2276 ;;
671aa708 2277 *-*-vxworks*)
cb253473 2278 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2279 ;;
2280 alpha*-dec-osf*)
2281 # ld works, but does not support shared libraries.
2282 # newlib is not 64 bit ready. I'm not sure about fileutils.
2283 # gas doesn't generate exception information.
2284 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2285 ;;
2286 alpha*-*-*vms*)
cb253473 2287 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2288 ;;
2289 alpha*-*-linux*)
2290 # newlib is not 64 bit ready
2291 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2292 ;;
671aa708
NN
2293 alpha*-*-*)
2294 # newlib is not 64 bit ready
cb253473 2295 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2296 ;;
33952f6f 2297 am33_2.0-*-linux*)
cb253473 2298 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2299 ;;
671aa708 2300 sh-*-linux*)
cb253473 2301 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2302 ;;
671aa708 2303 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2304 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2305 noconfigdirs="$noconfigdirs target-examples"
2306 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2307 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2308 noconfigdirs="$noconfigdirs expect dejagnu"
2309 # the C++ libraries don't build on top of CE's C libraries
cb543528 2310 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2311 noconfigdirs="$noconfigdirs target-newlib"
2312 case "${host}" in
2313 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2314 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2315 ;;
2316 esac
c03353e2 2317 libgloss_dir=wince
671aa708
NN
2318 ;;
2319 arc-*-*)
cb253473 2320 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2321 ;;
ee6a22df 2322 arm-semi-aof )
ee6a22df 2323 ;;
671aa708 2324 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2325 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2326 libgloss_dir=arm
671aa708 2327 ;;
b3f8d95d 2328 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2329 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2330 libgloss_dir=arm
671aa708 2331 ;;
077fc835 2332 arm*-*-linux-gnueabi)
c4e9bf2b 2333 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2334 case ${with_newlib} in
2335 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2336 esac
c03353e2 2337 libgloss_dir=arm
077fc835 2338 ;;
972974fc 2339 arm*-*-symbianelf*)
cb253473 2340 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2341 libgloss_dir=arm
972974fc 2342 ;;
671aa708 2343 arm-*-pe*)
cb253473 2344 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2345 ;;
671aa708 2346 thumb-*-coff)
cb253473 2347 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2348 ;;
2349 thumb-*-elf)
cb253473 2350 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2351 ;;
671aa708 2352 thumb-*-pe)
cb253473 2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2354 ;;
2355 arm-*-riscix*)
cb253473 2356 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2357 ;;
2358 avr-*-*)
ac3949d9 2359 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 2360 ;;
6b65a26d 2361 bfin-*-*)
8b3c6c5a 2362 noconfigdirs="$noconfigdirs gdb"
61efc800 2363 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2364 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2365 fi
2366 ;;
671aa708 2367 c4x-*-* | tic4x-*-*)
cb253473 2368 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2369 ;;
2370 c54x*-*-* | tic54x-*-*)
cb253473 2371 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2372 ;;
c993ae60
SR
2373 cr16-*-*)
2374 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2375 ;;
40d64b5a 2376 cris-*-* | crisv32-*-*)
4fab7234 2377 unsupported_languages="$unsupported_languages java"
40d64b5a 2378 case "${target}" in
c2e0d3a9 2379 *-*-aout)
7f26dfa3 2380 unsupported_languages="$unsupported_languages fortran"
4fab7234 2381 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2382 *-*-elf)
789ec619 2383 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2384 *-*-linux*)
789ec619 2385 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2386 *)
7f26dfa3 2387 unsupported_languages="$unsupported_languages fortran"
cb253473 2388 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2389 esac
c03353e2 2390 libgloss_dir=cris
671aa708 2391 ;;
25b656e7 2392 crx-*-*)
cb253473 2393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2394 ;;
671aa708 2395 d10v-*-*)
cb253473 2396 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2397 ;;
2398 d30v-*-*)
cb253473 2399 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2400 ;;
c03353e2
RIL
2401 ep9312-*-elf | ep9312-*-coff)
2402 libgloss_dir=arm
2403 ;;
671aa708 2404 fr30-*-elf*)
cb253473 2405 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2406 ;;
2407 frv-*-*)
cb253473 2408 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2409 ;;
2410 h8300*-*-*)
cb253473 2411 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2412 ;;
2413 h8500-*-*)
cb253473 2414 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2415 ;;
ee6a22df 2416 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2417 ;;
671aa708
NN
2418 hppa*64*-*-linux* | parisc*64*-*-linux*)
2419 # In this case, it's because the hppa64-linux target is for
2420 # the kernel only at this point and has no libc, and thus no
2421 # headers, crt*.o, etc., all of which are needed by these.
2422 noconfigdirs="$noconfigdirs target-zlib"
2423 ;;
3e732ba0
JDA
2424 parisc*-*-linux* | hppa*-*-linux*)
2425 ;;
671aa708 2426 hppa*-*-*elf* | \
671aa708
NN
2427 hppa*-*-lites* | \
2428 hppa*-*-openbsd* | \
2429 hppa*64*-*-*)
cb253473 2430 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2431 ;;
2a332582
JDA
2432 hppa*-hp-hpux11*)
2433 noconfigdirs="$noconfigdirs ld shellutils"
2434 ;;
c03353e2
RIL
2435 hppa*-*-pro*)
2436 libgloss_dir=pa
2437 ;;
671aa708
NN
2438 hppa*-*-*)
2439 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2440 # build on HP-UX 10.20.
cb253473 2441 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2442 ;;
fb87ad5d 2443 i960-*-*)
cb253473 2444 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2445 ;;
671aa708
NN
2446 ia64*-*-elf*)
2447 # No gdb support yet.
b4f96efe 2448 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2449 ;;
2450 ia64*-**-hpux*)
2451 # No gdb or ld support yet.
cb253473 2452 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2453 ;;
ee6a22df 2454 i370-*-opened*)
ee6a22df 2455 ;;
f2a0e225 2456 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2457 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2458 libgloss_dir=i386
671aa708 2459 ;;
f2a0e225 2460 i[3456789]86-*-linux*)
671aa708
NN
2461 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2462 # not build java stuff by default.
2463 case "${target}" in
2464 *-*-*libc1*)
cb253473 2465 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2466 esac
2467
2468 # This section makes it possible to build newlib natively on linux.
2469 # If we are using a cross compiler then don't configure newlib.
2470 if test x${is_cross_compiler} != xno ; then
3aa83176 2471 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2472 fi
2473 noconfigdirs="$noconfigdirs target-libgloss"
2474 # If we are not using a cross compiler, do configure newlib.
2475 # Note however, that newlib will only be configured in this situation
2476 # if the --with-newlib option has been given, because otherwise
2477 # 'target-newlib' will appear in skipdirs.
2478 ;;
f2a0e225 2479 i[3456789]86-*-mingw32*)
b91f0a41
CV
2480 target_configdirs="$target_configdirs target-winsup"
2481 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2482 ;;
95af8923
KT
2483 x86_64-*-mingw*)
2484 target_configdirs="$target_configdirs target-winsup"
2485 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2486 ;;
671aa708
NN
2487 *-*-cygwin*)
2488 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2489 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2490 # always build newlib if winsup directory is present.
b91f0a41 2491 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2492 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2493 elif test -d "$srcdir/newlib"; then
b91f0a41 2494 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2495 fi
1c710c3c 2496 ;;
ee6a22df
L
2497 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2498 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2499 ;;
f2a0e225 2500 i[3456789]86-*-pe)
cb253473 2501 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2502 ;;
f2a0e225 2503 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2504 # The linker does not yet know about weak symbols in COFF,
2505 # and is not configured to handle mixed ELF and COFF.
cb253473 2506 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2507 ;;
f2a0e225 2508 i[3456789]86-*-sco*)
cb253473 2509 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2510 ;;
f2a0e225 2511 i[3456789]86-*-solaris2*)
671aa708
NN
2512 noconfigdirs="$noconfigdirs target-libgloss"
2513 ;;
f2a0e225 2514 i[3456789]86-*-sysv4*)
cb253473 2515 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2516 ;;
f2a0e225 2517 i[3456789]86-*-beos*)
cb253473 2518 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2519 ;;
d1f8db0c
PB
2520 i[3456789]86-*-rdos*)
2521 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2522 ;;
fb87ad5d 2523 m32r-*-*)
cb253473 2524 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2525 ;;
671aa708 2526 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2527 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2528 libgloss_dir=m68hc11
671aa708
NN
2529 ;;
2530 m68k-*-elf*)
cb253473 2531 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2532 ;;
2533 m68k-*-coff*)
cb253473 2534 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2535 ;;
c03353e2
RIL
2536 m68*-*-* | fido-*-*)
2537 libgloss_dir=m68k
2538 ;;
671aa708
NN
2539 mcore-*-pe*)
2540 # The EPOC C++ environment does not support exceptions or rtti,
2541 # and so building libstdc++-v3 tends not to always work.
2542 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2543 ;;
2544 mmix-*-*)
4fab7234 2545 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2546 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2547 ;;
2548 mn10200-*-*)
cb253473 2549 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2550 ;;
2551 mn10300-*-*)
cb253473 2552 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2553 ;;
ab34901f 2554 mt-*-*)
79dd769c
AH
2555 noconfigdirs="$noconfigdirs sim"
2556 ;;
671aa708
NN
2557 powerpc-*-aix*)
2558 # copied from rs6000-*-* entry
cb253473 2559 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2560 ;;
2561 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2562 target_configdirs="$target_configdirs target-winsup"
cb253473 2563 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2564 # always build newlib.
2565 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2566 ;;
2567 # This is temporary until we can link against shared libraries
2568 powerpcle-*-solaris*)
cb253473 2569 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2570 libgloss_dir=rs6000
671aa708
NN
2571 ;;
2572 powerpc-*-beos*)
cb253473 2573 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2574 ;;
671aa708 2575 powerpc-*-eabi)
cb253473 2576 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2577 libgloss_dir=rs6000
ee6a22df
L
2578 ;;
2579 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2580 libgloss_dir=rs6000
671aa708 2581 ;;
671aa708 2582 rs6000-*-lynxos*)
cb253473 2583 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2584 ;;
2585 rs6000-*-aix*)
cb253473 2586 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2587 ;;
2588 rs6000-*-*)
cb253473 2589 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2590 ;;
2591 m68k-apollo-*)
cb253473 2592 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2593 ;;
d9dced13
RS
2594 mips*-sde-elf*)
2595 skipdirs="$skipdirs target-libiberty"
2596 noconfigdirs="$noconfigdirs ${libgcj}"
2597 if test x$with_newlib = xyes; then
2598 noconfigdirs="$noconfigdirs gprof"
2599 fi
2600 libgloss_dir=mips
2601 ;;
671aa708 2602 mips*-*-irix5*)
cb253473 2603 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2604 ;;
2605 mips*-*-irix6*)
671aa708
NN
2606 # Linking libjava exceeds command-line length limits on at least
2607 # IRIX 6.2, but not on IRIX 6.5.
2608 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2609 # <oldham@codesourcery.com>
cb253473 2610 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2611 ;;
671aa708 2612 mips*-*-bsd*)
cb253473 2613 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2614 ;;
671aa708
NN
2615 mips*-*-linux*)
2616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2617 ;;
2618 mips*-*-*)
cb253473 2619 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2620 libgloss_dir=mips
671aa708
NN
2621 ;;
2622 romp-*-*)
cb253473 2623 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2624 ;;
669f01d8 2625 sh-*-* | sh64-*-*)
671aa708 2626 case "${host}" in
f2a0e225
KC
2627 i[3456789]86-*-vsta) ;; # don't add gprof back in
2628 i[3456789]86-*-go32*) ;; # don't add gprof back in
2629 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2630 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2631 esac
cb253473 2632 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2633 ;;
c03353e2
RIL
2634 sparclet-*-aout* | sparc86x-*-*)
2635 libgloss_dir=sparc
2636 ;;
671aa708 2637 sparc-*-elf*)
cb253473 2638 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2639 ;;
2640 sparc64-*-elf*)
cb253473 2641 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2642 libgloss_dir=sparc
671aa708
NN
2643 ;;
2644 sparclite-*-*)
cb253473 2645 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2646 libgloss_dir=sparc
671aa708
NN
2647 ;;
2648 sparc-*-sunos4*)
cb253473 2649 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2650 if test x${is_cross_compiler} != xno ; then
2651 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2652 else
2653 use_gnu_ld=no
2654 fi
2655 ;;
bba5e0ca 2656 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2657 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2658 ;;
671aa708
NN
2659 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2660 ;;
2661 v810-*-*)
cb253473 2662 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2663 ;;
2664 v850-*-*)
cb253473 2665 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2666 ;;
2667 v850e-*-*)
cb253473 2668 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2669 ;;
2670 v850ea-*-*)
cb253473 2671 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2672 ;;
2673 vax-*-vms)
cb253473 2674 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2675 ;;
2676 vax-*-*)
cb253473 2677 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2678 ;;
aa12a573 2679 xtensa*-*-*)
cb253473 2680 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2681 ;;
671aa708 2682 ip2k-*-*)
cb253473 2683 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2684 ;;
c3f84f61 2685 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2687 ;;
2688 *-*-lynxos*)
cb253473 2689 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2690 ;;
671aa708 2691 *-*-*)
cb253473 2692 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2693 ;;
2694esac
79c06341 2695
671aa708
NN
2696# If we aren't building newlib, then don't build libgloss, since libgloss
2697# depends upon some newlib header files.
2698case "${noconfigdirs}" in
2699 *target-libgloss*) ;;
2700 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2701esac
2702
671aa708
NN
2703# Work in distributions that contain no compiler tools, like Autoconf.
2704tentative_cc=""
2705host_makefile_frag=/dev/null
2706if test -d ${srcdir}/config ; then
2707case "${host}" in
2708 m68k-hp-hpux*)
2709 # Avoid "too much defining" errors from HPUX compiler.
2710 tentative_cc="cc -Wp,-H256000"
2711 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2712 # If it's HP/UX ar, this should be harmless.
2713 RANLIB="ar ts"
2714 ;;
2715 m68k-apollo-sysv*)
2716 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2717 ;;
2718 m68k-apollo-bsd*)
2719 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2720 # chokes on bfd, the compiler won't let you assign integers to enums, and
2721 # other problems. Defining CC to gcc is a questionable way to say "don't use
2722 # the apollo compiler" (the preferred version of GCC could be called cc,
2723 # or whatever), but I'm not sure leaving CC as cc is any better...
2724 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2725 # Used to have BISON=yacc.
2726 tentative_cc=gcc
2727 ;;
2728 m88k-dg-dgux*)
2729 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2730 ;;
2731 m88k-harris-cxux*)
2732 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2733 tentative_cc="cc -Xa"
2734 host_makefile_frag="config/mh-cxux"
2735 ;;
2736 m88k-motorola-sysv*)
2737 ;;
2738 mips*-dec-ultrix*)
2739 tentative_cc="cc -Wf,-XNg1000"
2740 host_makefile_frag="config/mh-decstation"
2741 ;;
2742 mips*-nec-sysv4*)
2743 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2744 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2745 host_makefile_frag="config/mh-necv4"
2746 ;;
2747 mips*-sgi-irix4*)
2748 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2749 # environment. Also bump switch table size so that cp-parse will
2750 # compile. Bump string length limit so linker builds.
2751 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2752 ;;
2753 mips*-*-sysv4*)
2754 host_makefile_frag="config/mh-sysv4"
2755 ;;
2756 mips*-*-sysv*)
2757 # This is for a MIPS running RISC/os 4.52C.
2758
2759 # This is needed for GDB, but needs to be in the top-level make because
2760 # if a library is compiled with the bsd headers and gets linked with the
2761 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2762 # a different size).
2763 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2764 # known except to select the sysv environment. Could we use /proc instead?
2765 # These "sysv environments" and "bsd environments" often end up being a pain.
2766 #
2767 # This is not part of CFLAGS because perhaps not all C compilers have this
2768 # option.
2769 tentative_cc="cc -systype sysv"
2770 ;;
2771 i370-ibm-opened*)
2772 tentative_cc="c89"
2773 ;;
f2a0e225 2774 i[3456789]86-*-sysv5*)
671aa708
NN
2775 host_makefile_frag="config/mh-sysv5"
2776 ;;
f2a0e225 2777 i[3456789]86-*-dgux*)
671aa708
NN
2778 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2779 host_makefile_frag="config/mh-dgux386"
2780 ;;
f2a0e225 2781 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2782 # The MetaWare compiler will generate a copyright message unless you
2783 # turn it off by adding the -Hnocopyr flag.
2784 tentative_cc="cc -Hnocopyr"
2785 ;;
f2a0e225 2786 i[3456789]86-ncr-sysv4*)
671aa708
NN
2787 # for an NCR 3000 (i486/SVR4) system.
2788 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2789 # This compiler not only emits obnoxious copyright messages every time
2790 # you run it, but it chokes and dies on a whole bunch of GNU source
2791 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2792 tentative_cc="/usr/ccs/ATT/cc"
2793 host_makefile_frag="config/mh-ncr3000"
2794 ;;
f2a0e225 2795 i[3456789]86-*-sco3.2v5*)
671aa708 2796 ;;
f2a0e225 2797 i[3456789]86-*-sco*)
671aa708
NN
2798 # The native C compiler botches some simple uses of const. Unfortunately,
2799 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2800 tentative_cc="cc -Dconst="
2801 host_makefile_frag="config/mh-sco"
2802 ;;
f2a0e225 2803 i[3456789]86-*-udk*)
671aa708
NN
2804 host_makefile_frag="config/mh-sysv5"
2805 ;;
f2a0e225 2806 i[3456789]86-*-solaris2*)
671aa708
NN
2807 host_makefile_frag="config/mh-sysv4"
2808 ;;
f2a0e225 2809 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2810 host_makefile_frag="config/mh-djgpp"
2811 ;;
2812 *-cygwin*)
2a79c47f
NC
2813
2814echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2815echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2816echo a >cygwin-cat-check
2817if test `cat cygwin-cat-check` == a ; then
2818 rm cygwin-cat-check
2819 echo "$as_me:$LINENO: result: yes" >&5
2820echo "${ECHO_T}yes" >&6
2821else
2822 rm cygwin-cat-check
2823 echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6
2825 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2826 Please either mount the build directory in binary mode or run the following
2827 commands before running any configure script:
2828set -o igncr
2829export SHELLOPTS
2830 " >&5
2831echo "$as_me: error: The cat command does not ignore carriage return characters.
2832 Please either mount the build directory in binary mode or run the following
2833 commands before running any configure script:
2834set -o igncr
2835export SHELLOPTS
2836 " >&2;}
2837 { (exit 1); exit 1; }; }
2838fi
2839
671aa708
NN
2840 host_makefile_frag="config/mh-cygwin"
2841 ;;
c53a18d3 2842 *-mingw*)
1f5a6b84 2843 host_makefile_frag="config/mh-mingw"
95af8923 2844 ;;
671aa708
NN
2845 *-interix*)
2846 host_makefile_frag="config/mh-interix"
2847 ;;
2848 vax-*-ultrix2*)
2849 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2850 tentative_cc=gcc
2851 ;;
2852 *-*-solaris2*)
2853 host_makefile_frag="config/mh-solaris"
2854 ;;
2855 m68k-sun-sunos*)
2856 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2857 # without overflowing the jump tables (-J says to use a 32 bit table)
2858 tentative_cc="cc -J"
2859 ;;
efd41714 2860 hppa*-hp-hpux10*)
671aa708 2861 tentative_cc="cc -Wp,-H256000"
efd41714 2862 host_makefile_frag="config/mh-pa-hpux10"
671aa708 2863 ;;
efd41714
PB
2864 hppa*-hp-hpux* | hppa*-*-hiux*)
2865 tentative_cc="cc -Wp,-H256000"
2866 host_makefile_frag="config/mh-pa"
2867 ;;
2868 hppa*-*)
2869 host_makefile_frag="config/mh-pa"
2870 ;;
2871 *-hp-hpux* | *-*-hiux*)
671aa708
NN
2872 tentative_cc="cc -Wp,-H256000"
2873 ;;
2874 rs6000-*-lynxos*)
2875 # /bin/cc is less than useful for our purposes. Always use GCC
2876 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2877 host_makefile_frag="config/mh-lynxrs6k"
2878 ;;
45f366ab 2879 powerpc-*-darwin*)
be8fff81
RB
2880 host_makefile_frag="config/mh-ppc-darwin"
2881 ;;
d19bca38
PB
2882 powerpc-*-aix*)
2883 host_makefile_frag="config/mh-ppc-aix"
2884 ;;
2885 rs6000-*-aix*)
2886 host_makefile_frag="config/mh-ppc-aix"
2887 ;;
671aa708
NN
2888 *-*-lynxos*)
2889 # /bin/cc is less than useful for our purposes. Always use GCC
2890 tentative_cc="/bin/gcc"
2891 ;;
2892 *-*-sysv4*)
2893 host_makefile_frag="config/mh-sysv4"
2894 ;;
95c53c62
RS
2895 # This is placed last to prevent interfering with the cases above.
2896 i[3456789]86-*-*)
2897 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2898 host_makefile_frag="config/mh-x86omitfp"
2899 ;;
671aa708
NN
2900esac
2901fi
2902
55ffb5ed
NN
2903# If we aren't going to be using gcc, see if we can extract a definition
2904# of CC from the fragment.
2905# Actually, use the 'pre-extracted' version above.
2906if test -z "${CC}" && test "${build}" = "${host}" ; then
2907 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2908 found=
2909 for dir in $PATH; do
2910 test -z "$dir" && dir=.
2911 if test -f $dir/gcc; then
2912 found=yes
2913 break
2914 fi
2915 done
2916 IFS="$save_ifs"
2917 if test -z "${found}" && test -n "${tentative_cc}" ; then
2918 CC=$tentative_cc
2919 fi
2920fi
2921
2922if test "${build}" != "${host}" ; then
0999159b
PB
2923 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2924 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2925 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2926 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2927 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2928 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2929 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2930 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2931 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2932 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2933 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2934 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2935else
2936 AR_FOR_BUILD="\$(AR)"
2937 AS_FOR_BUILD="\$(AS)"
fb0103e5 2938 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2939 CXX_FOR_BUILD="\$(CXX)"
2940 GCJ_FOR_BUILD="\$(GCJ)"
2941 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2942 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2943 LD_FOR_BUILD="\$(LD)"
2944 NM_FOR_BUILD="\$(NM)"
2945 RANLIB_FOR_BUILD="\$(RANLIB)"
2946 WINDRES_FOR_BUILD="\$(WINDRES)"
2947 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2948fi
2949
2950ac_ext=c
1c710c3c
DJ
2951ac_cpp='$CPP $CPPFLAGS'
2952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2958echo "$as_me:$LINENO: checking for $ac_word" >&5
2959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2960if test "${ac_cv_prog_CC+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977done
2978done
2979
2980fi
2981fi
2982CC=$ac_cv_prog_CC
2983if test -n "$CC"; then
2aeb72e9
DD
2984 echo "$as_me:$LINENO: result: $CC" >&5
2985echo "${ECHO_T}$CC" >&6
1c710c3c 2986else
2aeb72e9
DD
2987 echo "$as_me:$LINENO: result: no" >&5
2988echo "${ECHO_T}no" >&6
1c710c3c
DJ
2989fi
2990
2991fi
2992if test -z "$ac_cv_prog_CC"; then
2993 ac_ct_CC=$CC
fb0103e5
RG
2994 # Extract the first word of "gcc", so it can be a program name with args.
2995set dummy gcc; 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_ac_ct_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003else
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_ac_ct_CC="gcc"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015done
3016done
3017
3018fi
3019fi
3020ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3022 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3023echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 3024else
2aeb72e9
DD
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
1c710c3c
DJ
3027fi
3028
2aeb72e9 3029 CC=$ac_ct_CC
1c710c3c
DJ
3030else
3031 CC="$ac_cv_prog_CC"
3032fi
3033
3034if test -z "$CC"; then
2aeb72e9
DD
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3037set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3042else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
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_CC="${ac_tool_prefix}cc"
3054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057done
3058done
3059
0b0dc272 3060fi
0b0dc272 3061fi
1c710c3c 3062CC=$ac_cv_prog_CC
af71363e 3063if test -n "$CC"; then
2aeb72e9
DD
3064 echo "$as_me:$LINENO: result: $CC" >&5
3065echo "${ECHO_T}$CC" >&6
0b0dc272 3066else
2aeb72e9
DD
3067 echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6
0b0dc272
AM
3069fi
3070
2aeb72e9
DD
3071fi
3072if test -z "$ac_cv_prog_CC"; then
3073 ac_ct_CC=$CC
3074 # Extract the first word of "cc", so it can be a program name with args.
3075set dummy cc; ac_word=$2
3076echo "$as_me:$LINENO: checking for $ac_word" >&5
3077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="cc"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
11a67599 3094 fi
2aeb72e9
DD
3095done
3096done
3097
3098fi
3099fi
3100ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101if test -n "$ac_ct_CC"; then
3102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103echo "${ECHO_T}$ac_ct_CC" >&6
3104else
3105 echo "$as_me:$LINENO: result: no" >&5
3106echo "${ECHO_T}no" >&6
3107fi
3108
3109 CC=$ac_ct_CC
3110else
3111 CC="$ac_cv_prog_CC"
3112fi
3113
1c710c3c 3114fi
55ffb5ed
NN
3115if test -z "$CC"; then
3116 # Extract the first word of "cc", so it can be a program name with args.
3117set dummy cc; ac_word=$2
2aeb72e9
DD
3118echo "$as_me:$LINENO: checking for $ac_word" >&5
3119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3120if test "${ac_cv_prog_CC+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3122else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125else
0b0dc272 3126 ac_prog_rejected=no
1c710c3c
DJ
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135 ac_prog_rejected=yes
3136 continue
3137 fi
3138 ac_cv_prog_CC="cc"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142done
3143done
3144
55ffb5ed
NN
3145if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3148 shift
1c710c3c 3149 if test $# != 0; then
55ffb5ed
NN
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3153 shift
1c710c3c 3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3155 fi
3156fi
3157fi
3158fi
1c710c3c 3159CC=$ac_cv_prog_CC
55ffb5ed 3160if test -n "$CC"; then
2aeb72e9
DD
3161 echo "$as_me:$LINENO: result: $CC" >&5
3162echo "${ECHO_T}$CC" >&6
55ffb5ed 3163else
2aeb72e9
DD
3164 echo "$as_me:$LINENO: result: no" >&5
3165echo "${ECHO_T}no" >&6
55ffb5ed
NN
3166fi
3167
1c710c3c
DJ
3168fi
3169if test -z "$CC"; then
3170 if test -n "$ac_tool_prefix"; then
2aeb72e9 3171 for ac_prog in cl
1c710c3c
DJ
3172 do
3173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3175echo "$as_me:$LINENO: checking for $ac_word" >&5
3176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3177if test "${ac_cv_prog_CC+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3179else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182else
1c710c3c
DJ
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194done
3195done
3196
55ffb5ed
NN
3197fi
3198fi
1c710c3c 3199CC=$ac_cv_prog_CC
55ffb5ed 3200if test -n "$CC"; then
2aeb72e9
DD
3201 echo "$as_me:$LINENO: result: $CC" >&5
3202echo "${ECHO_T}$CC" >&6
a4b9e93e 3203else
2aeb72e9
DD
3204 echo "$as_me:$LINENO: result: no" >&5
3205echo "${ECHO_T}no" >&6
fb0103e5 3206fi
af71363e 3207
1c710c3c
DJ
3208 test -n "$CC" && break
3209 done
af71363e 3210fi
1c710c3c
DJ
3211if test -z "$CC"; then
3212 ac_ct_CC=$CC
2aeb72e9 3213 for ac_prog in cl
1c710c3c
DJ
3214do
3215 # Extract the first word of "$ac_prog", so it can be a program name with args.
3216set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3217echo "$as_me:$LINENO: checking for $ac_word" >&5
3218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3219if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3221else
1c710c3c
DJ
3222 if test -n "$ac_ct_CC"; then
3223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3224else
1c710c3c
DJ
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3232 ac_cv_prog_ac_ct_CC="$ac_prog"
3233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236done
3237done
3238
af71363e
AS
3239fi
3240fi
1c710c3c
DJ
3241ac_ct_CC=$ac_cv_prog_ac_ct_CC
3242if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3243 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3244echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3245else
2aeb72e9
DD
3246 echo "$as_me:$LINENO: result: no" >&5
3247echo "${ECHO_T}no" >&6
af71363e 3248fi
0b0dc272 3249
1c710c3c
DJ
3250 test -n "$ac_ct_CC" && break
3251done
3252
2aeb72e9 3253 CC=$ac_ct_CC
1c710c3c
DJ
3254fi
3255
3256fi
3257
3258
18c04407
RW
3259test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3260echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1c710c3c
DJ
3262See \`config.log' for more details." >&5
3263echo "$as_me: error: no acceptable C compiler found in \$PATH
3264See \`config.log' for more details." >&2;}
18c04407 3265 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3266
3267# Provide some information about the compiler.
2aeb72e9
DD
3268echo "$as_me:$LINENO:" \
3269 "checking for C compiler version" >&5
1c710c3c 3270ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3271{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3272 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
2aeb72e9
DD
3276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3277 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
2aeb72e9
DD
3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3282 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286
3287cat >conftest.$ac_ext <<_ACEOF
3288/* confdefs.h. */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h. */
3293
3294int
3295main ()
3296{
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302ac_clean_files_save=$ac_clean_files
3303ac_clean_files="$ac_clean_files a.out a.exe b.out"
3304# Try to create an executable without -o first, disregard a.out.
3305# It will help us diagnose broken compilers, and finding out an intuition
3306# of exeext.
2aeb72e9
DD
3307echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3308echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3309ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3310if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3311 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; then
2aeb72e9
DD
3315 # Find the output, starting from the most likely. This scheme is
3316# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3317# resort.
3318
3319# Be careful to initialize this variable, since it used to be cached.
3320# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3321ac_cv_exeext=
3322# b.out is created by i960 compilers.
3323for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3324do
3325 test -f "$ac_file" || continue
3326 case $ac_file in
2aeb72e9
DD
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3328 ;;
3329 conftest.$ac_ext )
3330 # This is the source file.
1c710c3c
DJ
3331 ;;
3332 [ab].out )
3333 # We found the default executable, but exeext='' is most
3334 # certainly right.
3335 break;;
3336 *.* )
2aeb72e9
DD
3337 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 # FIXME: I believe we export ac_cv_exeext for Libtool,
3339 # but it would be cool to find out if it's true. Does anybody
3340 # maintain Libtool? --akim.
3341 export ac_cv_exeext
1c710c3c
DJ
3342 break;;
3343 * )
3344 break;;
3345 esac
3346done
3347else
3348 echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
18c04407
RW
3351{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3352echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3353{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3354See \`config.log' for more details." >&5
3355echo "$as_me: error: C compiler cannot create executables
3356See \`config.log' for more details." >&2;}
18c04407 3357 { (exit 77); exit 77; }; }; }
1c710c3c
DJ
3358fi
3359
3360ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3361echo "$as_me:$LINENO: result: $ac_file" >&5
3362echo "${ECHO_T}$ac_file" >&6
1c710c3c 3363
2aeb72e9 3364# Check the compiler produces executables we can run. If not, either
1c710c3c 3365# the compiler is broken, or we cross compile.
2aeb72e9
DD
3366echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3367echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3368# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3369# If not cross compiling, check that we can run a simple program.
3370if test "$cross_compiling" != yes; then
3371 if { ac_try='./$ac_file'
2aeb72e9
DD
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
1c710c3c
DJ
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 cross_compiling=no
3378 else
3379 if test "$cross_compiling" = maybe; then
3380 cross_compiling=yes
3381 else
18c04407
RW
3382 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3383echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1c710c3c
DJ
3385If you meant to cross compile, use \`--host'.
3386See \`config.log' for more details." >&5
3387echo "$as_me: error: cannot run C compiled programs.
3388If you meant to cross compile, use \`--host'.
3389See \`config.log' for more details." >&2;}
18c04407 3390 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3391 fi
3392 fi
3393fi
2aeb72e9
DD
3394echo "$as_me:$LINENO: result: yes" >&5
3395echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3396
3397rm -f a.out a.exe conftest$ac_cv_exeext b.out
3398ac_clean_files=$ac_clean_files_save
2aeb72e9 3399# Check the compiler produces executables we can run. If not, either
1c710c3c 3400# the compiler is broken, or we cross compile.
2aeb72e9
DD
3401echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3402echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3403echo "$as_me:$LINENO: result: $cross_compiling" >&5
3404echo "${ECHO_T}$cross_compiling" >&6
3405
3406echo "$as_me:$LINENO: checking for suffix of executables" >&5
3407echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3409 (eval $ac_link) 2>&5
1c710c3c
DJ
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; then
3413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3415# work properly (i.e., refer to `conftest.exe'), while it won't with
3416# `rm'.
3417for ac_file in conftest.exe conftest conftest.*; do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
2aeb72e9 3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3422 export ac_cv_exeext
1c710c3c
DJ
3423 break;;
3424 * ) break;;
3425 esac
3426done
af71363e 3427else
18c04407
RW
3428 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3429echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1c710c3c
DJ
3431See \`config.log' for more details." >&5
3432echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3433See \`config.log' for more details." >&2;}
18c04407 3434 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3435fi
3436
3437rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3438echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3439echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3440
3441rm -f conftest.$ac_ext
3442EXEEXT=$ac_cv_exeext
3443ac_exeext=$EXEEXT
2aeb72e9
DD
3444echo "$as_me:$LINENO: checking for suffix of object files" >&5
3445echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3446if test "${ac_cv_objext+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h. */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h. */
3455
3456int
3457main ()
3458{
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
3464rm -f conftest.o conftest.obj
2aeb72e9
DD
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>&5
1c710c3c
DJ
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
2aeb72e9 3470 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3471 case $ac_file in
2aeb72e9 3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3473 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3474 break;;
3475 esac
3476done
3477else
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
18c04407
RW
3481{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3482echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3484See \`config.log' for more details." >&5
3485echo "$as_me: error: cannot compute suffix of object files: cannot compile
3486See \`config.log' for more details." >&2;}
18c04407 3487 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3488fi
3489
3490rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491fi
2aeb72e9
DD
3492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3493echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3494OBJEXT=$ac_cv_objext
3495ac_objext=$OBJEXT
2aeb72e9
DD
3496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3498if test "${ac_cv_c_compiler_gnu+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
3501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507
3508int
3509main ()
3510{
3511#ifndef __GNUC__
3512 choke me
3513#endif
3514
3515 ;
3516 return 0;
3517}
3518_ACEOF
3519rm -f conftest.$ac_objext
2aeb72e9
DD
3520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3527 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_c_werror_flag"
3529 || test ! -s conftest.err'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
1c710c3c
DJ
3541 ac_compiler_gnu=yes
3542else
3543 echo "$as_me: failed program was:" >&5
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
2aeb72e9 3546ac_compiler_gnu=no
1c710c3c 3547fi
2aeb72e9 3548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3549ac_cv_c_compiler_gnu=$ac_compiler_gnu
3550
3551fi
2aeb72e9
DD
3552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3554GCC=`test $ac_compiler_gnu = yes && echo yes`
3555ac_test_CFLAGS=${CFLAGS+set}
3556ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3557CFLAGS="-g"
3558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3560if test "${ac_cv_prog_cc_g+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562else
2aeb72e9 3563 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3564/* confdefs.h. */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h. */
3569
3570int
3571main ()
3572{
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578rm -f conftest.$ac_objext
2aeb72e9
DD
3579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag"
3588 || test ! -s conftest.err'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
1c710c3c
DJ
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3593 (exit $ac_status); }; } &&
3594 { ac_try='test -s conftest.$ac_objext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
1c710c3c
DJ
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3599 (exit $ac_status); }; }; then
55ffb5ed
NN
3600 ac_cv_prog_cc_g=yes
3601else
1c710c3c
DJ
3602 echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3604
2aeb72e9 3605ac_cv_prog_cc_g=no
0b0dc272 3606fi
2aeb72e9 3607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3608fi
2aeb72e9
DD
3609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3611if test "$ac_test_CFLAGS" = set; then
1c710c3c 3612 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3613elif test $ac_cv_prog_cc_g = yes; then
3614 if test "$GCC" = yes; then
3615 CFLAGS="-g -O2"
3616 else
3617 CFLAGS="-g"
3618 fi
3619else
3620 if test "$GCC" = yes; then
3621 CFLAGS="-O2"
3622 else
3623 CFLAGS=
3624 fi
3625fi
2aeb72e9
DD
3626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3628if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
2aeb72e9 3631 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3632ac_save_CC=$CC
3633cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
3639#include <stdarg.h>
3640#include <stdio.h>
3641#include <sys/types.h>
3642#include <sys/stat.h>
3643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3644struct buf { int x; };
3645FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646static char *e (p, i)
3647 char **p;
3648 int i;
3649{
3650 return p[i];
3651}
3652static char *f (char * (*g) (char **, int), char **p, ...)
3653{
3654 char *s;
3655 va_list v;
3656 va_start (v,p);
3657 s = g (p, va_arg (v,int));
3658 va_end (v);
3659 return s;
3660}
3661
3662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3663 function prototypes and stuff, but not '\xHH' hex character constants.
3664 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3665 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3667 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3668 that's true only with -std1. */
1c710c3c
DJ
3669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670
3671int test (int i, double x);
3672struct s1 {int (*f) (int a);};
3673struct s2 {int (*f) (double a);};
3674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675int argc;
3676char **argv;
3677int
3678main ()
3679{
3680return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3681 ;
3682 return 0;
3683}
3684_ACEOF
2aeb72e9
DD
3685# Don't try gcc -ansi; that turns off useful extensions and
3686# breaks some systems' header files.
3687# AIX -qlanglvl=ansi
3688# Ultrix and OSF/1 -std1
3689# HP-UX 10.20 and later -Ae
3690# HP-UX older versions -Aa -D_HPUX_SOURCE
3691# SVR4 -Xc -D__EXTENSIONS__
3692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3693do
3694 CC="$ac_save_CC $ac_arg"
3695 rm -f conftest.$ac_objext
2aeb72e9
DD
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 ac_cv_prog_cc_stdc=$ac_arg
3718break
1c710c3c
DJ
3719else
3720 echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723fi
2aeb72e9 3724rm -f conftest.err conftest.$ac_objext
1c710c3c 3725done
2aeb72e9 3726rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3727CC=$ac_save_CC
3728
3729fi
2aeb72e9
DD
3730
3731case "x$ac_cv_prog_cc_stdc" in
3732 x|xno)
3733 echo "$as_me:$LINENO: result: none needed" >&5
3734echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3735 *)
2aeb72e9
DD
3736 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3738 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3739esac
3740
2aeb72e9
DD
3741# Some people use a C++ compiler to compile C. Since we use `exit',
3742# in C++ we need to declare it. In case someone uses the same compiler
3743# for both compiling C and C++ we need to have the C++ compiler decide
3744# the declaration of exit, since it's the most demanding environment.
3745cat >conftest.$ac_ext <<_ACEOF
3746#ifndef __cplusplus
3747 choke me
3748#endif
3749_ACEOF
3750rm -f conftest.$ac_objext
3751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752 (eval $ac_compile) 2>conftest.er1
3753 ac_status=$?
3754 grep -v '^ *+' conftest.er1 >conftest.err
3755 rm -f conftest.er1
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -z "$ac_c_werror_flag"
3760 || test ! -s conftest.err'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 for ac_declaration in \
3773 '' \
3774 'extern "C" void std::exit (int) throw (); using std::exit;' \
3775 'extern "C" void std::exit (int); using std::exit;' \
3776 'extern "C" void exit (int) throw ();' \
3777 'extern "C" void exit (int);' \
3778 'void exit (int);'
3779do
3780 cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h. */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h. */
3786$ac_declaration
3787#include <stdlib.h>
3788int
3789main ()
3790{
3791exit (42);
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext
3797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798 (eval $ac_compile) 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -z "$ac_c_werror_flag"
3806 || test ! -s conftest.err'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3818 :
3819else
3820 echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823continue
3824fi
3825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3826 cat >conftest.$ac_ext <<_ACEOF
3827/* confdefs.h. */
3828_ACEOF
3829cat confdefs.h >>conftest.$ac_ext
3830cat >>conftest.$ac_ext <<_ACEOF
3831/* end confdefs.h. */
3832$ac_declaration
3833int
3834main ()
3835{
3836exit (42);
3837 ;
3838 return 0;
3839}
3840_ACEOF
3841rm -f conftest.$ac_objext
3842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>conftest.er1
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -z "$ac_c_werror_flag"
3851 || test ! -s conftest.err'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 break
3864else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868fi
3869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3870done
3871rm -f conftest*
3872if test -n "$ac_declaration"; then
3873 echo '#ifdef __cplusplus' >>confdefs.h
3874 echo $ac_declaration >>confdefs.h
3875 echo '#endif' >>confdefs.h
3876fi
3877
3878else
3879 echo "$as_me: failed program was:" >&5
3880sed 's/^/| /' conftest.$ac_ext >&5
3881
3882fi
3883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884ac_ext=c
3885ac_cpp='$CPP $CPPFLAGS'
3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889
3890ac_ext=cc
3891ac_cpp='$CXXCPP $CPPFLAGS'
3892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3895if test -n "$ac_tool_prefix"; then
3896 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3897 do
3898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900echo "$as_me:$LINENO: checking for $ac_word" >&5
3901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902if test "${ac_cv_prog_CXX+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905 if test -n "$CXX"; then
3906 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919done
3920done
55ffb5ed 3921
c3a86da9
DJ
3922fi
3923fi
3924CXX=$ac_cv_prog_CXX
3925if test -n "$CXX"; then
2aeb72e9
DD
3926 echo "$as_me:$LINENO: result: $CXX" >&5
3927echo "${ECHO_T}$CXX" >&6
c3a86da9 3928else
2aeb72e9
DD
3929 echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6
c3a86da9
DJ
3931fi
3932
3933 test -n "$CXX" && break
3934 done
3935fi
3936if test -z "$CXX"; then
3937 ac_ct_CXX=$CXX
2aeb72e9 3938 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3939do
3940 # Extract the first word of "$ac_prog", so it can be a program name with args.
3941set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3942echo "$as_me:$LINENO: checking for $ac_word" >&5
3943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3944if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947 if test -n "$ac_ct_CXX"; then
3948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3949else
3950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH
3952do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3957 ac_cv_prog_ac_ct_CXX="$ac_prog"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961done
3962done
3963
3964fi
3965fi
3966ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3967if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3968 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3969echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3970else
2aeb72e9
DD
3971 echo "$as_me:$LINENO: result: no" >&5
3972echo "${ECHO_T}no" >&6
c3a86da9
DJ
3973fi
3974
3975 test -n "$ac_ct_CXX" && break
3976done
2aeb72e9 3977test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3978
2aeb72e9 3979 CXX=$ac_ct_CXX
c3a86da9
DJ
3980fi
3981
2aeb72e9 3982
c3a86da9 3983# Provide some information about the compiler.
2aeb72e9
DD
3984echo "$as_me:$LINENO:" \
3985 "checking for C++ compiler version" >&5
c3a86da9 3986ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3987{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3988 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
2aeb72e9
DD
3992{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3993 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }
2aeb72e9
DD
3997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3998 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
4002
2aeb72e9
DD
4003echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4004echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
4005if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007else
4008 cat >conftest.$ac_ext <<_ACEOF
4009/* confdefs.h. */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h. */
4014
4015int
4016main ()
4017{
4018#ifndef __GNUC__
4019 choke me
4020#endif
4021
4022 ;
4023 return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext
2aeb72e9
DD
4027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_cxx_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
c3a86da9
DJ
4048 ac_compiler_gnu=yes
4049else
4050 echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
2aeb72e9 4053ac_compiler_gnu=no
c3a86da9 4054fi
2aeb72e9 4055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4056ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4057
4058fi
2aeb72e9
DD
4059echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4060echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
4061GXX=`test $ac_compiler_gnu = yes && echo yes`
4062ac_test_CXXFLAGS=${CXXFLAGS+set}
4063ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
4064CXXFLAGS="-g"
4065echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4066echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
4067if test "${ac_cv_prog_cxx_g+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
2aeb72e9 4070 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
4076
4077int
4078main ()
4079{
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085rm -f conftest.$ac_objext
2aeb72e9
DD
4086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_cxx_werror_flag"
4095 || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
c3a86da9
DJ
4107 ac_cv_prog_cxx_g=yes
4108else
4109 echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
2aeb72e9
DD
4112ac_cv_prog_cxx_g=no
4113fi
4114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115fi
4116echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4117echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4118if test "$ac_test_CXXFLAGS" = set; then
4119 CXXFLAGS=$ac_save_CXXFLAGS
4120elif test $ac_cv_prog_cxx_g = yes; then
4121 if test "$GXX" = yes; then
4122 CXXFLAGS="-g -O2"
4123 else
4124 CXXFLAGS="-g"
4125 fi
4126else
4127 if test "$GXX" = yes; then
4128 CXXFLAGS="-O2"
4129 else
4130 CXXFLAGS=
4131 fi
4132fi
4133for ac_declaration in \
4134 '' \
4135 'extern "C" void std::exit (int) throw (); using std::exit;' \
4136 'extern "C" void std::exit (int); using std::exit;' \
4137 'extern "C" void exit (int) throw ();' \
4138 'extern "C" void exit (int);' \
4139 'void exit (int);'
4140do
4141 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
2aeb72e9
DD
4147$ac_declaration
4148#include <stdlib.h>
c3a86da9
DJ
4149int
4150main ()
4151{
2aeb72e9 4152exit (42);
c3a86da9
DJ
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext
2aeb72e9
DD
4158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_cxx_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
c3a86da9
DJ
4179 :
4180else
4181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4183
2aeb72e9
DD
4184continue
4185fi
4186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h. */
2aeb72e9 4193$ac_declaration
c3a86da9
DJ
4194int
4195main ()
4196{
2aeb72e9 4197exit (42);
c3a86da9
DJ
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext
2aeb72e9
DD
4203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_cxx_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 break
c3a86da9
DJ
4225else
4226 echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
11a67599 4229fi
2aeb72e9
DD
4230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4231done
4232rm -f conftest*
4233if test -n "$ac_declaration"; then
4234 echo '#ifdef __cplusplus' >>confdefs.h
4235 echo $ac_declaration >>confdefs.h
4236 echo '#endif' >>confdefs.h
c3a86da9
DJ
4237fi
4238
4239ac_ext=c
4240ac_cpp='$CPP $CPPFLAGS'
4241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244
4245
4246# We must set the default linker to the linker used by gcc for the correct
4247# operation of libtool. If LD is not defined and we are using gcc, try to
4248# set the LD default to the ld used by gcc.
4249if test -z "$LD"; then
4250 if test "$GCC" = yes; then
4251 case $build in
4252 *-*-mingw*)
4253 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4254 *)
4255 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4256 esac
4257 case $gcc_prog_ld in
4258 # Accept absolute paths.
4259 [\\/]* | [A-Za-z]:[\\/]*)
4260 LD="$gcc_prog_ld" ;;
4261 esac
4262 fi
23f6b2f9
PB
4263fi
4264
23f6b2f9
PB
4265
4266
55ffb5ed 4267
1c710c3c
DJ
4268if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4270set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4271echo "$as_me:$LINENO: checking for $ac_word" >&5
4272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4273if test "${ac_cv_prog_GNATBIND+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4275else
4276 if test -n "$GNATBIND"; then
4277 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4278else
1c710c3c
DJ
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4286 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290done
4291done
4292
55ffb5ed
NN
4293fi
4294fi
1c710c3c 4295GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4296if test -n "$GNATBIND"; then
2aeb72e9
DD
4297 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4298echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4299else
2aeb72e9
DD
4300 echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
55ffb5ed
NN
4302fi
4303
1c710c3c 4304fi
55ffb5ed 4305if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4306 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4307 # Extract the first word of "gnatbind", so it can be a program name with args.
4308set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4309echo "$as_me:$LINENO: checking for $ac_word" >&5
4310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4311if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4313else
1c710c3c
DJ
4314 if test -n "$ac_ct_GNATBIND"; then
4315 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4316else
1c710c3c
DJ
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4324 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328done
4329done
4330
2aeb72e9 4331 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4332fi
4333fi
1c710c3c
DJ
4334ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4335if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4336 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4337echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4338else
2aeb72e9
DD
4339 echo "$as_me:$LINENO: result: no" >&5
4340echo "${ECHO_T}no" >&6
55ffb5ed
NN
4341fi
4342
2aeb72e9 4343 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4344else
1c710c3c 4345 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4346fi
4347
1c710c3c
DJ
4348if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4350set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4351echo "$as_me:$LINENO: checking for $ac_word" >&5
4352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4353if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4355else
4356 if test -n "$GNATMAKE"; then
4357 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4358else
1c710c3c
DJ
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4366 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370done
4371done
4372
5305be7e
RG
4373fi
4374fi
1c710c3c 4375GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4376if test -n "$GNATMAKE"; then
2aeb72e9
DD
4377 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4378echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4379else
2aeb72e9
DD
4380 echo "$as_me:$LINENO: result: no" >&5
4381echo "${ECHO_T}no" >&6
5305be7e
RG
4382fi
4383
1c710c3c 4384fi
5305be7e 4385if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4386 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4387 # Extract the first word of "gnatmake", so it can be a program name with args.
4388set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4389echo "$as_me:$LINENO: checking for $ac_word" >&5
4390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4391if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4393else
1c710c3c
DJ
4394 if test -n "$ac_ct_GNATMAKE"; then
4395 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4396else
1c710c3c
DJ
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4404 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408done
4409done
4410
2aeb72e9 4411 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4412fi
4413fi
1c710c3c
DJ
4414ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4415if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4416 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4417echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4418else
2aeb72e9
DD
4419 echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6
5305be7e
RG
4421fi
4422
2aeb72e9 4423 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4424else
1c710c3c 4425 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4426fi
4427
2aeb72e9
DD
4428echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4429echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4430if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4432else
4433 cat >conftest.adb <<EOF
4434procedure conftest is begin null; end conftest;
4435EOF
4436acx_cv_cc_gcc_supports_ada=no
4437# There is a bug in old released versions of GCC which causes the
4438# driver to exit successfully when the appropriate language module
4439# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4440# Therefore we must check for the error message as well as an
4441# unsuccessful exit.
1db673ca
RO
4442# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4443# given a .adb file, but produce no object file. So we must check
4444# if an object file was really produced to guard against this.
55ffb5ed 4445errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4446if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4447 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4448fi
4449rm -f conftest.*
4450fi
2aeb72e9
DD
4451echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4452echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4453
5305be7e 4454if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4455 have_gnat=yes
4456else
4457 have_gnat=no
4458fi
4459
2aeb72e9
DD
4460echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4461echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4462if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4464else
4465 echo abfoo >t1
4466 echo cdfoo >t2
4467 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4468 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4469 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4470 :
4471 else
4472 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4473 fi
4474 fi
a76494aa
PB
4475 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4476 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4477 :
a76494aa
PB
4478 else
4479 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4480 fi
4481 fi
4482 rm t1 t2
4483
4484fi
2aeb72e9
DD
4485echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4486echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4487do_compare="$gcc_cv_prog_cmp_skip"
4488
4489
55ffb5ed 4490
bebf829d 4491# Check for GMP and MPFR
e69bf64b 4492gmplibs="-lmpfr -lgmp"
6de9cd9a 4493gmpinc=
e69bf64b
PB
4494have_gmp=no
4495
bebf829d
PB
4496# Specify a location for mpfr
4497# check for this first so it ends up on the link line before gmp.
1c710c3c 4498
2aeb72e9 4499# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4500if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4501 withval="$with_mpfr_dir"
4502 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4503Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4504echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4505Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4506 { (exit 1); exit 1; }; }
2aeb72e9 4507fi;
bebf829d
PB
4508
4509
2aeb72e9 4510# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4511if test "${with_mpfr+set}" = set; then
2aeb72e9 4512 withval="$with_mpfr"
1c710c3c 4513
2aeb72e9 4514fi;
bebf829d 4515
2aeb72e9 4516# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4517if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4518 withval="$with_mpfr_include"
1c710c3c 4519
2aeb72e9 4520fi;
8a877c9c 4521
2aeb72e9 4522# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4523if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4524 withval="$with_mpfr_lib"
8a877c9c 4525
2aeb72e9 4526fi;
bebf829d
PB
4527
4528if test "x$with_mpfr" != x; then
4529 gmplibs="-L$with_mpfr/lib $gmplibs"
4530 gmpinc="-I$with_mpfr/include"
4531fi
8a877c9c
KG
4532if test "x$with_mpfr_include" != x; then
4533 gmpinc="-I$with_mpfr_include"
4534fi
4535if test "x$with_mpfr_lib" != x; then
4536 gmplibs="-L$with_mpfr_lib $gmplibs"
4537fi
e69bf64b
PB
4538if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4539 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4540 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4541 # Do not test the mpfr version. Assume that it is sufficient, since
4542 # it is in the source tree, and the library has not been built yet
4543 # but it would be included on the link line in the version check below
4544 # hence making the test fail.
4545 have_gmp=yes
4546fi
bebf829d 4547
6de9cd9a 4548# Specify a location for gmp
1c710c3c 4549
2aeb72e9 4550# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4551if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4552 withval="$with_gmp_dir"
4553 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4554Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4555echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4556Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4557 { (exit 1); exit 1; }; }
2aeb72e9 4558fi;
6de9cd9a 4559
6de9cd9a 4560
2aeb72e9 4561# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4562if test "${with_gmp+set}" = set; then
2aeb72e9 4563 withval="$with_gmp"
1c710c3c 4564
2aeb72e9 4565fi;
6de9cd9a 4566
2aeb72e9 4567# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4568if test "${with_gmp_include+set}" = set; then
2aeb72e9 4569 withval="$with_gmp_include"
1c710c3c 4570
2aeb72e9 4571fi;
8a877c9c 4572
2aeb72e9 4573# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4574if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4575 withval="$with_gmp_lib"
8a877c9c 4576
2aeb72e9 4577fi;
8a877c9c 4578
6de9cd9a 4579
bebf829d
PB
4580if test "x$with_gmp" != x; then
4581 gmplibs="-L$with_gmp/lib $gmplibs"
4582 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4583fi
8a877c9c
KG
4584if test "x$with_gmp_include" != x; then
4585 gmpinc="-I$with_gmp_include $gmpinc"
4586fi
4587if test "x$with_gmp_lib" != x; then
4588 gmplibs="-L$with_gmp_lib $gmplibs"
4589fi
e69bf64b
PB
4590if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4591 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4592 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4593 # Do not test the gmp version. Assume that it is sufficient, since
4594 # it is in the source tree, and the library has not been built yet
4595 # but it would be included on the link line in the version check below
4596 # hence making the test fail.
4597 have_gmp=yes
4598fi
6de9cd9a 4599
d943d7c4 4600if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4601 have_gmp=yes
4602 saved_CFLAGS="$CFLAGS"
4603 CFLAGS="$CFLAGS $gmpinc"
4604 # Check GMP actually works
2aeb72e9
DD
4605 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4606echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4607
4608cat >conftest.$ac_ext <<_ACEOF
4609/* confdefs.h. */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h. */
6de9cd9a 4614#include "gmp.h"
1c710c3c
DJ
4615int
4616main ()
4617{
6de9cd9a 4618
e69bf64b
PB
4619 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4620 choke me
4621 #endif
1c710c3c
DJ
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627rm -f conftest.$ac_objext
2aeb72e9
DD
4628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4651else
4652 echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
2aeb72e9
DD
4655echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4657fi
2aeb72e9 4658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4659
e69bf64b
PB
4660 if test x"$have_gmp" = xyes; then
4661 saved_LIBS="$LIBS"
4662 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4663 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4664echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4665 cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h. */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h. */
70ec446f 4671#include <gmp.h>
e69bf64b 4672 #include <mpfr.h>
1c710c3c
DJ
4673int
4674main ()
4675{
e48d66a9 4676
36c713e0 4677 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
e69bf64b
PB
4678 choke me
4679 #endif
54e433bc
MK
4680 mpfr_t n;
4681 mpfr_t x;
e69bf64b 4682 int t;
54e433bc
MK
4683 mpfr_init (n);
4684 mpfr_init (x);
e69bf64b
PB
4685 mpfr_atan2 (n, n, x, GMP_RNDN);
4686 mpfr_erfc (n, x, GMP_RNDN);
4687 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4688
4689 ;
4690 return 0;
4691}
4692_ACEOF
4693rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_c_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 (eval $ac_try) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest$ac_exeext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
1c710c3c
DJ
4715 cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h. */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h. */
a3993f33 4721#include <gmp.h>
e69bf64b 4722 #include <mpfr.h>
1c710c3c
DJ
4723int
4724main ()
4725{
a3993f33 4726
36c713e0 4727 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
4728 choke me
4729 #endif
4730 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
4736rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4744 (exit $ac_status); } &&
4745 { ac_try='test -z "$ac_c_werror_flag"
4746 || test ! -s conftest.err'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest$ac_exeext'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 echo "$as_me:$LINENO: result: yes" >&5
4759echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4760else
4761 echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
2aeb72e9
DD
4764echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4765echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4766fi
2aeb72e9 4767rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4768 conftest$ac_exeext conftest.$ac_ext
4769else
4770 echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
2aeb72e9
DD
4773echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4775fi
2aeb72e9 4776rm -f conftest.err conftest.$ac_objext \
1c710c3c 4777 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4778 LIBS="$saved_LIBS"
4779 fi
4780 CFLAGS="$saved_CFLAGS"
6de9cd9a 4781
e69bf64b 4782 if test x$have_gmp != xyes; then
36c713e0 4783 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
1c710c3c
DJ
4784Try the --with-gmp and/or --with-mpfr options to specify their locations.
4785Copies of these libraries' source code can be found at their respective
4786hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4787See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4788If you obtained GMP and/or MPFR from a vendor distribution package, make
4789sure that you have installed both the libraries and the header files.
4790They may be located in separate packages." >&5
36c713e0 4791echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
ca558912
KG
4792Try the --with-gmp and/or --with-mpfr options to specify their locations.
4793Copies of these libraries' source code can be found at their respective
4794hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4795See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4796If you obtained GMP and/or MPFR from a vendor distribution package, make
4797sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4798They may be located in separate packages." >&2;}
4799 { (exit 1); exit 1; }; }
e69bf64b 4800 fi
70ec446f
KG
4801fi
4802
bebf829d 4803# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4804
4805
4806
f8bf9252
SP
4807
4808# Check for PPL
4809ppl_major_version=0
4810ppl_minor_version=10
0a280b35 4811ppllibs=" -lppl_c -lppl -lgmpxx "
f8bf9252
SP
4812pplinc=
4813
4814
4815# Check whether --with-ppl or --without-ppl was given.
4816if test "${with_ppl+set}" = set; then
4817 withval="$with_ppl"
4818
4819fi;
4820
4821# Check whether --with-ppl_include or --without-ppl_include was given.
4822if test "${with_ppl_include+set}" = set; then
4823 withval="$with_ppl_include"
4824
4825fi;
4826
4827# Check whether --with-ppl_lib or --without-ppl_lib was given.
4828if test "${with_ppl_lib+set}" = set; then
4829 withval="$with_ppl_lib"
4830
4831fi;
4832
53095c56
SP
4833case $with_ppl in
4834 no)
4835 ppllibs=
4836 ;;
4837 *)
4838 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
4839 pplinc="-I$with_ppl/include $pplinc"
4840 LIBS="$ppllibs $LIBS"
4841 ;;
4842esac
f8bf9252
SP
4843if test "x$with_ppl_include" != x; then
4844 pplinc="-I$with_ppl_include $pplinc"
4845fi
4846if test "x$with_ppl_lib" != x; then
4847 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
4848 LIBS="$ppllibs $LIBS"
4849fi
4850if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4851 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
4852 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4853 LIBS="$ppllibs $LIBS"
4854fi
4855
d789184e
SP
4856# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4857if test "${enable_ppl_version_check+set}" = set; then
4858 enableval="$enable_ppl_version_check"
4859 ENABLE_PPL_CHECK=$enableval
4860else
4861 ENABLE_PPL_CHECK=yes
f8bf9252
SP
4862fi;
4863
d789184e
SP
4864if test "${ENABLE_PPL_CHECK}" = "yes"; then
4865 saved_CFLAGS="$CFLAGS"
4866 CFLAGS="$CFLAGS $pplinc $gmpinc"
4867 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
f8bf9252 4868echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
d789184e 4869 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include "ppl_c.h"
4876int
4877main ()
4878{
4879
d789184e
SP
4880 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4881 choke me
4882 #endif
f8bf9252
SP
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
4888rm -f conftest.$ac_objext
4889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911echo "${ECHO_T}yes" >&6
4912else
4913 echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916echo "$as_me:$LINENO: result: no" >&5
d789184e 4917echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
f8bf9252
SP
4918fi
4919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
4920 CFLAGS="$saved_CFLAGS"
4921fi
4922
4923# Flags needed for PPL
4924
4925
f8bf9252 4926
f8bf9252 4927
d789184e 4928# Check for CLOOG
23d9794a 4929clooglibs=" -lcloog "
d789184e
SP
4930clooginc=" -DCLOOG_PPL_BACKEND "
4931
4932
4933# Check whether --with-cloog or --without-cloog was given.
4934if test "${with_cloog+set}" = set; then
4935 withval="$with_cloog"
4936
4937fi;
4938
4939# Check whether --with-cloog_include or --without-cloog_include was given.
4940if test "${with_cloog_include+set}" = set; then
4941 withval="$with_cloog_include"
4942
4943fi;
4944
4945# Check whether --with-cloog_lib or --without-cloog_lib was given.
4946if test "${with_cloog_lib+set}" = set; then
4947 withval="$with_cloog_lib"
4948
4949fi;
4950
53095c56
SP
4951case $with_cloog in
4952 no)
4953 clooglibs=
4954 clooginc=
4955 ;;
4956 *)
4957 clooglibs="-L$with_cloog/lib -lcloog"
4958 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4959 LIBS="$clooglibs $LIBS"
4960 ;;
4961esac
d789184e
SP
4962if test "x$with_cloog_include" != x; then
4963 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4964fi
4965if test "x$with_cloog_lib" != x; then
4966 clooglibs="-L$with_cloog_lib -lcloog"
4967 LIBS="$clooglibs $LIBS"
4968fi
4969if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4970 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
4971 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
4972 LIBS="$clooglibs $LIBS"
4973fi
4974
4975# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
4976if test "${enable_cloog_version_check+set}" = set; then
4977 enableval="$enable_cloog_version_check"
4978 ENABLE_CLOOG_CHECK=$enableval
4979else
4980 ENABLE_CLOOG_CHECK=yes
4981fi;
4982
4983if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
4984 saved_CFLAGS="$CFLAGS"
4985 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
4986 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
f8bf9252 4987echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
d789184e 4988 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994#include "cloog/cloog.h"
4995int
4996main ()
4997{
4998
d789184e
SP
4999 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5000 choke me
5001 #endif
f8bf9252
SP
5002
5003 ;
5004 return 0;
5005}
5006_ACEOF
5007rm -f conftest.$ac_objext
5008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 echo "$as_me:$LINENO: result: yes" >&5
5030echo "${ECHO_T}yes" >&6
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5037fi
5038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5039 CFLAGS="$saved_CFLAGS"
5040fi
f8bf9252
SP
5041
5042# Flags needed for CLOOG
5043
5044
5045
5046
1e0f07d3 5047# By default, C is the only stage 1 language.
e1888513 5048stage1_languages=,c,
2805b53a 5049
55ffb5ed
NN
5050# Figure out what language subdirectories are present.
5051# Look if the user specified --enable-languages="..."; if not, use
5052# the environment variable $LANGUAGES if defined. $LANGUAGES might
5053# go away some day.
5054# NB: embedded tabs in this IF block -- do not untabify
5055if test -d ${srcdir}/gcc; then
5056 if test x"${enable_languages+set}" != xset; then
5057 if test x"${LANGUAGES+set}" = xset; then
5058 enable_languages="${LANGUAGES}"
5059 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5060 else
5061 enable_languages=all
5062 fi
5063 else
5064 if test x"${enable_languages}" = x ||
5065 test x"${enable_languages}" = xyes;
5066 then
5067 echo configure.in: --enable-languages needs at least one language argument 1>&2
5068 exit 1
5069 fi
5070 fi
5071 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5072
7f26dfa3
FXC
5073 # 'f95' is the old name for the 'fortran' language. We issue a warning
5074 # and make the substitution.
5075 case ,${enable_languages}, in
5076 *,f95,*)
5077 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5078 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5079 ;;
5080 esac
5081
55ffb5ed
NN
5082 # First scan to see if an enabled language requires some other language.
5083 # We assume that a given config-lang.in will list all the language
5084 # front ends it requires, even if some are required indirectly.
5085 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5086 case ${lang_frag} in
5087 ..) ;;
5088 # The odd quoting in the next line works around
5089 # an apparent bug in bash 1.12 on linux.
5090 ${srcdir}/gcc/[*]/config-lang.in) ;;
5091 *)
5092 # From the config-lang.in, get $language, $lang_requires
5093 language=
5094 lang_requires=
5095 . ${lang_frag}
5096 for other in ${lang_requires} ; do
5097 case ,${enable_languages}, in
5098 *,$other,*) ;;
5099 *,all,*) ;;
5100 *,$language,*)
5101 echo " \`$other' language required by \`$language'; enabling" 1>&2
5102 enable_languages="${enable_languages},${other}"
5103 ;;
5104 esac
5105 done
5106 ;;
5107 esac
5108 done
5109
e1888513 5110 new_enable_languages=,c,
55ffb5ed 5111 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5112 potential_languages=,c,
55ffb5ed
NN
5113
5114 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5115 case ${lang_frag} in
5116 ..) ;;
5117 # The odd quoting in the next line works around
5118 # an apparent bug in bash 1.12 on linux.
5119 ${srcdir}/gcc/[*]/config-lang.in) ;;
5120 *)
1c710c3c 5121 # From the config-lang.in, get $language, $target_libs,
2805b53a 5122 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5123 language=
5124 target_libs=
5125 lang_dirs=
1546bb64 5126 subdir_requires=
e1888513
PB
5127 boot_language=no
5128 build_by_default=yes
55ffb5ed 5129 . ${lang_frag}
e1888513
PB
5130 if test x${language} = x; then
5131 echo "${lang_frag} doesn't set \$language." 1>&2
5132 exit 1
5133 fi
5134
5135 case ,${enable_languages}, in
5136 *,${language},*)
55ffb5ed
NN
5137 # Language was explicitly selected; include it.
5138 add_this_lang=yes
5139 ;;
e1888513
PB
5140 *,all,*)
5141 # 'all' was selected, select it if it is a default language
5142 add_this_lang=${build_by_default}
55ffb5ed
NN
5143 ;;
5144 *)
5145 add_this_lang=no
5146 ;;
5147 esac
6de9cd9a 5148
1546bb64 5149 # Disable languages that need other directories if these aren't available.
95695ad3 5150 for i in $subdir_requires; do
b6348cb3 5151 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5152 case ,${enable_languages}, in
5153 *,${language},*)
5154 # Specifically requested language; tell them.
1c710c3c
DJ
5155 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5156echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5157 { (exit 1); exit 1; }; }
1546bb64
PB
5158 ;;
5159 *)
5160 # Silently disable.
e1888513 5161 add_this_lang=unsupported
1546bb64
PB
5162 ;;
5163 esac
5164 done
5165
e1888513
PB
5166 # Disable Ada if no preexisting GNAT is available.
5167 case ,${enable_languages},:${language}:${have_gnat} in
5168 *,${language},*:ada:no)
5169 # Specifically requested language; tell them.
1c710c3c
DJ
5170 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5171echo "$as_me: error: GNAT is required to build $language" >&2;}
5172 { (exit 1); exit 1; }; }
e1888513
PB
5173 ;;
5174 *:ada:no)
5175 # Silently disable.
5176 add_this_lang=unsupported
5177 ;;
5178 esac
5179
4fab7234
HPN
5180 # Disable a language that is unsupported by the target.
5181 case " $unsupported_languages " in
5182 *" $language "*)
e1888513 5183 add_this_lang=unsupported
4fab7234
HPN
5184 ;;
5185 esac
5186
6de9cd9a 5187 case $add_this_lang in
e1888513 5188 unsupported)
55ffb5ed 5189 # Remove language-dependent dirs.
2805b53a
NN
5190 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5191 ;;
e1888513
PB
5192 no)
5193 # Remove language-dependent dirs; still show language as supported.
5194 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5195 potential_languages="${potential_languages}${language},"
5196 ;;
5197 yes)
5198 new_enable_languages="${new_enable_languages}${language},"
5199 potential_languages="${potential_languages}${language},"
2805b53a
NN
5200 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5201 case ${boot_language} in
5202 yes)
340de83f 5203 # Add to (comma-separated) list of stage 1 languages.
e1888513 5204 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
5205 ;;
5206 esac
5207 ;;
55ffb5ed
NN
5208 esac
5209 ;;
5210 esac
5211 done
5212
2aeb72e9 5213 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 5214if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
5215 enableval="$enable_stage1_languages"
5216 case ,${enable_stage1_languages}, in
e1888513
PB
5217 ,no,|,,)
5218 # Set it to something that will have no effect in the loop below
5219 enable_stage1_languages=c ;;
5220 ,yes,)
5221 enable_stage1_languages=`echo $new_enable_languages | \
5222 sed -e "s/^,//" -e "s/,$//" ` ;;
5223 *,all,*)
5224 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5225 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5226 esac
5227
5228 # Add "good" languages from enable_stage1_languages to stage1_languages,
5229 # while "bad" languages go in missing_languages. Leave no duplicates.
5230 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5231 case $potential_languages in
5232 *,$i,*)
5233 case $stage1_languages in
5234 *,$i,*) ;;
5235 *) stage1_languages="$stage1_languages$i," ;;
5236 esac ;;
5237 *)
5238 case $missing_languages in
5239 *,$i,*) ;;
5240 *) missing_languages="$missing_languages$i," ;;
5241 esac ;;
5242 esac
5243 done
2aeb72e9 5244fi;
e1888513
PB
5245
5246 # Remove leading/trailing commas that were added for simplicity
5247 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5248 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5249 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5250 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5251
55ffb5ed 5252 if test "x$missing_languages" != x; then
1c710c3c 5253 { { echo "$as_me:$LINENO: error:
0cf085e4 5254The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5255Supported languages are: ${potential_languages}" >&5
5256echo "$as_me: error:
5257The following requested languages could not be built: ${missing_languages}
5258Supported languages are: ${potential_languages}" >&2;}
5259 { (exit 1); exit 1; }; }
55ffb5ed 5260 fi
55ffb5ed
NN
5261 if test "x$new_enable_languages" != "x$enable_languages"; then
5262 echo The following languages will be built: ${new_enable_languages}
e1888513 5263 enable_languages="$new_enable_languages"
55ffb5ed 5264 fi
e1888513 5265
1c710c3c 5266
b2eaac4a 5267 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5268fi
5269
27079765
AH
5270# Handle --disable-<component> generically.
5271for dir in $configdirs $build_configdirs $target_configdirs ; do
5272 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5273 varname=`echo $dirname | sed -e s/+/_/g`
5274 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5275 noconfigdirs="$noconfigdirs $dir"
5276 fi
5277done
5278
7cd0cf9c 5279# Check for Boehm's garbage collector
2aeb72e9 5280# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 5281if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
5282 enableval="$enable_objc_gc"
5283 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5284 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5285 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5286echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5287 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5288 ;;
5289esac
2aeb72e9 5290fi;
7cd0cf9c
DA
5291
5292# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5293case ,${enable_languages},:${enable_objc_gc} in
5294 *,objc,*:yes)
7cd0cf9c
DA
5295 # Keep target-boehm-gc if requested for Objective-C.
5296 ;;
7cd0cf9c 5297 *)
2a79fd67
DA
5298 # Otherwise remove target-boehm-gc depending on target-libjava.
5299 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5300 noconfigdirs="$noconfigdirs target-boehm-gc"
5301 fi
7cd0cf9c
DA
5302 ;;
5303esac
5304
ee6a22df
L
5305# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5306# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5307# If we have the source for $noconfigdirs entries, add them to $notsupp.
5308
5309notsupp=""
5310for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5311 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5312 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5313 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5314 if test -r $srcdir/$dirname/configure ; then
5315 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5316 true
5317 else
5318 notsupp="$notsupp $dir"
5319 fi
5320 fi
5321 fi
ee6a22df
L
5322 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5323 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5324 if test -r $srcdir/$dirname/configure ; then
5325 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5326 true
5327 else
5328 notsupp="$notsupp $dir"
5329 fi
5330 fi
5331 fi
55ffb5ed
NN
5332 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5333 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5334 if test -r $srcdir/$dirname/configure ; then
5335 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5336 true
5337 else
5338 notsupp="$notsupp $dir"
5339 fi
5340 fi
5341 fi
5342done
5343
5344# Sometimes the tools are distributed with libiberty but with no other
5345# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5346# Don't let libgcc imply libiberty either.
55ffb5ed 5347if test -n "${target_configdirs}" ; then
54fdc474 5348 libgcc=
55ffb5ed
NN
5349 others=
5350 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5351 if test "$i" = "libgcc"; then
5352 libgcc=target-libgcc
5353 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5354 if test -r $srcdir/$i/configure ; then
5355 others=yes;
5356 break;
5357 fi
5358 fi
5359 done
5360 if test -z "${others}" ; then
54fdc474 5361 target_configdirs=$libgcc
55ffb5ed
NN
5362 fi
5363fi
5364
5365# Quietly strip out all directories which aren't configurable in this tree.
5366# This relies on all configurable subdirectories being autoconfiscated, which
5367# is now the case.
23f6b2f9
PB
5368build_configdirs_all="$build_configdirs"
5369build_configdirs=
5370for i in ${build_configdirs_all} ; do
1c710c3c 5371 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5372 if test -f ${srcdir}/$j/configure ; then
5373 build_configdirs="${build_configdirs} $i"
5374 fi
5375done
5376
55ffb5ed
NN
5377configdirs_all="$configdirs"
5378configdirs=
5379for i in ${configdirs_all} ; do
5380 if test -f ${srcdir}/$i/configure ; then
5381 configdirs="${configdirs} $i"
5382 fi
5383done
23f6b2f9 5384
55ffb5ed
NN
5385target_configdirs_all="$target_configdirs"
5386target_configdirs=
5387for i in ${target_configdirs_all} ; do
1c710c3c 5388 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5389 if test -f ${srcdir}/$j/configure ; then
5390 target_configdirs="${target_configdirs} $i"
5391 fi
5392done
5393
5394# Produce a warning message for the subdirs we can't configure.
5395# This isn't especially interesting in the Cygnus tree, but in the individual
5396# FSF releases, it's important to let people know when their machine isn't
5397# supported by the one or two programs in a package.
5398
5399if test -n "${notsupp}" && test -z "${norecursion}" ; then
5400 # If $appdirs is non-empty, at least one of those directories must still
5401 # be configured, or we error out. (E.g., if the gas release supports a
5402 # specified target in some subdirs but not the gas subdir, we shouldn't
5403 # pretend that all is well.)
5404 if test -n "$appdirs" ; then
5405 for dir in $appdirs ; do
5406 if test -r $dir/Makefile.in ; then
5407 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5408 appdirs=""
5409 break
5410 fi
23f6b2f9 5411 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5412 appdirs=""
5413 break
5414 fi
5415 fi
5416 done
5417 if test -n "$appdirs" ; then
5418 echo "*** This configuration is not supported by this package." 1>&2
5419 exit 1
5420 fi
5421 fi
5422 # Okay, some application will build, or we don't care to check. Still
5423 # notify of subdirs not getting built.
5424 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5425 echo " ${notsupp}" 1>&2
5426 echo " (Any other directories should still work fine.)" 1>&2
5427fi
5428
5429case "$host" in
5430 *msdosdjgpp*)
5431 enable_gdbtk=no ;;
5432esac
5433
c3a86da9
DJ
5434# To find our prefix, in gcc_cv_tool_prefix.
5435
5436# The user is always right.
5437if test "${PATH_SEPARATOR+set}" != set; then
5438 echo "#! /bin/sh" >conf$$.sh
5439 echo "exit 0" >>conf$$.sh
5440 chmod +x conf$$.sh
5441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5442 PATH_SEPARATOR=';'
5443 else
5444 PATH_SEPARATOR=:
5445 fi
5446 rm -f conf$$.sh
5447fi
5448
5449
5450
5451if test "x$exec_prefix" = xNONE; then
5452 if test "x$prefix" = xNONE; then
5453 gcc_cv_tool_prefix=$ac_default_prefix
5454 else
5455 gcc_cv_tool_prefix=$prefix
5456 fi
5457else
5458 gcc_cv_tool_prefix=$exec_prefix
5459fi
5460
5461# If there is no compiler in the tree, use the PATH only. In any
5462# case, if there is no compiler in the tree nobody should use
5463# AS_FOR_TARGET and LD_FOR_TARGET.
5464if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5465 gcc_version=`cat $srcdir/gcc/BASE-VER`
5466 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5467 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5468 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5469 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5470 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5472else
5473 gcc_cv_tool_dirs=
5474fi
5475
5476if test x$build = x$target && test -n "$md_exec_prefix"; then
5477 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5478fi
5479
5480
5481
55ffb5ed
NN
5482copy_dirs=
5483
1c710c3c 5484
2aeb72e9 5485# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5486if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5487 withval="$with_build_sysroot"
5488 if test x"$withval" != x ; then
526635cb
MM
5489 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5490 fi
5491else
5492 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5493fi;
526635cb
MM
5494
5495
c8aea42c
PB
5496
5497# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5498if test "${with_debug_prefix_map+set}" = set; then
5499 withval="$with_debug_prefix_map"
5500 if test x"$withval" != x; then
5501 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5502 for debug_map in $withval; do
5503 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5504 done
5505 fi
5506else
5507 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5508fi;
5509
5510
1c8bd6a3
PB
5511# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5512# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5513# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5514# We want to ensure that TARGET libraries (which we know are built with
5515# gcc) are built with "-O2 -g", so include those options when setting
5516# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5517if test "x$CFLAGS_FOR_TARGET" = x; then
5518 CFLAGS_FOR_TARGET=$CFLAGS
5519 case " $CFLAGS " in
5520 *" -O2 "*) ;;
5521 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5522 esac
5523 case " $CFLAGS " in
5524 *" -g "* | *" -g3 "*) ;;
5525 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5526 esac
5527fi
5528
5529
5530if test "x$CXXFLAGS_FOR_TARGET" = x; then
5531 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5532 case " $CXXFLAGS " in
5533 *" -O2 "*) ;;
5534 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5535 esac
5536 case " $CXXFLAGS " in
5537 *" -g "* | *" -g3 "*) ;;
5538 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5539 esac
5540fi
5541
5542
55ffb5ed
NN
5543# Handle --with-headers=XXX. If the value is not "yes", the contents of
5544# the named directory are copied to $(tooldir)/sys-include.
5545if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5546 if test x${is_cross_compiler} = xno ; then
5547 echo 1>&2 '***' --with-headers is only supported when cross compiling
5548 exit 1
5549 fi
5550 if test x"${with_headers}" != xyes ; then
c3a86da9 5551 x=${gcc_cv_tool_prefix}
1c710c3c 5552 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5553 fi
5554fi
5555
5556# Handle --with-libs=XXX. If the value is not "yes", the contents of
5557# the name directories are copied to $(tooldir)/lib. Multiple directories
5558# are permitted.
5559if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5560 if test x${is_cross_compiler} = xno ; then
5561 echo 1>&2 '***' --with-libs is only supported when cross compiling
5562 exit 1
5563 fi
5564 if test x"${with_libs}" != xyes ; then
5565 # Copy the libraries in reverse order, so that files in the first named
5566 # library override files in subsequent libraries.
c3a86da9 5567 x=${gcc_cv_tool_prefix}
55ffb5ed 5568 for l in ${with_libs}; do
1c710c3c 5569 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5570 done
5571 fi
5572fi
5573
e8b05380
PB
5574# Set with_gnu_as and with_gnu_ld as appropriate.
5575#
5576# This is done by determining whether or not the appropriate directory
5577# is available, and by checking whether or not specific configurations
5578# have requested that this magic not happen.
1c710c3c
DJ
5579#
5580# The command line options always override the explicit settings in
e8b05380
PB
5581# configure.in, and the settings in configure.in override this magic.
5582#
1c710c3c 5583# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5584# want to do that, then you should use the --without-gnu-as and
5585# --without-gnu-ld options for the configure script.
5586
5587if test x${use_gnu_as} = x &&
5588 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5589 with_gnu_as=yes
5590 extra_host_args="$extra_host_args --with-gnu-as"
5591fi
5592
5593if test x${use_gnu_ld} = x &&
5afab7ad 5594 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
5595 with_gnu_ld=yes
5596 extra_host_args="$extra_host_args --with-gnu-ld"
5597fi
5598
5599# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5600# can detect this case.
5601
5602if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5603 with_newlib=yes
5604 extra_host_args="$extra_host_args --with-newlib"
5605fi
5606
55ffb5ed
NN
5607# Handle ${copy_dirs}
5608set fnord ${copy_dirs}
5609shift
5610while test $# != 0 ; do
5611 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5612 :
5613 else
5614 echo Copying $1 to $2
5615
5616 # Use the install script to create the directory and all required
5617 # parent directories.
5618 if test -d $2 ; then
5619 :
5620 else
5621 echo >config.temp
5622 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5623 fi
5624
5625 # Copy the directory, assuming we have tar.
5626 # FIXME: Should we use B in the second tar? Not all systems support it.
5627 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5628
5629 # It is the responsibility of the user to correctly adjust all
5630 # symlinks. If somebody can figure out how to handle them correctly
5631 # here, feel free to add the code.
5632
5633 echo $1 > $2/COPIED
5634 fi
5635 shift; shift
5636done
5637
e8b05380
PB
5638# Determine a target-dependent exec_prefix that the installed
5639# gcc will search in. Keep this list sorted by triplet, with
5640# the *-*-osname triplets last.
5641md_exec_prefix=
5642case "${target}" in
5643 alpha*-*-*vms*)
5644 md_exec_prefix=/gnu/lib/gcc-lib
5645 ;;
30b74385 5646 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5647 md_exec_prefix=/dev/env/DJDIR/bin
5648 ;;
30b74385 5649 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5650 if test $with_gnu_as = yes; then
5651 md_exec_prefix=/usr/gnu/bin
5652 else
5653 md_exec_prefix=/usr/ccs/bin/elf
5654 fi
5655 ;;
5656
5657 mn10300-*-* | \
5658 powerpc-*-chorusos* | \
5659 powerpc*-*-eabi* | \
5660 powerpc*-*-sysv* | \
5661 powerpc*-*-kaos* | \
5662 s390x-ibm-tpf*)
5663 md_exec_prefix=/usr/ccs/bin
5664 ;;
5665 sparc64-*-elf*)
5666 ;;
5667 v850*-*-*)
5668 md_exec_prefix=/usr/ccs/bin
5669 ;;
aa12a573 5670 xtensa*-*-elf*)
e8b05380
PB
5671 ;;
5672
5673 *-*-beos* | \
5674 *-*-elf* | \
5675 *-*-hpux* | \
5676 *-*-netware* | \
5677 *-*-nto-qnx* | \
5678 *-*-rtems* | \
5679 *-*-solaris2* | \
30b74385 5680 *-*-sysv[45]* | \
e8b05380
PB
5681 *-*-vxworks* | \
5682 *-wrs-windiss)
5683 md_exec_prefix=/usr/ccs/bin
5684 ;;
5685esac
5686
671aa708
NN
5687extra_arflags_for_target=
5688extra_nmflags_for_target=
5689extra_ranlibflags_for_target=
5690target_makefile_frag=/dev/null
5691case "${target}" in
3e19841a
PB
5692 mep*-*-*)
5693 target_makefile_frag="config/mt-mep"
5694 ;;
58e24147
AM
5695 spu-*-*)
5696 target_makefile_frag="config/mt-spu"
5697 ;;
4bf6c438
RS
5698 mips*-sde-elf*)
5699 target_makefile_frag="config/mt-sde"
5700 ;;
1ec3b87b
RS
5701 mipsisa*-*-elfoabi*)
5702 target_makefile_frag="config/mt-mips-elfoabi"
5703 ;;
08d0963a
RS
5704 mips*-*-*linux* | mips*-*-gnu*)
5705 target_makefile_frag="config/mt-mips-gnu"
5706 ;;
61fec9ff 5707 *-*-netware*)
671aa708
NN
5708 target_makefile_frag="config/mt-netware"
5709 ;;
98a5bb3b
RM
5710 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5711 target_makefile_frag="config/mt-gnu"
671aa708
NN
5712 ;;
5713 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5714 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5715 # commands to handle both 32-bit and 64-bit objects. These flags are
5716 # harmless if we're using GNU nm or ar.
5717 extra_arflags_for_target=" -X32_64"
5718 extra_nmflags_for_target=" -B -X32_64"
5719 ;;
5720 *-*-darwin*)
5721 # ranlib from Darwin requires the -c flag to look at common symbols.
5722 extra_ranlibflags_for_target=" -c"
5723 ;;
5724 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5725 target_makefile_frag="config/mt-wince"
5726 ;;
5727esac
5728
5729alphaieee_frag=/dev/null
5730case $target in
5731 alpha*-*-*)
5732 # This just makes sure to use the -mieee option to build target libs.
5733 # This should probably be set individually by each library.
5734 alphaieee_frag="config/mt-alphaieee"
5735 ;;
5736esac
5737
5738# If --enable-target-optspace always use -Os instead of -O2 to build
5739# the target libraries, similarly if it is not specified, use -Os
5740# on selected platforms.
5741ospace_frag=/dev/null
5742case "${enable_target_optspace}:${target}" in
5743 yes:*)
5744 ospace_frag="config/mt-ospace"
5745 ;;
5746 :d30v-*)
5747 ospace_frag="config/mt-d30v"
5748 ;;
5749 :m32r-* | :d10v-* | :fr30-*)
5750 ospace_frag="config/mt-ospace"
5751 ;;
5752 no:* | :*)
5753 ;;
5754 *)
5755 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5756 ;;
5757esac
5758
671aa708
NN
5759# Default to using --with-stabs for certain targets.
5760if test x${with_stabs} = x ; then
5761 case "${target}" in
89a95129 5762 mips*-*-irix[56]*)
671aa708
NN
5763 ;;
5764 mips*-*-* | alpha*-*-osf*)
5765 with_stabs=yes;
5766 extra_host_args="${extra_host_args} --with-stabs"
5767 ;;
5768 esac
5769fi
5770
5771# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5772# them automatically.
5773case "${host}" in
1c710c3c 5774 hppa*64*-*-hpux11*)
671aa708
NN
5775 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5776 ;;
5777esac
5778
671aa708
NN
5779# Some systems (e.g., one of the i386-aix systems the gas testers are
5780# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5781tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5782build_tooldir=${tooldir}
5783
671aa708
NN
5784# Create a .gdbinit file which runs the one in srcdir
5785# and tells GDB to look there for source files.
5786
5787if test -r ${srcdir}/.gdbinit ; then
5788 case ${srcdir} in
5789 .) ;;
5790 *) cat > ./.gdbinit <<EOF
5791# ${NO_EDIT}
5792dir ${srcdir}
5793dir .
5794source ${srcdir}/.gdbinit
5795EOF
5796 ;;
5797 esac
5798fi
5799
671aa708
NN
5800# Make sure that the compiler is able to generate an executable. If it
5801# can't, we are probably in trouble. We don't care whether we can run the
5802# executable--we might be using a cross compiler--we only care whether it
5803# can be created. At this point the main configure script has set CC.
5804we_are_ok=no
5805echo "int main () { return 0; }" > conftest.c
5806${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5807if test $? = 0 ; then
5808 if test -s conftest || test -s conftest.exe ; then
5809 we_are_ok=yes
5810 fi
1c710c3c 5811fi
671aa708
NN
5812case $we_are_ok in
5813 no)
5814 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5815 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5816 rm -f conftest*
5817 exit 1
5818 ;;
5819esac
5820rm -f conftest*
5821
5822# The Solaris /usr/ucb/cc compiler does not appear to work.
5823case "${host}" in
5824 sparc-sun-solaris2*)
5825 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5826 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5827 could_use=
5828 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5829 if test -d /opt/cygnus/bin ; then
5830 if test "$could_use" = "" ; then
5831 could_use="/opt/cygnus/bin"
5832 else
5833 could_use="$could_use or /opt/cygnus/bin"
5834 fi
5835 fi
5836 if test "$could_use" = "" ; then
5837 echo "Warning: compilation may fail because you're using"
5838 echo "/usr/ucb/cc. You should change your PATH or CC "
5839 echo "variable and rerun configure."
5840 else
5841 echo "Warning: compilation may fail because you're using"
5842 echo "/usr/ucb/cc, when you should use the C compiler from"
5843 echo "$could_use. You should change your"
5844 echo "PATH or CC variable and rerun configure."
5845 fi
5846 fi
5847 ;;
5848esac
5849
d89f0ad6 5850# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
5851case "${host}" in
5852 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5853 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 5854 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
5855 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5856esac
5857
d89f0ad6
AL
5858# On systems where the dynamic library environment variable is PATH,
5859# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5860# built executables to PATH.
5861if test "$RPATH_ENVVAR" = PATH; then
5862 GCC_SHLIB_SUBDIR=/shlib
5863else
5864 GCC_SHLIB_SUBDIR=
5865fi
5866
671aa708
NN
5867# Record target_configdirs and the configure arguments for target and
5868# build configuration in Makefile.
5869target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5870build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5871
671aa708
NN
5872# Determine whether gdb needs tk/tcl or not.
5873# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5874# and in that case we want gdb to be built without tk. Ugh!
5875# In fact I believe gdb is the *only* package directly dependent on tk,
5876# so we should be able to put the 'maybe's in unconditionally and
5877# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5878# 100% sure that that's safe though.
e914a571 5879
b4f96efe 5880gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5881case "$enable_gdbtk" in
5882 no)
5883 GDB_TK="" ;;
e914a571
AC
5884 yes)
5885 GDB_TK="${gdb_tk}" ;;
671aa708 5886 *)
e914a571
AC
5887 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5888 # distro. Eventually someone will fix this and move Insight, nee
5889 # gdbtk to a separate directory.
5890 if test -d ${srcdir}/gdb/gdbtk ; then
5891 GDB_TK="${gdb_tk}"
5892 else
5893 GDB_TK=""
5894 fi
5895 ;;
671aa708 5896esac
ef9db8d5
DJ
5897CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5898INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5899
60975492 5900# Strip out unwanted targets.
8b87bb96
NN
5901
5902# While at that, we remove Makefiles if we were started for recursive
5903# configuration, so that the top-level Makefile reconfigures them,
5904# like we used to do when configure itself was recursive.
8b87bb96 5905
60975492
PB
5906# Loop over modules. $extrasub must be used with care, limiting as
5907# much as possible the usage of range addresses. That's because autoconf
5908# splits the sed script to overcome limits in the number of commands,
5909# and relying on carefully-timed sed passes may turn out to be very hard
5910# to maintain later. In this particular case, you just have to be careful
5911# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5912
2aeb72e9 5913# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5914if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5915 enableval="$enable_bootstrap"
5916
f516a7da 5917else
ce521a9c 5918 enable_bootstrap=default
2aeb72e9 5919fi;
f516a7da 5920
ce521a9c
PB
5921# Issue errors and warnings for invalid/strange bootstrap combinations.
5922case "$configdirs" in
5923 *gcc*) have_compiler=yes ;;
5924 *) have_compiler=no ;;
5925esac
5926
5927case "$have_compiler:$host:$target:$enable_bootstrap" in
5928 *:*:*:no) ;;
5929
1ca26cd2 5930 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5931 # and we are in a native configuration.
5932 yes:$build:$build:default)
1ca26cd2 5933 enable_bootstrap=yes ;;
ce521a9c
PB
5934
5935 *:*:*:default)
5936 enable_bootstrap=no ;;
5937
5938 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5939 yes:$build:$build:yes)
ce521a9c
PB
5940 ;;
5941
5942 # Other configurations, but we have a compiler. Assume the user knows
5943 # what he's doing.
2d309510 5944 yes:*:*:yes)
1c710c3c
DJ
5945 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5946echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5947 ;;
5948
5949 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5950 no:*:*:yes)
1c710c3c
DJ
5951 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5952echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5953 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5954
5955 # Fail if wrong command line
5956 *)
1c710c3c
DJ
5957 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5958echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5959 { (exit 1); exit 1; }; }
ce521a9c
PB
5960 ;;
5961esac
5962
5963# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5964case "$enable_bootstrap" in
5965 yes)
5607edfd 5966 bootstrap_suffix=bootstrap ;;
f516a7da 5967 no)
5607edfd 5968 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5969esac
5970
23f6b2f9 5971for module in ${build_configdirs} ; do
5607edfd
PB
5972 if test -z "${no_recursion}" \
5973 && test -f ${build_subdir}/${module}/Makefile; then
5974 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5975 rm -f ${build_subdir}/${module}/Makefile
5976 fi
5977 extrasub="$extrasub
5978/^@if build-$module\$/d
5979/^@endif build-$module\$/d
5980/^@if build-$module-$bootstrap_suffix\$/d
5981/^@endif build-$module-$bootstrap_suffix\$/d"
5982done
5983for module in ${configdirs} ; do
a6fbc1e2 5984 if test -z "${no_recursion}"; then
f063a9ed 5985 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5986 if test -f ${file}; then
5987 echo 1>&2 "*** removing ${file} to force reconfigure"
5988 rm -f ${file}
5989 fi
5990 done
5607edfd
PB
5991 fi
5992 extrasub="$extrasub
5993/^@if $module\$/d
5994/^@endif $module\$/d
5995/^@if $module-$bootstrap_suffix\$/d
5996/^@endif $module-$bootstrap_suffix\$/d"
5997done
5998for module in ${target_configdirs} ; do
5999 if test -z "${no_recursion}" \
6000 && test -f ${target_subdir}/${module}/Makefile; then
6001 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6002 rm -f ${target_subdir}/${module}/Makefile
6003 fi
6004 extrasub="$extrasub
6005/^@if target-$module\$/d
6006/^@endif target-$module\$/d
6007/^@if target-$module-$bootstrap_suffix\$/d
6008/^@endif target-$module-$bootstrap_suffix\$/d"
6009done
6010
60975492
PB
6011extrasub="$extrasub
6012/^@if /,/^@endif /d"
671aa708
NN
6013
6014# Create the serialization dependencies. This uses a temporary file.
6015
2aeb72e9 6016# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 6017if test "${enable_serial_configure+set}" = set; then
2aeb72e9 6018 enableval="$enable_serial_configure"
ade82b16 6019
2aeb72e9 6020fi;
ade82b16 6021
bf1d3e81
NN
6022case ${enable_serial_configure} in
6023 yes)
6024 enable_serial_build_configure=yes
6025 enable_serial_host_configure=yes
6026 enable_serial_target_configure=yes
6027 ;;
6028esac
6029
671aa708
NN
6030# These force 'configure's to be done one at a time, to avoid problems
6031# with contention over a shared config.cache.
6032rm -f serdep.tmp
ade82b16 6033echo '# serdep.tmp' > serdep.tmp
671aa708 6034olditem=
bf1d3e81 6035test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6036for item in ${build_configdirs} ; do
6037 case ${olditem} in
6038 "") ;;
ade82b16 6039 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6040 esac
6041 olditem=${item}
6042done
6043olditem=
bf1d3e81 6044test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6045for item in ${configdirs} ; do
6046 case ${olditem} in
6047 "") ;;
ade82b16 6048 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6049 esac
6050 olditem=${item}
6051done
6052olditem=
bf1d3e81 6053test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6054for item in ${target_configdirs} ; do
6055 case ${olditem} in
6056 "") ;;
ade82b16 6057 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6058 esac
6059 olditem=${item}
6060done
6061serialization_dependencies=serdep.tmp
6062
6063
ade82b16 6064# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6065# target, nonopt, and variable assignments. These are the ones we
6066# might not want to pass down to subconfigures. Also strip
6067# program-prefix, program-suffix, and program-transform-name, so that
6068# we can pass down a consistent program-transform-name.
6069baseargs=
6070keep_next=no
6071skip_next=no
6072eval "set -- $ac_configure_args"
44bfc3ac
DJ
6073for ac_arg
6074do
1c710c3c
DJ
6075 if test X"$skip_next" = X"yes"; then
6076 skip_next=no
6077 continue
6078 fi
6079 if test X"$keep_next" = X"yes"; then
6080 case $ac_arg in
6081 *\'*)
6082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6083 esac
6084 baseargs="$baseargs '$ac_arg'"
6085 keep_next=no
6086 continue
6087 fi
6088
6089 # Handle separated arguments. Based on the logic generated by
6090 # autoconf 2.59.
6091 case $ac_arg in
6092 *=* | --config-cache | -C | -disable-* | --disable-* \
6093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6095 | -with-* | --with-* | -without-* | --without-* | --x)
6096 separate_arg=no
6097 ;;
6098 -*)
6099 separate_arg=yes
6100 ;;
6101 *)
6102 separate_arg=no
6103 ;;
6104 esac
6105
6106 case "$ac_arg" in
6107 --no*)
6108 continue
6109 ;;
6110 --c* | \
6111 --sr* | \
6112 --ho* | \
6113 --bu* | \
6114 --t* | \
6115 --program-* | \
6116 -cache_file* | \
6117 -srcdir* | \
6118 -host* | \
6119 -build* | \
6120 -target* | \
6121 -program-prefix* | \
6122 -program-suffix* | \
6123 -program-transform-name* )
6124 skip_next=$separate_arg
6125 continue
6126 ;;
6127 -*)
6128 # An option. Add it.
6129 case $ac_arg in
6130 *\'*)
6131 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6132 esac
6133 baseargs="$baseargs '$ac_arg'"
6134 keep_next=$separate_arg
6135 ;;
6136 *)
6137 # Either a variable assignment, or a nonopt (triplet). Don't
6138 # pass it down; let the Makefile handle this.
6139 continue
6140 ;;
6141 esac
6142done
6143# Remove the initial space we just introduced and, as these will be
6144# expanded by make, quote '$'.
6145baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6146
43bb47c2
DJ
6147# Add in --program-transform-name, after --program-prefix and
6148# --program-suffix have been applied to it. Autoconf has already
6149# doubled dollar signs and backslashes in program_transform_name; we want
6150# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6151# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6152# Also, because we want to override the logic in subdir configure scripts to
6153# choose program_transform_name, replace any s,x,x, with s,y,y,.
6154sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6155${program_transform_name}
6156EOF_SED
6157gcc_transform_name=`cat conftestsed.out`
6158rm -f conftestsed.out
6159baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6160if test "$silent" = yes; then
6161 baseargs="$baseargs --silent"
6162fi
43bb47c2 6163
671aa708
NN
6164# For the build-side libraries, we just need to pretend we're native,
6165# and not use the same cache file. Multilibs are neither needed nor
6166# desired.
e69bf64b 6167build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6168
6169# For host modules, accept cache file option, or specification as blank.
6170case "${cache_file}" in
6171"") # empty
6172 cache_file_option="" ;;
6173/* | [A-Za-z]:[\\/]* ) # absolute path
6174 cache_file_option="--cache-file=${cache_file}" ;;
6175*) # relative path
6176 cache_file_option="--cache-file=../${cache_file}" ;;
6177esac
6178
09438bde
NN
6179# Host dirs don't like to share a cache file either, horribly enough.
6180# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6181host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6182
6183target_configargs=${baseargs}
6184
6185# Passing a --with-cross-host argument lets the target libraries know
6186# whether they are being built with a cross-compiler or being built
6187# native. However, it would be better to use other mechanisms to make the
6188# sorts of decisions they want to make on this basis. Please consider
6189# this option to be deprecated. FIXME.
6190if test x${is_cross_compiler} = xyes ; then
1c710c3c 6191 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6192fi
6193
6194# Default to --enable-multilib.
6195if test x${enable_multilib} = x ; then
6196 target_configargs="--enable-multilib ${target_configargs}"
6197fi
6198
6199# Pass --with-newlib if appropriate. Note that target_configdirs has
6200# changed from the earlier setting of with_newlib.
6201if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6202 target_configargs="--with-newlib ${target_configargs}"
6203fi
6204
6b9eb62c
NN
6205# Different target subdirs use different values of certain variables
6206# (notably CXX). Worse, multilibs use *lots* of different values.
6207# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6208# it doesn't automatically accept command-line overrides of them.
6209# This means it's not safe for target subdirs to share a cache file,
6210# which is disgusting, but there you have it. Hopefully this can be
6211# fixed in future. It's still worthwhile to use a cache file for each
6212# directory. I think.
6213
bebcd931
MS
6214# Pass the appropriate --build, --host, --target and --cache-file arguments.
6215# We need to pass --target, as newer autoconf's requires consistency
6216# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6217target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6218
671aa708
NN
6219FLAGS_FOR_TARGET=
6220case " $target_configdirs " in
6221 *" newlib "*)
6222 case " $target_configargs " in
6223 *" --with-newlib "*)
6224 case "$target" in
6225 *-cygwin*)
aa8f1f57 6226 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
6227 esac
6228
6229 # If we're not building GCC, don't discard standard headers.
6230 if test -d ${srcdir}/gcc; then
6231 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6232
6233 if test "${build}" != "${host}"; then
6234 # On Canadian crosses, CC_FOR_TARGET will have already been set
6235 # by `configure', so we won't have an opportunity to add -Bgcc/
6236 # to it. This is right: we don't want to search that directory
6237 # for binaries, but we want the header files in there, so add
6238 # them explicitly.
215c351a 6239 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6240
6241 # Someone might think of using the pre-installed headers on
6242 # Canadian crosses, in case the installed compiler is not fully
6243 # compatible with the compiler being built. In this case, it
6244 # would be better to flag an error than risking having
6245 # incompatible object files being constructed. We can't
6246 # guarantee that an error will be flagged, but let's hope the
6247 # compiler will do it, when presented with incompatible header
6248 # files.
6249 fi
6250 fi
6251
6252 case "${target}-${is_cross_compiler}" in
f2a0e225 6253 i[3456789]86-*-linux*-no)
671aa708
NN
6254 # Here host == target, so we don't need to build gcc,
6255 # so we don't want to discard standard headers.
6256 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6257 ;;
6258 *)
6259 # If we're building newlib, use its generic headers last, but search
6260 # for any libc-related directories first (so make it the last -B
6261 # switch).
6262 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
6263
6264 # If we're building libgloss, find the startup file, simulator library
6265 # and linker script.
6266 case " $target_configdirs " in
6267 *" libgloss "*)
6268 # Look for startup file, simulator library and maybe linker script.
6269 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6270 # Look for libnosys.a in case the target needs it.
6271 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6272 # Most targets have the linker script in the source directory.
6273 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6274 ;;
6275 esac
671aa708
NN
6276 ;;
6277 esac
6278 ;;
6279 esac
6280 ;;
6281esac
b91f0a41
CV
6282case "$target" in
6283*-mingw*)
6284 # Can't be handled as Cygwin above since Mingw does not use newlib.
6285 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' ;;
6286esac
671aa708 6287
6691a79e
ME
6288# Allow the user to override the flags for
6289# our build compiler if desired.
f019adc1
MF
6290if test x"${build}" = x"${host}" ; then
6291 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6292 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6293 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6294fi
6691a79e 6295
671aa708
NN
6296# On Canadian crosses, we'll be searching the right directories for
6297# the previously-installed cross compiler, so don't bother to add
6298# flags for directories within the install tree of the compiler
6299# being built; programs in there won't even run.
6300if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6301 # Search for pre-installed headers if nothing else fits.
9124bc53 6302 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
6303fi
6304
6305if test "x${use_gnu_ld}" = x &&
6306 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6307 # Arrange for us to find uninstalled linker scripts.
215c351a 6308 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6309fi
6310
e88a2c09
DD
6311# Search for other target-specific linker scripts and such.
6312case "${target}" in
3e19841a
PB
6313 mep*)
6314 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6315 ;;
e88a2c09
DD
6316esac
6317
671aa708 6318# Makefile fragments.
7b61653a
PE
6319for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6320do
6321 eval fragval=\$$frag
6322 if test $fragval != /dev/null; then
6323 eval $frag=${srcdir}/$fragval
6324 fi
6325done
671aa708
NN
6326
6327
6328
6329
6330
6331# Miscellanea: directories, flags, etc.
6332
6333
6334
6335
6336
6337
6338
d89f0ad6 6339
23f6b2f9 6340# Build module lists & subconfigure args.
671aa708
NN
6341
6342
6343
2abefe3d
PB
6344# Host module lists & subconfigure args.
6345
6346
6347
6348# Target module lists & subconfigure args.
6349
6350
6351
6352# Build tools.
6353
6354
6355
0999159b
PB
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
2abefe3d
PB
6370# Generate default definitions for YACC, M4, LEX and other programs that run
6371# on the build machine. These are used if the Makefile can't locate these
6372# programs in objdir.
6373MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6374
6375for ac_prog in 'bison -y' byacc yacc
6376do
1c710c3c 6377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6378set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6379echo "$as_me:$LINENO: checking for $ac_word" >&5
6380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6381if test "${ac_cv_prog_YACC+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6383else
6384 if test -n "$YACC"; then
6385 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6386else
1c710c3c
DJ
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6394 ac_cv_prog_YACC="$ac_prog"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399done
6400
2abefe3d
PB
6401fi
6402fi
1c710c3c 6403YACC=$ac_cv_prog_YACC
2abefe3d 6404if test -n "$YACC"; then
2aeb72e9
DD
6405 echo "$as_me:$LINENO: result: $YACC" >&5
6406echo "${ECHO_T}$YACC" >&6
2abefe3d 6407else
2aeb72e9
DD
6408 echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6
2abefe3d
PB
6410fi
6411
1c710c3c 6412 test -n "$YACC" && break
2abefe3d
PB
6413done
6414test -n "$YACC" || YACC="$MISSING bison -y"
6415
6416case " $build_configdirs " in
6417 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6418 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6419esac
6420
6421for ac_prog in bison
6422do
1c710c3c 6423 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6424set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6425echo "$as_me:$LINENO: checking for $ac_word" >&5
6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6427if test "${ac_cv_prog_BISON+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6429else
6430 if test -n "$BISON"; then
6431 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6432else
1c710c3c
DJ
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6440 ac_cv_prog_BISON="$ac_prog"
6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444done
6445done
6446
2abefe3d
PB
6447fi
6448fi
1c710c3c 6449BISON=$ac_cv_prog_BISON
2abefe3d 6450if test -n "$BISON"; then
2aeb72e9
DD
6451 echo "$as_me:$LINENO: result: $BISON" >&5
6452echo "${ECHO_T}$BISON" >&6
2abefe3d 6453else
2aeb72e9
DD
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
2abefe3d
PB
6456fi
6457
1c710c3c 6458 test -n "$BISON" && break
2abefe3d
PB
6459done
6460test -n "$BISON" || BISON="$MISSING bison"
6461
6462case " $build_configdirs " in
6463 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6464esac
6465
6466for ac_prog in gm4 gnum4 m4
6467do
1c710c3c 6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6469set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6470echo "$as_me:$LINENO: checking for $ac_word" >&5
6471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6472if test "${ac_cv_prog_M4+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6474else
6475 if test -n "$M4"; then
6476 ac_cv_prog_M4="$M4" # Let the user override the test.
6477else
1c710c3c
DJ
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6485 ac_cv_prog_M4="$ac_prog"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490done
6491
2abefe3d
PB
6492fi
6493fi
1c710c3c 6494M4=$ac_cv_prog_M4
2abefe3d 6495if test -n "$M4"; then
2aeb72e9
DD
6496 echo "$as_me:$LINENO: result: $M4" >&5
6497echo "${ECHO_T}$M4" >&6
2abefe3d 6498else
2aeb72e9
DD
6499 echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6
2abefe3d
PB
6501fi
6502
1c710c3c 6503 test -n "$M4" && break
2abefe3d
PB
6504done
6505test -n "$M4" || M4="$MISSING m4"
6506
6507case " $build_configdirs " in
6508 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6509esac
6510
6511for ac_prog in flex lex
6512do
1c710c3c 6513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6514set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6515echo "$as_me:$LINENO: checking for $ac_word" >&5
6516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6517if test "${ac_cv_prog_LEX+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6519else
6520 if test -n "$LEX"; then
6521 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6522else
1c710c3c
DJ
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6530 ac_cv_prog_LEX="$ac_prog"
6531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534done
6535done
6536
2abefe3d
PB
6537fi
6538fi
1c710c3c 6539LEX=$ac_cv_prog_LEX
2abefe3d 6540if test -n "$LEX"; then
2aeb72e9
DD
6541 echo "$as_me:$LINENO: result: $LEX" >&5
6542echo "${ECHO_T}$LEX" >&6
2abefe3d 6543else
2aeb72e9
DD
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
2abefe3d
PB
6546fi
6547
1c710c3c 6548 test -n "$LEX" && break
2abefe3d
PB
6549done
6550test -n "$LEX" || LEX="$MISSING flex"
6551
6552case " $build_configdirs " in
6553 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6554 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6555esac
6556
6557for ac_prog in flex
6558do
1c710c3c 6559 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6560set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6561echo "$as_me:$LINENO: checking for $ac_word" >&5
6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6563if test "${ac_cv_prog_FLEX+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6565else
6566 if test -n "$FLEX"; then
6567 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6568else
1c710c3c
DJ
6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6576 ac_cv_prog_FLEX="$ac_prog"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580done
6581done
6582
2abefe3d
PB
6583fi
6584fi
1c710c3c 6585FLEX=$ac_cv_prog_FLEX
2abefe3d 6586if test -n "$FLEX"; then
2aeb72e9
DD
6587 echo "$as_me:$LINENO: result: $FLEX" >&5
6588echo "${ECHO_T}$FLEX" >&6
2abefe3d 6589else
2aeb72e9
DD
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
2abefe3d
PB
6592fi
6593
1c710c3c 6594 test -n "$FLEX" && break
2abefe3d
PB
6595done
6596test -n "$FLEX" || FLEX="$MISSING flex"
6597
6598case " $build_configdirs " in
6599 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6600esac
6601
6602for ac_prog in makeinfo
6603do
1c710c3c 6604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6605set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6606echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6608if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6610else
6611 if test -n "$MAKEINFO"; then
6612 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6613else
1c710c3c
DJ
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6621 ac_cv_prog_MAKEINFO="$ac_prog"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625done
6626done
6627
2abefe3d
PB
6628fi
6629fi
1c710c3c 6630MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6631if test -n "$MAKEINFO"; then
2aeb72e9
DD
6632 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6633echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6634else
2aeb72e9
DD
6635 echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6
2abefe3d
PB
6637fi
6638
1c710c3c 6639 test -n "$MAKEINFO" && break
2abefe3d
PB
6640done
6641test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6642
6643case " $build_configdirs " in
6644 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6645 *)
6646
4fe7e755 6647 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6648 # higher, else we use the "missing" dummy.
6649 if ${MAKEINFO} --version \
4fe7e755 6650 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6651 :
6652 else
6653 MAKEINFO="$MISSING makeinfo"
6654 fi
6655 ;;
6656
6657esac
671aa708 6658
2abefe3d 6659# FIXME: expect and dejagnu may become build tools?
671aa708 6660
2abefe3d
PB
6661for ac_prog in expect
6662do
1c710c3c 6663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6664set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6665echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6667if test "${ac_cv_prog_EXPECT+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6669else
6670 if test -n "$EXPECT"; then
6671 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6672else
1c710c3c
DJ
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6680 ac_cv_prog_EXPECT="$ac_prog"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685done
6686
2abefe3d
PB
6687fi
6688fi
1c710c3c 6689EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6690if test -n "$EXPECT"; then
2aeb72e9
DD
6691 echo "$as_me:$LINENO: result: $EXPECT" >&5
6692echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6693else
2aeb72e9
DD
6694 echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6
2abefe3d 6696fi
671aa708 6697
1c710c3c 6698 test -n "$EXPECT" && break
2abefe3d
PB
6699done
6700test -n "$EXPECT" || EXPECT="expect"
671aa708 6701
2abefe3d
PB
6702case " $configdirs " in
6703 *" expect "*)
6704 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6705 ;;
6706esac
671aa708 6707
2abefe3d
PB
6708for ac_prog in runtest
6709do
1c710c3c 6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6711set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6712echo "$as_me:$LINENO: checking for $ac_word" >&5
6713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6714if test "${ac_cv_prog_RUNTEST+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6716else
6717 if test -n "$RUNTEST"; then
6718 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6719else
1c710c3c
DJ
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6727 ac_cv_prog_RUNTEST="$ac_prog"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732done
6733
2abefe3d
PB
6734fi
6735fi
1c710c3c 6736RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6737if test -n "$RUNTEST"; then
2aeb72e9
DD
6738 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6739echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6740else
2aeb72e9
DD
6741 echo "$as_me:$LINENO: result: no" >&5
6742echo "${ECHO_T}no" >&6
2abefe3d 6743fi
671aa708 6744
1c710c3c 6745 test -n "$RUNTEST" && break
2abefe3d
PB
6746done
6747test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6748
2abefe3d
PB
6749case " $configdirs " in
6750 *" dejagnu "*)
c394e891 6751 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6752 ;;
6753esac
671aa708
NN
6754
6755
671aa708 6756# Host tools.
ca9f4b81
AO
6757ncn_tool_prefix=
6758test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6759ncn_target_tool_prefix=
6760test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6761
278a7a38
AO
6762
6763
6764if test -n "$AR"; then
6765 ac_cv_prog_AR=$AR
6766elif test -n "$ac_cv_prog_AR"; then
6767 AR=$ac_cv_prog_AR
6768fi
6769
6770if test -n "$ac_cv_prog_AR"; then
6771 for ncn_progname in ar; do
6772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6773set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6774echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6776if test "${ac_cv_prog_AR+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779 if test -n "$AR"; then
6780 ac_cv_prog_AR="$AR" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6789 ac_cv_prog_AR="${ncn_progname}"
6790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794done
6795
6796fi
6797fi
6798AR=$ac_cv_prog_AR
6799if test -n "$AR"; then
2aeb72e9
DD
6800 echo "$as_me:$LINENO: result: $AR" >&5
6801echo "${ECHO_T}$AR" >&6
278a7a38 6802else
2aeb72e9
DD
6803 echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6
278a7a38
AO
6805fi
6806
6807 done
6808fi
6809
6810for ncn_progname in ar; do
2693c0b0
PB
6811 if test -n "$ncn_tool_prefix"; then
6812 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6813set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6814echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6816if test "${ac_cv_prog_AR+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6818else
6819 if test -n "$AR"; then
6820 ac_cv_prog_AR="$AR" # Let the user override the test.
6821else
1c710c3c
DJ
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6829 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834done
6835
ca9f4b81
AO
6836fi
6837fi
1c710c3c 6838AR=$ac_cv_prog_AR
ca9f4b81 6839if test -n "$AR"; then
2aeb72e9
DD
6840 echo "$as_me:$LINENO: result: $AR" >&5
6841echo "${ECHO_T}$AR" >&6
ca9f4b81 6842else
2aeb72e9
DD
6843 echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6
ca9f4b81
AO
6845fi
6846
2693c0b0
PB
6847 fi
6848 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6850set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6851echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6853if test "${ac_cv_prog_AR+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6855else
2693c0b0 6856 if test -n "$AR"; then
af71363e
AS
6857 ac_cv_prog_AR="$AR" # Let the user override the test.
6858else
1c710c3c
DJ
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6866 ac_cv_prog_AR="${ncn_progname}"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872
ca9f4b81
AO
6873fi
6874fi
1c710c3c 6875AR=$ac_cv_prog_AR
2693c0b0 6876if test -n "$AR"; then
2aeb72e9
DD
6877 echo "$as_me:$LINENO: result: $AR" >&5
6878echo "${ECHO_T}$AR" >&6
ca9f4b81 6879else
2aeb72e9
DD
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
ca9f4b81 6882fi
1c710c3c 6883
2693c0b0
PB
6884 fi
6885 test -n "$ac_cv_prog_AR" && break
6886done
6887
6888if test -z "$ac_cv_prog_AR" ; then
6889 set dummy ar
6890 if test $build = $host ; then
6891 AR="$2"
ca9f4b81 6892 else
2693c0b0 6893 AR="${ncn_tool_prefix}$2"
ca9f4b81 6894 fi
ca9f4b81
AO
6895fi
6896
278a7a38
AO
6897
6898
6899if test -n "$AS"; then
6900 ac_cv_prog_AS=$AS
6901elif test -n "$ac_cv_prog_AS"; then
6902 AS=$ac_cv_prog_AS
6903fi
6904
6905if test -n "$ac_cv_prog_AS"; then
6906 for ncn_progname in as; do
6907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6908set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6909echo "$as_me:$LINENO: checking for $ac_word" >&5
6910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6911if test "${ac_cv_prog_AS+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914 if test -n "$AS"; then
6915 ac_cv_prog_AS="$AS" # Let the user override the test.
6916else
6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6924 ac_cv_prog_AS="${ncn_progname}"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928done
6929done
6930
6931fi
6932fi
6933AS=$ac_cv_prog_AS
6934if test -n "$AS"; then
2aeb72e9
DD
6935 echo "$as_me:$LINENO: result: $AS" >&5
6936echo "${ECHO_T}$AS" >&6
278a7a38 6937else
2aeb72e9
DD
6938 echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6
278a7a38
AO
6940fi
6941
6942 done
6943fi
6944
6945for ncn_progname in as; do
2693c0b0
PB
6946 if test -n "$ncn_tool_prefix"; then
6947 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6948set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6949echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6951if test "${ac_cv_prog_AS+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6953else
6954 if test -n "$AS"; then
6955 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6956else
1c710c3c
DJ
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6964 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970
ca9f4b81
AO
6971fi
6972fi
1c710c3c 6973AS=$ac_cv_prog_AS
ca9f4b81 6974if test -n "$AS"; then
2aeb72e9
DD
6975 echo "$as_me:$LINENO: result: $AS" >&5
6976echo "${ECHO_T}$AS" >&6
ca9f4b81 6977else
2aeb72e9
DD
6978 echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6
ca9f4b81
AO
6980fi
6981
2693c0b0
PB
6982 fi
6983 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6985set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6986echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6988if test "${ac_cv_prog_AS+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6990else
2693c0b0
PB
6991 if test -n "$AS"; then
6992 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6993else
1c710c3c
DJ
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7001 ac_cv_prog_AS="${ncn_progname}"
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007
ca9f4b81
AO
7008fi
7009fi
1c710c3c 7010AS=$ac_cv_prog_AS
2693c0b0 7011if test -n "$AS"; then
2aeb72e9
DD
7012 echo "$as_me:$LINENO: result: $AS" >&5
7013echo "${ECHO_T}$AS" >&6
ca9f4b81 7014else
2aeb72e9
DD
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
ca9f4b81 7017fi
1c710c3c 7018
2693c0b0
PB
7019 fi
7020 test -n "$ac_cv_prog_AS" && break
7021done
7022
7023if test -z "$ac_cv_prog_AS" ; then
7024 set dummy as
7025 if test $build = $host ; then
7026 AS="$2"
ca9f4b81 7027 else
2693c0b0 7028 AS="${ncn_tool_prefix}$2"
ca9f4b81 7029 fi
ca9f4b81
AO
7030fi
7031
278a7a38
AO
7032
7033
7034if test -n "$DLLTOOL"; then
7035 ac_cv_prog_DLLTOOL=$DLLTOOL
7036elif test -n "$ac_cv_prog_DLLTOOL"; then
7037 DLLTOOL=$ac_cv_prog_DLLTOOL
7038fi
7039
7040if test -n "$ac_cv_prog_DLLTOOL"; then
7041 for ncn_progname in dlltool; do
7042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7043set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7044echo "$as_me:$LINENO: checking for $ac_word" >&5
7045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7046if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049 if test -n "$DLLTOOL"; then
7050 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7051else
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7059 ac_cv_prog_DLLTOOL="${ncn_progname}"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063done
7064done
7065
7066fi
7067fi
7068DLLTOOL=$ac_cv_prog_DLLTOOL
7069if test -n "$DLLTOOL"; then
2aeb72e9
DD
7070 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7071echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 7072else
2aeb72e9
DD
7073 echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6
278a7a38
AO
7075fi
7076
7077 done
7078fi
7079
7080for ncn_progname in dlltool; do
2693c0b0
PB
7081 if test -n "$ncn_tool_prefix"; then
7082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7083set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7084echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7086if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7088else
7089 if test -n "$DLLTOOL"; then
7090 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7091else
1c710c3c
DJ
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7099 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103done
7104done
7105
ca9f4b81
AO
7106fi
7107fi
1c710c3c 7108DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7109if test -n "$DLLTOOL"; then
2aeb72e9
DD
7110 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7111echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7112else
2aeb72e9
DD
7113 echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6
ca9f4b81
AO
7115fi
7116
2693c0b0
PB
7117 fi
7118 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7120set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7121echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7123if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7125else
2693c0b0
PB
7126 if test -n "$DLLTOOL"; then
7127 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7128else
1c710c3c
DJ
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7136 ac_cv_prog_DLLTOOL="${ncn_progname}"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140done
7141done
7142
ca9f4b81
AO
7143fi
7144fi
1c710c3c 7145DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7146if test -n "$DLLTOOL"; then
2aeb72e9
DD
7147 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7148echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7149else
2aeb72e9
DD
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
ca9f4b81 7152fi
1c710c3c 7153
2693c0b0
PB
7154 fi
7155 test -n "$ac_cv_prog_DLLTOOL" && break
7156done
7157
7158if test -z "$ac_cv_prog_DLLTOOL" ; then
7159 set dummy dlltool
7160 if test $build = $host ; then
7161 DLLTOOL="$2"
ca9f4b81 7162 else
2693c0b0 7163 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7164 fi
ca9f4b81
AO
7165fi
7166
278a7a38
AO
7167
7168
7169if test -n "$LD"; then
7170 ac_cv_prog_LD=$LD
7171elif test -n "$ac_cv_prog_LD"; then
7172 LD=$ac_cv_prog_LD
7173fi
7174
7175if test -n "$ac_cv_prog_LD"; then
7176 for ncn_progname in ld; do
7177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7178set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7179echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7181if test "${ac_cv_prog_LD+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184 if test -n "$LD"; then
7185 ac_cv_prog_LD="$LD" # Let the user override the test.
7186else
7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7194 ac_cv_prog_LD="${ncn_progname}"
7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198done
7199done
7200
7201fi
7202fi
7203LD=$ac_cv_prog_LD
7204if test -n "$LD"; then
2aeb72e9
DD
7205 echo "$as_me:$LINENO: result: $LD" >&5
7206echo "${ECHO_T}$LD" >&6
278a7a38 7207else
2aeb72e9
DD
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
278a7a38
AO
7210fi
7211
7212 done
7213fi
7214
7215for ncn_progname in ld; do
2693c0b0
PB
7216 if test -n "$ncn_tool_prefix"; then
7217 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7218set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7219echo "$as_me:$LINENO: checking for $ac_word" >&5
7220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7221if test "${ac_cv_prog_LD+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7223else
7224 if test -n "$LD"; then
7225 ac_cv_prog_LD="$LD" # Let the user override the test.
7226else
1c710c3c
DJ
7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7234 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238done
7239done
7240
ca9f4b81
AO
7241fi
7242fi
1c710c3c 7243LD=$ac_cv_prog_LD
ca9f4b81 7244if test -n "$LD"; then
2aeb72e9
DD
7245 echo "$as_me:$LINENO: result: $LD" >&5
7246echo "${ECHO_T}$LD" >&6
ca9f4b81 7247else
2aeb72e9
DD
7248 echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6
ca9f4b81
AO
7250fi
7251
2693c0b0
PB
7252 fi
7253 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7255set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7256echo "$as_me:$LINENO: checking for $ac_word" >&5
7257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7258if test "${ac_cv_prog_LD+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7260else
2693c0b0
PB
7261 if test -n "$LD"; then
7262 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7263else
1c710c3c
DJ
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7271 ac_cv_prog_LD="${ncn_progname}"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275done
7276done
7277
ca9f4b81
AO
7278fi
7279fi
1c710c3c 7280LD=$ac_cv_prog_LD
2693c0b0 7281if test -n "$LD"; then
2aeb72e9
DD
7282 echo "$as_me:$LINENO: result: $LD" >&5
7283echo "${ECHO_T}$LD" >&6
ca9f4b81 7284else
2aeb72e9
DD
7285 echo "$as_me:$LINENO: result: no" >&5
7286echo "${ECHO_T}no" >&6
ca9f4b81 7287fi
1c710c3c 7288
2693c0b0
PB
7289 fi
7290 test -n "$ac_cv_prog_LD" && break
7291done
7292
7293if test -z "$ac_cv_prog_LD" ; then
7294 set dummy ld
7295 if test $build = $host ; then
7296 LD="$2"
ca9f4b81 7297 else
2693c0b0 7298 LD="${ncn_tool_prefix}$2"
ca9f4b81 7299 fi
ca9f4b81
AO
7300fi
7301
278a7a38
AO
7302
7303
7304if test -n "$LIPO"; then
7305 ac_cv_prog_LIPO=$LIPO
7306elif test -n "$ac_cv_prog_LIPO"; then
7307 LIPO=$ac_cv_prog_LIPO
7308fi
7309
7310if test -n "$ac_cv_prog_LIPO"; then
7311 for ncn_progname in lipo; do
7312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7313set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7314echo "$as_me:$LINENO: checking for $ac_word" >&5
7315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7316if test "${ac_cv_prog_LIPO+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 if test -n "$LIPO"; then
7320 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7329 ac_cv_prog_LIPO="${ncn_progname}"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333done
7334done
7335
7336fi
7337fi
7338LIPO=$ac_cv_prog_LIPO
7339if test -n "$LIPO"; then
2aeb72e9
DD
7340 echo "$as_me:$LINENO: result: $LIPO" >&5
7341echo "${ECHO_T}$LIPO" >&6
278a7a38 7342else
2aeb72e9
DD
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
278a7a38
AO
7345fi
7346
7347 done
7348fi
7349
7350for ncn_progname in lipo; do
2abefe3d
PB
7351 if test -n "$ncn_tool_prefix"; then
7352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7353set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7354echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7356if test "${ac_cv_prog_LIPO+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7358else
7359 if test -n "$LIPO"; then
7360 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7361else
1c710c3c
DJ
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7369 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373done
7374done
7375
2abefe3d
PB
7376fi
7377fi
1c710c3c 7378LIPO=$ac_cv_prog_LIPO
2abefe3d 7379if test -n "$LIPO"; then
2aeb72e9
DD
7380 echo "$as_me:$LINENO: result: $LIPO" >&5
7381echo "${ECHO_T}$LIPO" >&6
2abefe3d 7382else
2aeb72e9
DD
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
2abefe3d
PB
7385fi
7386
7387 fi
7388 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7390set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7391echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7393if test "${ac_cv_prog_LIPO+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7395else
7396 if test -n "$LIPO"; then
7397 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7398else
1c710c3c
DJ
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7406 ac_cv_prog_LIPO="${ncn_progname}"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411done
7412
2abefe3d
PB
7413fi
7414fi
1c710c3c 7415LIPO=$ac_cv_prog_LIPO
2abefe3d 7416if test -n "$LIPO"; then
2aeb72e9
DD
7417 echo "$as_me:$LINENO: result: $LIPO" >&5
7418echo "${ECHO_T}$LIPO" >&6
2abefe3d 7419else
2aeb72e9
DD
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
2abefe3d 7422fi
1c710c3c 7423
2abefe3d
PB
7424 fi
7425 test -n "$ac_cv_prog_LIPO" && break
7426done
7427
7428if test -z "$ac_cv_prog_LIPO" ; then
7429 set dummy lipo
7430 if test $build = $host ; then
7431 LIPO="$2"
7432 else
7433 LIPO="${ncn_tool_prefix}$2"
7434 fi
7435fi
7436
278a7a38
AO
7437
7438
7439if test -n "$NM"; then
7440 ac_cv_prog_NM=$NM
7441elif test -n "$ac_cv_prog_NM"; then
7442 NM=$ac_cv_prog_NM
7443fi
7444
7445if test -n "$ac_cv_prog_NM"; then
7446 for ncn_progname in nm; do
7447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7448set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7449echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7451if test "${ac_cv_prog_NM+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7453else
7454 if test -n "$NM"; then
7455 ac_cv_prog_NM="$NM" # Let the user override the test.
7456else
1c710c3c
DJ
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7464 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468done
7469done
7470
ca9f4b81
AO
7471fi
7472fi
1c710c3c 7473NM=$ac_cv_prog_NM
ca9f4b81 7474if test -n "$NM"; then
2aeb72e9
DD
7475 echo "$as_me:$LINENO: result: $NM" >&5
7476echo "${ECHO_T}$NM" >&6
ca9f4b81 7477else
2aeb72e9
DD
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
ca9f4b81
AO
7480fi
7481
278a7a38
AO
7482 done
7483fi
7484
7485for ncn_progname in nm; do
7486 if test -n "$ncn_tool_prefix"; then
7487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7488set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7489echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7491if test "${ac_cv_prog_NM+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7493else
2693c0b0
PB
7494 if test -n "$NM"; then
7495 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7496else
1c710c3c
DJ
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7504 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509done
7510
ca9f4b81
AO
7511fi
7512fi
1c710c3c 7513NM=$ac_cv_prog_NM
2693c0b0 7514if test -n "$NM"; then
2aeb72e9
DD
7515 echo "$as_me:$LINENO: result: $NM" >&5
7516echo "${ECHO_T}$NM" >&6
ca9f4b81 7517else
2aeb72e9
DD
7518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
ca9f4b81 7520fi
1c710c3c 7521
2693c0b0 7522 fi
278a7a38
AO
7523 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7525set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7526echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7528if test "${ac_cv_prog_NM+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 if test -n "$NM"; then
7532 ac_cv_prog_NM="$NM" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7541 ac_cv_prog_NM="${ncn_progname}"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547
7548fi
7549fi
7550NM=$ac_cv_prog_NM
7551if test -n "$NM"; then
2aeb72e9
DD
7552 echo "$as_me:$LINENO: result: $NM" >&5
7553echo "${ECHO_T}$NM" >&6
278a7a38 7554else
2aeb72e9
DD
7555 echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
278a7a38
AO
7557fi
7558
7559 fi
7560 test -n "$ac_cv_prog_NM" && break
7561done
7562
7563if test -z "$ac_cv_prog_NM" ; then
7564 set dummy nm
7565 if test $build = $host ; then
7566 NM="$2"
7567 else
7568 NM="${ncn_tool_prefix}$2"
7569 fi
7570fi
7571
7572
7573
7574if test -n "$RANLIB"; then
7575 ac_cv_prog_RANLIB=$RANLIB
7576elif test -n "$ac_cv_prog_RANLIB"; then
7577 RANLIB=$ac_cv_prog_RANLIB
7578fi
7579
7580if test -n "$ac_cv_prog_RANLIB"; then
7581 for ncn_progname in ranlib; do
7582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7583set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7584echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7586if test "${ac_cv_prog_RANLIB+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 if test -n "$RANLIB"; then
7590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7591else
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7599 ac_cv_prog_RANLIB="${ncn_progname}"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605
7606fi
7607fi
7608RANLIB=$ac_cv_prog_RANLIB
7609if test -n "$RANLIB"; then
2aeb72e9
DD
7610 echo "$as_me:$LINENO: result: $RANLIB" >&5
7611echo "${ECHO_T}$RANLIB" >&6
278a7a38 7612else
2aeb72e9
DD
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
278a7a38
AO
7615fi
7616
7617 done
7618fi
ca9f4b81 7619
278a7a38 7620for ncn_progname in ranlib; do
2693c0b0
PB
7621 if test -n "$ncn_tool_prefix"; then
7622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7624echo "$as_me:$LINENO: checking for $ac_word" >&5
7625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7626if test "${ac_cv_prog_RANLIB+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7628else
7629 if test -n "$RANLIB"; then
7630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7631else
1c710c3c
DJ
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7639 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643done
7644done
7645
ca9f4b81
AO
7646fi
7647fi
1c710c3c 7648RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7649if test -n "$RANLIB"; then
2aeb72e9
DD
7650 echo "$as_me:$LINENO: result: $RANLIB" >&5
7651echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7652else
2aeb72e9
DD
7653 echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6
ca9f4b81
AO
7655fi
7656
2693c0b0
PB
7657 fi
7658 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7660set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7661echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7663if test "${ac_cv_prog_RANLIB+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7665else
2693c0b0
PB
7666 if test -n "$RANLIB"; then
7667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7668else
1c710c3c
DJ
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7676 ac_cv_prog_RANLIB="${ncn_progname}"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680done
7681done
7682
ca9f4b81
AO
7683fi
7684fi
1c710c3c 7685RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7686if test -n "$RANLIB"; then
2aeb72e9
DD
7687 echo "$as_me:$LINENO: result: $RANLIB" >&5
7688echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7689else
2aeb72e9
DD
7690 echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6
ca9f4b81 7692fi
1c710c3c 7693
ca9f4b81 7694 fi
2693c0b0
PB
7695 test -n "$ac_cv_prog_RANLIB" && break
7696done
7697
7698if test -z "$ac_cv_prog_RANLIB" ; then
7699 RANLIB=":"
ca9f4b81
AO
7700fi
7701
278a7a38
AO
7702
7703
7704if test -n "$STRIP"; then
7705 ac_cv_prog_STRIP=$STRIP
7706elif test -n "$ac_cv_prog_STRIP"; then
7707 STRIP=$ac_cv_prog_STRIP
7708fi
7709
7710if test -n "$ac_cv_prog_STRIP"; then
7711 for ncn_progname in strip; do
7712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7713set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7714echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7716if test "${ac_cv_prog_STRIP+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 if test -n "$STRIP"; then
7720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7729 ac_cv_prog_STRIP="${ncn_progname}"
7730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733done
7734done
7735
7736fi
7737fi
7738STRIP=$ac_cv_prog_STRIP
7739if test -n "$STRIP"; then
2aeb72e9
DD
7740 echo "$as_me:$LINENO: result: $STRIP" >&5
7741echo "${ECHO_T}$STRIP" >&6
278a7a38 7742else
2aeb72e9
DD
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
278a7a38
AO
7745fi
7746
7747 done
7748fi
7749
7750for ncn_progname in strip; do
2abefe3d
PB
7751 if test -n "$ncn_tool_prefix"; then
7752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7753set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7756if test "${ac_cv_prog_STRIP+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7758else
7759 if test -n "$STRIP"; then
7760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7761else
1c710c3c
DJ
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7769 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774done
7775
2abefe3d
PB
7776fi
7777fi
1c710c3c 7778STRIP=$ac_cv_prog_STRIP
2abefe3d 7779if test -n "$STRIP"; then
2aeb72e9
DD
7780 echo "$as_me:$LINENO: result: $STRIP" >&5
7781echo "${ECHO_T}$STRIP" >&6
2abefe3d 7782else
2aeb72e9
DD
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
2abefe3d
PB
7785fi
7786
7787 fi
7788 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7790set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7791echo "$as_me:$LINENO: checking for $ac_word" >&5
7792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7793if test "${ac_cv_prog_STRIP+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7795else
7796 if test -n "$STRIP"; then
7797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7798else
1c710c3c
DJ
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7806 ac_cv_prog_STRIP="${ncn_progname}"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811done
7812
2abefe3d
PB
7813fi
7814fi
1c710c3c 7815STRIP=$ac_cv_prog_STRIP
2abefe3d 7816if test -n "$STRIP"; then
2aeb72e9
DD
7817 echo "$as_me:$LINENO: result: $STRIP" >&5
7818echo "${ECHO_T}$STRIP" >&6
2abefe3d 7819else
2aeb72e9
DD
7820 echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
2abefe3d 7822fi
1c710c3c 7823
2abefe3d
PB
7824 fi
7825 test -n "$ac_cv_prog_STRIP" && break
7826done
7827
7828if test -z "$ac_cv_prog_STRIP" ; then
7829 STRIP=":"
7830fi
7831
278a7a38
AO
7832
7833
7834if test -n "$WINDRES"; then
7835 ac_cv_prog_WINDRES=$WINDRES
7836elif test -n "$ac_cv_prog_WINDRES"; then
7837 WINDRES=$ac_cv_prog_WINDRES
7838fi
7839
7840if test -n "$ac_cv_prog_WINDRES"; then
7841 for ncn_progname in windres; do
7842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7843set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7844echo "$as_me:$LINENO: checking for $ac_word" >&5
7845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7846if test "${ac_cv_prog_WINDRES+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848else
7849 if test -n "$WINDRES"; then
7850 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7851else
7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7859 ac_cv_prog_WINDRES="${ncn_progname}"
7860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863done
7864done
7865
7866fi
7867fi
7868WINDRES=$ac_cv_prog_WINDRES
7869if test -n "$WINDRES"; then
2aeb72e9
DD
7870 echo "$as_me:$LINENO: result: $WINDRES" >&5
7871echo "${ECHO_T}$WINDRES" >&6
278a7a38 7872else
2aeb72e9
DD
7873 echo "$as_me:$LINENO: result: no" >&5
7874echo "${ECHO_T}no" >&6
278a7a38
AO
7875fi
7876
7877 done
7878fi
7879
7880for ncn_progname in windres; do
2693c0b0
PB
7881 if test -n "$ncn_tool_prefix"; then
7882 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7883set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7884echo "$as_me:$LINENO: checking for $ac_word" >&5
7885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7886if test "${ac_cv_prog_WINDRES+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7888else
7889 if test -n "$WINDRES"; then
7890 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7891else
1c710c3c
DJ
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7899 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903done
7904done
7905
ca9f4b81
AO
7906fi
7907fi
1c710c3c 7908WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7909if test -n "$WINDRES"; then
2aeb72e9
DD
7910 echo "$as_me:$LINENO: result: $WINDRES" >&5
7911echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7912else
2aeb72e9
DD
7913 echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
ca9f4b81
AO
7915fi
7916
2693c0b0
PB
7917 fi
7918 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7920set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7921echo "$as_me:$LINENO: checking for $ac_word" >&5
7922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7923if test "${ac_cv_prog_WINDRES+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7925else
2693c0b0
PB
7926 if test -n "$WINDRES"; then
7927 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7928else
1c710c3c
DJ
7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7936 ac_cv_prog_WINDRES="${ncn_progname}"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940done
7941done
7942
ca9f4b81
AO
7943fi
7944fi
1c710c3c 7945WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7946if test -n "$WINDRES"; then
2aeb72e9
DD
7947 echo "$as_me:$LINENO: result: $WINDRES" >&5
7948echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7949else
2aeb72e9
DD
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
ca9f4b81 7952fi
1c710c3c 7953
2693c0b0
PB
7954 fi
7955 test -n "$ac_cv_prog_WINDRES" && break
7956done
7957
7958if test -z "$ac_cv_prog_WINDRES" ; then
7959 set dummy windres
7960 if test $build = $host ; then
7961 WINDRES="$2"
ca9f4b81 7962 else
2693c0b0 7963 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7964 fi
ca9f4b81
AO
7965fi
7966
278a7a38
AO
7967
7968
901119ae
KT
7969if test -n "$WINDMC"; then
7970 ac_cv_prog_WINDMC=$WINDMC
7971elif test -n "$ac_cv_prog_WINDMC"; then
7972 WINDMC=$ac_cv_prog_WINDMC
7973fi
7974
7975if test -n "$ac_cv_prog_WINDMC"; then
7976 for ncn_progname in windmc; do
7977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7978set dummy ${ncn_progname}; ac_word=$2
7979echo "$as_me:$LINENO: checking for $ac_word" >&5
7980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981if test "${ac_cv_prog_WINDMC+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 if test -n "$WINDMC"; then
7985 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7986else
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
7993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_WINDMC="${ncn_progname}"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998done
7999done
8000
8001fi
8002fi
8003WINDMC=$ac_cv_prog_WINDMC
8004if test -n "$WINDMC"; then
8005 echo "$as_me:$LINENO: result: $WINDMC" >&5
8006echo "${ECHO_T}$WINDMC" >&6
8007else
8008 echo "$as_me:$LINENO: result: no" >&5
8009echo "${ECHO_T}no" >&6
8010fi
8011
8012 done
8013fi
8014
8015for ncn_progname in windmc; do
8016 if test -n "$ncn_tool_prefix"; then
8017 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8018set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8019echo "$as_me:$LINENO: checking for $ac_word" >&5
8020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8021if test "${ac_cv_prog_WINDMC+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024 if test -n "$WINDMC"; then
8025 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8026else
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8034 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8037 fi
8038done
8039done
8040
8041fi
8042fi
8043WINDMC=$ac_cv_prog_WINDMC
8044if test -n "$WINDMC"; then
8045 echo "$as_me:$LINENO: result: $WINDMC" >&5
8046echo "${ECHO_T}$WINDMC" >&6
8047else
8048 echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6
8050fi
8051
8052 fi
8053 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8055set dummy ${ncn_progname}; ac_word=$2
8056echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058if test "${ac_cv_prog_WINDMC+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061 if test -n "$WINDMC"; then
8062 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_WINDMC="${ncn_progname}"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076done
8077
8078fi
8079fi
8080WINDMC=$ac_cv_prog_WINDMC
8081if test -n "$WINDMC"; then
8082 echo "$as_me:$LINENO: result: $WINDMC" >&5
8083echo "${ECHO_T}$WINDMC" >&6
8084else
8085 echo "$as_me:$LINENO: result: no" >&5
8086echo "${ECHO_T}no" >&6
8087fi
8088
8089 fi
8090 test -n "$ac_cv_prog_WINDMC" && break
8091done
8092
8093if test -z "$ac_cv_prog_WINDMC" ; then
8094 set dummy windmc
8095 if test $build = $host ; then
8096 WINDMC="$2"
8097 else
8098 WINDMC="${ncn_tool_prefix}$2"
8099 fi
8100fi
8101
8102
8103
278a7a38
AO
8104if test -n "$OBJCOPY"; then
8105 ac_cv_prog_OBJCOPY=$OBJCOPY
8106elif test -n "$ac_cv_prog_OBJCOPY"; then
8107 OBJCOPY=$ac_cv_prog_OBJCOPY
8108fi
8109
8110if test -n "$ac_cv_prog_OBJCOPY"; then
8111 for ncn_progname in objcopy; do
8112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8113set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8114echo "$as_me:$LINENO: checking for $ac_word" >&5
8115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8116if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 if test -n "$OBJCOPY"; then
8120 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8129 ac_cv_prog_OBJCOPY="${ncn_progname}"
8130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133done
8134done
8135
8136fi
8137fi
8138OBJCOPY=$ac_cv_prog_OBJCOPY
8139if test -n "$OBJCOPY"; then
2aeb72e9
DD
8140 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8141echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 8142else
2aeb72e9
DD
8143 echo "$as_me:$LINENO: result: no" >&5
8144echo "${ECHO_T}no" >&6
278a7a38
AO
8145fi
8146
8147 done
8148fi
8149
8150for ncn_progname in objcopy; do
2693c0b0
PB
8151 if test -n "$ncn_tool_prefix"; then
8152 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8153set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8154echo "$as_me:$LINENO: checking for $ac_word" >&5
8155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8156if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8158else
8159 if test -n "$OBJCOPY"; then
8160 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8161else
1c710c3c
DJ
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8169 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173done
8174done
8175
ca9f4b81
AO
8176fi
8177fi
1c710c3c 8178OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8179if test -n "$OBJCOPY"; then
2aeb72e9
DD
8180 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8181echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8182else
2aeb72e9
DD
8183 echo "$as_me:$LINENO: result: no" >&5
8184echo "${ECHO_T}no" >&6
ca9f4b81
AO
8185fi
8186
2693c0b0
PB
8187 fi
8188 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
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
1c710c3c
DJ
8193if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8195else
2693c0b0
PB
8196 if test -n "$OBJCOPY"; then
8197 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8198else
1c710c3c
DJ
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
1c710c3c
DJ
8206 ac_cv_prog_OBJCOPY="${ncn_progname}"
8207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210done
8211done
8212
ca9f4b81
AO
8213fi
8214fi
1c710c3c 8215OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8216if test -n "$OBJCOPY"; then
2aeb72e9
DD
8217 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8218echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8219else
2aeb72e9
DD
8220 echo "$as_me:$LINENO: result: no" >&5
8221echo "${ECHO_T}no" >&6
ca9f4b81 8222fi
1c710c3c 8223
2693c0b0
PB
8224 fi
8225 test -n "$ac_cv_prog_OBJCOPY" && break
8226done
8227
8228if test -z "$ac_cv_prog_OBJCOPY" ; then
8229 set dummy objcopy
8230 if test $build = $host ; then
8231 OBJCOPY="$2"
ca9f4b81 8232 else
2693c0b0 8233 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8234 fi
ca9f4b81
AO
8235fi
8236
278a7a38
AO
8237
8238
8239if test -n "$OBJDUMP"; then
8240 ac_cv_prog_OBJDUMP=$OBJDUMP
8241elif test -n "$ac_cv_prog_OBJDUMP"; then
8242 OBJDUMP=$ac_cv_prog_OBJDUMP
8243fi
8244
8245if test -n "$ac_cv_prog_OBJDUMP"; then
8246 for ncn_progname in objdump; do
8247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8248set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8249echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8251if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254 if test -n "$OBJDUMP"; then
8255 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8256else
8257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8264 ac_cv_prog_OBJDUMP="${ncn_progname}"
8265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268done
8269done
8270
8271fi
8272fi
8273OBJDUMP=$ac_cv_prog_OBJDUMP
8274if test -n "$OBJDUMP"; then
2aeb72e9
DD
8275 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8276echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 8277else
2aeb72e9
DD
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
278a7a38
AO
8280fi
8281
8282 done
8283fi
8284
8285for ncn_progname in objdump; do
2693c0b0
PB
8286 if test -n "$ncn_tool_prefix"; then
8287 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8288set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8289echo "$as_me:$LINENO: checking for $ac_word" >&5
8290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8291if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8293else
8294 if test -n "$OBJDUMP"; then
8295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8296else
1c710c3c
DJ
8297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298for as_dir in $PATH
8299do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8304 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8307 fi
8308done
8309done
8310
ca9f4b81
AO
8311fi
8312fi
1c710c3c 8313OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8314if test -n "$OBJDUMP"; then
2aeb72e9
DD
8315 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8316echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8317else
2aeb72e9
DD
8318 echo "$as_me:$LINENO: result: no" >&5
8319echo "${ECHO_T}no" >&6
ca9f4b81
AO
8320fi
8321
2693c0b0
PB
8322 fi
8323 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8326echo "$as_me:$LINENO: checking for $ac_word" >&5
8327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8328if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8330else
2693c0b0
PB
8331 if test -n "$OBJDUMP"; then
8332 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8333else
1c710c3c
DJ
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8341 ac_cv_prog_OBJDUMP="${ncn_progname}"
8342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345done
8346done
8347
ca9f4b81
AO
8348fi
8349fi
1c710c3c 8350OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8351if test -n "$OBJDUMP"; then
2aeb72e9
DD
8352 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8353echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8354else
2aeb72e9
DD
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
ca9f4b81 8357fi
1c710c3c 8358
2693c0b0
PB
8359 fi
8360 test -n "$ac_cv_prog_OBJDUMP" && break
8361done
8362
8363if test -z "$ac_cv_prog_OBJDUMP" ; then
8364 set dummy objdump
8365 if test $build = $host ; then
8366 OBJDUMP="$2"
ca9f4b81 8367 else
2693c0b0 8368 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8369 fi
ca9f4b81
AO
8370fi
8371
671aa708
NN
8372
8373
8374
8375
8376
2abefe3d 8377# Target tools.
1c710c3c 8378
2aeb72e9 8379# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 8380if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
8381 withval="$with_build_time_tools"
8382 case x"$withval" in
e8b05380
PB
8383 x/*) ;;
8384 *)
8385 with_build_time_tools=
1c710c3c
DJ
8386 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8387echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8388 ;;
8389 esac
ca9f4b81 8390else
e8b05380 8391 with_build_time_tools=
2aeb72e9 8392fi;
ca9f4b81 8393
278a7a38
AO
8394
8395
8396if test -n "$CC_FOR_TARGET"; then
8397 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8398elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8399 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8400fi
8401
8402if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8403 for ncn_progname in cc gcc; do
8404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8405set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8406echo "$as_me:$LINENO: checking for $ac_word" >&5
8407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8408if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410else
8411 if test -n "$CC_FOR_TARGET"; then
8412 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8413else
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8421 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8424 fi
8425done
8426done
8427
8428fi
8429fi
8430CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8431if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8432 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8433echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8434else
2aeb72e9
DD
8435 echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6
278a7a38
AO
8437fi
8438
8439 done
8440fi
8441
8442if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8443 for ncn_progname in cc gcc; do
2aeb72e9
DD
8444 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8445echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8446 if test -x $with_build_time_tools/${ncn_progname}; then
8447 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8448 echo "$as_me:$LINENO: result: yes" >&5
8449echo "${ECHO_T}yes" >&6
72a7ab82 8450 break
e8b05380 8451 else
2aeb72e9
DD
8452 echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6
72a7ab82
AP
8454 fi
8455 done
4de997d1
PB
8456fi
8457
e8b05380
PB
8458if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8459 for ncn_progname in cc gcc; do
8460 if test -n "$ncn_target_tool_prefix"; then
8461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8463echo "$as_me:$LINENO: checking for $ac_word" >&5
8464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8465if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8467else
8468 if test -n "$CC_FOR_TARGET"; then
8469 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8470else
1c710c3c
DJ
8471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH
8473do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8478 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8481 fi
8482done
8483done
8484
4de997d1
PB
8485fi
8486fi
1c710c3c 8487CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8488if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8489 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8490echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8491else
2aeb72e9
DD
8492 echo "$as_me:$LINENO: result: no" >&5
8493echo "${ECHO_T}no" >&6
4de997d1
PB
8494fi
8495
e8b05380
PB
8496 fi
8497 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8499set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8500echo "$as_me:$LINENO: checking for $ac_word" >&5
8501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8502if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8504else
2693c0b0
PB
8505 if test -n "$CC_FOR_TARGET"; then
8506 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8507else
1c710c3c
DJ
8508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509for as_dir in $PATH
8510do
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8515 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8518 fi
8519done
8520done
8521
4de997d1
PB
8522fi
8523fi
1c710c3c 8524CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8525if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8526 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8527echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8528else
2aeb72e9
DD
8529 echo "$as_me:$LINENO: result: no" >&5
8530echo "${ECHO_T}no" >&6
4de997d1 8531fi
1c710c3c 8532
e8b05380
PB
8533 fi
8534 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8535 done
8536fi
1c710c3c 8537
2693c0b0
PB
8538if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8539 set dummy cc gcc
8540 if test $build = $target ; then
8541 CC_FOR_TARGET="$2"
4de997d1 8542 else
2693c0b0 8543 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8544 fi
1c00b503
PB
8545else
8546 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8547fi
8548
278a7a38
AO
8549
8550
8551if test -n "$CXX_FOR_TARGET"; then
8552 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8553elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8554 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8555fi
8556
8557if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8558 for ncn_progname in c++ g++ cxx gxx; do
8559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8560set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8561echo "$as_me:$LINENO: checking for $ac_word" >&5
8562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8563if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566 if test -n "$CXX_FOR_TARGET"; then
8567 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8568else
8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8576 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8579 fi
8580done
8581done
8582
8583fi
8584fi
8585CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8586if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8587 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8588echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8589else
2aeb72e9
DD
8590 echo "$as_me:$LINENO: result: no" >&5
8591echo "${ECHO_T}no" >&6
278a7a38
AO
8592fi
8593
8594 done
8595fi
8596
8597if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8598 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8599 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8600echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8601 if test -x $with_build_time_tools/${ncn_progname}; then
8602 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
e8b05380
PB
8605 break
8606 else
2aeb72e9
DD
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
e8b05380
PB
8609 fi
8610 done
8611fi
8612
8613if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8614 for ncn_progname in c++ g++ cxx gxx; do
8615 if test -n "$ncn_target_tool_prefix"; then
8616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8617set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8618echo "$as_me:$LINENO: checking for $ac_word" >&5
8619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8620if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8622else
8623 if test -n "$CXX_FOR_TARGET"; then
8624 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8625else
1c710c3c
DJ
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8633 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8636 fi
8637done
8638done
8639
4de997d1
PB
8640fi
8641fi
1c710c3c 8642CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8643if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8644 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8645echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8646else
2aeb72e9
DD
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
4de997d1
PB
8649fi
8650
e8b05380
PB
8651 fi
8652 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8654set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8655echo "$as_me:$LINENO: checking for $ac_word" >&5
8656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8657if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8659else
2693c0b0
PB
8660 if test -n "$CXX_FOR_TARGET"; then
8661 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8662else
1c710c3c
DJ
8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8670 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674done
8675done
8676
4de997d1
PB
8677fi
8678fi
1c710c3c 8679CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8680if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8681 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8682echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8683else
2aeb72e9
DD
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
4de997d1 8686fi
1c710c3c 8687
e8b05380
PB
8688 fi
8689 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8690 done
8691fi
1c710c3c 8692
2693c0b0
PB
8693if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8694 set dummy c++ g++ cxx gxx
8695 if test $build = $target ; then
8696 CXX_FOR_TARGET="$2"
4de997d1 8697 else
2693c0b0 8698 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8699 fi
1c00b503
PB
8700else
8701 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8702fi
8703
278a7a38
AO
8704
8705
8706if test -n "$GCC_FOR_TARGET"; then
8707 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8708elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8709 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8710fi
8711
8712if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8713 for ncn_progname in gcc; do
8714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8715set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8716echo "$as_me:$LINENO: checking for $ac_word" >&5
8717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8718if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720else
8721 if test -n "$GCC_FOR_TARGET"; then
8722 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8723else
8724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725for as_dir in $PATH
8726do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8731 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8734 fi
8735done
8736done
8737
8738fi
8739fi
8740GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8741if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8742 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8743echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8744else
2aeb72e9
DD
8745 echo "$as_me:$LINENO: result: no" >&5
8746echo "${ECHO_T}no" >&6
278a7a38
AO
8747fi
8748
8749 done
8750fi
8751
8752if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8753 for ncn_progname in gcc; do
2aeb72e9
DD
8754 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8755echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8756 if test -x $with_build_time_tools/${ncn_progname}; then
8757 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8758 echo "$as_me:$LINENO: result: yes" >&5
8759echo "${ECHO_T}yes" >&6
e8b05380
PB
8760 break
8761 else
2aeb72e9
DD
8762 echo "$as_me:$LINENO: result: no" >&5
8763echo "${ECHO_T}no" >&6
e8b05380
PB
8764 fi
8765 done
8766fi
8767
8768if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8769 for ncn_progname in gcc; do
8770 if test -n "$ncn_target_tool_prefix"; then
8771 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8772set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8773echo "$as_me:$LINENO: checking for $ac_word" >&5
8774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8775if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8777else
e8b05380
PB
8778 if test -n "$GCC_FOR_TARGET"; then
8779 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8780else
1c710c3c
DJ
8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8788 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 break 2
8791 fi
8792done
8793done
8794
ca9f4b81
AO
8795fi
8796fi
1c710c3c 8797GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8798if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8799 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8800echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8801else
2aeb72e9
DD
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
ca9f4b81
AO
8804fi
8805
e8b05380
PB
8806 fi
8807 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8809set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8810echo "$as_me:$LINENO: checking for $ac_word" >&5
8811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8812if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8814else
e8b05380
PB
8815 if test -n "$GCC_FOR_TARGET"; then
8816 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8817else
1c710c3c
DJ
8818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819for as_dir in $PATH
8820do
8821 IFS=$as_save_IFS
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8825 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 break 2
8828 fi
8829done
8830done
8831
ca9f4b81
AO
8832fi
8833fi
1c710c3c 8834GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8835if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8836 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8837echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8838else
2aeb72e9
DD
8839 echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
ca9f4b81 8841fi
1c710c3c 8842
e8b05380
PB
8843 fi
8844 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8845 done
8846fi
1c710c3c 8847
e8b05380
PB
8848if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8849 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8850else
8851 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8852fi
8853
278a7a38
AO
8854
8855
8856if test -n "$GCJ_FOR_TARGET"; then
8857 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8858elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8859 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8860fi
8861
8862if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8863 for ncn_progname in gcj; do
8864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8865set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8866echo "$as_me:$LINENO: checking for $ac_word" >&5
8867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8868if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870else
8871 if test -n "$GCJ_FOR_TARGET"; then
8872 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8873else
8874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877 IFS=$as_save_IFS
8878 test -z "$as_dir" && as_dir=.
8879 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8881 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 break 2
8884 fi
8885done
8886done
8887
8888fi
8889fi
8890GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8891if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8892 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8893echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8894else
2aeb72e9
DD
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
278a7a38
AO
8897fi
8898
8899 done
8900fi
8901
8902if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8903 for ncn_progname in gcj; do
2aeb72e9
DD
8904 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8905echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8906 if test -x $with_build_time_tools/${ncn_progname}; then
8907 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8908 echo "$as_me:$LINENO: result: yes" >&5
8909echo "${ECHO_T}yes" >&6
e8b05380
PB
8910 break
8911 else
2aeb72e9
DD
8912 echo "$as_me:$LINENO: result: no" >&5
8913echo "${ECHO_T}no" >&6
e8b05380
PB
8914 fi
8915 done
8916fi
8917
8918if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8919 for ncn_progname in gcj; do
8920 if test -n "$ncn_target_tool_prefix"; then
8921 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8922set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8923echo "$as_me:$LINENO: checking for $ac_word" >&5
8924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8925if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8927else
fb0103e5
RG
8928 if test -n "$GCJ_FOR_TARGET"; then
8929 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8930else
1c710c3c
DJ
8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932for as_dir in $PATH
8933do
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8938 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 break 2
8941 fi
8942done
8943done
8944
e8b05380
PB
8945fi
8946fi
278a7a38
AO
8947GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8948if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8949 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8950echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8951else
2aeb72e9
DD
8952 echo "$as_me:$LINENO: result: no" >&5
8953echo "${ECHO_T}no" >&6
278a7a38
AO
8954fi
8955
8956 fi
8957 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8960echo "$as_me:$LINENO: checking for $ac_word" >&5
8961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8962if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965 if test -n "$GCJ_FOR_TARGET"; then
8966 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8967else
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
8970do
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8975 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8978 fi
8979done
8980done
8981
8982fi
8983fi
8984GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8985if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8986 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8987echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8988else
2aeb72e9
DD
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
278a7a38
AO
8991fi
8992
8993 fi
8994 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8995 done
8996fi
8997
8998if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8999 set dummy gcj
9000 if test $build = $target ; then
9001 GCJ_FOR_TARGET="$2"
9002 else
9003 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9004 fi
1c00b503
PB
9005else
9006 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
9007fi
9008
9009
9010
9011if test -n "$GFORTRAN_FOR_TARGET"; then
9012 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9013elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9014 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
9015fi
9016
278a7a38
AO
9017if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9018 for ncn_progname in gfortran; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 9020set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9021echo "$as_me:$LINENO: checking for $ac_word" >&5
9022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9023if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 9024 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9025else
278a7a38
AO
9026 if test -n "$GFORTRAN_FOR_TARGET"; then
9027 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 9028else
1c710c3c
DJ
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9036 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040done
9041done
9042
e8b05380
PB
9043fi
9044fi
278a7a38
AO
9045GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9046if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9047 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9048echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9049else
2aeb72e9
DD
9050 echo "$as_me:$LINENO: result: no" >&5
9051echo "${ECHO_T}no" >&6
e8b05380 9052fi
1c710c3c 9053
e8b05380
PB
9054 done
9055fi
1c710c3c 9056
278a7a38 9057if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9058 for ncn_progname in gfortran; do
2aeb72e9
DD
9059 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9060echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9061 if test -x $with_build_time_tools/${ncn_progname}; then
9062 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
e8b05380
PB
9065 break
9066 else
2aeb72e9
DD
9067 echo "$as_me:$LINENO: result: no" >&5
9068echo "${ECHO_T}no" >&6
e8b05380
PB
9069 fi
9070 done
9071fi
9072
9073if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9074 for ncn_progname in gfortran; do
9075 if test -n "$ncn_target_tool_prefix"; then
9076 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9077set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9078echo "$as_me:$LINENO: checking for $ac_word" >&5
9079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9080if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9082else
9083 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9084 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9093 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097done
9098done
9099
e8b05380
PB
9100fi
9101fi
1c710c3c 9102GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9103if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9104 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9105echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9106else
2aeb72e9
DD
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
e8b05380
PB
9109fi
9110
9111 fi
9112 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9114set dummy ${ncn_progname}; 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_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9119else
9120 if test -n "$GFORTRAN_FOR_TARGET"; then
9121 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9122else
1c710c3c
DJ
9123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124for as_dir in $PATH
9125do
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9130 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9133 fi
9134done
9135done
9136
e8b05380
PB
9137fi
9138fi
1c710c3c 9139GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9140if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9141 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9142echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9143else
2aeb72e9
DD
9144 echo "$as_me:$LINENO: result: no" >&5
9145echo "${ECHO_T}no" >&6
e8b05380 9146fi
1c710c3c 9147
e8b05380
PB
9148 fi
9149 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9150 done
9151fi
1c710c3c 9152
e8b05380
PB
9153if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9154 set dummy gfortran
2693c0b0 9155 if test $build = $target ; then
e8b05380 9156 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9157 else
e8b05380
PB
9158 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9159 fi
1c00b503
PB
9160else
9161 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9162fi
9163
9164
9165
e8b05380
PB
9166cat > conftest.c << \EOF
9167#ifdef __GNUC__
9168 gcc_yay;
9169#endif
9170EOF
9171if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9172 have_gcc_for_target=yes
9173else
9174 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9175 have_gcc_for_target=no
9176fi
9177rm conftest.c
9178
9179
9180
9181
9182if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9183 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9184 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9185echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9186 if test -x $with_build_time_tools/ar; then
9187 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9188 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
9189 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9190echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 9191 else
2aeb72e9
DD
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
d1f8db0c 9194 fi
e8b05380
PB
9195 elif test $build != $host && test $have_gcc_for_target = yes; then
9196 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9197 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9198 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9199 fi
9200fi
3e19841a 9201if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9202 # Extract the first word of "ar", so it can be a program name with args.
9203set dummy ar; ac_word=$2
2aeb72e9
DD
9204echo "$as_me:$LINENO: checking for $ac_word" >&5
9205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9206if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9208else
1c710c3c
DJ
9209 case $AR_FOR_TARGET in
9210 [\\/]* | ?:[\\/]*)
e8b05380
PB
9211 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9212 ;;
e8b05380 9213 *)
1c710c3c
DJ
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215for as_dir in $gcc_cv_tool_dirs
9216do
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9221 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9224 fi
9225done
9226done
9227
e8b05380
PB
9228 ;;
9229esac
9230fi
1c710c3c 9231AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 9232
e8b05380 9233if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9234 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9235echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9236else
2aeb72e9
DD
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
4de997d1
PB
9239fi
9240
e8b05380
PB
9241fi
9242if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9243
9244
9245if test -n "$AR_FOR_TARGET"; then
9246 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9247elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9248 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9249fi
9250
9251if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9252 for ncn_progname in ar; do
9253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9254set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9255echo "$as_me:$LINENO: checking for $ac_word" >&5
9256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9257if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260 if test -n "$AR_FOR_TARGET"; then
9261 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9262else
9263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264for as_dir in $PATH
9265do
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
9268 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9270 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 break 2
9273 fi
9274done
9275done
9276
9277fi
9278fi
9279AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9280if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9281 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9282echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 9283else
2aeb72e9
DD
9284 echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
278a7a38
AO
9286fi
9287
9288 done
9289fi
9290
9291if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9292 for ncn_progname in ar; do
2aeb72e9
DD
9293 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9294echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9295 if test -x $with_build_time_tools/${ncn_progname}; then
9296 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9297 echo "$as_me:$LINENO: result: yes" >&5
9298echo "${ECHO_T}yes" >&6
e8b05380
PB
9299 break
9300 else
2aeb72e9
DD
9301 echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6
e8b05380
PB
9303 fi
9304 done
9305fi
9306
9307if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9308 for ncn_progname in ar; do
9309 if test -n "$ncn_target_tool_prefix"; then
9310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9311set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9312echo "$as_me:$LINENO: checking for $ac_word" >&5
9313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9314if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9316else
e8b05380
PB
9317 if test -n "$AR_FOR_TARGET"; then
9318 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9319else
1c710c3c
DJ
9320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323 IFS=$as_save_IFS
9324 test -z "$as_dir" && as_dir=.
9325 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9327 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9329 break 2
9330 fi
9331done
9332done
9333
4de997d1
PB
9334fi
9335fi
1c710c3c 9336AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9337if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9338 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9339echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 9340else
2aeb72e9
DD
9341 echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6
4de997d1
PB
9343fi
9344
e8b05380
PB
9345 fi
9346 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9348set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9349echo "$as_me:$LINENO: checking for $ac_word" >&5
9350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9351if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9353else
9354 if test -n "$AR_FOR_TARGET"; then
9355 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9356else
1c710c3c
DJ
9357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358for as_dir in $PATH
9359do
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9364 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9367 fi
9368done
9369done
9370
e8b05380
PB
9371fi
9372fi
1c710c3c 9373AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9374if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9375 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9376echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9377else
2aeb72e9
DD
9378 echo "$as_me:$LINENO: result: no" >&5
9379echo "${ECHO_T}no" >&6
e8b05380 9380fi
1c710c3c 9381
e8b05380
PB
9382 fi
9383 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9384 done
9385fi
1c710c3c 9386
e8b05380
PB
9387if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9388 set dummy ar
9389 if test $build = $target ; then
9390 AR_FOR_TARGET="$2"
9391 else
9392 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9393 fi
1c00b503
PB
9394else
9395 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
9396fi
9397
d1f8db0c
PB
9398else
9399 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9400fi
9401
9402
9403
9404
9405if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9406 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9407 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9408echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9409 if test -x $with_build_time_tools/as; then
9410 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9411 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9412 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9413echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9414 else
2aeb72e9
DD
9415 echo "$as_me:$LINENO: result: no" >&5
9416echo "${ECHO_T}no" >&6
d1f8db0c 9417 fi
e8b05380
PB
9418 elif test $build != $host && test $have_gcc_for_target = yes; then
9419 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9420 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9421 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9422 fi
9423fi
3e19841a 9424if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9425 # Extract the first word of "as", so it can be a program name with args.
9426set dummy as; ac_word=$2
2aeb72e9
DD
9427echo "$as_me:$LINENO: checking for $ac_word" >&5
9428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9429if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9431else
1c710c3c
DJ
9432 case $AS_FOR_TARGET in
9433 [\\/]* | ?:[\\/]*)
e8b05380
PB
9434 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9435 ;;
e8b05380 9436 *)
1c710c3c
DJ
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $gcc_cv_tool_dirs
9439do
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9444 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9447 fi
9448done
9449done
9450
e8b05380
PB
9451 ;;
9452esac
9453fi
1c710c3c 9454AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9455
e8b05380 9456if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9457 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9458echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9459else
2aeb72e9
DD
9460 echo "$as_me:$LINENO: result: no" >&5
9461echo "${ECHO_T}no" >&6
e8b05380
PB
9462fi
9463
9464fi
9465if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9466
9467
9468if test -n "$AS_FOR_TARGET"; then
9469 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9470elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9471 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9472fi
9473
9474if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9475 for ncn_progname in as; do
9476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9477set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9478echo "$as_me:$LINENO: checking for $ac_word" >&5
9479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9480if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483 if test -n "$AS_FOR_TARGET"; then
9484 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9485else
9486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487for as_dir in $PATH
9488do
9489 IFS=$as_save_IFS
9490 test -z "$as_dir" && as_dir=.
9491 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9493 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9495 break 2
9496 fi
9497done
9498done
9499
9500fi
9501fi
9502AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9503if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9504 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9505echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9506else
2aeb72e9
DD
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
278a7a38
AO
9509fi
9510
9511 done
9512fi
9513
9514if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9515 for ncn_progname in as; do
2aeb72e9
DD
9516 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9517echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9518 if test -x $with_build_time_tools/${ncn_progname}; then
9519 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9520 echo "$as_me:$LINENO: result: yes" >&5
9521echo "${ECHO_T}yes" >&6
e8b05380
PB
9522 break
9523 else
2aeb72e9
DD
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
e8b05380
PB
9526 fi
9527 done
9528fi
9529
9530if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9531 for ncn_progname in as; do
9532 if test -n "$ncn_target_tool_prefix"; then
9533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9534set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9535echo "$as_me:$LINENO: checking for $ac_word" >&5
9536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9537if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9539else
9540 if test -n "$AS_FOR_TARGET"; then
9541 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9542else
1c710c3c
DJ
9543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544for as_dir in $PATH
9545do
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9550 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9553 fi
9554done
9555done
9556
e8b05380
PB
9557fi
9558fi
1c710c3c 9559AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9560if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9561 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9562echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9563else
2aeb72e9
DD
9564 echo "$as_me:$LINENO: result: no" >&5
9565echo "${ECHO_T}no" >&6
e8b05380
PB
9566fi
9567
9568 fi
9569 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9571set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9572echo "$as_me:$LINENO: checking for $ac_word" >&5
9573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9574if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9576else
e8b05380
PB
9577 if test -n "$AS_FOR_TARGET"; then
9578 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9579else
1c710c3c
DJ
9580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9587 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591done
9592done
9593
4de997d1
PB
9594fi
9595fi
1c710c3c 9596AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9597if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9598 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9599echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9600else
2aeb72e9
DD
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
4de997d1 9603fi
1c710c3c 9604
e8b05380
PB
9605 fi
9606 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9607 done
9608fi
1c710c3c 9609
e8b05380
PB
9610if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9611 set dummy as
9612 if test $build = $target ; then
9613 AS_FOR_TARGET="$2"
9614 else
9615 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9616 fi
1c00b503
PB
9617else
9618 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9619fi
2693c0b0 9620
d1f8db0c
PB
9621else
9622 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9623fi
9624
e8b05380
PB
9625
9626
9627
9628if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9629 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9630 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9631echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9632 if test -x $with_build_time_tools/dlltool; then
9633 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9634 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9635 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9636echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9637 else
2aeb72e9
DD
9638 echo "$as_me:$LINENO: result: no" >&5
9639echo "${ECHO_T}no" >&6
d1f8db0c 9640 fi
e8b05380
PB
9641 elif test $build != $host && test $have_gcc_for_target = yes; then
9642 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9643 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9644 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9645 fi
9646fi
3e19841a 9647if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9648 # Extract the first word of "dlltool", so it can be a program name with args.
9649set dummy dlltool; ac_word=$2
2aeb72e9
DD
9650echo "$as_me:$LINENO: checking for $ac_word" >&5
9651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9652if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9654else
1c710c3c
DJ
9655 case $DLLTOOL_FOR_TARGET in
9656 [\\/]* | ?:[\\/]*)
e8b05380
PB
9657 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9658 ;;
e8b05380 9659 *)
1c710c3c
DJ
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $gcc_cv_tool_dirs
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9667 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9670 fi
9671done
9672done
9673
e8b05380
PB
9674 ;;
9675esac
4de997d1 9676fi
1c710c3c 9677DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9678
e8b05380 9679if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9680 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9681echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9682else
2aeb72e9
DD
9683 echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
4de997d1
PB
9685fi
9686
e8b05380
PB
9687fi
9688if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9689
9690
9691if test -n "$DLLTOOL_FOR_TARGET"; then
9692 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9693elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9694 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9695fi
9696
9697if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9698 for ncn_progname in dlltool; do
9699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9700set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9701echo "$as_me:$LINENO: checking for $ac_word" >&5
9702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9703if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705else
9706 if test -n "$DLLTOOL_FOR_TARGET"; then
9707 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9708else
9709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710for as_dir in $PATH
9711do
9712 IFS=$as_save_IFS
9713 test -z "$as_dir" && as_dir=.
9714 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9716 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 break 2
9719 fi
9720done
9721done
9722
9723fi
9724fi
9725DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9726if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9727 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9728echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9729else
2aeb72e9
DD
9730 echo "$as_me:$LINENO: result: no" >&5
9731echo "${ECHO_T}no" >&6
278a7a38
AO
9732fi
9733
9734 done
9735fi
9736
9737if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9738 for ncn_progname in dlltool; do
2aeb72e9
DD
9739 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9740echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9741 if test -x $with_build_time_tools/${ncn_progname}; then
9742 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9743 echo "$as_me:$LINENO: result: yes" >&5
9744echo "${ECHO_T}yes" >&6
e8b05380
PB
9745 break
9746 else
2aeb72e9
DD
9747 echo "$as_me:$LINENO: result: no" >&5
9748echo "${ECHO_T}no" >&6
e8b05380
PB
9749 fi
9750 done
9751fi
9752
9753if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9754 for ncn_progname in dlltool; do
9755 if test -n "$ncn_target_tool_prefix"; then
9756 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9757set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9758echo "$as_me:$LINENO: checking for $ac_word" >&5
9759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9760if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9762else
e8b05380
PB
9763 if test -n "$DLLTOOL_FOR_TARGET"; then
9764 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9765else
1c710c3c
DJ
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9773 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9776 fi
9777done
9778done
9779
4de997d1
PB
9780fi
9781fi
1c710c3c 9782DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9783if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9784 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9785echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9786else
2aeb72e9
DD
9787 echo "$as_me:$LINENO: result: no" >&5
9788echo "${ECHO_T}no" >&6
4de997d1 9789fi
4de997d1 9790
e8b05380
PB
9791 fi
9792 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9794set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9795echo "$as_me:$LINENO: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9797if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9799else
e8b05380
PB
9800 if test -n "$DLLTOOL_FOR_TARGET"; then
9801 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9802else
1c710c3c
DJ
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9810 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814done
9815done
9816
4de997d1
PB
9817fi
9818fi
1c710c3c 9819DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9820if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9821 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9822echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9823else
2aeb72e9
DD
9824 echo "$as_me:$LINENO: result: no" >&5
9825echo "${ECHO_T}no" >&6
4de997d1 9826fi
1c710c3c 9827
e8b05380
PB
9828 fi
9829 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9830 done
9831fi
1c710c3c 9832
e8b05380
PB
9833if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9834 set dummy dlltool
9835 if test $build = $target ; then
9836 DLLTOOL_FOR_TARGET="$2"
9837 else
9838 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9839 fi
1c00b503
PB
9840else
9841 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9842fi
9843
d1f8db0c
PB
9844else
9845 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9846fi
9847
4de997d1 9848
e8b05380
PB
9849
9850
9851if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9852 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9853 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9854echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9855 if test -x $with_build_time_tools/ld; then
9856 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9857 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9858 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9859echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9860 else
2aeb72e9
DD
9861 echo "$as_me:$LINENO: result: no" >&5
9862echo "${ECHO_T}no" >&6
d1f8db0c 9863 fi
e8b05380
PB
9864 elif test $build != $host && test $have_gcc_for_target = yes; then
9865 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9866 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9867 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9868 fi
e8b05380 9869fi
3e19841a 9870if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9871 # Extract the first word of "ld", so it can be a program name with args.
9872set dummy ld; ac_word=$2
2aeb72e9
DD
9873echo "$as_me:$LINENO: checking for $ac_word" >&5
9874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9875if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9877else
1c710c3c
DJ
9878 case $LD_FOR_TARGET in
9879 [\\/]* | ?:[\\/]*)
e8b05380
PB
9880 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9881 ;;
e8b05380 9882 *)
1c710c3c
DJ
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $gcc_cv_tool_dirs
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9890 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9893 fi
9894done
9895done
9896
e8b05380
PB
9897 ;;
9898esac
4de997d1 9899fi
1c710c3c 9900LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9901
e8b05380 9902if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9903 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9904echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9905else
2aeb72e9
DD
9906 echo "$as_me:$LINENO: result: no" >&5
9907echo "${ECHO_T}no" >&6
4de997d1 9908fi
2693c0b0 9909
e8b05380
PB
9910fi
9911if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9912
9913
9914if test -n "$LD_FOR_TARGET"; then
9915 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9916elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9917 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9918fi
9919
9920if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9921 for ncn_progname in ld; do
9922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9923set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9924echo "$as_me:$LINENO: checking for $ac_word" >&5
9925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9926if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928else
9929 if test -n "$LD_FOR_TARGET"; then
9930 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9931else
9932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9939 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943done
9944done
9945
9946fi
9947fi
9948LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9949if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9950 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9951echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9952else
2aeb72e9
DD
9953 echo "$as_me:$LINENO: result: no" >&5
9954echo "${ECHO_T}no" >&6
278a7a38
AO
9955fi
9956
9957 done
9958fi
9959
9960if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9961 for ncn_progname in ld; do
2aeb72e9
DD
9962 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9963echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9964 if test -x $with_build_time_tools/${ncn_progname}; then
9965 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9966 echo "$as_me:$LINENO: result: yes" >&5
9967echo "${ECHO_T}yes" >&6
e8b05380
PB
9968 break
9969 else
2aeb72e9
DD
9970 echo "$as_me:$LINENO: result: no" >&5
9971echo "${ECHO_T}no" >&6
e8b05380
PB
9972 fi
9973 done
ca9f4b81
AO
9974fi
9975
e8b05380
PB
9976if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9977 for ncn_progname in ld; do
9978 if test -n "$ncn_target_tool_prefix"; then
9979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9980set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9981echo "$as_me:$LINENO: checking for $ac_word" >&5
9982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9983if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9985else
4de997d1
PB
9986 if test -n "$LD_FOR_TARGET"; then
9987 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9988else
1c710c3c
DJ
9989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990for as_dir in $PATH
9991do
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9996 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
9999 fi
10000done
10001done
10002
ca9f4b81
AO
10003fi
10004fi
1c710c3c 10005LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 10006if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10007 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10008echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10009else
2aeb72e9
DD
10010 echo "$as_me:$LINENO: result: no" >&5
10011echo "${ECHO_T}no" >&6
ca9f4b81
AO
10012fi
10013
e8b05380
PB
10014 fi
10015 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10017set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10018echo "$as_me:$LINENO: checking for $ac_word" >&5
10019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10020if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10022else
2693c0b0
PB
10023 if test -n "$LD_FOR_TARGET"; then
10024 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10025else
1c710c3c
DJ
10026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027for as_dir in $PATH
10028do
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10033 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10036 fi
10037done
10038done
10039
ca9f4b81
AO
10040fi
10041fi
1c710c3c 10042LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10043if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10044 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10045echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10046else
2aeb72e9
DD
10047 echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6
ca9f4b81 10049fi
1c710c3c 10050
e8b05380
PB
10051 fi
10052 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10053 done
10054fi
1c710c3c 10055
2693c0b0
PB
10056if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10057 set dummy ld
10058 if test $build = $target ; then
10059 LD_FOR_TARGET="$2"
ca9f4b81 10060 else
2693c0b0 10061 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10062 fi
1c00b503
PB
10063else
10064 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10065fi
10066
d1f8db0c
PB
10067else
10068 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10069fi
10070
10071
10072
10073
10074if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10075 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10076 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10077echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10078 if test -x $with_build_time_tools/lipo; then
10079 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10080 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
10081 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10082echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 10083 else
2aeb72e9
DD
10084 echo "$as_me:$LINENO: result: no" >&5
10085echo "${ECHO_T}no" >&6
d1f8db0c 10086 fi
e8b05380
PB
10087 elif test $build != $host && test $have_gcc_for_target = yes; then
10088 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10089 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10090 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10091 fi
10092fi
278a7a38
AO
10093if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10094 # Extract the first word of "lipo", so it can be a program name with args.
10095set dummy lipo; ac_word=$2
2aeb72e9
DD
10096echo "$as_me:$LINENO: checking for $ac_word" >&5
10097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10098if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100else
10101 case $LIPO_FOR_TARGET in
10102 [\\/]* | ?:[\\/]*)
10103 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10104 ;;
10105 *)
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $gcc_cv_tool_dirs
10108do
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10113 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10116 fi
10117done
10118done
10119
10120 ;;
10121esac
10122fi
10123LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 10124
278a7a38 10125if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10126 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10127echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 10128else
2aeb72e9
DD
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
278a7a38
AO
10131fi
10132
10133fi
10134if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10135
10136
10137if test -n "$LIPO_FOR_TARGET"; then
10138 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10139elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10140 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10141fi
10142
10143if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10144 for ncn_progname in lipo; do
10145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10146set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10147echo "$as_me:$LINENO: checking for $ac_word" >&5
10148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 10149if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10150 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10151else
278a7a38
AO
10152 if test -n "$LIPO_FOR_TARGET"; then
10153 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10154else
10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
1c710c3c
DJ
10157do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10162 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166done
10167done
10168
e8b05380 10169fi
278a7a38
AO
10170fi
10171LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10172if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10173 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10174echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 10175else
2aeb72e9
DD
10176 echo "$as_me:$LINENO: result: no" >&5
10177echo "${ECHO_T}no" >&6
e8b05380
PB
10178fi
10179
278a7a38 10180 done
e8b05380 10181fi
278a7a38
AO
10182
10183if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10184 for ncn_progname in lipo; do
2aeb72e9
DD
10185 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10186echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10187 if test -x $with_build_time_tools/${ncn_progname}; then
10188 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10189 echo "$as_me:$LINENO: result: yes" >&5
10190echo "${ECHO_T}yes" >&6
e8b05380
PB
10191 break
10192 else
2aeb72e9
DD
10193 echo "$as_me:$LINENO: result: no" >&5
10194echo "${ECHO_T}no" >&6
e8b05380
PB
10195 fi
10196 done
10197fi
10198
10199if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10200 for ncn_progname in lipo; do
10201 if test -n "$ncn_target_tool_prefix"; then
10202 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10203set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10204echo "$as_me:$LINENO: checking for $ac_word" >&5
10205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10206if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10208else
10209 if test -n "$LIPO_FOR_TARGET"; then
10210 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10211else
1c710c3c
DJ
10212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213for as_dir in $PATH
10214do
10215 IFS=$as_save_IFS
10216 test -z "$as_dir" && as_dir=.
10217 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10219 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10221 break 2
10222 fi
10223done
10224done
10225
040b1c5a
GK
10226fi
10227fi
1c710c3c 10228LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10229if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10230 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10231echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10232else
2aeb72e9
DD
10233 echo "$as_me:$LINENO: result: no" >&5
10234echo "${ECHO_T}no" >&6
040b1c5a
GK
10235fi
10236
e8b05380
PB
10237 fi
10238 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10240set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10241echo "$as_me:$LINENO: checking for $ac_word" >&5
10242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10243if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10245else
10246 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10247 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10248else
1c710c3c
DJ
10249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250for as_dir in $PATH
10251do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10256 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10259 fi
10260done
10261done
10262
040b1c5a
GK
10263fi
10264fi
1c710c3c 10265LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10266if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10267 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10268echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10269else
2aeb72e9
DD
10270 echo "$as_me:$LINENO: result: no" >&5
10271echo "${ECHO_T}no" >&6
040b1c5a 10272fi
1c710c3c 10273
e8b05380
PB
10274 fi
10275 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10276 done
10277fi
1c710c3c 10278
040b1c5a
GK
10279if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10280 set dummy lipo
10281 if test $build = $target ; then
10282 LIPO_FOR_TARGET="$2"
10283 else
10284 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10285 fi
1c00b503
PB
10286else
10287 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10288fi
10289
d1f8db0c
PB
10290else
10291 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10292fi
10293
10294
10295
10296
10297if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10298 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10299 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10300echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10301 if test -x $with_build_time_tools/nm; then
10302 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10303 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
10304 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10305echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 10306 else
2aeb72e9
DD
10307 echo "$as_me:$LINENO: result: no" >&5
10308echo "${ECHO_T}no" >&6
d1f8db0c 10309 fi
e8b05380
PB
10310 elif test $build != $host && test $have_gcc_for_target = yes; then
10311 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10312 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10313 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10314 fi
10315fi
3e19841a 10316if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10317 # Extract the first word of "nm", so it can be a program name with args.
10318set dummy nm; ac_word=$2
2aeb72e9
DD
10319echo "$as_me:$LINENO: checking for $ac_word" >&5
10320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10321if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10323else
1c710c3c
DJ
10324 case $NM_FOR_TARGET in
10325 [\\/]* | ?:[\\/]*)
e8b05380
PB
10326 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10327 ;;
e8b05380 10328 *)
1c710c3c
DJ
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330for as_dir in $gcc_cv_tool_dirs
10331do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10336 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10339 fi
10340done
10341done
10342
e8b05380
PB
10343 ;;
10344esac
10345fi
1c710c3c 10346NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 10347
e8b05380 10348if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10349 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10350echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 10351else
2aeb72e9
DD
10352 echo "$as_me:$LINENO: result: no" >&5
10353echo "${ECHO_T}no" >&6
e8b05380
PB
10354fi
10355
10356fi
10357if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10358
10359
10360if test -n "$NM_FOR_TARGET"; then
10361 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10362elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10363 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10364fi
10365
10366if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10367 for ncn_progname in nm; do
10368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10369set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10370echo "$as_me:$LINENO: checking for $ac_word" >&5
10371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10372if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375 if test -n "$NM_FOR_TARGET"; then
10376 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10377else
10378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379for as_dir in $PATH
10380do
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10385 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10388 fi
10389done
10390done
10391
10392fi
10393fi
10394NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10395if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10396 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10397echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 10398else
2aeb72e9
DD
10399 echo "$as_me:$LINENO: result: no" >&5
10400echo "${ECHO_T}no" >&6
278a7a38
AO
10401fi
10402
10403 done
10404fi
10405
10406if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10407 for ncn_progname in nm; do
2aeb72e9
DD
10408 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10409echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10410 if test -x $with_build_time_tools/${ncn_progname}; then
10411 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10412 echo "$as_me:$LINENO: result: yes" >&5
10413echo "${ECHO_T}yes" >&6
e8b05380
PB
10414 break
10415 else
2aeb72e9
DD
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
e8b05380
PB
10418 fi
10419 done
10420fi
10421
10422if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10423 for ncn_progname in nm; do
10424 if test -n "$ncn_target_tool_prefix"; then
10425 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10426set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10427echo "$as_me:$LINENO: checking for $ac_word" >&5
10428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10429if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10431else
4de997d1
PB
10432 if test -n "$NM_FOR_TARGET"; then
10433 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10434else
1c710c3c
DJ
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10442 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10445 fi
10446done
10447done
10448
ca9f4b81
AO
10449fi
10450fi
1c710c3c 10451NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10452if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10453 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10454echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10455else
2aeb72e9
DD
10456 echo "$as_me:$LINENO: result: no" >&5
10457echo "${ECHO_T}no" >&6
ca9f4b81
AO
10458fi
10459
e8b05380
PB
10460 fi
10461 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10463set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10464echo "$as_me:$LINENO: checking for $ac_word" >&5
10465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10466if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10468else
2693c0b0
PB
10469 if test -n "$NM_FOR_TARGET"; then
10470 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10471else
1c710c3c
DJ
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10479 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483done
10484done
10485
ca9f4b81
AO
10486fi
10487fi
1c710c3c 10488NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10489if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10490 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10491echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10492else
2aeb72e9
DD
10493 echo "$as_me:$LINENO: result: no" >&5
10494echo "${ECHO_T}no" >&6
ca9f4b81 10495fi
1c710c3c 10496
e8b05380
PB
10497 fi
10498 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10499 done
10500fi
1c710c3c 10501
2693c0b0
PB
10502if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10503 set dummy nm
10504 if test $build = $target ; then
10505 NM_FOR_TARGET="$2"
ca9f4b81 10506 else
2693c0b0 10507 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10508 fi
1c00b503
PB
10509else
10510 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10511fi
10512
d1f8db0c
PB
10513else
10514 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10515fi
10516
10517
10518
10519
10520if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10521 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10522 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10523echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10524 if test -x $with_build_time_tools/objdump; then
10525 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10526 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10527 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10528echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10529 else
2aeb72e9
DD
10530 echo "$as_me:$LINENO: result: no" >&5
10531echo "${ECHO_T}no" >&6
d1f8db0c 10532 fi
e8b05380
PB
10533 elif test $build != $host && test $have_gcc_for_target = yes; then
10534 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10535 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10536 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10537 fi
10538fi
3e19841a 10539if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10540 # Extract the first word of "objdump", so it can be a program name with args.
10541set dummy objdump; ac_word=$2
2aeb72e9
DD
10542echo "$as_me:$LINENO: checking for $ac_word" >&5
10543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10544if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10546else
1c710c3c
DJ
10547 case $OBJDUMP_FOR_TARGET in
10548 [\\/]* | ?:[\\/]*)
e8b05380
PB
10549 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10550 ;;
e8b05380 10551 *)
1c710c3c
DJ
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $gcc_cv_tool_dirs
10554do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10559 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563done
10564done
10565
e8b05380
PB
10566 ;;
10567esac
10568fi
1c710c3c 10569OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10570
e8b05380 10571if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10572 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10573echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10574else
2aeb72e9
DD
10575 echo "$as_me:$LINENO: result: no" >&5
10576echo "${ECHO_T}no" >&6
e8b05380
PB
10577fi
10578
10579fi
10580if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10581
10582
10583if test -n "$OBJDUMP_FOR_TARGET"; then
10584 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10585elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10586 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10587fi
10588
10589if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10590 for ncn_progname in objdump; do
10591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10592set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10593echo "$as_me:$LINENO: checking for $ac_word" >&5
10594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10595if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597else
10598 if test -n "$OBJDUMP_FOR_TARGET"; then
10599 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10600else
10601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602for as_dir in $PATH
10603do
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10608 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10611 fi
10612done
10613done
10614
10615fi
10616fi
10617OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10618if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10619 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10620echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10621else
2aeb72e9
DD
10622 echo "$as_me:$LINENO: result: no" >&5
10623echo "${ECHO_T}no" >&6
278a7a38
AO
10624fi
10625
10626 done
10627fi
10628
10629if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10630 for ncn_progname in objdump; do
2aeb72e9
DD
10631 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10632echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10633 if test -x $with_build_time_tools/${ncn_progname}; then
10634 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10635 echo "$as_me:$LINENO: result: yes" >&5
10636echo "${ECHO_T}yes" >&6
e8b05380
PB
10637 break
10638 else
2aeb72e9
DD
10639 echo "$as_me:$LINENO: result: no" >&5
10640echo "${ECHO_T}no" >&6
e8b05380
PB
10641 fi
10642 done
10643fi
10644
10645if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10646 for ncn_progname in objdump; do
10647 if test -n "$ncn_target_tool_prefix"; then
10648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10649set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10650echo "$as_me:$LINENO: checking for $ac_word" >&5
10651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10652if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10654else
10655 if test -n "$OBJDUMP_FOR_TARGET"; then
10656 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10657else
1c710c3c
DJ
10658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659for as_dir in $PATH
10660do
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10665 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10668 fi
10669done
10670done
10671
d739199a
DJ
10672fi
10673fi
1c710c3c 10674OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10675if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10676 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10677echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10678else
2aeb72e9
DD
10679 echo "$as_me:$LINENO: result: no" >&5
10680echo "${ECHO_T}no" >&6
d739199a
DJ
10681fi
10682
e8b05380
PB
10683 fi
10684 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10686set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10687echo "$as_me:$LINENO: checking for $ac_word" >&5
10688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10689if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10691else
10692 if test -n "$OBJDUMP_FOR_TARGET"; then
10693 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10694else
1c710c3c
DJ
10695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696for as_dir in $PATH
10697do
10698 IFS=$as_save_IFS
10699 test -z "$as_dir" && as_dir=.
10700 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10702 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10704 break 2
10705 fi
10706done
10707done
10708
d739199a
DJ
10709fi
10710fi
1c710c3c 10711OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10712if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10713 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10714echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10715else
2aeb72e9
DD
10716 echo "$as_me:$LINENO: result: no" >&5
10717echo "${ECHO_T}no" >&6
d739199a 10718fi
1c710c3c 10719
e8b05380
PB
10720 fi
10721 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10722 done
10723fi
1c710c3c 10724
d739199a
DJ
10725if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10726 set dummy objdump
10727 if test $build = $target ; then
10728 OBJDUMP_FOR_TARGET="$2"
10729 else
10730 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10731 fi
1c00b503
PB
10732else
10733 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10734fi
10735
d1f8db0c
PB
10736else
10737 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10738fi
10739
10740
10741
10742
10743if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10744 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10745 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10746echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10747 if test -x $with_build_time_tools/ranlib; then
10748 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10749 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10750 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10751echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10752 else
2aeb72e9
DD
10753 echo "$as_me:$LINENO: result: no" >&5
10754echo "${ECHO_T}no" >&6
d1f8db0c 10755 fi
e8b05380
PB
10756 elif test $build != $host && test $have_gcc_for_target = yes; then
10757 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10758 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10759 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10760 fi
10761fi
3e19841a 10762if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10763 # Extract the first word of "ranlib", so it can be a program name with args.
10764set dummy ranlib; ac_word=$2
2aeb72e9
DD
10765echo "$as_me:$LINENO: checking for $ac_word" >&5
10766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10767if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10769else
1c710c3c
DJ
10770 case $RANLIB_FOR_TARGET in
10771 [\\/]* | ?:[\\/]*)
e8b05380
PB
10772 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10773 ;;
e8b05380 10774 *)
1c710c3c
DJ
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776for as_dir in $gcc_cv_tool_dirs
10777do
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10782 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10785 fi
10786done
10787done
10788
e8b05380
PB
10789 ;;
10790esac
10791fi
1c710c3c 10792RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10793
e8b05380 10794if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10795 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10796echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10797else
2aeb72e9
DD
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
e8b05380
PB
10800fi
10801
10802fi
10803if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10804
10805
10806if test -n "$RANLIB_FOR_TARGET"; then
10807 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10808elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10809 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10810fi
10811
10812if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10813 for ncn_progname in ranlib; do
10814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10815set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10816echo "$as_me:$LINENO: checking for $ac_word" >&5
10817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10818if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10820else
10821 if test -n "$RANLIB_FOR_TARGET"; then
10822 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10823else
10824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $PATH
10826do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10831 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10834 fi
10835done
10836done
10837
10838fi
10839fi
10840RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10841if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10842 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10843echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10844else
2aeb72e9
DD
10845 echo "$as_me:$LINENO: result: no" >&5
10846echo "${ECHO_T}no" >&6
278a7a38
AO
10847fi
10848
10849 done
10850fi
10851
10852if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10853 for ncn_progname in ranlib; do
2aeb72e9
DD
10854 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10855echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10856 if test -x $with_build_time_tools/${ncn_progname}; then
10857 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10858 echo "$as_me:$LINENO: result: yes" >&5
10859echo "${ECHO_T}yes" >&6
e8b05380
PB
10860 break
10861 else
2aeb72e9
DD
10862 echo "$as_me:$LINENO: result: no" >&5
10863echo "${ECHO_T}no" >&6
e8b05380
PB
10864 fi
10865 done
10866fi
10867
10868if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10869 for ncn_progname in ranlib; do
10870 if test -n "$ncn_target_tool_prefix"; then
10871 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10872set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10873echo "$as_me:$LINENO: checking for $ac_word" >&5
10874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10875if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10877else
4de997d1
PB
10878 if test -n "$RANLIB_FOR_TARGET"; then
10879 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10880else
1c710c3c
DJ
10881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10888 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892done
10893done
10894
ca9f4b81
AO
10895fi
10896fi
1c710c3c 10897RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10898if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10899 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10900echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10901else
2aeb72e9
DD
10902 echo "$as_me:$LINENO: result: no" >&5
10903echo "${ECHO_T}no" >&6
ca9f4b81
AO
10904fi
10905
e8b05380
PB
10906 fi
10907 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10909set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10910echo "$as_me:$LINENO: checking for $ac_word" >&5
10911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10912if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10914else
2693c0b0
PB
10915 if test -n "$RANLIB_FOR_TARGET"; then
10916 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10917else
1c710c3c
DJ
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10925 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929done
10930done
10931
ca9f4b81
AO
10932fi
10933fi
1c710c3c 10934RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10935if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10936 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10937echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10938else
2aeb72e9
DD
10939 echo "$as_me:$LINENO: result: no" >&5
10940echo "${ECHO_T}no" >&6
ca9f4b81 10941fi
1c710c3c 10942
e8b05380
PB
10943 fi
10944 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10945 done
10946fi
1c710c3c 10947
e8b05380
PB
10948if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10949 set dummy ranlib
10950 if test $build = $target ; then
10951 RANLIB_FOR_TARGET="$2"
10952 else
10953 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10954 fi
1c00b503
PB
10955else
10956 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10957fi
2693c0b0 10958
d1f8db0c
PB
10959else
10960 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10961fi
10962
e8b05380
PB
10963
10964
10965
10966if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10967 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10968 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10969echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10970 if test -x $with_build_time_tools/strip; then
10971 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10972 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10973 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10974echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10975 else
2aeb72e9
DD
10976 echo "$as_me:$LINENO: result: no" >&5
10977echo "${ECHO_T}no" >&6
d1f8db0c 10978 fi
e8b05380
PB
10979 elif test $build != $host && test $have_gcc_for_target = yes; then
10980 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10981 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10982 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10983 fi
10984fi
3e19841a 10985if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10986 # Extract the first word of "strip", so it can be a program name with args.
10987set dummy strip; ac_word=$2
2aeb72e9
DD
10988echo "$as_me:$LINENO: checking for $ac_word" >&5
10989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10990if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10992else
1c710c3c
DJ
10993 case $STRIP_FOR_TARGET in
10994 [\\/]* | ?:[\\/]*)
e8b05380
PB
10995 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10996 ;;
e8b05380 10997 *)
1c710c3c
DJ
10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $gcc_cv_tool_dirs
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11005 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
e8b05380
PB
11012 ;;
11013esac
11014fi
1c710c3c 11015STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 11016
e8b05380 11017if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11018 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11019echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 11020else
2aeb72e9
DD
11021 echo "$as_me:$LINENO: result: no" >&5
11022echo "${ECHO_T}no" >&6
e8b05380
PB
11023fi
11024
11025fi
11026if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
11027
11028
11029if test -n "$STRIP_FOR_TARGET"; then
11030 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11031elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11032 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11033fi
11034
11035if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11036 for ncn_progname in strip; do
11037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11038set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11039echo "$as_me:$LINENO: checking for $ac_word" >&5
11040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11041if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043else
11044 if test -n "$STRIP_FOR_TARGET"; then
11045 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11046else
11047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048for as_dir in $PATH
11049do
11050 IFS=$as_save_IFS
11051 test -z "$as_dir" && as_dir=.
11052 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11054 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 break 2
11057 fi
11058done
11059done
11060
11061fi
11062fi
11063STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11064if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11065 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11066echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 11067else
2aeb72e9
DD
11068 echo "$as_me:$LINENO: result: no" >&5
11069echo "${ECHO_T}no" >&6
278a7a38
AO
11070fi
11071
11072 done
11073fi
11074
11075if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11076 for ncn_progname in strip; do
2aeb72e9
DD
11077 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11078echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11079 if test -x $with_build_time_tools/${ncn_progname}; then
11080 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11081 echo "$as_me:$LINENO: result: yes" >&5
11082echo "${ECHO_T}yes" >&6
e8b05380
PB
11083 break
11084 else
2aeb72e9
DD
11085 echo "$as_me:$LINENO: result: no" >&5
11086echo "${ECHO_T}no" >&6
e8b05380
PB
11087 fi
11088 done
11089fi
11090
11091if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11092 for ncn_progname in strip; do
11093 if test -n "$ncn_target_tool_prefix"; then
11094 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11095set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11096echo "$as_me:$LINENO: checking for $ac_word" >&5
11097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11098if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11100else
11101 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11102 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11103else
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105for as_dir in $PATH
11106do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11111 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115done
11116done
11117
040b1c5a
GK
11118fi
11119fi
1c710c3c 11120STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11121if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11122 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11123echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11124else
2aeb72e9
DD
11125 echo "$as_me:$LINENO: result: no" >&5
11126echo "${ECHO_T}no" >&6
040b1c5a
GK
11127fi
11128
e8b05380
PB
11129 fi
11130 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11132set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11133echo "$as_me:$LINENO: checking for $ac_word" >&5
11134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11135if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11137else
11138 if test -n "$STRIP_FOR_TARGET"; then
11139 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11140else
1c710c3c
DJ
11141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142for as_dir in $PATH
11143do
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11148 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11151 fi
11152done
11153done
11154
040b1c5a
GK
11155fi
11156fi
1c710c3c 11157STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11158if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11159 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11160echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11161else
2aeb72e9
DD
11162 echo "$as_me:$LINENO: result: no" >&5
11163echo "${ECHO_T}no" >&6
040b1c5a 11164fi
1c710c3c 11165
e8b05380
PB
11166 fi
11167 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11168 done
11169fi
1c710c3c 11170
040b1c5a
GK
11171if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11172 set dummy strip
11173 if test $build = $target ; then
11174 STRIP_FOR_TARGET="$2"
11175 else
11176 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11177 fi
1c00b503
PB
11178else
11179 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11180fi
11181
d1f8db0c
PB
11182else
11183 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11184fi
11185
11186
11187
11188
11189if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11190 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11191 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11192echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11193 if test -x $with_build_time_tools/windres; then
11194 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11195 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
11196 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11197echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 11198 else
2aeb72e9
DD
11199 echo "$as_me:$LINENO: result: no" >&5
11200echo "${ECHO_T}no" >&6
d1f8db0c 11201 fi
e8b05380
PB
11202 elif test $build != $host && test $have_gcc_for_target = yes; then
11203 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11204 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11205 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11206 fi
11207fi
3e19841a 11208if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11209 # Extract the first word of "windres", so it can be a program name with args.
11210set dummy windres; ac_word=$2
2aeb72e9
DD
11211echo "$as_me:$LINENO: checking for $ac_word" >&5
11212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11213if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11215else
1c710c3c
DJ
11216 case $WINDRES_FOR_TARGET in
11217 [\\/]* | ?:[\\/]*)
e8b05380
PB
11218 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11219 ;;
e8b05380 11220 *)
1c710c3c
DJ
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222for as_dir in $gcc_cv_tool_dirs
11223do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11228 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232done
11233done
11234
e8b05380
PB
11235 ;;
11236esac
11237fi
1c710c3c 11238WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 11239
e8b05380 11240if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11241 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11242echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 11243else
2aeb72e9
DD
11244 echo "$as_me:$LINENO: result: no" >&5
11245echo "${ECHO_T}no" >&6
e8b05380
PB
11246fi
11247
11248fi
11249if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11250
11251
11252if test -n "$WINDRES_FOR_TARGET"; then
11253 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11254elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11255 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11256fi
11257
11258if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11259 for ncn_progname in windres; do
11260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11261set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11262echo "$as_me:$LINENO: checking for $ac_word" >&5
11263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11264if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 if test -n "$WINDRES_FOR_TARGET"; then
11268 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11269else
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11277 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281done
11282done
11283
11284fi
11285fi
11286WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11287if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11288 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11289echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 11290else
2aeb72e9
DD
11291 echo "$as_me:$LINENO: result: no" >&5
11292echo "${ECHO_T}no" >&6
278a7a38
AO
11293fi
11294
11295 done
11296fi
11297
11298if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11299 for ncn_progname in windres; do
2aeb72e9
DD
11300 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11301echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11302 if test -x $with_build_time_tools/${ncn_progname}; then
11303 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11304 echo "$as_me:$LINENO: result: yes" >&5
11305echo "${ECHO_T}yes" >&6
e8b05380
PB
11306 break
11307 else
2aeb72e9
DD
11308 echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6
e8b05380
PB
11310 fi
11311 done
11312fi
11313
11314if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11315 for ncn_progname in windres; do
11316 if test -n "$ncn_target_tool_prefix"; then
11317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11318set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11319echo "$as_me:$LINENO: checking for $ac_word" >&5
11320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11321if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11323else
4de997d1
PB
11324 if test -n "$WINDRES_FOR_TARGET"; then
11325 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11326else
1c710c3c
DJ
11327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11334 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11337 fi
11338done
11339done
11340
ca9f4b81
AO
11341fi
11342fi
1c710c3c 11343WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11344if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11345 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11346echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11347else
2aeb72e9
DD
11348 echo "$as_me:$LINENO: result: no" >&5
11349echo "${ECHO_T}no" >&6
ca9f4b81
AO
11350fi
11351
e8b05380
PB
11352 fi
11353 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11355set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11356echo "$as_me:$LINENO: checking for $ac_word" >&5
11357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11358if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11360else
2693c0b0
PB
11361 if test -n "$WINDRES_FOR_TARGET"; then
11362 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11363else
1c710c3c
DJ
11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365for as_dir in $PATH
11366do
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11371 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11374 fi
11375done
11376done
11377
ca9f4b81
AO
11378fi
11379fi
1c710c3c 11380WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11381if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11382 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11383echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11384else
2aeb72e9
DD
11385 echo "$as_me:$LINENO: result: no" >&5
11386echo "${ECHO_T}no" >&6
ca9f4b81 11387fi
1c710c3c 11388
e8b05380
PB
11389 fi
11390 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11391 done
11392fi
1c710c3c 11393
2693c0b0
PB
11394if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11395 set dummy windres
11396 if test $build = $target ; then
11397 WINDRES_FOR_TARGET="$2"
ca9f4b81 11398 else
2693c0b0 11399 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11400 fi
1c00b503
PB
11401else
11402 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
11403fi
11404
d1f8db0c
PB
11405else
11406 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11407fi
11408
4977bab6 11409
901119ae
KT
11410
11411
11412if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11413 if test -n "$with_build_time_tools"; then
11414 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11415echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11416 if test -x $with_build_time_tools/windmc; then
11417 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11418 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11419 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11420echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11421 else
11422 echo "$as_me:$LINENO: result: no" >&5
11423echo "${ECHO_T}no" >&6
11424 fi
11425 elif test $build != $host && test $have_gcc_for_target = yes; then
11426 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11427 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11428 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11429 fi
11430fi
11431if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11432 # Extract the first word of "windmc", so it can be a program name with args.
11433set dummy windmc; ac_word=$2
11434echo "$as_me:$LINENO: checking for $ac_word" >&5
11435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11436if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438else
11439 case $WINDMC_FOR_TARGET in
11440 [\\/]* | ?:[\\/]*)
11441 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11442 ;;
11443 *)
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445for as_dir in $gcc_cv_tool_dirs
11446do
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11454 fi
11455done
11456done
11457
11458 ;;
11459esac
11460fi
11461WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11462
11463if test -n "$WINDMC_FOR_TARGET"; then
11464 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11465echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11466else
11467 echo "$as_me:$LINENO: result: no" >&5
11468echo "${ECHO_T}no" >&6
11469fi
11470
11471fi
11472if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11473
11474
11475if test -n "$WINDMC_FOR_TARGET"; then
11476 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11477elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11478 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11479fi
11480
11481if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11482 for ncn_progname in windmc; do
11483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11484set dummy ${ncn_progname}; ac_word=$2
11485echo "$as_me:$LINENO: checking for $ac_word" >&5
11486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11487if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489else
11490 if test -n "$WINDMC_FOR_TARGET"; then
11491 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11492else
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504done
11505done
11506
11507fi
11508fi
11509WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11510if test -n "$WINDMC_FOR_TARGET"; then
11511 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11512echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11513else
11514 echo "$as_me:$LINENO: result: no" >&5
11515echo "${ECHO_T}no" >&6
11516fi
11517
11518 done
11519fi
11520
11521if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11522 for ncn_progname in windmc; do
11523 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11524echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11525 if test -x $with_build_time_tools/${ncn_progname}; then
11526 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11527 echo "$as_me:$LINENO: result: yes" >&5
11528echo "${ECHO_T}yes" >&6
11529 break
11530 else
11531 echo "$as_me:$LINENO: result: no" >&5
11532echo "${ECHO_T}no" >&6
11533 fi
11534 done
11535fi
11536
11537if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11538 for ncn_progname in windmc; do
11539 if test -n "$ncn_target_tool_prefix"; then
11540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11541set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11542echo "$as_me:$LINENO: checking for $ac_word" >&5
11543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 if test -n "$WINDMC_FOR_TARGET"; then
11548 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11549else
11550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551for as_dir in $PATH
11552do
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11560 fi
11561done
11562done
11563
11564fi
11565fi
11566WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11567if test -n "$WINDMC_FOR_TARGET"; then
11568 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11569echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11570else
11571 echo "$as_me:$LINENO: result: no" >&5
11572echo "${ECHO_T}no" >&6
11573fi
11574
11575 fi
11576 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11578set dummy ${ncn_progname}; ac_word=$2
11579echo "$as_me:$LINENO: checking for $ac_word" >&5
11580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11581if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583else
11584 if test -n "$WINDMC_FOR_TARGET"; then
11585 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11586else
11587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588for as_dir in $PATH
11589do
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11594 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11597 fi
11598done
11599done
11600
11601fi
11602fi
11603WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11604if test -n "$WINDMC_FOR_TARGET"; then
11605 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11606echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11607else
11608 echo "$as_me:$LINENO: result: no" >&5
11609echo "${ECHO_T}no" >&6
11610fi
11611
11612 fi
11613 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11614 done
11615fi
11616
11617if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11618 set dummy windmc
11619 if test $build = $target ; then
11620 WINDMC_FOR_TARGET="$2"
11621 else
11622 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11623 fi
1c00b503
PB
11624else
11625 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11626fi
11627
11628else
11629 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11630fi
11631
11632
2abefe3d
PB
11633RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11634
2aeb72e9
DD
11635echo "$as_me:$LINENO: checking where to find the target ar" >&5
11636echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11637if test "x${build}" != "x${host}" ; then
e8b05380
PB
11638 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11639 # We already found the complete path
172e41aa 11640 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11641 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11642echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11643 else
11644 # Canadian cross, just use what we found
2aeb72e9
DD
11645 echo "$as_me:$LINENO: result: pre-installed" >&5
11646echo "${ECHO_T}pre-installed" >&6
e8b05380 11647 fi
2abefe3d
PB
11648else
11649 ok=yes
11650 case " ${configdirs} " in
11651 *" binutils "*) ;;
11652 *) ok=no ;;
11653 esac
1c710c3c 11654
2abefe3d
PB
11655 if test $ok = yes; then
11656 # An in-tree tool is available and we can use it
11657 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11658 echo "$as_me:$LINENO: result: just compiled" >&5
11659echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11660 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11661 # We already found the complete path
172e41aa 11662 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11663 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11664echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11665 elif test "x$target" = "x$host"; then
11666 # We can use an host tool
11667 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11668 echo "$as_me:$LINENO: result: host tool" >&5
11669echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11670 else
11671 # We need a cross tool
2aeb72e9
DD
11672 echo "$as_me:$LINENO: result: pre-installed" >&5
11673echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11674 fi
11675fi
0b0dc272 11676
2aeb72e9
DD
11677echo "$as_me:$LINENO: checking where to find the target as" >&5
11678echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11679if test "x${build}" != "x${host}" ; then
e8b05380
PB
11680 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11681 # We already found the complete path
172e41aa 11682 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11683 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11684echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11685 else
11686 # Canadian cross, just use what we found
2aeb72e9
DD
11687 echo "$as_me:$LINENO: result: pre-installed" >&5
11688echo "${ECHO_T}pre-installed" >&6
e8b05380 11689 fi
2abefe3d
PB
11690else
11691 ok=yes
11692 case " ${configdirs} " in
11693 *" gas "*) ;;
11694 *) ok=no ;;
11695 esac
1c710c3c 11696
2abefe3d
PB
11697 if test $ok = yes; then
11698 # An in-tree tool is available and we can use it
11699 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11700 echo "$as_me:$LINENO: result: just compiled" >&5
11701echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11702 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11703 # We already found the complete path
172e41aa 11704 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11705 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11706echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11707 elif test "x$target" = "x$host"; then
11708 # We can use an host tool
11709 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11710 echo "$as_me:$LINENO: result: host tool" >&5
11711echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11712 else
11713 # We need a cross tool
2aeb72e9
DD
11714 echo "$as_me:$LINENO: result: pre-installed" >&5
11715echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11716 fi
11717fi
0b0dc272 11718
2aeb72e9
DD
11719echo "$as_me:$LINENO: checking where to find the target cc" >&5
11720echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11721if test "x${build}" != "x${host}" ; then
e8b05380
PB
11722 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11723 # We already found the complete path
172e41aa 11724 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11725 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11726echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11727 else
11728 # Canadian cross, just use what we found
2aeb72e9
DD
11729 echo "$as_me:$LINENO: result: pre-installed" >&5
11730echo "${ECHO_T}pre-installed" >&6
e8b05380 11731 fi
2abefe3d
PB
11732else
11733 ok=yes
11734 case " ${configdirs} " in
11735 *" gcc "*) ;;
11736 *) ok=no ;;
11737 esac
1c710c3c 11738
2abefe3d
PB
11739 if test $ok = yes; then
11740 # An in-tree tool is available and we can use it
11741 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11742 echo "$as_me:$LINENO: result: just compiled" >&5
11743echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11744 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11745 # We already found the complete path
172e41aa 11746 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11747 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11748echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11749 elif test "x$target" = "x$host"; then
11750 # We can use an host tool
11751 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11752 echo "$as_me:$LINENO: result: host tool" >&5
11753echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11754 else
11755 # We need a cross tool
2aeb72e9
DD
11756 echo "$as_me:$LINENO: result: pre-installed" >&5
11757echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11758 fi
11759fi
0b0dc272 11760
2aeb72e9
DD
11761echo "$as_me:$LINENO: checking where to find the target c++" >&5
11762echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11763if test "x${build}" != "x${host}" ; then
e8b05380
PB
11764 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11765 # We already found the complete path
172e41aa 11766 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11767 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11768echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11769 else
11770 # Canadian cross, just use what we found
2aeb72e9
DD
11771 echo "$as_me:$LINENO: result: pre-installed" >&5
11772echo "${ECHO_T}pre-installed" >&6
e8b05380 11773 fi
2abefe3d
PB
11774else
11775 ok=yes
11776 case " ${configdirs} " in
11777 *" gcc "*) ;;
11778 *) ok=no ;;
11779 esac
11780 case ,${enable_languages}, in
11781 *,c++,*) ;;
11782 *) ok=no ;;
11783 esac
11784 if test $ok = yes; then
11785 # An in-tree tool is available and we can use it
11786 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
11787 echo "$as_me:$LINENO: result: just compiled" >&5
11788echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11789 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11790 # We already found the complete path
172e41aa 11791 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11792 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11793echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11794 elif test "x$target" = "x$host"; then
11795 # We can use an host tool
11796 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11797 echo "$as_me:$LINENO: result: host tool" >&5
11798echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11799 else
11800 # We need a cross tool
2aeb72e9
DD
11801 echo "$as_me:$LINENO: result: pre-installed" >&5
11802echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11803 fi
11804fi
0b0dc272 11805
2aeb72e9
DD
11806echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11807echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11808if test "x${build}" != "x${host}" ; then
e8b05380
PB
11809 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11810 # We already found the complete path
172e41aa 11811 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11812 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11813echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11814 else
11815 # Canadian cross, just use what we found
2aeb72e9
DD
11816 echo "$as_me:$LINENO: result: pre-installed" >&5
11817echo "${ECHO_T}pre-installed" >&6
e8b05380 11818 fi
2abefe3d
PB
11819else
11820 ok=yes
11821 case " ${configdirs} " in
11822 *" gcc "*) ;;
11823 *) ok=no ;;
11824 esac
11825 case ,${enable_languages}, in
11826 *,c++,*) ;;
11827 *) ok=no ;;
11828 esac
11829 if test $ok = yes; then
11830 # An in-tree tool is available and we can use it
11831 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
11832 echo "$as_me:$LINENO: result: just compiled" >&5
11833echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11834 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11835 # We already found the complete path
172e41aa 11836 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11837 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11838echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11839 elif test "x$target" = "x$host"; then
11840 # We can use an host tool
11841 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11842 echo "$as_me:$LINENO: result: host tool" >&5
11843echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11844 else
11845 # We need a cross tool
2aeb72e9
DD
11846 echo "$as_me:$LINENO: result: pre-installed" >&5
11847echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11848 fi
11849fi
0b0dc272 11850
2aeb72e9
DD
11851echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11852echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11853if test "x${build}" != "x${host}" ; then
e8b05380
PB
11854 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11855 # We already found the complete path
172e41aa 11856 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11857 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11858echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11859 else
11860 # Canadian cross, just use what we found
2aeb72e9
DD
11861 echo "$as_me:$LINENO: result: pre-installed" >&5
11862echo "${ECHO_T}pre-installed" >&6
e8b05380 11863 fi
2abefe3d
PB
11864else
11865 ok=yes
11866 case " ${configdirs} " in
11867 *" binutils "*) ;;
11868 *) ok=no ;;
11869 esac
1c710c3c 11870
2abefe3d
PB
11871 if test $ok = yes; then
11872 # An in-tree tool is available and we can use it
11873 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11874 echo "$as_me:$LINENO: result: just compiled" >&5
11875echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11876 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11877 # We already found the complete path
172e41aa 11878 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11879 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11880echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11881 elif test "x$target" = "x$host"; then
11882 # We can use an host tool
11883 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11884 echo "$as_me:$LINENO: result: host tool" >&5
11885echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11886 else
11887 # We need a cross tool
2aeb72e9
DD
11888 echo "$as_me:$LINENO: result: pre-installed" >&5
11889echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11890 fi
11891fi
0b0dc272 11892
2aeb72e9
DD
11893echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11894echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11895if test "x${build}" != "x${host}" ; then
e8b05380
PB
11896 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11897 # We already found the complete path
172e41aa 11898 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11899 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11900echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11901 else
11902 # Canadian cross, just use what we found
2aeb72e9
DD
11903 echo "$as_me:$LINENO: result: pre-installed" >&5
11904echo "${ECHO_T}pre-installed" >&6
e8b05380 11905 fi
2abefe3d
PB
11906else
11907 ok=yes
11908 case " ${configdirs} " in
11909 *" gcc "*) ;;
11910 *) ok=no ;;
11911 esac
1c710c3c 11912
2abefe3d
PB
11913 if test $ok = yes; then
11914 # An in-tree tool is available and we can use it
11915 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11916 echo "$as_me:$LINENO: result: just compiled" >&5
11917echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11918 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11919 # We already found the complete path
172e41aa 11920 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11921 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11922echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11923 elif test "x$target" = "x$host"; then
11924 # We can use an host tool
11925 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11926 echo "$as_me:$LINENO: result: host tool" >&5
11927echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11928 else
11929 # We need a cross tool
2aeb72e9
DD
11930 echo "$as_me:$LINENO: result: pre-installed" >&5
11931echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11932 fi
11933fi
0b0dc272 11934
2aeb72e9
DD
11935echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11936echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11937if test "x${build}" != "x${host}" ; then
e8b05380
PB
11938 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11939 # We already found the complete path
172e41aa 11940 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11941 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11942echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11943 else
11944 # Canadian cross, just use what we found
2aeb72e9
DD
11945 echo "$as_me:$LINENO: result: pre-installed" >&5
11946echo "${ECHO_T}pre-installed" >&6
e8b05380 11947 fi
2abefe3d
PB
11948else
11949 ok=yes
11950 case " ${configdirs} " in
11951 *" gcc "*) ;;
11952 *) ok=no ;;
11953 esac
11954 case ,${enable_languages}, in
11955 *,java,*) ;;
11956 *) ok=no ;;
11957 esac
11958 if test $ok = yes; then
11959 # An in-tree tool is available and we can use it
11960 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11961 echo "$as_me:$LINENO: result: just compiled" >&5
11962echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11963 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11964 # We already found the complete path
172e41aa 11965 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11966 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11967echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11968 elif test "x$target" = "x$host"; then
11969 # We can use an host tool
11970 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11971 echo "$as_me:$LINENO: result: host tool" >&5
11972echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11973 else
11974 # We need a cross tool
2aeb72e9
DD
11975 echo "$as_me:$LINENO: result: pre-installed" >&5
11976echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11977 fi
11978fi
0b0dc272 11979
2aeb72e9
DD
11980echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11981echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11982if test "x${build}" != "x${host}" ; then
e8b05380
PB
11983 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11984 # We already found the complete path
172e41aa 11985 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11986 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11987echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11988 else
11989 # Canadian cross, just use what we found
2aeb72e9
DD
11990 echo "$as_me:$LINENO: result: pre-installed" >&5
11991echo "${ECHO_T}pre-installed" >&6
e8b05380 11992 fi
2abefe3d
PB
11993else
11994 ok=yes
11995 case " ${configdirs} " in
11996 *" gcc "*) ;;
11997 *) ok=no ;;
11998 esac
11999 case ,${enable_languages}, in
12000 *,fortran,*) ;;
12001 *) ok=no ;;
12002 esac
12003 if test $ok = yes; then
12004 # An in-tree tool is available and we can use it
12005 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12006 echo "$as_me:$LINENO: result: just compiled" >&5
12007echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12008 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12009 # We already found the complete path
172e41aa 12010 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12011 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12012echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12013 elif test "x$target" = "x$host"; then
12014 # We can use an host tool
12015 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
12016 echo "$as_me:$LINENO: result: host tool" >&5
12017echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12018 else
12019 # We need a cross tool
2aeb72e9
DD
12020 echo "$as_me:$LINENO: result: pre-installed" >&5
12021echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12022 fi
12023fi
0b0dc272 12024
2aeb72e9
DD
12025echo "$as_me:$LINENO: checking where to find the target ld" >&5
12026echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 12027if test "x${build}" != "x${host}" ; then
e8b05380
PB
12028 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12029 # We already found the complete path
172e41aa 12030 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12031 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12032echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12033 else
12034 # Canadian cross, just use what we found
2aeb72e9
DD
12035 echo "$as_me:$LINENO: result: pre-installed" >&5
12036echo "${ECHO_T}pre-installed" >&6
e8b05380 12037 fi
2abefe3d
PB
12038else
12039 ok=yes
12040 case " ${configdirs} " in
12041 *" ld "*) ;;
12042 *) ok=no ;;
12043 esac
1c710c3c 12044
2abefe3d
PB
12045 if test $ok = yes; then
12046 # An in-tree tool is available and we can use it
12047 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
12048 echo "$as_me:$LINENO: result: just compiled" >&5
12049echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12050 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12051 # We already found the complete path
172e41aa 12052 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12053 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12054echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12055 elif test "x$target" = "x$host"; then
12056 # We can use an host tool
12057 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
12058 echo "$as_me:$LINENO: result: host tool" >&5
12059echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12060 else
12061 # We need a cross tool
2aeb72e9
DD
12062 echo "$as_me:$LINENO: result: pre-installed" >&5
12063echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12064 fi
12065fi
0b0dc272 12066
2aeb72e9
DD
12067echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12068echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 12069if test "x${build}" != "x${host}" ; then
e8b05380
PB
12070 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12071 # We already found the complete path
172e41aa 12072 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12073 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12074echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12075 else
12076 # Canadian cross, just use what we found
2aeb72e9
DD
12077 echo "$as_me:$LINENO: result: pre-installed" >&5
12078echo "${ECHO_T}pre-installed" >&6
e8b05380 12079 fi
2abefe3d 12080else
e8b05380
PB
12081 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12082 # We already found the complete path
172e41aa 12083 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12084 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12085echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 12086 elif test "x$target" = "x$host"; then
2abefe3d
PB
12087 # We can use an host tool
12088 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
12089 echo "$as_me:$LINENO: result: host tool" >&5
12090echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12091 else
12092 # We need a cross tool
2aeb72e9
DD
12093 echo "$as_me:$LINENO: result: pre-installed" >&5
12094echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12095 fi
12096fi
0b0dc272 12097
2aeb72e9
DD
12098echo "$as_me:$LINENO: checking where to find the target nm" >&5
12099echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 12100if test "x${build}" != "x${host}" ; then
e8b05380
PB
12101 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12102 # We already found the complete path
172e41aa 12103 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12104 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12105echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12106 else
12107 # Canadian cross, just use what we found
2aeb72e9
DD
12108 echo "$as_me:$LINENO: result: pre-installed" >&5
12109echo "${ECHO_T}pre-installed" >&6
e8b05380 12110 fi
2abefe3d
PB
12111else
12112 ok=yes
12113 case " ${configdirs} " in
12114 *" binutils "*) ;;
12115 *) ok=no ;;
12116 esac
1c710c3c 12117
2abefe3d
PB
12118 if test $ok = yes; then
12119 # An in-tree tool is available and we can use it
12120 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
12121 echo "$as_me:$LINENO: result: just compiled" >&5
12122echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12123 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12124 # We already found the complete path
172e41aa 12125 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12126 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12127echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12128 elif test "x$target" = "x$host"; then
12129 # We can use an host tool
12130 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
12131 echo "$as_me:$LINENO: result: host tool" >&5
12132echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12133 else
12134 # We need a cross tool
2aeb72e9
DD
12135 echo "$as_me:$LINENO: result: pre-installed" >&5
12136echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12137 fi
12138fi
0b0dc272 12139
2aeb72e9
DD
12140echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12141echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 12142if test "x${build}" != "x${host}" ; then
e8b05380
PB
12143 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12144 # We already found the complete path
172e41aa 12145 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12146 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12147echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12148 else
12149 # Canadian cross, just use what we found
2aeb72e9
DD
12150 echo "$as_me:$LINENO: result: pre-installed" >&5
12151echo "${ECHO_T}pre-installed" >&6
e8b05380 12152 fi
2abefe3d
PB
12153else
12154 ok=yes
12155 case " ${configdirs} " in
12156 *" binutils "*) ;;
12157 *) ok=no ;;
12158 esac
1c710c3c 12159
2abefe3d
PB
12160 if test $ok = yes; then
12161 # An in-tree tool is available and we can use it
12162 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
12163 echo "$as_me:$LINENO: result: just compiled" >&5
12164echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12165 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12166 # We already found the complete path
172e41aa 12167 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12168 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12169echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12170 elif test "x$target" = "x$host"; then
12171 # We can use an host tool
12172 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
12173 echo "$as_me:$LINENO: result: host tool" >&5
12174echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12175 else
12176 # We need a cross tool
2aeb72e9
DD
12177 echo "$as_me:$LINENO: result: pre-installed" >&5
12178echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12179 fi
12180fi
0b0dc272 12181
2aeb72e9
DD
12182echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12183echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 12184if test "x${build}" != "x${host}" ; then
e8b05380
PB
12185 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12186 # We already found the complete path
172e41aa 12187 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12188 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12189echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12190 else
12191 # Canadian cross, just use what we found
2aeb72e9
DD
12192 echo "$as_me:$LINENO: result: pre-installed" >&5
12193echo "${ECHO_T}pre-installed" >&6
e8b05380 12194 fi
2abefe3d
PB
12195else
12196 ok=yes
12197 case " ${configdirs} " in
12198 *" binutils "*) ;;
12199 *) ok=no ;;
12200 esac
1c710c3c 12201
2abefe3d
PB
12202 if test $ok = yes; then
12203 # An in-tree tool is available and we can use it
12204 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
12205 echo "$as_me:$LINENO: result: just compiled" >&5
12206echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12207 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12208 # We already found the complete path
172e41aa 12209 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12210 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12211echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12212 elif test "x$target" = "x$host"; then
12213 # We can use an host tool
12214 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
12215 echo "$as_me:$LINENO: result: host tool" >&5
12216echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12217 else
12218 # We need a cross tool
2aeb72e9
DD
12219 echo "$as_me:$LINENO: result: pre-installed" >&5
12220echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12221 fi
12222fi
0b0dc272 12223
2aeb72e9
DD
12224echo "$as_me:$LINENO: checking where to find the target strip" >&5
12225echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 12226if test "x${build}" != "x${host}" ; then
e8b05380
PB
12227 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12228 # We already found the complete path
172e41aa 12229 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12230 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12231echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12232 else
12233 # Canadian cross, just use what we found
2aeb72e9
DD
12234 echo "$as_me:$LINENO: result: pre-installed" >&5
12235echo "${ECHO_T}pre-installed" >&6
e8b05380 12236 fi
2abefe3d
PB
12237else
12238 ok=yes
12239 case " ${configdirs} " in
12240 *" binutils "*) ;;
12241 *) ok=no ;;
12242 esac
1c710c3c 12243
2abefe3d
PB
12244 if test $ok = yes; then
12245 # An in-tree tool is available and we can use it
12246 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
12247 echo "$as_me:$LINENO: result: just compiled" >&5
12248echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12249 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12250 # We already found the complete path
172e41aa 12251 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12252 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12253echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12254 elif test "x$target" = "x$host"; then
12255 # We can use an host tool
12256 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
12257 echo "$as_me:$LINENO: result: host tool" >&5
12258echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12259 else
12260 # We need a cross tool
2aeb72e9
DD
12261 echo "$as_me:$LINENO: result: pre-installed" >&5
12262echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12263 fi
12264fi
0b0dc272 12265
2aeb72e9
DD
12266echo "$as_me:$LINENO: checking where to find the target windres" >&5
12267echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 12268if test "x${build}" != "x${host}" ; then
e8b05380
PB
12269 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12270 # We already found the complete path
172e41aa 12271 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12272 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12273echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12274 else
12275 # Canadian cross, just use what we found
2aeb72e9
DD
12276 echo "$as_me:$LINENO: result: pre-installed" >&5
12277echo "${ECHO_T}pre-installed" >&6
e8b05380 12278 fi
2abefe3d
PB
12279else
12280 ok=yes
12281 case " ${configdirs} " in
12282 *" binutils "*) ;;
12283 *) ok=no ;;
12284 esac
1c710c3c 12285
2abefe3d
PB
12286 if test $ok = yes; then
12287 # An in-tree tool is available and we can use it
12288 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
12289 echo "$as_me:$LINENO: result: just compiled" >&5
12290echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12291 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12292 # We already found the complete path
172e41aa 12293 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12294 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12295echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12296 elif test "x$target" = "x$host"; then
12297 # We can use an host tool
12298 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
12299 echo "$as_me:$LINENO: result: host tool" >&5
12300echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12301 else
12302 # We need a cross tool
2aeb72e9
DD
12303 echo "$as_me:$LINENO: result: pre-installed" >&5
12304echo "${ECHO_T}pre-installed" >&6
2abefe3d 12305 fi
671aa708 12306fi
be912515 12307
901119ae
KT
12308echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12309echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12310if test "x${build}" != "x${host}" ; then
12311 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12312 # We already found the complete path
12313 ac_dir=`dirname $WINDMC_FOR_TARGET`
12314 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12315echo "${ECHO_T}pre-installed in $ac_dir" >&6
12316 else
12317 # Canadian cross, just use what we found
12318 echo "$as_me:$LINENO: result: pre-installed" >&5
12319echo "${ECHO_T}pre-installed" >&6
12320 fi
12321else
12322 ok=yes
12323 case " ${configdirs} " in
12324 *" binutils "*) ;;
12325 *) ok=no ;;
12326 esac
12327
12328 if test $ok = yes; then
12329 # An in-tree tool is available and we can use it
12330 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12331 echo "$as_me:$LINENO: result: just compiled" >&5
12332echo "${ECHO_T}just compiled" >&6
12333 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12334 # We already found the complete path
12335 ac_dir=`dirname $WINDMC_FOR_TARGET`
12336 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12337echo "${ECHO_T}pre-installed in $ac_dir" >&6
12338 elif test "x$target" = "x$host"; then
12339 # We can use an host tool
12340 WINDMC_FOR_TARGET='$(WINDMC)'
12341 echo "$as_me:$LINENO: result: host tool" >&5
12342echo "${ECHO_T}host tool" >&6
12343 else
12344 # We need a cross tool
12345 echo "$as_me:$LINENO: result: pre-installed" >&5
12346echo "${ECHO_T}pre-installed" >&6
12347 fi
12348fi
12349
be912515
NN
12350
12351
2abefe3d 12352
0b0dc272 12353
671aa708
NN
12354# Certain tools may need extra flags.
12355AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12356RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12357NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12358
2abefe3d
PB
12359# When building target libraries, except in a Canadian cross, we use
12360# the same toolchain as the compiler we just built.
12361COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12362COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12363COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12364if test $host = $build; then
12365 case " $configdirs " in
12366 *" gcc "*)
12367 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12368 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12369 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12370 ;;
12371 esac
12372fi
12373
12374
12375
12376
12377
2aeb72e9
DD
12378echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12379echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12380# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 12381if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
12382 enableval="$enable_maintainer_mode"
12383 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12384else
12385 USE_MAINTAINER_MODE=no
2aeb72e9
DD
12386fi;
12387echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12388echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
12389
12390
12391if test "$USE_MAINTAINER_MODE" = yes; then
12392 MAINTAINER_MODE_TRUE=
12393 MAINTAINER_MODE_FALSE='#'
12394else
12395 MAINTAINER_MODE_TRUE='#'
12396 MAINTAINER_MODE_FALSE=
1c710c3c 12397fi
ee03dc5e
AO
12398MAINT=$MAINTAINER_MODE_TRUE
12399
2805b53a
NN
12400# ---------------------
12401# GCC bootstrap support
12402# ---------------------
12403
12404# Stage specific cflags for build.
12405stage1_cflags="-g"
12406case $build in
12407 vax-*-*)
12408 case ${GCC} in
12409 yes) stage1_cflags="-g -Wa,-J" ;;
12410 *) stage1_cflags="-g -J" ;;
12411 esac ;;
2805b53a
NN
12412esac
12413
0b50988a
EB
12414# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12415if test "$GCC" = yes; then
12416 saved_CFLAGS="$CFLAGS"
12417
12418 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12419 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12420 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12421echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12422 cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428
9cc1244e
JJ
12429#if (__GNUC__ < 3) \
12430 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12431 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12432#error http://gcc.gnu.org/PR29382
12433#endif
12434
1c710c3c
DJ
12435int
12436main ()
12437{
12438
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext
2aeb72e9
DD
12444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 echo "$as_me:$LINENO: result: yes" >&5
12466echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12467else
12468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
2aeb72e9
DD
12471echo "$as_me:$LINENO: result: no" >&5
12472echo "${ECHO_T}no" >&6
1c710c3c 12473fi
2aeb72e9 12474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12475
12476 CFLAGS="$saved_CFLAGS"
12477fi
12478
12479
2805b53a 12480
8efea775 12481# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12482# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12483if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12484 enableval="$enable_stage1_checking"
12485 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12486else
e643dc23 12487 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12488 stage1_checking=--enable-checking=yes,types
8efea775 12489else
e643dc23 12490 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12491fi
2aeb72e9 12492fi;
8efea775
PB
12493
12494
2805b53a 12495# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12496# Check whether --enable-werror or --disable-werror was given.
2805b53a 12497if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12498 enableval="$enable_werror"
12499
2805b53a 12500else
416cfb5e 12501 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12502 enable_werror=yes
88fceb68
PB
12503else
12504 enable_werror=no
12505fi
2aeb72e9 12506fi;
09a9c095
NN
12507case ${enable_werror} in
12508 yes) stage2_werror_flag="--enable-werror-always" ;;
12509 *) stage2_werror_flag="" ;;
2805b53a
NN
12510esac
12511
12512
32845532 12513# Flags needed to enable html installing and building
1c710c3c 12514
2aeb72e9 12515# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12516if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12517 withval="$with_datarootdir"
12518 datarootdir="\${prefix}/${withval}"
32845532
CD
12519else
12520 datarootdir="\${prefix}/share"
2aeb72e9 12521fi;
32845532
CD
12522
12523
2aeb72e9 12524# Check whether --with-docdir or --without-docdir was given.
32845532 12525if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12526 withval="$with_docdir"
12527 docdir="\${prefix}/${withval}"
32845532
CD
12528else
12529 docdir="\${datarootdir}/doc"
2aeb72e9 12530fi;
32845532
CD
12531
12532
2aeb72e9 12533# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12534if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12535 withval="$with_pdfdir"
12536 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12537else
12538 pdfdir="\${docdir}"
2aeb72e9 12539fi;
9c4d2493
BM
12540
12541
2aeb72e9 12542# Check whether --with-htmldir or --without-htmldir was given.
32845532 12543if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12544 withval="$with_htmldir"
12545 htmldir="\${prefix}/${withval}"
32845532
CD
12546else
12547 htmldir="\${docdir}"
2aeb72e9 12548fi;
32845532
CD
12549
12550
12551
12552
172e41aa 12553
11a67599 12554
2aeb72e9 12555 ac_config_files="$ac_config_files Makefile"
1c710c3c 12556cat >confcache <<\_ACEOF
671aa708
NN
12557# This file is a shell script that caches the results of configure
12558# tests run on this system so they can be shared between configure
1c710c3c
DJ
12559# scripts and configure runs, see configure's option --config-cache.
12560# It is not useful on other systems. If it contains results you don't
12561# want to keep, you may remove or edit it.
671aa708 12562#
1c710c3c
DJ
12563# config.status only pays attention to the cache file if you give it
12564# the --recheck option to rerun configure.
671aa708 12565#
1c710c3c
DJ
12566# `ac_cv_env_foo' variables (set or unset) will be overridden when
12567# loading this file, other *unset* `ac_cv_foo' will be assigned the
12568# following values.
12569
12570_ACEOF
12571
671aa708
NN
12572# The following way of writing the cache mishandles newlines in values,
12573# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12574# So, don't put newlines in cache variables' values.
671aa708
NN
12575# Ultrix sh set writes to stderr and can't be redirected directly,
12576# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12577{
1c710c3c 12578 (set) 2>&1 |
2aeb72e9
DD
12579 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12580 *ac_space=\ *)
1c710c3c
DJ
12581 # `set' does not quote correctly, so add quotes (double-quote
12582 # substitution turns \\\\ into \\, and sed turns \\ into \).
12583 sed -n \
12584 "s/'/'\\\\''/g;
12585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12586 ;;
1c710c3c
DJ
12587 *)
12588 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12589 sed -n \
12590 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12591 ;;
2aeb72e9
DD
12592 esac;
12593} |
1c710c3c
DJ
12594 sed '
12595 t clear
2aeb72e9 12596 : clear
1c710c3c
DJ
12597 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12598 t end
2aeb72e9
DD
12599 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12600 : end' >>confcache
12601if diff $cache_file confcache >/dev/null 2>&1; then :; else
12602 if test -w $cache_file; then
12603 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12604 cat confcache >$cache_file
671aa708 12605 else
2aeb72e9 12606 echo "not updating unwritable cache $cache_file"
671aa708 12607 fi
4977bab6 12608fi
671aa708 12609rm -f confcache
79c06341 12610
671aa708
NN
12611test "x$prefix" = xNONE && prefix=$ac_default_prefix
12612# Let make expand exec_prefix.
12613test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12614
2aeb72e9
DD
12615# VPATH may cause trouble with some makes, so we remove $(srcdir),
12616# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12617# trailing colons and then remove the whole line if VPATH becomes empty
12618# (actually we leave an empty line to preserve line numbers).
12619if test "x$srcdir" = x.; then
12620 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12621s/:*\$(srcdir):*/:/;
12622s/:*\${srcdir}:*/:/;
12623s/:*@srcdir@:*/:/;
12624s/^\([^=]*=[ ]*\):*/\1/;
12625s/:*$//;
12626s/^[^=]*=[ ]*$//;
12627}'
12628fi
12629
671aa708
NN
12630# Transform confdefs.h into DEFS.
12631# Protect against shell expansion while executing Makefile rules.
12632# Protect against Makefile macro expansion.
1c710c3c
DJ
12633#
12634# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12635# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12636# look for a macro that doesn't take arguments.
2aeb72e9 12637cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12638t clear
2aeb72e9
DD
12639: clear
12640s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12641t quote
2aeb72e9 12642s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12643t quote
2aeb72e9
DD
12644d
12645: quote
12646s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12647s,\[,\\&,g
12648s,\],\\&,g
12649s,\$,$$,g
12650p
12651_ACEOF
12652# We use echo to avoid assuming a particular line-breaking character.
12653# The extra dot is to prevent the shell from consuming trailing
12654# line-breaks from the sub-command output. A line-break within
12655# single-quotes doesn't work because, if this script is created in a
12656# platform that uses two characters for line-breaks (e.g., DOS), tr
12657# would break.
12658ac_LF_and_DOT=`echo; echo .`
12659DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12660rm -f confdef2opt.sed
1c710c3c
DJ
12661
12662
12663ac_libobjs=
12664ac_ltlibobjs=
12665for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12666 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12667 ac_i=`echo "$ac_i" |
12668 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12669 # 2. Add them.
12670 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12671 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12672done
12673LIBOBJS=$ac_libobjs
fb0103e5 12674
1c710c3c 12675LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12676
af71363e 12677
1c710c3c
DJ
12678
12679: ${CONFIG_STATUS=./config.status}
12680ac_clean_files_save=$ac_clean_files
12681ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12682{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12683echo "$as_me: creating $CONFIG_STATUS" >&6;}
12684cat >$CONFIG_STATUS <<_ACEOF
12685#! $SHELL
12686# Generated by $as_me.
671aa708 12687# Run this file to recreate the current configuration.
671aa708 12688# Compiler output produced by configure, useful for debugging
1c710c3c 12689# configure, is in config.log if it exists.
0b0dc272 12690
1c710c3c
DJ
12691debug=false
12692ac_cs_recheck=false
12693ac_cs_silent=false
12694SHELL=\${CONFIG_SHELL-$SHELL}
12695_ACEOF
12696
12697cat >>$CONFIG_STATUS <<\_ACEOF
12698## --------------------- ##
12699## M4sh Initialization. ##
12700## --------------------- ##
12701
2aeb72e9 12702# Be Bourne compatible
1c710c3c
DJ
12703if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12704 emulate sh
12705 NULLCMD=:
12706 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12707 # is contrary to our usage. Disable this feature.
12708 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12709elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12710 set -o posix
1c710c3c 12711fi
2aeb72e9 12712DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12713
12714# Support unset when possible.
12715if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12716 as_unset=unset
12717else
12718 as_unset=false
12719fi
12720
12721
12722# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12723$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12724PS1='$ '
12725PS2='> '
12726PS4='+ '
12727
12728# NLS nuisances.
12729for as_var in \
12730 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12731 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12732 LC_TELEPHONE LC_TIME
12733do
12734 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12735 eval $as_var=C; export $as_var
12736 else
2aeb72e9 12737 $as_unset $as_var
1c710c3c
DJ
12738 fi
12739done
12740
12741# Required to use basename.
2aeb72e9 12742if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12743 as_expr=expr
12744else
12745 as_expr=false
12746fi
12747
2aeb72e9 12748if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12749 as_basename=basename
12750else
12751 as_basename=false
12752fi
12753
12754
12755# Name of the executable.
2aeb72e9 12756as_me=`$as_basename "$0" ||
1c710c3c
DJ
12757$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12758 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12759 X"$0" : 'X\(/\)$' \| \
12760 . : '\(.\)' 2>/dev/null ||
1c710c3c 12761echo X/"$0" |
2aeb72e9
DD
12762 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12763 /^X\/\(\/\/\)$/{ s//\1/; q; }
12764 /^X\/\(\/\).*/{ s//\1/; q; }
12765 s/.*/./; q'`
1c710c3c 12766
2aeb72e9
DD
12767
12768# PATH needs CR, and LINENO needs CR and PATH.
12769# Avoid depending upon Character Ranges.
12770as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12771as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12772as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12773as_cr_digits='0123456789'
12774as_cr_alnum=$as_cr_Letters$as_cr_digits
12775
12776# The user is always right.
12777if test "${PATH_SEPARATOR+set}" != set; then
12778 echo "#! /bin/sh" >conf$$.sh
12779 echo "exit 0" >>conf$$.sh
12780 chmod +x conf$$.sh
12781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12782 PATH_SEPARATOR=';'
12783 else
12784 PATH_SEPARATOR=:
12785 fi
12786 rm -f conf$$.sh
12787fi
1c710c3c
DJ
12788
12789
2aeb72e9
DD
12790 as_lineno_1=$LINENO
12791 as_lineno_2=$LINENO
12792 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12793 test "x$as_lineno_1" != "x$as_lineno_2" &&
12794 test "x$as_lineno_3" = "x$as_lineno_2" || {
12795 # Find who we are. Look in the path if we contain no path at all
12796 # relative or not.
12797 case $0 in
12798 *[\\/]* ) as_myself=$0 ;;
12799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12805done
1c710c3c 12806
2aeb72e9
DD
12807 ;;
12808 esac
12809 # We did not find ourselves, most probably we were run as `sh COMMAND'
12810 # in which case we are not to be found in the path.
12811 if test "x$as_myself" = x; then
12812 as_myself=$0
12813 fi
12814 if test ! -f "$as_myself"; then
12815 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12816echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12817 { (exit 1); exit 1; }; }
12818 fi
12819 case $CONFIG_SHELL in
12820 '')
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12823do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for as_base in sh bash ksh sh5; do
12827 case $as_dir in
12828 /*)
12829 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12830 as_lineno_1=$LINENO
12831 as_lineno_2=$LINENO
2aeb72e9 12832 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12833 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12834 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12835 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12836 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12837 CONFIG_SHELL=$as_dir/$as_base
12838 export CONFIG_SHELL
12839 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12840 fi;;
12841 esac
12842 done
12843done
12844;;
12845 esac
1c710c3c
DJ
12846
12847 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12848 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12849 # line-number line before each line; the second 'sed' does the real
12850 # work. The second script uses 'N' to pair each line-number line
12851 # with the numbered line, and appends trailing '-' during
12852 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12853 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12854 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12855 sed '=' <$as_myself |
1c710c3c
DJ
12856 sed '
12857 N
2aeb72e9
DD
12858 s,$,-,
12859 : loop
12860 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12861 t loop
2aeb72e9
DD
12862 s,-$,,
12863 s,^['$as_cr_digits']*\n,,
1c710c3c 12864 ' >$as_me.lineno &&
2aeb72e9
DD
12865 chmod +x $as_me.lineno ||
12866 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12867echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12868 { (exit 1); exit 1; }; }
12869
12870 # Don't try to exec as it changes $[0], causing all sort of problems
12871 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12872 # original and so on. Autoconf is especially sensible to this).
12873 . ./$as_me.lineno
1c710c3c
DJ
12874 # Exit status is that of the last command.
12875 exit
12876}
12877
12878
2aeb72e9
DD
12879case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12880 *c*,-n*) ECHO_N= ECHO_C='
12881' ECHO_T=' ' ;;
12882 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12883 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12884esac
12885
2aeb72e9 12886if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12887 as_expr=expr
12888else
12889 as_expr=false
12890fi
12891
12892rm -f conf$$ conf$$.exe conf$$.file
12893echo >conf$$.file
12894if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12895 # We could just check for DJGPP; but this test a) works b) is more generic
12896 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12897 if test -f conf$$.exe; then
12898 # Don't use ln at all; we don't have any links
1c710c3c 12899 as_ln_s='cp -p'
2aeb72e9
DD
12900 else
12901 as_ln_s='ln -s'
12902 fi
1c710c3c
DJ
12903elif ln conf$$.file conf$$ 2>/dev/null; then
12904 as_ln_s=ln
12905else
12906 as_ln_s='cp -p'
12907fi
2aeb72e9 12908rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12909
12910if mkdir -p . 2>/dev/null; then
12911 as_mkdir_p=:
12912else
12913 test -d ./-p && rmdir ./-p
12914 as_mkdir_p=false
12915fi
12916
2aeb72e9 12917as_executable_p="test -f"
1c710c3c
DJ
12918
12919# Sed expression to map a string onto a valid CPP name.
12920as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12921
12922# Sed expression to map a string onto a valid variable name.
12923as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12924
12925
2aeb72e9
DD
12926# IFS
12927# We need space, tab and new line, in precisely that order.
12928as_nl='
12929'
12930IFS=" $as_nl"
12931
12932# CDPATH.
12933$as_unset CDPATH
12934
1c710c3c
DJ
12935exec 6>&1
12936
2aeb72e9 12937# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12938# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12939# values after options handling. Logging --version etc. is OK.
12940exec 5>>config.log
12941{
12942 echo
12943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12944## Running $as_me. ##
12945_ASBOX
12946} >&5
12947cat >&5 <<_CSEOF
12948
1c710c3c 12949This file was extended by $as_me, which was
2aeb72e9 12950generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12951
12952 CONFIG_FILES = $CONFIG_FILES
12953 CONFIG_HEADERS = $CONFIG_HEADERS
12954 CONFIG_LINKS = $CONFIG_LINKS
12955 CONFIG_COMMANDS = $CONFIG_COMMANDS
12956 $ $0 $@
12957
2aeb72e9
DD
12958_CSEOF
12959echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12960echo >&5
1c710c3c
DJ
12961_ACEOF
12962
12963# Files that config.status was made for.
2aeb72e9
DD
12964if test -n "$ac_config_files"; then
12965 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12966fi
1c710c3c 12967
2aeb72e9
DD
12968if test -n "$ac_config_headers"; then
12969 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12970fi
12971
12972if test -n "$ac_config_links"; then
12973 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12974fi
12975
12976if test -n "$ac_config_commands"; then
12977 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12978fi
1c710c3c
DJ
12979
12980cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12981
1c710c3c
DJ
12982ac_cs_usage="\
12983\`$as_me' instantiates files from templates according to the
12984current configuration.
12985
12986Usage: $0 [OPTIONS] [FILE]...
12987
12988 -h, --help print this help, then exit
2aeb72e9 12989 -V, --version print version number, then exit
1c710c3c
DJ
12990 -q, --quiet do not print progress messages
12991 -d, --debug don't remove temporary files
12992 --recheck update $as_me by reconfiguring in the same conditions
12993 --file=FILE[:TEMPLATE]
12994 instantiate the configuration file FILE
12995
12996Configuration files:
12997$config_files
12998
12999Report bugs to <bug-autoconf@gnu.org>."
11a67599 13000_ACEOF
2aeb72e9 13001
1c710c3c
DJ
13002cat >>$CONFIG_STATUS <<_ACEOF
13003ac_cs_version="\\
13004config.status
2aeb72e9
DD
13005configured by $0, generated by GNU Autoconf 2.59,
13006 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 13007
2aeb72e9 13008Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
13009This config.status script is free software; the Free Software Foundation
13010gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
13011srcdir=$srcdir
13012INSTALL="$INSTALL"
1c710c3c
DJ
13013_ACEOF
13014
13015cat >>$CONFIG_STATUS <<\_ACEOF
13016# If no file are specified by the user, then we need to provide default
13017# value. By we need to know if files were specified by the user.
13018ac_need_defaults=:
13019while test $# != 0
a4b9e93e 13020do
1c710c3c
DJ
13021 case $1 in
13022 --*=*)
2aeb72e9
DD
13023 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13024 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
13025 ac_shift=:
13026 ;;
2aeb72e9 13027 -*)
1c710c3c
DJ
13028 ac_option=$1
13029 ac_optarg=$2
13030 ac_shift=shift
13031 ;;
2aeb72e9
DD
13032 *) # This is not an option, so the user has probably given explicit
13033 # arguments.
13034 ac_option=$1
13035 ac_need_defaults=false;;
1c710c3c
DJ
13036 esac
13037
13038 case $ac_option in
13039 # Handling of the options.
2aeb72e9
DD
13040_ACEOF
13041cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 13042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13043 ac_cs_recheck=: ;;
2aeb72e9
DD
13044 --version | --vers* | -V )
13045 echo "$ac_cs_version"; exit 0 ;;
13046 --he | --h)
13047 # Conflict between --help and --header
13048 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13049Try \`$0 --help' for more information." >&5
13050echo "$as_me: error: ambiguous option: $1
13051Try \`$0 --help' for more information." >&2;}
13052 { (exit 1); exit 1; }; };;
13053 --help | --hel | -h )
13054 echo "$ac_cs_usage"; exit 0 ;;
13055 --debug | --d* | -d )
1c710c3c
DJ
13056 debug=: ;;
13057 --file | --fil | --fi | --f )
13058 $ac_shift
13059 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13060 ac_need_defaults=false;;
2aeb72e9
DD
13061 --header | --heade | --head | --hea )
13062 $ac_shift
13063 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13064 ac_need_defaults=false;;
1c710c3c
DJ
13065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13066 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13067 ac_cs_silent=: ;;
13068
13069 # This is an error.
2aeb72e9
DD
13070 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13071Try \`$0 --help' for more information." >&5
13072echo "$as_me: error: unrecognized option: $1
13073Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
13074 { (exit 1); exit 1; }; } ;;
13075
2aeb72e9 13076 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 13077
0b0dc272 13078 esac
1c710c3c 13079 shift
0b0dc272
AM
13080done
13081
1c710c3c 13082ac_configure_extra_args=
0b0dc272 13083
1c710c3c
DJ
13084if $ac_cs_silent; then
13085 exec 6>/dev/null
13086 ac_configure_extra_args="$ac_configure_extra_args --silent"
13087fi
0b0dc272 13088
1c710c3c
DJ
13089_ACEOF
13090cat >>$CONFIG_STATUS <<_ACEOF
13091if \$ac_cs_recheck; then
2aeb72e9
DD
13092 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13093 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
13094fi
13095
13096_ACEOF
13097
1c710c3c 13098
11a67599 13099
2aeb72e9
DD
13100
13101
13102cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
13103for ac_config_target in $ac_config_targets
13104do
2aeb72e9
DD
13105 case "$ac_config_target" in
13106 # Handling of arguments.
13107 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
13108 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13109echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13110 { (exit 1); exit 1; }; };;
13111 esac
13112done
13113
13114# If the user did not use the arguments to specify the items to instantiate,
13115# then the envvar interface is used. Set only those that are not.
13116# We use the long form for the default assignment because of an extremely
13117# bizarre bug on SunOS 4.1.3.
13118if $ac_need_defaults; then
13119 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13120fi
13121
13122# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 13123# simply because there is no reason to put it here, and in addition,
1c710c3c 13124# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 13125# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
13126$debug ||
13127{
2aeb72e9 13128 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
13129 trap '{ (exit 1); exit 1; }' 1 2 13 15
13130}
2aeb72e9 13131
1c710c3c
DJ
13132# Create a (secure) tmp directory for tmp files.
13133
13134{
2aeb72e9 13135 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13136 test -n "$tmp" && test -d "$tmp"
13137} ||
13138{
2aeb72e9
DD
13139 tmp=./confstat$$-$RANDOM
13140 (umask 077 && mkdir $tmp)
1c710c3c
DJ
13141} ||
13142{
13143 echo "$me: cannot create a temporary directory in ." >&2
13144 { (exit 1); exit 1; }
13145}
13146
2aeb72e9
DD
13147_ACEOF
13148
13149cat >>$CONFIG_STATUS <<_ACEOF
13150
1c710c3c 13151#
2aeb72e9 13152# CONFIG_FILES section.
1c710c3c
DJ
13153#
13154
13155# No need to generate the scripts if there are no CONFIG_FILES.
13156# This happens for instance when ./config.status config.h
2aeb72e9
DD
13157if test -n "\$CONFIG_FILES"; then
13158 # Protect against being on the right side of a sed subst in config.status.
13159 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13160 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13161s,@SHELL@,$SHELL,;t t
13162s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13163s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13164s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13165s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13166s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13167s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13168s,@exec_prefix@,$exec_prefix,;t t
13169s,@prefix@,$prefix,;t t
13170s,@program_transform_name@,$program_transform_name,;t t
13171s,@bindir@,$bindir,;t t
13172s,@sbindir@,$sbindir,;t t
13173s,@libexecdir@,$libexecdir,;t t
13174s,@datadir@,$datadir,;t t
13175s,@sysconfdir@,$sysconfdir,;t t
13176s,@sharedstatedir@,$sharedstatedir,;t t
13177s,@localstatedir@,$localstatedir,;t t
13178s,@libdir@,$libdir,;t t
13179s,@includedir@,$includedir,;t t
13180s,@oldincludedir@,$oldincludedir,;t t
13181s,@infodir@,$infodir,;t t
13182s,@mandir@,$mandir,;t t
13183s,@build_alias@,$build_alias,;t t
13184s,@host_alias@,$host_alias,;t t
13185s,@target_alias@,$target_alias,;t t
13186s,@DEFS@,$DEFS,;t t
13187s,@ECHO_C@,$ECHO_C,;t t
13188s,@ECHO_N@,$ECHO_N,;t t
13189s,@ECHO_T@,$ECHO_T,;t t
13190s,@LIBS@,$LIBS,;t t
ad33ff57 13191s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
2aeb72e9
DD
13192s,@build@,$build,;t t
13193s,@build_cpu@,$build_cpu,;t t
13194s,@build_vendor@,$build_vendor,;t t
13195s,@build_os@,$build_os,;t t
13196s,@build_noncanonical@,$build_noncanonical,;t t
13197s,@host_noncanonical@,$host_noncanonical,;t t
13198s,@target_noncanonical@,$target_noncanonical,;t t
13199s,@host@,$host,;t t
13200s,@host_cpu@,$host_cpu,;t t
13201s,@host_vendor@,$host_vendor,;t t
13202s,@host_os@,$host_os,;t t
13203s,@target@,$target,;t t
13204s,@target_cpu@,$target_cpu,;t t
13205s,@target_vendor@,$target_vendor,;t t
13206s,@target_os@,$target_os,;t t
13207s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13208s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13209s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13210s,@LN@,$LN,;t t
13211s,@LN_S@,$LN_S,;t t
2aeb72e9
DD
13212s,@build_libsubdir@,$build_libsubdir,;t t
13213s,@build_subdir@,$build_subdir,;t t
13214s,@host_subdir@,$host_subdir,;t t
13215s,@target_subdir@,$target_subdir,;t t
13216s,@CC@,$CC,;t t
13217s,@CFLAGS@,$CFLAGS,;t t
13218s,@LDFLAGS@,$LDFLAGS,;t t
13219s,@CPPFLAGS@,$CPPFLAGS,;t t
13220s,@ac_ct_CC@,$ac_ct_CC,;t t
13221s,@EXEEXT@,$EXEEXT,;t t
13222s,@OBJEXT@,$OBJEXT,;t t
13223s,@CXX@,$CXX,;t t
13224s,@CXXFLAGS@,$CXXFLAGS,;t t
13225s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13226s,@GNATBIND@,$GNATBIND,;t t
13227s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13228s,@GNATMAKE@,$GNATMAKE,;t t
13229s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13230s,@do_compare@,$do_compare,;t t
13231s,@gmplibs@,$gmplibs,;t t
13232s,@gmpinc@,$gmpinc,;t t
f8bf9252
SP
13233s,@ppllibs@,$ppllibs,;t t
13234s,@pplinc@,$pplinc,;t t
13235s,@clooglibs@,$clooglibs,;t t
13236s,@clooginc@,$clooginc,;t t
2aeb72e9
DD
13237s,@stage1_languages@,$stage1_languages,;t t
13238s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 13239s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
1c8bd6a3
PB
13240s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13241s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
2aeb72e9 13242s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
d89f0ad6 13243s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
2aeb72e9
DD
13244s,@tooldir@,$tooldir,;t t
13245s,@build_tooldir@,$build_tooldir,;t t
13246s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13247s,@GDB_TK@,$GDB_TK,;t t
13248s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13249s,@build_configargs@,$build_configargs,;t t
13250s,@build_configdirs@,$build_configdirs,;t t
13251s,@host_configargs@,$host_configargs,;t t
13252s,@configdirs@,$configdirs,;t t
13253s,@target_configargs@,$target_configargs,;t t
0999159b
PB
13254s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13255s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 13256s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
13257s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13258s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13259s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13260s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13261s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13262s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13263s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13264s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13265s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13266s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13267s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13268s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
13269s,@config_shell@,$config_shell,;t t
13270s,@YACC@,$YACC,;t t
13271s,@BISON@,$BISON,;t t
13272s,@M4@,$M4,;t t
13273s,@LEX@,$LEX,;t t
13274s,@FLEX@,$FLEX,;t t
13275s,@MAKEINFO@,$MAKEINFO,;t t
13276s,@EXPECT@,$EXPECT,;t t
13277s,@RUNTEST@,$RUNTEST,;t t
13278s,@AR@,$AR,;t t
13279s,@AS@,$AS,;t t
13280s,@DLLTOOL@,$DLLTOOL,;t t
13281s,@LD@,$LD,;t t
13282s,@LIPO@,$LIPO,;t t
13283s,@NM@,$NM,;t t
13284s,@RANLIB@,$RANLIB,;t t
13285s,@STRIP@,$STRIP,;t t
13286s,@WINDRES@,$WINDRES,;t t
901119ae 13287s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
13288s,@OBJCOPY@,$OBJCOPY,;t t
13289s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
13290s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13291s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13292s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13293s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13294s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13295s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13296s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13297s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13298s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13299s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13300s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13301s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13302s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13303s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13304s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 13305s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
13306s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13307s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13308s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13309s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13310s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13311s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13312s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13313s,@MAINT@,$MAINT,;t t
13314s,@stage1_cflags@,$stage1_cflags,;t t
13315s,@stage1_checking@,$stage1_checking,;t t
13316s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13317s,@datarootdir@,$datarootdir,;t t
13318s,@docdir@,$docdir,;t t
13319s,@pdfdir@,$pdfdir,;t t
13320s,@htmldir@,$htmldir,;t t
13321s,@LIBOBJS@,$LIBOBJS,;t t
13322s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13323/@serialization_dependencies@/r $serialization_dependencies
13324s,@serialization_dependencies@,,;t t
13325/@host_makefile_frag@/r $host_makefile_frag
13326s,@host_makefile_frag@,,;t t
13327/@target_makefile_frag@/r $target_makefile_frag
13328s,@target_makefile_frag@,,;t t
13329/@alphaieee_frag@/r $alphaieee_frag
13330s,@alphaieee_frag@,,;t t
13331/@ospace_frag@/r $ospace_frag
13332s,@ospace_frag@,,;t t
13333CEOF
79c06341 13334
1c710c3c
DJ
13335_ACEOF
13336
2aeb72e9
DD
13337 cat >>$CONFIG_STATUS <<\_ACEOF
13338 # Split the substitutions into bite-sized pieces for seds with
13339 # small command number limits, like on Digital OSF/1 and HP-UX.
13340 ac_max_sed_lines=48
13341 ac_sed_frag=1 # Number of current file.
13342 ac_beg=1 # First line for current file.
13343 ac_end=$ac_max_sed_lines # Line after last line for current file.
13344 ac_more_lines=:
13345 ac_sed_cmds=
13346 while $ac_more_lines; do
13347 if test $ac_beg -gt 1; then
13348 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13349 else
13350 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13351 fi
13352 if test ! -s $tmp/subs.frag; then
13353 ac_more_lines=false
13354 else
13355 # The purpose of the label and of the branching condition is to
13356 # speed up the sed processing (if there are no `@' at all, there
13357 # is no need to browse any of the substitutions).
13358 # These are the two extra sed commands mentioned above.
13359 (echo ':t
13360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13361 if test -z "$ac_sed_cmds"; then
13362 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13363 else
13364 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13365 fi
13366 ac_sed_frag=`expr $ac_sed_frag + 1`
13367 ac_beg=$ac_end
13368 ac_end=`expr $ac_end + $ac_max_sed_lines`
13369 fi
13370 done
13371 if test -z "$ac_sed_cmds"; then
13372 ac_sed_cmds=cat
11a67599 13373 fi
2aeb72e9 13374fi # test -n "$CONFIG_FILES"
11a67599 13375
11a67599 13376_ACEOF
1c710c3c 13377cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
13378for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13379 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13380 case $ac_file in
13381 - | *:- | *:-:* ) # input from stdin
13382 cat >$tmp/stdin
13383 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13385 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13387 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
13388 esac
13389
2aeb72e9
DD
13390 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13391 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
13392$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13393 X"$ac_file" : 'X\(//\)[^/]' \| \
13394 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
13395 X"$ac_file" : 'X\(/\)' \| \
13396 . : '\(.\)' 2>/dev/null ||
1c710c3c 13397echo X"$ac_file" |
2aeb72e9
DD
13398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13400 /^X\(\/\/\)$/{ s//\1/; q; }
13401 /^X\(\/\).*/{ s//\1/; q; }
13402 s/.*/./; q'`
13403 { if $as_mkdir_p; then
13404 mkdir -p "$ac_dir"
13405 else
13406 as_dir="$ac_dir"
1c710c3c 13407 as_dirs=
2aeb72e9
DD
13408 while test ! -d "$as_dir"; do
13409 as_dirs="$as_dir $as_dirs"
13410 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
13411$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13412 X"$as_dir" : 'X\(//\)[^/]' \| \
13413 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13414 X"$as_dir" : 'X\(/\)' \| \
13415 . : '\(.\)' 2>/dev/null ||
1c710c3c 13416echo X"$as_dir" |
2aeb72e9
DD
13417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13419 /^X\(\/\/\)$/{ s//\1/; q; }
13420 /^X\(\/\).*/{ s//\1/; q; }
13421 s/.*/./; q'`
1c710c3c 13422 done
2aeb72e9
DD
13423 test ! -n "$as_dirs" || mkdir $as_dirs
13424 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13425echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13426 { (exit 1); exit 1; }; }; }
2aeb72e9 13427
1c710c3c 13428 ac_builddir=.
0b0dc272 13429
2aeb72e9 13430if test "$ac_dir" != .; then
1c710c3c 13431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13432 # A "../" for each directory in $ac_dir_suffix.
13433 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13434else
13435 ac_dir_suffix= ac_top_builddir=
13436fi
1c710c3c
DJ
13437
13438case $srcdir in
2aeb72e9 13439 .) # No --srcdir option. We are building in place.
1c710c3c 13440 ac_srcdir=.
2aeb72e9
DD
13441 if test -z "$ac_top_builddir"; then
13442 ac_top_srcdir=.
13443 else
13444 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13445 fi ;;
13446 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13447 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13448 ac_top_srcdir=$srcdir ;;
13449 *) # Relative path.
13450 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13451 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13452esac
a4b9e93e 13453
2aeb72e9
DD
13454# Do not use `cd foo && pwd` to compute absolute paths, because
13455# the directories may not exist.
13456case `pwd` in
13457.) ac_abs_builddir="$ac_dir";;
13458*)
13459 case "$ac_dir" in
13460 .) ac_abs_builddir=`pwd`;;
13461 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13462 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13463 esac;;
13464esac
13465case $ac_abs_builddir in
13466.) ac_abs_top_builddir=${ac_top_builddir}.;;
13467*)
13468 case ${ac_top_builddir}. in
13469 .) ac_abs_top_builddir=$ac_abs_builddir;;
13470 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13471 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13472 esac;;
13473esac
13474case $ac_abs_builddir in
13475.) ac_abs_srcdir=$ac_srcdir;;
13476*)
13477 case $ac_srcdir in
13478 .) ac_abs_srcdir=$ac_abs_builddir;;
13479 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13480 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13481 esac;;
13482esac
13483case $ac_abs_builddir in
13484.) ac_abs_top_srcdir=$ac_top_srcdir;;
13485*)
13486 case $ac_top_srcdir in
13487 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13488 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13489 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13490 esac;;
13491esac
0b0dc272 13492
1c710c3c
DJ
13493
13494 case $INSTALL in
13495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13496 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13497 esac
11a67599 13498
2aeb72e9
DD
13499 if test x"$ac_file" != x-; then
13500 { echo "$as_me:$LINENO: creating $ac_file" >&5
13501echo "$as_me: creating $ac_file" >&6;}
13502 rm -f "$ac_file"
13503 fi
13504 # Let's still pretend it is `configure' which instantiates (i.e., don't
13505 # use $as_me), people would be surprised to read:
13506 # /* config.h. Generated by config.status. */
13507 if test x"$ac_file" = x-; then
13508 configure_input=
13509 else
13510 configure_input="$ac_file. "
13511 fi
13512 configure_input=$configure_input"Generated from `echo $ac_file_in |
13513 sed 's,.*/,,'` by configure."
13514
13515 # First look for the input files in the build tree, otherwise in the
13516 # src tree.
13517 ac_file_inputs=`IFS=:
13518 for f in $ac_file_in; do
13519 case $f in
13520 -) echo $tmp/stdin ;;
13521 [\\/$]*)
13522 # Absolute (can't be DOS-style, as IFS=:)
13523 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13524echo "$as_me: error: cannot find input file: $f" >&2;}
13525 { (exit 1); exit 1; }; }
13526 echo "$f";;
13527 *) # Relative
13528 if test -f "$f"; then
13529 # Build tree
13530 echo "$f"
13531 elif test -f "$srcdir/$f"; then
13532 # Source tree
13533 echo "$srcdir/$f"
13534 else
13535 # /dev/null tree
13536 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13537echo "$as_me: error: cannot find input file: $f" >&2;}
13538 { (exit 1); exit 1; }; }
13539 fi;;
13540 esac
13541 done` || { (exit 1); exit 1; }
11a67599 13542_ACEOF
1c710c3c
DJ
13543cat >>$CONFIG_STATUS <<_ACEOF
13544 sed "$ac_vpsub
13545$extrasub
13546_ACEOF
13547cat >>$CONFIG_STATUS <<\_ACEOF
13548:t
13549/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13550s,@configure_input@,$configure_input,;t t
13551s,@srcdir@,$ac_srcdir,;t t
13552s,@abs_srcdir@,$ac_abs_srcdir,;t t
13553s,@top_srcdir@,$ac_top_srcdir,;t t
13554s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13555s,@builddir@,$ac_builddir,;t t
13556s,@abs_builddir@,$ac_abs_builddir,;t t
13557s,@top_builddir@,$ac_top_builddir,;t t
13558s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13559s,@INSTALL@,$ac_INSTALL,;t t
13560" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13561 rm -f $tmp/stdin
13562 if test x"$ac_file" != x-; then
13563 mv $tmp/out $ac_file
13564 else
13565 cat $tmp/out
13566 rm -f $tmp/out
13567 fi
11a67599 13568
2aeb72e9
DD
13569done
13570_ACEOF
11a67599 13571
2aeb72e9 13572cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13573
1c710c3c
DJ
13574{ (exit 0); exit 0; }
13575_ACEOF
671aa708 13576chmod +x $CONFIG_STATUS
1c710c3c
DJ
13577ac_clean_files=$ac_clean_files_save
13578
13579
13580# configure is writing to config.log, and then calls config.status.
13581# config.status does its own redirection, appending to config.log.
13582# Unfortunately, on DOS this fails, as config.log is still kept open
13583# by configure, so config.status won't be able to write to it; its
13584# output is simply discarded. So we exec the FD to /dev/null,
13585# effectively closing config.log, so it can be properly (re)opened and
13586# appended to by config.status. When coming back to configure, we
13587# need to make the FD available again.
13588if test "$no_create" != yes; then
13589 ac_cs_success=:
13590 ac_config_status_args=
13591 test "$silent" = yes &&
13592 ac_config_status_args="$ac_config_status_args --quiet"
13593 exec 5>/dev/null
13594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13595 exec 5>>config.log
13596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13597 # would make configure fail if this is the last instruction.
13598 $ac_cs_success || { (exit 1); exit 1; }
13599fi
79c06341 13600