]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
gcc_release: Do not include copies of faq.html in releases...
[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"
c8aea42c 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
2aeb72e9 306datadir='${prefix}/share'
671aa708
NN
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
2aeb72e9 310libdir='${exec_prefix}/lib'
671aa708
NN
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
2aeb72e9
DD
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
2aeb72e9 321 eval "$ac_prev=\$ac_option"
671aa708
NN
322 ac_prev=
323 continue
324 fi
79c06341 325
2aeb72e9 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
2aeb72e9 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708 351
2aeb72e9 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 353 ac_prev=datadir ;;
2aeb72e9
DD
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
2aeb72e9 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
2aeb72e9
DD
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
2aeb72e9 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
2aeb72e9
DD
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
2aeb72e9 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
2aeb72e9
DD
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
2aeb72e9 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
2aeb72e9
DD
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
2aeb72e9
DD
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
602 export $ac_envvar ;;
603
671aa708 604 *)
1c710c3c
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
af71363e 619fi
af71363e 620
2aeb72e9
DD
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
671aa708 623do
2aeb72e9 624 eval ac_val=$`echo $ac_var`
1c710c3c 625 case $ac_val in
2aeb72e9
DD
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
0b0dc272 650
1c710c3c
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
2aeb72e9
DD
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
1c710c3c 678echo X"$0" |
2aeb72e9
DD
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708 684 srcdir=$ac_confdir
2aeb72e9 685 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
2aeb72e9
DD
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 697 { (exit 1); exit 1; }; }
2aeb72e9 698 fi
1c710c3c 699fi
2aeb72e9
DD
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 702 { (exit 1); exit 1; }; }
2aeb72e9
DD
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
2aeb72e9
DD
880_ACEOF
881
882 cat <<_ACEOF
1c710c3c
DJ
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
923fi
924
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
30b74385
RW
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 935 stage1. Mostly useful for compiler development.
30b74385
RW
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
1c710c3c 941 sub-packages for the host, target or build
30b74385 942 machine, or all sub-packages
1c710c3c
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
30b74385
RW
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
1c710c3c
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
30b74385
RW
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
30b74385
RW
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
1c710c3c 967 use sysroot as the system root during the build
c8aea42c
PB
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
30b74385 970 --with-build-time-tools=PATH
1c710c3c 971 use given path to find target tools during the build
30b74385
RW
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
1c710c3c
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
2aeb72e9
DD
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
c3a86da9
DJ
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
278a7a38
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
901119ae 995 WINDMC WINDMC for the host
278a7a38
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
901119ae
KT
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
1c710c3c
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
2aeb72e9 1039 ac_popdir=`pwd`
1c710c3c 1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1041 test -d $ac_dir || continue
1c710c3c
DJ
1042 ac_builddir=.
1043
2aeb72e9 1044if test "$ac_dir" != .; then
1c710c3c 1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1c710c3c
DJ
1051
1052case $srcdir in
2aeb72e9 1053 .) # No --srcdir option. We are building in place.
1c710c3c 1054 ac_srcdir=.
2aeb72e9
DD
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1061 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1c710c3c 1105esac
2aeb72e9
DD
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1c710c3c
DJ
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1121 fi
1122 cd $ac_popdir
1c710c3c
DJ
1123 done
1124fi
1125
2aeb72e9 1126test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
2aeb72e9 1130Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
2aeb72e9 1134 exit 0
0b0dc272 1135fi
2aeb72e9
DD
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1c710c3c
DJ
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
2aeb72e9 1142generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
2aeb72e9 1200ac_sep=
1c710c3c
DJ
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
2aeb72e9 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
2aeb72e9
DD
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1c710c3c
DJ
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
2aeb72e9
DD
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1260{
1c710c3c 1261 (set) 2>&1 |
2aeb72e9
DD
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1c710c3c 1264 sed -n \
2aeb72e9
DD
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1c710c3c 1268 *)
2aeb72e9
DD
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1271 ;;
2aeb72e9
DD
1272 esac;
1273}
1c710c3c
DJ
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
2aeb72e9
DD
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
2aeb72e9
DD
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1c710c3c
DJ
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
2aeb72e9
DD
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
2aeb72e9 1311 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
2aeb72e9
DD
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1320 exit $exit_status
2aeb72e9 1321 ' 0
1c710c3c
DJ
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1c710c3c
DJ
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
0b0dc272 1347
1c710c3c
DJ
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
671aa708 1360# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
671aa708 1367fi
2aeb72e9 1368for ac_site_file in $CONFIG_SITE; do
671aa708 1369 if test -r "$ac_site_file"; then
1c710c3c
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
1c710c3c
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
2aeb72e9
DD
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1c710c3c
DJ
1386 esac
1387 fi
671aa708 1388else
1c710c3c
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
2aeb72e9
DD
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
2aeb72e9
DD
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
671aa708
NN
1443fi
1444
2aeb72e9
DD
1445ac_ext=c
1446ac_cpp='$CPP $CPPFLAGS'
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1c710c3c
DJ
1451
1452
1453
1454
671aa708
NN
1455
1456
d02c69be 1457
1c710c3c
DJ
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
671aa708 1472ac_aux_dir=
2aeb72e9
DD
1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
671aa708
NN
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
2aeb72e9 1478 elif test -f $ac_dir/install.sh; then
671aa708
NN
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
2aeb72e9 1482 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
671aa708
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1491 { (exit 1); exit 1; }; }
671aa708 1492fi
2aeb72e9
DD
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1496
1c710c3c 1497# Make sure we can run config.sub.
2aeb72e9
DD
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1501 { (exit 1); exit 1; }; }
1502
2aeb72e9
DD
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
2aeb72e9
DD
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
2aeb72e9
DD
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1518 { (exit 1); exit 1; }; }
1519
1520fi
2aeb72e9
DD
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1523build=$ac_cv_build
2aeb72e9
DD
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1527
671aa708 1528
1c710c3c
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1532esac
1533
1534
af71363e 1535
1c710c3c
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1539esac
1540
af71363e 1541
1c710c3c
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1546esac
1547
af71363e 1548
1c710c3c
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
1c710c3c 1554 program_transform_name=s,y,y,
af71363e 1555
2aeb72e9
DD
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1560else
2aeb72e9
DD
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1567 { (exit 1); exit 1; }; }
1568
af71363e 1569fi
2aeb72e9
DD
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1572host=$ac_cv_host
2aeb72e9
DD
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
2aeb72e9
DD
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1589 { (exit 1); exit 1; }; }
1590
1591fi
2aeb72e9
DD
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1594target=$ac_cv_target
2aeb72e9
DD
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
671aa708 1606test "$program_prefix" != NONE &&
2aeb72e9 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
2aeb72e9 1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1617rm conftest.sed
af71363e 1618
671aa708
NN
1619
1620
775956d0
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
1c710c3c 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1633# OS/2's system install, which has a completely different semantic
775956d0 1634# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1637if test -z "$INSTALL"; then
1c710c3c
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1659 if test $ac_prog = install &&
1c710c3c 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
1c710c3c
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
775956d0 1667 else
1c710c3c
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
775956d0
NN
1670 fi
1671 fi
1672 done
1c710c3c
DJ
1673 done
1674 ;;
1675esac
1676done
1677
775956d0
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1681 INSTALL=$ac_cv_path_install
775956d0 1682 else
2aeb72e9
DD
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
775956d0 1685 # break other packages using the cache if that directory is
2aeb72e9 1686 # removed, or if the path is relative.
1c710c3c 1687 INSTALL=$ac_install_sh
775956d0
NN
1688 fi
1689fi
2aeb72e9
DD
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1c710c3c 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
2aeb72e9
DD
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
2aeb72e9
DD
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1721else
1722 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
ad6717df
PB
1725fi
1726
2aeb72e9
DD
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
fb0103e5 1733else
2aeb72e9
DD
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1736fi
1737
775956d0 1738
79c06341 1739### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
671aa708
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
79c06341
JL
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
671aa708 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1776
beeaf216
MM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
9f8c6739
JM
1781for ac_arg
1782do
beeaf216 1783 case "$ac_arg" in
8c79f3c4 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
d9acb717
RW
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
beeaf216
MM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1799
cc1e60ea 1800
671aa708 1801moveifchange=${srcdir}/move-if-change
79c06341 1802
ee6a22df
L
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
671aa708
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
671aa708
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
79c06341
JL
1816fi
1817
671aa708 1818topsrcdir=$srcpwd
5d4a5ee6 1819
671aa708 1820extra_host_args=
afabd8e6 1821
671aa708
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
79c06341 1825
1c710c3c 1826# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1827# configdirs, or target_configdirs; see the serialization section below.
79c06341 1828
1c710c3c
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
671aa708 1831# the Makefile, whether or not it's implicitly specified here.
79c06341 1832
671aa708
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
79c06341 1835
23f6b2f9
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
71b5d516 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1843
671aa708
NN
1844# these libraries are used by various programs built for the host environment
1845#
e69bf64b 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1847
671aa708
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
5395b47b 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
671aa708
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
291f172e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
671aa708
NN
1866 target-libgloss \
1867 target-newlib \
6d3b5aea 1868 target-libgomp \
cb543528 1869 target-libstdc++-v3 \
6de9cd9a 1870 target-libmudflap \
77008252 1871 target-libssp \
6de9cd9a 1872 target-libgfortran \
7cd0cf9c 1873 target-boehm-gc \
77d187bc 1874 ${libgcj} \
d9cdb878 1875 target-libobjc \
6d3b5aea 1876 target-libada"
671aa708 1877
4dbda6f0
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
671aa708 1880#
4dbda6f0 1881# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
97286f7f 1885target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1886
671aa708 1887################################################################################
79c06341 1888
671aa708
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
671aa708 1894configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1896build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1897
671aa708 1898################################################################################
79c06341 1899
671aa708 1900srcname="gnu development package"
79c06341 1901
671aa708
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
79c06341 1904
671aa708
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
79c06341 1909else
671aa708 1910 is_cross_compiler=yes
1c710c3c 1911fi
79c06341 1912
b4acb5ef 1913# Find the build and target subdir names.
8b87bb96 1914
2e9e6f68
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1925build_subdir="build-${build_noncanonical}"
1c710c3c 1926
2aeb72e9 1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1928if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
2e9e6f68
DJ
1931else
1932 build_libsubdir="$build_subdir"
2aeb72e9 1933fi;
215c351a
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
8b87bb96
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
1c710c3c 1943
79c06341 1944
671aa708
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
79c06341 1949
671aa708
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1955fi
1956
671aa708
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1962fi
1963
1c710c3c 1964# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1965# it's not even worth trying to configure, much less build, that tool.
79c06341 1966
671aa708
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
b4f96efe 1970 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1971 # We won't be able to build gdbtk without X.
1c710c3c 1972 enable_gdbtk=no
671aa708
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
79c06341 1976
671aa708 1977# Some tools are only suitable for building in a "native" situation.
1c710c3c 1978# Remove these if host!=target.
9e299237 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1980
671aa708
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
79c06341 1989
671aa708
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
ee6a22df
L
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
79c06341
JL
1997fi
1998
671aa708
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
79c06341 2004
671aa708 2005# Configure extra directories which are host specific
79c06341 2006
671aa708
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
79c06341 2011
4fab7234
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
1c710c3c 2016# Remove more programs from consideration, based on the host or
671aa708
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
ec8d6ddc 2019
671aa708
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
f2a0e225 2024 i[3456789]86-*-vsta)
b4f96efe 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2026 ;;
f2a0e225 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2029 ;;
95af8923
KT
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
f2a0e225 2033 i[3456789]86-*-mingw32*)
b4f96efe 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2036 ;;
f2a0e225 2037 i[3456789]86-*-beos*)
b4f96efe 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2039 ;;
671aa708 2040 *-*-cygwin*)
a22c2d8d 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2042 ;;
2043 *-*-netbsd*)
a22c2d8d 2044 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2045 ;;
2046 ppc*-*-pe)
b4f96efe 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2048 ;;
2049 powerpc-*-beos*)
b4f96efe 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2051 ;;
671aa708 2052esac
ec8d6ddc 2053
6de9cd9a 2054
2aeb72e9 2055# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2056if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
d9cdb878
AC
2059else
2060 ENABLE_LIBADA=yes
2aeb72e9 2061fi;
d9cdb878 2062if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2063 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2064fi
2065
2aeb72e9 2066# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2067if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2070else
2071 ENABLE_LIBSSP=yes
2aeb72e9 2072fi;
ef0087a7 2073
671aa708
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
ec8d6ddc 2089
6de9cd9a 2090
27079765
AH
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
dfcada9a 2093 case "${target}" in
1c00b503 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2095 # Enable libmudflap by default in GNU and friends.
dfcada9a 2096 ;;
a3e8d8b4
LR
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
dfcada9a
MM
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
27079765 2105fi
6de9cd9a 2106
27079765
AH
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
953ff289
DN
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
670cbfcf 2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
04879af3 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2116 ;;
cac90078 2117 *-*-darwin* | *-*-aix*)
953ff289
DN
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
27079765 2123fi
953ff289 2124
c03353e2
RIL
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
6de9cd9a 2127
671aa708
NN
2128case "${target}" in
2129 *-*-chorusos)
cb253473 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2131 ;;
42c1cd8a 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2134 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2135 ;;
42c1cd8a
AT
2136 *-*-darwin*)
2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2138 noconfigdirs="$noconfigdirs sim target-rda"
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
671aa708 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2143 ;;
c3f84f61 2144 *-*-freebsd*)
6de9cd9a
DN
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
cb253473 2156 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2157 ;;
2158 esac
2159 ;;
ef4e7569
US
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
cb253473 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
671aa708
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
0590b963 2174 arm*-*-netbsdelf*) ;;
671aa708 2175 *)
cb253473 2176 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2177 ;;
2178 esac
2179 ;;
61fec9ff 2180 *-*-netware*)
cb253473 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2182 ;;
2183 *-*-rtems*)
cb253473 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2185 ;;
a8ba31f2
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
cb253473 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2189 ;;
5785c0ed 2190 *-*-uclinux*)
cb253473 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2192 ;;
671aa708 2193 *-*-vxworks*)
cb253473 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
cb253473 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
671aa708
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
cb253473 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2212 ;;
33952f6f 2213 am33_2.0-*-linux*)
cb253473 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2215 ;;
671aa708 2216 sh-*-linux*)
cb253473 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2218 ;;
671aa708 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2220 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
cb543528 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2230 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2231 ;;
2232 esac
c03353e2 2233 libgloss_dir=wince
671aa708
NN
2234 ;;
2235 arc-*-*)
cb253473 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2237 ;;
ee6a22df 2238 arm-semi-aof )
ee6a22df 2239 ;;
671aa708 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2241 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2242 libgloss_dir=arm
671aa708 2243 ;;
b3f8d95d 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2246 libgloss_dir=arm
671aa708 2247 ;;
077fc835 2248 arm*-*-linux-gnueabi)
c4e9bf2b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
1c00b503
PB
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
c03353e2 2254 libgloss_dir=arm
077fc835 2255 ;;
972974fc 2256 arm*-*-symbianelf*)
cb253473 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2258 libgloss_dir=arm
972974fc 2259 ;;
671aa708 2260 arm-*-pe*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2262 ;;
671aa708 2263 thumb-*-coff)
cb253473 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2265 ;;
2266 thumb-*-elf)
cb253473 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2268 ;;
671aa708 2269 thumb-*-pe)
cb253473 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2271 ;;
2272 arm-*-riscix*)
cb253473 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2274 ;;
2275 avr-*-*)
cb253473 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2277 ;;
6b65a26d 2278 bfin-*-*)
8b3c6c5a 2279 noconfigdirs="$noconfigdirs gdb"
61efc800 2280 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
671aa708 2284 c4x-*-* | tic4x-*-*)
cb253473 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
cb253473 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2289 ;;
40d64b5a 2290 cris-*-* | crisv32-*-*)
4fab7234 2291 unsupported_languages="$unsupported_languages java"
40d64b5a 2292 case "${target}" in
c2e0d3a9 2293 *-*-aout)
7f26dfa3 2294 unsupported_languages="$unsupported_languages fortran"
4fab7234 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2296 *-*-elf)
7f26dfa3 2297 unsupported_languages="$unsupported_languages fortran"
789ec619 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2299 *-*-linux*)
789ec619 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2301 *)
7f26dfa3 2302 unsupported_languages="$unsupported_languages fortran"
cb253473 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2304 esac
c03353e2 2305 libgloss_dir=cris
671aa708 2306 ;;
25b656e7 2307 crx-*-*)
cb253473 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2309 ;;
671aa708 2310 d10v-*-*)
cb253473 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2312 ;;
2313 d30v-*-*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2315 ;;
c03353e2
RIL
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
671aa708 2319 fr30-*-elf*)
cb253473 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2321 ;;
2322 frv-*-*)
cb253473 2323 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2324 ;;
2325 h8300*-*-*)
cb253473 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2327 ;;
2328 h8500-*-*)
cb253473 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2330 ;;
ee6a22df 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2332 ;;
671aa708
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
3e732ba0
JDA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
671aa708 2341 hppa*-*-*elf* | \
671aa708
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2346 ;;
2a332582
JDA
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
2349 ;;
c03353e2
RIL
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
671aa708
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
cb253473 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2357 ;;
fb87ad5d 2358 i960-*-*)
cb253473 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2360 ;;
671aa708
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
b4f96efe 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
cb253473 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2368 ;;
ee6a22df 2369 i370-*-opened*)
ee6a22df 2370 ;;
f2a0e225 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2372 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2373 libgloss_dir=i386
671aa708 2374 ;;
f2a0e225 2375 i[3456789]86-*-linux*)
671aa708
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
cb253473 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
3aa83176 2386 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
f2a0e225 2394 i[3456789]86-*-mingw32*)
b91f0a41
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2397 ;;
95af8923
KT
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2401 ;;
671aa708
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2405 # always build newlib if winsup directory is present.
b91f0a41 2406 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2408 elif test -d "$srcdir/newlib"; then
b91f0a41 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2410 fi
1c710c3c 2411 ;;
ee6a22df
L
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2414 ;;
f2a0e225 2415 i[3456789]86-*-pe)
cb253473 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2417 ;;
f2a0e225 2418 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
cb253473 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2422 ;;
f2a0e225 2423 i[3456789]86-*-sco*)
cb253473 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2425 ;;
f2a0e225 2426 i[3456789]86-*-solaris2*)
671aa708
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
f2a0e225 2429 i[3456789]86-*-sysv4*)
cb253473 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2431 ;;
f2a0e225 2432 i[3456789]86-*-beos*)
cb253473 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2434 ;;
d1f8db0c
PB
2435 i[3456789]86-*-rdos*)
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
fb87ad5d 2438 m32r-*-*)
cb253473 2439 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2440 ;;
671aa708 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2443 libgloss_dir=m68hc11
671aa708
NN
2444 ;;
2445 m68k-*-elf*)
cb253473 2446 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2447 ;;
2448 m68k-*-coff*)
cb253473 2449 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2450 ;;
c03353e2
RIL
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
671aa708
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
4fab7234 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2461 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2462 ;;
2463 mn10200-*-*)
cb253473 2464 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2465 ;;
2466 mn10300-*-*)
cb253473 2467 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2468 ;;
ab34901f 2469 mt-*-*)
79dd769c
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
671aa708
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
cb253473 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
cb253473 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
cb253473 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2485 libgloss_dir=rs6000
671aa708
NN
2486 ;;
2487 powerpc-*-beos*)
cb253473 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2489 ;;
671aa708 2490 powerpc-*-eabi)
cb253473 2491 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2492 libgloss_dir=rs6000
ee6a22df
L
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2495 libgloss_dir=rs6000
671aa708 2496 ;;
671aa708 2497 rs6000-*-lynxos*)
cb253473 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2499 ;;
2500 rs6000-*-aix*)
cb253473 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2502 ;;
2503 rs6000-*-*)
cb253473 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2505 ;;
2506 m68k-apollo-*)
cb253473 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2508 ;;
d9dced13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
671aa708 2517 mips*-*-irix5*)
cb253473 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2519 ;;
2520 mips*-*-irix6*)
671aa708
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
cb253473 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2526 ;;
671aa708 2527 mips*-*-bsd*)
cb253473 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2529 ;;
671aa708
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
cb253473 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2535 libgloss_dir=mips
671aa708
NN
2536 ;;
2537 romp-*-*)
cb253473 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2539 ;;
669f01d8 2540 sh-*-* | sh64-*-*)
671aa708 2541 case "${host}" in
f2a0e225
KC
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
cb253473 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2548 ;;
c03353e2
RIL
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
671aa708 2552 sparc-*-elf*)
cb253473 2553 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2554 ;;
2555 sparc64-*-elf*)
cb253473 2556 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2557 libgloss_dir=sparc
671aa708
NN
2558 ;;
2559 sparclite-*-*)
cb253473 2560 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2561 libgloss_dir=sparc
671aa708
NN
2562 ;;
2563 sparc-*-sunos4*)
cb253473 2564 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
bba5e0ca 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2572 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2573 ;;
671aa708
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
85d9c13c 2576 spu-*-*)
ea6f5c57 2577 skipdirs="target-libssp"
85d9c13c 2578 ;;
671aa708 2579 v810-*-*)
cb253473 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2581 ;;
2582 v850-*-*)
cb253473 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2584 ;;
2585 v850e-*-*)
cb253473 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2587 ;;
2588 v850ea-*-*)
cb253473 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2590 ;;
2591 vax-*-vms)
cb253473 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2593 ;;
2594 vax-*-*)
cb253473 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2596 ;;
0d4f1b4e 2597 xtensa-*-*)
cb253473 2598 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2599 ;;
671aa708 2600 ip2k-*-*)
cb253473 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2602 ;;
c3f84f61 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
cb253473 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2608 ;;
671aa708 2609 *-*-*)
cb253473 2610 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2611 ;;
2612esac
79c06341 2613
671aa708
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
671aa708
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
f2a0e225 2692 i[3456789]86-*-sysv5*)
671aa708
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
f2a0e225 2695 i[3456789]86-*-dgux*)
671aa708
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
f2a0e225 2699 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
f2a0e225 2704 i[3456789]86-ncr-sysv4*)
671aa708
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
f2a0e225 2713 i[3456789]86-*-sco3.2v5*)
671aa708 2714 ;;
f2a0e225 2715 i[3456789]86-*-sco*)
671aa708
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
f2a0e225 2721 i[3456789]86-*-udk*)
671aa708
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
f2a0e225 2724 i[3456789]86-*-solaris2*)
671aa708
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
f2a0e225 2727 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
1f5a6b84 2734 host_makefile_frag="config/mh-mingw"
671aa708 2735 ;;
95af8923 2736 *-mingw64*)
1f5a6b84 2737 host_makefile_frag="config/mh-mingw"
95af8923 2738 ;;
671aa708
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
45f366ab 2765 powerpc-*-darwin*)
be8fff81
RB
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
d19bca38
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
671aa708
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
95c53c62
RS
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
671aa708
NN
2786esac
2787fi
2788
55ffb5ed
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
55ffb5ed 2809 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2810else
fb0103e5 2811 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2812fi
2813
2814ac_ext=c
1c710c3c
DJ
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2822echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2824if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842done
2843
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
2aeb72e9
DD
2848 echo "$as_me:$LINENO: result: $CC" >&5
2849echo "${ECHO_T}$CC" >&6
1c710c3c 2850else
2aeb72e9
DD
2851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
1c710c3c
DJ
2853fi
2854
2855fi
2856if test -z "$ac_cv_prog_CC"; then
2857 ac_ct_CC=$CC
fb0103e5
RG
2858 # Extract the first word of "gcc", so it can be a program name with args.
2859set dummy gcc; ac_word=$2
2aeb72e9
DD
2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2875 ac_cv_prog_ac_ct_CC="gcc"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879done
2880done
2881
2882fi
2883fi
2884ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2888else
2aeb72e9
DD
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
1c710c3c
DJ
2891fi
2892
2aeb72e9 2893 CC=$ac_ct_CC
1c710c3c
DJ
2894else
2895 CC="$ac_cv_prog_CC"
2896fi
2897
2898if test -z "$CC"; then
2aeb72e9
DD
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2901set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2902echo "$as_me:$LINENO: checking for $ac_word" >&5
2903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2904if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2906else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
1c710c3c
DJ
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2917 ac_cv_prog_CC="${ac_tool_prefix}cc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921done
2922done
2923
0b0dc272 2924fi
0b0dc272 2925fi
1c710c3c 2926CC=$ac_cv_prog_CC
af71363e 2927if test -n "$CC"; then
2aeb72e9
DD
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929echo "${ECHO_T}$CC" >&6
0b0dc272 2930else
2aeb72e9
DD
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
0b0dc272
AM
2933fi
2934
2aeb72e9
DD
2935fi
2936if test -z "$ac_cv_prog_CC"; then
2937 ac_ct_CC=$CC
2938 # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CC="cc"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
11a67599 2958 fi
2aeb72e9
DD
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973 CC=$ac_ct_CC
2974else
2975 CC="$ac_cv_prog_CC"
2976fi
2977
1c710c3c 2978fi
55ffb5ed
NN
2979if test -z "$CC"; then
2980 # Extract the first word of "cc", so it can be a program name with args.
2981set dummy cc; ac_word=$2
2aeb72e9
DD
2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2984if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2986else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
0b0dc272 2990 ac_prog_rejected=no
1c710c3c
DJ
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999 ac_prog_rejected=yes
3000 continue
3001 fi
3002 ac_cv_prog_CC="cc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006done
3007done
3008
55ffb5ed
NN
3009if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy $ac_cv_prog_CC
3012 shift
1c710c3c 3013 if test $# != 0; then
55ffb5ed
NN
3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3017 shift
1c710c3c 3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3019 fi
3020fi
3021fi
3022fi
1c710c3c 3023CC=$ac_cv_prog_CC
55ffb5ed 3024if test -n "$CC"; then
2aeb72e9
DD
3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
55ffb5ed 3027else
2aeb72e9
DD
3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
55ffb5ed
NN
3030fi
3031
1c710c3c
DJ
3032fi
3033if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
2aeb72e9 3035 for ac_prog in cl
1c710c3c
DJ
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3039echo "$as_me:$LINENO: checking for $ac_word" >&5
3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3041if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
1c710c3c
DJ
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058done
3059done
3060
55ffb5ed
NN
3061fi
3062fi
1c710c3c 3063CC=$ac_cv_prog_CC
55ffb5ed 3064if test -n "$CC"; then
2aeb72e9
DD
3065 echo "$as_me:$LINENO: result: $CC" >&5
3066echo "${ECHO_T}$CC" >&6
a4b9e93e 3067else
2aeb72e9
DD
3068 echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6
fb0103e5 3070fi
af71363e 3071
1c710c3c
DJ
3072 test -n "$CC" && break
3073 done
af71363e 3074fi
1c710c3c
DJ
3075if test -z "$CC"; then
3076 ac_ct_CC=$CC
2aeb72e9 3077 for ac_prog in cl
1c710c3c
DJ
3078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3085else
1c710c3c
DJ
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3088else
1c710c3c
DJ
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3096 ac_cv_prog_ac_ct_CC="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
af71363e
AS
3103fi
3104fi
1c710c3c
DJ
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3108echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3109else
2aeb72e9
DD
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
af71363e 3112fi
0b0dc272 3113
1c710c3c
DJ
3114 test -n "$ac_ct_CC" && break
3115done
3116
2aeb72e9 3117 CC=$ac_ct_CC
1c710c3c
DJ
3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124See \`config.log' for more details." >&5
3125echo "$as_me: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3128
3129# Provide some information about the compiler.
2aeb72e9
DD
3130echo "$as_me:$LINENO:" \
3131 "checking for C compiler version" >&5
1c710c3c 3132ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3134 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
2aeb72e9
DD
3138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3139 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
2aeb72e9
DD
3143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3144 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148
3149cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
3165ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
2aeb72e9
DD
3169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3173 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
2aeb72e9
DD
3177 # Find the output, starting from the most likely. This scheme is
3178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3179# resort.
3180
3181# Be careful to initialize this variable, since it used to be cached.
3182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3183ac_cv_exeext=
3184# b.out is created by i960 compilers.
3185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3186do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
2aeb72e9
DD
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3190 ;;
3191 conftest.$ac_ext )
3192 # This is the source file.
1c710c3c
DJ
3193 ;;
3194 [ab].out )
3195 # We found the default executable, but exeext='' is most
3196 # certainly right.
3197 break;;
3198 *.* )
2aeb72e9
DD
3199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 # FIXME: I believe we export ac_cv_exeext for Libtool,
3201 # but it would be cool to find out if it's true. Does anybody
3202 # maintain Libtool? --akim.
3203 export ac_cv_exeext
1c710c3c
DJ
3204 break;;
3205 * )
3206 break;;
3207 esac
3208done
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3214See \`config.log' for more details." >&5
3215echo "$as_me: error: C compiler cannot create executables
3216See \`config.log' for more details." >&2;}
3217 { (exit 77); exit 77; }; }
3218fi
3219
3220ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3221echo "$as_me:$LINENO: result: $ac_file" >&5
3222echo "${ECHO_T}$ac_file" >&6
1c710c3c 3223
2aeb72e9 3224# Check the compiler produces executables we can run. If not, either
1c710c3c 3225# the compiler is broken, or we cross compile.
2aeb72e9
DD
3226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3229# If not cross compiling, check that we can run a simple program.
3230if test "$cross_compiling" != yes; then
3231 if { ac_try='./$ac_file'
2aeb72e9
DD
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
1c710c3c
DJ
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 cross_compiling=no
3238 else
3239 if test "$cross_compiling" = maybe; then
3240 cross_compiling=yes
3241 else
3242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3243If you meant to cross compile, use \`--host'.
3244See \`config.log' for more details." >&5
3245echo "$as_me: error: cannot run C compiled programs.
3246If you meant to cross compile, use \`--host'.
3247See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250 fi
3251fi
2aeb72e9
DD
3252echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3254
3255rm -f a.out a.exe conftest$ac_cv_exeext b.out
3256ac_clean_files=$ac_clean_files_save
2aeb72e9 3257# Check the compiler produces executables we can run. If not, either
1c710c3c 3258# the compiler is broken, or we cross compile.
2aeb72e9
DD
3259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3261echo "$as_me:$LINENO: result: $cross_compiling" >&5
3262echo "${ECHO_T}$cross_compiling" >&6
3263
3264echo "$as_me:$LINENO: checking for suffix of executables" >&5
3265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
1c710c3c
DJ
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
2aeb72e9 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3280 export ac_cv_exeext
1c710c3c
DJ
3281 break;;
3282 * ) break;;
3283 esac
3284done
af71363e 3285else
1c710c3c
DJ
3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3291fi
3292
3293rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3295echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3296
3297rm -f conftest.$ac_ext
3298EXEEXT=$ac_cv_exeext
3299ac_exeext=$EXEEXT
2aeb72e9
DD
3300echo "$as_me:$LINENO: checking for suffix of object files" >&5
3301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3302if test "${ac_cv_objext+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.o conftest.obj
2aeb72e9
DD
3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>&5
1c710c3c
DJ
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
2aeb72e9 3326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3327 case $ac_file in
2aeb72e9 3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332done
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338See \`config.log' for more details." >&5
3339echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
2aeb72e9
DD
3346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
2aeb72e9
DD
3350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3352if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
2aeb72e9
DD
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
1c710c3c
DJ
3395 ac_compiler_gnu=yes
3396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
2aeb72e9 3400ac_compiler_gnu=no
1c710c3c 3401fi
2aeb72e9 3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405fi
2aeb72e9
DD
3406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3408GCC=`test $ac_compiler_gnu = yes && echo yes`
3409ac_test_CFLAGS=${CFLAGS+set}
3410ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3411CFLAGS="-g"
3412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3414if test "${ac_cv_prog_cc_g+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
2aeb72e9 3417 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
2aeb72e9
DD
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
1c710c3c
DJ
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
1c710c3c
DJ
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3453 (exit $ac_status); }; }; then
55ffb5ed
NN
3454 ac_cv_prog_cc_g=yes
3455else
1c710c3c
DJ
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3458
2aeb72e9 3459ac_cv_prog_cc_g=no
0b0dc272 3460fi
2aeb72e9 3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3462fi
2aeb72e9
DD
3463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3465if test "$ac_test_CFLAGS" = set; then
1c710c3c 3466 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3467elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479fi
2aeb72e9
DD
3480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3482if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
2aeb72e9 3485 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3486ac_save_CC=$CC
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493#include <stdarg.h>
3494#include <stdio.h>
3495#include <sys/types.h>
3496#include <sys/stat.h>
3497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3498struct buf { int x; };
3499FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500static char *e (p, i)
3501 char **p;
3502 int i;
3503{
3504 return p[i];
3505}
3506static char *f (char * (*g) (char **, int), char **p, ...)
3507{
3508 char *s;
3509 va_list v;
3510 va_start (v,p);
3511 s = g (p, va_arg (v,int));
3512 va_end (v);
3513 return s;
3514}
3515
3516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3517 function prototypes and stuff, but not '\xHH' hex character constants.
3518 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3519 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3521 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3522 that's true only with -std1. */
1c710c3c
DJ
3523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525int test (int i, double x);
3526struct s1 {int (*f) (int a);};
3527struct s2 {int (*f) (double a);};
3528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529int argc;
3530char **argv;
3531int
3532main ()
3533{
3534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537}
3538_ACEOF
2aeb72e9
DD
3539# Don't try gcc -ansi; that turns off useful extensions and
3540# breaks some systems' header files.
3541# AIX -qlanglvl=ansi
3542# Ultrix and OSF/1 -std1
3543# HP-UX 10.20 and later -Ae
3544# HP-UX older versions -Aa -D_HPUX_SOURCE
3545# SVR4 -Xc -D__EXTENSIONS__
3546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3547do
3548 CC="$ac_save_CC $ac_arg"
3549 rm -f conftest.$ac_objext
2aeb72e9
DD
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_prog_cc_stdc=$ac_arg
3572break
1c710c3c
DJ
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577fi
2aeb72e9 3578rm -f conftest.err conftest.$ac_objext
1c710c3c 3579done
2aeb72e9 3580rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3581CC=$ac_save_CC
3582
3583fi
2aeb72e9
DD
3584
3585case "x$ac_cv_prog_cc_stdc" in
3586 x|xno)
3587 echo "$as_me:$LINENO: result: none needed" >&5
3588echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3589 *)
2aeb72e9
DD
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3592 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3593esac
3594
2aeb72e9
DD
3595# Some people use a C++ compiler to compile C. Since we use `exit',
3596# in C++ we need to declare it. In case someone uses the same compiler
3597# for both compiling C and C++ we need to have the C++ compiler decide
3598# the declaration of exit, since it's the most demanding environment.
3599cat >conftest.$ac_ext <<_ACEOF
3600#ifndef __cplusplus
3601 choke me
3602#endif
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 for ac_declaration in \
3627 '' \
3628 'extern "C" void std::exit (int) throw (); using std::exit;' \
3629 'extern "C" void std::exit (int); using std::exit;' \
3630 'extern "C" void exit (int) throw ();' \
3631 'extern "C" void exit (int);' \
3632 'void exit (int);'
3633do
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640$ac_declaration
3641#include <stdlib.h>
3642int
3643main ()
3644{
3645exit (42);
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 :
3673else
3674 echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677continue
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 cat >conftest.$ac_ext <<_ACEOF
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
3686$ac_declaration
3687int
3688main ()
3689{
3690exit (42);
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
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
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 break
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3724done
3725rm -f conftest*
3726if test -n "$ac_declaration"; then
3727 echo '#ifdef __cplusplus' >>confdefs.h
3728 echo $ac_declaration >>confdefs.h
3729 echo '#endif' >>confdefs.h
3730fi
3731
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736fi
3737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744ac_ext=cc
3745ac_cpp='$CXXCPP $CPPFLAGS'
3746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749if test -n "$ac_tool_prefix"; then
3750 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754echo "$as_me:$LINENO: checking for $ac_word" >&5
3755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756if test "${ac_cv_prog_CXX+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 if test -n "$CXX"; then
3760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774done
55ffb5ed 3775
c3a86da9
DJ
3776fi
3777fi
3778CXX=$ac_cv_prog_CXX
3779if test -n "$CXX"; then
2aeb72e9
DD
3780 echo "$as_me:$LINENO: result: $CXX" >&5
3781echo "${ECHO_T}$CXX" >&6
c3a86da9 3782else
2aeb72e9
DD
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
c3a86da9
DJ
3785fi
3786
3787 test -n "$CXX" && break
3788 done
3789fi
3790if test -z "$CXX"; then
3791 ac_ct_CXX=$CXX
2aeb72e9 3792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 if test -n "$ac_ct_CXX"; then
3802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3811 ac_cv_prog_ac_ct_CXX="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
3818fi
3819fi
3820ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3822 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3823echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3824else
2aeb72e9
DD
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
c3a86da9
DJ
3827fi
3828
3829 test -n "$ac_ct_CXX" && break
3830done
2aeb72e9 3831test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3832
2aeb72e9 3833 CXX=$ac_ct_CXX
c3a86da9
DJ
3834fi
3835
2aeb72e9 3836
c3a86da9 3837# Provide some information about the compiler.
2aeb72e9
DD
3838echo "$as_me:$LINENO:" \
3839 "checking for C++ compiler version" >&5
c3a86da9 3840ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3841{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3842 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
2aeb72e9
DD
3846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3847 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
2aeb72e9
DD
3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3852 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856
2aeb72e9
DD
3857echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3858echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3859if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868
3869int
3870main ()
3871{
3872#ifndef __GNUC__
3873 choke me
3874#endif
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext
2aeb72e9
DD
3881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_cxx_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
c3a86da9
DJ
3902 ac_compiler_gnu=yes
3903else
3904 echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
2aeb72e9 3907ac_compiler_gnu=no
c3a86da9 3908fi
2aeb72e9 3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3910ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3911
3912fi
2aeb72e9
DD
3913echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3914echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3915GXX=`test $ac_compiler_gnu = yes && echo yes`
3916ac_test_CXXFLAGS=${CXXFLAGS+set}
3917ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3918CXXFLAGS="-g"
3919echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3920echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3921if test "${ac_cv_prog_cxx_g+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
2aeb72e9 3924 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930
3931int
3932main ()
3933{
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext
2aeb72e9
DD
3940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_cxx_werror_flag"
3949 || test ! -s conftest.err'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
c3a86da9
DJ
3961 ac_cv_prog_cxx_g=yes
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
2aeb72e9
DD
3966ac_cv_prog_cxx_g=no
3967fi
3968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969fi
3970echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3971echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3972if test "$ac_test_CXXFLAGS" = set; then
3973 CXXFLAGS=$ac_save_CXXFLAGS
3974elif test $ac_cv_prog_cxx_g = yes; then
3975 if test "$GXX" = yes; then
3976 CXXFLAGS="-g -O2"
3977 else
3978 CXXFLAGS="-g"
3979 fi
3980else
3981 if test "$GXX" = yes; then
3982 CXXFLAGS="-O2"
3983 else
3984 CXXFLAGS=
3985 fi
3986fi
3987for ac_declaration in \
3988 '' \
3989 'extern "C" void std::exit (int) throw (); using std::exit;' \
3990 'extern "C" void std::exit (int); using std::exit;' \
3991 'extern "C" void exit (int) throw ();' \
3992 'extern "C" void exit (int);' \
3993 'void exit (int);'
3994do
3995 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
2aeb72e9
DD
4001$ac_declaration
4002#include <stdlib.h>
c3a86da9
DJ
4003int
4004main ()
4005{
2aeb72e9 4006exit (42);
c3a86da9
DJ
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
2aeb72e9
DD
4012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_cxx_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
c3a86da9
DJ
4033 :
4034else
4035 echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4037
2aeb72e9
DD
4038continue
4039fi
4040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
2aeb72e9 4047$ac_declaration
c3a86da9
DJ
4048int
4049main ()
4050{
2aeb72e9 4051exit (42);
c3a86da9
DJ
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext
2aeb72e9
DD
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_cxx_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 break
c3a86da9
DJ
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
11a67599 4083fi
2aeb72e9
DD
4084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085done
4086rm -f conftest*
4087if test -n "$ac_declaration"; then
4088 echo '#ifdef __cplusplus' >>confdefs.h
4089 echo $ac_declaration >>confdefs.h
4090 echo '#endif' >>confdefs.h
c3a86da9
DJ
4091fi
4092
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100# We must set the default linker to the linker used by gcc for the correct
4101# operation of libtool. If LD is not defined and we are using gcc, try to
4102# set the LD default to the ld used by gcc.
4103if test -z "$LD"; then
4104 if test "$GCC" = yes; then
4105 case $build in
4106 *-*-mingw*)
4107 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4108 *)
4109 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4110 esac
4111 case $gcc_prog_ld in
4112 # Accept absolute paths.
4113 [\\/]* | [A-Za-z]:[\\/]*)
4114 LD="$gcc_prog_ld" ;;
4115 esac
4116 fi
23f6b2f9
PB
4117fi
4118
23f6b2f9
PB
4119
4120
55ffb5ed 4121
1c710c3c
DJ
4122if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4124set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4125echo "$as_me:$LINENO: checking for $ac_word" >&5
4126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4127if test "${ac_cv_prog_GNATBIND+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4129else
4130 if test -n "$GNATBIND"; then
4131 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4132else
1c710c3c
DJ
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4140 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145done
4146
55ffb5ed
NN
4147fi
4148fi
1c710c3c 4149GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4150if test -n "$GNATBIND"; then
2aeb72e9
DD
4151 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4152echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4153else
2aeb72e9
DD
4154 echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
55ffb5ed
NN
4156fi
4157
1c710c3c 4158fi
55ffb5ed 4159if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4160 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4161 # Extract the first word of "gnatbind", so it can be a program name with args.
4162set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4165if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4167else
1c710c3c
DJ
4168 if test -n "$ac_ct_GNATBIND"; then
4169 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4170else
1c710c3c
DJ
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4178 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183done
4184
2aeb72e9 4185 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4186fi
4187fi
1c710c3c
DJ
4188ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4189if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4190 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4191echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4192else
2aeb72e9
DD
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
55ffb5ed
NN
4195fi
4196
2aeb72e9 4197 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4198else
1c710c3c 4199 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4200fi
4201
1c710c3c
DJ
4202if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4204set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4207if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4209else
4210 if test -n "$GNATMAKE"; then
4211 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4212else
1c710c3c
DJ
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4220 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225done
4226
5305be7e
RG
4227fi
4228fi
1c710c3c 4229GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4230if test -n "$GNATMAKE"; then
2aeb72e9
DD
4231 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4232echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4233else
2aeb72e9
DD
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
5305be7e
RG
4236fi
4237
1c710c3c 4238fi
5305be7e 4239if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4240 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4241 # Extract the first word of "gnatmake", so it can be a program name with args.
4242set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4243echo "$as_me:$LINENO: checking for $ac_word" >&5
4244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4245if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4247else
1c710c3c
DJ
4248 if test -n "$ac_ct_GNATMAKE"; then
4249 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4250else
1c710c3c
DJ
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4258 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262done
4263done
4264
2aeb72e9 4265 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4266fi
4267fi
1c710c3c
DJ
4268ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4269if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4270 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4271echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4272else
2aeb72e9
DD
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
5305be7e
RG
4275fi
4276
2aeb72e9 4277 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4278else
1c710c3c 4279 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4280fi
4281
2aeb72e9
DD
4282echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4283echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4284if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4286else
4287 cat >conftest.adb <<EOF
4288procedure conftest is begin null; end conftest;
4289EOF
4290acx_cv_cc_gcc_supports_ada=no
4291# There is a bug in old released versions of GCC which causes the
4292# driver to exit successfully when the appropriate language module
4293# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4294# Therefore we must check for the error message as well as an
4295# unsuccessful exit.
1db673ca
RO
4296# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4297# given a .adb file, but produce no object file. So we must check
4298# if an object file was really produced to guard against this.
55ffb5ed 4299errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4300if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4301 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4302fi
4303rm -f conftest.*
4304fi
2aeb72e9
DD
4305echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4306echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4307
5305be7e 4308if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4309 have_gnat=yes
4310else
4311 have_gnat=no
4312fi
4313
2aeb72e9
DD
4314echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4315echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4316if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4318else
4319 echo abfoo >t1
4320 echo cdfoo >t2
4321 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4322 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4323 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4324 :
4325 else
4326 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4327 fi
4328 fi
a76494aa
PB
4329 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4330 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4331 :
a76494aa
PB
4332 else
4333 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4334 fi
4335 fi
4336 rm t1 t2
4337
4338fi
2aeb72e9
DD
4339echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4340echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4341do_compare="$gcc_cv_prog_cmp_skip"
4342
4343
55ffb5ed 4344
bebf829d 4345# Check for GMP and MPFR
e69bf64b 4346gmplibs="-lmpfr -lgmp"
6de9cd9a 4347gmpinc=
e69bf64b
PB
4348have_gmp=no
4349
bebf829d
PB
4350# Specify a location for mpfr
4351# check for this first so it ends up on the link line before gmp.
1c710c3c 4352
2aeb72e9 4353# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4354if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4355 withval="$with_mpfr_dir"
4356 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4357Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4358echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4359Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4360 { (exit 1); exit 1; }; }
2aeb72e9 4361fi;
bebf829d
PB
4362
4363
2aeb72e9 4364# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4365if test "${with_mpfr+set}" = set; then
2aeb72e9 4366 withval="$with_mpfr"
1c710c3c 4367
2aeb72e9 4368fi;
bebf829d 4369
2aeb72e9 4370# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4371if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4372 withval="$with_mpfr_include"
1c710c3c 4373
2aeb72e9 4374fi;
8a877c9c 4375
2aeb72e9 4376# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4377if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4378 withval="$with_mpfr_lib"
8a877c9c 4379
2aeb72e9 4380fi;
bebf829d
PB
4381
4382if test "x$with_mpfr" != x; then
4383 gmplibs="-L$with_mpfr/lib $gmplibs"
4384 gmpinc="-I$with_mpfr/include"
4385fi
8a877c9c
KG
4386if test "x$with_mpfr_include" != x; then
4387 gmpinc="-I$with_mpfr_include"
4388fi
4389if test "x$with_mpfr_lib" != x; then
4390 gmplibs="-L$with_mpfr_lib $gmplibs"
4391fi
e69bf64b
PB
4392if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4393 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4394 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4395 # Do not test the mpfr version. Assume that it is sufficient, since
4396 # it is in the source tree, and the library has not been built yet
4397 # but it would be included on the link line in the version check below
4398 # hence making the test fail.
4399 have_gmp=yes
4400fi
bebf829d 4401
6de9cd9a 4402# Specify a location for gmp
1c710c3c 4403
2aeb72e9 4404# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4405if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4406 withval="$with_gmp_dir"
4407 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4408Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4409echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4410Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4411 { (exit 1); exit 1; }; }
2aeb72e9 4412fi;
6de9cd9a 4413
6de9cd9a 4414
2aeb72e9 4415# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4416if test "${with_gmp+set}" = set; then
2aeb72e9 4417 withval="$with_gmp"
1c710c3c 4418
2aeb72e9 4419fi;
6de9cd9a 4420
2aeb72e9 4421# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4422if test "${with_gmp_include+set}" = set; then
2aeb72e9 4423 withval="$with_gmp_include"
1c710c3c 4424
2aeb72e9 4425fi;
8a877c9c 4426
2aeb72e9 4427# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4428if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4429 withval="$with_gmp_lib"
8a877c9c 4430
2aeb72e9 4431fi;
8a877c9c 4432
6de9cd9a 4433
bebf829d
PB
4434if test "x$with_gmp" != x; then
4435 gmplibs="-L$with_gmp/lib $gmplibs"
4436 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4437fi
8a877c9c
KG
4438if test "x$with_gmp_include" != x; then
4439 gmpinc="-I$with_gmp_include $gmpinc"
4440fi
4441if test "x$with_gmp_lib" != x; then
4442 gmplibs="-L$with_gmp_lib $gmplibs"
4443fi
e69bf64b
PB
4444if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4445 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4446 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4447 # Do not test the gmp version. Assume that it is sufficient, since
4448 # it is in the source tree, and the library has not been built yet
4449 # but it would be included on the link line in the version check below
4450 # hence making the test fail.
4451 have_gmp=yes
4452fi
6de9cd9a 4453
d943d7c4 4454if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4455 have_gmp=yes
4456 saved_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS $gmpinc"
4458 # Check GMP actually works
2aeb72e9
DD
4459 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4460echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4461
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
6de9cd9a 4468#include "gmp.h"
1c710c3c
DJ
4469int
4470main ()
4471{
6de9cd9a 4472
e69bf64b
PB
4473 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4474 choke me
4475 #endif
1c710c3c
DJ
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
2aeb72e9
DD
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4505else
4506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
2aeb72e9
DD
4509echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4511fi
2aeb72e9 4512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4513
e69bf64b
PB
4514 if test x"$have_gmp" = xyes; then
4515 saved_LIBS="$LIBS"
4516 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4517 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4518echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
70ec446f 4525#include <gmp.h>
e69bf64b 4526 #include <mpfr.h>
1c710c3c
DJ
4527int
4528main ()
4529{
e48d66a9 4530
e69bf64b
PB
4531 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4532 choke me
4533 #endif
54e433bc
MK
4534 mpfr_t n;
4535 mpfr_t x;
e69bf64b 4536 int t;
54e433bc
MK
4537 mpfr_init (n);
4538 mpfr_init (x);
e69bf64b
PB
4539 mpfr_atan2 (n, n, x, GMP_RNDN);
4540 mpfr_erfc (n, x, GMP_RNDN);
4541 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
1c710c3c
DJ
4569 cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
a3993f33 4575#include <gmp.h>
e69bf64b 4576 #include <mpfr.h>
1c710c3c
DJ
4577int
4578main ()
4579{
a3993f33 4580
e69bf64b
PB
4581 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4582 choke me
4583 #endif
4584 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
2aeb72e9
DD
4618echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4619echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4620fi
2aeb72e9 4621rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4622 conftest$ac_exeext conftest.$ac_ext
4623else
4624 echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
2aeb72e9
DD
4627echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4629fi
2aeb72e9 4630rm -f conftest.err conftest.$ac_objext \
1c710c3c 4631 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4632 LIBS="$saved_LIBS"
4633 fi
4634 CFLAGS="$saved_CFLAGS"
6de9cd9a 4635
e69bf64b 4636 if test x$have_gmp != xyes; then
1c710c3c
DJ
4637 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4638Try the --with-gmp and/or --with-mpfr options to specify their locations.
4639Copies of these libraries' source code can be found at their respective
4640hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4641See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4642If you obtained GMP and/or MPFR from a vendor distribution package, make
4643sure that you have installed both the libraries and the header files.
4644They may be located in separate packages." >&5
4645echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4646Try the --with-gmp and/or --with-mpfr options to specify their locations.
4647Copies of these libraries' source code can be found at their respective
4648hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4649See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4650If you obtained GMP and/or MPFR from a vendor distribution package, make
4651sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4652They may be located in separate packages." >&2;}
4653 { (exit 1); exit 1; }; }
e69bf64b 4654 fi
70ec446f
KG
4655fi
4656
bebf829d 4657# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4658
4659
4660
1e0f07d3 4661# By default, C is the only stage 1 language.
e1888513 4662stage1_languages=,c,
2805b53a 4663
55ffb5ed
NN
4664# Figure out what language subdirectories are present.
4665# Look if the user specified --enable-languages="..."; if not, use
4666# the environment variable $LANGUAGES if defined. $LANGUAGES might
4667# go away some day.
4668# NB: embedded tabs in this IF block -- do not untabify
4669if test -d ${srcdir}/gcc; then
4670 if test x"${enable_languages+set}" != xset; then
4671 if test x"${LANGUAGES+set}" = xset; then
4672 enable_languages="${LANGUAGES}"
4673 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4674 else
4675 enable_languages=all
4676 fi
4677 else
4678 if test x"${enable_languages}" = x ||
4679 test x"${enable_languages}" = xyes;
4680 then
4681 echo configure.in: --enable-languages needs at least one language argument 1>&2
4682 exit 1
4683 fi
4684 fi
4685 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4686
7f26dfa3
FXC
4687 # 'f95' is the old name for the 'fortran' language. We issue a warning
4688 # and make the substitution.
4689 case ,${enable_languages}, in
4690 *,f95,*)
4691 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4692 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4693 ;;
4694 esac
4695
55ffb5ed
NN
4696 # First scan to see if an enabled language requires some other language.
4697 # We assume that a given config-lang.in will list all the language
4698 # front ends it requires, even if some are required indirectly.
4699 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4700 case ${lang_frag} in
4701 ..) ;;
4702 # The odd quoting in the next line works around
4703 # an apparent bug in bash 1.12 on linux.
4704 ${srcdir}/gcc/[*]/config-lang.in) ;;
4705 *)
4706 # From the config-lang.in, get $language, $lang_requires
4707 language=
4708 lang_requires=
4709 . ${lang_frag}
4710 for other in ${lang_requires} ; do
4711 case ,${enable_languages}, in
4712 *,$other,*) ;;
4713 *,all,*) ;;
4714 *,$language,*)
4715 echo " \`$other' language required by \`$language'; enabling" 1>&2
4716 enable_languages="${enable_languages},${other}"
4717 ;;
4718 esac
4719 done
4720 ;;
4721 esac
4722 done
4723
e1888513 4724 new_enable_languages=,c,
55ffb5ed 4725 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4726 potential_languages=,c,
55ffb5ed
NN
4727
4728 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4729 case ${lang_frag} in
4730 ..) ;;
4731 # The odd quoting in the next line works around
4732 # an apparent bug in bash 1.12 on linux.
4733 ${srcdir}/gcc/[*]/config-lang.in) ;;
4734 *)
1c710c3c 4735 # From the config-lang.in, get $language, $target_libs,
2805b53a 4736 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4737 language=
4738 target_libs=
4739 lang_dirs=
1546bb64 4740 subdir_requires=
e1888513
PB
4741 boot_language=no
4742 build_by_default=yes
55ffb5ed 4743 . ${lang_frag}
e1888513
PB
4744 if test x${language} = x; then
4745 echo "${lang_frag} doesn't set \$language." 1>&2
4746 exit 1
4747 fi
4748
4749 case ,${enable_languages}, in
4750 *,${language},*)
55ffb5ed
NN
4751 # Language was explicitly selected; include it.
4752 add_this_lang=yes
4753 ;;
e1888513
PB
4754 *,all,*)
4755 # 'all' was selected, select it if it is a default language
4756 add_this_lang=${build_by_default}
55ffb5ed
NN
4757 ;;
4758 *)
4759 add_this_lang=no
4760 ;;
4761 esac
6de9cd9a 4762
1546bb64 4763 # Disable languages that need other directories if these aren't available.
95695ad3 4764 for i in $subdir_requires; do
b6348cb3 4765 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4766 case ,${enable_languages}, in
4767 *,${language},*)
4768 # Specifically requested language; tell them.
1c710c3c
DJ
4769 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4770echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4771 { (exit 1); exit 1; }; }
1546bb64
PB
4772 ;;
4773 *)
4774 # Silently disable.
e1888513 4775 add_this_lang=unsupported
1546bb64
PB
4776 ;;
4777 esac
4778 done
4779
e1888513
PB
4780 # Disable Ada if no preexisting GNAT is available.
4781 case ,${enable_languages},:${language}:${have_gnat} in
4782 *,${language},*:ada:no)
4783 # Specifically requested language; tell them.
1c710c3c
DJ
4784 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4785echo "$as_me: error: GNAT is required to build $language" >&2;}
4786 { (exit 1); exit 1; }; }
e1888513
PB
4787 ;;
4788 *:ada:no)
4789 # Silently disable.
4790 add_this_lang=unsupported
4791 ;;
4792 esac
4793
4fab7234
HPN
4794 # Disable a language that is unsupported by the target.
4795 case " $unsupported_languages " in
4796 *" $language "*)
e1888513 4797 add_this_lang=unsupported
4fab7234
HPN
4798 ;;
4799 esac
4800
6de9cd9a 4801 case $add_this_lang in
e1888513 4802 unsupported)
55ffb5ed 4803 # Remove language-dependent dirs.
2805b53a
NN
4804 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4805 ;;
e1888513
PB
4806 no)
4807 # Remove language-dependent dirs; still show language as supported.
4808 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4809 potential_languages="${potential_languages}${language},"
4810 ;;
4811 yes)
4812 new_enable_languages="${new_enable_languages}${language},"
4813 potential_languages="${potential_languages}${language},"
2805b53a
NN
4814 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4815 case ${boot_language} in
4816 yes)
340de83f 4817 # Add to (comma-separated) list of stage 1 languages.
e1888513 4818 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4819 ;;
4820 esac
4821 ;;
55ffb5ed
NN
4822 esac
4823 ;;
4824 esac
4825 done
4826
2aeb72e9 4827 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4828if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4829 enableval="$enable_stage1_languages"
4830 case ,${enable_stage1_languages}, in
e1888513
PB
4831 ,no,|,,)
4832 # Set it to something that will have no effect in the loop below
4833 enable_stage1_languages=c ;;
4834 ,yes,)
4835 enable_stage1_languages=`echo $new_enable_languages | \
4836 sed -e "s/^,//" -e "s/,$//" ` ;;
4837 *,all,*)
4838 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4839 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4840 esac
4841
4842 # Add "good" languages from enable_stage1_languages to stage1_languages,
4843 # while "bad" languages go in missing_languages. Leave no duplicates.
4844 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4845 case $potential_languages in
4846 *,$i,*)
4847 case $stage1_languages in
4848 *,$i,*) ;;
4849 *) stage1_languages="$stage1_languages$i," ;;
4850 esac ;;
4851 *)
4852 case $missing_languages in
4853 *,$i,*) ;;
4854 *) missing_languages="$missing_languages$i," ;;
4855 esac ;;
4856 esac
4857 done
2aeb72e9 4858fi;
e1888513
PB
4859
4860 # Remove leading/trailing commas that were added for simplicity
4861 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4862 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4863 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4864 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4865
55ffb5ed 4866 if test "x$missing_languages" != x; then
1c710c3c 4867 { { echo "$as_me:$LINENO: error:
0cf085e4 4868The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4869Supported languages are: ${potential_languages}" >&5
4870echo "$as_me: error:
4871The following requested languages could not be built: ${missing_languages}
4872Supported languages are: ${potential_languages}" >&2;}
4873 { (exit 1); exit 1; }; }
55ffb5ed 4874 fi
55ffb5ed
NN
4875 if test "x$new_enable_languages" != "x$enable_languages"; then
4876 echo The following languages will be built: ${new_enable_languages}
e1888513 4877 enable_languages="$new_enable_languages"
55ffb5ed 4878 fi
e1888513 4879
1c710c3c 4880
b2eaac4a 4881 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4882fi
4883
27079765
AH
4884# Handle --disable-<component> generically.
4885for dir in $configdirs $build_configdirs $target_configdirs ; do
4886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4887 if eval test x\${enable_${dirname}} "=" xno ; then
4888 noconfigdirs="$noconfigdirs $dir"
4889 fi
4890done
4891
7cd0cf9c 4892# Check for Boehm's garbage collector
2aeb72e9 4893# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4894if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4895 enableval="$enable_objc_gc"
4896 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4897 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4898 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4899echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4900 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4901 ;;
4902esac
2aeb72e9 4903fi;
7cd0cf9c
DA
4904
4905# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4906case ,${enable_languages},:${enable_objc_gc} in
4907 *,objc,*:yes)
7cd0cf9c
DA
4908 # Keep target-boehm-gc if requested for Objective-C.
4909 ;;
7cd0cf9c 4910 *)
2a79fd67
DA
4911 # Otherwise remove target-boehm-gc depending on target-libjava.
4912 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4913 noconfigdirs="$noconfigdirs target-boehm-gc"
4914 fi
7cd0cf9c
DA
4915 ;;
4916esac
4917
ee6a22df
L
4918# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4919# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4920# If we have the source for $noconfigdirs entries, add them to $notsupp.
4921
4922notsupp=""
4923for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4924 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4925 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4926 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4927 if test -r $srcdir/$dirname/configure ; then
4928 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4929 true
4930 else
4931 notsupp="$notsupp $dir"
4932 fi
4933 fi
4934 fi
ee6a22df
L
4935 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4936 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4937 if test -r $srcdir/$dirname/configure ; then
4938 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4939 true
4940 else
4941 notsupp="$notsupp $dir"
4942 fi
4943 fi
4944 fi
55ffb5ed
NN
4945 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4946 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4947 if test -r $srcdir/$dirname/configure ; then
4948 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4949 true
4950 else
4951 notsupp="$notsupp $dir"
4952 fi
4953 fi
4954 fi
4955done
4956
4957# Sometimes the tools are distributed with libiberty but with no other
4958# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4959# Don't let libgcc imply libiberty either.
55ffb5ed 4960if test -n "${target_configdirs}" ; then
54fdc474 4961 libgcc=
55ffb5ed
NN
4962 others=
4963 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4964 if test "$i" = "libgcc"; then
4965 libgcc=target-libgcc
4966 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4967 if test -r $srcdir/$i/configure ; then
4968 others=yes;
4969 break;
4970 fi
4971 fi
4972 done
4973 if test -z "${others}" ; then
54fdc474 4974 target_configdirs=$libgcc
55ffb5ed
NN
4975 fi
4976fi
4977
4978# Quietly strip out all directories which aren't configurable in this tree.
4979# This relies on all configurable subdirectories being autoconfiscated, which
4980# is now the case.
23f6b2f9
PB
4981build_configdirs_all="$build_configdirs"
4982build_configdirs=
4983for i in ${build_configdirs_all} ; do
1c710c3c 4984 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4985 if test -f ${srcdir}/$j/configure ; then
4986 build_configdirs="${build_configdirs} $i"
4987 fi
4988done
4989
55ffb5ed
NN
4990configdirs_all="$configdirs"
4991configdirs=
4992for i in ${configdirs_all} ; do
4993 if test -f ${srcdir}/$i/configure ; then
4994 configdirs="${configdirs} $i"
4995 fi
4996done
23f6b2f9 4997
55ffb5ed
NN
4998target_configdirs_all="$target_configdirs"
4999target_configdirs=
5000for i in ${target_configdirs_all} ; do
1c710c3c 5001 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5002 if test -f ${srcdir}/$j/configure ; then
5003 target_configdirs="${target_configdirs} $i"
5004 fi
5005done
5006
5007# Produce a warning message for the subdirs we can't configure.
5008# This isn't especially interesting in the Cygnus tree, but in the individual
5009# FSF releases, it's important to let people know when their machine isn't
5010# supported by the one or two programs in a package.
5011
5012if test -n "${notsupp}" && test -z "${norecursion}" ; then
5013 # If $appdirs is non-empty, at least one of those directories must still
5014 # be configured, or we error out. (E.g., if the gas release supports a
5015 # specified target in some subdirs but not the gas subdir, we shouldn't
5016 # pretend that all is well.)
5017 if test -n "$appdirs" ; then
5018 for dir in $appdirs ; do
5019 if test -r $dir/Makefile.in ; then
5020 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5021 appdirs=""
5022 break
5023 fi
23f6b2f9 5024 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5025 appdirs=""
5026 break
5027 fi
5028 fi
5029 done
5030 if test -n "$appdirs" ; then
5031 echo "*** This configuration is not supported by this package." 1>&2
5032 exit 1
5033 fi
5034 fi
5035 # Okay, some application will build, or we don't care to check. Still
5036 # notify of subdirs not getting built.
5037 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5038 echo " ${notsupp}" 1>&2
5039 echo " (Any other directories should still work fine.)" 1>&2
5040fi
5041
5042case "$host" in
5043 *msdosdjgpp*)
5044 enable_gdbtk=no ;;
5045esac
5046
c3a86da9
DJ
5047# To find our prefix, in gcc_cv_tool_prefix.
5048
5049# The user is always right.
5050if test "${PATH_SEPARATOR+set}" != set; then
5051 echo "#! /bin/sh" >conf$$.sh
5052 echo "exit 0" >>conf$$.sh
5053 chmod +x conf$$.sh
5054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055 PATH_SEPARATOR=';'
5056 else
5057 PATH_SEPARATOR=:
5058 fi
5059 rm -f conf$$.sh
5060fi
5061
5062
5063
5064if test "x$exec_prefix" = xNONE; then
5065 if test "x$prefix" = xNONE; then
5066 gcc_cv_tool_prefix=$ac_default_prefix
5067 else
5068 gcc_cv_tool_prefix=$prefix
5069 fi
5070else
5071 gcc_cv_tool_prefix=$exec_prefix
5072fi
5073
5074# If there is no compiler in the tree, use the PATH only. In any
5075# case, if there is no compiler in the tree nobody should use
5076# AS_FOR_TARGET and LD_FOR_TARGET.
5077if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5078 gcc_version=`cat $srcdir/gcc/BASE-VER`
5079 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5085else
5086 gcc_cv_tool_dirs=
5087fi
5088
5089if test x$build = x$target && test -n "$md_exec_prefix"; then
5090 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5091fi
5092
5093
5094
55ffb5ed
NN
5095copy_dirs=
5096
1c710c3c 5097
2aeb72e9 5098# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5099if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5100 withval="$with_build_sysroot"
5101 if test x"$withval" != x ; then
526635cb
MM
5102 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5103 fi
5104else
5105 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5106fi;
526635cb
MM
5107
5108
c8aea42c
PB
5109
5110# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5111if test "${with_debug_prefix_map+set}" = set; then
5112 withval="$with_debug_prefix_map"
5113 if test x"$withval" != x; then
5114 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5115 for debug_map in $withval; do
5116 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5117 done
5118 fi
5119else
5120 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5121fi;
5122
5123
55ffb5ed
NN
5124# Handle --with-headers=XXX. If the value is not "yes", the contents of
5125# the named directory are copied to $(tooldir)/sys-include.
5126if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5127 if test x${is_cross_compiler} = xno ; then
5128 echo 1>&2 '***' --with-headers is only supported when cross compiling
5129 exit 1
5130 fi
5131 if test x"${with_headers}" != xyes ; then
c3a86da9 5132 x=${gcc_cv_tool_prefix}
1c710c3c 5133 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5134 fi
5135fi
5136
5137# Handle --with-libs=XXX. If the value is not "yes", the contents of
5138# the name directories are copied to $(tooldir)/lib. Multiple directories
5139# are permitted.
5140if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5141 if test x${is_cross_compiler} = xno ; then
5142 echo 1>&2 '***' --with-libs is only supported when cross compiling
5143 exit 1
5144 fi
5145 if test x"${with_libs}" != xyes ; then
5146 # Copy the libraries in reverse order, so that files in the first named
5147 # library override files in subsequent libraries.
c3a86da9 5148 x=${gcc_cv_tool_prefix}
55ffb5ed 5149 for l in ${with_libs}; do
1c710c3c 5150 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5151 done
5152 fi
5153fi
5154
e8b05380
PB
5155# Set with_gnu_as and with_gnu_ld as appropriate.
5156#
5157# This is done by determining whether or not the appropriate directory
5158# is available, and by checking whether or not specific configurations
5159# have requested that this magic not happen.
1c710c3c
DJ
5160#
5161# The command line options always override the explicit settings in
e8b05380
PB
5162# configure.in, and the settings in configure.in override this magic.
5163#
1c710c3c 5164# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5165# want to do that, then you should use the --without-gnu-as and
5166# --without-gnu-ld options for the configure script.
5167
5168if test x${use_gnu_as} = x &&
5169 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5170 with_gnu_as=yes
5171 extra_host_args="$extra_host_args --with-gnu-as"
5172fi
5173
5174if test x${use_gnu_ld} = x &&
5175 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5176 with_gnu_ld=yes
5177 extra_host_args="$extra_host_args --with-gnu-ld"
5178fi
5179
5180# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5181# can detect this case.
5182
5183if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5184 with_newlib=yes
5185 extra_host_args="$extra_host_args --with-newlib"
5186fi
5187
55ffb5ed
NN
5188# Handle ${copy_dirs}
5189set fnord ${copy_dirs}
5190shift
5191while test $# != 0 ; do
5192 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5193 :
5194 else
5195 echo Copying $1 to $2
5196
5197 # Use the install script to create the directory and all required
5198 # parent directories.
5199 if test -d $2 ; then
5200 :
5201 else
5202 echo >config.temp
5203 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5204 fi
5205
5206 # Copy the directory, assuming we have tar.
5207 # FIXME: Should we use B in the second tar? Not all systems support it.
5208 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5209
5210 # It is the responsibility of the user to correctly adjust all
5211 # symlinks. If somebody can figure out how to handle them correctly
5212 # here, feel free to add the code.
5213
5214 echo $1 > $2/COPIED
5215 fi
5216 shift; shift
5217done
5218
e8b05380
PB
5219# Determine a target-dependent exec_prefix that the installed
5220# gcc will search in. Keep this list sorted by triplet, with
5221# the *-*-osname triplets last.
5222md_exec_prefix=
5223case "${target}" in
5224 alpha*-*-*vms*)
5225 md_exec_prefix=/gnu/lib/gcc-lib
5226 ;;
30b74385 5227 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5228 md_exec_prefix=/dev/env/DJDIR/bin
5229 ;;
30b74385 5230 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5231 if test $with_gnu_as = yes; then
5232 md_exec_prefix=/usr/gnu/bin
5233 else
5234 md_exec_prefix=/usr/ccs/bin/elf
5235 fi
5236 ;;
5237
5238 mn10300-*-* | \
5239 powerpc-*-chorusos* | \
5240 powerpc*-*-eabi* | \
5241 powerpc*-*-sysv* | \
5242 powerpc*-*-kaos* | \
5243 s390x-ibm-tpf*)
5244 md_exec_prefix=/usr/ccs/bin
5245 ;;
5246 sparc64-*-elf*)
5247 ;;
5248 v850*-*-*)
5249 md_exec_prefix=/usr/ccs/bin
5250 ;;
5251 xtensa-*-elf*)
5252 ;;
5253
5254 *-*-beos* | \
5255 *-*-elf* | \
5256 *-*-hpux* | \
5257 *-*-netware* | \
5258 *-*-nto-qnx* | \
5259 *-*-rtems* | \
5260 *-*-solaris2* | \
30b74385 5261 *-*-sysv[45]* | \
e8b05380
PB
5262 *-*-vxworks* | \
5263 *-wrs-windiss)
5264 md_exec_prefix=/usr/ccs/bin
5265 ;;
5266esac
5267
671aa708
NN
5268extra_arflags_for_target=
5269extra_nmflags_for_target=
5270extra_ranlibflags_for_target=
5271target_makefile_frag=/dev/null
5272case "${target}" in
3e19841a
PB
5273 mep*-*-*)
5274 target_makefile_frag="config/mt-mep"
5275 ;;
58e24147
AM
5276 spu-*-*)
5277 target_makefile_frag="config/mt-spu"
5278 ;;
4bf6c438
RS
5279 mips*-sde-elf*)
5280 target_makefile_frag="config/mt-sde"
5281 ;;
1ec3b87b
RS
5282 mipsisa*-*-elfoabi*)
5283 target_makefile_frag="config/mt-mips-elfoabi"
5284 ;;
61fec9ff 5285 *-*-netware*)
671aa708
NN
5286 target_makefile_frag="config/mt-netware"
5287 ;;
98a5bb3b
RM
5288 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5289 target_makefile_frag="config/mt-gnu"
671aa708
NN
5290 ;;
5291 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5292 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5293 # commands to handle both 32-bit and 64-bit objects. These flags are
5294 # harmless if we're using GNU nm or ar.
5295 extra_arflags_for_target=" -X32_64"
5296 extra_nmflags_for_target=" -B -X32_64"
5297 ;;
5298 *-*-darwin*)
5299 # ranlib from Darwin requires the -c flag to look at common symbols.
5300 extra_ranlibflags_for_target=" -c"
5301 ;;
5302 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5303 target_makefile_frag="config/mt-wince"
5304 ;;
5305esac
5306
5307alphaieee_frag=/dev/null
5308case $target in
5309 alpha*-*-*)
5310 # This just makes sure to use the -mieee option to build target libs.
5311 # This should probably be set individually by each library.
5312 alphaieee_frag="config/mt-alphaieee"
5313 ;;
5314esac
5315
5316# If --enable-target-optspace always use -Os instead of -O2 to build
5317# the target libraries, similarly if it is not specified, use -Os
5318# on selected platforms.
5319ospace_frag=/dev/null
5320case "${enable_target_optspace}:${target}" in
5321 yes:*)
5322 ospace_frag="config/mt-ospace"
5323 ;;
5324 :d30v-*)
5325 ospace_frag="config/mt-d30v"
5326 ;;
5327 :m32r-* | :d10v-* | :fr30-*)
5328 ospace_frag="config/mt-ospace"
5329 ;;
5330 no:* | :*)
5331 ;;
5332 *)
5333 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5334 ;;
5335esac
5336
671aa708
NN
5337# Default to using --with-stabs for certain targets.
5338if test x${with_stabs} = x ; then
5339 case "${target}" in
89a95129 5340 mips*-*-irix[56]*)
671aa708
NN
5341 ;;
5342 mips*-*-* | alpha*-*-osf*)
5343 with_stabs=yes;
5344 extra_host_args="${extra_host_args} --with-stabs"
5345 ;;
5346 esac
5347fi
5348
5349# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5350# them automatically.
5351case "${host}" in
1c710c3c 5352 hppa*64*-*-hpux11*)
671aa708
NN
5353 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5354 ;;
5355esac
5356
671aa708
NN
5357# Some systems (e.g., one of the i386-aix systems the gas testers are
5358# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5359tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5360build_tooldir=${tooldir}
5361
671aa708
NN
5362# Create a .gdbinit file which runs the one in srcdir
5363# and tells GDB to look there for source files.
5364
5365if test -r ${srcdir}/.gdbinit ; then
5366 case ${srcdir} in
5367 .) ;;
5368 *) cat > ./.gdbinit <<EOF
5369# ${NO_EDIT}
5370dir ${srcdir}
5371dir .
5372source ${srcdir}/.gdbinit
5373EOF
5374 ;;
5375 esac
5376fi
5377
671aa708
NN
5378# Make sure that the compiler is able to generate an executable. If it
5379# can't, we are probably in trouble. We don't care whether we can run the
5380# executable--we might be using a cross compiler--we only care whether it
5381# can be created. At this point the main configure script has set CC.
5382we_are_ok=no
5383echo "int main () { return 0; }" > conftest.c
5384${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5385if test $? = 0 ; then
5386 if test -s conftest || test -s conftest.exe ; then
5387 we_are_ok=yes
5388 fi
1c710c3c 5389fi
671aa708
NN
5390case $we_are_ok in
5391 no)
5392 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5393 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5394 rm -f conftest*
5395 exit 1
5396 ;;
5397esac
5398rm -f conftest*
5399
5400# The Solaris /usr/ucb/cc compiler does not appear to work.
5401case "${host}" in
5402 sparc-sun-solaris2*)
5403 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5404 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5405 could_use=
5406 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5407 if test -d /opt/cygnus/bin ; then
5408 if test "$could_use" = "" ; then
5409 could_use="/opt/cygnus/bin"
5410 else
5411 could_use="$could_use or /opt/cygnus/bin"
5412 fi
5413 fi
5414 if test "$could_use" = "" ; then
5415 echo "Warning: compilation may fail because you're using"
5416 echo "/usr/ucb/cc. You should change your PATH or CC "
5417 echo "variable and rerun configure."
5418 else
5419 echo "Warning: compilation may fail because you're using"
5420 echo "/usr/ucb/cc, when you should use the C compiler from"
5421 echo "$could_use. You should change your"
5422 echo "PATH or CC variable and rerun configure."
5423 fi
5424 fi
5425 ;;
5426esac
5427
671aa708
NN
5428case "${host}" in
5429 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5430 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5431 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5432esac
5433
5434# Record target_configdirs and the configure arguments for target and
5435# build configuration in Makefile.
5436target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5437build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5438
671aa708
NN
5439# Determine whether gdb needs tk/tcl or not.
5440# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5441# and in that case we want gdb to be built without tk. Ugh!
5442# In fact I believe gdb is the *only* package directly dependent on tk,
5443# so we should be able to put the 'maybe's in unconditionally and
5444# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5445# 100% sure that that's safe though.
e914a571 5446
b4f96efe 5447gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5448case "$enable_gdbtk" in
5449 no)
5450 GDB_TK="" ;;
e914a571
AC
5451 yes)
5452 GDB_TK="${gdb_tk}" ;;
671aa708 5453 *)
e914a571
AC
5454 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5455 # distro. Eventually someone will fix this and move Insight, nee
5456 # gdbtk to a separate directory.
5457 if test -d ${srcdir}/gdb/gdbtk ; then
5458 GDB_TK="${gdb_tk}"
5459 else
5460 GDB_TK=""
5461 fi
5462 ;;
671aa708 5463esac
ef9db8d5
DJ
5464CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5465INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5466
60975492 5467# Strip out unwanted targets.
8b87bb96
NN
5468
5469# While at that, we remove Makefiles if we were started for recursive
5470# configuration, so that the top-level Makefile reconfigures them,
5471# like we used to do when configure itself was recursive.
8b87bb96 5472
60975492
PB
5473# Loop over modules. $extrasub must be used with care, limiting as
5474# much as possible the usage of range addresses. That's because autoconf
5475# splits the sed script to overcome limits in the number of commands,
5476# and relying on carefully-timed sed passes may turn out to be very hard
5477# to maintain later. In this particular case, you just have to be careful
5478# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5479
2aeb72e9 5480# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5481if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5482 enableval="$enable_bootstrap"
5483
f516a7da 5484else
ce521a9c 5485 enable_bootstrap=default
2aeb72e9 5486fi;
f516a7da 5487
ce521a9c
PB
5488# Issue errors and warnings for invalid/strange bootstrap combinations.
5489case "$configdirs" in
5490 *gcc*) have_compiler=yes ;;
5491 *) have_compiler=no ;;
5492esac
5493
5494case "$have_compiler:$host:$target:$enable_bootstrap" in
5495 *:*:*:no) ;;
5496
1ca26cd2 5497 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5498 # and we are in a native configuration.
5499 yes:$build:$build:default)
1ca26cd2 5500 enable_bootstrap=yes ;;
ce521a9c
PB
5501
5502 *:*:*:default)
5503 enable_bootstrap=no ;;
5504
5505 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5506 yes:$build:$build:yes)
ce521a9c
PB
5507 ;;
5508
5509 # Other configurations, but we have a compiler. Assume the user knows
5510 # what he's doing.
2d309510 5511 yes:*:*:yes)
1c710c3c
DJ
5512 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5513echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5514 ;;
5515
5516 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5517 no:*:*:yes)
1c710c3c
DJ
5518 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5519echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5520 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5521
5522 # Fail if wrong command line
5523 *)
1c710c3c
DJ
5524 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5525echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5526 { (exit 1); exit 1; }; }
ce521a9c
PB
5527 ;;
5528esac
5529
5530# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5531case "$enable_bootstrap" in
5532 yes)
5607edfd 5533 bootstrap_suffix=bootstrap ;;
f516a7da 5534 no)
5607edfd 5535 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5536esac
5537
23f6b2f9 5538for module in ${build_configdirs} ; do
5607edfd
PB
5539 if test -z "${no_recursion}" \
5540 && test -f ${build_subdir}/${module}/Makefile; then
5541 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5542 rm -f ${build_subdir}/${module}/Makefile
5543 fi
5544 extrasub="$extrasub
5545/^@if build-$module\$/d
5546/^@endif build-$module\$/d
5547/^@if build-$module-$bootstrap_suffix\$/d
5548/^@endif build-$module-$bootstrap_suffix\$/d"
5549done
5550for module in ${configdirs} ; do
a6fbc1e2 5551 if test -z "${no_recursion}"; then
f063a9ed 5552 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5553 if test -f ${file}; then
5554 echo 1>&2 "*** removing ${file} to force reconfigure"
5555 rm -f ${file}
5556 fi
5557 done
5607edfd
PB
5558 fi
5559 extrasub="$extrasub
5560/^@if $module\$/d
5561/^@endif $module\$/d
5562/^@if $module-$bootstrap_suffix\$/d
5563/^@endif $module-$bootstrap_suffix\$/d"
5564done
5565for module in ${target_configdirs} ; do
5566 if test -z "${no_recursion}" \
5567 && test -f ${target_subdir}/${module}/Makefile; then
5568 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5569 rm -f ${target_subdir}/${module}/Makefile
5570 fi
5571 extrasub="$extrasub
5572/^@if target-$module\$/d
5573/^@endif target-$module\$/d
5574/^@if target-$module-$bootstrap_suffix\$/d
5575/^@endif target-$module-$bootstrap_suffix\$/d"
5576done
5577
60975492
PB
5578extrasub="$extrasub
5579/^@if /,/^@endif /d"
671aa708
NN
5580
5581# Create the serialization dependencies. This uses a temporary file.
5582
2aeb72e9 5583# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5584if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5585 enableval="$enable_serial_configure"
ade82b16 5586
2aeb72e9 5587fi;
ade82b16 5588
bf1d3e81
NN
5589case ${enable_serial_configure} in
5590 yes)
5591 enable_serial_build_configure=yes
5592 enable_serial_host_configure=yes
5593 enable_serial_target_configure=yes
5594 ;;
5595esac
5596
671aa708
NN
5597# These force 'configure's to be done one at a time, to avoid problems
5598# with contention over a shared config.cache.
5599rm -f serdep.tmp
ade82b16 5600echo '# serdep.tmp' > serdep.tmp
671aa708 5601olditem=
bf1d3e81 5602test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5603for item in ${build_configdirs} ; do
5604 case ${olditem} in
5605 "") ;;
ade82b16 5606 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5607 esac
5608 olditem=${item}
5609done
5610olditem=
bf1d3e81 5611test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5612for item in ${configdirs} ; do
5613 case ${olditem} in
5614 "") ;;
ade82b16 5615 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5616 esac
5617 olditem=${item}
5618done
5619olditem=
bf1d3e81 5620test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5621for item in ${target_configdirs} ; do
5622 case ${olditem} in
5623 "") ;;
ade82b16 5624 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5625 esac
5626 olditem=${item}
5627done
5628serialization_dependencies=serdep.tmp
5629
5630
ade82b16 5631# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5632# target, nonopt, and variable assignments. These are the ones we
5633# might not want to pass down to subconfigures. Also strip
5634# program-prefix, program-suffix, and program-transform-name, so that
5635# we can pass down a consistent program-transform-name.
5636baseargs=
5637keep_next=no
5638skip_next=no
5639eval "set -- $ac_configure_args"
44bfc3ac
DJ
5640for ac_arg
5641do
1c710c3c
DJ
5642 if test X"$skip_next" = X"yes"; then
5643 skip_next=no
5644 continue
5645 fi
5646 if test X"$keep_next" = X"yes"; then
5647 case $ac_arg in
5648 *\'*)
5649 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5650 esac
5651 baseargs="$baseargs '$ac_arg'"
5652 keep_next=no
5653 continue
5654 fi
5655
5656 # Handle separated arguments. Based on the logic generated by
5657 # autoconf 2.59.
5658 case $ac_arg in
5659 *=* | --config-cache | -C | -disable-* | --disable-* \
5660 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5661 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5662 | -with-* | --with-* | -without-* | --without-* | --x)
5663 separate_arg=no
5664 ;;
5665 -*)
5666 separate_arg=yes
5667 ;;
5668 *)
5669 separate_arg=no
5670 ;;
5671 esac
5672
5673 case "$ac_arg" in
5674 --no*)
5675 continue
5676 ;;
5677 --c* | \
5678 --sr* | \
5679 --ho* | \
5680 --bu* | \
5681 --t* | \
5682 --program-* | \
5683 -cache_file* | \
5684 -srcdir* | \
5685 -host* | \
5686 -build* | \
5687 -target* | \
5688 -program-prefix* | \
5689 -program-suffix* | \
5690 -program-transform-name* )
5691 skip_next=$separate_arg
5692 continue
5693 ;;
5694 -*)
5695 # An option. Add it.
5696 case $ac_arg in
5697 *\'*)
5698 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5699 esac
5700 baseargs="$baseargs '$ac_arg'"
5701 keep_next=$separate_arg
5702 ;;
5703 *)
5704 # Either a variable assignment, or a nonopt (triplet). Don't
5705 # pass it down; let the Makefile handle this.
5706 continue
5707 ;;
5708 esac
5709done
5710# Remove the initial space we just introduced and, as these will be
5711# expanded by make, quote '$'.
5712baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5713
43bb47c2
DJ
5714# Add in --program-transform-name, after --program-prefix and
5715# --program-suffix have been applied to it. Autoconf has already
5716# doubled dollar signs and backslashes in program_transform_name; we want
5717# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5718# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5719# Also, because we want to override the logic in subdir configure scripts to
5720# choose program_transform_name, replace any s,x,x, with s,y,y,.
5721sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5722${program_transform_name}
5723EOF_SED
5724gcc_transform_name=`cat conftestsed.out`
5725rm -f conftestsed.out
5726baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5727if test "$silent" = yes; then
5728 baseargs="$baseargs --silent"
5729fi
43bb47c2 5730
671aa708
NN
5731# For the build-side libraries, we just need to pretend we're native,
5732# and not use the same cache file. Multilibs are neither needed nor
5733# desired.
e69bf64b 5734build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5735
5736# For host modules, accept cache file option, or specification as blank.
5737case "${cache_file}" in
5738"") # empty
5739 cache_file_option="" ;;
5740/* | [A-Za-z]:[\\/]* ) # absolute path
5741 cache_file_option="--cache-file=${cache_file}" ;;
5742*) # relative path
5743 cache_file_option="--cache-file=../${cache_file}" ;;
5744esac
5745
09438bde
NN
5746# Host dirs don't like to share a cache file either, horribly enough.
5747# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5748host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5749
5750target_configargs=${baseargs}
5751
5752# Passing a --with-cross-host argument lets the target libraries know
5753# whether they are being built with a cross-compiler or being built
5754# native. However, it would be better to use other mechanisms to make the
5755# sorts of decisions they want to make on this basis. Please consider
5756# this option to be deprecated. FIXME.
5757if test x${is_cross_compiler} = xyes ; then
1c710c3c 5758 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5759fi
5760
5761# Default to --enable-multilib.
5762if test x${enable_multilib} = x ; then
5763 target_configargs="--enable-multilib ${target_configargs}"
5764fi
5765
5766# Pass --with-newlib if appropriate. Note that target_configdirs has
5767# changed from the earlier setting of with_newlib.
5768if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5769 target_configargs="--with-newlib ${target_configargs}"
5770fi
5771
6b9eb62c
NN
5772# Different target subdirs use different values of certain variables
5773# (notably CXX). Worse, multilibs use *lots* of different values.
5774# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5775# it doesn't automatically accept command-line overrides of them.
5776# This means it's not safe for target subdirs to share a cache file,
5777# which is disgusting, but there you have it. Hopefully this can be
5778# fixed in future. It's still worthwhile to use a cache file for each
5779# directory. I think.
5780
bebcd931
MS
5781# Pass the appropriate --build, --host, --target and --cache-file arguments.
5782# We need to pass --target, as newer autoconf's requires consistency
5783# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5784target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5785
671aa708
NN
5786FLAGS_FOR_TARGET=
5787case " $target_configdirs " in
5788 *" newlib "*)
5789 case " $target_configargs " in
5790 *" --with-newlib "*)
5791 case "$target" in
5792 *-cygwin*)
aa8f1f57 5793 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
5794 esac
5795
5796 # If we're not building GCC, don't discard standard headers.
5797 if test -d ${srcdir}/gcc; then
5798 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5799
5800 if test "${build}" != "${host}"; then
5801 # On Canadian crosses, CC_FOR_TARGET will have already been set
5802 # by `configure', so we won't have an opportunity to add -Bgcc/
5803 # to it. This is right: we don't want to search that directory
5804 # for binaries, but we want the header files in there, so add
5805 # them explicitly.
215c351a 5806 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5807
5808 # Someone might think of using the pre-installed headers on
5809 # Canadian crosses, in case the installed compiler is not fully
5810 # compatible with the compiler being built. In this case, it
5811 # would be better to flag an error than risking having
5812 # incompatible object files being constructed. We can't
5813 # guarantee that an error will be flagged, but let's hope the
5814 # compiler will do it, when presented with incompatible header
5815 # files.
5816 fi
5817 fi
5818
5819 case "${target}-${is_cross_compiler}" in
f2a0e225 5820 i[3456789]86-*-linux*-no)
671aa708
NN
5821 # Here host == target, so we don't need to build gcc,
5822 # so we don't want to discard standard headers.
5823 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5824 ;;
5825 *)
5826 # If we're building newlib, use its generic headers last, but search
5827 # for any libc-related directories first (so make it the last -B
5828 # switch).
5829 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
5830
5831 # If we're building libgloss, find the startup file, simulator library
5832 # and linker script.
5833 case " $target_configdirs " in
5834 *" libgloss "*)
5835 # Look for startup file, simulator library and maybe linker script.
5836 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5837 # Look for libnosys.a in case the target needs it.
5838 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5839 # Most targets have the linker script in the source directory.
5840 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5841 ;;
5842 esac
671aa708
NN
5843 ;;
5844 esac
5845 ;;
5846 esac
5847 ;;
5848esac
b91f0a41
CV
5849case "$target" in
5850*-mingw*)
5851 # Can't be handled as Cygwin above since Mingw does not use newlib.
5852 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' ;;
5853esac
671aa708 5854
6691a79e
ME
5855# Allow the user to override the flags for
5856# our build compiler if desired.
5857CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5858
671aa708
NN
5859# On Canadian crosses, we'll be searching the right directories for
5860# the previously-installed cross compiler, so don't bother to add
5861# flags for directories within the install tree of the compiler
5862# being built; programs in there won't even run.
5863if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5864 # Search for pre-installed headers if nothing else fits.
9124bc53 5865 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
5866fi
5867
5868if test "x${use_gnu_ld}" = x &&
5869 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5870 # Arrange for us to find uninstalled linker scripts.
215c351a 5871 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5872fi
5873
e88a2c09
DD
5874# Search for other target-specific linker scripts and such.
5875case "${target}" in
3e19841a
PB
5876 mep*)
5877 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5878 ;;
e88a2c09
DD
5879esac
5880
671aa708 5881# Makefile fragments.
7b61653a
PE
5882for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5883do
5884 eval fragval=\$$frag
5885 if test $fragval != /dev/null; then
5886 eval $frag=${srcdir}/$fragval
5887 fi
5888done
671aa708
NN
5889
5890
5891
5892
5893
5894# Miscellanea: directories, flags, etc.
5895
5896
5897
5898
5899
5900
5901
23f6b2f9 5902# Build module lists & subconfigure args.
671aa708
NN
5903
5904
5905
2abefe3d
PB
5906# Host module lists & subconfigure args.
5907
5908
5909
5910# Target module lists & subconfigure args.
5911
5912
5913
5914# Build tools.
5915
5916
5917
5918# Generate default definitions for YACC, M4, LEX and other programs that run
5919# on the build machine. These are used if the Makefile can't locate these
5920# programs in objdir.
5921MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5922
5923for ac_prog in 'bison -y' byacc yacc
5924do
1c710c3c 5925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5926set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5927echo "$as_me:$LINENO: checking for $ac_word" >&5
5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5929if test "${ac_cv_prog_YACC+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5931else
5932 if test -n "$YACC"; then
5933 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5934else
1c710c3c
DJ
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5942 ac_cv_prog_YACC="$ac_prog"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946done
5947done
5948
2abefe3d
PB
5949fi
5950fi
1c710c3c 5951YACC=$ac_cv_prog_YACC
2abefe3d 5952if test -n "$YACC"; then
2aeb72e9
DD
5953 echo "$as_me:$LINENO: result: $YACC" >&5
5954echo "${ECHO_T}$YACC" >&6
2abefe3d 5955else
2aeb72e9
DD
5956 echo "$as_me:$LINENO: result: no" >&5
5957echo "${ECHO_T}no" >&6
2abefe3d
PB
5958fi
5959
1c710c3c 5960 test -n "$YACC" && break
2abefe3d
PB
5961done
5962test -n "$YACC" || YACC="$MISSING bison -y"
5963
5964case " $build_configdirs " in
5965 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5966 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5967esac
5968
5969for ac_prog in bison
5970do
1c710c3c 5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5972set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5973echo "$as_me:$LINENO: checking for $ac_word" >&5
5974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5975if test "${ac_cv_prog_BISON+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5977else
5978 if test -n "$BISON"; then
5979 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5980else
1c710c3c
DJ
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5988 ac_cv_prog_BISON="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993done
5994
2abefe3d
PB
5995fi
5996fi
1c710c3c 5997BISON=$ac_cv_prog_BISON
2abefe3d 5998if test -n "$BISON"; then
2aeb72e9
DD
5999 echo "$as_me:$LINENO: result: $BISON" >&5
6000echo "${ECHO_T}$BISON" >&6
2abefe3d 6001else
2aeb72e9
DD
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
2abefe3d
PB
6004fi
6005
1c710c3c 6006 test -n "$BISON" && break
2abefe3d
PB
6007done
6008test -n "$BISON" || BISON="$MISSING bison"
6009
6010case " $build_configdirs " in
6011 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6012esac
6013
6014for ac_prog in gm4 gnum4 m4
6015do
1c710c3c 6016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6017set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6018echo "$as_me:$LINENO: checking for $ac_word" >&5
6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6020if test "${ac_cv_prog_M4+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6022else
6023 if test -n "$M4"; then
6024 ac_cv_prog_M4="$M4" # Let the user override the test.
6025else
1c710c3c
DJ
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6033 ac_cv_prog_M4="$ac_prog"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037done
6038done
6039
2abefe3d
PB
6040fi
6041fi
1c710c3c 6042M4=$ac_cv_prog_M4
2abefe3d 6043if test -n "$M4"; then
2aeb72e9
DD
6044 echo "$as_me:$LINENO: result: $M4" >&5
6045echo "${ECHO_T}$M4" >&6
2abefe3d 6046else
2aeb72e9
DD
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
2abefe3d
PB
6049fi
6050
1c710c3c 6051 test -n "$M4" && break
2abefe3d
PB
6052done
6053test -n "$M4" || M4="$MISSING m4"
6054
6055case " $build_configdirs " in
6056 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6057esac
6058
6059for ac_prog in flex lex
6060do
1c710c3c 6061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6062set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6063echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6065if test "${ac_cv_prog_LEX+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6067else
6068 if test -n "$LEX"; then
6069 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6070else
1c710c3c
DJ
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6078 ac_cv_prog_LEX="$ac_prog"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083done
6084
2abefe3d
PB
6085fi
6086fi
1c710c3c 6087LEX=$ac_cv_prog_LEX
2abefe3d 6088if test -n "$LEX"; then
2aeb72e9
DD
6089 echo "$as_me:$LINENO: result: $LEX" >&5
6090echo "${ECHO_T}$LEX" >&6
2abefe3d 6091else
2aeb72e9
DD
6092 echo "$as_me:$LINENO: result: no" >&5
6093echo "${ECHO_T}no" >&6
2abefe3d
PB
6094fi
6095
1c710c3c 6096 test -n "$LEX" && break
2abefe3d
PB
6097done
6098test -n "$LEX" || LEX="$MISSING flex"
6099
6100case " $build_configdirs " in
6101 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6102 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6103esac
6104
6105for ac_prog in flex
6106do
1c710c3c 6107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6108set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6109echo "$as_me:$LINENO: checking for $ac_word" >&5
6110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6111if test "${ac_cv_prog_FLEX+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6113else
6114 if test -n "$FLEX"; then
6115 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6116else
1c710c3c
DJ
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6124 ac_cv_prog_FLEX="$ac_prog"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128done
6129done
6130
2abefe3d
PB
6131fi
6132fi
1c710c3c 6133FLEX=$ac_cv_prog_FLEX
2abefe3d 6134if test -n "$FLEX"; then
2aeb72e9
DD
6135 echo "$as_me:$LINENO: result: $FLEX" >&5
6136echo "${ECHO_T}$FLEX" >&6
2abefe3d 6137else
2aeb72e9
DD
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
2abefe3d
PB
6140fi
6141
1c710c3c 6142 test -n "$FLEX" && break
2abefe3d
PB
6143done
6144test -n "$FLEX" || FLEX="$MISSING flex"
6145
6146case " $build_configdirs " in
6147 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6148esac
6149
6150for ac_prog in makeinfo
6151do
1c710c3c 6152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6153set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6154echo "$as_me:$LINENO: checking for $ac_word" >&5
6155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6156if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6158else
6159 if test -n "$MAKEINFO"; then
6160 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6161else
1c710c3c
DJ
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6169 ac_cv_prog_MAKEINFO="$ac_prog"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174done
6175
2abefe3d
PB
6176fi
6177fi
1c710c3c 6178MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6179if test -n "$MAKEINFO"; then
2aeb72e9
DD
6180 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6181echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6182else
2aeb72e9
DD
6183 echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
2abefe3d
PB
6185fi
6186
1c710c3c 6187 test -n "$MAKEINFO" && break
2abefe3d
PB
6188done
6189test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6190
6191case " $build_configdirs " in
6192 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6193 *)
6194
4fe7e755 6195 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6196 # higher, else we use the "missing" dummy.
6197 if ${MAKEINFO} --version \
4fe7e755 6198 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6199 :
6200 else
6201 MAKEINFO="$MISSING makeinfo"
6202 fi
6203 ;;
6204
6205esac
671aa708 6206
2abefe3d 6207# FIXME: expect and dejagnu may become build tools?
671aa708 6208
2abefe3d
PB
6209for ac_prog in expect
6210do
1c710c3c 6211 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6212set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6213echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6215if test "${ac_cv_prog_EXPECT+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6217else
6218 if test -n "$EXPECT"; then
6219 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6220else
1c710c3c
DJ
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6228 ac_cv_prog_EXPECT="$ac_prog"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232done
6233done
6234
2abefe3d
PB
6235fi
6236fi
1c710c3c 6237EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6238if test -n "$EXPECT"; then
2aeb72e9
DD
6239 echo "$as_me:$LINENO: result: $EXPECT" >&5
6240echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6241else
2aeb72e9
DD
6242 echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
2abefe3d 6244fi
671aa708 6245
1c710c3c 6246 test -n "$EXPECT" && break
2abefe3d
PB
6247done
6248test -n "$EXPECT" || EXPECT="expect"
671aa708 6249
2abefe3d
PB
6250case " $configdirs " in
6251 *" expect "*)
6252 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6253 ;;
6254esac
671aa708 6255
2abefe3d
PB
6256for ac_prog in runtest
6257do
1c710c3c 6258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6259set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6260echo "$as_me:$LINENO: checking for $ac_word" >&5
6261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6262if test "${ac_cv_prog_RUNTEST+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6264else
6265 if test -n "$RUNTEST"; then
6266 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6267else
1c710c3c
DJ
6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6275 ac_cv_prog_RUNTEST="$ac_prog"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279done
6280done
6281
2abefe3d
PB
6282fi
6283fi
1c710c3c 6284RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6285if test -n "$RUNTEST"; then
2aeb72e9
DD
6286 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6287echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6288else
2aeb72e9
DD
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
2abefe3d 6291fi
671aa708 6292
1c710c3c 6293 test -n "$RUNTEST" && break
2abefe3d
PB
6294done
6295test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6296
2abefe3d
PB
6297case " $configdirs " in
6298 *" dejagnu "*)
c394e891 6299 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6300 ;;
6301esac
671aa708
NN
6302
6303
671aa708 6304# Host tools.
ca9f4b81
AO
6305ncn_tool_prefix=
6306test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6307ncn_target_tool_prefix=
6308test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6309
278a7a38
AO
6310
6311
6312if test -n "$AR"; then
6313 ac_cv_prog_AR=$AR
6314elif test -n "$ac_cv_prog_AR"; then
6315 AR=$ac_cv_prog_AR
6316fi
6317
6318if test -n "$ac_cv_prog_AR"; then
6319 for ncn_progname in ar; do
6320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6321set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6322echo "$as_me:$LINENO: checking for $ac_word" >&5
6323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6324if test "${ac_cv_prog_AR+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 if test -n "$AR"; then
6328 ac_cv_prog_AR="$AR" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6337 ac_cv_prog_AR="${ncn_progname}"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341done
6342done
6343
6344fi
6345fi
6346AR=$ac_cv_prog_AR
6347if test -n "$AR"; then
2aeb72e9
DD
6348 echo "$as_me:$LINENO: result: $AR" >&5
6349echo "${ECHO_T}$AR" >&6
278a7a38 6350else
2aeb72e9
DD
6351 echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6
278a7a38
AO
6353fi
6354
6355 done
6356fi
6357
6358for ncn_progname in ar; do
2693c0b0
PB
6359 if test -n "$ncn_tool_prefix"; then
6360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6361set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6362echo "$as_me:$LINENO: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6364if test "${ac_cv_prog_AR+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6366else
6367 if test -n "$AR"; then
6368 ac_cv_prog_AR="$AR" # Let the user override the test.
6369else
1c710c3c
DJ
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6377 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381done
6382done
6383
ca9f4b81
AO
6384fi
6385fi
1c710c3c 6386AR=$ac_cv_prog_AR
ca9f4b81 6387if test -n "$AR"; then
2aeb72e9
DD
6388 echo "$as_me:$LINENO: result: $AR" >&5
6389echo "${ECHO_T}$AR" >&6
ca9f4b81 6390else
2aeb72e9
DD
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
ca9f4b81
AO
6393fi
6394
2693c0b0
PB
6395 fi
6396 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6398set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6399echo "$as_me:$LINENO: checking for $ac_word" >&5
6400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6401if test "${ac_cv_prog_AR+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6403else
2693c0b0 6404 if test -n "$AR"; then
af71363e
AS
6405 ac_cv_prog_AR="$AR" # Let the user override the test.
6406else
1c710c3c
DJ
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6414 ac_cv_prog_AR="${ncn_progname}"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418done
6419done
6420
ca9f4b81
AO
6421fi
6422fi
1c710c3c 6423AR=$ac_cv_prog_AR
2693c0b0 6424if test -n "$AR"; then
2aeb72e9
DD
6425 echo "$as_me:$LINENO: result: $AR" >&5
6426echo "${ECHO_T}$AR" >&6
ca9f4b81 6427else
2aeb72e9
DD
6428 echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6
ca9f4b81 6430fi
1c710c3c 6431
2693c0b0
PB
6432 fi
6433 test -n "$ac_cv_prog_AR" && break
6434done
6435
6436if test -z "$ac_cv_prog_AR" ; then
6437 set dummy ar
6438 if test $build = $host ; then
6439 AR="$2"
ca9f4b81 6440 else
2693c0b0 6441 AR="${ncn_tool_prefix}$2"
ca9f4b81 6442 fi
ca9f4b81
AO
6443fi
6444
278a7a38
AO
6445
6446
6447if test -n "$AS"; then
6448 ac_cv_prog_AS=$AS
6449elif test -n "$ac_cv_prog_AS"; then
6450 AS=$ac_cv_prog_AS
6451fi
6452
6453if test -n "$ac_cv_prog_AS"; then
6454 for ncn_progname in as; do
6455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6456set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6457echo "$as_me:$LINENO: checking for $ac_word" >&5
6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6459if test "${ac_cv_prog_AS+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 if test -n "$AS"; then
6463 ac_cv_prog_AS="$AS" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6472 ac_cv_prog_AS="${ncn_progname}"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477done
6478
6479fi
6480fi
6481AS=$ac_cv_prog_AS
6482if test -n "$AS"; then
2aeb72e9
DD
6483 echo "$as_me:$LINENO: result: $AS" >&5
6484echo "${ECHO_T}$AS" >&6
278a7a38 6485else
2aeb72e9
DD
6486 echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
278a7a38
AO
6488fi
6489
6490 done
6491fi
6492
6493for ncn_progname in as; do
2693c0b0
PB
6494 if test -n "$ncn_tool_prefix"; then
6495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6496set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6497echo "$as_me:$LINENO: checking for $ac_word" >&5
6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6499if test "${ac_cv_prog_AS+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6501else
6502 if test -n "$AS"; then
6503 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6504else
1c710c3c
DJ
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6512 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517done
6518
ca9f4b81
AO
6519fi
6520fi
1c710c3c 6521AS=$ac_cv_prog_AS
ca9f4b81 6522if test -n "$AS"; then
2aeb72e9
DD
6523 echo "$as_me:$LINENO: result: $AS" >&5
6524echo "${ECHO_T}$AS" >&6
ca9f4b81 6525else
2aeb72e9
DD
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
ca9f4b81
AO
6528fi
6529
2693c0b0
PB
6530 fi
6531 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6533set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6534echo "$as_me:$LINENO: checking for $ac_word" >&5
6535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6536if test "${ac_cv_prog_AS+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6538else
2693c0b0
PB
6539 if test -n "$AS"; then
6540 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6541else
1c710c3c
DJ
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6549 ac_cv_prog_AS="${ncn_progname}"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554done
6555
ca9f4b81
AO
6556fi
6557fi
1c710c3c 6558AS=$ac_cv_prog_AS
2693c0b0 6559if test -n "$AS"; then
2aeb72e9
DD
6560 echo "$as_me:$LINENO: result: $AS" >&5
6561echo "${ECHO_T}$AS" >&6
ca9f4b81 6562else
2aeb72e9
DD
6563 echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6
ca9f4b81 6565fi
1c710c3c 6566
2693c0b0
PB
6567 fi
6568 test -n "$ac_cv_prog_AS" && break
6569done
6570
6571if test -z "$ac_cv_prog_AS" ; then
6572 set dummy as
6573 if test $build = $host ; then
6574 AS="$2"
ca9f4b81 6575 else
2693c0b0 6576 AS="${ncn_tool_prefix}$2"
ca9f4b81 6577 fi
ca9f4b81
AO
6578fi
6579
278a7a38
AO
6580
6581
6582if test -n "$DLLTOOL"; then
6583 ac_cv_prog_DLLTOOL=$DLLTOOL
6584elif test -n "$ac_cv_prog_DLLTOOL"; then
6585 DLLTOOL=$ac_cv_prog_DLLTOOL
6586fi
6587
6588if test -n "$ac_cv_prog_DLLTOOL"; then
6589 for ncn_progname in dlltool; do
6590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6591set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6592echo "$as_me:$LINENO: checking for $ac_word" >&5
6593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6594if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597 if test -n "$DLLTOOL"; then
6598 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6607 ac_cv_prog_DLLTOOL="${ncn_progname}"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612done
6613
6614fi
6615fi
6616DLLTOOL=$ac_cv_prog_DLLTOOL
6617if test -n "$DLLTOOL"; then
2aeb72e9
DD
6618 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6619echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6620else
2aeb72e9
DD
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
278a7a38
AO
6623fi
6624
6625 done
6626fi
6627
6628for ncn_progname in dlltool; do
2693c0b0
PB
6629 if test -n "$ncn_tool_prefix"; then
6630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6631set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6632echo "$as_me:$LINENO: checking for $ac_word" >&5
6633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6634if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6636else
6637 if test -n "$DLLTOOL"; then
6638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6639else
1c710c3c
DJ
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6647 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652done
6653
ca9f4b81
AO
6654fi
6655fi
1c710c3c 6656DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6657if test -n "$DLLTOOL"; then
2aeb72e9
DD
6658 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6659echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6660else
2aeb72e9
DD
6661 echo "$as_me:$LINENO: result: no" >&5
6662echo "${ECHO_T}no" >&6
ca9f4b81
AO
6663fi
6664
2693c0b0
PB
6665 fi
6666 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6668set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6669echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6671if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6673else
2693c0b0
PB
6674 if test -n "$DLLTOOL"; then
6675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6676else
1c710c3c
DJ
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6684 ac_cv_prog_DLLTOOL="${ncn_progname}"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689done
6690
ca9f4b81
AO
6691fi
6692fi
1c710c3c 6693DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6694if test -n "$DLLTOOL"; then
2aeb72e9
DD
6695 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6696echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6697else
2aeb72e9
DD
6698 echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6
ca9f4b81 6700fi
1c710c3c 6701
2693c0b0
PB
6702 fi
6703 test -n "$ac_cv_prog_DLLTOOL" && break
6704done
6705
6706if test -z "$ac_cv_prog_DLLTOOL" ; then
6707 set dummy dlltool
6708 if test $build = $host ; then
6709 DLLTOOL="$2"
ca9f4b81 6710 else
2693c0b0 6711 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6712 fi
ca9f4b81
AO
6713fi
6714
278a7a38
AO
6715
6716
6717if test -n "$LD"; then
6718 ac_cv_prog_LD=$LD
6719elif test -n "$ac_cv_prog_LD"; then
6720 LD=$ac_cv_prog_LD
6721fi
6722
6723if test -n "$ac_cv_prog_LD"; then
6724 for ncn_progname in ld; do
6725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6726set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6727echo "$as_me:$LINENO: checking for $ac_word" >&5
6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6729if test "${ac_cv_prog_LD+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 if test -n "$LD"; then
6733 ac_cv_prog_LD="$LD" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6742 ac_cv_prog_LD="${ncn_progname}"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747done
6748
6749fi
6750fi
6751LD=$ac_cv_prog_LD
6752if test -n "$LD"; then
2aeb72e9
DD
6753 echo "$as_me:$LINENO: result: $LD" >&5
6754echo "${ECHO_T}$LD" >&6
278a7a38 6755else
2aeb72e9
DD
6756 echo "$as_me:$LINENO: result: no" >&5
6757echo "${ECHO_T}no" >&6
278a7a38
AO
6758fi
6759
6760 done
6761fi
6762
6763for ncn_progname in ld; do
2693c0b0
PB
6764 if test -n "$ncn_tool_prefix"; then
6765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6766set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6767echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6769if test "${ac_cv_prog_LD+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6771else
6772 if test -n "$LD"; then
6773 ac_cv_prog_LD="$LD" # Let the user override the test.
6774else
1c710c3c
DJ
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6782 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788
ca9f4b81
AO
6789fi
6790fi
1c710c3c 6791LD=$ac_cv_prog_LD
ca9f4b81 6792if test -n "$LD"; then
2aeb72e9
DD
6793 echo "$as_me:$LINENO: result: $LD" >&5
6794echo "${ECHO_T}$LD" >&6
ca9f4b81 6795else
2aeb72e9
DD
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
ca9f4b81
AO
6798fi
6799
2693c0b0
PB
6800 fi
6801 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6803set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6804echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6806if test "${ac_cv_prog_LD+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6808else
2693c0b0
PB
6809 if test -n "$LD"; then
6810 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6811else
1c710c3c
DJ
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6819 ac_cv_prog_LD="${ncn_progname}"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824done
6825
ca9f4b81
AO
6826fi
6827fi
1c710c3c 6828LD=$ac_cv_prog_LD
2693c0b0 6829if test -n "$LD"; then
2aeb72e9
DD
6830 echo "$as_me:$LINENO: result: $LD" >&5
6831echo "${ECHO_T}$LD" >&6
ca9f4b81 6832else
2aeb72e9
DD
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
ca9f4b81 6835fi
1c710c3c 6836
2693c0b0
PB
6837 fi
6838 test -n "$ac_cv_prog_LD" && break
6839done
6840
6841if test -z "$ac_cv_prog_LD" ; then
6842 set dummy ld
6843 if test $build = $host ; then
6844 LD="$2"
ca9f4b81 6845 else
2693c0b0 6846 LD="${ncn_tool_prefix}$2"
ca9f4b81 6847 fi
ca9f4b81
AO
6848fi
6849
278a7a38
AO
6850
6851
6852if test -n "$LIPO"; then
6853 ac_cv_prog_LIPO=$LIPO
6854elif test -n "$ac_cv_prog_LIPO"; then
6855 LIPO=$ac_cv_prog_LIPO
6856fi
6857
6858if test -n "$ac_cv_prog_LIPO"; then
6859 for ncn_progname in lipo; do
6860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6861set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6862echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6864if test "${ac_cv_prog_LIPO+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 if test -n "$LIPO"; then
6868 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6877 ac_cv_prog_LIPO="${ncn_progname}"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882done
6883
6884fi
6885fi
6886LIPO=$ac_cv_prog_LIPO
6887if test -n "$LIPO"; then
2aeb72e9
DD
6888 echo "$as_me:$LINENO: result: $LIPO" >&5
6889echo "${ECHO_T}$LIPO" >&6
278a7a38 6890else
2aeb72e9
DD
6891 echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6
278a7a38
AO
6893fi
6894
6895 done
6896fi
6897
6898for ncn_progname in lipo; do
2abefe3d
PB
6899 if test -n "$ncn_tool_prefix"; then
6900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6901set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6902echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6904if test "${ac_cv_prog_LIPO+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6906else
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6909else
1c710c3c
DJ
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6917 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923
2abefe3d
PB
6924fi
6925fi
1c710c3c 6926LIPO=$ac_cv_prog_LIPO
2abefe3d 6927if test -n "$LIPO"; then
2aeb72e9
DD
6928 echo "$as_me:$LINENO: result: $LIPO" >&5
6929echo "${ECHO_T}$LIPO" >&6
2abefe3d 6930else
2aeb72e9
DD
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
2abefe3d
PB
6933fi
6934
6935 fi
6936 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6938set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6939echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6941if test "${ac_cv_prog_LIPO+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6943else
6944 if test -n "$LIPO"; then
6945 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6946else
1c710c3c
DJ
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6954 ac_cv_prog_LIPO="${ncn_progname}"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958done
6959done
6960
2abefe3d
PB
6961fi
6962fi
1c710c3c 6963LIPO=$ac_cv_prog_LIPO
2abefe3d 6964if test -n "$LIPO"; then
2aeb72e9
DD
6965 echo "$as_me:$LINENO: result: $LIPO" >&5
6966echo "${ECHO_T}$LIPO" >&6
2abefe3d 6967else
2aeb72e9
DD
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
2abefe3d 6970fi
1c710c3c 6971
2abefe3d
PB
6972 fi
6973 test -n "$ac_cv_prog_LIPO" && break
6974done
6975
6976if test -z "$ac_cv_prog_LIPO" ; then
6977 set dummy lipo
6978 if test $build = $host ; then
6979 LIPO="$2"
6980 else
6981 LIPO="${ncn_tool_prefix}$2"
6982 fi
6983fi
6984
278a7a38
AO
6985
6986
6987if test -n "$NM"; then
6988 ac_cv_prog_NM=$NM
6989elif test -n "$ac_cv_prog_NM"; then
6990 NM=$ac_cv_prog_NM
6991fi
6992
6993if test -n "$ac_cv_prog_NM"; then
6994 for ncn_progname in nm; do
6995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6996set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6997echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6999if test "${ac_cv_prog_NM+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7001else
7002 if test -n "$NM"; then
7003 ac_cv_prog_NM="$NM" # Let the user override the test.
7004else
1c710c3c
DJ
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7012 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016done
7017done
7018
ca9f4b81
AO
7019fi
7020fi
1c710c3c 7021NM=$ac_cv_prog_NM
ca9f4b81 7022if test -n "$NM"; then
2aeb72e9
DD
7023 echo "$as_me:$LINENO: result: $NM" >&5
7024echo "${ECHO_T}$NM" >&6
ca9f4b81 7025else
2aeb72e9
DD
7026 echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
ca9f4b81
AO
7028fi
7029
278a7a38
AO
7030 done
7031fi
7032
7033for ncn_progname in nm; do
7034 if test -n "$ncn_tool_prefix"; then
7035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7036set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7037echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7039if test "${ac_cv_prog_NM+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7041else
2693c0b0
PB
7042 if test -n "$NM"; then
7043 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7044else
1c710c3c
DJ
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7052 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058
ca9f4b81
AO
7059fi
7060fi
1c710c3c 7061NM=$ac_cv_prog_NM
2693c0b0 7062if test -n "$NM"; then
2aeb72e9
DD
7063 echo "$as_me:$LINENO: result: $NM" >&5
7064echo "${ECHO_T}$NM" >&6
ca9f4b81 7065else
2aeb72e9
DD
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
ca9f4b81 7068fi
1c710c3c 7069
2693c0b0 7070 fi
278a7a38
AO
7071 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7073set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7074echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7076if test "${ac_cv_prog_NM+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079 if test -n "$NM"; then
7080 ac_cv_prog_NM="$NM" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7089 ac_cv_prog_NM="${ncn_progname}"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094done
7095
7096fi
7097fi
7098NM=$ac_cv_prog_NM
7099if test -n "$NM"; then
2aeb72e9
DD
7100 echo "$as_me:$LINENO: result: $NM" >&5
7101echo "${ECHO_T}$NM" >&6
278a7a38 7102else
2aeb72e9
DD
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
278a7a38
AO
7105fi
7106
7107 fi
7108 test -n "$ac_cv_prog_NM" && break
7109done
7110
7111if test -z "$ac_cv_prog_NM" ; then
7112 set dummy nm
7113 if test $build = $host ; then
7114 NM="$2"
7115 else
7116 NM="${ncn_tool_prefix}$2"
7117 fi
7118fi
7119
7120
7121
7122if test -n "$RANLIB"; then
7123 ac_cv_prog_RANLIB=$RANLIB
7124elif test -n "$ac_cv_prog_RANLIB"; then
7125 RANLIB=$ac_cv_prog_RANLIB
7126fi
7127
7128if test -n "$ac_cv_prog_RANLIB"; then
7129 for ncn_progname in ranlib; do
7130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7131set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7132echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7134if test "${ac_cv_prog_RANLIB+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 if test -n "$RANLIB"; then
7138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7147 ac_cv_prog_RANLIB="${ncn_progname}"
7148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151done
7152done
7153
7154fi
7155fi
7156RANLIB=$ac_cv_prog_RANLIB
7157if test -n "$RANLIB"; then
2aeb72e9
DD
7158 echo "$as_me:$LINENO: result: $RANLIB" >&5
7159echo "${ECHO_T}$RANLIB" >&6
278a7a38 7160else
2aeb72e9
DD
7161 echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
278a7a38
AO
7163fi
7164
7165 done
7166fi
ca9f4b81 7167
278a7a38 7168for ncn_progname in ranlib; do
2693c0b0
PB
7169 if test -n "$ncn_tool_prefix"; then
7170 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7171set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7172echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7174if test "${ac_cv_prog_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7176else
7177 if test -n "$RANLIB"; then
7178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7179else
1c710c3c
DJ
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7187 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191done
7192done
7193
ca9f4b81
AO
7194fi
7195fi
1c710c3c 7196RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7197if test -n "$RANLIB"; then
2aeb72e9
DD
7198 echo "$as_me:$LINENO: result: $RANLIB" >&5
7199echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7200else
2aeb72e9
DD
7201 echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6
ca9f4b81
AO
7203fi
7204
2693c0b0
PB
7205 fi
7206 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7208set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7209echo "$as_me:$LINENO: checking for $ac_word" >&5
7210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7211if test "${ac_cv_prog_RANLIB+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7213else
2693c0b0
PB
7214 if test -n "$RANLIB"; then
7215 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7216else
1c710c3c
DJ
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7224 ac_cv_prog_RANLIB="${ncn_progname}"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228done
7229done
7230
ca9f4b81
AO
7231fi
7232fi
1c710c3c 7233RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7234if test -n "$RANLIB"; then
2aeb72e9
DD
7235 echo "$as_me:$LINENO: result: $RANLIB" >&5
7236echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7237else
2aeb72e9
DD
7238 echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6
ca9f4b81 7240fi
1c710c3c 7241
ca9f4b81 7242 fi
2693c0b0
PB
7243 test -n "$ac_cv_prog_RANLIB" && break
7244done
7245
7246if test -z "$ac_cv_prog_RANLIB" ; then
7247 RANLIB=":"
ca9f4b81
AO
7248fi
7249
278a7a38
AO
7250
7251
7252if test -n "$STRIP"; then
7253 ac_cv_prog_STRIP=$STRIP
7254elif test -n "$ac_cv_prog_STRIP"; then
7255 STRIP=$ac_cv_prog_STRIP
7256fi
7257
7258if test -n "$ac_cv_prog_STRIP"; then
7259 for ncn_progname in strip; do
7260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7261set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7262echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7264if test "${ac_cv_prog_STRIP+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 if test -n "$STRIP"; then
7268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7277 ac_cv_prog_STRIP="${ncn_progname}"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282done
7283
7284fi
7285fi
7286STRIP=$ac_cv_prog_STRIP
7287if test -n "$STRIP"; then
2aeb72e9
DD
7288 echo "$as_me:$LINENO: result: $STRIP" >&5
7289echo "${ECHO_T}$STRIP" >&6
278a7a38 7290else
2aeb72e9
DD
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
278a7a38
AO
7293fi
7294
7295 done
7296fi
7297
7298for ncn_progname in strip; do
2abefe3d
PB
7299 if test -n "$ncn_tool_prefix"; then
7300 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7301set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7302echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7304if test "${ac_cv_prog_STRIP+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7306else
7307 if test -n "$STRIP"; then
7308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7309else
1c710c3c
DJ
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7317 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322done
7323
2abefe3d
PB
7324fi
7325fi
1c710c3c 7326STRIP=$ac_cv_prog_STRIP
2abefe3d 7327if test -n "$STRIP"; then
2aeb72e9
DD
7328 echo "$as_me:$LINENO: result: $STRIP" >&5
7329echo "${ECHO_T}$STRIP" >&6
2abefe3d 7330else
2aeb72e9
DD
7331 echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
2abefe3d
PB
7333fi
7334
7335 fi
7336 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7338set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7339echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7341if test "${ac_cv_prog_STRIP+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7343else
7344 if test -n "$STRIP"; then
7345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7346else
1c710c3c
DJ
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7354 ac_cv_prog_STRIP="${ncn_progname}"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358done
7359done
7360
2abefe3d
PB
7361fi
7362fi
1c710c3c 7363STRIP=$ac_cv_prog_STRIP
2abefe3d 7364if test -n "$STRIP"; then
2aeb72e9
DD
7365 echo "$as_me:$LINENO: result: $STRIP" >&5
7366echo "${ECHO_T}$STRIP" >&6
2abefe3d 7367else
2aeb72e9
DD
7368 echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6
2abefe3d 7370fi
1c710c3c 7371
2abefe3d
PB
7372 fi
7373 test -n "$ac_cv_prog_STRIP" && break
7374done
7375
7376if test -z "$ac_cv_prog_STRIP" ; then
7377 STRIP=":"
7378fi
7379
278a7a38
AO
7380
7381
7382if test -n "$WINDRES"; then
7383 ac_cv_prog_WINDRES=$WINDRES
7384elif test -n "$ac_cv_prog_WINDRES"; then
7385 WINDRES=$ac_cv_prog_WINDRES
7386fi
7387
7388if test -n "$ac_cv_prog_WINDRES"; then
7389 for ncn_progname in windres; do
7390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7391set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7392echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7394if test "${ac_cv_prog_WINDRES+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397 if test -n "$WINDRES"; then
7398 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7407 ac_cv_prog_WINDRES="${ncn_progname}"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411done
7412done
7413
7414fi
7415fi
7416WINDRES=$ac_cv_prog_WINDRES
7417if test -n "$WINDRES"; then
2aeb72e9
DD
7418 echo "$as_me:$LINENO: result: $WINDRES" >&5
7419echo "${ECHO_T}$WINDRES" >&6
278a7a38 7420else
2aeb72e9
DD
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
278a7a38
AO
7423fi
7424
7425 done
7426fi
7427
7428for ncn_progname in windres; do
2693c0b0
PB
7429 if test -n "$ncn_tool_prefix"; then
7430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7431set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7434if test "${ac_cv_prog_WINDRES+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7436else
7437 if test -n "$WINDRES"; then
7438 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7439else
1c710c3c
DJ
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7447 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
ca9f4b81
AO
7454fi
7455fi
1c710c3c 7456WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7457if test -n "$WINDRES"; then
2aeb72e9
DD
7458 echo "$as_me:$LINENO: result: $WINDRES" >&5
7459echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7460else
2aeb72e9
DD
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
ca9f4b81
AO
7463fi
7464
2693c0b0
PB
7465 fi
7466 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7468set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7469echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7471if test "${ac_cv_prog_WINDRES+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7473else
2693c0b0
PB
7474 if test -n "$WINDRES"; then
7475 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7476else
1c710c3c
DJ
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7484 ac_cv_prog_WINDRES="${ncn_progname}"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488done
7489done
7490
ca9f4b81
AO
7491fi
7492fi
1c710c3c 7493WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7494if test -n "$WINDRES"; then
2aeb72e9
DD
7495 echo "$as_me:$LINENO: result: $WINDRES" >&5
7496echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7497else
2aeb72e9
DD
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
ca9f4b81 7500fi
1c710c3c 7501
2693c0b0
PB
7502 fi
7503 test -n "$ac_cv_prog_WINDRES" && break
7504done
7505
7506if test -z "$ac_cv_prog_WINDRES" ; then
7507 set dummy windres
7508 if test $build = $host ; then
7509 WINDRES="$2"
ca9f4b81 7510 else
2693c0b0 7511 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7512 fi
ca9f4b81
AO
7513fi
7514
278a7a38
AO
7515
7516
901119ae
KT
7517if test -n "$WINDMC"; then
7518 ac_cv_prog_WINDMC=$WINDMC
7519elif test -n "$ac_cv_prog_WINDMC"; then
7520 WINDMC=$ac_cv_prog_WINDMC
7521fi
7522
7523if test -n "$ac_cv_prog_WINDMC"; then
7524 for ncn_progname in windmc; do
7525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7526set dummy ${ncn_progname}; ac_word=$2
7527echo "$as_me:$LINENO: checking for $ac_word" >&5
7528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7529if test "${ac_cv_prog_WINDMC+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 if test -n "$WINDMC"; then
7533 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_WINDMC="${ncn_progname}"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548
7549fi
7550fi
7551WINDMC=$ac_cv_prog_WINDMC
7552if test -n "$WINDMC"; then
7553 echo "$as_me:$LINENO: result: $WINDMC" >&5
7554echo "${ECHO_T}$WINDMC" >&6
7555else
7556 echo "$as_me:$LINENO: result: no" >&5
7557echo "${ECHO_T}no" >&6
7558fi
7559
7560 done
7561fi
7562
7563for ncn_progname in windmc; do
7564 if test -n "$ncn_tool_prefix"; then
7565 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7566set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7567echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569if test "${ac_cv_prog_WINDMC+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 if test -n "$WINDMC"; then
7573 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588
7589fi
7590fi
7591WINDMC=$ac_cv_prog_WINDMC
7592if test -n "$WINDMC"; then
7593 echo "$as_me:$LINENO: result: $WINDMC" >&5
7594echo "${ECHO_T}$WINDMC" >&6
7595else
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598fi
7599
7600 fi
7601 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7603set dummy ${ncn_progname}; ac_word=$2
7604echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7606if test "${ac_cv_prog_WINDMC+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 if test -n "$WINDMC"; then
7610 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_WINDMC="${ncn_progname}"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623done
7624done
7625
7626fi
7627fi
7628WINDMC=$ac_cv_prog_WINDMC
7629if test -n "$WINDMC"; then
7630 echo "$as_me:$LINENO: result: $WINDMC" >&5
7631echo "${ECHO_T}$WINDMC" >&6
7632else
7633 echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635fi
7636
7637 fi
7638 test -n "$ac_cv_prog_WINDMC" && break
7639done
7640
7641if test -z "$ac_cv_prog_WINDMC" ; then
7642 set dummy windmc
7643 if test $build = $host ; then
7644 WINDMC="$2"
7645 else
7646 WINDMC="${ncn_tool_prefix}$2"
7647 fi
7648fi
7649
7650
7651
278a7a38
AO
7652if test -n "$OBJCOPY"; then
7653 ac_cv_prog_OBJCOPY=$OBJCOPY
7654elif test -n "$ac_cv_prog_OBJCOPY"; then
7655 OBJCOPY=$ac_cv_prog_OBJCOPY
7656fi
7657
7658if test -n "$ac_cv_prog_OBJCOPY"; then
7659 for ncn_progname in objcopy; do
7660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7661set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7662echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7664if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667 if test -n "$OBJCOPY"; then
7668 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7669else
7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7677 ac_cv_prog_OBJCOPY="${ncn_progname}"
7678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7680 fi
7681done
7682done
7683
7684fi
7685fi
7686OBJCOPY=$ac_cv_prog_OBJCOPY
7687if test -n "$OBJCOPY"; then
2aeb72e9
DD
7688 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7689echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7690else
2aeb72e9
DD
7691 echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
278a7a38
AO
7693fi
7694
7695 done
7696fi
7697
7698for ncn_progname in objcopy; do
2693c0b0
PB
7699 if test -n "$ncn_tool_prefix"; then
7700 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7701set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7704if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7706else
7707 if test -n "$OBJCOPY"; then
7708 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7709else
1c710c3c
DJ
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7717 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
ca9f4b81
AO
7724fi
7725fi
1c710c3c 7726OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7727if test -n "$OBJCOPY"; then
2aeb72e9
DD
7728 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7729echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7730else
2aeb72e9
DD
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
ca9f4b81
AO
7733fi
7734
2693c0b0
PB
7735 fi
7736 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7738set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7739echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7741if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7743else
2693c0b0
PB
7744 if test -n "$OBJCOPY"; then
7745 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7746else
1c710c3c
DJ
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7754 ac_cv_prog_OBJCOPY="${ncn_progname}"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759done
7760
ca9f4b81
AO
7761fi
7762fi
1c710c3c 7763OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7764if test -n "$OBJCOPY"; then
2aeb72e9
DD
7765 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7766echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7767else
2aeb72e9
DD
7768 echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6
ca9f4b81 7770fi
1c710c3c 7771
2693c0b0
PB
7772 fi
7773 test -n "$ac_cv_prog_OBJCOPY" && break
7774done
7775
7776if test -z "$ac_cv_prog_OBJCOPY" ; then
7777 set dummy objcopy
7778 if test $build = $host ; then
7779 OBJCOPY="$2"
ca9f4b81 7780 else
2693c0b0 7781 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7782 fi
ca9f4b81
AO
7783fi
7784
278a7a38
AO
7785
7786
7787if test -n "$OBJDUMP"; then
7788 ac_cv_prog_OBJDUMP=$OBJDUMP
7789elif test -n "$ac_cv_prog_OBJDUMP"; then
7790 OBJDUMP=$ac_cv_prog_OBJDUMP
7791fi
7792
7793if test -n "$ac_cv_prog_OBJDUMP"; then
7794 for ncn_progname in objdump; do
7795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7796set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7797echo "$as_me:$LINENO: checking for $ac_word" >&5
7798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7799if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 if test -n "$OBJDUMP"; then
7803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7812 ac_cv_prog_OBJDUMP="${ncn_progname}"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816done
7817done
7818
7819fi
7820fi
7821OBJDUMP=$ac_cv_prog_OBJDUMP
7822if test -n "$OBJDUMP"; then
2aeb72e9
DD
7823 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7824echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7825else
2aeb72e9
DD
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
278a7a38
AO
7828fi
7829
7830 done
7831fi
7832
7833for ncn_progname in objdump; do
2693c0b0
PB
7834 if test -n "$ncn_tool_prefix"; then
7835 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7836set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7839if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7841else
7842 if test -n "$OBJDUMP"; then
7843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7844else
1c710c3c
DJ
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7852 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858
ca9f4b81
AO
7859fi
7860fi
1c710c3c 7861OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7862if test -n "$OBJDUMP"; then
2aeb72e9
DD
7863 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7864echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7865else
2aeb72e9
DD
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
ca9f4b81
AO
7868fi
7869
2693c0b0
PB
7870 fi
7871 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7873set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7874echo "$as_me:$LINENO: checking for $ac_word" >&5
7875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7876if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7878else
2693c0b0
PB
7879 if test -n "$OBJDUMP"; then
7880 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7881else
1c710c3c
DJ
7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7889 ac_cv_prog_OBJDUMP="${ncn_progname}"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893done
7894done
7895
ca9f4b81
AO
7896fi
7897fi
1c710c3c 7898OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7899if test -n "$OBJDUMP"; then
2aeb72e9
DD
7900 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7901echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7902else
2aeb72e9
DD
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
ca9f4b81 7905fi
1c710c3c 7906
2693c0b0
PB
7907 fi
7908 test -n "$ac_cv_prog_OBJDUMP" && break
7909done
7910
7911if test -z "$ac_cv_prog_OBJDUMP" ; then
7912 set dummy objdump
7913 if test $build = $host ; then
7914 OBJDUMP="$2"
ca9f4b81 7915 else
2693c0b0 7916 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7917 fi
ca9f4b81
AO
7918fi
7919
671aa708
NN
7920
7921
7922
7923
7924
7925
2abefe3d 7926# Target tools.
1c710c3c 7927
2aeb72e9 7928# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7929if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7930 withval="$with_build_time_tools"
7931 case x"$withval" in
e8b05380
PB
7932 x/*) ;;
7933 *)
7934 with_build_time_tools=
1c710c3c
DJ
7935 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7936echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7937 ;;
7938 esac
ca9f4b81 7939else
e8b05380 7940 with_build_time_tools=
2aeb72e9 7941fi;
ca9f4b81 7942
278a7a38
AO
7943
7944
7945if test -n "$CC_FOR_TARGET"; then
7946 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7947elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7948 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7949fi
7950
7951if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7952 for ncn_progname in cc gcc; do
7953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7954set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7955echo "$as_me:$LINENO: checking for $ac_word" >&5
7956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7957if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960 if test -n "$CC_FOR_TARGET"; then
7961 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7962else
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7970 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7973 fi
7974done
7975done
7976
7977fi
7978fi
7979CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7980if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7981 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7982echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 7983else
2aeb72e9
DD
7984 echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6
278a7a38
AO
7986fi
7987
7988 done
7989fi
7990
7991if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7992 for ncn_progname in cc gcc; do
2aeb72e9
DD
7993 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7994echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7995 if test -x $with_build_time_tools/${ncn_progname}; then
7996 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
7997 echo "$as_me:$LINENO: result: yes" >&5
7998echo "${ECHO_T}yes" >&6
72a7ab82 7999 break
e8b05380 8000 else
2aeb72e9
DD
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
72a7ab82
AP
8003 fi
8004 done
4de997d1
PB
8005fi
8006
e8b05380
PB
8007if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8008 for ncn_progname in cc gcc; do
8009 if test -n "$ncn_target_tool_prefix"; then
8010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8011set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8012echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8014if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8016else
8017 if test -n "$CC_FOR_TARGET"; then
8018 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8019else
1c710c3c
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8027 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033
4de997d1
PB
8034fi
8035fi
1c710c3c 8036CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8037if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8038 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8039echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8040else
2aeb72e9
DD
8041 echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6
4de997d1
PB
8043fi
8044
e8b05380
PB
8045 fi
8046 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8048set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8051if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8053else
2693c0b0
PB
8054 if test -n "$CC_FOR_TARGET"; then
8055 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8056else
1c710c3c
DJ
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8064 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
4de997d1
PB
8071fi
8072fi
1c710c3c 8073CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8074if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8075 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8076echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8077else
2aeb72e9
DD
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
4de997d1 8080fi
1c710c3c 8081
e8b05380
PB
8082 fi
8083 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8084 done
8085fi
1c710c3c 8086
2693c0b0
PB
8087if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8088 set dummy cc gcc
8089 if test $build = $target ; then
8090 CC_FOR_TARGET="$2"
4de997d1 8091 else
2693c0b0 8092 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8093 fi
1c00b503
PB
8094else
8095 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8096fi
8097
278a7a38
AO
8098
8099
8100if test -n "$CXX_FOR_TARGET"; then
8101 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8102elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8103 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8104fi
8105
8106if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8107 for ncn_progname in c++ g++ cxx gxx; do
8108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8109set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8110echo "$as_me:$LINENO: checking for $ac_word" >&5
8111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8112if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 if test -n "$CXX_FOR_TARGET"; then
8116 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8125 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129done
8130done
8131
8132fi
8133fi
8134CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8135if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8136 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8137echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8138else
2aeb72e9
DD
8139 echo "$as_me:$LINENO: result: no" >&5
8140echo "${ECHO_T}no" >&6
278a7a38
AO
8141fi
8142
8143 done
8144fi
8145
8146if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8147 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8148 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8149echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8150 if test -x $with_build_time_tools/${ncn_progname}; then
8151 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
e8b05380
PB
8154 break
8155 else
2aeb72e9
DD
8156 echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6
e8b05380
PB
8158 fi
8159 done
8160fi
8161
8162if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8163 for ncn_progname in c++ g++ cxx gxx; do
8164 if test -n "$ncn_target_tool_prefix"; then
8165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8166set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8167echo "$as_me:$LINENO: checking for $ac_word" >&5
8168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8169if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8171else
8172 if test -n "$CXX_FOR_TARGET"; then
8173 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8174else
1c710c3c
DJ
8175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8182 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186done
8187done
8188
4de997d1
PB
8189fi
8190fi
1c710c3c 8191CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8192if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8193 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8194echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8195else
2aeb72e9
DD
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
4de997d1
PB
8198fi
8199
e8b05380
PB
8200 fi
8201 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8203set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8204echo "$as_me:$LINENO: checking for $ac_word" >&5
8205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8206if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8208else
2693c0b0
PB
8209 if test -n "$CXX_FOR_TARGET"; then
8210 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8211else
1c710c3c
DJ
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8219 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224done
8225
4de997d1
PB
8226fi
8227fi
1c710c3c 8228CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8229if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8230 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8231echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8232else
2aeb72e9
DD
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
4de997d1 8235fi
1c710c3c 8236
e8b05380
PB
8237 fi
8238 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8239 done
8240fi
1c710c3c 8241
2693c0b0
PB
8242if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8243 set dummy c++ g++ cxx gxx
8244 if test $build = $target ; then
8245 CXX_FOR_TARGET="$2"
4de997d1 8246 else
2693c0b0 8247 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8248 fi
1c00b503
PB
8249else
8250 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8251fi
8252
278a7a38
AO
8253
8254
8255if test -n "$GCC_FOR_TARGET"; then
8256 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8257elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8258 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8259fi
8260
8261if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8262 for ncn_progname in gcc; do
8263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8264set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8265echo "$as_me:$LINENO: checking for $ac_word" >&5
8266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8267if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270 if test -n "$GCC_FOR_TARGET"; then
8271 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8272else
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8280 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284done
8285done
8286
8287fi
8288fi
8289GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8290if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8291 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8292echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8293else
2aeb72e9
DD
8294 echo "$as_me:$LINENO: result: no" >&5
8295echo "${ECHO_T}no" >&6
278a7a38
AO
8296fi
8297
8298 done
8299fi
8300
8301if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8302 for ncn_progname in gcc; do
2aeb72e9
DD
8303 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8304echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8305 if test -x $with_build_time_tools/${ncn_progname}; then
8306 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8307 echo "$as_me:$LINENO: result: yes" >&5
8308echo "${ECHO_T}yes" >&6
e8b05380
PB
8309 break
8310 else
2aeb72e9
DD
8311 echo "$as_me:$LINENO: result: no" >&5
8312echo "${ECHO_T}no" >&6
e8b05380
PB
8313 fi
8314 done
8315fi
8316
8317if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8318 for ncn_progname in gcc; do
8319 if test -n "$ncn_target_tool_prefix"; then
8320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8321set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8322echo "$as_me:$LINENO: checking for $ac_word" >&5
8323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8324if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8326else
e8b05380
PB
8327 if test -n "$GCC_FOR_TARGET"; then
8328 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8329else
1c710c3c
DJ
8330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8337 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341done
8342done
8343
ca9f4b81
AO
8344fi
8345fi
1c710c3c 8346GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8347if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8348 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8349echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8350else
2aeb72e9
DD
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
ca9f4b81
AO
8353fi
8354
e8b05380
PB
8355 fi
8356 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8358set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8359echo "$as_me:$LINENO: checking for $ac_word" >&5
8360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8361if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8363else
e8b05380
PB
8364 if test -n "$GCC_FOR_TARGET"; then
8365 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8366else
1c710c3c
DJ
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8374 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378done
8379done
8380
ca9f4b81
AO
8381fi
8382fi
1c710c3c 8383GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8384if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8385 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8386echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8387else
2aeb72e9
DD
8388 echo "$as_me:$LINENO: result: no" >&5
8389echo "${ECHO_T}no" >&6
ca9f4b81 8390fi
1c710c3c 8391
e8b05380
PB
8392 fi
8393 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8394 done
8395fi
1c710c3c 8396
e8b05380
PB
8397if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8398 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8399else
8400 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8401fi
8402
278a7a38
AO
8403
8404
8405if test -n "$GCJ_FOR_TARGET"; then
8406 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8407elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8408 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8409fi
8410
8411if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8412 for ncn_progname in gcj; do
8413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8414set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8415echo "$as_me:$LINENO: checking for $ac_word" >&5
8416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8417if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420 if test -n "$GCJ_FOR_TARGET"; then
8421 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8422else
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8430 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8433 fi
8434done
8435done
8436
8437fi
8438fi
8439GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8440if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8441 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8442echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8443else
2aeb72e9
DD
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
278a7a38
AO
8446fi
8447
8448 done
8449fi
8450
8451if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8452 for ncn_progname in gcj; do
2aeb72e9
DD
8453 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8454echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8455 if test -x $with_build_time_tools/${ncn_progname}; then
8456 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8457 echo "$as_me:$LINENO: result: yes" >&5
8458echo "${ECHO_T}yes" >&6
e8b05380
PB
8459 break
8460 else
2aeb72e9
DD
8461 echo "$as_me:$LINENO: result: no" >&5
8462echo "${ECHO_T}no" >&6
e8b05380
PB
8463 fi
8464 done
8465fi
8466
8467if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8468 for ncn_progname in gcj; do
8469 if test -n "$ncn_target_tool_prefix"; then
8470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8471set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8472echo "$as_me:$LINENO: checking for $ac_word" >&5
8473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8474if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8476else
fb0103e5
RG
8477 if test -n "$GCJ_FOR_TARGET"; then
8478 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8479else
1c710c3c
DJ
8480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481for as_dir in $PATH
8482do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8487 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491done
8492done
8493
e8b05380
PB
8494fi
8495fi
278a7a38
AO
8496GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8497if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8498 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8499echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8500else
2aeb72e9
DD
8501 echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6
278a7a38
AO
8503fi
8504
8505 fi
8506 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8509echo "$as_me:$LINENO: checking for $ac_word" >&5
8510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8511if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513else
8514 if test -n "$GCJ_FOR_TARGET"; then
8515 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8516else
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8524 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529done
8530
8531fi
8532fi
8533GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8534if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8535 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8536echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8537else
2aeb72e9
DD
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
278a7a38
AO
8540fi
8541
8542 fi
8543 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8544 done
8545fi
8546
8547if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8548 set dummy gcj
8549 if test $build = $target ; then
8550 GCJ_FOR_TARGET="$2"
8551 else
8552 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8553 fi
1c00b503
PB
8554else
8555 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8556fi
8557
8558
8559
8560if test -n "$GFORTRAN_FOR_TARGET"; then
8561 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8562elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8563 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8564fi
8565
278a7a38
AO
8566if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8567 for ncn_progname in gfortran; do
8568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8569set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8570echo "$as_me:$LINENO: checking for $ac_word" >&5
8571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8572if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8573 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8574else
278a7a38
AO
8575 if test -n "$GFORTRAN_FOR_TARGET"; then
8576 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8577else
1c710c3c
DJ
8578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579for as_dir in $PATH
8580do
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8585 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8588 fi
8589done
8590done
8591
e8b05380
PB
8592fi
8593fi
278a7a38
AO
8594GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8595if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8596 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8597echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8598else
2aeb72e9
DD
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
e8b05380 8601fi
1c710c3c 8602
e8b05380
PB
8603 done
8604fi
1c710c3c 8605
278a7a38 8606if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8607 for ncn_progname in gfortran; do
2aeb72e9
DD
8608 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8609echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8610 if test -x $with_build_time_tools/${ncn_progname}; then
8611 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8612 echo "$as_me:$LINENO: result: yes" >&5
8613echo "${ECHO_T}yes" >&6
e8b05380
PB
8614 break
8615 else
2aeb72e9
DD
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
e8b05380
PB
8618 fi
8619 done
8620fi
8621
8622if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8623 for ncn_progname in gfortran; do
8624 if test -n "$ncn_target_tool_prefix"; then
8625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8626set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8627echo "$as_me:$LINENO: checking for $ac_word" >&5
8628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8629if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8631else
8632 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8633 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8642 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646done
8647done
8648
e8b05380
PB
8649fi
8650fi
1c710c3c 8651GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8652if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8653 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8654echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8655else
2aeb72e9
DD
8656 echo "$as_me:$LINENO: result: no" >&5
8657echo "${ECHO_T}no" >&6
e8b05380
PB
8658fi
8659
8660 fi
8661 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8663set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8664echo "$as_me:$LINENO: checking for $ac_word" >&5
8665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8666if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8668else
8669 if test -n "$GFORTRAN_FOR_TARGET"; then
8670 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8671else
1c710c3c
DJ
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8679 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683done
8684done
8685
e8b05380
PB
8686fi
8687fi
1c710c3c 8688GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8689if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8690 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8691echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8692else
2aeb72e9
DD
8693 echo "$as_me:$LINENO: result: no" >&5
8694echo "${ECHO_T}no" >&6
e8b05380 8695fi
1c710c3c 8696
e8b05380
PB
8697 fi
8698 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8699 done
8700fi
1c710c3c 8701
e8b05380
PB
8702if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8703 set dummy gfortran
2693c0b0 8704 if test $build = $target ; then
e8b05380 8705 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8706 else
e8b05380
PB
8707 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8708 fi
1c00b503
PB
8709else
8710 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8711fi
8712
8713
8714
e8b05380
PB
8715cat > conftest.c << \EOF
8716#ifdef __GNUC__
8717 gcc_yay;
8718#endif
8719EOF
8720if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8721 have_gcc_for_target=yes
8722else
8723 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8724 have_gcc_for_target=no
8725fi
8726rm conftest.c
8727
8728
8729
8730
8731if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8732 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8733 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8734echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8735 if test -x $with_build_time_tools/ar; then
8736 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8737 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8738 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8739echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8740 else
2aeb72e9
DD
8741 echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
d1f8db0c 8743 fi
e8b05380
PB
8744 elif test $build != $host && test $have_gcc_for_target = yes; then
8745 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8746 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8747 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8748 fi
8749fi
3e19841a 8750if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8751 # Extract the first word of "ar", so it can be a program name with args.
8752set dummy ar; ac_word=$2
2aeb72e9
DD
8753echo "$as_me:$LINENO: checking for $ac_word" >&5
8754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8755if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8757else
1c710c3c
DJ
8758 case $AR_FOR_TARGET in
8759 [\\/]* | ?:[\\/]*)
e8b05380
PB
8760 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8761 ;;
e8b05380 8762 *)
1c710c3c
DJ
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764for as_dir in $gcc_cv_tool_dirs
8765do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8770 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8773 fi
8774done
8775done
8776
e8b05380
PB
8777 ;;
8778esac
8779fi
1c710c3c 8780AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8781
e8b05380 8782if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8783 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8784echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8785else
2aeb72e9
DD
8786 echo "$as_me:$LINENO: result: no" >&5
8787echo "${ECHO_T}no" >&6
4de997d1
PB
8788fi
8789
e8b05380
PB
8790fi
8791if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8792
8793
8794if test -n "$AR_FOR_TARGET"; then
8795 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8796elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8797 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8798fi
8799
8800if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8801 for ncn_progname in ar; do
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8804echo "$as_me:$LINENO: checking for $ac_word" >&5
8805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8806if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809 if test -n "$AR_FOR_TARGET"; then
8810 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8819 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824done
8825
8826fi
8827fi
8828AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8829if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8830 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8831echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8832else
2aeb72e9
DD
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
278a7a38
AO
8835fi
8836
8837 done
8838fi
8839
8840if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8841 for ncn_progname in ar; do
2aeb72e9
DD
8842 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8843echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8844 if test -x $with_build_time_tools/${ncn_progname}; then
8845 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
e8b05380
PB
8848 break
8849 else
2aeb72e9
DD
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
e8b05380
PB
8852 fi
8853 done
8854fi
8855
8856if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8857 for ncn_progname in ar; do
8858 if test -n "$ncn_target_tool_prefix"; then
8859 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8860set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8861echo "$as_me:$LINENO: checking for $ac_word" >&5
8862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8863if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8865else
e8b05380
PB
8866 if test -n "$AR_FOR_TARGET"; then
8867 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8868else
1c710c3c
DJ
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8876 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880done
8881done
8882
4de997d1
PB
8883fi
8884fi
1c710c3c 8885AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8886if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8887 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8888echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8889else
2aeb72e9
DD
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
4de997d1
PB
8892fi
8893
e8b05380
PB
8894 fi
8895 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8897set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8898echo "$as_me:$LINENO: checking for $ac_word" >&5
8899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8900if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8902else
8903 if test -n "$AR_FOR_TARGET"; then
8904 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8905else
1c710c3c
DJ
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8913 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917done
8918done
8919
e8b05380
PB
8920fi
8921fi
1c710c3c 8922AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8923if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8924 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8925echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8926else
2aeb72e9
DD
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
e8b05380 8929fi
1c710c3c 8930
e8b05380
PB
8931 fi
8932 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8933 done
8934fi
1c710c3c 8935
e8b05380
PB
8936if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8937 set dummy ar
8938 if test $build = $target ; then
8939 AR_FOR_TARGET="$2"
8940 else
8941 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8942 fi
1c00b503
PB
8943else
8944 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8945fi
8946
d1f8db0c
PB
8947else
8948 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8949fi
8950
8951
8952
8953
8954if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8955 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8956 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8957echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8958 if test -x $with_build_time_tools/as; then
8959 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8960 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
8961 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8962echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8963 else
2aeb72e9
DD
8964 echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
d1f8db0c 8966 fi
e8b05380
PB
8967 elif test $build != $host && test $have_gcc_for_target = yes; then
8968 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
8969 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8970 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
8971 fi
8972fi
3e19841a 8973if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8974 # Extract the first word of "as", so it can be a program name with args.
8975set dummy as; ac_word=$2
2aeb72e9
DD
8976echo "$as_me:$LINENO: checking for $ac_word" >&5
8977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8978if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8980else
1c710c3c
DJ
8981 case $AS_FOR_TARGET in
8982 [\\/]* | ?:[\\/]*)
e8b05380
PB
8983 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8984 ;;
e8b05380 8985 *)
1c710c3c
DJ
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $gcc_cv_tool_dirs
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8993 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8996 fi
8997done
8998done
8999
e8b05380
PB
9000 ;;
9001esac
9002fi
1c710c3c 9003AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9004
e8b05380 9005if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9006 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9007echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9008else
2aeb72e9
DD
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
e8b05380
PB
9011fi
9012
9013fi
9014if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9015
9016
9017if test -n "$AS_FOR_TARGET"; then
9018 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9019elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9020 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9021fi
9022
9023if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9024 for ncn_progname in as; do
9025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9026set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9027echo "$as_me:$LINENO: checking for $ac_word" >&5
9028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9029if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9031else
9032 if test -n "$AS_FOR_TARGET"; then
9033 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9034else
9035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036for as_dir in $PATH
9037do
9038 IFS=$as_save_IFS
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9042 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 break 2
9045 fi
9046done
9047done
9048
9049fi
9050fi
9051AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9052if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9053 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9054echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9055else
2aeb72e9
DD
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
278a7a38
AO
9058fi
9059
9060 done
9061fi
9062
9063if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9064 for ncn_progname in as; do
2aeb72e9
DD
9065 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9066echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9067 if test -x $with_build_time_tools/${ncn_progname}; then
9068 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9069 echo "$as_me:$LINENO: result: yes" >&5
9070echo "${ECHO_T}yes" >&6
e8b05380
PB
9071 break
9072 else
2aeb72e9
DD
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
e8b05380
PB
9075 fi
9076 done
9077fi
9078
9079if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9080 for ncn_progname in as; do
9081 if test -n "$ncn_target_tool_prefix"; then
9082 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9083set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9084echo "$as_me:$LINENO: checking for $ac_word" >&5
9085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9086if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9088else
9089 if test -n "$AS_FOR_TARGET"; then
9090 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9091else
1c710c3c
DJ
9092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093for as_dir in $PATH
9094do
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9099 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103done
9104done
9105
e8b05380
PB
9106fi
9107fi
1c710c3c 9108AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9109if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9110 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9111echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9112else
2aeb72e9
DD
9113 echo "$as_me:$LINENO: result: no" >&5
9114echo "${ECHO_T}no" >&6
e8b05380
PB
9115fi
9116
9117 fi
9118 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9120set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9121echo "$as_me:$LINENO: checking for $ac_word" >&5
9122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9123if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9125else
e8b05380
PB
9126 if test -n "$AS_FOR_TARGET"; then
9127 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9128else
1c710c3c
DJ
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9136 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141done
9142
4de997d1
PB
9143fi
9144fi
1c710c3c 9145AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9146if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9147 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9148echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9149else
2aeb72e9
DD
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
4de997d1 9152fi
1c710c3c 9153
e8b05380
PB
9154 fi
9155 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9156 done
9157fi
1c710c3c 9158
e8b05380
PB
9159if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9160 set dummy as
9161 if test $build = $target ; then
9162 AS_FOR_TARGET="$2"
9163 else
9164 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9165 fi
1c00b503
PB
9166else
9167 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9168fi
2693c0b0 9169
d1f8db0c
PB
9170else
9171 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9172fi
9173
e8b05380
PB
9174
9175
9176
9177if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9178 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9179 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9180echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9181 if test -x $with_build_time_tools/dlltool; then
9182 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9183 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9184 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9185echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9186 else
2aeb72e9
DD
9187 echo "$as_me:$LINENO: result: no" >&5
9188echo "${ECHO_T}no" >&6
d1f8db0c 9189 fi
e8b05380
PB
9190 elif test $build != $host && test $have_gcc_for_target = yes; then
9191 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9192 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9193 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9194 fi
9195fi
3e19841a 9196if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9197 # Extract the first word of "dlltool", so it can be a program name with args.
9198set dummy dlltool; ac_word=$2
2aeb72e9
DD
9199echo "$as_me:$LINENO: checking for $ac_word" >&5
9200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9201if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9203else
1c710c3c
DJ
9204 case $DLLTOOL_FOR_TARGET in
9205 [\\/]* | ?:[\\/]*)
e8b05380
PB
9206 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9207 ;;
e8b05380 9208 *)
1c710c3c
DJ
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $gcc_cv_tool_dirs
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9216 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9219 fi
9220done
9221done
9222
e8b05380
PB
9223 ;;
9224esac
4de997d1 9225fi
1c710c3c 9226DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9227
e8b05380 9228if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9229 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9230echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9231else
2aeb72e9
DD
9232 echo "$as_me:$LINENO: result: no" >&5
9233echo "${ECHO_T}no" >&6
4de997d1
PB
9234fi
9235
e8b05380
PB
9236fi
9237if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9238
9239
9240if test -n "$DLLTOOL_FOR_TARGET"; then
9241 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9242elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9243 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9244fi
9245
9246if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9247 for ncn_progname in dlltool; do
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9250echo "$as_me:$LINENO: checking for $ac_word" >&5
9251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9252if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254else
9255 if test -n "$DLLTOOL_FOR_TARGET"; then
9256 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9257else
9258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259for as_dir in $PATH
9260do
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9265 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9268 fi
9269done
9270done
9271
9272fi
9273fi
9274DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9275if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9276 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9277echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9278else
2aeb72e9
DD
9279 echo "$as_me:$LINENO: result: no" >&5
9280echo "${ECHO_T}no" >&6
278a7a38
AO
9281fi
9282
9283 done
9284fi
9285
9286if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9287 for ncn_progname in dlltool; do
2aeb72e9
DD
9288 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9289echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9290 if test -x $with_build_time_tools/${ncn_progname}; then
9291 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9292 echo "$as_me:$LINENO: result: yes" >&5
9293echo "${ECHO_T}yes" >&6
e8b05380
PB
9294 break
9295 else
2aeb72e9
DD
9296 echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
e8b05380
PB
9298 fi
9299 done
9300fi
9301
9302if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9303 for ncn_progname in dlltool; do
9304 if test -n "$ncn_target_tool_prefix"; then
9305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9307echo "$as_me:$LINENO: checking for $ac_word" >&5
9308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9309if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9311else
e8b05380
PB
9312 if test -n "$DLLTOOL_FOR_TARGET"; then
9313 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9314else
1c710c3c
DJ
9315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316for as_dir in $PATH
9317do
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9322 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9325 fi
9326done
9327done
9328
4de997d1
PB
9329fi
9330fi
1c710c3c 9331DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9332if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9333 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9334echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9335else
2aeb72e9
DD
9336 echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
4de997d1 9338fi
4de997d1 9339
e8b05380
PB
9340 fi
9341 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9343set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9344echo "$as_me:$LINENO: checking for $ac_word" >&5
9345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9348else
e8b05380
PB
9349 if test -n "$DLLTOOL_FOR_TARGET"; then
9350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9351else
1c710c3c
DJ
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9362 fi
9363done
9364done
9365
4de997d1
PB
9366fi
9367fi
1c710c3c 9368DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9369if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9370 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9371echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9372else
2aeb72e9
DD
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
4de997d1 9375fi
1c710c3c 9376
e8b05380
PB
9377 fi
9378 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9379 done
9380fi
1c710c3c 9381
e8b05380
PB
9382if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9383 set dummy dlltool
9384 if test $build = $target ; then
9385 DLLTOOL_FOR_TARGET="$2"
9386 else
9387 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9388 fi
1c00b503
PB
9389else
9390 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9391fi
9392
d1f8db0c
PB
9393else
9394 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9395fi
9396
4de997d1 9397
e8b05380
PB
9398
9399
9400if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9401 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9402 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9403echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9404 if test -x $with_build_time_tools/ld; then
9405 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9406 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9407 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9408echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9409 else
2aeb72e9
DD
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
d1f8db0c 9412 fi
e8b05380
PB
9413 elif test $build != $host && test $have_gcc_for_target = yes; then
9414 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9415 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9416 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9417 fi
e8b05380 9418fi
3e19841a 9419if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9420 # Extract the first word of "ld", so it can be a program name with args.
9421set dummy ld; ac_word=$2
2aeb72e9
DD
9422echo "$as_me:$LINENO: checking for $ac_word" >&5
9423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9424if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9426else
1c710c3c
DJ
9427 case $LD_FOR_TARGET in
9428 [\\/]* | ?:[\\/]*)
e8b05380
PB
9429 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9430 ;;
e8b05380 9431 *)
1c710c3c
DJ
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433for as_dir in $gcc_cv_tool_dirs
9434do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9439 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443done
9444done
9445
e8b05380
PB
9446 ;;
9447esac
4de997d1 9448fi
1c710c3c 9449LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9450
e8b05380 9451if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9452 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9453echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9454else
2aeb72e9
DD
9455 echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
4de997d1 9457fi
2693c0b0 9458
e8b05380
PB
9459fi
9460if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9461
9462
9463if test -n "$LD_FOR_TARGET"; then
9464 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9465elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9466 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9467fi
9468
9469if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9470 for ncn_progname in ld; do
9471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9472set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9473echo "$as_me:$LINENO: checking for $ac_word" >&5
9474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9475if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478 if test -n "$LD_FOR_TARGET"; then
9479 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9480else
9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
9486 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9488 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9490 break 2
9491 fi
9492done
9493done
9494
9495fi
9496fi
9497LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9498if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9499 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9500echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9501else
2aeb72e9
DD
9502 echo "$as_me:$LINENO: result: no" >&5
9503echo "${ECHO_T}no" >&6
278a7a38
AO
9504fi
9505
9506 done
9507fi
9508
9509if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9510 for ncn_progname in ld; do
2aeb72e9
DD
9511 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9512echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9513 if test -x $with_build_time_tools/${ncn_progname}; then
9514 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9515 echo "$as_me:$LINENO: result: yes" >&5
9516echo "${ECHO_T}yes" >&6
e8b05380
PB
9517 break
9518 else
2aeb72e9
DD
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
e8b05380
PB
9521 fi
9522 done
ca9f4b81
AO
9523fi
9524
e8b05380
PB
9525if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9526 for ncn_progname in ld; do
9527 if test -n "$ncn_target_tool_prefix"; then
9528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9529set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9530echo "$as_me:$LINENO: checking for $ac_word" >&5
9531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9532if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9534else
4de997d1
PB
9535 if test -n "$LD_FOR_TARGET"; then
9536 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9537else
1c710c3c
DJ
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9545 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9548 fi
9549done
9550done
9551
ca9f4b81
AO
9552fi
9553fi
1c710c3c 9554LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9555if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9556 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9557echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9558else
2aeb72e9
DD
9559 echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
ca9f4b81
AO
9561fi
9562
e8b05380
PB
9563 fi
9564 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9566set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9567echo "$as_me:$LINENO: checking for $ac_word" >&5
9568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9569if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9571else
2693c0b0
PB
9572 if test -n "$LD_FOR_TARGET"; then
9573 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9574else
1c710c3c
DJ
9575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576for as_dir in $PATH
9577do
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9582 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9585 fi
9586done
9587done
9588
ca9f4b81
AO
9589fi
9590fi
1c710c3c 9591LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9592if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9593 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9594echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9595else
2aeb72e9
DD
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
ca9f4b81 9598fi
1c710c3c 9599
e8b05380
PB
9600 fi
9601 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9602 done
9603fi
1c710c3c 9604
2693c0b0
PB
9605if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9606 set dummy ld
9607 if test $build = $target ; then
9608 LD_FOR_TARGET="$2"
ca9f4b81 9609 else
2693c0b0 9610 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9611 fi
1c00b503
PB
9612else
9613 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9614fi
9615
d1f8db0c
PB
9616else
9617 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9618fi
9619
9620
9621
9622
9623if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9624 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9625 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9626echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9627 if test -x $with_build_time_tools/lipo; then
9628 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9629 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9630 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9631echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9632 else
2aeb72e9
DD
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
d1f8db0c 9635 fi
e8b05380
PB
9636 elif test $build != $host && test $have_gcc_for_target = yes; then
9637 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9638 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9639 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9640 fi
9641fi
278a7a38
AO
9642if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9643 # Extract the first word of "lipo", so it can be a program name with args.
9644set dummy lipo; ac_word=$2
2aeb72e9
DD
9645echo "$as_me:$LINENO: checking for $ac_word" >&5
9646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9647if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649else
9650 case $LIPO_FOR_TARGET in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9653 ;;
9654 *)
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656for as_dir in $gcc_cv_tool_dirs
9657do
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9662 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9665 fi
9666done
9667done
9668
9669 ;;
9670esac
9671fi
9672LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9673
278a7a38 9674if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9675 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9676echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9677else
2aeb72e9
DD
9678 echo "$as_me:$LINENO: result: no" >&5
9679echo "${ECHO_T}no" >&6
278a7a38
AO
9680fi
9681
9682fi
9683if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9684
9685
9686if test -n "$LIPO_FOR_TARGET"; then
9687 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9688elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9689 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9690fi
9691
9692if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9693 for ncn_progname in lipo; do
9694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9695set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9696echo "$as_me:$LINENO: checking for $ac_word" >&5
9697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9698if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9699 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9700else
278a7a38
AO
9701 if test -n "$LIPO_FOR_TARGET"; then
9702 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9703else
9704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705for as_dir in $PATH
1c710c3c
DJ
9706do
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9711 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 break 2
9714 fi
9715done
9716done
9717
e8b05380 9718fi
278a7a38
AO
9719fi
9720LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9721if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9722 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9723echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9724else
2aeb72e9
DD
9725 echo "$as_me:$LINENO: result: no" >&5
9726echo "${ECHO_T}no" >&6
e8b05380
PB
9727fi
9728
278a7a38 9729 done
e8b05380 9730fi
278a7a38
AO
9731
9732if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9733 for ncn_progname in lipo; do
2aeb72e9
DD
9734 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9735echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9736 if test -x $with_build_time_tools/${ncn_progname}; then
9737 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9738 echo "$as_me:$LINENO: result: yes" >&5
9739echo "${ECHO_T}yes" >&6
e8b05380
PB
9740 break
9741 else
2aeb72e9
DD
9742 echo "$as_me:$LINENO: result: no" >&5
9743echo "${ECHO_T}no" >&6
e8b05380
PB
9744 fi
9745 done
9746fi
9747
9748if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9749 for ncn_progname in lipo; do
9750 if test -n "$ncn_target_tool_prefix"; then
9751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9752set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9753echo "$as_me:$LINENO: checking for $ac_word" >&5
9754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9755if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9757else
9758 if test -n "$LIPO_FOR_TARGET"; then
9759 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9760else
1c710c3c
DJ
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9768 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772done
9773done
9774
040b1c5a
GK
9775fi
9776fi
1c710c3c 9777LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9778if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9779 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9780echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9781else
2aeb72e9
DD
9782 echo "$as_me:$LINENO: result: no" >&5
9783echo "${ECHO_T}no" >&6
040b1c5a
GK
9784fi
9785
e8b05380
PB
9786 fi
9787 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9789set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9790echo "$as_me:$LINENO: checking for $ac_word" >&5
9791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9792if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9794else
9795 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9796 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9797else
1c710c3c
DJ
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9805 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809done
9810done
9811
040b1c5a
GK
9812fi
9813fi
1c710c3c 9814LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9815if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9816 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9817echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9818else
2aeb72e9
DD
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
040b1c5a 9821fi
1c710c3c 9822
e8b05380
PB
9823 fi
9824 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9825 done
9826fi
1c710c3c 9827
040b1c5a
GK
9828if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9829 set dummy lipo
9830 if test $build = $target ; then
9831 LIPO_FOR_TARGET="$2"
9832 else
9833 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9834 fi
1c00b503
PB
9835else
9836 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9837fi
9838
d1f8db0c
PB
9839else
9840 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9841fi
9842
9843
9844
9845
9846if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9847 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9848 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9849echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9850 if test -x $with_build_time_tools/nm; then
9851 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9852 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9853 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9854echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9855 else
2aeb72e9
DD
9856 echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6
d1f8db0c 9858 fi
e8b05380
PB
9859 elif test $build != $host && test $have_gcc_for_target = yes; then
9860 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9861 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9862 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9863 fi
9864fi
3e19841a 9865if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9866 # Extract the first word of "nm", so it can be a program name with args.
9867set dummy nm; ac_word=$2
2aeb72e9
DD
9868echo "$as_me:$LINENO: checking for $ac_word" >&5
9869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9870if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9872else
1c710c3c
DJ
9873 case $NM_FOR_TARGET in
9874 [\\/]* | ?:[\\/]*)
e8b05380
PB
9875 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9876 ;;
e8b05380 9877 *)
1c710c3c
DJ
9878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $gcc_cv_tool_dirs
9880do
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9885 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 break 2
9888 fi
9889done
9890done
9891
e8b05380
PB
9892 ;;
9893esac
9894fi
1c710c3c 9895NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9896
e8b05380 9897if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9898 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9899echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9900else
2aeb72e9
DD
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
e8b05380
PB
9903fi
9904
9905fi
9906if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9907
9908
9909if test -n "$NM_FOR_TARGET"; then
9910 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9911elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9912 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9913fi
9914
9915if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9916 for ncn_progname in nm; do
9917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9918set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9919echo "$as_me:$LINENO: checking for $ac_word" >&5
9920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9921if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 if test -n "$NM_FOR_TARGET"; then
9925 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9926else
9927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928for as_dir in $PATH
9929do
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9934 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9937 fi
9938done
9939done
9940
9941fi
9942fi
9943NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9944if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9945 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9946echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9947else
2aeb72e9
DD
9948 echo "$as_me:$LINENO: result: no" >&5
9949echo "${ECHO_T}no" >&6
278a7a38
AO
9950fi
9951
9952 done
9953fi
9954
9955if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9956 for ncn_progname in nm; do
2aeb72e9
DD
9957 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9958echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9959 if test -x $with_build_time_tools/${ncn_progname}; then
9960 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9961 echo "$as_me:$LINENO: result: yes" >&5
9962echo "${ECHO_T}yes" >&6
e8b05380
PB
9963 break
9964 else
2aeb72e9
DD
9965 echo "$as_me:$LINENO: result: no" >&5
9966echo "${ECHO_T}no" >&6
e8b05380
PB
9967 fi
9968 done
9969fi
9970
9971if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9972 for ncn_progname in nm; do
9973 if test -n "$ncn_target_tool_prefix"; then
9974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9975set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9976echo "$as_me:$LINENO: checking for $ac_word" >&5
9977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9978if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9980else
4de997d1
PB
9981 if test -n "$NM_FOR_TARGET"; then
9982 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9983else
1c710c3c
DJ
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9991 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9994 fi
9995done
9996done
9997
ca9f4b81
AO
9998fi
9999fi
1c710c3c 10000NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10001if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10002 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10003echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10004else
2aeb72e9
DD
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
ca9f4b81
AO
10007fi
10008
e8b05380
PB
10009 fi
10010 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10012set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10015if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10017else
2693c0b0
PB
10018 if test -n "$NM_FOR_TARGET"; then
10019 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10020else
1c710c3c
DJ
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10028 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034
ca9f4b81
AO
10035fi
10036fi
1c710c3c 10037NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10038if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10039 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10040echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10041else
2aeb72e9
DD
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
ca9f4b81 10044fi
1c710c3c 10045
e8b05380
PB
10046 fi
10047 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10048 done
10049fi
1c710c3c 10050
2693c0b0
PB
10051if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10052 set dummy nm
10053 if test $build = $target ; then
10054 NM_FOR_TARGET="$2"
ca9f4b81 10055 else
2693c0b0 10056 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10057 fi
1c00b503
PB
10058else
10059 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10060fi
10061
d1f8db0c
PB
10062else
10063 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10064fi
10065
10066
10067
10068
10069if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10070 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10071 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10072echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10073 if test -x $with_build_time_tools/objdump; then
10074 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10075 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10076 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10077echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10078 else
2aeb72e9
DD
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
d1f8db0c 10081 fi
e8b05380
PB
10082 elif test $build != $host && test $have_gcc_for_target = yes; then
10083 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10084 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10085 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10086 fi
10087fi
3e19841a 10088if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10089 # Extract the first word of "objdump", so it can be a program name with args.
10090set dummy objdump; ac_word=$2
2aeb72e9
DD
10091echo "$as_me:$LINENO: checking for $ac_word" >&5
10092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10093if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10095else
1c710c3c
DJ
10096 case $OBJDUMP_FOR_TARGET in
10097 [\\/]* | ?:[\\/]*)
e8b05380
PB
10098 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10099 ;;
e8b05380 10100 *)
1c710c3c
DJ
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $gcc_cv_tool_dirs
10103do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10108 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 break 2
10111 fi
10112done
10113done
10114
e8b05380
PB
10115 ;;
10116esac
10117fi
1c710c3c 10118OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10119
e8b05380 10120if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10121 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10122echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10123else
2aeb72e9
DD
10124 echo "$as_me:$LINENO: result: no" >&5
10125echo "${ECHO_T}no" >&6
e8b05380
PB
10126fi
10127
10128fi
10129if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10130
10131
10132if test -n "$OBJDUMP_FOR_TARGET"; then
10133 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10134elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10135 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10136fi
10137
10138if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10139 for ncn_progname in objdump; do
10140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10141set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10142echo "$as_me:$LINENO: checking for $ac_word" >&5
10143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10144if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$OBJDUMP_FOR_TARGET"; then
10148 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10157 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162done
10163
10164fi
10165fi
10166OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10167if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10168 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10169echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10170else
2aeb72e9
DD
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
278a7a38
AO
10173fi
10174
10175 done
10176fi
10177
10178if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10179 for ncn_progname in objdump; do
2aeb72e9
DD
10180 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10181echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10182 if test -x $with_build_time_tools/${ncn_progname}; then
10183 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10184 echo "$as_me:$LINENO: result: yes" >&5
10185echo "${ECHO_T}yes" >&6
e8b05380
PB
10186 break
10187 else
2aeb72e9
DD
10188 echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
e8b05380
PB
10190 fi
10191 done
10192fi
10193
10194if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10195 for ncn_progname in objdump; do
10196 if test -n "$ncn_target_tool_prefix"; then
10197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10199echo "$as_me:$LINENO: checking for $ac_word" >&5
10200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10201if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10203else
10204 if test -n "$OBJDUMP_FOR_TARGET"; then
10205 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10206else
1c710c3c
DJ
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10214 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218done
10219done
10220
d739199a
DJ
10221fi
10222fi
1c710c3c 10223OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10224if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10225 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10226echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10227else
2aeb72e9
DD
10228 echo "$as_me:$LINENO: result: no" >&5
10229echo "${ECHO_T}no" >&6
d739199a
DJ
10230fi
10231
e8b05380
PB
10232 fi
10233 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10235set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10238if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10240else
10241 if test -n "$OBJDUMP_FOR_TARGET"; then
10242 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10243else
1c710c3c
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10251 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256done
10257
d739199a
DJ
10258fi
10259fi
1c710c3c 10260OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10261if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10262 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10263echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10264else
2aeb72e9
DD
10265 echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
d739199a 10267fi
1c710c3c 10268
e8b05380
PB
10269 fi
10270 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10271 done
10272fi
1c710c3c 10273
d739199a
DJ
10274if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10275 set dummy objdump
10276 if test $build = $target ; then
10277 OBJDUMP_FOR_TARGET="$2"
10278 else
10279 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10280 fi
1c00b503
PB
10281else
10282 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10283fi
10284
d1f8db0c
PB
10285else
10286 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10287fi
10288
10289
10290
10291
10292if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10293 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10294 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10295echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10296 if test -x $with_build_time_tools/ranlib; then
10297 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10298 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10299 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10300echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10301 else
2aeb72e9
DD
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
d1f8db0c 10304 fi
e8b05380
PB
10305 elif test $build != $host && test $have_gcc_for_target = yes; then
10306 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10307 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10308 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10309 fi
10310fi
3e19841a 10311if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10312 # Extract the first word of "ranlib", so it can be a program name with args.
10313set dummy ranlib; ac_word=$2
2aeb72e9
DD
10314echo "$as_me:$LINENO: checking for $ac_word" >&5
10315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10316if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10318else
1c710c3c
DJ
10319 case $RANLIB_FOR_TARGET in
10320 [\\/]* | ?:[\\/]*)
e8b05380
PB
10321 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10322 ;;
e8b05380 10323 *)
1c710c3c
DJ
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $gcc_cv_tool_dirs
10326do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10331 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335done
10336done
10337
e8b05380
PB
10338 ;;
10339esac
10340fi
1c710c3c 10341RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10342
e8b05380 10343if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10344 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10345echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10346else
2aeb72e9
DD
10347 echo "$as_me:$LINENO: result: no" >&5
10348echo "${ECHO_T}no" >&6
e8b05380
PB
10349fi
10350
10351fi
10352if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10353
10354
10355if test -n "$RANLIB_FOR_TARGET"; then
10356 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10357elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10358 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10359fi
10360
10361if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10362 for ncn_progname in ranlib; do
10363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10364set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10365echo "$as_me:$LINENO: checking for $ac_word" >&5
10366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10367if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 if test -n "$RANLIB_FOR_TARGET"; then
10371 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10372else
10373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374for as_dir in $PATH
10375do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10380 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10383 fi
10384done
10385done
10386
10387fi
10388fi
10389RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10390if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10391 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10392echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10393else
2aeb72e9
DD
10394 echo "$as_me:$LINENO: result: no" >&5
10395echo "${ECHO_T}no" >&6
278a7a38
AO
10396fi
10397
10398 done
10399fi
10400
10401if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10402 for ncn_progname in ranlib; do
2aeb72e9
DD
10403 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10404echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10405 if test -x $with_build_time_tools/${ncn_progname}; then
10406 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10407 echo "$as_me:$LINENO: result: yes" >&5
10408echo "${ECHO_T}yes" >&6
e8b05380
PB
10409 break
10410 else
2aeb72e9
DD
10411 echo "$as_me:$LINENO: result: no" >&5
10412echo "${ECHO_T}no" >&6
e8b05380
PB
10413 fi
10414 done
10415fi
10416
10417if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10418 for ncn_progname in ranlib; do
10419 if test -n "$ncn_target_tool_prefix"; then
10420 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10421set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10422echo "$as_me:$LINENO: checking for $ac_word" >&5
10423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10424if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10426else
4de997d1
PB
10427 if test -n "$RANLIB_FOR_TARGET"; then
10428 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10429else
1c710c3c
DJ
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10437 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10440 fi
10441done
10442done
10443
ca9f4b81
AO
10444fi
10445fi
1c710c3c 10446RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10447if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10448 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10449echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10450else
2aeb72e9
DD
10451 echo "$as_me:$LINENO: result: no" >&5
10452echo "${ECHO_T}no" >&6
ca9f4b81
AO
10453fi
10454
e8b05380
PB
10455 fi
10456 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10458set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10459echo "$as_me:$LINENO: checking for $ac_word" >&5
10460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10461if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10463else
2693c0b0
PB
10464 if test -n "$RANLIB_FOR_TARGET"; then
10465 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10466else
1c710c3c
DJ
10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468for as_dir in $PATH
10469do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10474 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478done
10479done
10480
ca9f4b81
AO
10481fi
10482fi
1c710c3c 10483RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10484if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10485 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10486echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10487else
2aeb72e9
DD
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
ca9f4b81 10490fi
1c710c3c 10491
e8b05380
PB
10492 fi
10493 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10494 done
10495fi
1c710c3c 10496
e8b05380
PB
10497if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10498 set dummy ranlib
10499 if test $build = $target ; then
10500 RANLIB_FOR_TARGET="$2"
10501 else
10502 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10503 fi
1c00b503
PB
10504else
10505 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10506fi
2693c0b0 10507
d1f8db0c
PB
10508else
10509 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10510fi
10511
e8b05380
PB
10512
10513
10514
10515if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10516 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10517 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10518echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10519 if test -x $with_build_time_tools/strip; then
10520 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10521 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10522 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10523echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10524 else
2aeb72e9
DD
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
d1f8db0c 10527 fi
e8b05380
PB
10528 elif test $build != $host && test $have_gcc_for_target = yes; then
10529 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10530 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10531 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10532 fi
10533fi
3e19841a 10534if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10535 # Extract the first word of "strip", so it can be a program name with args.
10536set dummy strip; ac_word=$2
2aeb72e9
DD
10537echo "$as_me:$LINENO: checking for $ac_word" >&5
10538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10539if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10541else
1c710c3c
DJ
10542 case $STRIP_FOR_TARGET in
10543 [\\/]* | ?:[\\/]*)
e8b05380
PB
10544 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10545 ;;
e8b05380 10546 *)
1c710c3c
DJ
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $gcc_cv_tool_dirs
10549do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10554 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10557 fi
10558done
10559done
10560
e8b05380
PB
10561 ;;
10562esac
10563fi
1c710c3c 10564STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10565
e8b05380 10566if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10567 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10568echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10569else
2aeb72e9
DD
10570 echo "$as_me:$LINENO: result: no" >&5
10571echo "${ECHO_T}no" >&6
e8b05380
PB
10572fi
10573
10574fi
10575if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10576
10577
10578if test -n "$STRIP_FOR_TARGET"; then
10579 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10580elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10581 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10582fi
10583
10584if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10585 for ncn_progname in strip; do
10586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10587set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10588echo "$as_me:$LINENO: checking for $ac_word" >&5
10589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10590if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593 if test -n "$STRIP_FOR_TARGET"; then
10594 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10595else
10596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $PATH
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10603 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10606 fi
10607done
10608done
10609
10610fi
10611fi
10612STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10613if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10614 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10615echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10616else
2aeb72e9
DD
10617 echo "$as_me:$LINENO: result: no" >&5
10618echo "${ECHO_T}no" >&6
278a7a38
AO
10619fi
10620
10621 done
10622fi
10623
10624if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10625 for ncn_progname in strip; do
2aeb72e9
DD
10626 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10627echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10628 if test -x $with_build_time_tools/${ncn_progname}; then
10629 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10630 echo "$as_me:$LINENO: result: yes" >&5
10631echo "${ECHO_T}yes" >&6
e8b05380
PB
10632 break
10633 else
2aeb72e9
DD
10634 echo "$as_me:$LINENO: result: no" >&5
10635echo "${ECHO_T}no" >&6
e8b05380
PB
10636 fi
10637 done
10638fi
10639
10640if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10641 for ncn_progname in strip; do
10642 if test -n "$ncn_target_tool_prefix"; then
10643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10644set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10645echo "$as_me:$LINENO: checking for $ac_word" >&5
10646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10647if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10649else
10650 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10651 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10652else
10653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654for as_dir in $PATH
10655do
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10660 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10663 fi
10664done
10665done
10666
040b1c5a
GK
10667fi
10668fi
1c710c3c 10669STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10670if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10671 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10672echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10673else
2aeb72e9
DD
10674 echo "$as_me:$LINENO: result: no" >&5
10675echo "${ECHO_T}no" >&6
040b1c5a
GK
10676fi
10677
e8b05380
PB
10678 fi
10679 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10681set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10684if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10686else
10687 if test -n "$STRIP_FOR_TARGET"; then
10688 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10689else
1c710c3c
DJ
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10697 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702done
10703
040b1c5a
GK
10704fi
10705fi
1c710c3c 10706STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10707if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10708 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10709echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10710else
2aeb72e9
DD
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
040b1c5a 10713fi
1c710c3c 10714
e8b05380
PB
10715 fi
10716 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10717 done
10718fi
1c710c3c 10719
040b1c5a
GK
10720if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10721 set dummy strip
10722 if test $build = $target ; then
10723 STRIP_FOR_TARGET="$2"
10724 else
10725 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10726 fi
1c00b503
PB
10727else
10728 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10729fi
10730
d1f8db0c
PB
10731else
10732 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10733fi
10734
10735
10736
10737
10738if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10739 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10740 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10741echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10742 if test -x $with_build_time_tools/windres; then
10743 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10744 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10745 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10746echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10747 else
2aeb72e9
DD
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
d1f8db0c 10750 fi
e8b05380
PB
10751 elif test $build != $host && test $have_gcc_for_target = yes; then
10752 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10753 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10754 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10755 fi
10756fi
3e19841a 10757if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10758 # Extract the first word of "windres", so it can be a program name with args.
10759set dummy windres; ac_word=$2
2aeb72e9
DD
10760echo "$as_me:$LINENO: checking for $ac_word" >&5
10761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10762if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10764else
1c710c3c
DJ
10765 case $WINDRES_FOR_TARGET in
10766 [\\/]* | ?:[\\/]*)
e8b05380
PB
10767 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10768 ;;
e8b05380 10769 *)
1c710c3c
DJ
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $gcc_cv_tool_dirs
10772do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10777 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10780 fi
10781done
10782done
10783
e8b05380
PB
10784 ;;
10785esac
10786fi
1c710c3c 10787WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10788
e8b05380 10789if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10790 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10791echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10792else
2aeb72e9
DD
10793 echo "$as_me:$LINENO: result: no" >&5
10794echo "${ECHO_T}no" >&6
e8b05380
PB
10795fi
10796
10797fi
10798if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10799
10800
10801if test -n "$WINDRES_FOR_TARGET"; then
10802 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10803elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10804 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10805fi
10806
10807if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10808 for ncn_progname in windres; do
10809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10810set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10813if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 if test -n "$WINDRES_FOR_TARGET"; then
10817 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10826 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831done
10832
10833fi
10834fi
10835WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10836if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10837 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10838echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10839else
2aeb72e9
DD
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
278a7a38
AO
10842fi
10843
10844 done
10845fi
10846
10847if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10848 for ncn_progname in windres; do
2aeb72e9
DD
10849 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10850echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10851 if test -x $with_build_time_tools/${ncn_progname}; then
10852 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10853 echo "$as_me:$LINENO: result: yes" >&5
10854echo "${ECHO_T}yes" >&6
e8b05380
PB
10855 break
10856 else
2aeb72e9
DD
10857 echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
e8b05380
PB
10859 fi
10860 done
10861fi
10862
10863if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10864 for ncn_progname in windres; do
10865 if test -n "$ncn_target_tool_prefix"; then
10866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10867set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10868echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10870if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10872else
4de997d1
PB
10873 if test -n "$WINDRES_FOR_TARGET"; then
10874 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10875else
1c710c3c
DJ
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10883 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10886 fi
10887done
10888done
10889
ca9f4b81
AO
10890fi
10891fi
1c710c3c 10892WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10893if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10894 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10895echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10896else
2aeb72e9
DD
10897 echo "$as_me:$LINENO: result: no" >&5
10898echo "${ECHO_T}no" >&6
ca9f4b81
AO
10899fi
10900
e8b05380
PB
10901 fi
10902 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10904set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10907if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10909else
2693c0b0
PB
10910 if test -n "$WINDRES_FOR_TARGET"; then
10911 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10912else
1c710c3c
DJ
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10920 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
10926
ca9f4b81
AO
10927fi
10928fi
1c710c3c 10929WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10930if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10931 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10932echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10933else
2aeb72e9
DD
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
ca9f4b81 10936fi
1c710c3c 10937
e8b05380
PB
10938 fi
10939 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10940 done
10941fi
1c710c3c 10942
2693c0b0
PB
10943if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10944 set dummy windres
10945 if test $build = $target ; then
10946 WINDRES_FOR_TARGET="$2"
ca9f4b81 10947 else
2693c0b0 10948 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10949 fi
1c00b503
PB
10950else
10951 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10952fi
10953
d1f8db0c
PB
10954else
10955 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10956fi
10957
4977bab6 10958
901119ae
KT
10959
10960
10961if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10962 if test -n "$with_build_time_tools"; then
10963 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10964echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10965 if test -x $with_build_time_tools/windmc; then
10966 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10967 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10968 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10969echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10970 else
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
10973 fi
10974 elif test $build != $host && test $have_gcc_for_target = yes; then
10975 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
10976 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10977 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
10978 fi
10979fi
10980if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10981 # Extract the first word of "windmc", so it can be a program name with args.
10982set dummy windmc; ac_word=$2
10983echo "$as_me:$LINENO: checking for $ac_word" >&5
10984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10985if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 case $WINDMC_FOR_TARGET in
10989 [\\/]* | ?:[\\/]*)
10990 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10991 ;;
10992 *)
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $gcc_cv_tool_dirs
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004done
11005done
11006
11007 ;;
11008esac
11009fi
11010WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11011
11012if test -n "$WINDMC_FOR_TARGET"; then
11013 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11014echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11015else
11016 echo "$as_me:$LINENO: result: no" >&5
11017echo "${ECHO_T}no" >&6
11018fi
11019
11020fi
11021if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11022
11023
11024if test -n "$WINDMC_FOR_TARGET"; then
11025 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11026elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11027 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11028fi
11029
11030if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11031 for ncn_progname in windmc; do
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033set dummy ${ncn_progname}; ac_word=$2
11034echo "$as_me:$LINENO: checking for $ac_word" >&5
11035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11036if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039 if test -n "$WINDMC_FOR_TARGET"; then
11040 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11052 fi
11053done
11054done
11055
11056fi
11057fi
11058WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11059if test -n "$WINDMC_FOR_TARGET"; then
11060 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11061echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11062else
11063 echo "$as_me:$LINENO: result: no" >&5
11064echo "${ECHO_T}no" >&6
11065fi
11066
11067 done
11068fi
11069
11070if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11071 for ncn_progname in windmc; do
11072 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11073echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11074 if test -x $with_build_time_tools/${ncn_progname}; then
11075 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11076 echo "$as_me:$LINENO: result: yes" >&5
11077echo "${ECHO_T}yes" >&6
11078 break
11079 else
11080 echo "$as_me:$LINENO: result: no" >&5
11081echo "${ECHO_T}no" >&6
11082 fi
11083 done
11084fi
11085
11086if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11087 for ncn_progname in windmc; do
11088 if test -n "$ncn_target_tool_prefix"; then
11089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11090set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11091echo "$as_me:$LINENO: checking for $ac_word" >&5
11092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11093if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095else
11096 if test -n "$WINDMC_FOR_TARGET"; then
11097 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11098else
11099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110done
11111done
11112
11113fi
11114fi
11115WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11116if test -n "$WINDMC_FOR_TARGET"; then
11117 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11118echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11119else
11120 echo "$as_me:$LINENO: result: no" >&5
11121echo "${ECHO_T}no" >&6
11122fi
11123
11124 fi
11125 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11127set dummy ${ncn_progname}; ac_word=$2
11128echo "$as_me:$LINENO: checking for $ac_word" >&5
11129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11130if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 if test -n "$WINDMC_FOR_TARGET"; then
11134 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
11150fi
11151fi
11152WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11153if test -n "$WINDMC_FOR_TARGET"; then
11154 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11155echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11156else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
11160
11161 fi
11162 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11163 done
11164fi
11165
11166if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11167 set dummy windmc
11168 if test $build = $target ; then
11169 WINDMC_FOR_TARGET="$2"
11170 else
11171 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11172 fi
1c00b503
PB
11173else
11174 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11175fi
11176
11177else
11178 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11179fi
11180
11181
2abefe3d
PB
11182RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11183
2aeb72e9
DD
11184echo "$as_me:$LINENO: checking where to find the target ar" >&5
11185echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11186if test "x${build}" != "x${host}" ; then
e8b05380
PB
11187 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11188 # We already found the complete path
172e41aa 11189 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11190 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11191echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11192 else
11193 # Canadian cross, just use what we found
2aeb72e9
DD
11194 echo "$as_me:$LINENO: result: pre-installed" >&5
11195echo "${ECHO_T}pre-installed" >&6
e8b05380 11196 fi
2abefe3d
PB
11197else
11198 ok=yes
11199 case " ${configdirs} " in
11200 *" binutils "*) ;;
11201 *) ok=no ;;
11202 esac
1c710c3c 11203
2abefe3d
PB
11204 if test $ok = yes; then
11205 # An in-tree tool is available and we can use it
11206 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11207 echo "$as_me:$LINENO: result: just compiled" >&5
11208echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11209 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11210 # We already found the complete path
172e41aa 11211 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11212 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11213echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11214 elif test "x$target" = "x$host"; then
11215 # We can use an host tool
11216 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11217 echo "$as_me:$LINENO: result: host tool" >&5
11218echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11219 else
11220 # We need a cross tool
2aeb72e9
DD
11221 echo "$as_me:$LINENO: result: pre-installed" >&5
11222echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11223 fi
11224fi
0b0dc272 11225
2aeb72e9
DD
11226echo "$as_me:$LINENO: checking where to find the target as" >&5
11227echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11228if test "x${build}" != "x${host}" ; then
e8b05380
PB
11229 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11230 # We already found the complete path
172e41aa 11231 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11232 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11233echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11234 else
11235 # Canadian cross, just use what we found
2aeb72e9
DD
11236 echo "$as_me:$LINENO: result: pre-installed" >&5
11237echo "${ECHO_T}pre-installed" >&6
e8b05380 11238 fi
2abefe3d
PB
11239else
11240 ok=yes
11241 case " ${configdirs} " in
11242 *" gas "*) ;;
11243 *) ok=no ;;
11244 esac
1c710c3c 11245
2abefe3d
PB
11246 if test $ok = yes; then
11247 # An in-tree tool is available and we can use it
11248 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11249 echo "$as_me:$LINENO: result: just compiled" >&5
11250echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11251 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11252 # We already found the complete path
172e41aa 11253 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11254 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11255echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11256 elif test "x$target" = "x$host"; then
11257 # We can use an host tool
11258 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11259 echo "$as_me:$LINENO: result: host tool" >&5
11260echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11261 else
11262 # We need a cross tool
2aeb72e9
DD
11263 echo "$as_me:$LINENO: result: pre-installed" >&5
11264echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11265 fi
11266fi
0b0dc272 11267
2aeb72e9
DD
11268echo "$as_me:$LINENO: checking where to find the target cc" >&5
11269echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11270if test "x${build}" != "x${host}" ; then
e8b05380
PB
11271 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11272 # We already found the complete path
172e41aa 11273 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11274 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11275echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11276 else
11277 # Canadian cross, just use what we found
2aeb72e9
DD
11278 echo "$as_me:$LINENO: result: pre-installed" >&5
11279echo "${ECHO_T}pre-installed" >&6
e8b05380 11280 fi
2abefe3d
PB
11281else
11282 ok=yes
11283 case " ${configdirs} " in
11284 *" gcc "*) ;;
11285 *) ok=no ;;
11286 esac
1c710c3c 11287
2abefe3d
PB
11288 if test $ok = yes; then
11289 # An in-tree tool is available and we can use it
11290 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11291 echo "$as_me:$LINENO: result: just compiled" >&5
11292echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11293 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11294 # We already found the complete path
172e41aa 11295 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11296 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11297echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11298 elif test "x$target" = "x$host"; then
11299 # We can use an host tool
11300 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11301 echo "$as_me:$LINENO: result: host tool" >&5
11302echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11303 else
11304 # We need a cross tool
2aeb72e9
DD
11305 echo "$as_me:$LINENO: result: pre-installed" >&5
11306echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11307 fi
11308fi
0b0dc272 11309
2aeb72e9
DD
11310echo "$as_me:$LINENO: checking where to find the target c++" >&5
11311echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11312if test "x${build}" != "x${host}" ; then
e8b05380
PB
11313 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11314 # We already found the complete path
172e41aa 11315 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11316 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11317echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11318 else
11319 # Canadian cross, just use what we found
2aeb72e9
DD
11320 echo "$as_me:$LINENO: result: pre-installed" >&5
11321echo "${ECHO_T}pre-installed" >&6
e8b05380 11322 fi
2abefe3d
PB
11323else
11324 ok=yes
11325 case " ${configdirs} " in
11326 *" gcc "*) ;;
11327 *) ok=no ;;
11328 esac
11329 case ,${enable_languages}, in
11330 *,c++,*) ;;
11331 *) ok=no ;;
11332 esac
11333 if test $ok = yes; then
11334 # An in-tree tool is available and we can use it
11335 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
11336 echo "$as_me:$LINENO: result: just compiled" >&5
11337echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11338 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11339 # We already found the complete path
172e41aa 11340 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11341 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11342echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11343 elif test "x$target" = "x$host"; then
11344 # We can use an host tool
11345 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11346 echo "$as_me:$LINENO: result: host tool" >&5
11347echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11348 else
11349 # We need a cross tool
2aeb72e9
DD
11350 echo "$as_me:$LINENO: result: pre-installed" >&5
11351echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11352 fi
11353fi
0b0dc272 11354
2aeb72e9
DD
11355echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11356echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11357if test "x${build}" != "x${host}" ; then
e8b05380
PB
11358 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11359 # We already found the complete path
172e41aa 11360 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11361 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11362echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11363 else
11364 # Canadian cross, just use what we found
2aeb72e9
DD
11365 echo "$as_me:$LINENO: result: pre-installed" >&5
11366echo "${ECHO_T}pre-installed" >&6
e8b05380 11367 fi
2abefe3d
PB
11368else
11369 ok=yes
11370 case " ${configdirs} " in
11371 *" gcc "*) ;;
11372 *) ok=no ;;
11373 esac
11374 case ,${enable_languages}, in
11375 *,c++,*) ;;
11376 *) ok=no ;;
11377 esac
11378 if test $ok = yes; then
11379 # An in-tree tool is available and we can use it
11380 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
11381 echo "$as_me:$LINENO: result: just compiled" >&5
11382echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11383 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11384 # We already found the complete path
172e41aa 11385 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11386 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11387echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11388 elif test "x$target" = "x$host"; then
11389 # We can use an host tool
11390 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11391 echo "$as_me:$LINENO: result: host tool" >&5
11392echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11393 else
11394 # We need a cross tool
2aeb72e9
DD
11395 echo "$as_me:$LINENO: result: pre-installed" >&5
11396echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11397 fi
11398fi
0b0dc272 11399
2aeb72e9
DD
11400echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11401echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11402if test "x${build}" != "x${host}" ; then
e8b05380
PB
11403 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11404 # We already found the complete path
172e41aa 11405 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11406 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11407echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11408 else
11409 # Canadian cross, just use what we found
2aeb72e9
DD
11410 echo "$as_me:$LINENO: result: pre-installed" >&5
11411echo "${ECHO_T}pre-installed" >&6
e8b05380 11412 fi
2abefe3d
PB
11413else
11414 ok=yes
11415 case " ${configdirs} " in
11416 *" binutils "*) ;;
11417 *) ok=no ;;
11418 esac
1c710c3c 11419
2abefe3d
PB
11420 if test $ok = yes; then
11421 # An in-tree tool is available and we can use it
11422 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11423 echo "$as_me:$LINENO: result: just compiled" >&5
11424echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11425 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11426 # We already found the complete path
172e41aa 11427 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11428 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11429echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11430 elif test "x$target" = "x$host"; then
11431 # We can use an host tool
11432 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11433 echo "$as_me:$LINENO: result: host tool" >&5
11434echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11435 else
11436 # We need a cross tool
2aeb72e9
DD
11437 echo "$as_me:$LINENO: result: pre-installed" >&5
11438echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11439 fi
11440fi
0b0dc272 11441
2aeb72e9
DD
11442echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11443echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11444if test "x${build}" != "x${host}" ; then
e8b05380
PB
11445 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11446 # We already found the complete path
172e41aa 11447 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11448 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11449echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11450 else
11451 # Canadian cross, just use what we found
2aeb72e9
DD
11452 echo "$as_me:$LINENO: result: pre-installed" >&5
11453echo "${ECHO_T}pre-installed" >&6
e8b05380 11454 fi
2abefe3d
PB
11455else
11456 ok=yes
11457 case " ${configdirs} " in
11458 *" gcc "*) ;;
11459 *) ok=no ;;
11460 esac
1c710c3c 11461
2abefe3d
PB
11462 if test $ok = yes; then
11463 # An in-tree tool is available and we can use it
11464 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11465 echo "$as_me:$LINENO: result: just compiled" >&5
11466echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11467 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11468 # We already found the complete path
172e41aa 11469 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11470 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11471echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11472 elif test "x$target" = "x$host"; then
11473 # We can use an host tool
11474 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11475 echo "$as_me:$LINENO: result: host tool" >&5
11476echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11477 else
11478 # We need a cross tool
2aeb72e9
DD
11479 echo "$as_me:$LINENO: result: pre-installed" >&5
11480echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11481 fi
11482fi
0b0dc272 11483
2aeb72e9
DD
11484echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11485echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11486if test "x${build}" != "x${host}" ; then
e8b05380
PB
11487 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11488 # We already found the complete path
172e41aa 11489 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11490 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11491echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11492 else
11493 # Canadian cross, just use what we found
2aeb72e9
DD
11494 echo "$as_me:$LINENO: result: pre-installed" >&5
11495echo "${ECHO_T}pre-installed" >&6
e8b05380 11496 fi
2abefe3d
PB
11497else
11498 ok=yes
11499 case " ${configdirs} " in
11500 *" gcc "*) ;;
11501 *) ok=no ;;
11502 esac
11503 case ,${enable_languages}, in
11504 *,java,*) ;;
11505 *) ok=no ;;
11506 esac
11507 if test $ok = yes; then
11508 # An in-tree tool is available and we can use it
11509 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11510 echo "$as_me:$LINENO: result: just compiled" >&5
11511echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11512 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11513 # We already found the complete path
172e41aa 11514 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11515 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11516echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11517 elif test "x$target" = "x$host"; then
11518 # We can use an host tool
11519 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11520 echo "$as_me:$LINENO: result: host tool" >&5
11521echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11522 else
11523 # We need a cross tool
2aeb72e9
DD
11524 echo "$as_me:$LINENO: result: pre-installed" >&5
11525echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11526 fi
11527fi
0b0dc272 11528
2aeb72e9
DD
11529echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11530echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11531if test "x${build}" != "x${host}" ; then
e8b05380
PB
11532 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11533 # We already found the complete path
172e41aa 11534 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11535 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11536echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11537 else
11538 # Canadian cross, just use what we found
2aeb72e9
DD
11539 echo "$as_me:$LINENO: result: pre-installed" >&5
11540echo "${ECHO_T}pre-installed" >&6
e8b05380 11541 fi
2abefe3d
PB
11542else
11543 ok=yes
11544 case " ${configdirs} " in
11545 *" gcc "*) ;;
11546 *) ok=no ;;
11547 esac
11548 case ,${enable_languages}, in
11549 *,fortran,*) ;;
11550 *) ok=no ;;
11551 esac
11552 if test $ok = yes; then
11553 # An in-tree tool is available and we can use it
11554 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11555 echo "$as_me:$LINENO: result: just compiled" >&5
11556echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11557 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11558 # We already found the complete path
172e41aa 11559 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11560 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11561echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11562 elif test "x$target" = "x$host"; then
11563 # We can use an host tool
11564 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11565 echo "$as_me:$LINENO: result: host tool" >&5
11566echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11567 else
11568 # We need a cross tool
2aeb72e9
DD
11569 echo "$as_me:$LINENO: result: pre-installed" >&5
11570echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11571 fi
11572fi
0b0dc272 11573
2aeb72e9
DD
11574echo "$as_me:$LINENO: checking where to find the target ld" >&5
11575echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11576if test "x${build}" != "x${host}" ; then
e8b05380
PB
11577 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11578 # We already found the complete path
172e41aa 11579 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11580 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11581echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11582 else
11583 # Canadian cross, just use what we found
2aeb72e9
DD
11584 echo "$as_me:$LINENO: result: pre-installed" >&5
11585echo "${ECHO_T}pre-installed" >&6
e8b05380 11586 fi
2abefe3d
PB
11587else
11588 ok=yes
11589 case " ${configdirs} " in
11590 *" ld "*) ;;
11591 *) ok=no ;;
11592 esac
1c710c3c 11593
2abefe3d
PB
11594 if test $ok = yes; then
11595 # An in-tree tool is available and we can use it
11596 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11597 echo "$as_me:$LINENO: result: just compiled" >&5
11598echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11599 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11600 # We already found the complete path
172e41aa 11601 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11602 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11603echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11604 elif test "x$target" = "x$host"; then
11605 # We can use an host tool
11606 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11607 echo "$as_me:$LINENO: result: host tool" >&5
11608echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11609 else
11610 # We need a cross tool
2aeb72e9
DD
11611 echo "$as_me:$LINENO: result: pre-installed" >&5
11612echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11613 fi
11614fi
0b0dc272 11615
2aeb72e9
DD
11616echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11617echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11618if test "x${build}" != "x${host}" ; then
e8b05380
PB
11619 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11620 # We already found the complete path
172e41aa 11621 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11622 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11623echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11624 else
11625 # Canadian cross, just use what we found
2aeb72e9
DD
11626 echo "$as_me:$LINENO: result: pre-installed" >&5
11627echo "${ECHO_T}pre-installed" >&6
e8b05380 11628 fi
2abefe3d 11629else
e8b05380
PB
11630 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11631 # We already found the complete path
172e41aa 11632 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11633 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11634echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11635 elif test "x$target" = "x$host"; then
2abefe3d
PB
11636 # We can use an host tool
11637 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11638 echo "$as_me:$LINENO: result: host tool" >&5
11639echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11640 else
11641 # We need a cross tool
2aeb72e9
DD
11642 echo "$as_me:$LINENO: result: pre-installed" >&5
11643echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11644 fi
11645fi
0b0dc272 11646
2aeb72e9
DD
11647echo "$as_me:$LINENO: checking where to find the target nm" >&5
11648echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11649if test "x${build}" != "x${host}" ; then
e8b05380
PB
11650 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11651 # We already found the complete path
172e41aa 11652 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11653 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11654echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11655 else
11656 # Canadian cross, just use what we found
2aeb72e9
DD
11657 echo "$as_me:$LINENO: result: pre-installed" >&5
11658echo "${ECHO_T}pre-installed" >&6
e8b05380 11659 fi
2abefe3d
PB
11660else
11661 ok=yes
11662 case " ${configdirs} " in
11663 *" binutils "*) ;;
11664 *) ok=no ;;
11665 esac
1c710c3c 11666
2abefe3d
PB
11667 if test $ok = yes; then
11668 # An in-tree tool is available and we can use it
11669 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11670 echo "$as_me:$LINENO: result: just compiled" >&5
11671echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11672 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11673 # We already found the complete path
172e41aa 11674 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11675 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11676echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11677 elif test "x$target" = "x$host"; then
11678 # We can use an host tool
11679 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11680 echo "$as_me:$LINENO: result: host tool" >&5
11681echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11682 else
11683 # We need a cross tool
2aeb72e9
DD
11684 echo "$as_me:$LINENO: result: pre-installed" >&5
11685echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11686 fi
11687fi
0b0dc272 11688
2aeb72e9
DD
11689echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11690echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11691if test "x${build}" != "x${host}" ; then
e8b05380
PB
11692 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11693 # We already found the complete path
172e41aa 11694 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11695 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11696echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11697 else
11698 # Canadian cross, just use what we found
2aeb72e9
DD
11699 echo "$as_me:$LINENO: result: pre-installed" >&5
11700echo "${ECHO_T}pre-installed" >&6
e8b05380 11701 fi
2abefe3d
PB
11702else
11703 ok=yes
11704 case " ${configdirs} " in
11705 *" binutils "*) ;;
11706 *) ok=no ;;
11707 esac
1c710c3c 11708
2abefe3d
PB
11709 if test $ok = yes; then
11710 # An in-tree tool is available and we can use it
11711 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11712 echo "$as_me:$LINENO: result: just compiled" >&5
11713echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11714 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11715 # We already found the complete path
172e41aa 11716 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11717 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11718echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11719 elif test "x$target" = "x$host"; then
11720 # We can use an host tool
11721 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11722 echo "$as_me:$LINENO: result: host tool" >&5
11723echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11724 else
11725 # We need a cross tool
2aeb72e9
DD
11726 echo "$as_me:$LINENO: result: pre-installed" >&5
11727echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11728 fi
11729fi
0b0dc272 11730
2aeb72e9
DD
11731echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11732echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11733if test "x${build}" != "x${host}" ; then
e8b05380
PB
11734 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11735 # We already found the complete path
172e41aa 11736 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11737 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11738echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11739 else
11740 # Canadian cross, just use what we found
2aeb72e9
DD
11741 echo "$as_me:$LINENO: result: pre-installed" >&5
11742echo "${ECHO_T}pre-installed" >&6
e8b05380 11743 fi
2abefe3d
PB
11744else
11745 ok=yes
11746 case " ${configdirs} " in
11747 *" binutils "*) ;;
11748 *) ok=no ;;
11749 esac
1c710c3c 11750
2abefe3d
PB
11751 if test $ok = yes; then
11752 # An in-tree tool is available and we can use it
11753 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11754 echo "$as_me:$LINENO: result: just compiled" >&5
11755echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11756 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11757 # We already found the complete path
172e41aa 11758 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11759 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11760echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11761 elif test "x$target" = "x$host"; then
11762 # We can use an host tool
11763 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11764 echo "$as_me:$LINENO: result: host tool" >&5
11765echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11766 else
11767 # We need a cross tool
2aeb72e9
DD
11768 echo "$as_me:$LINENO: result: pre-installed" >&5
11769echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11770 fi
11771fi
0b0dc272 11772
2aeb72e9
DD
11773echo "$as_me:$LINENO: checking where to find the target strip" >&5
11774echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11775if test "x${build}" != "x${host}" ; then
e8b05380
PB
11776 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11777 # We already found the complete path
172e41aa 11778 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11779 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11780echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11781 else
11782 # Canadian cross, just use what we found
2aeb72e9
DD
11783 echo "$as_me:$LINENO: result: pre-installed" >&5
11784echo "${ECHO_T}pre-installed" >&6
e8b05380 11785 fi
2abefe3d
PB
11786else
11787 ok=yes
11788 case " ${configdirs} " in
11789 *" binutils "*) ;;
11790 *) ok=no ;;
11791 esac
1c710c3c 11792
2abefe3d
PB
11793 if test $ok = yes; then
11794 # An in-tree tool is available and we can use it
11795 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11796 echo "$as_me:$LINENO: result: just compiled" >&5
11797echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11798 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11799 # We already found the complete path
172e41aa 11800 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11801 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11802echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11803 elif test "x$target" = "x$host"; then
11804 # We can use an host tool
11805 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11806 echo "$as_me:$LINENO: result: host tool" >&5
11807echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11808 else
11809 # We need a cross tool
2aeb72e9
DD
11810 echo "$as_me:$LINENO: result: pre-installed" >&5
11811echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11812 fi
11813fi
0b0dc272 11814
2aeb72e9
DD
11815echo "$as_me:$LINENO: checking where to find the target windres" >&5
11816echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11817if test "x${build}" != "x${host}" ; then
e8b05380
PB
11818 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11819 # We already found the complete path
172e41aa 11820 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11821 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11822echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11823 else
11824 # Canadian cross, just use what we found
2aeb72e9
DD
11825 echo "$as_me:$LINENO: result: pre-installed" >&5
11826echo "${ECHO_T}pre-installed" >&6
e8b05380 11827 fi
2abefe3d
PB
11828else
11829 ok=yes
11830 case " ${configdirs} " in
11831 *" binutils "*) ;;
11832 *) ok=no ;;
11833 esac
1c710c3c 11834
2abefe3d
PB
11835 if test $ok = yes; then
11836 # An in-tree tool is available and we can use it
11837 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11838 echo "$as_me:$LINENO: result: just compiled" >&5
11839echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11840 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11841 # We already found the complete path
172e41aa 11842 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11843 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11844echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11845 elif test "x$target" = "x$host"; then
11846 # We can use an host tool
11847 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11848 echo "$as_me:$LINENO: result: host tool" >&5
11849echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11850 else
11851 # We need a cross tool
2aeb72e9
DD
11852 echo "$as_me:$LINENO: result: pre-installed" >&5
11853echo "${ECHO_T}pre-installed" >&6
2abefe3d 11854 fi
671aa708 11855fi
be912515 11856
901119ae
KT
11857echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11858echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11859if test "x${build}" != "x${host}" ; then
11860 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11861 # We already found the complete path
11862 ac_dir=`dirname $WINDMC_FOR_TARGET`
11863 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11864echo "${ECHO_T}pre-installed in $ac_dir" >&6
11865 else
11866 # Canadian cross, just use what we found
11867 echo "$as_me:$LINENO: result: pre-installed" >&5
11868echo "${ECHO_T}pre-installed" >&6
11869 fi
11870else
11871 ok=yes
11872 case " ${configdirs} " in
11873 *" binutils "*) ;;
11874 *) ok=no ;;
11875 esac
11876
11877 if test $ok = yes; then
11878 # An in-tree tool is available and we can use it
11879 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11880 echo "$as_me:$LINENO: result: just compiled" >&5
11881echo "${ECHO_T}just compiled" >&6
11882 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11883 # We already found the complete path
11884 ac_dir=`dirname $WINDMC_FOR_TARGET`
11885 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11886echo "${ECHO_T}pre-installed in $ac_dir" >&6
11887 elif test "x$target" = "x$host"; then
11888 # We can use an host tool
11889 WINDMC_FOR_TARGET='$(WINDMC)'
11890 echo "$as_me:$LINENO: result: host tool" >&5
11891echo "${ECHO_T}host tool" >&6
11892 else
11893 # We need a cross tool
11894 echo "$as_me:$LINENO: result: pre-installed" >&5
11895echo "${ECHO_T}pre-installed" >&6
11896 fi
11897fi
11898
be912515
NN
11899
11900
2abefe3d 11901
0b0dc272 11902
671aa708
NN
11903# Certain tools may need extra flags.
11904AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11905RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11906NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11907
2abefe3d
PB
11908# When building target libraries, except in a Canadian cross, we use
11909# the same toolchain as the compiler we just built.
11910COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11911COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11912COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11913if test $host = $build; then
11914 case " $configdirs " in
11915 *" gcc "*)
11916 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11917 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11918 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11919 ;;
11920 esac
11921fi
11922
11923
11924
11925
11926
2aeb72e9
DD
11927echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11928echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11929# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11930if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11931 enableval="$enable_maintainer_mode"
11932 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11933else
11934 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11935fi;
11936echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11937echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11938
11939
11940if test "$USE_MAINTAINER_MODE" = yes; then
11941 MAINTAINER_MODE_TRUE=
11942 MAINTAINER_MODE_FALSE='#'
11943else
11944 MAINTAINER_MODE_TRUE='#'
11945 MAINTAINER_MODE_FALSE=
1c710c3c 11946fi
ee03dc5e
AO
11947MAINT=$MAINTAINER_MODE_TRUE
11948
2805b53a
NN
11949# ---------------------
11950# GCC bootstrap support
11951# ---------------------
11952
11953# Stage specific cflags for build.
11954stage1_cflags="-g"
11955case $build in
11956 vax-*-*)
11957 case ${GCC} in
11958 yes) stage1_cflags="-g -Wa,-J" ;;
11959 *) stage1_cflags="-g -J" ;;
11960 esac ;;
2805b53a
NN
11961esac
11962
0b50988a
EB
11963# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11964if test "$GCC" = yes; then
11965 saved_CFLAGS="$CFLAGS"
11966
11967 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11968 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
11969 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11970echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
11971 cat >conftest.$ac_ext <<_ACEOF
11972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
11977
9cc1244e
JJ
11978#if (__GNUC__ < 3) \
11979 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11980 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11981#error http://gcc.gnu.org/PR29382
11982#endif
11983
1c710c3c
DJ
11984int
11985main ()
11986{
11987
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext
2aeb72e9
DD
11993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 echo "$as_me:$LINENO: result: yes" >&5
12015echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12016else
12017 echo "$as_me: failed program was:" >&5
12018sed 's/^/| /' conftest.$ac_ext >&5
12019
2aeb72e9
DD
12020echo "$as_me:$LINENO: result: no" >&5
12021echo "${ECHO_T}no" >&6
1c710c3c 12022fi
2aeb72e9 12023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12024
12025 CFLAGS="$saved_CFLAGS"
12026fi
12027
12028
2805b53a 12029
8efea775 12030# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12031# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12032if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12033 enableval="$enable_stage1_checking"
12034 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12035else
e643dc23 12036 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12037 stage1_checking=--enable-checking=yes,types
8efea775 12038else
e643dc23 12039 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12040fi
2aeb72e9 12041fi;
8efea775
PB
12042
12043
2805b53a 12044# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12045# Check whether --enable-werror or --disable-werror was given.
2805b53a 12046if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12047 enableval="$enable_werror"
12048
2805b53a 12049else
416cfb5e 12050 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12051 enable_werror=yes
88fceb68
PB
12052else
12053 enable_werror=no
12054fi
2aeb72e9 12055fi;
09a9c095
NN
12056case ${enable_werror} in
12057 yes) stage2_werror_flag="--enable-werror-always" ;;
12058 *) stage2_werror_flag="" ;;
2805b53a
NN
12059esac
12060
12061
32845532 12062# Flags needed to enable html installing and building
1c710c3c 12063
2aeb72e9 12064# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12065if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12066 withval="$with_datarootdir"
12067 datarootdir="\${prefix}/${withval}"
32845532
CD
12068else
12069 datarootdir="\${prefix}/share"
2aeb72e9 12070fi;
32845532
CD
12071
12072
2aeb72e9 12073# Check whether --with-docdir or --without-docdir was given.
32845532 12074if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12075 withval="$with_docdir"
12076 docdir="\${prefix}/${withval}"
32845532
CD
12077else
12078 docdir="\${datarootdir}/doc"
2aeb72e9 12079fi;
32845532
CD
12080
12081
2aeb72e9 12082# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12083if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12084 withval="$with_pdfdir"
12085 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12086else
12087 pdfdir="\${docdir}"
2aeb72e9 12088fi;
9c4d2493
BM
12089
12090
2aeb72e9 12091# Check whether --with-htmldir or --without-htmldir was given.
32845532 12092if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12093 withval="$with_htmldir"
12094 htmldir="\${prefix}/${withval}"
32845532
CD
12095else
12096 htmldir="\${docdir}"
2aeb72e9 12097fi;
32845532
CD
12098
12099
12100
12101
172e41aa 12102
11a67599 12103
2aeb72e9 12104 ac_config_files="$ac_config_files Makefile"
1c710c3c 12105cat >confcache <<\_ACEOF
671aa708
NN
12106# This file is a shell script that caches the results of configure
12107# tests run on this system so they can be shared between configure
1c710c3c
DJ
12108# scripts and configure runs, see configure's option --config-cache.
12109# It is not useful on other systems. If it contains results you don't
12110# want to keep, you may remove or edit it.
671aa708 12111#
1c710c3c
DJ
12112# config.status only pays attention to the cache file if you give it
12113# the --recheck option to rerun configure.
671aa708 12114#
1c710c3c
DJ
12115# `ac_cv_env_foo' variables (set or unset) will be overridden when
12116# loading this file, other *unset* `ac_cv_foo' will be assigned the
12117# following values.
12118
12119_ACEOF
12120
671aa708
NN
12121# The following way of writing the cache mishandles newlines in values,
12122# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12123# So, don't put newlines in cache variables' values.
671aa708
NN
12124# Ultrix sh set writes to stderr and can't be redirected directly,
12125# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12126{
1c710c3c 12127 (set) 2>&1 |
2aeb72e9
DD
12128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12129 *ac_space=\ *)
1c710c3c
DJ
12130 # `set' does not quote correctly, so add quotes (double-quote
12131 # substitution turns \\\\ into \\, and sed turns \\ into \).
12132 sed -n \
12133 "s/'/'\\\\''/g;
12134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12135 ;;
1c710c3c
DJ
12136 *)
12137 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12138 sed -n \
12139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12140 ;;
2aeb72e9
DD
12141 esac;
12142} |
1c710c3c
DJ
12143 sed '
12144 t clear
2aeb72e9 12145 : clear
1c710c3c
DJ
12146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12147 t end
2aeb72e9
DD
12148 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12149 : end' >>confcache
12150if diff $cache_file confcache >/dev/null 2>&1; then :; else
12151 if test -w $cache_file; then
12152 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12153 cat confcache >$cache_file
671aa708 12154 else
2aeb72e9 12155 echo "not updating unwritable cache $cache_file"
671aa708 12156 fi
4977bab6 12157fi
671aa708 12158rm -f confcache
79c06341 12159
671aa708
NN
12160test "x$prefix" = xNONE && prefix=$ac_default_prefix
12161# Let make expand exec_prefix.
12162test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12163
2aeb72e9
DD
12164# VPATH may cause trouble with some makes, so we remove $(srcdir),
12165# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12166# trailing colons and then remove the whole line if VPATH becomes empty
12167# (actually we leave an empty line to preserve line numbers).
12168if test "x$srcdir" = x.; then
12169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12170s/:*\$(srcdir):*/:/;
12171s/:*\${srcdir}:*/:/;
12172s/:*@srcdir@:*/:/;
12173s/^\([^=]*=[ ]*\):*/\1/;
12174s/:*$//;
12175s/^[^=]*=[ ]*$//;
12176}'
12177fi
12178
671aa708
NN
12179# Transform confdefs.h into DEFS.
12180# Protect against shell expansion while executing Makefile rules.
12181# Protect against Makefile macro expansion.
1c710c3c
DJ
12182#
12183# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12184# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12185# look for a macro that doesn't take arguments.
2aeb72e9 12186cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12187t clear
2aeb72e9
DD
12188: clear
12189s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12190t quote
2aeb72e9 12191s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12192t quote
2aeb72e9
DD
12193d
12194: quote
12195s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12196s,\[,\\&,g
12197s,\],\\&,g
12198s,\$,$$,g
12199p
12200_ACEOF
12201# We use echo to avoid assuming a particular line-breaking character.
12202# The extra dot is to prevent the shell from consuming trailing
12203# line-breaks from the sub-command output. A line-break within
12204# single-quotes doesn't work because, if this script is created in a
12205# platform that uses two characters for line-breaks (e.g., DOS), tr
12206# would break.
12207ac_LF_and_DOT=`echo; echo .`
12208DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12209rm -f confdef2opt.sed
1c710c3c
DJ
12210
12211
12212ac_libobjs=
12213ac_ltlibobjs=
12214for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12215 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12216 ac_i=`echo "$ac_i" |
12217 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12218 # 2. Add them.
12219 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12220 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12221done
12222LIBOBJS=$ac_libobjs
fb0103e5 12223
1c710c3c 12224LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12225
af71363e 12226
1c710c3c
DJ
12227
12228: ${CONFIG_STATUS=./config.status}
12229ac_clean_files_save=$ac_clean_files
12230ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12231{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12232echo "$as_me: creating $CONFIG_STATUS" >&6;}
12233cat >$CONFIG_STATUS <<_ACEOF
12234#! $SHELL
12235# Generated by $as_me.
671aa708 12236# Run this file to recreate the current configuration.
671aa708 12237# Compiler output produced by configure, useful for debugging
1c710c3c 12238# configure, is in config.log if it exists.
0b0dc272 12239
1c710c3c
DJ
12240debug=false
12241ac_cs_recheck=false
12242ac_cs_silent=false
12243SHELL=\${CONFIG_SHELL-$SHELL}
12244_ACEOF
12245
12246cat >>$CONFIG_STATUS <<\_ACEOF
12247## --------------------- ##
12248## M4sh Initialization. ##
12249## --------------------- ##
12250
2aeb72e9 12251# Be Bourne compatible
1c710c3c
DJ
12252if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12253 emulate sh
12254 NULLCMD=:
12255 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12256 # is contrary to our usage. Disable this feature.
12257 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12258elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12259 set -o posix
1c710c3c 12260fi
2aeb72e9 12261DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12262
12263# Support unset when possible.
12264if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12265 as_unset=unset
12266else
12267 as_unset=false
12268fi
12269
12270
12271# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12272$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12273PS1='$ '
12274PS2='> '
12275PS4='+ '
12276
12277# NLS nuisances.
12278for as_var in \
12279 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12280 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12281 LC_TELEPHONE LC_TIME
12282do
12283 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12284 eval $as_var=C; export $as_var
12285 else
2aeb72e9 12286 $as_unset $as_var
1c710c3c
DJ
12287 fi
12288done
12289
12290# Required to use basename.
2aeb72e9 12291if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12292 as_expr=expr
12293else
12294 as_expr=false
12295fi
12296
2aeb72e9 12297if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12298 as_basename=basename
12299else
12300 as_basename=false
12301fi
12302
12303
12304# Name of the executable.
2aeb72e9 12305as_me=`$as_basename "$0" ||
1c710c3c
DJ
12306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12307 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12308 X"$0" : 'X\(/\)$' \| \
12309 . : '\(.\)' 2>/dev/null ||
1c710c3c 12310echo X/"$0" |
2aeb72e9
DD
12311 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12312 /^X\/\(\/\/\)$/{ s//\1/; q; }
12313 /^X\/\(\/\).*/{ s//\1/; q; }
12314 s/.*/./; q'`
1c710c3c 12315
2aeb72e9
DD
12316
12317# PATH needs CR, and LINENO needs CR and PATH.
12318# Avoid depending upon Character Ranges.
12319as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12320as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12321as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12322as_cr_digits='0123456789'
12323as_cr_alnum=$as_cr_Letters$as_cr_digits
12324
12325# The user is always right.
12326if test "${PATH_SEPARATOR+set}" != set; then
12327 echo "#! /bin/sh" >conf$$.sh
12328 echo "exit 0" >>conf$$.sh
12329 chmod +x conf$$.sh
12330 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12331 PATH_SEPARATOR=';'
12332 else
12333 PATH_SEPARATOR=:
12334 fi
12335 rm -f conf$$.sh
12336fi
1c710c3c
DJ
12337
12338
2aeb72e9
DD
12339 as_lineno_1=$LINENO
12340 as_lineno_2=$LINENO
12341 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12342 test "x$as_lineno_1" != "x$as_lineno_2" &&
12343 test "x$as_lineno_3" = "x$as_lineno_2" || {
12344 # Find who we are. Look in the path if we contain no path at all
12345 # relative or not.
12346 case $0 in
12347 *[\\/]* ) as_myself=$0 ;;
12348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12354done
1c710c3c 12355
2aeb72e9
DD
12356 ;;
12357 esac
12358 # We did not find ourselves, most probably we were run as `sh COMMAND'
12359 # in which case we are not to be found in the path.
12360 if test "x$as_myself" = x; then
12361 as_myself=$0
12362 fi
12363 if test ! -f "$as_myself"; then
12364 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12365echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12366 { (exit 1); exit 1; }; }
12367 fi
12368 case $CONFIG_SHELL in
12369 '')
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12372do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
12375 for as_base in sh bash ksh sh5; do
12376 case $as_dir in
12377 /*)
12378 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12379 as_lineno_1=$LINENO
12380 as_lineno_2=$LINENO
2aeb72e9 12381 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12382 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12383 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12384 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12385 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12386 CONFIG_SHELL=$as_dir/$as_base
12387 export CONFIG_SHELL
12388 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12389 fi;;
12390 esac
12391 done
12392done
12393;;
12394 esac
1c710c3c
DJ
12395
12396 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12397 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12398 # line-number line before each line; the second 'sed' does the real
12399 # work. The second script uses 'N' to pair each line-number line
12400 # with the numbered line, and appends trailing '-' during
12401 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12402 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12403 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12404 sed '=' <$as_myself |
1c710c3c
DJ
12405 sed '
12406 N
2aeb72e9
DD
12407 s,$,-,
12408 : loop
12409 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12410 t loop
2aeb72e9
DD
12411 s,-$,,
12412 s,^['$as_cr_digits']*\n,,
1c710c3c 12413 ' >$as_me.lineno &&
2aeb72e9
DD
12414 chmod +x $as_me.lineno ||
12415 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12416echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12417 { (exit 1); exit 1; }; }
12418
12419 # Don't try to exec as it changes $[0], causing all sort of problems
12420 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12421 # original and so on. Autoconf is especially sensible to this).
12422 . ./$as_me.lineno
1c710c3c
DJ
12423 # Exit status is that of the last command.
12424 exit
12425}
12426
12427
2aeb72e9
DD
12428case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12429 *c*,-n*) ECHO_N= ECHO_C='
12430' ECHO_T=' ' ;;
12431 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12432 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12433esac
12434
2aeb72e9 12435if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12436 as_expr=expr
12437else
12438 as_expr=false
12439fi
12440
12441rm -f conf$$ conf$$.exe conf$$.file
12442echo >conf$$.file
12443if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12444 # We could just check for DJGPP; but this test a) works b) is more generic
12445 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12446 if test -f conf$$.exe; then
12447 # Don't use ln at all; we don't have any links
1c710c3c 12448 as_ln_s='cp -p'
2aeb72e9
DD
12449 else
12450 as_ln_s='ln -s'
12451 fi
1c710c3c
DJ
12452elif ln conf$$.file conf$$ 2>/dev/null; then
12453 as_ln_s=ln
12454else
12455 as_ln_s='cp -p'
12456fi
2aeb72e9 12457rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12458
12459if mkdir -p . 2>/dev/null; then
12460 as_mkdir_p=:
12461else
12462 test -d ./-p && rmdir ./-p
12463 as_mkdir_p=false
12464fi
12465
2aeb72e9 12466as_executable_p="test -f"
1c710c3c
DJ
12467
12468# Sed expression to map a string onto a valid CPP name.
12469as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12470
12471# Sed expression to map a string onto a valid variable name.
12472as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12473
12474
2aeb72e9
DD
12475# IFS
12476# We need space, tab and new line, in precisely that order.
12477as_nl='
12478'
12479IFS=" $as_nl"
12480
12481# CDPATH.
12482$as_unset CDPATH
12483
1c710c3c
DJ
12484exec 6>&1
12485
2aeb72e9 12486# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12487# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12488# values after options handling. Logging --version etc. is OK.
12489exec 5>>config.log
12490{
12491 echo
12492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12493## Running $as_me. ##
12494_ASBOX
12495} >&5
12496cat >&5 <<_CSEOF
12497
1c710c3c 12498This file was extended by $as_me, which was
2aeb72e9 12499generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12500
12501 CONFIG_FILES = $CONFIG_FILES
12502 CONFIG_HEADERS = $CONFIG_HEADERS
12503 CONFIG_LINKS = $CONFIG_LINKS
12504 CONFIG_COMMANDS = $CONFIG_COMMANDS
12505 $ $0 $@
12506
2aeb72e9
DD
12507_CSEOF
12508echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12509echo >&5
1c710c3c
DJ
12510_ACEOF
12511
12512# Files that config.status was made for.
2aeb72e9
DD
12513if test -n "$ac_config_files"; then
12514 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12515fi
1c710c3c 12516
2aeb72e9
DD
12517if test -n "$ac_config_headers"; then
12518 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12519fi
12520
12521if test -n "$ac_config_links"; then
12522 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12523fi
12524
12525if test -n "$ac_config_commands"; then
12526 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12527fi
1c710c3c
DJ
12528
12529cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12530
1c710c3c
DJ
12531ac_cs_usage="\
12532\`$as_me' instantiates files from templates according to the
12533current configuration.
12534
12535Usage: $0 [OPTIONS] [FILE]...
12536
12537 -h, --help print this help, then exit
2aeb72e9 12538 -V, --version print version number, then exit
1c710c3c
DJ
12539 -q, --quiet do not print progress messages
12540 -d, --debug don't remove temporary files
12541 --recheck update $as_me by reconfiguring in the same conditions
12542 --file=FILE[:TEMPLATE]
12543 instantiate the configuration file FILE
12544
12545Configuration files:
12546$config_files
12547
12548Report bugs to <bug-autoconf@gnu.org>."
11a67599 12549_ACEOF
2aeb72e9 12550
1c710c3c
DJ
12551cat >>$CONFIG_STATUS <<_ACEOF
12552ac_cs_version="\\
12553config.status
2aeb72e9
DD
12554configured by $0, generated by GNU Autoconf 2.59,
12555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12556
2aeb72e9 12557Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12558This config.status script is free software; the Free Software Foundation
12559gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12560srcdir=$srcdir
12561INSTALL="$INSTALL"
1c710c3c
DJ
12562_ACEOF
12563
12564cat >>$CONFIG_STATUS <<\_ACEOF
12565# If no file are specified by the user, then we need to provide default
12566# value. By we need to know if files were specified by the user.
12567ac_need_defaults=:
12568while test $# != 0
a4b9e93e 12569do
1c710c3c
DJ
12570 case $1 in
12571 --*=*)
2aeb72e9
DD
12572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12574 ac_shift=:
12575 ;;
2aeb72e9 12576 -*)
1c710c3c
DJ
12577 ac_option=$1
12578 ac_optarg=$2
12579 ac_shift=shift
12580 ;;
2aeb72e9
DD
12581 *) # This is not an option, so the user has probably given explicit
12582 # arguments.
12583 ac_option=$1
12584 ac_need_defaults=false;;
1c710c3c
DJ
12585 esac
12586
12587 case $ac_option in
12588 # Handling of the options.
2aeb72e9
DD
12589_ACEOF
12590cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12592 ac_cs_recheck=: ;;
2aeb72e9
DD
12593 --version | --vers* | -V )
12594 echo "$ac_cs_version"; exit 0 ;;
12595 --he | --h)
12596 # Conflict between --help and --header
12597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12598Try \`$0 --help' for more information." >&5
12599echo "$as_me: error: ambiguous option: $1
12600Try \`$0 --help' for more information." >&2;}
12601 { (exit 1); exit 1; }; };;
12602 --help | --hel | -h )
12603 echo "$ac_cs_usage"; exit 0 ;;
12604 --debug | --d* | -d )
1c710c3c
DJ
12605 debug=: ;;
12606 --file | --fil | --fi | --f )
12607 $ac_shift
12608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12609 ac_need_defaults=false;;
2aeb72e9
DD
12610 --header | --heade | --head | --hea )
12611 $ac_shift
12612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12613 ac_need_defaults=false;;
1c710c3c
DJ
12614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12616 ac_cs_silent=: ;;
12617
12618 # This is an error.
2aeb72e9
DD
12619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12620Try \`$0 --help' for more information." >&5
12621echo "$as_me: error: unrecognized option: $1
12622Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12623 { (exit 1); exit 1; }; } ;;
12624
2aeb72e9 12625 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12626
0b0dc272 12627 esac
1c710c3c 12628 shift
0b0dc272
AM
12629done
12630
1c710c3c 12631ac_configure_extra_args=
0b0dc272 12632
1c710c3c
DJ
12633if $ac_cs_silent; then
12634 exec 6>/dev/null
12635 ac_configure_extra_args="$ac_configure_extra_args --silent"
12636fi
0b0dc272 12637
1c710c3c
DJ
12638_ACEOF
12639cat >>$CONFIG_STATUS <<_ACEOF
12640if \$ac_cs_recheck; then
2aeb72e9
DD
12641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12643fi
12644
12645_ACEOF
12646
1c710c3c 12647
11a67599 12648
2aeb72e9
DD
12649
12650
12651cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12652for ac_config_target in $ac_config_targets
12653do
2aeb72e9
DD
12654 case "$ac_config_target" in
12655 # Handling of arguments.
12656 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12657 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12658echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12659 { (exit 1); exit 1; }; };;
12660 esac
12661done
12662
12663# If the user did not use the arguments to specify the items to instantiate,
12664# then the envvar interface is used. Set only those that are not.
12665# We use the long form for the default assignment because of an extremely
12666# bizarre bug on SunOS 4.1.3.
12667if $ac_need_defaults; then
12668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12669fi
12670
12671# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12672# simply because there is no reason to put it here, and in addition,
1c710c3c 12673# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12674# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12675$debug ||
12676{
2aeb72e9 12677 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12678 trap '{ (exit 1); exit 1; }' 1 2 13 15
12679}
2aeb72e9 12680
1c710c3c
DJ
12681# Create a (secure) tmp directory for tmp files.
12682
12683{
2aeb72e9 12684 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12685 test -n "$tmp" && test -d "$tmp"
12686} ||
12687{
2aeb72e9
DD
12688 tmp=./confstat$$-$RANDOM
12689 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12690} ||
12691{
12692 echo "$me: cannot create a temporary directory in ." >&2
12693 { (exit 1); exit 1; }
12694}
12695
2aeb72e9
DD
12696_ACEOF
12697
12698cat >>$CONFIG_STATUS <<_ACEOF
12699
1c710c3c 12700#
2aeb72e9 12701# CONFIG_FILES section.
1c710c3c
DJ
12702#
12703
12704# No need to generate the scripts if there are no CONFIG_FILES.
12705# This happens for instance when ./config.status config.h
2aeb72e9
DD
12706if test -n "\$CONFIG_FILES"; then
12707 # Protect against being on the right side of a sed subst in config.status.
12708 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12709 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12710s,@SHELL@,$SHELL,;t t
12711s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12712s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12713s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12714s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12715s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12716s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12717s,@exec_prefix@,$exec_prefix,;t t
12718s,@prefix@,$prefix,;t t
12719s,@program_transform_name@,$program_transform_name,;t t
12720s,@bindir@,$bindir,;t t
12721s,@sbindir@,$sbindir,;t t
12722s,@libexecdir@,$libexecdir,;t t
12723s,@datadir@,$datadir,;t t
12724s,@sysconfdir@,$sysconfdir,;t t
12725s,@sharedstatedir@,$sharedstatedir,;t t
12726s,@localstatedir@,$localstatedir,;t t
12727s,@libdir@,$libdir,;t t
12728s,@includedir@,$includedir,;t t
12729s,@oldincludedir@,$oldincludedir,;t t
12730s,@infodir@,$infodir,;t t
12731s,@mandir@,$mandir,;t t
12732s,@build_alias@,$build_alias,;t t
12733s,@host_alias@,$host_alias,;t t
12734s,@target_alias@,$target_alias,;t t
12735s,@DEFS@,$DEFS,;t t
12736s,@ECHO_C@,$ECHO_C,;t t
12737s,@ECHO_N@,$ECHO_N,;t t
12738s,@ECHO_T@,$ECHO_T,;t t
12739s,@LIBS@,$LIBS,;t t
12740s,@build@,$build,;t t
12741s,@build_cpu@,$build_cpu,;t t
12742s,@build_vendor@,$build_vendor,;t t
12743s,@build_os@,$build_os,;t t
12744s,@build_noncanonical@,$build_noncanonical,;t t
12745s,@host_noncanonical@,$host_noncanonical,;t t
12746s,@target_noncanonical@,$target_noncanonical,;t t
12747s,@host@,$host,;t t
12748s,@host_cpu@,$host_cpu,;t t
12749s,@host_vendor@,$host_vendor,;t t
12750s,@host_os@,$host_os,;t t
12751s,@target@,$target,;t t
12752s,@target_cpu@,$target_cpu,;t t
12753s,@target_vendor@,$target_vendor,;t t
12754s,@target_os@,$target_os,;t t
12755s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12756s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12757s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12758s,@LN@,$LN,;t t
12759s,@LN_S@,$LN_S,;t t
12760s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12761s,@build_libsubdir@,$build_libsubdir,;t t
12762s,@build_subdir@,$build_subdir,;t t
12763s,@host_subdir@,$host_subdir,;t t
12764s,@target_subdir@,$target_subdir,;t t
12765s,@CC@,$CC,;t t
12766s,@CFLAGS@,$CFLAGS,;t t
12767s,@LDFLAGS@,$LDFLAGS,;t t
12768s,@CPPFLAGS@,$CPPFLAGS,;t t
12769s,@ac_ct_CC@,$ac_ct_CC,;t t
12770s,@EXEEXT@,$EXEEXT,;t t
12771s,@OBJEXT@,$OBJEXT,;t t
12772s,@CXX@,$CXX,;t t
12773s,@CXXFLAGS@,$CXXFLAGS,;t t
12774s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12775s,@GNATBIND@,$GNATBIND,;t t
12776s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12777s,@GNATMAKE@,$GNATMAKE,;t t
12778s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12779s,@do_compare@,$do_compare,;t t
12780s,@gmplibs@,$gmplibs,;t t
12781s,@gmpinc@,$gmpinc,;t t
12782s,@stage1_languages@,$stage1_languages,;t t
12783s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 12784s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
2aeb72e9
DD
12785s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12786s,@tooldir@,$tooldir,;t t
12787s,@build_tooldir@,$build_tooldir,;t t
12788s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12789s,@GDB_TK@,$GDB_TK,;t t
12790s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12791s,@build_configargs@,$build_configargs,;t t
12792s,@build_configdirs@,$build_configdirs,;t t
12793s,@host_configargs@,$host_configargs,;t t
12794s,@configdirs@,$configdirs,;t t
12795s,@target_configargs@,$target_configargs,;t t
12796s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12797s,@config_shell@,$config_shell,;t t
12798s,@YACC@,$YACC,;t t
12799s,@BISON@,$BISON,;t t
12800s,@M4@,$M4,;t t
12801s,@LEX@,$LEX,;t t
12802s,@FLEX@,$FLEX,;t t
12803s,@MAKEINFO@,$MAKEINFO,;t t
12804s,@EXPECT@,$EXPECT,;t t
12805s,@RUNTEST@,$RUNTEST,;t t
12806s,@AR@,$AR,;t t
12807s,@AS@,$AS,;t t
12808s,@DLLTOOL@,$DLLTOOL,;t t
12809s,@LD@,$LD,;t t
12810s,@LIPO@,$LIPO,;t t
12811s,@NM@,$NM,;t t
12812s,@RANLIB@,$RANLIB,;t t
12813s,@STRIP@,$STRIP,;t t
12814s,@WINDRES@,$WINDRES,;t t
901119ae 12815s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12816s,@OBJCOPY@,$OBJCOPY,;t t
12817s,@OBJDUMP@,$OBJDUMP,;t t
12818s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12819s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12820s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12821s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12822s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12823s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12824s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12825s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12826s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12827s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12828s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12829s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12830s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12831s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12832s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12833s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12834s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12835s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12836s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12837s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12838s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12839s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12840s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12841s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12842s,@MAINT@,$MAINT,;t t
12843s,@stage1_cflags@,$stage1_cflags,;t t
12844s,@stage1_checking@,$stage1_checking,;t t
12845s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12846s,@datarootdir@,$datarootdir,;t t
12847s,@docdir@,$docdir,;t t
12848s,@pdfdir@,$pdfdir,;t t
12849s,@htmldir@,$htmldir,;t t
12850s,@LIBOBJS@,$LIBOBJS,;t t
12851s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12852/@serialization_dependencies@/r $serialization_dependencies
12853s,@serialization_dependencies@,,;t t
12854/@host_makefile_frag@/r $host_makefile_frag
12855s,@host_makefile_frag@,,;t t
12856/@target_makefile_frag@/r $target_makefile_frag
12857s,@target_makefile_frag@,,;t t
12858/@alphaieee_frag@/r $alphaieee_frag
12859s,@alphaieee_frag@,,;t t
12860/@ospace_frag@/r $ospace_frag
12861s,@ospace_frag@,,;t t
12862CEOF
79c06341 12863
1c710c3c
DJ
12864_ACEOF
12865
2aeb72e9
DD
12866 cat >>$CONFIG_STATUS <<\_ACEOF
12867 # Split the substitutions into bite-sized pieces for seds with
12868 # small command number limits, like on Digital OSF/1 and HP-UX.
12869 ac_max_sed_lines=48
12870 ac_sed_frag=1 # Number of current file.
12871 ac_beg=1 # First line for current file.
12872 ac_end=$ac_max_sed_lines # Line after last line for current file.
12873 ac_more_lines=:
12874 ac_sed_cmds=
12875 while $ac_more_lines; do
12876 if test $ac_beg -gt 1; then
12877 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12878 else
12879 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12880 fi
12881 if test ! -s $tmp/subs.frag; then
12882 ac_more_lines=false
12883 else
12884 # The purpose of the label and of the branching condition is to
12885 # speed up the sed processing (if there are no `@' at all, there
12886 # is no need to browse any of the substitutions).
12887 # These are the two extra sed commands mentioned above.
12888 (echo ':t
12889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12890 if test -z "$ac_sed_cmds"; then
12891 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12892 else
12893 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12894 fi
12895 ac_sed_frag=`expr $ac_sed_frag + 1`
12896 ac_beg=$ac_end
12897 ac_end=`expr $ac_end + $ac_max_sed_lines`
12898 fi
12899 done
12900 if test -z "$ac_sed_cmds"; then
12901 ac_sed_cmds=cat
11a67599 12902 fi
2aeb72e9 12903fi # test -n "$CONFIG_FILES"
11a67599 12904
11a67599 12905_ACEOF
1c710c3c 12906cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12907for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12909 case $ac_file in
12910 - | *:- | *:-:* ) # input from stdin
12911 cat >$tmp/stdin
12912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12916 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12917 esac
12918
2aeb72e9
DD
12919 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12920 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12921$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12922 X"$ac_file" : 'X\(//\)[^/]' \| \
12923 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12924 X"$ac_file" : 'X\(/\)' \| \
12925 . : '\(.\)' 2>/dev/null ||
1c710c3c 12926echo X"$ac_file" |
2aeb72e9
DD
12927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12929 /^X\(\/\/\)$/{ s//\1/; q; }
12930 /^X\(\/\).*/{ s//\1/; q; }
12931 s/.*/./; q'`
12932 { if $as_mkdir_p; then
12933 mkdir -p "$ac_dir"
12934 else
12935 as_dir="$ac_dir"
1c710c3c 12936 as_dirs=
2aeb72e9
DD
12937 while test ! -d "$as_dir"; do
12938 as_dirs="$as_dir $as_dirs"
12939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941 X"$as_dir" : 'X\(//\)[^/]' \| \
12942 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12943 X"$as_dir" : 'X\(/\)' \| \
12944 . : '\(.\)' 2>/dev/null ||
1c710c3c 12945echo X"$as_dir" |
2aeb72e9
DD
12946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12948 /^X\(\/\/\)$/{ s//\1/; q; }
12949 /^X\(\/\).*/{ s//\1/; q; }
12950 s/.*/./; q'`
1c710c3c 12951 done
2aeb72e9
DD
12952 test ! -n "$as_dirs" || mkdir $as_dirs
12953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12954echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 12955 { (exit 1); exit 1; }; }; }
2aeb72e9 12956
1c710c3c 12957 ac_builddir=.
0b0dc272 12958
2aeb72e9 12959if test "$ac_dir" != .; then
1c710c3c 12960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
12961 # A "../" for each directory in $ac_dir_suffix.
12962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12963else
12964 ac_dir_suffix= ac_top_builddir=
12965fi
1c710c3c
DJ
12966
12967case $srcdir in
2aeb72e9 12968 .) # No --srcdir option. We are building in place.
1c710c3c 12969 ac_srcdir=.
2aeb72e9
DD
12970 if test -z "$ac_top_builddir"; then
12971 ac_top_srcdir=.
12972 else
12973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12974 fi ;;
12975 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 12976 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
12977 ac_top_srcdir=$srcdir ;;
12978 *) # Relative path.
12979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 12981esac
a4b9e93e 12982
2aeb72e9
DD
12983# Do not use `cd foo && pwd` to compute absolute paths, because
12984# the directories may not exist.
12985case `pwd` in
12986.) ac_abs_builddir="$ac_dir";;
12987*)
12988 case "$ac_dir" in
12989 .) ac_abs_builddir=`pwd`;;
12990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12992 esac;;
12993esac
12994case $ac_abs_builddir in
12995.) ac_abs_top_builddir=${ac_top_builddir}.;;
12996*)
12997 case ${ac_top_builddir}. in
12998 .) ac_abs_top_builddir=$ac_abs_builddir;;
12999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13001 esac;;
13002esac
13003case $ac_abs_builddir in
13004.) ac_abs_srcdir=$ac_srcdir;;
13005*)
13006 case $ac_srcdir in
13007 .) ac_abs_srcdir=$ac_abs_builddir;;
13008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13010 esac;;
13011esac
13012case $ac_abs_builddir in
13013.) ac_abs_top_srcdir=$ac_top_srcdir;;
13014*)
13015 case $ac_top_srcdir in
13016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13019 esac;;
13020esac
0b0dc272 13021
1c710c3c
DJ
13022
13023 case $INSTALL in
13024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13025 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13026 esac
11a67599 13027
2aeb72e9
DD
13028 if test x"$ac_file" != x-; then
13029 { echo "$as_me:$LINENO: creating $ac_file" >&5
13030echo "$as_me: creating $ac_file" >&6;}
13031 rm -f "$ac_file"
13032 fi
13033 # Let's still pretend it is `configure' which instantiates (i.e., don't
13034 # use $as_me), people would be surprised to read:
13035 # /* config.h. Generated by config.status. */
13036 if test x"$ac_file" = x-; then
13037 configure_input=
13038 else
13039 configure_input="$ac_file. "
13040 fi
13041 configure_input=$configure_input"Generated from `echo $ac_file_in |
13042 sed 's,.*/,,'` by configure."
13043
13044 # First look for the input files in the build tree, otherwise in the
13045 # src tree.
13046 ac_file_inputs=`IFS=:
13047 for f in $ac_file_in; do
13048 case $f in
13049 -) echo $tmp/stdin ;;
13050 [\\/$]*)
13051 # Absolute (can't be DOS-style, as IFS=:)
13052 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13053echo "$as_me: error: cannot find input file: $f" >&2;}
13054 { (exit 1); exit 1; }; }
13055 echo "$f";;
13056 *) # Relative
13057 if test -f "$f"; then
13058 # Build tree
13059 echo "$f"
13060 elif test -f "$srcdir/$f"; then
13061 # Source tree
13062 echo "$srcdir/$f"
13063 else
13064 # /dev/null tree
13065 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13066echo "$as_me: error: cannot find input file: $f" >&2;}
13067 { (exit 1); exit 1; }; }
13068 fi;;
13069 esac
13070 done` || { (exit 1); exit 1; }
11a67599 13071_ACEOF
1c710c3c
DJ
13072cat >>$CONFIG_STATUS <<_ACEOF
13073 sed "$ac_vpsub
13074$extrasub
13075_ACEOF
13076cat >>$CONFIG_STATUS <<\_ACEOF
13077:t
13078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13079s,@configure_input@,$configure_input,;t t
13080s,@srcdir@,$ac_srcdir,;t t
13081s,@abs_srcdir@,$ac_abs_srcdir,;t t
13082s,@top_srcdir@,$ac_top_srcdir,;t t
13083s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13084s,@builddir@,$ac_builddir,;t t
13085s,@abs_builddir@,$ac_abs_builddir,;t t
13086s,@top_builddir@,$ac_top_builddir,;t t
13087s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13088s,@INSTALL@,$ac_INSTALL,;t t
13089" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13090 rm -f $tmp/stdin
13091 if test x"$ac_file" != x-; then
13092 mv $tmp/out $ac_file
13093 else
13094 cat $tmp/out
13095 rm -f $tmp/out
13096 fi
11a67599 13097
2aeb72e9
DD
13098done
13099_ACEOF
11a67599 13100
2aeb72e9 13101cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13102
1c710c3c
DJ
13103{ (exit 0); exit 0; }
13104_ACEOF
671aa708 13105chmod +x $CONFIG_STATUS
1c710c3c
DJ
13106ac_clean_files=$ac_clean_files_save
13107
13108
13109# configure is writing to config.log, and then calls config.status.
13110# config.status does its own redirection, appending to config.log.
13111# Unfortunately, on DOS this fails, as config.log is still kept open
13112# by configure, so config.status won't be able to write to it; its
13113# output is simply discarded. So we exec the FD to /dev/null,
13114# effectively closing config.log, so it can be properly (re)opened and
13115# appended to by config.status. When coming back to configure, we
13116# need to make the FD available again.
13117if test "$no_create" != yes; then
13118 ac_cs_success=:
13119 ac_config_status_args=
13120 test "$silent" = yes &&
13121 ac_config_status_args="$ac_config_status_args --quiet"
13122 exec 5>/dev/null
13123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13124 exec 5>>config.log
13125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13126 # would make configure fail if this is the last instruction.
13127 $ac_cs_success || { (exit 1); exit 1; }
13128fi
79c06341 13129