]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
win32.S (_ffi_closure_STDCALL): New function.
[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"
9e3eba15 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc extra_mpfr_configure_flags ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
18c04407 277ac_pwd=`pwd`
671aa708
NN
278
279# Initialize some variables set by options.
1c710c3c
DJ
280ac_init_help=
281ac_init_version=false
671aa708
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
1c710c3c 284cache_file=/dev/null
671aa708 285exec_prefix=NONE
671aa708 286no_create=
671aa708
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
671aa708
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
1c710c3c
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
2aeb72e9 307datadir='${prefix}/share'
671aa708
NN
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
2aeb72e9 311libdir='${exec_prefix}/lib'
671aa708
NN
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
2aeb72e9
DD
314infodir='${prefix}/info'
315mandir='${prefix}/man'
79c06341 316
671aa708
NN
317ac_prev=
318for ac_option
319do
671aa708
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
2aeb72e9 322 eval "$ac_prev=\$ac_option"
671aa708
NN
323 ac_prev=
324 continue
325 fi
79c06341 326
2aeb72e9 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
2aeb72e9 331 case $ac_option in
671aa708
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 336 bindir=$ac_optarg ;;
671aa708
NN
337
338 -build | --build | --buil | --bui | --bu)
1c710c3c 339 ac_prev=build_alias ;;
671aa708 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 341 build_alias=$ac_optarg ;;
671aa708
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
671aa708 352
2aeb72e9 353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 354 ac_prev=datadir ;;
2aeb72e9
DD
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
1c710c3c 357 datadir=$ac_optarg ;;
671aa708
NN
358
359 -disable-* | --disable-*)
1c710c3c 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 361 # Reject names that are not valid shell variable names.
2aeb72e9 362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
2aeb72e9
DD
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
671aa708
NN
367
368 -enable-* | --enable-*)
1c710c3c 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 370 # Reject names that are not valid shell variable names.
2aeb72e9 371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
2aeb72e9
DD
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
1c710c3c 388 exec_prefix=$ac_optarg ;;
671aa708
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
1c710c3c
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
671aa708
NN
400
401 -host | --host | --hos | --ho)
1c710c3c 402 ac_prev=host_alias ;;
671aa708 403 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 404 host_alias=$ac_optarg ;;
671aa708
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 411 includedir=$ac_optarg ;;
671aa708
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 416 infodir=$ac_optarg ;;
671aa708
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 421 libdir=$ac_optarg ;;
671aa708
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
1c710c3c 428 libexecdir=$ac_optarg ;;
671aa708
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 437 localstatedir=$ac_optarg ;;
671aa708
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 442 mandir=$ac_optarg ;;
671aa708
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 449 | --no-cr | --no-c | -n)
671aa708
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 463 oldincludedir=$ac_optarg ;;
671aa708
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 468 prefix=$ac_optarg ;;
671aa708
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 475 program_prefix=$ac_optarg ;;
671aa708
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 482 program_suffix=$ac_optarg ;;
671aa708
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 499 program_transform_name=$ac_optarg ;;
671aa708
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
1c710c3c 509 sbindir=$ac_optarg ;;
671aa708
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
1c710c3c 520 sharedstatedir=$ac_optarg ;;
671aa708
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
1c710c3c 525 site=$ac_optarg ;;
671aa708
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 530 srcdir=$ac_optarg ;;
671aa708
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 537 sysconfdir=$ac_optarg ;;
671aa708
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 540 ac_prev=target_alias ;;
671aa708 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 542 target_alias=$ac_optarg ;;
671aa708
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
1c710c3c
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
671aa708
NN
549
550 -with-* | --with-*)
1c710c3c 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 552 # Reject names that are not valid shell variable names.
2aeb72e9 553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
2aeb72e9
DD
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
562
563 -without-* | --without-*)
1c710c3c 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 565 # Reject names that are not valid shell variable names.
2aeb72e9 566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
2aeb72e9
DD
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
671aa708
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 581 x_includes=$ac_optarg ;;
671aa708
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 588 x_libraries=$ac_optarg ;;
671aa708 589
1c710c3c
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
671aa708
NN
593 ;;
594
1c710c3c
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
2aeb72e9
DD
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
603 export $ac_envvar ;;
604
671aa708 605 *)
1c710c3c
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
1c710c3c
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
af71363e 620fi
af71363e 621
2aeb72e9
DD
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
671aa708 624do
2aeb72e9 625 eval ac_val=$`echo $ac_var`
1c710c3c 626 case $ac_val in
2aeb72e9
DD
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
671aa708
NN
642 esac
643done
644
1c710c3c
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
0b0dc272 651
1c710c3c
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
671aa708 667
671aa708
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
2aeb72e9
DD
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
1c710c3c 679echo X"$0" |
2aeb72e9
DD
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
671aa708 685 srcdir=$ac_confdir
2aeb72e9 686 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
2aeb72e9
DD
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 698 { (exit 1); exit 1; }; }
2aeb72e9 699 fi
1c710c3c 700fi
2aeb72e9
DD
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 703 { (exit 1); exit 1; }; }
2aeb72e9
DD
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
ac9e6043
RW
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
2aeb72e9
DD
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
2aeb72e9
DD
883_ACEOF
884
885 cat <<_ACEOF
1c710c3c
DJ
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 935 --enable-gold use gold instead of ld
30b74385
RW
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
d789184e
SP
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
30b74385 940 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 941 stage1. Mostly useful for compiler development.
30b74385
RW
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
1c710c3c 947 sub-packages for the host, target or build
30b74385 948 machine, or all sub-packages
1c710c3c
DJ
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
30b74385
RW
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
1c710c3c
DJ
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
30b74385
RW
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
30b74385
RW
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
972 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
973 when linking with PPL
f8bf9252
SP
974 --with-ppl=PATH Specify prefix directory for the installed PPL package
975 Equivalent to --with-ppl-include=PATH/include
976 plus --with-ppl-lib=PATH/lib
977 --with-ppl-include=PATH Specify directory for installed PPL include files
978 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 979 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
980 Equivalent to --with-cloog-include=PATH/include
981 plus --with-cloog-lib=PATH/lib
d789184e
SP
982 --with-cloog-include=PATH Specify directory for installed CLooG include files
983 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 984 --with-build-sysroot=SYSROOT
1c710c3c 985 use sysroot as the system root during the build
c8aea42c
PB
986 --with-debug-prefix-map='A=B C=D ...'
987 map A to B, C to D ... in debug information
30b74385 988 --with-build-time-tools=PATH
1c710c3c 989 use given path to find target tools during the build
30b74385
RW
990 --with-datarootdir use datarootdir as the data root directory.
991 --with-docdir install documentation in this directory.
992 --with-pdfdir install pdf in this directory.
993 --with-htmldir install html in this directory.
1c710c3c
DJ
994
995Some influential environment variables:
996 CC C compiler command
997 CFLAGS C compiler flags
998 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
999 nonstandard directory <lib dir>
2aeb72e9
DD
1000 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1001 headers in a nonstandard directory <include dir>
c3a86da9
DJ
1002 CXX C++ compiler command
1003 CXXFLAGS C++ compiler flags
278a7a38
AO
1004 AR AR for the host
1005 AS AS for the host
1006 DLLTOOL DLLTOOL for the host
1007 LD LD for the host
1008 LIPO LIPO for the host
1009 NM NM for the host
1010 RANLIB RANLIB for the host
1011 STRIP STRIP for the host
1012 WINDRES WINDRES for the host
901119ae 1013 WINDMC WINDMC for the host
278a7a38
AO
1014 OBJCOPY OBJCOPY for the host
1015 OBJDUMP OBJDUMP for the host
1016 CC_FOR_TARGET
1017 CC for the target
1018 CXX_FOR_TARGET
1019 CXX for the target
1020 GCC_FOR_TARGET
1021 GCC for the target
1022 GCJ_FOR_TARGET
1023 GCJ for the target
1024 GFORTRAN_FOR_TARGET
1025 GFORTRAN for the target
1026 AR_FOR_TARGET
1027 AR for the target
1028 AS_FOR_TARGET
1029 AS for the target
1030 DLLTOOL_FOR_TARGET
1031 DLLTOOL for the target
1032 LD_FOR_TARGET
1033 LD for the target
1034 LIPO_FOR_TARGET
1035 LIPO for the target
1036 NM_FOR_TARGET
1037 NM for the target
1038 OBJDUMP_FOR_TARGET
1039 OBJDUMP for the target
1040 RANLIB_FOR_TARGET
1041 RANLIB for the target
1042 STRIP_FOR_TARGET
1043 STRIP for the target
1044 WINDRES_FOR_TARGET
1045 WINDRES for the target
901119ae
KT
1046 WINDMC_FOR_TARGET
1047 WINDMC for the target
1c710c3c
DJ
1048
1049Use these variables to override the choices made by `configure' or to help
1050it to find libraries and programs with nonstandard names/locations.
1051
1052_ACEOF
1053fi
1054
1055if test "$ac_init_help" = "recursive"; then
1056 # If there are subdirs, report their specific --help.
2aeb72e9 1057 ac_popdir=`pwd`
1c710c3c 1058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1059 test -d $ac_dir || continue
1c710c3c
DJ
1060 ac_builddir=.
1061
2aeb72e9 1062if test "$ac_dir" != .; then
1c710c3c 1063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1064 # A "../" for each directory in $ac_dir_suffix.
1065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066else
1067 ac_dir_suffix= ac_top_builddir=
1068fi
1c710c3c
DJ
1069
1070case $srcdir in
2aeb72e9 1071 .) # No --srcdir option. We are building in place.
1c710c3c 1072 ac_srcdir=.
2aeb72e9
DD
1073 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=.
1075 else
1076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 fi ;;
1078 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1079 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1080 ac_top_srcdir=$srcdir ;;
1081 *) # Relative path.
1082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084esac
1085
1086# Do not use `cd foo && pwd` to compute absolute paths, because
1087# the directories may not exist.
1088case `pwd` in
1089.) ac_abs_builddir="$ac_dir";;
1090*)
1091 case "$ac_dir" in
1092 .) ac_abs_builddir=`pwd`;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_builddir=${ac_top_builddir}.;;
1099*)
1100 case ${ac_top_builddir}. in
1101 .) ac_abs_top_builddir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_srcdir=$ac_srcdir;;
1108*)
1109 case $ac_srcdir in
1110 .) ac_abs_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_srcdir=$ac_top_srcdir;;
1117*)
1118 case $ac_top_srcdir in
1119 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122 esac;;
1c710c3c 1123esac
2aeb72e9
DD
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
1134 test -f $ac_srcdir/configure.in; then
1135 echo
1136 $ac_configure --help
1c710c3c
DJ
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1139 fi
1140 cd $ac_popdir
1c710c3c
DJ
1141 done
1142fi
1143
2aeb72e9 1144test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1145if $ac_init_version; then
1146 cat <<\_ACEOF
1147
2aeb72e9 1148Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1149This configure script is free software; the Free Software Foundation
1150gives unlimited permission to copy, distribute and modify it.
1151_ACEOF
2aeb72e9 1152 exit 0
0b0dc272 1153fi
2aeb72e9
DD
1154exec 5>config.log
1155cat >&5 <<_ACEOF
1c710c3c
DJ
1156This file contains any messages produced by compilers while
1157running configure, to aid debugging if configure makes a mistake.
1158
1159It was created by $as_me, which was
2aeb72e9 1160generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1161
1162 $ $0 $@
1163
1164_ACEOF
1165{
1166cat <<_ASUNAME
1167## --------- ##
1168## Platform. ##
1169## --------- ##
1170
1171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179
1180/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1183hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1184/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187
1188_ASUNAME
1189
1190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191for as_dir in $PATH
1192do
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196done
1197
1198} >&5
1199
1200cat >&5 <<_ACEOF
1201
1202
1203## ----------- ##
1204## Core tests. ##
1205## ----------- ##
1206
1207_ACEOF
1208
1209
1210# Keep a trace of the command line.
1211# Strip out --no-create and --no-recursion so they do not pile up.
1212# Strip out --silent because we don't want to record it for future runs.
1213# Also quote any args containing shell meta-characters.
1214# Make two passes to allow for proper duplicate-argument suppression.
1215ac_configure_args=
1216ac_configure_args0=
1217ac_configure_args1=
2aeb72e9 1218ac_sep=
1c710c3c
DJ
1219ac_must_keep_next=false
1220for ac_pass in 1 2
1221do
1222 for ac_arg
1223 do
1224 case $ac_arg in
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 continue ;;
2aeb72e9 1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 esac
1232 case $ac_pass in
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 2)
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1238 else
1239 case $ac_arg in
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 esac
1247 ;;
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1250 fi
2aeb72e9
DD
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1c710c3c
DJ
1254 ;;
1255 esac
1256 done
1257done
1258$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261# When interrupted or exit'd, cleanup temporary files, and complete
1262# config.log. We remove comments because anyway the quotes in there
1263# would cause problems or look ugly.
2aeb72e9
DD
1264# WARNING: Be sure not to use single quotes in there, as some shells,
1265# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1266trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1268 {
1269 echo
1270
1271 cat <<\_ASBOX
1272## ---------------- ##
1273## Cache variables. ##
1274## ---------------- ##
1275_ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1278{
1c710c3c 1279 (set) 2>&1 |
2aeb72e9
DD
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 *ac_space=\ *)
1c710c3c 1282 sed -n \
2aeb72e9
DD
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 ;;
1c710c3c 1286 *)
2aeb72e9
DD
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1289 ;;
2aeb72e9
DD
1290 esac;
1291}
1c710c3c
DJ
1292 echo
1293
1294 cat <<\_ASBOX
1295## ----------------- ##
1296## Output variables. ##
1297## ----------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1301 do
2aeb72e9
DD
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1304 done | sort
1305 echo
1306
1307 if test -n "$ac_subst_files"; then
1308 cat <<\_ASBOX
2aeb72e9
DD
1309## ------------- ##
1310## Output files. ##
1311## ------------- ##
1c710c3c
DJ
1312_ASBOX
1313 echo
1314 for ac_var in $ac_subst_files
1315 do
2aeb72e9
DD
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1318 done | sort
1319 echo
1320 fi
1321
1322 if test -s confdefs.h; then
1323 cat <<\_ASBOX
1324## ----------- ##
1325## confdefs.h. ##
1326## ----------- ##
1327_ASBOX
1328 echo
2aeb72e9 1329 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1330 echo
1331 fi
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1335 } >&5
2aeb72e9
DD
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1338 exit $exit_status
2aeb72e9 1339 ' 0
1c710c3c
DJ
1340for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342done
1343ac_signal=0
1344
1345# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1346rm -rf conftest* confdefs.h
1347# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348echo >confdefs.h
1c710c3c
DJ
1349
1350# Predefined preprocessor variables.
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_NAME "$PACKAGE_NAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_VERSION "$PACKAGE_VERSION"
1364_ACEOF
0b0dc272 1365
1c710c3c
DJ
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_STRING "$PACKAGE_STRING"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374_ACEOF
1375
1376
1377# Let the site file select an alternate cache file if it wants to.
671aa708 1378# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1379if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 else
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 fi
671aa708 1385fi
2aeb72e9 1386for ac_site_file in $CONFIG_SITE; do
671aa708 1387 if test -r "$ac_site_file"; then
1c710c3c
DJ
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1391 . "$ac_site_file"
1392 fi
1393done
1394
1395if test -r "$cache_file"; then
1c710c3c
DJ
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
2aeb72e9
DD
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1c710c3c
DJ
1404 esac
1405 fi
671aa708 1406else
1c710c3c
DJ
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1410fi
1411
1412# Check that the precious variables saved in the cache have kept the same
1413# value.
1414ac_cache_corrupted=false
2aeb72e9
DD
1415for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1421 case $ac_old_set,$ac_new_set in
1422 set,)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,set)
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1431 *)
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
7142fb32
PB
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1c710c3c 1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
7142fb32
PB
1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1444 fi
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
2aeb72e9
DD
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1462 fi
1463done
1464if $ac_cache_corrupted; then
18c04407
RW
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
671aa708
NN
1472fi
1473
2aeb72e9
DD
1474ac_ext=c
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1c710c3c
DJ
1480
1481
1482
1483
671aa708
NN
1484
1485
d02c69be 1486
1c710c3c
DJ
1487
1488
1489
1490
1491
1492
1493
1494
1495
18c04407
RW
1496
1497
1498
1c710c3c
DJ
1499
1500
1501
ad33ff57
RW
1502
1503progname=$0
1504# if PWD already has a value, it is probably wrong.
1505if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1506
1507# Export original configure arguments for use by sub-configures.
1508# Quote arguments with shell meta charatcers.
1509TOPLEVEL_CONFIGURE_ARGUMENTS=
1510set -- "$progname" "$@"
1511for ac_arg
1512do
1513 case "$ac_arg" in
1514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1515 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1516 # if the argument is of the form -foo=baz, quote the baz part only
1517 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1518 *) ;;
1519 esac
1520 # Add the quoted argument to the list.
1521 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1522done
1523if test "$silent" = yes; then
1524 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1525fi
1526# Remove the initial space we just introduced and, as these will be
1527# expanded by make, quote '$'.
1528TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1529
1c710c3c
DJ
1530
1531# Find the build, host, and target systems.
671aa708 1532ac_aux_dir=
2aeb72e9
DD
1533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
671aa708
NN
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
2aeb72e9 1538 elif test -f $ac_dir/install.sh; then
671aa708
NN
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
2aeb72e9 1542 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
671aa708
NN
1546 fi
1547done
1548if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1551 { (exit 1); exit 1; }; }
671aa708 1552fi
2aeb72e9
DD
1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1556
1c710c3c 1557# Make sure we can run config.sub.
2aeb72e9
DD
1558$ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1561 { (exit 1); exit 1; }; }
1562
2aeb72e9
DD
1563echo "$as_me:$LINENO: checking build system type" >&5
1564echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1565if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
2aeb72e9
DD
1568 ac_cv_build_alias=$build_alias
1569test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
2aeb72e9
DD
1575ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1578 { (exit 1); exit 1; }; }
1579
1580fi
2aeb72e9
DD
1581echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1583build=$ac_cv_build
2aeb72e9
DD
1584build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1587
671aa708 1588
1c710c3c
DJ
1589 case ${build_alias} in
1590 "") build_noncanonical=${build} ;;
1591 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1592esac
1593
1594
af71363e 1595
1c710c3c
DJ
1596 case ${host_alias} in
1597 "") host_noncanonical=${build_noncanonical} ;;
1598 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1599esac
1600
af71363e 1601
1c710c3c
DJ
1602
1603 case ${target_alias} in
1604 "") target_noncanonical=${host_noncanonical} ;;
1605 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1606esac
1607
af71363e 1608
1c710c3c
DJ
1609
1610
1611test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1612 test "$program_prefix$program_suffix$program_transform_name" = \
1613 NONENONEs,x,x, &&
1c710c3c 1614 program_transform_name=s,y,y,
af71363e 1615
2aeb72e9
DD
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1620else
2aeb72e9
DD
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1627 { (exit 1); exit 1; }; }
1628
af71363e 1629fi
2aeb72e9
DD
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1632host=$ac_cv_host
2aeb72e9
DD
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
2aeb72e9
DD
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1649 { (exit 1); exit 1; }; }
1650
1651fi
2aeb72e9
DD
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1654target=$ac_cv_target
2aeb72e9
DD
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
671aa708 1666test "$program_prefix" != NONE &&
2aeb72e9 1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1668# Use a double $ so make ignores it.
1669test "$program_suffix" != NONE &&
2aeb72e9 1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1671# Double any \ or $. echo might interpret backslashes.
1672# By default was `s,x,x', remove it if useless.
1673cat <<\_ACEOF >conftest.sed
1674s/[\\$]/&&/g;s/;s,x,x,$//
1675_ACEOF
1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1677rm conftest.sed
af71363e 1678
671aa708
NN
1679
1680
775956d0
NN
1681# Get 'install' or 'install-sh' and its variants.
1682# Find a good install program. We prefer a C program (faster),
1683# so one script is as good as another. But avoid the broken or
1684# incompatible versions:
1685# SysV /etc/install, /usr/sbin/install
1686# SunOS /usr/etc/install
1687# IRIX /sbin/install
1688# AIX /bin/install
1c710c3c 1689# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1693# OS/2's system install, which has a completely different semantic
775956d0 1694# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1695# Reject install programs that cannot install multiple files.
2aeb72e9
DD
1696echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1697echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1698if test -z "$INSTALL"; then
1c710c3c
DJ
1699if test "${ac_cv_path_install+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 # Account for people who put trailing slashes in PATH elements.
1708case $as_dir/ in
1709 ./ | .// | /cC/* | \
1710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1712 /usr/ucb/* ) ;;
1713 *)
1714 # OSF1 and SCO ODT 3.0 have their own names for install.
1715 # Don't use installbsd from OSF since it installs stuff as root
1716 # by default.
1717 for ac_prog in ginstall scoinst install; do
1718 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1720 if test $ac_prog = install &&
1c710c3c 1721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1722 # AIX install. It has an incompatible calling convention.
1723 :
1c710c3c
DJ
1724 elif test $ac_prog = install &&
1725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # program-specific install script used by HP pwplus--don't use.
1727 :
775956d0 1728 else
38d24731
RW
1729 rm -rf conftest.one conftest.two conftest.dir
1730 echo one > conftest.one
1731 echo two > conftest.two
1732 mkdir conftest.dir
1733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1734 test -s conftest.one && test -s conftest.two &&
1735 test -s conftest.dir/conftest.one &&
1736 test -s conftest.dir/conftest.two
1737 then
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739 break 3
1740 fi
775956d0
NN
1741 fi
1742 fi
1743 done
1c710c3c
DJ
1744 done
1745 ;;
1746esac
1747done
1748
38d24731 1749rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
1750
1751fi
1752 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1753 INSTALL=$ac_cv_path_install
775956d0 1754 else
38d24731
RW
1755 # As a last resort, use the slow shell script. Don't cache a
1756 # value for INSTALL within a source directory, because that will
775956d0 1757 # break other packages using the cache if that directory is
38d24731 1758 # removed, or if the value is a relative name.
1c710c3c 1759 INSTALL=$ac_install_sh
775956d0
NN
1760 fi
1761fi
2aeb72e9
DD
1762echo "$as_me:$LINENO: result: $INSTALL" >&5
1763echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1764
1765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766# It thinks the first close brace ends the variable substitution.
1767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
1c710c3c 1769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1770
1771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
2aeb72e9
DD
1773echo "$as_me:$LINENO: checking whether ln works" >&5
1774echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1775if test "${acx_cv_prog_LN+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1777else
1778 rm -f conftestdata_t
1779echo >conftestdata_f
1780if ln conftestdata_f conftestdata_t 2>/dev/null
1781then
1782 acx_cv_prog_LN=ln
1783else
1784 acx_cv_prog_LN=no
1785fi
1786rm -f conftestdata_f conftestdata_t
1787
1788fi
1789if test $acx_cv_prog_LN = no; then
1790 LN="cp"
2aeb72e9
DD
1791 echo "$as_me:$LINENO: result: no, using $LN" >&5
1792echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1793else
1794 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1795 echo "$as_me:$LINENO: result: yes" >&5
1796echo "${ECHO_T}yes" >&6
ad6717df
PB
1797fi
1798
2aeb72e9
DD
1799echo "$as_me:$LINENO: checking whether ln -s works" >&5
1800echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1801LN_S=$as_ln_s
1802if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1803 echo "$as_me:$LINENO: result: yes" >&5
1804echo "${ECHO_T}yes" >&6
fb0103e5 1805else
2aeb72e9
DD
1806 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1807echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1808fi
1809
775956d0 1810
79c06341 1811### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1812### If we are on Windows, search for the shell. This will permit people
1813### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1814### without also having to set CONFIG_SHELL. This code will work when
1815### using bash, which sets OSTYPE.
1816case "${OSTYPE}" in
1817*win32*)
671aa708
NN
1818 if test x${CONFIG_SHELL} = x ; then
1819 if test ! -f /bin/sh ; then
1820 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1821 CONFIG_SHELL=${SHELL}
1822 export CONFIG_SHELL
1823 else
1824 for prog in sh sh.exe bash bash.exe; do
1825 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1826 for dir in $PATH; do
1827 test -z "$dir" && dir=.
1828 if test -f $dir/$prog; then
1829 CONFIG_SHELL=$dir/$prog
1830 export CONFIG_SHELL
1831 break
1832 fi
1833 done
1834 IFS="$save_ifs"
1835 test -n "${CONFIG_SHELL}" && break
1836 done
1837 fi
1838 fi
1839 fi
1840 ;;
1841esac
1842
1843config_shell=${CONFIG_SHELL-/bin/sh}
1844
671aa708 1845moveifchange=${srcdir}/move-if-change
79c06341 1846
ee6a22df
L
1847srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1848
1849# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1850# a relative path.
1851if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1852 INSTALL="${srcpwd}/install-sh -c"
1853fi
1854
671aa708
NN
1855# Set srcdir to "." if that's what it is.
1856# This is important for multilib support.
1857pwd=`${PWDCMD-pwd}`
671aa708
NN
1858if test "${pwd}" = "${srcpwd}" ; then
1859 srcdir=.
79c06341
JL
1860fi
1861
671aa708 1862topsrcdir=$srcpwd
5d4a5ee6 1863
671aa708 1864extra_host_args=
afabd8e6 1865
671aa708
NN
1866### To add a new directory to the tree, first choose whether it is a target
1867### or a host dependent tool. Then put it into the appropriate list
1868### (library or tools, host or target), doing a dependency sort.
79c06341 1869
1c710c3c 1870# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1871# configdirs, or target_configdirs; see the serialization section below.
79c06341 1872
1c710c3c
DJ
1873# Dependency sorting is only needed when *configuration* must be done in
1874# a particular order. In all cases a dependency should be specified in
671aa708 1875# the Makefile, whether or not it's implicitly specified here.
79c06341 1876
671aa708
NN
1877# Double entries in build_configdirs, configdirs, or target_configdirs may
1878# cause circular dependencies and break everything horribly.
79c06341 1879
23f6b2f9
PB
1880# these library is used by various programs built for the build
1881# environment
1882#
1883build_libs="build-libiberty"
1884
1885# these tools are built for the build environment
71b5d516 1886build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1887
671aa708
NN
1888# these libraries are used by various programs built for the host environment
1889#
cfb1f59f 1890host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv"
671aa708 1891
671aa708
NN
1892# these tools are built for the host environment
1893# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1894# know that we are building the simulator.
1895# binutils, gas and ld appear in that order because it makes sense to run
1896# "make check" in that particular order.
5afab7ad 1897# If --enable-gold is used, "gold" will replace "ld".
5395b47b 1898host_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
1899
1900# libgcj represents the runtime libraries only used by gcj.
1901libgcj="target-libffi \
671aa708
NN
1902 target-zlib \
1903 target-qthreads \
1904 target-libjava"
1905
1906# these libraries are built for the target environment, and are built after
1907# the host libraries and the host tools (which may be a cross compiler)
1908#
291f172e
DJ
1909target_libraries="target-libgcc \
1910 target-libiberty \
671aa708
NN
1911 target-libgloss \
1912 target-newlib \
6d3b5aea 1913 target-libgomp \
cb543528 1914 target-libstdc++-v3 \
6de9cd9a 1915 target-libmudflap \
77008252 1916 target-libssp \
6de9cd9a 1917 target-libgfortran \
7cd0cf9c 1918 target-boehm-gc \
77d187bc 1919 ${libgcj} \
d9cdb878 1920 target-libobjc \
6d3b5aea 1921 target-libada"
671aa708 1922
4dbda6f0
NN
1923# these tools are built using the target libraries, and are intended to
1924# run only in the target environment
671aa708 1925#
4dbda6f0 1926# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1927# list belongs in this list. those programs are also very likely
1928# candidates for the "native_only" list which follows
1929#
97286f7f 1930target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1931
671aa708 1932################################################################################
79c06341 1933
671aa708
NN
1934## All tools belong in one of the four categories, and are assigned above
1935## We assign ${configdirs} this way to remove all embedded newlines. This
1936## is important because configure will choke if they ever get through.
1937## ${configdirs} is directories we build using the host tools.
1938## ${target_configdirs} is directories we build using the target tools.
671aa708 1939configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1940target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1941build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1942
ac9e6043
RW
1943
1944
671aa708 1945################################################################################
79c06341 1946
671aa708 1947srcname="gnu development package"
79c06341 1948
671aa708
NN
1949# This gets set non-empty for some net releases of packages.
1950appdirs=""
79c06341 1951
671aa708
NN
1952# Define is_cross_compiler to save on calls to 'test'.
1953is_cross_compiler=
1954if test x"${host}" = x"${target}" ; then
1955 is_cross_compiler=no
79c06341 1956else
671aa708 1957 is_cross_compiler=yes
1c710c3c 1958fi
79c06341 1959
b4acb5ef 1960# Find the build and target subdir names.
8b87bb96 1961
2e9e6f68
DJ
1962# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1963# have matching libraries, they should use host libraries: Makefile.tpl
1964# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1965# However, they still use the build modules, because the corresponding
1966# host modules (e.g. bison) are only built for the host when bootstrap
1967# finishes. So:
1968# - build_subdir is where we find build modules, and never changes.
1969# - build_libsubdir is where we find build libraries, and can be overridden.
1970
1971# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1972build_subdir="build-${build_noncanonical}"
1c710c3c 1973
2aeb72e9 1974# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1975if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1976 withval="$with_build_libsubdir"
1977 build_libsubdir="$withval"
2e9e6f68
DJ
1978else
1979 build_libsubdir="$build_subdir"
2aeb72e9 1980fi;
215c351a
PB
1981# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1982if ( test $srcdir = . && test -d gcc ) \
1983 || test -d $srcdir/../host-${host_noncanonical}; then
1984 host_subdir="host-${host_noncanonical}"
1985else
1986 host_subdir=.
1987fi
8b87bb96
NN
1988# No prefix.
1989target_subdir=${target_noncanonical}
1c710c3c 1990
79c06341 1991
671aa708
NN
1992# Skipdirs are removed silently.
1993skipdirs=
1994# Noconfigdirs are removed loudly.
1995noconfigdirs=""
79c06341 1996
671aa708
NN
1997use_gnu_ld=
1998# Make sure we don't let GNU ld be added if we didn't want it.
1999if test x$with_gnu_ld = xno ; then
2000 use_gnu_ld=no
5afab7ad 2001 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2002fi
2003
671aa708
NN
2004use_gnu_as=
2005# Make sure we don't let GNU as be added if we didn't want it.
2006if test x$with_gnu_as = xno ; then
2007 use_gnu_as=no
2008 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2009fi
2010
1c710c3c 2011# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2012# it's not even worth trying to configure, much less build, that tool.
79c06341 2013
671aa708
NN
2014case ${with_x} in
2015 yes | "") ;; # the default value for this tree is that X11 is available
2016 no)
b4f96efe 2017 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2018 # We won't be able to build gdbtk without X.
1c710c3c 2019 enable_gdbtk=no
671aa708
NN
2020 ;;
2021 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2022esac
79c06341 2023
671aa708 2024# Some tools are only suitable for building in a "native" situation.
1c710c3c 2025# Remove these if host!=target.
9e299237 2026native_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 2027
671aa708
NN
2028# Similarly, some are only suitable for cross toolchains.
2029# Remove these if host=target.
2030cross_only="target-libgloss target-newlib target-opcodes"
2031
2032case $is_cross_compiler in
2033 no) skipdirs="${skipdirs} ${cross_only}" ;;
2034 yes) skipdirs="${skipdirs} ${native_only}" ;;
2035esac
79c06341 2036
671aa708
NN
2037# If both --with-headers and --with-libs are specified, default to
2038# --without-newlib.
ee6a22df
L
2039if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2040 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2041 if test x"${with_newlib}" = x ; then
2042 with_newlib=no
2043 fi
79c06341
JL
2044fi
2045
671aa708
NN
2046# Recognize --with-newlib/--without-newlib.
2047case ${with_newlib} in
2048 no) skipdirs="${skipdirs} target-newlib" ;;
2049 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2050esac
79c06341 2051
5afab7ad
ILT
2052# Handle --enable-gold.
2053
2054# Check whether --enable-gold or --disable-gold was given.
2055if test "${enable_gold+set}" = set; then
2056 enableval="$enable_gold"
2057 ENABLE_GOLD=$enableval
2058else
2059 ENABLE_GOLD=no
2060fi;
2061if test "${ENABLE_GOLD}" = "yes"; then
2062 # Check for ELF target.
2063 is_elf=no
2064 case "${target}" in
2065 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2066 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2067 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2068 case "${target}" in
2069 *-*-linux*aout* | *-*-linux*oldld*)
2070 ;;
2071 *)
2072 is_elf=yes
2073 ;;
2074 esac
2075 esac
2076
2077 if test "$is_elf" = "yes"; then
2078 # Check for target supported by gold.
2079 case "${target}" in
01b79d11 2080 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
5afab7ad
ILT
2081 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2082 ;;
2083 esac
2084 fi
2085fi
2086
671aa708 2087# Configure extra directories which are host specific
79c06341 2088
671aa708
NN
2089case "${host}" in
2090 *-cygwin*)
2091 configdirs="$configdirs libtermcap" ;;
2092esac
79c06341 2093
4fab7234
HPN
2094# A target can indicate whether a language isn't supported for some reason.
2095# Only spaces may be used in this macro; not newlines or tabs.
2096unsupported_languages=
2097
1c710c3c 2098# Remove more programs from consideration, based on the host or
671aa708
NN
2099# target this usually means that a port of the program doesn't
2100# exist yet.
ec8d6ddc 2101
671aa708
NN
2102case "${host}" in
2103 hppa*64*-*-*)
2104 noconfigdirs="$noconfigdirs byacc"
2105 ;;
f2a0e225 2106 i[3456789]86-*-vsta)
b4f96efe 2107 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2108 ;;
f2a0e225 2109 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2110 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2111 ;;
95af8923
KT
2112 x86_64-*-mingw*)
2113 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2114 ;;
f2a0e225 2115 i[3456789]86-*-mingw32*)
b4f96efe 2116 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2117 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2118 ;;
f2a0e225 2119 i[3456789]86-*-beos*)
b4f96efe 2120 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2121 ;;
671aa708 2122 *-*-cygwin*)
a22c2d8d 2123 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2124 ;;
2125 *-*-netbsd*)
a22c2d8d 2126 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2127 ;;
2128 ppc*-*-pe)
b4f96efe 2129 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2130 ;;
2131 powerpc-*-beos*)
b4f96efe 2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2133 ;;
671aa708 2134esac
ec8d6ddc 2135
6de9cd9a 2136
2aeb72e9 2137# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2138if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2139 enableval="$enable_libada"
2140 ENABLE_LIBADA=$enableval
d9cdb878
AC
2141else
2142 ENABLE_LIBADA=yes
2aeb72e9 2143fi;
d9cdb878 2144if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2145 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2146fi
2147
2aeb72e9 2148# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2149if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2150 enableval="$enable_libssp"
2151 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2152else
2153 ENABLE_LIBSSP=yes
2aeb72e9 2154fi;
ef0087a7 2155
671aa708
NN
2156# Save it here so that, even in case of --enable-libgcj, if the Java
2157# front-end isn't enabled, we still get libgcj disabled.
2158libgcj_saved=$libgcj
2159case $enable_libgcj in
2160yes)
2161 # If we reset it here, it won't get added to noconfigdirs in the
2162 # target-specific build rules, so it will be forcibly enabled
2163 # (unless the Java language itself isn't enabled).
2164 libgcj=
2165 ;;
2166no)
2167 # Make sure we get it printed in the list of not supported target libs.
2168 noconfigdirs="$noconfigdirs ${libgcj}"
2169 ;;
2170esac
ec8d6ddc 2171
6de9cd9a 2172
27079765
AH
2173# Disable libmudflap on some systems.
2174if test x$enable_libmudflap = x ; then
dfcada9a 2175 case "${target}" in
416ac4d4 2176 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2177 # Enable libmudflap by default in GNU and friends.
dfcada9a 2178 ;;
a3e8d8b4
LR
2179 *-*-freebsd*)
2180 # Enable libmudflap by default in FreeBSD.
2181 ;;
dfcada9a
MM
2182 *)
2183 # Disable it by default everywhere else.
2184 noconfigdirs="$noconfigdirs target-libmudflap"
2185 ;;
2186 esac
27079765 2187fi
6de9cd9a 2188
27079765
AH
2189# Disable libgomp on non POSIX hosted systems.
2190if test x$enable_libgomp = x ; then
953ff289
DN
2191 # Enable libgomp by default on hosted POSIX systems.
2192 case "${target}" in
416ac4d4 2193 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
2194 ;;
2195 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2196 ;;
04879af3 2197 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2198 ;;
cac90078 2199 *-*-darwin* | *-*-aix*)
953ff289
DN
2200 ;;
2201 *)
2202 noconfigdirs="$noconfigdirs target-libgomp"
2203 ;;
2204 esac
27079765 2205fi
953ff289 2206
c03353e2
RIL
2207# Default libgloss CPU subdirectory.
2208libgloss_dir="$target_cpu"
6de9cd9a 2209
671aa708
NN
2210case "${target}" in
2211 *-*-chorusos)
cb253473 2212 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2213 ;;
75eeae1a 2214 powerpc-*-darwin*)
e1514c3f 2215 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2216 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2217 ;;
b93133bc 2218 i[3456789]86-*-darwin* | x86_64-*-darwin[912]*)
0db3a858
TG
2219 noconfigdirs="$noconfigdirs ld gas gprof"
2220 noconfigdirs="$noconfigdirs sim target-rda"
2221 ;;
42c1cd8a
AT
2222 *-*-darwin*)
2223 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2224 noconfigdirs="$noconfigdirs sim target-rda"
2225 noconfigdirs="$noconfigdirs ${libgcj}"
2226 ;;
671aa708 2227 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2228 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2229 ;;
c3f84f61 2230 *-*-freebsd*)
6de9cd9a
DN
2231 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2232 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2233 && test -f /usr/local/include/gmp.h; then
2234 with_gmp=/usr/local
2235 fi
2236
2237 # Skip some stuff that's unsupported on some FreeBSD configurations.
2238 case "${target}" in
2239 i*86-*-*) ;;
2240 alpha*-*-*) ;;
2241 *)
cb253473 2242 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2243 ;;
2244 esac
2245 ;;
ef4e7569
US
2246 *-*-kaos*)
2247 # Remove unsupported stuff on all kaOS configurations.
cb253473 2248 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2249 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2250 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2251 noconfigdirs="$noconfigdirs target-libgloss"
2252 ;;
671aa708
NN
2253 *-*-netbsd*)
2254 # Skip some stuff on all NetBSD configurations.
2255 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2256
2257 # Skip some stuff that's unsupported on some NetBSD configurations.
2258 case "${target}" in
2259 i*86-*-netbsdelf*) ;;
0590b963 2260 arm*-*-netbsdelf*) ;;
671aa708 2261 *)
cb253473 2262 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2263 ;;
2264 esac
2265 ;;
61fec9ff 2266 *-*-netware*)
cb253473 2267 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2268 ;;
2269 *-*-rtems*)
cb253473 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2271 ;;
a8ba31f2
EC
2272 # The tpf target doesn't support gdb yet.
2273 *-*-tpf*)
cb253473 2274 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2275 ;;
5785c0ed 2276 *-*-uclinux*)
cb253473 2277 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2278 ;;
671aa708 2279 *-*-vxworks*)
cb253473 2280 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2281 ;;
2282 alpha*-dec-osf*)
2283 # ld works, but does not support shared libraries.
2284 # newlib is not 64 bit ready. I'm not sure about fileutils.
2285 # gas doesn't generate exception information.
2286 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2287 ;;
2288 alpha*-*-*vms*)
cb253473 2289 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2290 ;;
2291 alpha*-*-linux*)
2292 # newlib is not 64 bit ready
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2294 ;;
671aa708
NN
2295 alpha*-*-*)
2296 # newlib is not 64 bit ready
cb253473 2297 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2298 ;;
33952f6f 2299 am33_2.0-*-linux*)
cb253473 2300 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2301 ;;
671aa708 2302 sh-*-linux*)
cb253473 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2304 ;;
671aa708 2305 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2306 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2307 noconfigdirs="$noconfigdirs target-examples"
2308 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2309 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2310 noconfigdirs="$noconfigdirs expect dejagnu"
2311 # the C++ libraries don't build on top of CE's C libraries
cb543528 2312 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2313 noconfigdirs="$noconfigdirs target-newlib"
2314 case "${host}" in
2315 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2316 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2317 ;;
2318 esac
c03353e2 2319 libgloss_dir=wince
671aa708
NN
2320 ;;
2321 arc-*-*)
cb253473 2322 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2323 ;;
ee6a22df 2324 arm-semi-aof )
ee6a22df 2325 ;;
671aa708 2326 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2327 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2328 libgloss_dir=arm
671aa708 2329 ;;
b3f8d95d 2330 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2331 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2332 libgloss_dir=arm
671aa708 2333 ;;
077fc835 2334 arm*-*-linux-gnueabi)
c4e9bf2b 2335 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2336 case ${with_newlib} in
2337 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2338 esac
c03353e2 2339 libgloss_dir=arm
077fc835 2340 ;;
972974fc 2341 arm*-*-symbianelf*)
cb253473 2342 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2343 libgloss_dir=arm
972974fc 2344 ;;
671aa708 2345 arm-*-pe*)
cb253473 2346 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2347 ;;
671aa708 2348 thumb-*-coff)
cb253473 2349 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2350 ;;
2351 thumb-*-elf)
cb253473 2352 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2353 ;;
671aa708 2354 thumb-*-pe)
cb253473 2355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2356 ;;
2357 arm-*-riscix*)
cb253473 2358 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2359 ;;
2360 avr-*-*)
ac3949d9 2361 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 2362 ;;
6b65a26d 2363 bfin-*-*)
8b3c6c5a 2364 noconfigdirs="$noconfigdirs gdb"
61efc800 2365 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2366 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2367 fi
2368 ;;
671aa708 2369 c4x-*-* | tic4x-*-*)
cb253473 2370 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2371 ;;
2372 c54x*-*-* | tic54x-*-*)
cb253473 2373 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2374 ;;
c993ae60
SR
2375 cr16-*-*)
2376 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2377 ;;
40d64b5a 2378 cris-*-* | crisv32-*-*)
4fab7234 2379 unsupported_languages="$unsupported_languages java"
40d64b5a 2380 case "${target}" in
c2e0d3a9 2381 *-*-aout)
7f26dfa3 2382 unsupported_languages="$unsupported_languages fortran"
4fab7234 2383 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2384 *-*-elf)
789ec619 2385 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2386 *-*-linux*)
789ec619 2387 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2388 *)
7f26dfa3 2389 unsupported_languages="$unsupported_languages fortran"
cb253473 2390 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2391 esac
c03353e2 2392 libgloss_dir=cris
671aa708 2393 ;;
25b656e7 2394 crx-*-*)
cb253473 2395 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2396 ;;
671aa708 2397 d10v-*-*)
cb253473 2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2399 ;;
2400 d30v-*-*)
cb253473 2401 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2402 ;;
c03353e2
RIL
2403 ep9312-*-elf | ep9312-*-coff)
2404 libgloss_dir=arm
2405 ;;
671aa708 2406 fr30-*-elf*)
cb253473 2407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2408 ;;
2409 frv-*-*)
cb253473 2410 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2411 ;;
55f2d967
AG
2412 moxie-*-*)
2413 noconfigdirs="$noconfigdirs ${libgcj}"
2414 noconfigdirs="$noconfigdirs gprof"
2415 ;;
671aa708 2416 h8300*-*-*)
cb253473 2417 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2418 ;;
2419 h8500-*-*)
cb253473 2420 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2421 ;;
ee6a22df 2422 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2423 ;;
671aa708
NN
2424 hppa*64*-*-linux* | parisc*64*-*-linux*)
2425 # In this case, it's because the hppa64-linux target is for
2426 # the kernel only at this point and has no libc, and thus no
2427 # headers, crt*.o, etc., all of which are needed by these.
2428 noconfigdirs="$noconfigdirs target-zlib"
2429 ;;
3e732ba0
JDA
2430 parisc*-*-linux* | hppa*-*-linux*)
2431 ;;
671aa708 2432 hppa*-*-*elf* | \
671aa708
NN
2433 hppa*-*-lites* | \
2434 hppa*-*-openbsd* | \
2435 hppa*64*-*-*)
cb253473 2436 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2437 ;;
2a332582
JDA
2438 hppa*-hp-hpux11*)
2439 noconfigdirs="$noconfigdirs ld shellutils"
2440 ;;
c03353e2
RIL
2441 hppa*-*-pro*)
2442 libgloss_dir=pa
2443 ;;
671aa708
NN
2444 hppa*-*-*)
2445 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2446 # build on HP-UX 10.20.
cb253473 2447 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2448 ;;
fb87ad5d 2449 i960-*-*)
cb253473 2450 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2451 ;;
671aa708
NN
2452 ia64*-*-elf*)
2453 # No gdb support yet.
b4f96efe 2454 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2455 ;;
2456 ia64*-**-hpux*)
2457 # No gdb or ld support yet.
cb253473 2458 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2459 ;;
52535a64
DR
2460 ia64*-*-*vms*)
2461 # No gdb or ld support yet.
2462 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2463 ;;
ee6a22df 2464 i370-*-opened*)
ee6a22df 2465 ;;
f2a0e225 2466 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2467 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2468 libgloss_dir=i386
671aa708 2469 ;;
f2a0e225 2470 i[3456789]86-*-linux*)
671aa708
NN
2471 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2472 # not build java stuff by default.
2473 case "${target}" in
2474 *-*-*libc1*)
cb253473 2475 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2476 esac
2477
2478 # This section makes it possible to build newlib natively on linux.
2479 # If we are using a cross compiler then don't configure newlib.
2480 if test x${is_cross_compiler} != xno ; then
3aa83176 2481 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2482 fi
2483 noconfigdirs="$noconfigdirs target-libgloss"
2484 # If we are not using a cross compiler, do configure newlib.
2485 # Note however, that newlib will only be configured in this situation
2486 # if the --with-newlib option has been given, because otherwise
2487 # 'target-newlib' will appear in skipdirs.
2488 ;;
f2a0e225 2489 i[3456789]86-*-mingw32*)
b91f0a41
CV
2490 target_configdirs="$target_configdirs target-winsup"
2491 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2492 ;;
95af8923
KT
2493 x86_64-*-mingw*)
2494 target_configdirs="$target_configdirs target-winsup"
2495 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2496 ;;
671aa708
NN
2497 *-*-cygwin*)
2498 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 2499 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 2500 # always build newlib if winsup directory is present.
b91f0a41 2501 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2502 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2503 elif test -d "$srcdir/newlib"; then
b91f0a41 2504 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2505 fi
1c710c3c 2506 ;;
ee6a22df
L
2507 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2508 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2509 ;;
f2a0e225 2510 i[3456789]86-*-pe)
cb253473 2511 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2512 ;;
f2a0e225 2513 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2514 # The linker does not yet know about weak symbols in COFF,
2515 # and is not configured to handle mixed ELF and COFF.
cb253473 2516 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2517 ;;
f2a0e225 2518 i[3456789]86-*-sco*)
cb253473 2519 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2520 ;;
f2a0e225 2521 i[3456789]86-*-solaris2*)
671aa708
NN
2522 noconfigdirs="$noconfigdirs target-libgloss"
2523 ;;
f2a0e225 2524 i[3456789]86-*-sysv4*)
cb253473 2525 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2526 ;;
f2a0e225 2527 i[3456789]86-*-beos*)
cb253473 2528 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2529 ;;
d1f8db0c
PB
2530 i[3456789]86-*-rdos*)
2531 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2532 ;;
fb87ad5d 2533 m32r-*-*)
cb253473 2534 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2535 ;;
671aa708 2536 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2537 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2538 libgloss_dir=m68hc11
671aa708
NN
2539 ;;
2540 m68k-*-elf*)
cb253473 2541 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2542 ;;
2543 m68k-*-coff*)
cb253473 2544 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2545 ;;
c03353e2
RIL
2546 m68*-*-* | fido-*-*)
2547 libgloss_dir=m68k
2548 ;;
671aa708
NN
2549 mcore-*-pe*)
2550 # The EPOC C++ environment does not support exceptions or rtti,
2551 # and so building libstdc++-v3 tends not to always work.
2552 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2553 ;;
2554 mmix-*-*)
4fab7234 2555 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2556 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2557 ;;
2558 mn10200-*-*)
cb253473 2559 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2560 ;;
2561 mn10300-*-*)
cb253473 2562 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2563 ;;
ab34901f 2564 mt-*-*)
79dd769c
AH
2565 noconfigdirs="$noconfigdirs sim"
2566 ;;
671aa708
NN
2567 powerpc-*-aix*)
2568 # copied from rs6000-*-* entry
cb253473 2569 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2570 ;;
2571 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2572 target_configdirs="$target_configdirs target-winsup"
cb253473 2573 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2574 # always build newlib.
2575 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2576 ;;
2577 # This is temporary until we can link against shared libraries
2578 powerpcle-*-solaris*)
cb253473 2579 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2580 libgloss_dir=rs6000
671aa708
NN
2581 ;;
2582 powerpc-*-beos*)
cb253473 2583 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2584 ;;
671aa708 2585 powerpc-*-eabi)
cb253473 2586 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2587 libgloss_dir=rs6000
ee6a22df
L
2588 ;;
2589 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2590 libgloss_dir=rs6000
671aa708 2591 ;;
671aa708 2592 rs6000-*-lynxos*)
cb253473 2593 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2594 ;;
2595 rs6000-*-aix*)
cb253473 2596 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2597 ;;
2598 rs6000-*-*)
cb253473 2599 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2600 ;;
2601 m68k-apollo-*)
cb253473 2602 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2603 ;;
d9dced13
RS
2604 mips*-sde-elf*)
2605 skipdirs="$skipdirs target-libiberty"
2606 noconfigdirs="$noconfigdirs ${libgcj}"
2607 if test x$with_newlib = xyes; then
2608 noconfigdirs="$noconfigdirs gprof"
2609 fi
2610 libgloss_dir=mips
2611 ;;
671aa708 2612 mips*-*-irix5*)
cb253473 2613 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2614 ;;
2615 mips*-*-irix6*)
671aa708
NN
2616 # Linking libjava exceeds command-line length limits on at least
2617 # IRIX 6.2, but not on IRIX 6.5.
2618 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2619 # <oldham@codesourcery.com>
cb253473 2620 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2621 ;;
671aa708 2622 mips*-*-bsd*)
cb253473 2623 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2624 ;;
671aa708
NN
2625 mips*-*-linux*)
2626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2627 ;;
2628 mips*-*-*)
cb253473 2629 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2630 libgloss_dir=mips
671aa708
NN
2631 ;;
2632 romp-*-*)
cb253473 2633 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2634 ;;
669f01d8 2635 sh-*-* | sh64-*-*)
671aa708 2636 case "${host}" in
f2a0e225
KC
2637 i[3456789]86-*-vsta) ;; # don't add gprof back in
2638 i[3456789]86-*-go32*) ;; # don't add gprof back in
2639 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2640 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2641 esac
cb253473 2642 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2643 ;;
c03353e2
RIL
2644 sparclet-*-aout* | sparc86x-*-*)
2645 libgloss_dir=sparc
2646 ;;
671aa708 2647 sparc-*-elf*)
cb253473 2648 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2649 ;;
2650 sparc64-*-elf*)
cb253473 2651 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2652 libgloss_dir=sparc
671aa708
NN
2653 ;;
2654 sparclite-*-*)
cb253473 2655 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2656 libgloss_dir=sparc
671aa708
NN
2657 ;;
2658 sparc-*-sunos4*)
cb253473 2659 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2660 if test x${is_cross_compiler} != xno ; then
2661 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2662 else
2663 use_gnu_ld=no
2664 fi
2665 ;;
bba5e0ca 2666 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2667 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2668 ;;
671aa708
NN
2669 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2670 ;;
2671 v810-*-*)
cb253473 2672 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2673 ;;
2674 v850-*-*)
cb253473 2675 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2676 ;;
2677 v850e-*-*)
cb253473 2678 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2679 ;;
2680 v850ea-*-*)
cb253473 2681 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2682 ;;
2683 vax-*-vms)
cb253473 2684 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2685 ;;
2686 vax-*-*)
cb253473 2687 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2688 ;;
aa12a573 2689 xtensa*-*-*)
cb253473 2690 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2691 ;;
671aa708 2692 ip2k-*-*)
cb253473 2693 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2694 ;;
416ac4d4 2695 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
2696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2697 ;;
2698 *-*-lynxos*)
cb253473 2699 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2700 ;;
671aa708 2701 *-*-*)
cb253473 2702 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2703 ;;
2704esac
79c06341 2705
671aa708
NN
2706# If we aren't building newlib, then don't build libgloss, since libgloss
2707# depends upon some newlib header files.
2708case "${noconfigdirs}" in
2709 *target-libgloss*) ;;
2710 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2711esac
2712
671aa708
NN
2713# Work in distributions that contain no compiler tools, like Autoconf.
2714tentative_cc=""
2715host_makefile_frag=/dev/null
2716if test -d ${srcdir}/config ; then
2717case "${host}" in
2718 m68k-hp-hpux*)
2719 # Avoid "too much defining" errors from HPUX compiler.
2720 tentative_cc="cc -Wp,-H256000"
2721 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2722 # If it's HP/UX ar, this should be harmless.
2723 RANLIB="ar ts"
2724 ;;
2725 m68k-apollo-sysv*)
2726 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2727 ;;
2728 m68k-apollo-bsd*)
2729 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2730 # chokes on bfd, the compiler won't let you assign integers to enums, and
2731 # other problems. Defining CC to gcc is a questionable way to say "don't use
2732 # the apollo compiler" (the preferred version of GCC could be called cc,
2733 # or whatever), but I'm not sure leaving CC as cc is any better...
2734 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2735 # Used to have BISON=yacc.
2736 tentative_cc=gcc
2737 ;;
2738 m88k-dg-dgux*)
2739 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2740 ;;
2741 m88k-harris-cxux*)
2742 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2743 tentative_cc="cc -Xa"
2744 host_makefile_frag="config/mh-cxux"
2745 ;;
2746 m88k-motorola-sysv*)
2747 ;;
2748 mips*-dec-ultrix*)
2749 tentative_cc="cc -Wf,-XNg1000"
2750 host_makefile_frag="config/mh-decstation"
2751 ;;
2752 mips*-nec-sysv4*)
2753 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2754 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2755 host_makefile_frag="config/mh-necv4"
2756 ;;
2757 mips*-sgi-irix4*)
2758 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2759 # environment. Also bump switch table size so that cp-parse will
2760 # compile. Bump string length limit so linker builds.
2761 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2762 ;;
2763 mips*-*-sysv4*)
2764 host_makefile_frag="config/mh-sysv4"
2765 ;;
2766 mips*-*-sysv*)
2767 # This is for a MIPS running RISC/os 4.52C.
2768
2769 # This is needed for GDB, but needs to be in the top-level make because
2770 # if a library is compiled with the bsd headers and gets linked with the
2771 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2772 # a different size).
2773 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2774 # known except to select the sysv environment. Could we use /proc instead?
2775 # These "sysv environments" and "bsd environments" often end up being a pain.
2776 #
2777 # This is not part of CFLAGS because perhaps not all C compilers have this
2778 # option.
2779 tentative_cc="cc -systype sysv"
2780 ;;
2781 i370-ibm-opened*)
2782 tentative_cc="c89"
2783 ;;
f2a0e225 2784 i[3456789]86-*-sysv5*)
671aa708
NN
2785 host_makefile_frag="config/mh-sysv5"
2786 ;;
f2a0e225 2787 i[3456789]86-*-dgux*)
671aa708
NN
2788 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2789 host_makefile_frag="config/mh-dgux386"
2790 ;;
f2a0e225 2791 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2792 # The MetaWare compiler will generate a copyright message unless you
2793 # turn it off by adding the -Hnocopyr flag.
2794 tentative_cc="cc -Hnocopyr"
2795 ;;
f2a0e225 2796 i[3456789]86-ncr-sysv4*)
671aa708
NN
2797 # for an NCR 3000 (i486/SVR4) system.
2798 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2799 # This compiler not only emits obnoxious copyright messages every time
2800 # you run it, but it chokes and dies on a whole bunch of GNU source
2801 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2802 tentative_cc="/usr/ccs/ATT/cc"
2803 host_makefile_frag="config/mh-ncr3000"
2804 ;;
f2a0e225 2805 i[3456789]86-*-sco3.2v5*)
671aa708 2806 ;;
f2a0e225 2807 i[3456789]86-*-sco*)
671aa708
NN
2808 # The native C compiler botches some simple uses of const. Unfortunately,
2809 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2810 tentative_cc="cc -Dconst="
2811 host_makefile_frag="config/mh-sco"
2812 ;;
f2a0e225 2813 i[3456789]86-*-udk*)
671aa708
NN
2814 host_makefile_frag="config/mh-sysv5"
2815 ;;
f2a0e225 2816 i[3456789]86-*-solaris2*)
671aa708
NN
2817 host_makefile_frag="config/mh-sysv4"
2818 ;;
f2a0e225 2819 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2820 host_makefile_frag="config/mh-djgpp"
2821 ;;
2822 *-cygwin*)
2a79c47f
NC
2823
2824echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2825echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2826echo a >cygwin-cat-check
2827if test `cat cygwin-cat-check` == a ; then
2828 rm cygwin-cat-check
2829 echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6
2831else
2832 rm cygwin-cat-check
2833 echo "$as_me:$LINENO: result: no" >&5
2834echo "${ECHO_T}no" >&6
2835 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2836 Please either mount the build directory in binary mode or run the following
2837 commands before running any configure script:
2838set -o igncr
2839export SHELLOPTS
2840 " >&5
2841echo "$as_me: error: The cat command does not ignore carriage return characters.
2842 Please either mount the build directory in binary mode or run the following
2843 commands before running any configure script:
2844set -o igncr
2845export SHELLOPTS
2846 " >&2;}
2847 { (exit 1); exit 1; }; }
2848fi
2849
671aa708
NN
2850 host_makefile_frag="config/mh-cygwin"
2851 ;;
c53a18d3 2852 *-mingw*)
1f5a6b84 2853 host_makefile_frag="config/mh-mingw"
95af8923 2854 ;;
671aa708
NN
2855 *-interix*)
2856 host_makefile_frag="config/mh-interix"
2857 ;;
2858 vax-*-ultrix2*)
2859 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2860 tentative_cc=gcc
2861 ;;
2862 *-*-solaris2*)
2863 host_makefile_frag="config/mh-solaris"
2864 ;;
2865 m68k-sun-sunos*)
2866 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2867 # without overflowing the jump tables (-J says to use a 32 bit table)
2868 tentative_cc="cc -J"
2869 ;;
efd41714 2870 hppa*-hp-hpux10*)
671aa708 2871 tentative_cc="cc -Wp,-H256000"
efd41714 2872 host_makefile_frag="config/mh-pa-hpux10"
671aa708 2873 ;;
efd41714
PB
2874 hppa*-hp-hpux* | hppa*-*-hiux*)
2875 tentative_cc="cc -Wp,-H256000"
2876 host_makefile_frag="config/mh-pa"
2877 ;;
2878 hppa*-*)
2879 host_makefile_frag="config/mh-pa"
2880 ;;
2881 *-hp-hpux* | *-*-hiux*)
671aa708
NN
2882 tentative_cc="cc -Wp,-H256000"
2883 ;;
2884 rs6000-*-lynxos*)
2885 # /bin/cc is less than useful for our purposes. Always use GCC
2886 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2887 host_makefile_frag="config/mh-lynxrs6k"
2888 ;;
45f366ab 2889 powerpc-*-darwin*)
be8fff81
RB
2890 host_makefile_frag="config/mh-ppc-darwin"
2891 ;;
d19bca38
PB
2892 powerpc-*-aix*)
2893 host_makefile_frag="config/mh-ppc-aix"
2894 ;;
2895 rs6000-*-aix*)
2896 host_makefile_frag="config/mh-ppc-aix"
2897 ;;
671aa708
NN
2898 *-*-lynxos*)
2899 # /bin/cc is less than useful for our purposes. Always use GCC
2900 tentative_cc="/bin/gcc"
2901 ;;
2902 *-*-sysv4*)
2903 host_makefile_frag="config/mh-sysv4"
2904 ;;
95c53c62
RS
2905 # This is placed last to prevent interfering with the cases above.
2906 i[3456789]86-*-*)
2907 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2908 host_makefile_frag="config/mh-x86omitfp"
2909 ;;
671aa708
NN
2910esac
2911fi
2912
55ffb5ed
NN
2913# If we aren't going to be using gcc, see if we can extract a definition
2914# of CC from the fragment.
2915# Actually, use the 'pre-extracted' version above.
2916if test -z "${CC}" && test "${build}" = "${host}" ; then
2917 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2918 found=
2919 for dir in $PATH; do
2920 test -z "$dir" && dir=.
2921 if test -f $dir/gcc; then
2922 found=yes
2923 break
2924 fi
2925 done
2926 IFS="$save_ifs"
2927 if test -z "${found}" && test -n "${tentative_cc}" ; then
2928 CC=$tentative_cc
2929 fi
2930fi
2931
2932if test "${build}" != "${host}" ; then
0999159b
PB
2933 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2934 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2935 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2936 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2937 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2938 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2939 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2940 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2941 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2942 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2943 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2944 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2945else
2946 AR_FOR_BUILD="\$(AR)"
2947 AS_FOR_BUILD="\$(AS)"
fb0103e5 2948 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2949 CXX_FOR_BUILD="\$(CXX)"
2950 GCJ_FOR_BUILD="\$(GCJ)"
2951 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2952 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2953 LD_FOR_BUILD="\$(LD)"
2954 NM_FOR_BUILD="\$(NM)"
2955 RANLIB_FOR_BUILD="\$(RANLIB)"
2956 WINDRES_FOR_BUILD="\$(WINDRES)"
2957 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2958fi
2959
2960ac_ext=c
1c710c3c
DJ
2961ac_cpp='$CPP $CPPFLAGS'
2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2968echo "$as_me:$LINENO: checking for $ac_word" >&5
2969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2970if test "${ac_cv_prog_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987done
2988done
2989
2990fi
2991fi
2992CC=$ac_cv_prog_CC
2993if test -n "$CC"; then
2aeb72e9
DD
2994 echo "$as_me:$LINENO: result: $CC" >&5
2995echo "${ECHO_T}$CC" >&6
1c710c3c 2996else
2aeb72e9
DD
2997 echo "$as_me:$LINENO: result: no" >&5
2998echo "${ECHO_T}no" >&6
1c710c3c
DJ
2999fi
3000
3001fi
3002if test -z "$ac_cv_prog_CC"; then
3003 ac_ct_CC=$CC
fb0103e5
RG
3004 # Extract the first word of "gcc", so it can be a program name with args.
3005set dummy gcc; ac_word=$2
2aeb72e9
DD
3006echo "$as_me:$LINENO: checking for $ac_word" >&5
3007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3021 ac_cv_prog_ac_ct_CC="gcc"
3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026done
3027
3028fi
3029fi
3030ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3033echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 3034else
2aeb72e9
DD
3035 echo "$as_me:$LINENO: result: no" >&5
3036echo "${ECHO_T}no" >&6
1c710c3c
DJ
3037fi
3038
2aeb72e9 3039 CC=$ac_ct_CC
1c710c3c
DJ
3040else
3041 CC="$ac_cv_prog_CC"
3042fi
3043
3044if test -z "$CC"; then
2aeb72e9
DD
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3047set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
3048echo "$as_me:$LINENO: checking for $ac_word" >&5
3049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3050if test "${ac_cv_prog_CC+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3052else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055else
1c710c3c
DJ
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3063 ac_cv_prog_CC="${ac_tool_prefix}cc"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067done
3068done
3069
0b0dc272 3070fi
0b0dc272 3071fi
1c710c3c 3072CC=$ac_cv_prog_CC
af71363e 3073if test -n "$CC"; then
2aeb72e9
DD
3074 echo "$as_me:$LINENO: result: $CC" >&5
3075echo "${ECHO_T}$CC" >&6
0b0dc272 3076else
2aeb72e9
DD
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
0b0dc272
AM
3079fi
3080
2aeb72e9
DD
3081fi
3082if test -z "$ac_cv_prog_CC"; then
3083 ac_ct_CC=$CC
3084 # Extract the first word of "cc", so it can be a program name with args.
3085set dummy cc; ac_word=$2
3086echo "$as_me:$LINENO: checking for $ac_word" >&5
3087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_CC="cc"
3102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
11a67599 3104 fi
2aeb72e9
DD
3105done
3106done
3107
3108fi
3109fi
3110ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111if test -n "$ac_ct_CC"; then
3112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3113echo "${ECHO_T}$ac_ct_CC" >&6
3114else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117fi
3118
3119 CC=$ac_ct_CC
3120else
3121 CC="$ac_cv_prog_CC"
3122fi
3123
1c710c3c 3124fi
55ffb5ed
NN
3125if test -z "$CC"; then
3126 # Extract the first word of "cc", so it can be a program name with args.
3127set dummy cc; ac_word=$2
2aeb72e9
DD
3128echo "$as_me:$LINENO: checking for $ac_word" >&5
3129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3130if test "${ac_cv_prog_CC+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3132else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135else
0b0dc272 3136 ac_prog_rejected=no
1c710c3c
DJ
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3145 ac_prog_rejected=yes
3146 continue
3147 fi
3148 ac_cv_prog_CC="cc"
3149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152done
3153done
3154
55ffb5ed
NN
3155if test $ac_prog_rejected = yes; then
3156 # We found a bogon in the path, so make sure we never use it.
3157 set dummy $ac_cv_prog_CC
3158 shift
1c710c3c 3159 if test $# != 0; then
55ffb5ed
NN
3160 # We chose a different compiler from the bogus one.
3161 # However, it has the same basename, so the bogon will be chosen
3162 # first if we set CC to just the basename; use the full file name.
3163 shift
1c710c3c 3164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3165 fi
3166fi
3167fi
3168fi
1c710c3c 3169CC=$ac_cv_prog_CC
55ffb5ed 3170if test -n "$CC"; then
2aeb72e9
DD
3171 echo "$as_me:$LINENO: result: $CC" >&5
3172echo "${ECHO_T}$CC" >&6
55ffb5ed 3173else
2aeb72e9
DD
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
55ffb5ed
NN
3176fi
3177
1c710c3c
DJ
3178fi
3179if test -z "$CC"; then
3180 if test -n "$ac_tool_prefix"; then
2aeb72e9 3181 for ac_prog in cl
1c710c3c
DJ
3182 do
3183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3185echo "$as_me:$LINENO: checking for $ac_word" >&5
3186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3187if test "${ac_cv_prog_CC+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3189else
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3192else
1c710c3c
DJ
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204done
3205done
3206
55ffb5ed
NN
3207fi
3208fi
1c710c3c 3209CC=$ac_cv_prog_CC
55ffb5ed 3210if test -n "$CC"; then
2aeb72e9
DD
3211 echo "$as_me:$LINENO: result: $CC" >&5
3212echo "${ECHO_T}$CC" >&6
a4b9e93e 3213else
2aeb72e9
DD
3214 echo "$as_me:$LINENO: result: no" >&5
3215echo "${ECHO_T}no" >&6
fb0103e5 3216fi
af71363e 3217
1c710c3c
DJ
3218 test -n "$CC" && break
3219 done
af71363e 3220fi
1c710c3c
DJ
3221if test -z "$CC"; then
3222 ac_ct_CC=$CC
2aeb72e9 3223 for ac_prog in cl
1c710c3c
DJ
3224do
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3227echo "$as_me:$LINENO: checking for $ac_word" >&5
3228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3231else
1c710c3c
DJ
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3234else
1c710c3c
DJ
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3242 ac_cv_prog_ac_ct_CC="$ac_prog"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246done
3247done
3248
af71363e
AS
3249fi
3250fi
1c710c3c
DJ
3251ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3254echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3255else
2aeb72e9
DD
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
af71363e 3258fi
0b0dc272 3259
1c710c3c
DJ
3260 test -n "$ac_ct_CC" && break
3261done
3262
2aeb72e9 3263 CC=$ac_ct_CC
1c710c3c
DJ
3264fi
3265
3266fi
3267
3268
18c04407
RW
3269test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3270echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1c710c3c
DJ
3272See \`config.log' for more details." >&5
3273echo "$as_me: error: no acceptable C compiler found in \$PATH
3274See \`config.log' for more details." >&2;}
18c04407 3275 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3276
3277# Provide some information about the compiler.
2aeb72e9
DD
3278echo "$as_me:$LINENO:" \
3279 "checking for C compiler version" >&5
1c710c3c 3280ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3282 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
2aeb72e9
DD
3286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3287 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }
2aeb72e9
DD
3291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3292 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3296
3297cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312ac_clean_files_save=$ac_clean_files
3313ac_clean_files="$ac_clean_files a.out a.exe b.out"
3314# Try to create an executable without -o first, disregard a.out.
3315# It will help us diagnose broken compilers, and finding out an intuition
3316# of exeext.
2aeb72e9
DD
3317echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3318echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3319ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3320if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3321 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
2aeb72e9
DD
3325 # Find the output, starting from the most likely. This scheme is
3326# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3327# resort.
3328
3329# Be careful to initialize this variable, since it used to be cached.
3330# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3331ac_cv_exeext=
3332# b.out is created by i960 compilers.
3333for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3334do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
2aeb72e9
DD
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3338 ;;
3339 conftest.$ac_ext )
3340 # This is the source file.
1c710c3c
DJ
3341 ;;
3342 [ab].out )
3343 # We found the default executable, but exeext='' is most
3344 # certainly right.
3345 break;;
3346 *.* )
2aeb72e9
DD
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 # FIXME: I believe we export ac_cv_exeext for Libtool,
3349 # but it would be cool to find out if it's true. Does anybody
3350 # maintain Libtool? --akim.
3351 export ac_cv_exeext
1c710c3c
DJ
3352 break;;
3353 * )
3354 break;;
3355 esac
3356done
3357else
3358 echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
18c04407
RW
3361{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3362echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3363{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3364See \`config.log' for more details." >&5
3365echo "$as_me: error: C compiler cannot create executables
3366See \`config.log' for more details." >&2;}
18c04407 3367 { (exit 77); exit 77; }; }; }
1c710c3c
DJ
3368fi
3369
3370ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3371echo "$as_me:$LINENO: result: $ac_file" >&5
3372echo "${ECHO_T}$ac_file" >&6
1c710c3c 3373
2aeb72e9 3374# Check the compiler produces executables we can run. If not, either
1c710c3c 3375# the compiler is broken, or we cross compile.
2aeb72e9
DD
3376echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3377echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3378# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3379# If not cross compiling, check that we can run a simple program.
3380if test "$cross_compiling" != yes; then
3381 if { ac_try='./$ac_file'
2aeb72e9
DD
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
1c710c3c
DJ
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 cross_compiling=no
3388 else
3389 if test "$cross_compiling" = maybe; then
3390 cross_compiling=yes
3391 else
18c04407
RW
3392 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3393echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1c710c3c
DJ
3395If you meant to cross compile, use \`--host'.
3396See \`config.log' for more details." >&5
3397echo "$as_me: error: cannot run C compiled programs.
3398If you meant to cross compile, use \`--host'.
3399See \`config.log' for more details." >&2;}
18c04407 3400 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3401 fi
3402 fi
3403fi
2aeb72e9
DD
3404echo "$as_me:$LINENO: result: yes" >&5
3405echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3406
3407rm -f a.out a.exe conftest$ac_cv_exeext b.out
3408ac_clean_files=$ac_clean_files_save
2aeb72e9 3409# Check the compiler produces executables we can run. If not, either
1c710c3c 3410# the compiler is broken, or we cross compile.
2aeb72e9
DD
3411echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3412echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3413echo "$as_me:$LINENO: result: $cross_compiling" >&5
3414echo "${ECHO_T}$cross_compiling" >&6
3415
3416echo "$as_me:$LINENO: checking for suffix of executables" >&5
3417echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3419 (eval $ac_link) 2>&5
1c710c3c
DJ
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; then
3423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3424# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3425# work properly (i.e., refer to `conftest.exe'), while it won't with
3426# `rm'.
3427for ac_file in conftest.exe conftest conftest.*; do
3428 test -f "$ac_file" || continue
3429 case $ac_file in
2aeb72e9 3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3432 export ac_cv_exeext
1c710c3c
DJ
3433 break;;
3434 * ) break;;
3435 esac
3436done
af71363e 3437else
18c04407
RW
3438 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3439echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1c710c3c
DJ
3441See \`config.log' for more details." >&5
3442echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3443See \`config.log' for more details." >&2;}
18c04407 3444 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3445fi
3446
3447rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3448echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3449echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3450
3451rm -f conftest.$ac_ext
3452EXEEXT=$ac_cv_exeext
3453ac_exeext=$EXEEXT
2aeb72e9
DD
3454echo "$as_me:$LINENO: checking for suffix of object files" >&5
3455echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3456if test "${ac_cv_objext+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465
3466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.o conftest.obj
2aeb72e9
DD
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
1c710c3c
DJ
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; then
2aeb72e9 3480 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3481 case $ac_file in
2aeb72e9 3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3483 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484 break;;
3485 esac
3486done
3487else
3488 echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
18c04407
RW
3491{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3492echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3493{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3494See \`config.log' for more details." >&5
3495echo "$as_me: error: cannot compute suffix of object files: cannot compile
3496See \`config.log' for more details." >&2;}
18c04407 3497 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3498fi
3499
3500rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501fi
2aeb72e9
DD
3502echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3503echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3504OBJEXT=$ac_cv_objext
3505ac_objext=$OBJEXT
2aeb72e9
DD
3506echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3507echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3508if test "${ac_cv_c_compiler_gnu+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
3517
3518int
3519main ()
3520{
3521#ifndef __GNUC__
3522 choke me
3523#endif
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
2aeb72e9
DD
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
1c710c3c
DJ
3551 ac_compiler_gnu=yes
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
2aeb72e9 3556ac_compiler_gnu=no
1c710c3c 3557fi
2aeb72e9 3558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3559ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560
3561fi
2aeb72e9
DD
3562echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3563echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3564GCC=`test $ac_compiler_gnu = yes && echo yes`
3565ac_test_CFLAGS=${CFLAGS+set}
3566ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3567CFLAGS="-g"
3568echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3569echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3570if test "${ac_cv_prog_cc_g+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
2aeb72e9 3573 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579
3580int
3581main ()
3582{
3583
3584 ;
3585 return 0;
3586}
3587_ACEOF
3588rm -f conftest.$ac_objext
2aeb72e9
DD
3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag"
3598 || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
1c710c3c
DJ
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
1c710c3c
DJ
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3609 (exit $ac_status); }; }; then
55ffb5ed
NN
3610 ac_cv_prog_cc_g=yes
3611else
1c710c3c
DJ
3612 echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3614
2aeb72e9 3615ac_cv_prog_cc_g=no
0b0dc272 3616fi
2aeb72e9 3617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3618fi
2aeb72e9
DD
3619echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3621if test "$ac_test_CFLAGS" = set; then
1c710c3c 3622 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3623elif test $ac_cv_prog_cc_g = yes; then
3624 if test "$GCC" = yes; then
3625 CFLAGS="-g -O2"
3626 else
3627 CFLAGS="-g"
3628 fi
3629else
3630 if test "$GCC" = yes; then
3631 CFLAGS="-O2"
3632 else
3633 CFLAGS=
3634 fi
3635fi
2aeb72e9
DD
3636echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3637echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3638if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
2aeb72e9 3641 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3642ac_save_CC=$CC
3643cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649#include <stdarg.h>
3650#include <stdio.h>
3651#include <sys/types.h>
3652#include <sys/stat.h>
3653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3654struct buf { int x; };
3655FILE * (*rcsopen) (struct buf *, struct stat *, int);
3656static char *e (p, i)
3657 char **p;
3658 int i;
3659{
3660 return p[i];
3661}
3662static char *f (char * (*g) (char **, int), char **p, ...)
3663{
3664 char *s;
3665 va_list v;
3666 va_start (v,p);
3667 s = g (p, va_arg (v,int));
3668 va_end (v);
3669 return s;
3670}
3671
3672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3673 function prototypes and stuff, but not '\xHH' hex character constants.
3674 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3675 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3677 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3678 that's true only with -std1. */
1c710c3c
DJ
3679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3680
3681int test (int i, double x);
3682struct s1 {int (*f) (int a);};
3683struct s2 {int (*f) (double a);};
3684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685int argc;
3686char **argv;
3687int
3688main ()
3689{
3690return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 ;
3692 return 0;
3693}
3694_ACEOF
2aeb72e9
DD
3695# Don't try gcc -ansi; that turns off useful extensions and
3696# breaks some systems' header files.
3697# AIX -qlanglvl=ansi
3698# Ultrix and OSF/1 -std1
3699# HP-UX 10.20 and later -Ae
3700# HP-UX older versions -Aa -D_HPUX_SOURCE
3701# SVR4 -Xc -D__EXTENSIONS__
3702for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3703do
3704 CC="$ac_save_CC $ac_arg"
3705 rm -f conftest.$ac_objext
2aeb72e9
DD
3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 ac_cv_prog_cc_stdc=$ac_arg
3728break
1c710c3c
DJ
3729else
3730 echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733fi
2aeb72e9 3734rm -f conftest.err conftest.$ac_objext
1c710c3c 3735done
2aeb72e9 3736rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3737CC=$ac_save_CC
3738
3739fi
2aeb72e9
DD
3740
3741case "x$ac_cv_prog_cc_stdc" in
3742 x|xno)
3743 echo "$as_me:$LINENO: result: none needed" >&5
3744echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3745 *)
2aeb72e9
DD
3746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3747echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3748 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3749esac
3750
2aeb72e9
DD
3751# Some people use a C++ compiler to compile C. Since we use `exit',
3752# in C++ we need to declare it. In case someone uses the same compiler
3753# for both compiling C and C++ we need to have the C++ compiler decide
3754# the declaration of exit, since it's the most demanding environment.
3755cat >conftest.$ac_ext <<_ACEOF
3756#ifndef __cplusplus
3757 choke me
3758#endif
3759_ACEOF
3760rm -f conftest.$ac_objext
3761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag"
3770 || test ! -s conftest.err'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; } &&
3776 { ac_try='test -s conftest.$ac_objext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 for ac_declaration in \
3783 '' \
3784 'extern "C" void std::exit (int) throw (); using std::exit;' \
3785 'extern "C" void std::exit (int); using std::exit;' \
3786 'extern "C" void exit (int) throw ();' \
3787 'extern "C" void exit (int);' \
3788 'void exit (int);'
3789do
3790 cat >conftest.$ac_ext <<_ACEOF
3791/* confdefs.h. */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h. */
3796$ac_declaration
3797#include <stdlib.h>
3798int
3799main ()
3800{
3801exit (42);
3802 ;
3803 return 0;
3804}
3805_ACEOF
3806rm -f conftest.$ac_objext
3807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 :
3829else
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833continue
3834fi
3835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3836 cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h. */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h. */
3842$ac_declaration
3843int
3844main ()
3845{
3846exit (42);
3847 ;
3848 return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext
3852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag"
3861 || test ! -s conftest.err'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; } &&
3867 { ac_try='test -s conftest.$ac_objext'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; }; then
3873 break
3874else
3875 echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878fi
3879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880done
3881rm -f conftest*
3882if test -n "$ac_declaration"; then
3883 echo '#ifdef __cplusplus' >>confdefs.h
3884 echo $ac_declaration >>confdefs.h
3885 echo '#endif' >>confdefs.h
3886fi
3887
3888else
3889 echo "$as_me: failed program was:" >&5
3890sed 's/^/| /' conftest.$ac_ext >&5
3891
3892fi
3893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899
3900ac_ext=cc
3901ac_cpp='$CXXCPP $CPPFLAGS'
3902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3905if test -n "$ac_tool_prefix"; then
3906 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3907 do
3908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910echo "$as_me:$LINENO: checking for $ac_word" >&5
3911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912if test "${ac_cv_prog_CXX+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 if test -n "$CXX"; then
3916 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929done
3930done
55ffb5ed 3931
c3a86da9
DJ
3932fi
3933fi
3934CXX=$ac_cv_prog_CXX
3935if test -n "$CXX"; then
2aeb72e9
DD
3936 echo "$as_me:$LINENO: result: $CXX" >&5
3937echo "${ECHO_T}$CXX" >&6
c3a86da9 3938else
2aeb72e9
DD
3939 echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6
c3a86da9
DJ
3941fi
3942
3943 test -n "$CXX" && break
3944 done
3945fi
3946if test -z "$CXX"; then
3947 ac_ct_CXX=$CXX
2aeb72e9 3948 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3949do
3950 # Extract the first word of "$ac_prog", so it can be a program name with args.
3951set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3952echo "$as_me:$LINENO: checking for $ac_word" >&5
3953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3954if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957 if test -n "$ac_ct_CXX"; then
3958 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3967 ac_cv_prog_ac_ct_CXX="$ac_prog"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971done
3972done
3973
3974fi
3975fi
3976ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3977if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3978 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3979echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3980else
2aeb72e9
DD
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
c3a86da9
DJ
3983fi
3984
3985 test -n "$ac_ct_CXX" && break
3986done
2aeb72e9 3987test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3988
2aeb72e9 3989 CXX=$ac_ct_CXX
c3a86da9
DJ
3990fi
3991
2aeb72e9 3992
c3a86da9 3993# Provide some information about the compiler.
2aeb72e9
DD
3994echo "$as_me:$LINENO:" \
3995 "checking for C++ compiler version" >&5
c3a86da9 3996ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3997{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3998 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
2aeb72e9
DD
4002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4003 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
2aeb72e9
DD
4007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4008 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }
4012
2aeb72e9
DD
4013echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4014echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
4015if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024
4025int
4026main ()
4027{
4028#ifndef __GNUC__
4029 choke me
4030#endif
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext
2aeb72e9
DD
4037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_cxx_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
c3a86da9
DJ
4058 ac_compiler_gnu=yes
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
2aeb72e9 4063ac_compiler_gnu=no
c3a86da9 4064fi
2aeb72e9 4065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4066ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4067
4068fi
2aeb72e9
DD
4069echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4070echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
4071GXX=`test $ac_compiler_gnu = yes && echo yes`
4072ac_test_CXXFLAGS=${CXXFLAGS+set}
4073ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
4074CXXFLAGS="-g"
4075echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4076echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
4077if test "${ac_cv_prog_cxx_g+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
2aeb72e9 4080 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4081/* confdefs.h. */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
4090
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext
2aeb72e9
DD
4096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_cxx_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
c3a86da9
DJ
4117 ac_cv_prog_cxx_g=yes
4118else
4119 echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
2aeb72e9
DD
4122ac_cv_prog_cxx_g=no
4123fi
4124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125fi
4126echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4127echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4128if test "$ac_test_CXXFLAGS" = set; then
4129 CXXFLAGS=$ac_save_CXXFLAGS
4130elif test $ac_cv_prog_cxx_g = yes; then
4131 if test "$GXX" = yes; then
4132 CXXFLAGS="-g -O2"
4133 else
4134 CXXFLAGS="-g"
4135 fi
4136else
4137 if test "$GXX" = yes; then
4138 CXXFLAGS="-O2"
4139 else
4140 CXXFLAGS=
4141 fi
4142fi
4143for ac_declaration in \
4144 '' \
4145 'extern "C" void std::exit (int) throw (); using std::exit;' \
4146 'extern "C" void std::exit (int); using std::exit;' \
4147 'extern "C" void exit (int) throw ();' \
4148 'extern "C" void exit (int);' \
4149 'void exit (int);'
4150do
4151 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
2aeb72e9
DD
4157$ac_declaration
4158#include <stdlib.h>
c3a86da9
DJ
4159int
4160main ()
4161{
2aeb72e9 4162exit (42);
c3a86da9
DJ
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext
2aeb72e9
DD
4168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_cxx_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
c3a86da9
DJ
4189 :
4190else
4191 echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4193
2aeb72e9
DD
4194continue
4195fi
4196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4198/* confdefs.h. */
4199_ACEOF
4200cat confdefs.h >>conftest.$ac_ext
4201cat >>conftest.$ac_ext <<_ACEOF
4202/* end confdefs.h. */
2aeb72e9 4203$ac_declaration
c3a86da9
DJ
4204int
4205main ()
4206{
2aeb72e9 4207exit (42);
c3a86da9
DJ
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext
2aeb72e9
DD
4213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_cxx_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 break
c3a86da9
DJ
4235else
4236 echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
11a67599 4239fi
2aeb72e9
DD
4240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241done
4242rm -f conftest*
4243if test -n "$ac_declaration"; then
4244 echo '#ifdef __cplusplus' >>confdefs.h
4245 echo $ac_declaration >>confdefs.h
4246 echo '#endif' >>confdefs.h
c3a86da9
DJ
4247fi
4248
4249ac_ext=c
4250ac_cpp='$CPP $CPPFLAGS'
4251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254
4255
4256# We must set the default linker to the linker used by gcc for the correct
4257# operation of libtool. If LD is not defined and we are using gcc, try to
4258# set the LD default to the ld used by gcc.
4259if test -z "$LD"; then
4260 if test "$GCC" = yes; then
4261 case $build in
4262 *-*-mingw*)
4263 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4264 *)
4265 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4266 esac
4267 case $gcc_prog_ld in
4268 # Accept absolute paths.
4269 [\\/]* | [A-Za-z]:[\\/]*)
4270 LD="$gcc_prog_ld" ;;
4271 esac
4272 fi
23f6b2f9
PB
4273fi
4274
23f6b2f9
PB
4275
4276
55ffb5ed 4277
1c710c3c
DJ
4278if test -n "$ac_tool_prefix"; then
4279 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4280set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4281echo "$as_me:$LINENO: checking for $ac_word" >&5
4282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4283if test "${ac_cv_prog_GNATBIND+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4285else
4286 if test -n "$GNATBIND"; then
4287 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4288else
1c710c3c
DJ
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4296 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300done
4301done
4302
55ffb5ed
NN
4303fi
4304fi
1c710c3c 4305GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4306if test -n "$GNATBIND"; then
2aeb72e9
DD
4307 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4308echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4309else
2aeb72e9
DD
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
55ffb5ed
NN
4312fi
4313
1c710c3c 4314fi
55ffb5ed 4315if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4316 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4317 # Extract the first word of "gnatbind", so it can be a program name with args.
4318set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4319echo "$as_me:$LINENO: checking for $ac_word" >&5
4320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4321if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4323else
1c710c3c
DJ
4324 if test -n "$ac_ct_GNATBIND"; then
4325 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4326else
1c710c3c
DJ
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4334 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338done
4339done
4340
2aeb72e9 4341 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4342fi
4343fi
1c710c3c
DJ
4344ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4345if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4346 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4347echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4348else
2aeb72e9
DD
4349 echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
55ffb5ed
NN
4351fi
4352
2aeb72e9 4353 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4354else
1c710c3c 4355 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4356fi
4357
1c710c3c
DJ
4358if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4360set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4361echo "$as_me:$LINENO: checking for $ac_word" >&5
4362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4363if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4365else
4366 if test -n "$GNATMAKE"; then
4367 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4368else
1c710c3c
DJ
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4376 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381done
4382
5305be7e
RG
4383fi
4384fi
1c710c3c 4385GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4386if test -n "$GNATMAKE"; then
2aeb72e9
DD
4387 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4388echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4389else
2aeb72e9
DD
4390 echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6
5305be7e
RG
4392fi
4393
1c710c3c 4394fi
5305be7e 4395if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4396 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4397 # Extract the first word of "gnatmake", so it can be a program name with args.
4398set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4399echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4401if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4403else
1c710c3c
DJ
4404 if test -n "$ac_ct_GNATMAKE"; then
4405 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4406else
1c710c3c
DJ
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4414 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419done
4420
2aeb72e9 4421 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4422fi
4423fi
1c710c3c
DJ
4424ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4425if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4426 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4427echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4428else
2aeb72e9
DD
4429 echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
5305be7e
RG
4431fi
4432
2aeb72e9 4433 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4434else
1c710c3c 4435 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4436fi
4437
2aeb72e9
DD
4438echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4439echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4440if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4442else
4443 cat >conftest.adb <<EOF
4444procedure conftest is begin null; end conftest;
4445EOF
4446acx_cv_cc_gcc_supports_ada=no
4447# There is a bug in old released versions of GCC which causes the
4448# driver to exit successfully when the appropriate language module
4449# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4450# Therefore we must check for the error message as well as an
4451# unsuccessful exit.
1db673ca
RO
4452# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4453# given a .adb file, but produce no object file. So we must check
4454# if an object file was really produced to guard against this.
55ffb5ed 4455errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4456if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4457 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4458fi
4459rm -f conftest.*
4460fi
2aeb72e9
DD
4461echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4462echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4463
5305be7e 4464if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4465 have_gnat=yes
4466else
4467 have_gnat=no
4468fi
4469
2aeb72e9
DD
4470echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4471echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4472if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4474else
4475 echo abfoo >t1
4476 echo cdfoo >t2
4477 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4478 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4479 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4480 :
4481 else
4482 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4483 fi
4484 fi
a76494aa
PB
4485 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4486 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4487 :
a76494aa
PB
4488 else
4489 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4490 fi
4491 fi
4492 rm t1 t2
4493
4494fi
2aeb72e9
DD
4495echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4496echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4497do_compare="$gcc_cv_prog_cmp_skip"
4498
4499
55ffb5ed 4500
bebf829d 4501# Check for GMP and MPFR
e69bf64b 4502gmplibs="-lmpfr -lgmp"
6de9cd9a 4503gmpinc=
e69bf64b
PB
4504have_gmp=no
4505
bebf829d
PB
4506# Specify a location for mpfr
4507# check for this first so it ends up on the link line before gmp.
1c710c3c 4508
2aeb72e9 4509# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4510if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4511 withval="$with_mpfr_dir"
4512 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4513Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4514echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4515Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4516 { (exit 1); exit 1; }; }
2aeb72e9 4517fi;
bebf829d
PB
4518
4519
2aeb72e9 4520# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4521if test "${with_mpfr+set}" = set; then
2aeb72e9 4522 withval="$with_mpfr"
1c710c3c 4523
2aeb72e9 4524fi;
bebf829d 4525
2aeb72e9 4526# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4527if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4528 withval="$with_mpfr_include"
1c710c3c 4529
2aeb72e9 4530fi;
8a877c9c 4531
2aeb72e9 4532# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4533if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4534 withval="$with_mpfr_lib"
8a877c9c 4535
2aeb72e9 4536fi;
bebf829d
PB
4537
4538if test "x$with_mpfr" != x; then
4539 gmplibs="-L$with_mpfr/lib $gmplibs"
4540 gmpinc="-I$with_mpfr/include"
4541fi
8a877c9c
KG
4542if test "x$with_mpfr_include" != x; then
4543 gmpinc="-I$with_mpfr_include"
4544fi
4545if test "x$with_mpfr_lib" != x; then
4546 gmplibs="-L$with_mpfr_lib $gmplibs"
4547fi
e69bf64b
PB
4548if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4549 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4550 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4551 # Do not test the mpfr version. Assume that it is sufficient, since
4552 # it is in the source tree, and the library has not been built yet
4553 # but it would be included on the link line in the version check below
4554 # hence making the test fail.
4555 have_gmp=yes
4556fi
bebf829d 4557
6de9cd9a 4558# Specify a location for gmp
1c710c3c 4559
2aeb72e9 4560# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4561if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4562 withval="$with_gmp_dir"
4563 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4564Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4565echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4566Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4567 { (exit 1); exit 1; }; }
2aeb72e9 4568fi;
6de9cd9a 4569
6de9cd9a 4570
2aeb72e9 4571# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4572if test "${with_gmp+set}" = set; then
2aeb72e9 4573 withval="$with_gmp"
1c710c3c 4574
2aeb72e9 4575fi;
6de9cd9a 4576
2aeb72e9 4577# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4578if test "${with_gmp_include+set}" = set; then
2aeb72e9 4579 withval="$with_gmp_include"
1c710c3c 4580
2aeb72e9 4581fi;
8a877c9c 4582
2aeb72e9 4583# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4584if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4585 withval="$with_gmp_lib"
8a877c9c 4586
2aeb72e9 4587fi;
8a877c9c 4588
6de9cd9a 4589
bebf829d
PB
4590if test "x$with_gmp" != x; then
4591 gmplibs="-L$with_gmp/lib $gmplibs"
4592 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4593fi
8a877c9c
KG
4594if test "x$with_gmp_include" != x; then
4595 gmpinc="-I$with_gmp_include $gmpinc"
4596fi
4597if test "x$with_gmp_lib" != x; then
4598 gmplibs="-L$with_gmp_lib $gmplibs"
4599fi
e69bf64b
PB
4600if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4601 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4602 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9e3eba15 4603 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
4604 # Do not test the gmp version. Assume that it is sufficient, since
4605 # it is in the source tree, and the library has not been built yet
4606 # but it would be included on the link line in the version check below
4607 # hence making the test fail.
4608 have_gmp=yes
4609fi
6de9cd9a 4610
d943d7c4 4611if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4612 have_gmp=yes
4613 saved_CFLAGS="$CFLAGS"
4614 CFLAGS="$CFLAGS $gmpinc"
4615 # Check GMP actually works
2aeb72e9
DD
4616 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4617echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4618
4619cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
6de9cd9a 4625#include "gmp.h"
1c710c3c
DJ
4626int
4627main ()
4628{
6de9cd9a 4629
a3337ea2 4630 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
e69bf64b
PB
4631 choke me
4632 #endif
1c710c3c
DJ
4633
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638rm -f conftest.$ac_objext
2aeb72e9
DD
4639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag"
4648 || test ! -s conftest.err'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 echo "$as_me:$LINENO: result: yes" >&5
4661echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4662else
4663 echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
2aeb72e9
DD
4666echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4668fi
2aeb72e9 4669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4670
e69bf64b
PB
4671 if test x"$have_gmp" = xyes; then
4672 saved_LIBS="$LIBS"
4673 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4674 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4675echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4676 cat >conftest.$ac_ext <<_ACEOF
4677/* confdefs.h. */
4678_ACEOF
4679cat confdefs.h >>conftest.$ac_ext
4680cat >>conftest.$ac_ext <<_ACEOF
4681/* end confdefs.h. */
70ec446f 4682#include <gmp.h>
e69bf64b 4683 #include <mpfr.h>
1c710c3c
DJ
4684int
4685main ()
4686{
e48d66a9 4687
a3337ea2 4688 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
4689 choke me
4690 #endif
54e433bc
MK
4691 mpfr_t n;
4692 mpfr_t x;
e69bf64b 4693 int t;
54e433bc
MK
4694 mpfr_init (n);
4695 mpfr_init (x);
e69bf64b
PB
4696 mpfr_atan2 (n, n, x, GMP_RNDN);
4697 mpfr_erfc (n, x, GMP_RNDN);
4698 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4699
4700 ;
4701 return 0;
4702}
4703_ACEOF
4704rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4707 ac_status=$?
4708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4712 (exit $ac_status); } &&
4713 { ac_try='test -z "$ac_c_werror_flag"
4714 || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try='test -s conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
1c710c3c
DJ
4726 cat >conftest.$ac_ext <<_ACEOF
4727/* confdefs.h. */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h. */
a3993f33 4732#include <gmp.h>
e69bf64b 4733 #include <mpfr.h>
1c710c3c
DJ
4734int
4735main ()
4736{
a3993f33 4737
36c713e0 4738 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
4739 choke me
4740 #endif
4741 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
4747rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_c_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4771else
4772 echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
2aeb72e9
DD
4775echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4776echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4777fi
2aeb72e9 4778rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4779 conftest$ac_exeext conftest.$ac_ext
4780else
4781 echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
2aeb72e9
DD
4784echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4786fi
2aeb72e9 4787rm -f conftest.err conftest.$ac_objext \
1c710c3c 4788 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4789 LIBS="$saved_LIBS"
4790 fi
4791 CFLAGS="$saved_CFLAGS"
6de9cd9a 4792
e69bf64b 4793 if test x$have_gmp != xyes; then
a3337ea2 4794 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
1c710c3c
DJ
4795Try the --with-gmp and/or --with-mpfr options to specify their locations.
4796Copies of these libraries' source code can be found at their respective
4797hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4798See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4799If you obtained GMP and/or MPFR from a vendor distribution package, make
4800sure that you have installed both the libraries and the header files.
4801They may be located in separate packages." >&5
a3337ea2 4802echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
ca558912
KG
4803Try the --with-gmp and/or --with-mpfr options to specify their locations.
4804Copies of these libraries' source code can be found at their respective
4805hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4806See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4807If you obtained GMP and/or MPFR from a vendor distribution package, make
4808sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4809They may be located in separate packages." >&2;}
4810 { (exit 1); exit 1; }; }
e69bf64b 4811 fi
70ec446f
KG
4812fi
4813
bebf829d 4814# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4815
4816
4817
9e3eba15 4818
f38095f3
JM
4819# Allow host libstdc++ to be specified for static linking with PPL.
4820
4821# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
4822if test "${with_host_libstdcxx+set}" = set; then
4823 withval="$with_host_libstdcxx"
4824
4825fi;
4826
4827case $with_host_libstdcxx in
4828 no|yes)
4829 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
4830echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
4831 { (exit 1); exit 1; }; }
4832 ;;
4833esac
f8bf9252
SP
4834
4835# Check for PPL
4836ppl_major_version=0
4837ppl_minor_version=10
f38095f3 4838ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
f8bf9252
SP
4839pplinc=
4840
4841
4842# Check whether --with-ppl or --without-ppl was given.
4843if test "${with_ppl+set}" = set; then
4844 withval="$with_ppl"
4845
0b70eafd
DK
4846else
4847 with_ppl=no
f8bf9252
SP
4848fi;
4849
4850# Check whether --with-ppl_include or --without-ppl_include was given.
4851if test "${with_ppl_include+set}" = set; then
4852 withval="$with_ppl_include"
4853
4854fi;
4855
4856# Check whether --with-ppl_lib or --without-ppl_lib was given.
4857if test "${with_ppl_lib+set}" = set; then
4858 withval="$with_ppl_lib"
4859
4860fi;
4861
53095c56
SP
4862case $with_ppl in
4863 no)
4864 ppllibs=
4865 ;;
4866 *)
f38095f3 4867 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
53095c56
SP
4868 pplinc="-I$with_ppl/include $pplinc"
4869 LIBS="$ppllibs $LIBS"
4870 ;;
4871esac
f8bf9252
SP
4872if test "x$with_ppl_include" != x; then
4873 pplinc="-I$with_ppl_include $pplinc"
4874fi
4875if test "x$with_ppl_lib" != x; then
f38095f3 4876 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
f8bf9252
SP
4877 LIBS="$ppllibs $LIBS"
4878fi
4879if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
f38095f3 4880 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
f8bf9252
SP
4881 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4882 LIBS="$ppllibs $LIBS"
4883fi
4884
d789184e
SP
4885# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4886if test "${enable_ppl_version_check+set}" = set; then
4887 enableval="$enable_ppl_version_check"
4888 ENABLE_PPL_CHECK=$enableval
4889else
4890 ENABLE_PPL_CHECK=yes
f8bf9252
SP
4891fi;
4892
d789184e
SP
4893if test "${ENABLE_PPL_CHECK}" = "yes"; then
4894 saved_CFLAGS="$CFLAGS"
4895 CFLAGS="$CFLAGS $pplinc $gmpinc"
4896 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
f8bf9252 4897echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
d789184e 4898 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include "ppl_c.h"
4905int
4906main ()
4907{
4908
d789184e
SP
4909 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4910 choke me
4911 #endif
f8bf9252
SP
4912
4913 ;
4914 return 0;
4915}
4916_ACEOF
4917rm -f conftest.$ac_objext
4918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -z "$ac_c_werror_flag"
4927 || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941else
4942 echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945echo "$as_me:$LINENO: result: no" >&5
d789184e 4946echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
f8bf9252
SP
4947fi
4948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
4949 CFLAGS="$saved_CFLAGS"
4950fi
4951
4952# Flags needed for PPL
4953
4954
f8bf9252 4955
f8bf9252 4956
d789184e 4957# Check for CLOOG
23d9794a 4958clooglibs=" -lcloog "
d789184e
SP
4959clooginc=" -DCLOOG_PPL_BACKEND "
4960
4961
4962# Check whether --with-cloog or --without-cloog was given.
4963if test "${with_cloog+set}" = set; then
4964 withval="$with_cloog"
4965
0b70eafd
DK
4966else
4967 with_cloog=no
d789184e
SP
4968fi;
4969
4970# Check whether --with-cloog_include or --without-cloog_include was given.
4971if test "${with_cloog_include+set}" = set; then
4972 withval="$with_cloog_include"
4973
4974fi;
4975
4976# Check whether --with-cloog_lib or --without-cloog_lib was given.
4977if test "${with_cloog_lib+set}" = set; then
4978 withval="$with_cloog_lib"
4979
4980fi;
4981
53095c56
SP
4982case $with_cloog in
4983 no)
4984 clooglibs=
4985 clooginc=
4986 ;;
4987 *)
4988 clooglibs="-L$with_cloog/lib -lcloog"
4989 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4990 LIBS="$clooglibs $LIBS"
4991 ;;
4992esac
d789184e
SP
4993if test "x$with_cloog_include" != x; then
4994 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4995fi
4996if test "x$with_cloog_lib" != x; then
4997 clooglibs="-L$with_cloog_lib -lcloog"
4998 LIBS="$clooglibs $LIBS"
4999fi
5000if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5001 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5002 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5003 LIBS="$clooglibs $LIBS"
5004fi
5005
5006# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5007if test "${enable_cloog_version_check+set}" = set; then
5008 enableval="$enable_cloog_version_check"
5009 ENABLE_CLOOG_CHECK=$enableval
5010else
5011 ENABLE_CLOOG_CHECK=yes
5012fi;
5013
5014if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5015 saved_CFLAGS="$CFLAGS"
5016 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5017 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
f8bf9252 5018echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
d789184e 5019 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
5025#include "cloog/cloog.h"
5026int
5027main ()
5028{
5029
d789184e
SP
5030 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5031 choke me
5032 #endif
f8bf9252
SP
5033
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038rm -f conftest.$ac_objext
5039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 echo "$as_me:$LINENO: result: yes" >&5
5061echo "${ECHO_T}yes" >&6
5062else
5063 echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5068fi
5069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5070 CFLAGS="$saved_CFLAGS"
5071fi
f8bf9252
SP
5072
5073# Flags needed for CLOOG
5074
5075
5076
5077
1e0f07d3 5078# By default, C is the only stage 1 language.
e1888513 5079stage1_languages=,c,
2805b53a 5080
55ffb5ed
NN
5081# Figure out what language subdirectories are present.
5082# Look if the user specified --enable-languages="..."; if not, use
5083# the environment variable $LANGUAGES if defined. $LANGUAGES might
5084# go away some day.
5085# NB: embedded tabs in this IF block -- do not untabify
5086if test -d ${srcdir}/gcc; then
5087 if test x"${enable_languages+set}" != xset; then
5088 if test x"${LANGUAGES+set}" = xset; then
5089 enable_languages="${LANGUAGES}"
5090 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5091 else
5092 enable_languages=all
5093 fi
5094 else
5095 if test x"${enable_languages}" = x ||
5096 test x"${enable_languages}" = xyes;
5097 then
5098 echo configure.in: --enable-languages needs at least one language argument 1>&2
5099 exit 1
5100 fi
5101 fi
5102 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5103
7f26dfa3
FXC
5104 # 'f95' is the old name for the 'fortran' language. We issue a warning
5105 # and make the substitution.
5106 case ,${enable_languages}, in
5107 *,f95,*)
5108 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5109 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5110 ;;
5111 esac
5112
55ffb5ed
NN
5113 # First scan to see if an enabled language requires some other language.
5114 # We assume that a given config-lang.in will list all the language
5115 # front ends it requires, even if some are required indirectly.
5116 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5117 case ${lang_frag} in
5118 ..) ;;
5119 # The odd quoting in the next line works around
5120 # an apparent bug in bash 1.12 on linux.
5121 ${srcdir}/gcc/[*]/config-lang.in) ;;
5122 *)
5123 # From the config-lang.in, get $language, $lang_requires
5124 language=
5125 lang_requires=
5126 . ${lang_frag}
5127 for other in ${lang_requires} ; do
5128 case ,${enable_languages}, in
5129 *,$other,*) ;;
5130 *,all,*) ;;
5131 *,$language,*)
5132 echo " \`$other' language required by \`$language'; enabling" 1>&2
5133 enable_languages="${enable_languages},${other}"
5134 ;;
5135 esac
5136 done
5137 ;;
5138 esac
5139 done
5140
e1888513 5141 new_enable_languages=,c,
55ffb5ed 5142 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5143 potential_languages=,c,
55ffb5ed
NN
5144
5145 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5146 case ${lang_frag} in
5147 ..) ;;
5148 # The odd quoting in the next line works around
5149 # an apparent bug in bash 1.12 on linux.
5150 ${srcdir}/gcc/[*]/config-lang.in) ;;
5151 *)
1c710c3c 5152 # From the config-lang.in, get $language, $target_libs,
2805b53a 5153 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5154 language=
5155 target_libs=
5156 lang_dirs=
1546bb64 5157 subdir_requires=
e1888513
PB
5158 boot_language=no
5159 build_by_default=yes
55ffb5ed 5160 . ${lang_frag}
e1888513
PB
5161 if test x${language} = x; then
5162 echo "${lang_frag} doesn't set \$language." 1>&2
5163 exit 1
5164 fi
5165
5166 case ,${enable_languages}, in
5167 *,${language},*)
55ffb5ed
NN
5168 # Language was explicitly selected; include it.
5169 add_this_lang=yes
5170 ;;
e1888513
PB
5171 *,all,*)
5172 # 'all' was selected, select it if it is a default language
5173 add_this_lang=${build_by_default}
55ffb5ed
NN
5174 ;;
5175 *)
5176 add_this_lang=no
5177 ;;
5178 esac
6de9cd9a 5179
1546bb64 5180 # Disable languages that need other directories if these aren't available.
95695ad3 5181 for i in $subdir_requires; do
b6348cb3 5182 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5183 case ,${enable_languages}, in
5184 *,${language},*)
5185 # Specifically requested language; tell them.
1c710c3c
DJ
5186 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5187echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5188 { (exit 1); exit 1; }; }
1546bb64
PB
5189 ;;
5190 *)
5191 # Silently disable.
e1888513 5192 add_this_lang=unsupported
1546bb64
PB
5193 ;;
5194 esac
5195 done
5196
e1888513
PB
5197 # Disable Ada if no preexisting GNAT is available.
5198 case ,${enable_languages},:${language}:${have_gnat} in
5199 *,${language},*:ada:no)
5200 # Specifically requested language; tell them.
1c710c3c
DJ
5201 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5202echo "$as_me: error: GNAT is required to build $language" >&2;}
5203 { (exit 1); exit 1; }; }
e1888513
PB
5204 ;;
5205 *:ada:no)
5206 # Silently disable.
5207 add_this_lang=unsupported
5208 ;;
5209 esac
5210
4fab7234
HPN
5211 # Disable a language that is unsupported by the target.
5212 case " $unsupported_languages " in
5213 *" $language "*)
e1888513 5214 add_this_lang=unsupported
4fab7234
HPN
5215 ;;
5216 esac
5217
6de9cd9a 5218 case $add_this_lang in
e1888513 5219 unsupported)
55ffb5ed 5220 # Remove language-dependent dirs.
2805b53a
NN
5221 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5222 ;;
e1888513
PB
5223 no)
5224 # Remove language-dependent dirs; still show language as supported.
5225 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5226 potential_languages="${potential_languages}${language},"
5227 ;;
5228 yes)
5229 new_enable_languages="${new_enable_languages}${language},"
5230 potential_languages="${potential_languages}${language},"
2805b53a
NN
5231 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5232 case ${boot_language} in
5233 yes)
340de83f 5234 # Add to (comma-separated) list of stage 1 languages.
e1888513 5235 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
5236 ;;
5237 esac
5238 ;;
55ffb5ed
NN
5239 esac
5240 ;;
5241 esac
5242 done
5243
2aeb72e9 5244 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 5245if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
5246 enableval="$enable_stage1_languages"
5247 case ,${enable_stage1_languages}, in
e1888513
PB
5248 ,no,|,,)
5249 # Set it to something that will have no effect in the loop below
5250 enable_stage1_languages=c ;;
5251 ,yes,)
5252 enable_stage1_languages=`echo $new_enable_languages | \
5253 sed -e "s/^,//" -e "s/,$//" ` ;;
5254 *,all,*)
5255 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5256 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5257 esac
5258
5259 # Add "good" languages from enable_stage1_languages to stage1_languages,
5260 # while "bad" languages go in missing_languages. Leave no duplicates.
5261 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5262 case $potential_languages in
5263 *,$i,*)
5264 case $stage1_languages in
5265 *,$i,*) ;;
5266 *) stage1_languages="$stage1_languages$i," ;;
5267 esac ;;
5268 *)
5269 case $missing_languages in
5270 *,$i,*) ;;
5271 *) missing_languages="$missing_languages$i," ;;
5272 esac ;;
5273 esac
5274 done
2aeb72e9 5275fi;
e1888513
PB
5276
5277 # Remove leading/trailing commas that were added for simplicity
5278 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5279 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5280 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5281 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5282
55ffb5ed 5283 if test "x$missing_languages" != x; then
1c710c3c 5284 { { echo "$as_me:$LINENO: error:
0cf085e4 5285The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5286Supported languages are: ${potential_languages}" >&5
5287echo "$as_me: error:
5288The following requested languages could not be built: ${missing_languages}
5289Supported languages are: ${potential_languages}" >&2;}
5290 { (exit 1); exit 1; }; }
55ffb5ed 5291 fi
55ffb5ed
NN
5292 if test "x$new_enable_languages" != "x$enable_languages"; then
5293 echo The following languages will be built: ${new_enable_languages}
e1888513 5294 enable_languages="$new_enable_languages"
55ffb5ed 5295 fi
e1888513 5296
1c710c3c 5297
b2eaac4a 5298 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5299fi
5300
27079765
AH
5301# Handle --disable-<component> generically.
5302for dir in $configdirs $build_configdirs $target_configdirs ; do
5303 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5304 varname=`echo $dirname | sed -e s/+/_/g`
5305 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5306 noconfigdirs="$noconfigdirs $dir"
5307 fi
5308done
5309
7cd0cf9c 5310# Check for Boehm's garbage collector
2aeb72e9 5311# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 5312if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
5313 enableval="$enable_objc_gc"
5314 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5315 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5316 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5317echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5318 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5319 ;;
5320esac
2aeb72e9 5321fi;
7cd0cf9c
DA
5322
5323# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5324case ,${enable_languages},:${enable_objc_gc} in
5325 *,objc,*:yes)
7cd0cf9c
DA
5326 # Keep target-boehm-gc if requested for Objective-C.
5327 ;;
7cd0cf9c 5328 *)
2a79fd67
DA
5329 # Otherwise remove target-boehm-gc depending on target-libjava.
5330 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5331 noconfigdirs="$noconfigdirs target-boehm-gc"
5332 fi
7cd0cf9c
DA
5333 ;;
5334esac
5335
ee6a22df
L
5336# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5337# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5338# If we have the source for $noconfigdirs entries, add them to $notsupp.
5339
5340notsupp=""
5341for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5342 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5343 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5344 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5345 if test -r $srcdir/$dirname/configure ; then
5346 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5347 true
5348 else
5349 notsupp="$notsupp $dir"
5350 fi
5351 fi
5352 fi
ee6a22df
L
5353 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5354 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5355 if test -r $srcdir/$dirname/configure ; then
5356 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5357 true
5358 else
5359 notsupp="$notsupp $dir"
5360 fi
5361 fi
5362 fi
55ffb5ed
NN
5363 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5364 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5365 if test -r $srcdir/$dirname/configure ; then
5366 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5367 true
5368 else
5369 notsupp="$notsupp $dir"
5370 fi
5371 fi
5372 fi
5373done
5374
5375# Sometimes the tools are distributed with libiberty but with no other
5376# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5377# Don't let libgcc imply libiberty either.
55ffb5ed 5378if test -n "${target_configdirs}" ; then
54fdc474 5379 libgcc=
55ffb5ed
NN
5380 others=
5381 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5382 if test "$i" = "libgcc"; then
5383 libgcc=target-libgcc
5384 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5385 if test -r $srcdir/$i/configure ; then
5386 others=yes;
5387 break;
5388 fi
5389 fi
5390 done
5391 if test -z "${others}" ; then
54fdc474 5392 target_configdirs=$libgcc
55ffb5ed
NN
5393 fi
5394fi
5395
5396# Quietly strip out all directories which aren't configurable in this tree.
5397# This relies on all configurable subdirectories being autoconfiscated, which
5398# is now the case.
23f6b2f9
PB
5399build_configdirs_all="$build_configdirs"
5400build_configdirs=
5401for i in ${build_configdirs_all} ; do
1c710c3c 5402 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5403 if test -f ${srcdir}/$j/configure ; then
5404 build_configdirs="${build_configdirs} $i"
5405 fi
5406done
5407
55ffb5ed
NN
5408configdirs_all="$configdirs"
5409configdirs=
5410for i in ${configdirs_all} ; do
5411 if test -f ${srcdir}/$i/configure ; then
5412 configdirs="${configdirs} $i"
5413 fi
5414done
23f6b2f9 5415
55ffb5ed
NN
5416target_configdirs_all="$target_configdirs"
5417target_configdirs=
5418for i in ${target_configdirs_all} ; do
1c710c3c 5419 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5420 if test -f ${srcdir}/$j/configure ; then
5421 target_configdirs="${target_configdirs} $i"
5422 fi
5423done
5424
5425# Produce a warning message for the subdirs we can't configure.
5426# This isn't especially interesting in the Cygnus tree, but in the individual
5427# FSF releases, it's important to let people know when their machine isn't
5428# supported by the one or two programs in a package.
5429
5430if test -n "${notsupp}" && test -z "${norecursion}" ; then
5431 # If $appdirs is non-empty, at least one of those directories must still
5432 # be configured, or we error out. (E.g., if the gas release supports a
5433 # specified target in some subdirs but not the gas subdir, we shouldn't
5434 # pretend that all is well.)
5435 if test -n "$appdirs" ; then
5436 for dir in $appdirs ; do
5437 if test -r $dir/Makefile.in ; then
5438 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5439 appdirs=""
5440 break
5441 fi
23f6b2f9 5442 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5443 appdirs=""
5444 break
5445 fi
5446 fi
5447 done
5448 if test -n "$appdirs" ; then
5449 echo "*** This configuration is not supported by this package." 1>&2
5450 exit 1
5451 fi
5452 fi
5453 # Okay, some application will build, or we don't care to check. Still
5454 # notify of subdirs not getting built.
5455 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5456 echo " ${notsupp}" 1>&2
5457 echo " (Any other directories should still work fine.)" 1>&2
5458fi
5459
5460case "$host" in
5461 *msdosdjgpp*)
5462 enable_gdbtk=no ;;
5463esac
5464
c3a86da9
DJ
5465# To find our prefix, in gcc_cv_tool_prefix.
5466
5467# The user is always right.
5468if test "${PATH_SEPARATOR+set}" != set; then
5469 echo "#! /bin/sh" >conf$$.sh
5470 echo "exit 0" >>conf$$.sh
5471 chmod +x conf$$.sh
5472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5473 PATH_SEPARATOR=';'
5474 else
5475 PATH_SEPARATOR=:
5476 fi
5477 rm -f conf$$.sh
5478fi
5479
5480
5481
5482if test "x$exec_prefix" = xNONE; then
5483 if test "x$prefix" = xNONE; then
5484 gcc_cv_tool_prefix=$ac_default_prefix
5485 else
5486 gcc_cv_tool_prefix=$prefix
5487 fi
5488else
5489 gcc_cv_tool_prefix=$exec_prefix
5490fi
5491
5492# If there is no compiler in the tree, use the PATH only. In any
5493# case, if there is no compiler in the tree nobody should use
5494# AS_FOR_TARGET and LD_FOR_TARGET.
5495if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5496 gcc_version=`cat $srcdir/gcc/BASE-VER`
5497 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5499 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5501 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5502 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5503else
5504 gcc_cv_tool_dirs=
5505fi
5506
5507if test x$build = x$target && test -n "$md_exec_prefix"; then
5508 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5509fi
5510
5511
5512
55ffb5ed
NN
5513copy_dirs=
5514
1c710c3c 5515
2aeb72e9 5516# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5517if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5518 withval="$with_build_sysroot"
5519 if test x"$withval" != x ; then
526635cb
MM
5520 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5521 fi
5522else
5523 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5524fi;
526635cb
MM
5525
5526
c8aea42c
PB
5527
5528# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5529if test "${with_debug_prefix_map+set}" = set; then
5530 withval="$with_debug_prefix_map"
5531 if test x"$withval" != x; then
5532 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5533 for debug_map in $withval; do
5534 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5535 done
5536 fi
5537else
5538 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5539fi;
5540
5541
1c8bd6a3
PB
5542# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5543# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5544# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5545# We want to ensure that TARGET libraries (which we know are built with
5546# gcc) are built with "-O2 -g", so include those options when setting
5547# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5548if test "x$CFLAGS_FOR_TARGET" = x; then
5549 CFLAGS_FOR_TARGET=$CFLAGS
5550 case " $CFLAGS " in
5551 *" -O2 "*) ;;
5552 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5553 esac
5554 case " $CFLAGS " in
5555 *" -g "* | *" -g3 "*) ;;
5556 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5557 esac
5558fi
5559
5560
5561if test "x$CXXFLAGS_FOR_TARGET" = x; then
5562 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5563 case " $CXXFLAGS " in
5564 *" -O2 "*) ;;
5565 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5566 esac
5567 case " $CXXFLAGS " in
5568 *" -g "* | *" -g3 "*) ;;
5569 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5570 esac
5571fi
5572
5573
55ffb5ed
NN
5574# Handle --with-headers=XXX. If the value is not "yes", the contents of
5575# the named directory are copied to $(tooldir)/sys-include.
5576if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5577 if test x${is_cross_compiler} = xno ; then
5578 echo 1>&2 '***' --with-headers is only supported when cross compiling
5579 exit 1
5580 fi
5581 if test x"${with_headers}" != xyes ; then
c3a86da9 5582 x=${gcc_cv_tool_prefix}
1c710c3c 5583 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5584 fi
5585fi
5586
5587# Handle --with-libs=XXX. If the value is not "yes", the contents of
5588# the name directories are copied to $(tooldir)/lib. Multiple directories
5589# are permitted.
5590if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5591 if test x${is_cross_compiler} = xno ; then
5592 echo 1>&2 '***' --with-libs is only supported when cross compiling
5593 exit 1
5594 fi
5595 if test x"${with_libs}" != xyes ; then
5596 # Copy the libraries in reverse order, so that files in the first named
5597 # library override files in subsequent libraries.
c3a86da9 5598 x=${gcc_cv_tool_prefix}
55ffb5ed 5599 for l in ${with_libs}; do
1c710c3c 5600 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5601 done
5602 fi
5603fi
5604
e8b05380
PB
5605# Set with_gnu_as and with_gnu_ld as appropriate.
5606#
5607# This is done by determining whether or not the appropriate directory
5608# is available, and by checking whether or not specific configurations
5609# have requested that this magic not happen.
1c710c3c
DJ
5610#
5611# The command line options always override the explicit settings in
e8b05380
PB
5612# configure.in, and the settings in configure.in override this magic.
5613#
1c710c3c 5614# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5615# want to do that, then you should use the --without-gnu-as and
5616# --without-gnu-ld options for the configure script.
5617
5618if test x${use_gnu_as} = x &&
5619 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5620 with_gnu_as=yes
5621 extra_host_args="$extra_host_args --with-gnu-as"
5622fi
5623
5624if test x${use_gnu_ld} = x &&
5afab7ad 5625 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
5626 with_gnu_ld=yes
5627 extra_host_args="$extra_host_args --with-gnu-ld"
5628fi
5629
5630# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5631# can detect this case.
5632
5633if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5634 with_newlib=yes
5635 extra_host_args="$extra_host_args --with-newlib"
5636fi
5637
55ffb5ed
NN
5638# Handle ${copy_dirs}
5639set fnord ${copy_dirs}
5640shift
5641while test $# != 0 ; do
5642 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5643 :
5644 else
5645 echo Copying $1 to $2
5646
5647 # Use the install script to create the directory and all required
5648 # parent directories.
5649 if test -d $2 ; then
5650 :
5651 else
5652 echo >config.temp
5653 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5654 fi
5655
5656 # Copy the directory, assuming we have tar.
5657 # FIXME: Should we use B in the second tar? Not all systems support it.
5658 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5659
5660 # It is the responsibility of the user to correctly adjust all
5661 # symlinks. If somebody can figure out how to handle them correctly
5662 # here, feel free to add the code.
5663
5664 echo $1 > $2/COPIED
5665 fi
5666 shift; shift
5667done
5668
e8b05380
PB
5669# Determine a target-dependent exec_prefix that the installed
5670# gcc will search in. Keep this list sorted by triplet, with
5671# the *-*-osname triplets last.
5672md_exec_prefix=
5673case "${target}" in
5674 alpha*-*-*vms*)
5675 md_exec_prefix=/gnu/lib/gcc-lib
5676 ;;
30b74385 5677 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5678 md_exec_prefix=/dev/env/DJDIR/bin
5679 ;;
30b74385 5680 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5681 if test $with_gnu_as = yes; then
5682 md_exec_prefix=/usr/gnu/bin
5683 else
5684 md_exec_prefix=/usr/ccs/bin/elf
5685 fi
5686 ;;
5687
5688 mn10300-*-* | \
5689 powerpc-*-chorusos* | \
5690 powerpc*-*-eabi* | \
5691 powerpc*-*-sysv* | \
5692 powerpc*-*-kaos* | \
5693 s390x-ibm-tpf*)
5694 md_exec_prefix=/usr/ccs/bin
5695 ;;
5696 sparc64-*-elf*)
5697 ;;
5698 v850*-*-*)
5699 md_exec_prefix=/usr/ccs/bin
5700 ;;
aa12a573 5701 xtensa*-*-elf*)
e8b05380
PB
5702 ;;
5703
5704 *-*-beos* | \
5705 *-*-elf* | \
5706 *-*-hpux* | \
5707 *-*-netware* | \
5708 *-*-nto-qnx* | \
5709 *-*-rtems* | \
5710 *-*-solaris2* | \
30b74385 5711 *-*-sysv[45]* | \
e8b05380
PB
5712 *-*-vxworks* | \
5713 *-wrs-windiss)
5714 md_exec_prefix=/usr/ccs/bin
5715 ;;
5716esac
5717
671aa708
NN
5718extra_arflags_for_target=
5719extra_nmflags_for_target=
5720extra_ranlibflags_for_target=
5721target_makefile_frag=/dev/null
5722case "${target}" in
3e19841a
PB
5723 mep*-*-*)
5724 target_makefile_frag="config/mt-mep"
5725 ;;
58e24147
AM
5726 spu-*-*)
5727 target_makefile_frag="config/mt-spu"
5728 ;;
4bf6c438
RS
5729 mips*-sde-elf*)
5730 target_makefile_frag="config/mt-sde"
5731 ;;
1ec3b87b
RS
5732 mipsisa*-*-elfoabi*)
5733 target_makefile_frag="config/mt-mips-elfoabi"
5734 ;;
08d0963a
RS
5735 mips*-*-*linux* | mips*-*-gnu*)
5736 target_makefile_frag="config/mt-mips-gnu"
5737 ;;
61fec9ff 5738 *-*-netware*)
671aa708
NN
5739 target_makefile_frag="config/mt-netware"
5740 ;;
416ac4d4 5741 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 5742 target_makefile_frag="config/mt-gnu"
671aa708
NN
5743 ;;
5744 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5745 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5746 # commands to handle both 32-bit and 64-bit objects. These flags are
5747 # harmless if we're using GNU nm or ar.
5748 extra_arflags_for_target=" -X32_64"
5749 extra_nmflags_for_target=" -B -X32_64"
5750 ;;
5751 *-*-darwin*)
5752 # ranlib from Darwin requires the -c flag to look at common symbols.
5753 extra_ranlibflags_for_target=" -c"
5754 ;;
5755 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5756 target_makefile_frag="config/mt-wince"
5757 ;;
5758esac
5759
5760alphaieee_frag=/dev/null
5761case $target in
5762 alpha*-*-*)
5763 # This just makes sure to use the -mieee option to build target libs.
5764 # This should probably be set individually by each library.
5765 alphaieee_frag="config/mt-alphaieee"
5766 ;;
5767esac
5768
5769# If --enable-target-optspace always use -Os instead of -O2 to build
5770# the target libraries, similarly if it is not specified, use -Os
5771# on selected platforms.
5772ospace_frag=/dev/null
5773case "${enable_target_optspace}:${target}" in
5774 yes:*)
5775 ospace_frag="config/mt-ospace"
5776 ;;
5777 :d30v-*)
5778 ospace_frag="config/mt-d30v"
5779 ;;
5780 :m32r-* | :d10v-* | :fr30-*)
5781 ospace_frag="config/mt-ospace"
5782 ;;
5783 no:* | :*)
5784 ;;
5785 *)
5786 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5787 ;;
5788esac
5789
671aa708
NN
5790# Default to using --with-stabs for certain targets.
5791if test x${with_stabs} = x ; then
5792 case "${target}" in
89a95129 5793 mips*-*-irix[56]*)
671aa708
NN
5794 ;;
5795 mips*-*-* | alpha*-*-osf*)
5796 with_stabs=yes;
5797 extra_host_args="${extra_host_args} --with-stabs"
5798 ;;
5799 esac
5800fi
5801
5802# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5803# them automatically.
5804case "${host}" in
1c710c3c 5805 hppa*64*-*-hpux11*)
671aa708
NN
5806 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5807 ;;
5808esac
5809
671aa708
NN
5810# Some systems (e.g., one of the i386-aix systems the gas testers are
5811# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5812tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5813build_tooldir=${tooldir}
5814
671aa708
NN
5815# Create a .gdbinit file which runs the one in srcdir
5816# and tells GDB to look there for source files.
5817
5818if test -r ${srcdir}/.gdbinit ; then
5819 case ${srcdir} in
5820 .) ;;
5821 *) cat > ./.gdbinit <<EOF
5822# ${NO_EDIT}
5823dir ${srcdir}
5824dir .
5825source ${srcdir}/.gdbinit
5826EOF
5827 ;;
5828 esac
5829fi
5830
671aa708
NN
5831# Make sure that the compiler is able to generate an executable. If it
5832# can't, we are probably in trouble. We don't care whether we can run the
5833# executable--we might be using a cross compiler--we only care whether it
5834# can be created. At this point the main configure script has set CC.
5835we_are_ok=no
5836echo "int main () { return 0; }" > conftest.c
5837${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5838if test $? = 0 ; then
5839 if test -s conftest || test -s conftest.exe ; then
5840 we_are_ok=yes
5841 fi
1c710c3c 5842fi
671aa708
NN
5843case $we_are_ok in
5844 no)
5845 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5846 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5847 rm -f conftest*
5848 exit 1
5849 ;;
5850esac
5851rm -f conftest*
5852
5853# The Solaris /usr/ucb/cc compiler does not appear to work.
5854case "${host}" in
5855 sparc-sun-solaris2*)
5856 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5857 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5858 could_use=
5859 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5860 if test -d /opt/cygnus/bin ; then
5861 if test "$could_use" = "" ; then
5862 could_use="/opt/cygnus/bin"
5863 else
5864 could_use="$could_use or /opt/cygnus/bin"
5865 fi
5866 fi
5867 if test "$could_use" = "" ; then
5868 echo "Warning: compilation may fail because you're using"
5869 echo "/usr/ucb/cc. You should change your PATH or CC "
5870 echo "variable and rerun configure."
5871 else
5872 echo "Warning: compilation may fail because you're using"
5873 echo "/usr/ucb/cc, when you should use the C compiler from"
5874 echo "$could_use. You should change your"
5875 echo "PATH or CC variable and rerun configure."
5876 fi
5877 fi
5878 ;;
5879esac
5880
d89f0ad6 5881# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
5882case "${host}" in
5883 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5884 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 5885 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
5886 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5887esac
5888
d89f0ad6
AL
5889# On systems where the dynamic library environment variable is PATH,
5890# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5891# built executables to PATH.
5892if test "$RPATH_ENVVAR" = PATH; then
5893 GCC_SHLIB_SUBDIR=/shlib
5894else
5895 GCC_SHLIB_SUBDIR=
5896fi
5897
671aa708
NN
5898# Record target_configdirs and the configure arguments for target and
5899# build configuration in Makefile.
5900target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5901build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5902
671aa708
NN
5903# Determine whether gdb needs tk/tcl or not.
5904# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5905# and in that case we want gdb to be built without tk. Ugh!
5906# In fact I believe gdb is the *only* package directly dependent on tk,
5907# so we should be able to put the 'maybe's in unconditionally and
5908# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5909# 100% sure that that's safe though.
e914a571 5910
b4f96efe 5911gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5912case "$enable_gdbtk" in
5913 no)
5914 GDB_TK="" ;;
e914a571
AC
5915 yes)
5916 GDB_TK="${gdb_tk}" ;;
671aa708 5917 *)
e914a571
AC
5918 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5919 # distro. Eventually someone will fix this and move Insight, nee
5920 # gdbtk to a separate directory.
5921 if test -d ${srcdir}/gdb/gdbtk ; then
5922 GDB_TK="${gdb_tk}"
5923 else
5924 GDB_TK=""
5925 fi
5926 ;;
671aa708 5927esac
ef9db8d5
DJ
5928CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5929INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5930
60975492 5931# Strip out unwanted targets.
8b87bb96
NN
5932
5933# While at that, we remove Makefiles if we were started for recursive
5934# configuration, so that the top-level Makefile reconfigures them,
5935# like we used to do when configure itself was recursive.
8b87bb96 5936
60975492
PB
5937# Loop over modules. $extrasub must be used with care, limiting as
5938# much as possible the usage of range addresses. That's because autoconf
5939# splits the sed script to overcome limits in the number of commands,
5940# and relying on carefully-timed sed passes may turn out to be very hard
5941# to maintain later. In this particular case, you just have to be careful
5942# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5943
2aeb72e9 5944# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5945if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5946 enableval="$enable_bootstrap"
5947
f516a7da 5948else
ce521a9c 5949 enable_bootstrap=default
2aeb72e9 5950fi;
f516a7da 5951
ce521a9c
PB
5952# Issue errors and warnings for invalid/strange bootstrap combinations.
5953case "$configdirs" in
5954 *gcc*) have_compiler=yes ;;
5955 *) have_compiler=no ;;
5956esac
5957
5958case "$have_compiler:$host:$target:$enable_bootstrap" in
5959 *:*:*:no) ;;
5960
1ca26cd2 5961 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5962 # and we are in a native configuration.
5963 yes:$build:$build:default)
1ca26cd2 5964 enable_bootstrap=yes ;;
ce521a9c
PB
5965
5966 *:*:*:default)
5967 enable_bootstrap=no ;;
5968
5969 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5970 yes:$build:$build:yes)
ce521a9c
PB
5971 ;;
5972
5973 # Other configurations, but we have a compiler. Assume the user knows
5974 # what he's doing.
2d309510 5975 yes:*:*:yes)
1c710c3c
DJ
5976 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5977echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5978 ;;
5979
5980 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5981 no:*:*:yes)
1c710c3c
DJ
5982 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5983echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5984 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5985
5986 # Fail if wrong command line
5987 *)
1c710c3c
DJ
5988 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5989echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5990 { (exit 1); exit 1; }; }
ce521a9c
PB
5991 ;;
5992esac
5993
5994# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5995case "$enable_bootstrap" in
5996 yes)
5607edfd 5997 bootstrap_suffix=bootstrap ;;
f516a7da 5998 no)
5607edfd 5999 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
6000esac
6001
23f6b2f9 6002for module in ${build_configdirs} ; do
5607edfd
PB
6003 if test -z "${no_recursion}" \
6004 && test -f ${build_subdir}/${module}/Makefile; then
6005 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6006 rm -f ${build_subdir}/${module}/Makefile
6007 fi
6008 extrasub="$extrasub
6009/^@if build-$module\$/d
6010/^@endif build-$module\$/d
6011/^@if build-$module-$bootstrap_suffix\$/d
6012/^@endif build-$module-$bootstrap_suffix\$/d"
6013done
6014for module in ${configdirs} ; do
a6fbc1e2 6015 if test -z "${no_recursion}"; then
f063a9ed 6016 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6017 if test -f ${file}; then
6018 echo 1>&2 "*** removing ${file} to force reconfigure"
6019 rm -f ${file}
6020 fi
6021 done
5607edfd
PB
6022 fi
6023 extrasub="$extrasub
6024/^@if $module\$/d
6025/^@endif $module\$/d
6026/^@if $module-$bootstrap_suffix\$/d
6027/^@endif $module-$bootstrap_suffix\$/d"
6028done
6029for module in ${target_configdirs} ; do
6030 if test -z "${no_recursion}" \
6031 && test -f ${target_subdir}/${module}/Makefile; then
6032 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6033 rm -f ${target_subdir}/${module}/Makefile
6034 fi
6035 extrasub="$extrasub
6036/^@if target-$module\$/d
6037/^@endif target-$module\$/d
6038/^@if target-$module-$bootstrap_suffix\$/d
6039/^@endif target-$module-$bootstrap_suffix\$/d"
6040done
6041
60975492
PB
6042extrasub="$extrasub
6043/^@if /,/^@endif /d"
671aa708
NN
6044
6045# Create the serialization dependencies. This uses a temporary file.
6046
2aeb72e9 6047# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 6048if test "${enable_serial_configure+set}" = set; then
2aeb72e9 6049 enableval="$enable_serial_configure"
ade82b16 6050
2aeb72e9 6051fi;
ade82b16 6052
bf1d3e81
NN
6053case ${enable_serial_configure} in
6054 yes)
6055 enable_serial_build_configure=yes
6056 enable_serial_host_configure=yes
6057 enable_serial_target_configure=yes
6058 ;;
6059esac
6060
671aa708
NN
6061# These force 'configure's to be done one at a time, to avoid problems
6062# with contention over a shared config.cache.
6063rm -f serdep.tmp
ade82b16 6064echo '# serdep.tmp' > serdep.tmp
671aa708 6065olditem=
bf1d3e81 6066test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6067for item in ${build_configdirs} ; do
6068 case ${olditem} in
6069 "") ;;
ade82b16 6070 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6071 esac
6072 olditem=${item}
6073done
6074olditem=
bf1d3e81 6075test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6076for item in ${configdirs} ; do
6077 case ${olditem} in
6078 "") ;;
ade82b16 6079 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6080 esac
6081 olditem=${item}
6082done
6083olditem=
bf1d3e81 6084test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6085for item in ${target_configdirs} ; do
6086 case ${olditem} in
6087 "") ;;
ade82b16 6088 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6089 esac
6090 olditem=${item}
6091done
6092serialization_dependencies=serdep.tmp
6093
6094
ade82b16 6095# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6096# target, nonopt, and variable assignments. These are the ones we
6097# might not want to pass down to subconfigures. Also strip
6098# program-prefix, program-suffix, and program-transform-name, so that
6099# we can pass down a consistent program-transform-name.
6100baseargs=
6101keep_next=no
6102skip_next=no
6103eval "set -- $ac_configure_args"
44bfc3ac
DJ
6104for ac_arg
6105do
1c710c3c
DJ
6106 if test X"$skip_next" = X"yes"; then
6107 skip_next=no
6108 continue
6109 fi
6110 if test X"$keep_next" = X"yes"; then
6111 case $ac_arg in
6112 *\'*)
6113 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6114 esac
6115 baseargs="$baseargs '$ac_arg'"
6116 keep_next=no
6117 continue
6118 fi
6119
6120 # Handle separated arguments. Based on the logic generated by
6121 # autoconf 2.59.
6122 case $ac_arg in
6123 *=* | --config-cache | -C | -disable-* | --disable-* \
6124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6126 | -with-* | --with-* | -without-* | --without-* | --x)
6127 separate_arg=no
6128 ;;
6129 -*)
6130 separate_arg=yes
6131 ;;
6132 *)
6133 separate_arg=no
6134 ;;
6135 esac
6136
6137 case "$ac_arg" in
6138 --no*)
6139 continue
6140 ;;
6141 --c* | \
6142 --sr* | \
6143 --ho* | \
6144 --bu* | \
6145 --t* | \
6146 --program-* | \
6147 -cache_file* | \
6148 -srcdir* | \
6149 -host* | \
6150 -build* | \
6151 -target* | \
6152 -program-prefix* | \
6153 -program-suffix* | \
6154 -program-transform-name* )
6155 skip_next=$separate_arg
6156 continue
6157 ;;
6158 -*)
6159 # An option. Add it.
6160 case $ac_arg in
6161 *\'*)
6162 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6163 esac
6164 baseargs="$baseargs '$ac_arg'"
6165 keep_next=$separate_arg
6166 ;;
6167 *)
6168 # Either a variable assignment, or a nonopt (triplet). Don't
6169 # pass it down; let the Makefile handle this.
6170 continue
6171 ;;
6172 esac
6173done
6174# Remove the initial space we just introduced and, as these will be
6175# expanded by make, quote '$'.
6176baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6177
43bb47c2
DJ
6178# Add in --program-transform-name, after --program-prefix and
6179# --program-suffix have been applied to it. Autoconf has already
6180# doubled dollar signs and backslashes in program_transform_name; we want
6181# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6182# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6183# Also, because we want to override the logic in subdir configure scripts to
6184# choose program_transform_name, replace any s,x,x, with s,y,y,.
6185sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6186${program_transform_name}
6187EOF_SED
6188gcc_transform_name=`cat conftestsed.out`
6189rm -f conftestsed.out
6190baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6191if test "$silent" = yes; then
6192 baseargs="$baseargs --silent"
6193fi
43bb47c2 6194
671aa708
NN
6195# For the build-side libraries, we just need to pretend we're native,
6196# and not use the same cache file. Multilibs are neither needed nor
6197# desired.
e69bf64b 6198build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6199
6200# For host modules, accept cache file option, or specification as blank.
6201case "${cache_file}" in
6202"") # empty
6203 cache_file_option="" ;;
6204/* | [A-Za-z]:[\\/]* ) # absolute path
6205 cache_file_option="--cache-file=${cache_file}" ;;
6206*) # relative path
6207 cache_file_option="--cache-file=../${cache_file}" ;;
6208esac
6209
09438bde
NN
6210# Host dirs don't like to share a cache file either, horribly enough.
6211# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6212host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6213
6214target_configargs=${baseargs}
6215
6216# Passing a --with-cross-host argument lets the target libraries know
6217# whether they are being built with a cross-compiler or being built
6218# native. However, it would be better to use other mechanisms to make the
6219# sorts of decisions they want to make on this basis. Please consider
6220# this option to be deprecated. FIXME.
6221if test x${is_cross_compiler} = xyes ; then
1c710c3c 6222 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6223fi
6224
6225# Default to --enable-multilib.
6226if test x${enable_multilib} = x ; then
6227 target_configargs="--enable-multilib ${target_configargs}"
6228fi
6229
6230# Pass --with-newlib if appropriate. Note that target_configdirs has
6231# changed from the earlier setting of with_newlib.
6232if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6233 target_configargs="--with-newlib ${target_configargs}"
6234fi
6235
6b9eb62c
NN
6236# Different target subdirs use different values of certain variables
6237# (notably CXX). Worse, multilibs use *lots* of different values.
6238# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6239# it doesn't automatically accept command-line overrides of them.
6240# This means it's not safe for target subdirs to share a cache file,
6241# which is disgusting, but there you have it. Hopefully this can be
6242# fixed in future. It's still worthwhile to use a cache file for each
6243# directory. I think.
6244
bebcd931
MS
6245# Pass the appropriate --build, --host, --target and --cache-file arguments.
6246# We need to pass --target, as newer autoconf's requires consistency
6247# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6248target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6249
671aa708
NN
6250FLAGS_FOR_TARGET=
6251case " $target_configdirs " in
6252 *" newlib "*)
6253 case " $target_configargs " in
6254 *" --with-newlib "*)
6255 case "$target" in
6256 *-cygwin*)
aa8f1f57 6257 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
6258 esac
6259
6260 # If we're not building GCC, don't discard standard headers.
6261 if test -d ${srcdir}/gcc; then
6262 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6263
6264 if test "${build}" != "${host}"; then
6265 # On Canadian crosses, CC_FOR_TARGET will have already been set
6266 # by `configure', so we won't have an opportunity to add -Bgcc/
6267 # to it. This is right: we don't want to search that directory
6268 # for binaries, but we want the header files in there, so add
6269 # them explicitly.
215c351a 6270 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6271
6272 # Someone might think of using the pre-installed headers on
6273 # Canadian crosses, in case the installed compiler is not fully
6274 # compatible with the compiler being built. In this case, it
6275 # would be better to flag an error than risking having
6276 # incompatible object files being constructed. We can't
6277 # guarantee that an error will be flagged, but let's hope the
6278 # compiler will do it, when presented with incompatible header
6279 # files.
6280 fi
6281 fi
6282
6283 case "${target}-${is_cross_compiler}" in
f2a0e225 6284 i[3456789]86-*-linux*-no)
671aa708
NN
6285 # Here host == target, so we don't need to build gcc,
6286 # so we don't want to discard standard headers.
6287 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6288 ;;
6289 *)
6290 # If we're building newlib, use its generic headers last, but search
6291 # for any libc-related directories first (so make it the last -B
6292 # switch).
6293 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
6294
6295 # If we're building libgloss, find the startup file, simulator library
6296 # and linker script.
6297 case " $target_configdirs " in
6298 *" libgloss "*)
6299 # Look for startup file, simulator library and maybe linker script.
6300 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6301 # Look for libnosys.a in case the target needs it.
6302 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6303 # Most targets have the linker script in the source directory.
6304 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6305 ;;
6306 esac
671aa708
NN
6307 ;;
6308 esac
6309 ;;
6310 esac
6311 ;;
6312esac
b91f0a41
CV
6313case "$target" in
6314*-mingw*)
6315 # Can't be handled as Cygwin above since Mingw does not use newlib.
6316 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' ;;
6317esac
671aa708 6318
6691a79e
ME
6319# Allow the user to override the flags for
6320# our build compiler if desired.
f019adc1
MF
6321if test x"${build}" = x"${host}" ; then
6322 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6323 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6324 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6325fi
6691a79e 6326
671aa708
NN
6327# On Canadian crosses, we'll be searching the right directories for
6328# the previously-installed cross compiler, so don't bother to add
6329# flags for directories within the install tree of the compiler
6330# being built; programs in there won't even run.
6331if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6332 # Search for pre-installed headers if nothing else fits.
9124bc53 6333 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
6334fi
6335
6336if test "x${use_gnu_ld}" = x &&
6337 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6338 # Arrange for us to find uninstalled linker scripts.
215c351a 6339 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6340fi
6341
e88a2c09
DD
6342# Search for other target-specific linker scripts and such.
6343case "${target}" in
3e19841a
PB
6344 mep*)
6345 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6346 ;;
e88a2c09
DD
6347esac
6348
671aa708 6349# Makefile fragments.
7b61653a
PE
6350for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6351do
6352 eval fragval=\$$frag
6353 if test $fragval != /dev/null; then
6354 eval $frag=${srcdir}/$fragval
6355 fi
6356done
671aa708
NN
6357
6358
6359
6360
6361
6362# Miscellanea: directories, flags, etc.
6363
6364
6365
6366
6367
6368
6369
d89f0ad6 6370
23f6b2f9 6371# Build module lists & subconfigure args.
671aa708
NN
6372
6373
6374
2abefe3d
PB
6375# Host module lists & subconfigure args.
6376
6377
6378
6379# Target module lists & subconfigure args.
6380
6381
6382
6383# Build tools.
6384
6385
6386
0999159b
PB
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
2abefe3d
PB
6401# Generate default definitions for YACC, M4, LEX and other programs that run
6402# on the build machine. These are used if the Makefile can't locate these
6403# programs in objdir.
6404MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6405
6406for ac_prog in 'bison -y' byacc yacc
6407do
1c710c3c 6408 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6409set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6410echo "$as_me:$LINENO: checking for $ac_word" >&5
6411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6412if test "${ac_cv_prog_YACC+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6414else
6415 if test -n "$YACC"; then
6416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6417else
1c710c3c
DJ
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6425 ac_cv_prog_YACC="$ac_prog"
6426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429done
6430done
6431
2abefe3d
PB
6432fi
6433fi
1c710c3c 6434YACC=$ac_cv_prog_YACC
2abefe3d 6435if test -n "$YACC"; then
2aeb72e9
DD
6436 echo "$as_me:$LINENO: result: $YACC" >&5
6437echo "${ECHO_T}$YACC" >&6
2abefe3d 6438else
2aeb72e9
DD
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
2abefe3d
PB
6441fi
6442
1c710c3c 6443 test -n "$YACC" && break
2abefe3d
PB
6444done
6445test -n "$YACC" || YACC="$MISSING bison -y"
6446
6447case " $build_configdirs " in
6448 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6449 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6450esac
6451
6452for ac_prog in bison
6453do
1c710c3c 6454 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6455set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6456echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6458if test "${ac_cv_prog_BISON+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6460else
6461 if test -n "$BISON"; then
6462 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6463else
1c710c3c
DJ
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6471 ac_cv_prog_BISON="$ac_prog"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475done
6476done
6477
2abefe3d
PB
6478fi
6479fi
1c710c3c 6480BISON=$ac_cv_prog_BISON
2abefe3d 6481if test -n "$BISON"; then
2aeb72e9
DD
6482 echo "$as_me:$LINENO: result: $BISON" >&5
6483echo "${ECHO_T}$BISON" >&6
2abefe3d 6484else
2aeb72e9
DD
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
2abefe3d
PB
6487fi
6488
1c710c3c 6489 test -n "$BISON" && break
2abefe3d
PB
6490done
6491test -n "$BISON" || BISON="$MISSING bison"
6492
6493case " $build_configdirs " in
6494 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6495esac
6496
6497for ac_prog in gm4 gnum4 m4
6498do
1c710c3c 6499 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6500set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6501echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6503if test "${ac_cv_prog_M4+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6505else
6506 if test -n "$M4"; then
6507 ac_cv_prog_M4="$M4" # Let the user override the test.
6508else
1c710c3c
DJ
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6516 ac_cv_prog_M4="$ac_prog"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521done
6522
2abefe3d
PB
6523fi
6524fi
1c710c3c 6525M4=$ac_cv_prog_M4
2abefe3d 6526if test -n "$M4"; then
2aeb72e9
DD
6527 echo "$as_me:$LINENO: result: $M4" >&5
6528echo "${ECHO_T}$M4" >&6
2abefe3d 6529else
2aeb72e9
DD
6530 echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6
2abefe3d
PB
6532fi
6533
1c710c3c 6534 test -n "$M4" && break
2abefe3d
PB
6535done
6536test -n "$M4" || M4="$MISSING m4"
6537
6538case " $build_configdirs " in
6539 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6540esac
6541
6542for ac_prog in flex lex
6543do
1c710c3c 6544 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6545set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6546echo "$as_me:$LINENO: checking for $ac_word" >&5
6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6548if test "${ac_cv_prog_LEX+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6550else
6551 if test -n "$LEX"; then
6552 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6553else
1c710c3c
DJ
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6561 ac_cv_prog_LEX="$ac_prog"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565done
6566done
6567
2abefe3d
PB
6568fi
6569fi
1c710c3c 6570LEX=$ac_cv_prog_LEX
2abefe3d 6571if test -n "$LEX"; then
2aeb72e9
DD
6572 echo "$as_me:$LINENO: result: $LEX" >&5
6573echo "${ECHO_T}$LEX" >&6
2abefe3d 6574else
2aeb72e9
DD
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
2abefe3d
PB
6577fi
6578
1c710c3c 6579 test -n "$LEX" && break
2abefe3d
PB
6580done
6581test -n "$LEX" || LEX="$MISSING flex"
6582
6583case " $build_configdirs " in
6584 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6585 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6586esac
6587
6588for ac_prog in flex
6589do
1c710c3c 6590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6591set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6592echo "$as_me:$LINENO: checking for $ac_word" >&5
6593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6594if test "${ac_cv_prog_FLEX+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6596else
6597 if test -n "$FLEX"; then
6598 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6599else
1c710c3c
DJ
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
1c710c3c
DJ
6607 ac_cv_prog_FLEX="$ac_prog"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612done
6613
2abefe3d
PB
6614fi
6615fi
1c710c3c 6616FLEX=$ac_cv_prog_FLEX
2abefe3d 6617if test -n "$FLEX"; then
2aeb72e9
DD
6618 echo "$as_me:$LINENO: result: $FLEX" >&5
6619echo "${ECHO_T}$FLEX" >&6
2abefe3d 6620else
2aeb72e9
DD
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
2abefe3d
PB
6623fi
6624
1c710c3c 6625 test -n "$FLEX" && break
2abefe3d
PB
6626done
6627test -n "$FLEX" || FLEX="$MISSING flex"
6628
6629case " $build_configdirs " in
6630 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6631esac
6632
6633for ac_prog in makeinfo
6634do
1c710c3c 6635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6636set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6637echo "$as_me:$LINENO: checking for $ac_word" >&5
6638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6639if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6641else
6642 if test -n "$MAKEINFO"; then
6643 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6644else
1c710c3c
DJ
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6652 ac_cv_prog_MAKEINFO="$ac_prog"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656done
6657done
6658
2abefe3d
PB
6659fi
6660fi
1c710c3c 6661MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6662if test -n "$MAKEINFO"; then
2aeb72e9
DD
6663 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6664echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6665else
2aeb72e9
DD
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
2abefe3d
PB
6668fi
6669
1c710c3c 6670 test -n "$MAKEINFO" && break
2abefe3d
PB
6671done
6672test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6673
6674case " $build_configdirs " in
6675 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6676 *)
6677
d18ff35a 6678 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
6679 # higher, else we use the "missing" dummy.
6680 if ${MAKEINFO} --version \
d18ff35a 6681 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6682 :
6683 else
6684 MAKEINFO="$MISSING makeinfo"
6685 fi
6686 ;;
6687
6688esac
671aa708 6689
2abefe3d 6690# FIXME: expect and dejagnu may become build tools?
671aa708 6691
2abefe3d
PB
6692for ac_prog in expect
6693do
1c710c3c 6694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6695set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6696echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6698if test "${ac_cv_prog_EXPECT+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6700else
6701 if test -n "$EXPECT"; then
6702 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6703else
1c710c3c
DJ
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6711 ac_cv_prog_EXPECT="$ac_prog"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716done
6717
2abefe3d
PB
6718fi
6719fi
1c710c3c 6720EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6721if test -n "$EXPECT"; then
2aeb72e9
DD
6722 echo "$as_me:$LINENO: result: $EXPECT" >&5
6723echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6724else
2aeb72e9
DD
6725 echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6
2abefe3d 6727fi
671aa708 6728
1c710c3c 6729 test -n "$EXPECT" && break
2abefe3d
PB
6730done
6731test -n "$EXPECT" || EXPECT="expect"
671aa708 6732
2abefe3d
PB
6733case " $configdirs " in
6734 *" expect "*)
6735 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6736 ;;
6737esac
671aa708 6738
2abefe3d
PB
6739for ac_prog in runtest
6740do
1c710c3c 6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6742set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6743echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6745if test "${ac_cv_prog_RUNTEST+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6747else
6748 if test -n "$RUNTEST"; then
6749 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6750else
1c710c3c
DJ
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6758 ac_cv_prog_RUNTEST="$ac_prog"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763done
6764
2abefe3d
PB
6765fi
6766fi
1c710c3c 6767RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6768if test -n "$RUNTEST"; then
2aeb72e9
DD
6769 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6770echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6771else
2aeb72e9
DD
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
2abefe3d 6774fi
671aa708 6775
1c710c3c 6776 test -n "$RUNTEST" && break
2abefe3d
PB
6777done
6778test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6779
2abefe3d
PB
6780case " $configdirs " in
6781 *" dejagnu "*)
c394e891 6782 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6783 ;;
6784esac
671aa708
NN
6785
6786
671aa708 6787# Host tools.
ca9f4b81
AO
6788ncn_tool_prefix=
6789test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6790ncn_target_tool_prefix=
6791test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6792
278a7a38
AO
6793
6794
6795if test -n "$AR"; then
6796 ac_cv_prog_AR=$AR
6797elif test -n "$ac_cv_prog_AR"; then
6798 AR=$ac_cv_prog_AR
6799fi
6800
6801if test -n "$ac_cv_prog_AR"; then
6802 for ncn_progname in ar; do
6803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6804set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6805echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6807if test "${ac_cv_prog_AR+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810 if test -n "$AR"; then
6811 ac_cv_prog_AR="$AR" # Let the user override the test.
6812else
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6820 ac_cv_prog_AR="${ncn_progname}"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824done
6825done
6826
6827fi
6828fi
6829AR=$ac_cv_prog_AR
6830if test -n "$AR"; then
2aeb72e9
DD
6831 echo "$as_me:$LINENO: result: $AR" >&5
6832echo "${ECHO_T}$AR" >&6
278a7a38 6833else
2aeb72e9
DD
6834 echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6
278a7a38
AO
6836fi
6837
6838 done
6839fi
6840
6841for ncn_progname in ar; do
2693c0b0
PB
6842 if test -n "$ncn_tool_prefix"; then
6843 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6844set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6845echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6847if test "${ac_cv_prog_AR+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6849else
6850 if test -n "$AR"; then
6851 ac_cv_prog_AR="$AR" # Let the user override the test.
6852else
1c710c3c
DJ
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6860 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866
ca9f4b81
AO
6867fi
6868fi
1c710c3c 6869AR=$ac_cv_prog_AR
ca9f4b81 6870if test -n "$AR"; then
2aeb72e9
DD
6871 echo "$as_me:$LINENO: result: $AR" >&5
6872echo "${ECHO_T}$AR" >&6
ca9f4b81 6873else
2aeb72e9
DD
6874 echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6
ca9f4b81
AO
6876fi
6877
2693c0b0
PB
6878 fi
6879 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6881set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6882echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6884if test "${ac_cv_prog_AR+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6886else
2693c0b0 6887 if test -n "$AR"; then
af71363e
AS
6888 ac_cv_prog_AR="$AR" # Let the user override the test.
6889else
1c710c3c
DJ
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6897 ac_cv_prog_AR="${ncn_progname}"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901done
6902done
6903
ca9f4b81
AO
6904fi
6905fi
1c710c3c 6906AR=$ac_cv_prog_AR
2693c0b0 6907if test -n "$AR"; then
2aeb72e9
DD
6908 echo "$as_me:$LINENO: result: $AR" >&5
6909echo "${ECHO_T}$AR" >&6
ca9f4b81 6910else
2aeb72e9
DD
6911 echo "$as_me:$LINENO: result: no" >&5
6912echo "${ECHO_T}no" >&6
ca9f4b81 6913fi
1c710c3c 6914
2693c0b0
PB
6915 fi
6916 test -n "$ac_cv_prog_AR" && break
6917done
6918
6919if test -z "$ac_cv_prog_AR" ; then
6920 set dummy ar
6921 if test $build = $host ; then
6922 AR="$2"
ca9f4b81 6923 else
2693c0b0 6924 AR="${ncn_tool_prefix}$2"
ca9f4b81 6925 fi
ca9f4b81
AO
6926fi
6927
278a7a38
AO
6928
6929
6930if test -n "$AS"; then
6931 ac_cv_prog_AS=$AS
6932elif test -n "$ac_cv_prog_AS"; then
6933 AS=$ac_cv_prog_AS
6934fi
6935
6936if test -n "$ac_cv_prog_AS"; then
6937 for ncn_progname in as; do
6938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6939set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6940echo "$as_me:$LINENO: checking for $ac_word" >&5
6941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6942if test "${ac_cv_prog_AS+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
6945 if test -n "$AS"; then
6946 ac_cv_prog_AS="$AS" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6955 ac_cv_prog_AS="${ncn_progname}"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960done
6961
6962fi
6963fi
6964AS=$ac_cv_prog_AS
6965if test -n "$AS"; then
2aeb72e9
DD
6966 echo "$as_me:$LINENO: result: $AS" >&5
6967echo "${ECHO_T}$AS" >&6
278a7a38 6968else
2aeb72e9
DD
6969 echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6
278a7a38
AO
6971fi
6972
6973 done
6974fi
6975
6976for ncn_progname in as; do
2693c0b0
PB
6977 if test -n "$ncn_tool_prefix"; then
6978 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6979set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6980echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6982if test "${ac_cv_prog_AS+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6984else
6985 if test -n "$AS"; then
6986 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6987else
1c710c3c
DJ
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6995 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001
ca9f4b81
AO
7002fi
7003fi
1c710c3c 7004AS=$ac_cv_prog_AS
ca9f4b81 7005if test -n "$AS"; then
2aeb72e9
DD
7006 echo "$as_me:$LINENO: result: $AS" >&5
7007echo "${ECHO_T}$AS" >&6
ca9f4b81 7008else
2aeb72e9
DD
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
ca9f4b81
AO
7011fi
7012
2693c0b0
PB
7013 fi
7014 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7016set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7017echo "$as_me:$LINENO: checking for $ac_word" >&5
7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7019if test "${ac_cv_prog_AS+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7021else
2693c0b0
PB
7022 if test -n "$AS"; then
7023 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 7024else
1c710c3c
DJ
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7032 ac_cv_prog_AS="${ncn_progname}"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037done
7038
ca9f4b81
AO
7039fi
7040fi
1c710c3c 7041AS=$ac_cv_prog_AS
2693c0b0 7042if test -n "$AS"; then
2aeb72e9
DD
7043 echo "$as_me:$LINENO: result: $AS" >&5
7044echo "${ECHO_T}$AS" >&6
ca9f4b81 7045else
2aeb72e9
DD
7046 echo "$as_me:$LINENO: result: no" >&5
7047echo "${ECHO_T}no" >&6
ca9f4b81 7048fi
1c710c3c 7049
2693c0b0
PB
7050 fi
7051 test -n "$ac_cv_prog_AS" && break
7052done
7053
7054if test -z "$ac_cv_prog_AS" ; then
7055 set dummy as
7056 if test $build = $host ; then
7057 AS="$2"
ca9f4b81 7058 else
2693c0b0 7059 AS="${ncn_tool_prefix}$2"
ca9f4b81 7060 fi
ca9f4b81
AO
7061fi
7062
278a7a38
AO
7063
7064
7065if test -n "$DLLTOOL"; then
7066 ac_cv_prog_DLLTOOL=$DLLTOOL
7067elif test -n "$ac_cv_prog_DLLTOOL"; then
7068 DLLTOOL=$ac_cv_prog_DLLTOOL
7069fi
7070
7071if test -n "$ac_cv_prog_DLLTOOL"; then
7072 for ncn_progname in dlltool; do
7073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7074set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7075echo "$as_me:$LINENO: checking for $ac_word" >&5
7076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7077if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080 if test -n "$DLLTOOL"; then
7081 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7090 ac_cv_prog_DLLTOOL="${ncn_progname}"
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094done
7095done
7096
7097fi
7098fi
7099DLLTOOL=$ac_cv_prog_DLLTOOL
7100if test -n "$DLLTOOL"; then
2aeb72e9
DD
7101 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7102echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 7103else
2aeb72e9
DD
7104 echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6
278a7a38
AO
7106fi
7107
7108 done
7109fi
7110
7111for ncn_progname in dlltool; do
2693c0b0
PB
7112 if test -n "$ncn_tool_prefix"; then
7113 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7114set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7115echo "$as_me:$LINENO: checking for $ac_word" >&5
7116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7117if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7119else
7120 if test -n "$DLLTOOL"; then
7121 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7122else
1c710c3c
DJ
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7130 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134done
7135done
7136
ca9f4b81
AO
7137fi
7138fi
1c710c3c 7139DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7140if test -n "$DLLTOOL"; then
2aeb72e9
DD
7141 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7142echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7143else
2aeb72e9
DD
7144 echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6
ca9f4b81
AO
7146fi
7147
2693c0b0
PB
7148 fi
7149 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7151set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7152echo "$as_me:$LINENO: checking for $ac_word" >&5
7153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7154if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7156else
2693c0b0
PB
7157 if test -n "$DLLTOOL"; then
7158 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7159else
1c710c3c
DJ
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7167 ac_cv_prog_DLLTOOL="${ncn_progname}"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171done
7172done
7173
ca9f4b81
AO
7174fi
7175fi
1c710c3c 7176DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7177if test -n "$DLLTOOL"; then
2aeb72e9
DD
7178 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7179echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7180else
2aeb72e9
DD
7181 echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6
ca9f4b81 7183fi
1c710c3c 7184
2693c0b0
PB
7185 fi
7186 test -n "$ac_cv_prog_DLLTOOL" && break
7187done
7188
7189if test -z "$ac_cv_prog_DLLTOOL" ; then
7190 set dummy dlltool
7191 if test $build = $host ; then
7192 DLLTOOL="$2"
ca9f4b81 7193 else
2693c0b0 7194 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7195 fi
ca9f4b81
AO
7196fi
7197
278a7a38
AO
7198
7199
7200if test -n "$LD"; then
7201 ac_cv_prog_LD=$LD
7202elif test -n "$ac_cv_prog_LD"; then
7203 LD=$ac_cv_prog_LD
7204fi
7205
7206if test -n "$ac_cv_prog_LD"; then
7207 for ncn_progname in ld; do
7208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7209set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7210echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7212if test "${ac_cv_prog_LD+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215 if test -n "$LD"; then
7216 ac_cv_prog_LD="$LD" # Let the user override the test.
7217else
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7225 ac_cv_prog_LD="${ncn_progname}"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231
7232fi
7233fi
7234LD=$ac_cv_prog_LD
7235if test -n "$LD"; then
2aeb72e9
DD
7236 echo "$as_me:$LINENO: result: $LD" >&5
7237echo "${ECHO_T}$LD" >&6
278a7a38 7238else
2aeb72e9
DD
7239 echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6
278a7a38
AO
7241fi
7242
7243 done
7244fi
7245
7246for ncn_progname in ld; do
2693c0b0
PB
7247 if test -n "$ncn_tool_prefix"; then
7248 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7249set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7250echo "$as_me:$LINENO: checking for $ac_word" >&5
7251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7252if test "${ac_cv_prog_LD+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7254else
7255 if test -n "$LD"; then
7256 ac_cv_prog_LD="$LD" # Let the user override the test.
7257else
1c710c3c
DJ
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7265 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269done
7270done
7271
ca9f4b81
AO
7272fi
7273fi
1c710c3c 7274LD=$ac_cv_prog_LD
ca9f4b81 7275if test -n "$LD"; then
2aeb72e9
DD
7276 echo "$as_me:$LINENO: result: $LD" >&5
7277echo "${ECHO_T}$LD" >&6
ca9f4b81 7278else
2aeb72e9
DD
7279 echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6
ca9f4b81
AO
7281fi
7282
2693c0b0
PB
7283 fi
7284 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7286set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7287echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7289if test "${ac_cv_prog_LD+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7291else
2693c0b0
PB
7292 if test -n "$LD"; then
7293 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7294else
1c710c3c
DJ
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7302 ac_cv_prog_LD="${ncn_progname}"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306done
7307done
7308
ca9f4b81
AO
7309fi
7310fi
1c710c3c 7311LD=$ac_cv_prog_LD
2693c0b0 7312if test -n "$LD"; then
2aeb72e9
DD
7313 echo "$as_me:$LINENO: result: $LD" >&5
7314echo "${ECHO_T}$LD" >&6
ca9f4b81 7315else
2aeb72e9
DD
7316 echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6
ca9f4b81 7318fi
1c710c3c 7319
2693c0b0
PB
7320 fi
7321 test -n "$ac_cv_prog_LD" && break
7322done
7323
7324if test -z "$ac_cv_prog_LD" ; then
7325 set dummy ld
7326 if test $build = $host ; then
7327 LD="$2"
ca9f4b81 7328 else
2693c0b0 7329 LD="${ncn_tool_prefix}$2"
ca9f4b81 7330 fi
ca9f4b81
AO
7331fi
7332
278a7a38
AO
7333
7334
7335if test -n "$LIPO"; then
7336 ac_cv_prog_LIPO=$LIPO
7337elif test -n "$ac_cv_prog_LIPO"; then
7338 LIPO=$ac_cv_prog_LIPO
7339fi
7340
7341if test -n "$ac_cv_prog_LIPO"; then
7342 for ncn_progname in lipo; do
7343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7344set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7345echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7347if test "${ac_cv_prog_LIPO+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 if test -n "$LIPO"; then
7351 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7360 ac_cv_prog_LIPO="${ncn_progname}"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366
7367fi
7368fi
7369LIPO=$ac_cv_prog_LIPO
7370if test -n "$LIPO"; then
2aeb72e9
DD
7371 echo "$as_me:$LINENO: result: $LIPO" >&5
7372echo "${ECHO_T}$LIPO" >&6
278a7a38 7373else
2aeb72e9
DD
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
278a7a38
AO
7376fi
7377
7378 done
7379fi
7380
7381for ncn_progname in lipo; do
2abefe3d
PB
7382 if test -n "$ncn_tool_prefix"; then
7383 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7384set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7385echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7387if test "${ac_cv_prog_LIPO+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7389else
7390 if test -n "$LIPO"; then
7391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7392else
1c710c3c
DJ
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7400 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405done
7406
2abefe3d
PB
7407fi
7408fi
1c710c3c 7409LIPO=$ac_cv_prog_LIPO
2abefe3d 7410if test -n "$LIPO"; then
2aeb72e9
DD
7411 echo "$as_me:$LINENO: result: $LIPO" >&5
7412echo "${ECHO_T}$LIPO" >&6
2abefe3d 7413else
2aeb72e9
DD
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
2abefe3d
PB
7416fi
7417
7418 fi
7419 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7421set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7422echo "$as_me:$LINENO: checking for $ac_word" >&5
7423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7424if test "${ac_cv_prog_LIPO+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7426else
7427 if test -n "$LIPO"; then
7428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7429else
1c710c3c
DJ
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7437 ac_cv_prog_LIPO="${ncn_progname}"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442done
7443
2abefe3d
PB
7444fi
7445fi
1c710c3c 7446LIPO=$ac_cv_prog_LIPO
2abefe3d 7447if test -n "$LIPO"; then
2aeb72e9
DD
7448 echo "$as_me:$LINENO: result: $LIPO" >&5
7449echo "${ECHO_T}$LIPO" >&6
2abefe3d 7450else
2aeb72e9
DD
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
2abefe3d 7453fi
1c710c3c 7454
2abefe3d
PB
7455 fi
7456 test -n "$ac_cv_prog_LIPO" && break
7457done
7458
7459if test -z "$ac_cv_prog_LIPO" ; then
7460 set dummy lipo
7461 if test $build = $host ; then
7462 LIPO="$2"
7463 else
7464 LIPO="${ncn_tool_prefix}$2"
7465 fi
7466fi
7467
278a7a38
AO
7468
7469
7470if test -n "$NM"; then
7471 ac_cv_prog_NM=$NM
7472elif test -n "$ac_cv_prog_NM"; then
7473 NM=$ac_cv_prog_NM
7474fi
7475
7476if test -n "$ac_cv_prog_NM"; then
7477 for ncn_progname in nm; do
7478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7479set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7480echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7482if test "${ac_cv_prog_NM+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7484else
7485 if test -n "$NM"; then
7486 ac_cv_prog_NM="$NM" # Let the user override the test.
7487else
1c710c3c
DJ
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7495 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499done
7500done
7501
ca9f4b81
AO
7502fi
7503fi
1c710c3c 7504NM=$ac_cv_prog_NM
ca9f4b81 7505if test -n "$NM"; then
2aeb72e9
DD
7506 echo "$as_me:$LINENO: result: $NM" >&5
7507echo "${ECHO_T}$NM" >&6
ca9f4b81 7508else
2aeb72e9
DD
7509 echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
ca9f4b81
AO
7511fi
7512
278a7a38
AO
7513 done
7514fi
7515
7516for ncn_progname in nm; do
7517 if test -n "$ncn_tool_prefix"; then
7518 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7519set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7520echo "$as_me:$LINENO: checking for $ac_word" >&5
7521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7522if test "${ac_cv_prog_NM+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7524else
2693c0b0
PB
7525 if test -n "$NM"; then
7526 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7527else
1c710c3c
DJ
7528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7535 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539done
7540done
7541
ca9f4b81
AO
7542fi
7543fi
1c710c3c 7544NM=$ac_cv_prog_NM
2693c0b0 7545if test -n "$NM"; then
2aeb72e9
DD
7546 echo "$as_me:$LINENO: result: $NM" >&5
7547echo "${ECHO_T}$NM" >&6
ca9f4b81 7548else
2aeb72e9
DD
7549 echo "$as_me:$LINENO: result: no" >&5
7550echo "${ECHO_T}no" >&6
ca9f4b81 7551fi
1c710c3c 7552
2693c0b0 7553 fi
278a7a38
AO
7554 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7556set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7557echo "$as_me:$LINENO: checking for $ac_word" >&5
7558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7559if test "${ac_cv_prog_NM+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561else
7562 if test -n "$NM"; then
7563 ac_cv_prog_NM="$NM" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7572 ac_cv_prog_NM="${ncn_progname}"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576done
7577done
7578
7579fi
7580fi
7581NM=$ac_cv_prog_NM
7582if test -n "$NM"; then
2aeb72e9
DD
7583 echo "$as_me:$LINENO: result: $NM" >&5
7584echo "${ECHO_T}$NM" >&6
278a7a38 7585else
2aeb72e9
DD
7586 echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6
278a7a38
AO
7588fi
7589
7590 fi
7591 test -n "$ac_cv_prog_NM" && break
7592done
7593
7594if test -z "$ac_cv_prog_NM" ; then
7595 set dummy nm
7596 if test $build = $host ; then
7597 NM="$2"
7598 else
7599 NM="${ncn_tool_prefix}$2"
7600 fi
7601fi
7602
7603
7604
7605if test -n "$RANLIB"; then
7606 ac_cv_prog_RANLIB=$RANLIB
7607elif test -n "$ac_cv_prog_RANLIB"; then
7608 RANLIB=$ac_cv_prog_RANLIB
7609fi
7610
7611if test -n "$ac_cv_prog_RANLIB"; then
7612 for ncn_progname in ranlib; do
7613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7614set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7615echo "$as_me:$LINENO: checking for $ac_word" >&5
7616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7617if test "${ac_cv_prog_RANLIB+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619else
7620 if test -n "$RANLIB"; then
7621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7630 ac_cv_prog_RANLIB="${ncn_progname}"
7631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634done
7635done
7636
7637fi
7638fi
7639RANLIB=$ac_cv_prog_RANLIB
7640if test -n "$RANLIB"; then
2aeb72e9
DD
7641 echo "$as_me:$LINENO: result: $RANLIB" >&5
7642echo "${ECHO_T}$RANLIB" >&6
278a7a38 7643else
2aeb72e9
DD
7644 echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6
278a7a38
AO
7646fi
7647
7648 done
7649fi
ca9f4b81 7650
278a7a38 7651for ncn_progname in ranlib; do
2693c0b0
PB
7652 if test -n "$ncn_tool_prefix"; then
7653 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7654set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7655echo "$as_me:$LINENO: checking for $ac_word" >&5
7656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7657if test "${ac_cv_prog_RANLIB+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7659else
7660 if test -n "$RANLIB"; then
7661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7662else
1c710c3c
DJ
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7670 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674done
7675done
7676
ca9f4b81
AO
7677fi
7678fi
1c710c3c 7679RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7680if test -n "$RANLIB"; then
2aeb72e9
DD
7681 echo "$as_me:$LINENO: result: $RANLIB" >&5
7682echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7683else
2aeb72e9
DD
7684 echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6
ca9f4b81
AO
7686fi
7687
2693c0b0
PB
7688 fi
7689 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7691set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7692echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7694if test "${ac_cv_prog_RANLIB+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7696else
2693c0b0
PB
7697 if test -n "$RANLIB"; then
7698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7699else
1c710c3c
DJ
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7707 ac_cv_prog_RANLIB="${ncn_progname}"
7708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711done
7712done
7713
ca9f4b81
AO
7714fi
7715fi
1c710c3c 7716RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7717if test -n "$RANLIB"; then
2aeb72e9
DD
7718 echo "$as_me:$LINENO: result: $RANLIB" >&5
7719echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7720else
2aeb72e9
DD
7721 echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6
ca9f4b81 7723fi
1c710c3c 7724
ca9f4b81 7725 fi
2693c0b0
PB
7726 test -n "$ac_cv_prog_RANLIB" && break
7727done
7728
7729if test -z "$ac_cv_prog_RANLIB" ; then
7730 RANLIB=":"
ca9f4b81
AO
7731fi
7732
278a7a38
AO
7733
7734
7735if test -n "$STRIP"; then
7736 ac_cv_prog_STRIP=$STRIP
7737elif test -n "$ac_cv_prog_STRIP"; then
7738 STRIP=$ac_cv_prog_STRIP
7739fi
7740
7741if test -n "$ac_cv_prog_STRIP"; then
7742 for ncn_progname in strip; do
7743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7744set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7745echo "$as_me:$LINENO: checking for $ac_word" >&5
7746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7747if test "${ac_cv_prog_STRIP+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750 if test -n "$STRIP"; then
7751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7752else
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7760 ac_cv_prog_STRIP="${ncn_progname}"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764done
7765done
7766
7767fi
7768fi
7769STRIP=$ac_cv_prog_STRIP
7770if test -n "$STRIP"; then
2aeb72e9
DD
7771 echo "$as_me:$LINENO: result: $STRIP" >&5
7772echo "${ECHO_T}$STRIP" >&6
278a7a38 7773else
2aeb72e9
DD
7774 echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6
278a7a38
AO
7776fi
7777
7778 done
7779fi
7780
7781for ncn_progname in strip; do
2abefe3d
PB
7782 if test -n "$ncn_tool_prefix"; then
7783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7784set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7785echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7787if test "${ac_cv_prog_STRIP+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7789else
7790 if test -n "$STRIP"; then
7791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7792else
1c710c3c
DJ
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7800 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804done
7805done
7806
2abefe3d
PB
7807fi
7808fi
1c710c3c 7809STRIP=$ac_cv_prog_STRIP
2abefe3d 7810if test -n "$STRIP"; then
2aeb72e9
DD
7811 echo "$as_me:$LINENO: result: $STRIP" >&5
7812echo "${ECHO_T}$STRIP" >&6
2abefe3d 7813else
2aeb72e9
DD
7814 echo "$as_me:$LINENO: result: no" >&5
7815echo "${ECHO_T}no" >&6
2abefe3d
PB
7816fi
7817
7818 fi
7819 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7821set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7822echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7824if test "${ac_cv_prog_STRIP+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7826else
7827 if test -n "$STRIP"; then
7828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7829else
1c710c3c
DJ
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7837 ac_cv_prog_STRIP="${ncn_progname}"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842done
7843
2abefe3d
PB
7844fi
7845fi
1c710c3c 7846STRIP=$ac_cv_prog_STRIP
2abefe3d 7847if test -n "$STRIP"; then
2aeb72e9
DD
7848 echo "$as_me:$LINENO: result: $STRIP" >&5
7849echo "${ECHO_T}$STRIP" >&6
2abefe3d 7850else
2aeb72e9
DD
7851 echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
2abefe3d 7853fi
1c710c3c 7854
2abefe3d
PB
7855 fi
7856 test -n "$ac_cv_prog_STRIP" && break
7857done
7858
7859if test -z "$ac_cv_prog_STRIP" ; then
7860 STRIP=":"
7861fi
7862
278a7a38
AO
7863
7864
7865if test -n "$WINDRES"; then
7866 ac_cv_prog_WINDRES=$WINDRES
7867elif test -n "$ac_cv_prog_WINDRES"; then
7868 WINDRES=$ac_cv_prog_WINDRES
7869fi
7870
7871if test -n "$ac_cv_prog_WINDRES"; then
7872 for ncn_progname in windres; do
7873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7874set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7875echo "$as_me:$LINENO: checking for $ac_word" >&5
7876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7877if test "${ac_cv_prog_WINDRES+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880 if test -n "$WINDRES"; then
7881 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7882else
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7890 ac_cv_prog_WINDRES="${ncn_progname}"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894done
7895done
7896
7897fi
7898fi
7899WINDRES=$ac_cv_prog_WINDRES
7900if test -n "$WINDRES"; then
2aeb72e9
DD
7901 echo "$as_me:$LINENO: result: $WINDRES" >&5
7902echo "${ECHO_T}$WINDRES" >&6
278a7a38 7903else
2aeb72e9
DD
7904 echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
278a7a38
AO
7906fi
7907
7908 done
7909fi
7910
7911for ncn_progname in windres; do
2693c0b0
PB
7912 if test -n "$ncn_tool_prefix"; then
7913 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7914set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7915echo "$as_me:$LINENO: checking for $ac_word" >&5
7916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7917if test "${ac_cv_prog_WINDRES+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7919else
7920 if test -n "$WINDRES"; then
7921 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7922else
1c710c3c
DJ
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7930 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934done
7935done
7936
ca9f4b81
AO
7937fi
7938fi
1c710c3c 7939WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7940if test -n "$WINDRES"; then
2aeb72e9
DD
7941 echo "$as_me:$LINENO: result: $WINDRES" >&5
7942echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7943else
2aeb72e9
DD
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
ca9f4b81
AO
7946fi
7947
2693c0b0
PB
7948 fi
7949 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7951set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7952echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7954if test "${ac_cv_prog_WINDRES+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7956else
2693c0b0
PB
7957 if test -n "$WINDRES"; then
7958 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7959else
1c710c3c
DJ
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7967 ac_cv_prog_WINDRES="${ncn_progname}"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973
ca9f4b81
AO
7974fi
7975fi
1c710c3c 7976WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7977if test -n "$WINDRES"; then
2aeb72e9
DD
7978 echo "$as_me:$LINENO: result: $WINDRES" >&5
7979echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7980else
2aeb72e9
DD
7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
ca9f4b81 7983fi
1c710c3c 7984
2693c0b0
PB
7985 fi
7986 test -n "$ac_cv_prog_WINDRES" && break
7987done
7988
7989if test -z "$ac_cv_prog_WINDRES" ; then
7990 set dummy windres
7991 if test $build = $host ; then
7992 WINDRES="$2"
ca9f4b81 7993 else
2693c0b0 7994 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7995 fi
ca9f4b81
AO
7996fi
7997
278a7a38
AO
7998
7999
901119ae
KT
8000if test -n "$WINDMC"; then
8001 ac_cv_prog_WINDMC=$WINDMC
8002elif test -n "$ac_cv_prog_WINDMC"; then
8003 WINDMC=$ac_cv_prog_WINDMC
8004fi
8005
8006if test -n "$ac_cv_prog_WINDMC"; then
8007 for ncn_progname in windmc; do
8008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8009set dummy ${ncn_progname}; ac_word=$2
8010echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8012if test "${ac_cv_prog_WINDMC+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 if test -n "$WINDMC"; then
8016 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8017else
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_WINDMC="${ncn_progname}"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029done
8030done
8031
8032fi
8033fi
8034WINDMC=$ac_cv_prog_WINDMC
8035if test -n "$WINDMC"; then
8036 echo "$as_me:$LINENO: result: $WINDMC" >&5
8037echo "${ECHO_T}$WINDMC" >&6
8038else
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
8041fi
8042
8043 done
8044fi
8045
8046for ncn_progname in windmc; do
8047 if test -n "$ncn_tool_prefix"; then
8048 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8049set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8050echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8052if test "${ac_cv_prog_WINDMC+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 if test -n "$WINDMC"; then
8056 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8057else
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069done
8070done
8071
8072fi
8073fi
8074WINDMC=$ac_cv_prog_WINDMC
8075if test -n "$WINDMC"; then
8076 echo "$as_me:$LINENO: result: $WINDMC" >&5
8077echo "${ECHO_T}$WINDMC" >&6
8078else
8079 echo "$as_me:$LINENO: result: no" >&5
8080echo "${ECHO_T}no" >&6
8081fi
8082
8083 fi
8084 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086set dummy ${ncn_progname}; ac_word=$2
8087echo "$as_me:$LINENO: checking for $ac_word" >&5
8088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8089if test "${ac_cv_prog_WINDMC+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 if test -n "$WINDMC"; then
8093 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_WINDMC="${ncn_progname}"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107done
8108
8109fi
8110fi
8111WINDMC=$ac_cv_prog_WINDMC
8112if test -n "$WINDMC"; then
8113 echo "$as_me:$LINENO: result: $WINDMC" >&5
8114echo "${ECHO_T}$WINDMC" >&6
8115else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118fi
8119
8120 fi
8121 test -n "$ac_cv_prog_WINDMC" && break
8122done
8123
8124if test -z "$ac_cv_prog_WINDMC" ; then
8125 set dummy windmc
8126 if test $build = $host ; then
8127 WINDMC="$2"
8128 else
8129 WINDMC="${ncn_tool_prefix}$2"
8130 fi
8131fi
8132
8133
8134
278a7a38
AO
8135if test -n "$OBJCOPY"; then
8136 ac_cv_prog_OBJCOPY=$OBJCOPY
8137elif test -n "$ac_cv_prog_OBJCOPY"; then
8138 OBJCOPY=$ac_cv_prog_OBJCOPY
8139fi
8140
8141if test -n "$ac_cv_prog_OBJCOPY"; then
8142 for ncn_progname in objcopy; do
8143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8144set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8145echo "$as_me:$LINENO: checking for $ac_word" >&5
8146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8147if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149else
8150 if test -n "$OBJCOPY"; then
8151 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8152else
8153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154for as_dir in $PATH
8155do
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8160 ac_cv_prog_OBJCOPY="${ncn_progname}"
8161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 break 2
8163 fi
8164done
8165done
8166
8167fi
8168fi
8169OBJCOPY=$ac_cv_prog_OBJCOPY
8170if test -n "$OBJCOPY"; then
2aeb72e9
DD
8171 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8172echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 8173else
2aeb72e9
DD
8174 echo "$as_me:$LINENO: result: no" >&5
8175echo "${ECHO_T}no" >&6
278a7a38
AO
8176fi
8177
8178 done
8179fi
8180
8181for ncn_progname in objcopy; do
2693c0b0
PB
8182 if test -n "$ncn_tool_prefix"; then
8183 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8185echo "$as_me:$LINENO: checking for $ac_word" >&5
8186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8187if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8189else
8190 if test -n "$OBJCOPY"; then
8191 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8192else
1c710c3c
DJ
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8200 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204done
8205done
8206
ca9f4b81
AO
8207fi
8208fi
1c710c3c 8209OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8210if test -n "$OBJCOPY"; then
2aeb72e9
DD
8211 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8212echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8213else
2aeb72e9
DD
8214 echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6
ca9f4b81
AO
8216fi
8217
2693c0b0
PB
8218 fi
8219 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8221set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8222echo "$as_me:$LINENO: checking for $ac_word" >&5
8223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8224if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8226else
2693c0b0
PB
8227 if test -n "$OBJCOPY"; then
8228 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8229else
1c710c3c
DJ
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8237 ac_cv_prog_OBJCOPY="${ncn_progname}"
8238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241done
8242done
8243
ca9f4b81
AO
8244fi
8245fi
1c710c3c 8246OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8247if test -n "$OBJCOPY"; then
2aeb72e9
DD
8248 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8249echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8250else
2aeb72e9
DD
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
ca9f4b81 8253fi
1c710c3c 8254
2693c0b0
PB
8255 fi
8256 test -n "$ac_cv_prog_OBJCOPY" && break
8257done
8258
8259if test -z "$ac_cv_prog_OBJCOPY" ; then
8260 set dummy objcopy
8261 if test $build = $host ; then
8262 OBJCOPY="$2"
ca9f4b81 8263 else
2693c0b0 8264 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8265 fi
ca9f4b81
AO
8266fi
8267
278a7a38
AO
8268
8269
8270if test -n "$OBJDUMP"; then
8271 ac_cv_prog_OBJDUMP=$OBJDUMP
8272elif test -n "$ac_cv_prog_OBJDUMP"; then
8273 OBJDUMP=$ac_cv_prog_OBJDUMP
8274fi
8275
8276if test -n "$ac_cv_prog_OBJDUMP"; then
8277 for ncn_progname in objdump; do
8278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8279set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8280echo "$as_me:$LINENO: checking for $ac_word" >&5
8281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8282if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285 if test -n "$OBJDUMP"; then
8286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8287else
8288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289for as_dir in $PATH
8290do
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
8293 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8295 ac_cv_prog_OBJDUMP="${ncn_progname}"
8296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 break 2
8298 fi
8299done
8300done
8301
8302fi
8303fi
8304OBJDUMP=$ac_cv_prog_OBJDUMP
8305if test -n "$OBJDUMP"; then
2aeb72e9
DD
8306 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8307echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 8308else
2aeb72e9
DD
8309 echo "$as_me:$LINENO: result: no" >&5
8310echo "${ECHO_T}no" >&6
278a7a38
AO
8311fi
8312
8313 done
8314fi
8315
8316for ncn_progname in objdump; do
2693c0b0
PB
8317 if test -n "$ncn_tool_prefix"; then
8318 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8319set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8320echo "$as_me:$LINENO: checking for $ac_word" >&5
8321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8322if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8324else
8325 if test -n "$OBJDUMP"; then
8326 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8327else
1c710c3c
DJ
8328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329for as_dir in $PATH
8330do
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8335 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8338 fi
8339done
8340done
8341
ca9f4b81
AO
8342fi
8343fi
1c710c3c 8344OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8345if test -n "$OBJDUMP"; then
2aeb72e9
DD
8346 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8347echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8348else
2aeb72e9
DD
8349 echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6
ca9f4b81
AO
8351fi
8352
2693c0b0
PB
8353 fi
8354 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8356set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8357echo "$as_me:$LINENO: checking for $ac_word" >&5
8358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8359if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8361else
2693c0b0
PB
8362 if test -n "$OBJDUMP"; then
8363 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8364else
1c710c3c
DJ
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8372 ac_cv_prog_OBJDUMP="${ncn_progname}"
8373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377done
8378
ca9f4b81
AO
8379fi
8380fi
1c710c3c 8381OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8382if test -n "$OBJDUMP"; then
2aeb72e9
DD
8383 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8384echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8385else
2aeb72e9
DD
8386 echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6
ca9f4b81 8388fi
1c710c3c 8389
2693c0b0
PB
8390 fi
8391 test -n "$ac_cv_prog_OBJDUMP" && break
8392done
8393
8394if test -z "$ac_cv_prog_OBJDUMP" ; then
8395 set dummy objdump
8396 if test $build = $host ; then
8397 OBJDUMP="$2"
ca9f4b81 8398 else
2693c0b0 8399 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8400 fi
ca9f4b81
AO
8401fi
8402
671aa708
NN
8403
8404
8405
8406
8407
2abefe3d 8408# Target tools.
1c710c3c 8409
2aeb72e9 8410# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 8411if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
8412 withval="$with_build_time_tools"
8413 case x"$withval" in
e8b05380
PB
8414 x/*) ;;
8415 *)
8416 with_build_time_tools=
1c710c3c
DJ
8417 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8418echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8419 ;;
8420 esac
ca9f4b81 8421else
e8b05380 8422 with_build_time_tools=
2aeb72e9 8423fi;
ca9f4b81 8424
278a7a38
AO
8425
8426
8427if test -n "$CC_FOR_TARGET"; then
8428 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8429elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8430 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8431fi
8432
8433if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8434 for ncn_progname in cc gcc; do
8435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8436set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8437echo "$as_me:$LINENO: checking for $ac_word" >&5
8438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8439if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441else
8442 if test -n "$CC_FOR_TARGET"; then
8443 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8452 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456done
8457done
8458
8459fi
8460fi
8461CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8462if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8463 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8464echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8465else
2aeb72e9
DD
8466 echo "$as_me:$LINENO: result: no" >&5
8467echo "${ECHO_T}no" >&6
278a7a38
AO
8468fi
8469
8470 done
8471fi
8472
8473if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8474 for ncn_progname in cc gcc; do
2aeb72e9
DD
8475 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8476echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8477 if test -x $with_build_time_tools/${ncn_progname}; then
8478 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8479 echo "$as_me:$LINENO: result: yes" >&5
8480echo "${ECHO_T}yes" >&6
72a7ab82 8481 break
e8b05380 8482 else
2aeb72e9
DD
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
72a7ab82
AP
8485 fi
8486 done
4de997d1
PB
8487fi
8488
e8b05380
PB
8489if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8490 for ncn_progname in cc gcc; do
8491 if test -n "$ncn_target_tool_prefix"; then
8492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8493set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8494echo "$as_me:$LINENO: checking for $ac_word" >&5
8495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8496if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8498else
8499 if test -n "$CC_FOR_TARGET"; then
8500 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8501else
1c710c3c
DJ
8502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503for as_dir in $PATH
8504do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8509 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513done
8514done
8515
4de997d1
PB
8516fi
8517fi
1c710c3c 8518CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8519if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8520 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8521echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8522else
2aeb72e9
DD
8523 echo "$as_me:$LINENO: result: no" >&5
8524echo "${ECHO_T}no" >&6
4de997d1
PB
8525fi
8526
e8b05380
PB
8527 fi
8528 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8530set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8531echo "$as_me:$LINENO: checking for $ac_word" >&5
8532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8533if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8535else
2693c0b0
PB
8536 if test -n "$CC_FOR_TARGET"; then
8537 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8538else
1c710c3c
DJ
8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8546 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550done
8551done
8552
4de997d1
PB
8553fi
8554fi
1c710c3c 8555CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8556if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8557 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8558echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8559else
2aeb72e9
DD
8560 echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6
4de997d1 8562fi
1c710c3c 8563
e8b05380
PB
8564 fi
8565 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8566 done
8567fi
1c710c3c 8568
2693c0b0
PB
8569if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8570 set dummy cc gcc
8571 if test $build = $target ; then
8572 CC_FOR_TARGET="$2"
4de997d1 8573 else
2693c0b0 8574 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8575 fi
1c00b503
PB
8576else
8577 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8578fi
8579
278a7a38
AO
8580
8581
8582if test -n "$CXX_FOR_TARGET"; then
8583 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8584elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8585 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8586fi
8587
8588if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8589 for ncn_progname in c++ g++ cxx gxx; do
8590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8591set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8592echo "$as_me:$LINENO: checking for $ac_word" >&5
8593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8594if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596else
8597 if test -n "$CXX_FOR_TARGET"; then
8598 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8599else
8600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601for as_dir in $PATH
8602do
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8607 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8610 fi
8611done
8612done
8613
8614fi
8615fi
8616CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8617if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8618 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8619echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8620else
2aeb72e9
DD
8621 echo "$as_me:$LINENO: result: no" >&5
8622echo "${ECHO_T}no" >&6
278a7a38
AO
8623fi
8624
8625 done
8626fi
8627
8628if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8629 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8630 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8631echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8632 if test -x $with_build_time_tools/${ncn_progname}; then
8633 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8634 echo "$as_me:$LINENO: result: yes" >&5
8635echo "${ECHO_T}yes" >&6
e8b05380
PB
8636 break
8637 else
2aeb72e9
DD
8638 echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6
e8b05380
PB
8640 fi
8641 done
8642fi
8643
8644if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8645 for ncn_progname in c++ g++ cxx gxx; do
8646 if test -n "$ncn_target_tool_prefix"; then
8647 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8648set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8649echo "$as_me:$LINENO: checking for $ac_word" >&5
8650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8651if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8653else
8654 if test -n "$CXX_FOR_TARGET"; then
8655 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8656else
1c710c3c
DJ
8657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8664 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8667 fi
8668done
8669done
8670
4de997d1
PB
8671fi
8672fi
1c710c3c 8673CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8674if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8675 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8676echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8677else
2aeb72e9
DD
8678 echo "$as_me:$LINENO: result: no" >&5
8679echo "${ECHO_T}no" >&6
4de997d1
PB
8680fi
8681
e8b05380
PB
8682 fi
8683 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8685set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8686echo "$as_me:$LINENO: checking for $ac_word" >&5
8687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8688if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8690else
2693c0b0
PB
8691 if test -n "$CXX_FOR_TARGET"; then
8692 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8693else
1c710c3c
DJ
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8701 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705done
8706done
8707
4de997d1
PB
8708fi
8709fi
1c710c3c 8710CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8711if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8712 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8713echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8714else
2aeb72e9
DD
8715 echo "$as_me:$LINENO: result: no" >&5
8716echo "${ECHO_T}no" >&6
4de997d1 8717fi
1c710c3c 8718
e8b05380
PB
8719 fi
8720 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8721 done
8722fi
1c710c3c 8723
2693c0b0
PB
8724if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8725 set dummy c++ g++ cxx gxx
8726 if test $build = $target ; then
8727 CXX_FOR_TARGET="$2"
4de997d1 8728 else
2693c0b0 8729 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8730 fi
1c00b503
PB
8731else
8732 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8733fi
8734
278a7a38
AO
8735
8736
8737if test -n "$GCC_FOR_TARGET"; then
8738 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8739elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8740 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8741fi
8742
8743if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8744 for ncn_progname in gcc; do
8745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8746set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8747echo "$as_me:$LINENO: checking for $ac_word" >&5
8748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8749if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751else
8752 if test -n "$GCC_FOR_TARGET"; then
8753 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8754else
8755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $PATH
8757do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8762 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766done
8767done
8768
8769fi
8770fi
8771GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8772if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8773 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8774echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8775else
2aeb72e9
DD
8776 echo "$as_me:$LINENO: result: no" >&5
8777echo "${ECHO_T}no" >&6
278a7a38
AO
8778fi
8779
8780 done
8781fi
8782
8783if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8784 for ncn_progname in gcc; do
2aeb72e9
DD
8785 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8786echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8787 if test -x $with_build_time_tools/${ncn_progname}; then
8788 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8789 echo "$as_me:$LINENO: result: yes" >&5
8790echo "${ECHO_T}yes" >&6
e8b05380
PB
8791 break
8792 else
2aeb72e9
DD
8793 echo "$as_me:$LINENO: result: no" >&5
8794echo "${ECHO_T}no" >&6
e8b05380
PB
8795 fi
8796 done
8797fi
8798
8799if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8800 for ncn_progname in gcc; do
8801 if test -n "$ncn_target_tool_prefix"; then
8802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8803set dummy ${ncn_target_tool_prefix}${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
1c710c3c
DJ
8806if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8808else
e8b05380
PB
8809 if test -n "$GCC_FOR_TARGET"; then
8810 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8811else
1c710c3c
DJ
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
1c710c3c
DJ
8819 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824done
8825
ca9f4b81
AO
8826fi
8827fi
1c710c3c 8828GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8829if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8830 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8831echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8832else
2aeb72e9
DD
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
ca9f4b81
AO
8835fi
8836
e8b05380
PB
8837 fi
8838 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8840set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8841echo "$as_me:$LINENO: checking for $ac_word" >&5
8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8843if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8845else
e8b05380
PB
8846 if test -n "$GCC_FOR_TARGET"; then
8847 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8848else
1c710c3c
DJ
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8856 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860done
8861done
8862
ca9f4b81
AO
8863fi
8864fi
1c710c3c 8865GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8866if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8867 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8868echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8869else
2aeb72e9
DD
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
ca9f4b81 8872fi
1c710c3c 8873
e8b05380
PB
8874 fi
8875 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8876 done
8877fi
1c710c3c 8878
e8b05380
PB
8879if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8880 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8881else
8882 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8883fi
8884
278a7a38
AO
8885
8886
8887if test -n "$GCJ_FOR_TARGET"; then
8888 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8889elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8890 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8891fi
8892
8893if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8894 for ncn_progname in gcj; do
8895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8896set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8897echo "$as_me:$LINENO: checking for $ac_word" >&5
8898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8899if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902 if test -n "$GCJ_FOR_TARGET"; then
8903 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8904else
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8912 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 break 2
8915 fi
8916done
8917done
8918
8919fi
8920fi
8921GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8922if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8923 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8924echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8925else
2aeb72e9
DD
8926 echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
278a7a38
AO
8928fi
8929
8930 done
8931fi
8932
8933if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8934 for ncn_progname in gcj; do
2aeb72e9
DD
8935 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8936echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8937 if test -x $with_build_time_tools/${ncn_progname}; then
8938 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8939 echo "$as_me:$LINENO: result: yes" >&5
8940echo "${ECHO_T}yes" >&6
e8b05380
PB
8941 break
8942 else
2aeb72e9
DD
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
e8b05380
PB
8945 fi
8946 done
8947fi
8948
8949if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8950 for ncn_progname in gcj; do
8951 if test -n "$ncn_target_tool_prefix"; then
8952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8953set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8954echo "$as_me:$LINENO: checking for $ac_word" >&5
8955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8956if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8958else
fb0103e5
RG
8959 if test -n "$GCJ_FOR_TARGET"; then
8960 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8961else
1c710c3c
DJ
8962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963for as_dir in $PATH
8964do
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8969 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 break 2
8972 fi
8973done
8974done
8975
e8b05380
PB
8976fi
8977fi
278a7a38
AO
8978GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8979if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8980 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8981echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8982else
2aeb72e9
DD
8983 echo "$as_me:$LINENO: result: no" >&5
8984echo "${ECHO_T}no" >&6
278a7a38
AO
8985fi
8986
8987 fi
8988 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8990set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8991echo "$as_me:$LINENO: checking for $ac_word" >&5
8992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8993if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995else
8996 if test -n "$GCJ_FOR_TARGET"; then
8997 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8998else
8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000for as_dir in $PATH
9001do
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
9004 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9006 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9008 break 2
9009 fi
9010done
9011done
9012
9013fi
9014fi
9015GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9016if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9017 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9018echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9019else
2aeb72e9
DD
9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
278a7a38
AO
9022fi
9023
9024 fi
9025 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9026 done
9027fi
9028
9029if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9030 set dummy gcj
9031 if test $build = $target ; then
9032 GCJ_FOR_TARGET="$2"
9033 else
9034 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9035 fi
1c00b503
PB
9036else
9037 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
9038fi
9039
9040
9041
9042if test -n "$GFORTRAN_FOR_TARGET"; then
9043 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9044elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9045 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
9046fi
9047
278a7a38
AO
9048if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9049 for ncn_progname in gfortran; do
9050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 9051set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9052echo "$as_me:$LINENO: checking for $ac_word" >&5
9053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9054if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 9055 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9056else
278a7a38
AO
9057 if test -n "$GFORTRAN_FOR_TARGET"; then
9058 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 9059else
1c710c3c
DJ
9060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061for as_dir in $PATH
9062do
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9067 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9070 fi
9071done
9072done
9073
e8b05380
PB
9074fi
9075fi
278a7a38
AO
9076GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9077if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9078 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9079echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9080else
2aeb72e9
DD
9081 echo "$as_me:$LINENO: result: no" >&5
9082echo "${ECHO_T}no" >&6
e8b05380 9083fi
1c710c3c 9084
e8b05380
PB
9085 done
9086fi
1c710c3c 9087
278a7a38 9088if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9089 for ncn_progname in gfortran; do
2aeb72e9
DD
9090 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9091echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9092 if test -x $with_build_time_tools/${ncn_progname}; then
9093 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
e8b05380
PB
9096 break
9097 else
2aeb72e9
DD
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
e8b05380
PB
9100 fi
9101 done
9102fi
9103
9104if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9105 for ncn_progname in gfortran; do
9106 if test -n "$ncn_target_tool_prefix"; then
9107 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9108set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9109echo "$as_me:$LINENO: checking for $ac_word" >&5
9110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9111if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9113else
9114 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9115 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9116else
9117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118for as_dir in $PATH
9119do
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9124 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128done
9129done
9130
e8b05380
PB
9131fi
9132fi
1c710c3c 9133GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9134if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9135 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9136echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9137else
2aeb72e9
DD
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
e8b05380
PB
9140fi
9141
9142 fi
9143 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9145set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9146echo "$as_me:$LINENO: checking for $ac_word" >&5
9147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9148if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9150else
9151 if test -n "$GFORTRAN_FOR_TARGET"; then
9152 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9153else
1c710c3c
DJ
9154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
9159 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9161 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 break 2
9164 fi
9165done
9166done
9167
e8b05380
PB
9168fi
9169fi
1c710c3c 9170GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9171if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9172 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9173echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9174else
2aeb72e9
DD
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
e8b05380 9177fi
1c710c3c 9178
e8b05380
PB
9179 fi
9180 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9181 done
9182fi
1c710c3c 9183
e8b05380
PB
9184if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9185 set dummy gfortran
2693c0b0 9186 if test $build = $target ; then
e8b05380 9187 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9188 else
e8b05380
PB
9189 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9190 fi
1c00b503
PB
9191else
9192 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9193fi
9194
9195
9196
e8b05380
PB
9197cat > conftest.c << \EOF
9198#ifdef __GNUC__
9199 gcc_yay;
9200#endif
9201EOF
9202if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9203 have_gcc_for_target=yes
9204else
9205 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9206 have_gcc_for_target=no
9207fi
9208rm conftest.c
9209
9210
9211
9212
9213if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9214 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9215 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9216echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9217 if test -x $with_build_time_tools/ar; then
9218 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9219 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
9220 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9221echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 9222 else
2aeb72e9
DD
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
d1f8db0c 9225 fi
e8b05380
PB
9226 elif test $build != $host && test $have_gcc_for_target = yes; then
9227 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9228 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9229 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9230 fi
9231fi
3e19841a 9232if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9233 # Extract the first word of "ar", so it can be a program name with args.
9234set dummy ar; ac_word=$2
2aeb72e9
DD
9235echo "$as_me:$LINENO: checking for $ac_word" >&5
9236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9237if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9239else
1c710c3c
DJ
9240 case $AR_FOR_TARGET in
9241 [\\/]* | ?:[\\/]*)
e8b05380
PB
9242 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9243 ;;
e8b05380 9244 *)
1c710c3c
DJ
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246for as_dir in $gcc_cv_tool_dirs
9247do
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9252 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9255 fi
9256done
9257done
9258
e8b05380
PB
9259 ;;
9260esac
9261fi
1c710c3c 9262AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 9263
e8b05380 9264if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9265 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9266echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9267else
2aeb72e9
DD
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
4de997d1
PB
9270fi
9271
e8b05380
PB
9272fi
9273if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9274
9275
9276if test -n "$AR_FOR_TARGET"; then
9277 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9278elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9279 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9280fi
9281
9282if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9283 for ncn_progname in ar; do
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9286echo "$as_me:$LINENO: checking for $ac_word" >&5
9287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9288if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290else
9291 if test -n "$AR_FOR_TARGET"; then
9292 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9293else
9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9301 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9304 fi
9305done
9306done
9307
9308fi
9309fi
9310AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9311if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9312 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9313echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 9314else
2aeb72e9
DD
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
278a7a38
AO
9317fi
9318
9319 done
9320fi
9321
9322if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9323 for ncn_progname in ar; do
2aeb72e9
DD
9324 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9325echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9326 if test -x $with_build_time_tools/${ncn_progname}; then
9327 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9328 echo "$as_me:$LINENO: result: yes" >&5
9329echo "${ECHO_T}yes" >&6
e8b05380
PB
9330 break
9331 else
2aeb72e9
DD
9332 echo "$as_me:$LINENO: result: no" >&5
9333echo "${ECHO_T}no" >&6
e8b05380
PB
9334 fi
9335 done
9336fi
9337
9338if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9339 for ncn_progname in ar; do
9340 if test -n "$ncn_target_tool_prefix"; then
9341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9342set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9343echo "$as_me:$LINENO: checking for $ac_word" >&5
9344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9345if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9347else
e8b05380
PB
9348 if test -n "$AR_FOR_TARGET"; then
9349 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9350else
1c710c3c
DJ
9351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352for as_dir in $PATH
9353do
9354 IFS=$as_save_IFS
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9358 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 break 2
9361 fi
9362done
9363done
9364
4de997d1
PB
9365fi
9366fi
1c710c3c 9367AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9368if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9369 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9370echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 9371else
2aeb72e9
DD
9372 echo "$as_me:$LINENO: result: no" >&5
9373echo "${ECHO_T}no" >&6
4de997d1
PB
9374fi
9375
e8b05380
PB
9376 fi
9377 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9379set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9380echo "$as_me:$LINENO: checking for $ac_word" >&5
9381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9382if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9384else
9385 if test -n "$AR_FOR_TARGET"; then
9386 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9387else
1c710c3c
DJ
9388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389for as_dir in $PATH
9390do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9395 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399done
9400done
9401
e8b05380
PB
9402fi
9403fi
1c710c3c 9404AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9405if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9406 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9407echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9408else
2aeb72e9
DD
9409 echo "$as_me:$LINENO: result: no" >&5
9410echo "${ECHO_T}no" >&6
e8b05380 9411fi
1c710c3c 9412
e8b05380
PB
9413 fi
9414 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9415 done
9416fi
1c710c3c 9417
e8b05380
PB
9418if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9419 set dummy ar
9420 if test $build = $target ; then
9421 AR_FOR_TARGET="$2"
9422 else
9423 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9424 fi
1c00b503
PB
9425else
9426 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
9427fi
9428
d1f8db0c
PB
9429else
9430 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9431fi
9432
9433
9434
9435
9436if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9437 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9438 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9439echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9440 if test -x $with_build_time_tools/as; then
9441 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9442 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9443 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9444echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9445 else
2aeb72e9
DD
9446 echo "$as_me:$LINENO: result: no" >&5
9447echo "${ECHO_T}no" >&6
d1f8db0c 9448 fi
e8b05380
PB
9449 elif test $build != $host && test $have_gcc_for_target = yes; then
9450 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9451 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9452 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9453 fi
9454fi
3e19841a 9455if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9456 # Extract the first word of "as", so it can be a program name with args.
9457set dummy as; ac_word=$2
2aeb72e9
DD
9458echo "$as_me:$LINENO: checking for $ac_word" >&5
9459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9460if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9462else
1c710c3c
DJ
9463 case $AS_FOR_TARGET in
9464 [\\/]* | ?:[\\/]*)
e8b05380
PB
9465 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9466 ;;
e8b05380 9467 *)
1c710c3c
DJ
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469for as_dir in $gcc_cv_tool_dirs
9470do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9475 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 break 2
9478 fi
9479done
9480done
9481
e8b05380
PB
9482 ;;
9483esac
9484fi
1c710c3c 9485AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9486
e8b05380 9487if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9488 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9489echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9490else
2aeb72e9
DD
9491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
e8b05380
PB
9493fi
9494
9495fi
9496if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9497
9498
9499if test -n "$AS_FOR_TARGET"; then
9500 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9501elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9502 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9503fi
9504
9505if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9506 for ncn_progname in as; do
9507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9508set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9509echo "$as_me:$LINENO: checking for $ac_word" >&5
9510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9511if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513else
9514 if test -n "$AS_FOR_TARGET"; then
9515 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9516else
9517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518for as_dir in $PATH
9519do
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9524 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9527 fi
9528done
9529done
9530
9531fi
9532fi
9533AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9534if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9535 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9536echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9537else
2aeb72e9
DD
9538 echo "$as_me:$LINENO: result: no" >&5
9539echo "${ECHO_T}no" >&6
278a7a38
AO
9540fi
9541
9542 done
9543fi
9544
9545if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9546 for ncn_progname in as; do
2aeb72e9
DD
9547 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9548echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9549 if test -x $with_build_time_tools/${ncn_progname}; then
9550 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
e8b05380
PB
9553 break
9554 else
2aeb72e9
DD
9555 echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6
e8b05380
PB
9557 fi
9558 done
9559fi
9560
9561if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9562 for ncn_progname in as; do
9563 if test -n "$ncn_target_tool_prefix"; then
9564 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9565set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9566echo "$as_me:$LINENO: checking for $ac_word" >&5
9567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9568if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9570else
9571 if test -n "$AS_FOR_TARGET"; then
9572 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9573else
1c710c3c
DJ
9574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575for as_dir in $PATH
9576do
9577 IFS=$as_save_IFS
9578 test -z "$as_dir" && as_dir=.
9579 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9581 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 break 2
9584 fi
9585done
9586done
9587
e8b05380
PB
9588fi
9589fi
1c710c3c 9590AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9591if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9592 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9593echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9594else
2aeb72e9
DD
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
e8b05380
PB
9597fi
9598
9599 fi
9600 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9602set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9603echo "$as_me:$LINENO: checking for $ac_word" >&5
9604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9605if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9607else
e8b05380
PB
9608 if test -n "$AS_FOR_TARGET"; then
9609 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9610else
1c710c3c
DJ
9611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612for as_dir in $PATH
9613do
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9618 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9621 fi
9622done
9623done
9624
4de997d1
PB
9625fi
9626fi
1c710c3c 9627AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9628if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9629 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9630echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9631else
2aeb72e9
DD
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
4de997d1 9634fi
1c710c3c 9635
e8b05380
PB
9636 fi
9637 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9638 done
9639fi
1c710c3c 9640
e8b05380
PB
9641if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9642 set dummy as
9643 if test $build = $target ; then
9644 AS_FOR_TARGET="$2"
9645 else
9646 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9647 fi
1c00b503
PB
9648else
9649 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9650fi
2693c0b0 9651
d1f8db0c
PB
9652else
9653 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9654fi
9655
e8b05380
PB
9656
9657
9658
9659if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9660 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9661 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9662echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9663 if test -x $with_build_time_tools/dlltool; then
9664 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9665 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9666 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9667echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9668 else
2aeb72e9
DD
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
d1f8db0c 9671 fi
e8b05380
PB
9672 elif test $build != $host && test $have_gcc_for_target = yes; then
9673 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9674 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9675 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9676 fi
9677fi
3e19841a 9678if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9679 # Extract the first word of "dlltool", so it can be a program name with args.
9680set dummy dlltool; ac_word=$2
2aeb72e9
DD
9681echo "$as_me:$LINENO: checking for $ac_word" >&5
9682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9683if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9685else
1c710c3c
DJ
9686 case $DLLTOOL_FOR_TARGET in
9687 [\\/]* | ?:[\\/]*)
e8b05380
PB
9688 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9689 ;;
e8b05380 9690 *)
1c710c3c
DJ
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $gcc_cv_tool_dirs
9693do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9698 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702done
9703done
9704
e8b05380
PB
9705 ;;
9706esac
4de997d1 9707fi
1c710c3c 9708DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9709
e8b05380 9710if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9711 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9712echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9713else
2aeb72e9
DD
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
4de997d1
PB
9716fi
9717
e8b05380
PB
9718fi
9719if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9720
9721
9722if test -n "$DLLTOOL_FOR_TARGET"; then
9723 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9724elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9725 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9726fi
9727
9728if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9729 for ncn_progname in dlltool; do
9730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9731set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9732echo "$as_me:$LINENO: checking for $ac_word" >&5
9733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9734if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736else
9737 if test -n "$DLLTOOL_FOR_TARGET"; then
9738 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9739else
9740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741for as_dir in $PATH
9742do
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9747 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751done
9752done
9753
9754fi
9755fi
9756DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9757if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9758 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9759echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9760else
2aeb72e9
DD
9761 echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
278a7a38
AO
9763fi
9764
9765 done
9766fi
9767
9768if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9769 for ncn_progname in dlltool; do
2aeb72e9
DD
9770 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9771echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9772 if test -x $with_build_time_tools/${ncn_progname}; then
9773 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9774 echo "$as_me:$LINENO: result: yes" >&5
9775echo "${ECHO_T}yes" >&6
e8b05380
PB
9776 break
9777 else
2aeb72e9
DD
9778 echo "$as_me:$LINENO: result: no" >&5
9779echo "${ECHO_T}no" >&6
e8b05380
PB
9780 fi
9781 done
9782fi
9783
9784if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9785 for ncn_progname in dlltool; do
9786 if test -n "$ncn_target_tool_prefix"; then
9787 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9788set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9789echo "$as_me:$LINENO: checking for $ac_word" >&5
9790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9791if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9793else
e8b05380
PB
9794 if test -n "$DLLTOOL_FOR_TARGET"; then
9795 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9796else
1c710c3c
DJ
9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798for as_dir in $PATH
9799do
9800 IFS=$as_save_IFS
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9804 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9806 break 2
9807 fi
9808done
9809done
9810
4de997d1
PB
9811fi
9812fi
1c710c3c 9813DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9814if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9815 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9816echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9817else
2aeb72e9
DD
9818 echo "$as_me:$LINENO: result: no" >&5
9819echo "${ECHO_T}no" >&6
4de997d1 9820fi
4de997d1 9821
e8b05380
PB
9822 fi
9823 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9825set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9826echo "$as_me:$LINENO: checking for $ac_word" >&5
9827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9828if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9830else
e8b05380
PB
9831 if test -n "$DLLTOOL_FOR_TARGET"; then
9832 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9833else
1c710c3c
DJ
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9841 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845done
9846done
9847
4de997d1
PB
9848fi
9849fi
1c710c3c 9850DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9851if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9852 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9853echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9854else
2aeb72e9
DD
9855 echo "$as_me:$LINENO: result: no" >&5
9856echo "${ECHO_T}no" >&6
4de997d1 9857fi
1c710c3c 9858
e8b05380
PB
9859 fi
9860 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9861 done
9862fi
1c710c3c 9863
e8b05380
PB
9864if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9865 set dummy dlltool
9866 if test $build = $target ; then
9867 DLLTOOL_FOR_TARGET="$2"
9868 else
9869 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9870 fi
1c00b503
PB
9871else
9872 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9873fi
9874
d1f8db0c
PB
9875else
9876 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9877fi
9878
4de997d1 9879
e8b05380
PB
9880
9881
9882if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9883 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9884 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9885echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9886 if test -x $with_build_time_tools/ld; then
9887 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9888 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9889 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9890echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9891 else
2aeb72e9
DD
9892 echo "$as_me:$LINENO: result: no" >&5
9893echo "${ECHO_T}no" >&6
d1f8db0c 9894 fi
e8b05380
PB
9895 elif test $build != $host && test $have_gcc_for_target = yes; then
9896 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9897 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9898 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9899 fi
e8b05380 9900fi
3e19841a 9901if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9902 # Extract the first word of "ld", so it can be a program name with args.
9903set dummy ld; ac_word=$2
2aeb72e9
DD
9904echo "$as_me:$LINENO: checking for $ac_word" >&5
9905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9906if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9908else
1c710c3c
DJ
9909 case $LD_FOR_TARGET in
9910 [\\/]* | ?:[\\/]*)
e8b05380
PB
9911 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9912 ;;
e8b05380 9913 *)
1c710c3c
DJ
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $gcc_cv_tool_dirs
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9921 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925done
9926done
9927
e8b05380
PB
9928 ;;
9929esac
4de997d1 9930fi
1c710c3c 9931LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9932
e8b05380 9933if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9934 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9935echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9936else
2aeb72e9
DD
9937 echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
4de997d1 9939fi
2693c0b0 9940
e8b05380
PB
9941fi
9942if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9943
9944
9945if test -n "$LD_FOR_TARGET"; then
9946 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9947elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9948 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9949fi
9950
9951if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9952 for ncn_progname in ld; do
9953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9954set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9955echo "$as_me:$LINENO: checking for $ac_word" >&5
9956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9957if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960 if test -n "$LD_FOR_TARGET"; then
9961 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9962else
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9970 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9973 fi
9974done
9975done
9976
9977fi
9978fi
9979LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9980if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9981 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9982echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9983else
2aeb72e9
DD
9984 echo "$as_me:$LINENO: result: no" >&5
9985echo "${ECHO_T}no" >&6
278a7a38
AO
9986fi
9987
9988 done
9989fi
9990
9991if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9992 for ncn_progname in ld; do
2aeb72e9
DD
9993 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9994echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9995 if test -x $with_build_time_tools/${ncn_progname}; then
9996 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9997 echo "$as_me:$LINENO: result: yes" >&5
9998echo "${ECHO_T}yes" >&6
e8b05380
PB
9999 break
10000 else
2aeb72e9
DD
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
e8b05380
PB
10003 fi
10004 done
ca9f4b81
AO
10005fi
10006
e8b05380
PB
10007if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10008 for ncn_progname in ld; do
10009 if test -n "$ncn_target_tool_prefix"; then
10010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10011set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10012echo "$as_me:$LINENO: checking for $ac_word" >&5
10013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10014if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10016else
4de997d1
PB
10017 if test -n "$LD_FOR_TARGET"; then
10018 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10019else
1c710c3c
DJ
10020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021for as_dir in $PATH
10022do
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10027 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10030 fi
10031done
10032done
10033
ca9f4b81
AO
10034fi
10035fi
1c710c3c 10036LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 10037if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10038 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10039echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10040else
2aeb72e9
DD
10041 echo "$as_me:$LINENO: result: no" >&5
10042echo "${ECHO_T}no" >&6
ca9f4b81
AO
10043fi
10044
e8b05380
PB
10045 fi
10046 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10048set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10049echo "$as_me:$LINENO: checking for $ac_word" >&5
10050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10051if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10053else
2693c0b0
PB
10054 if test -n "$LD_FOR_TARGET"; then
10055 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10056else
1c710c3c
DJ
10057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058for as_dir in $PATH
10059do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10064 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 break 2
10067 fi
10068done
10069done
10070
ca9f4b81
AO
10071fi
10072fi
1c710c3c 10073LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10074if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10075 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10076echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10077else
2aeb72e9
DD
10078 echo "$as_me:$LINENO: result: no" >&5
10079echo "${ECHO_T}no" >&6
ca9f4b81 10080fi
1c710c3c 10081
e8b05380
PB
10082 fi
10083 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10084 done
10085fi
1c710c3c 10086
2693c0b0
PB
10087if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10088 set dummy ld
10089 if test $build = $target ; then
10090 LD_FOR_TARGET="$2"
ca9f4b81 10091 else
2693c0b0 10092 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10093 fi
1c00b503
PB
10094else
10095 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10096fi
10097
d1f8db0c
PB
10098else
10099 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10100fi
10101
10102
10103
10104
10105if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10106 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10107 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10108echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10109 if test -x $with_build_time_tools/lipo; then
10110 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10111 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
10112 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10113echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 10114 else
2aeb72e9
DD
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
d1f8db0c 10117 fi
e8b05380
PB
10118 elif test $build != $host && test $have_gcc_for_target = yes; then
10119 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10120 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10121 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10122 fi
10123fi
278a7a38
AO
10124if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10125 # Extract the first word of "lipo", so it can be a program name with args.
10126set dummy lipo; ac_word=$2
2aeb72e9
DD
10127echo "$as_me:$LINENO: checking for $ac_word" >&5
10128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10129if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 case $LIPO_FOR_TARGET in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10135 ;;
10136 *)
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138for as_dir in $gcc_cv_tool_dirs
10139do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10144 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10147 fi
10148done
10149done
10150
10151 ;;
10152esac
10153fi
10154LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 10155
278a7a38 10156if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10157 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10158echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 10159else
2aeb72e9
DD
10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
278a7a38
AO
10162fi
10163
10164fi
10165if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10166
10167
10168if test -n "$LIPO_FOR_TARGET"; then
10169 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10170elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10171 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10172fi
10173
10174if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10175 for ncn_progname in lipo; do
10176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10177set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10178echo "$as_me:$LINENO: checking for $ac_word" >&5
10179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 10180if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10181 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10182else
278a7a38
AO
10183 if test -n "$LIPO_FOR_TARGET"; then
10184 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10185else
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
1c710c3c
DJ
10188do
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10193 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10196 fi
10197done
10198done
10199
e8b05380 10200fi
278a7a38
AO
10201fi
10202LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10203if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10204 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10205echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 10206else
2aeb72e9
DD
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
e8b05380
PB
10209fi
10210
278a7a38 10211 done
e8b05380 10212fi
278a7a38
AO
10213
10214if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10215 for ncn_progname in lipo; do
2aeb72e9
DD
10216 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10217echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10218 if test -x $with_build_time_tools/${ncn_progname}; then
10219 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10220 echo "$as_me:$LINENO: result: yes" >&5
10221echo "${ECHO_T}yes" >&6
e8b05380
PB
10222 break
10223 else
2aeb72e9
DD
10224 echo "$as_me:$LINENO: result: no" >&5
10225echo "${ECHO_T}no" >&6
e8b05380
PB
10226 fi
10227 done
10228fi
10229
10230if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10231 for ncn_progname in lipo; do
10232 if test -n "$ncn_target_tool_prefix"; then
10233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10234set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10235echo "$as_me:$LINENO: checking for $ac_word" >&5
10236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10237if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10239else
10240 if test -n "$LIPO_FOR_TARGET"; then
10241 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10242else
1c710c3c
DJ
10243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244for as_dir in $PATH
10245do
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10250 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 break 2
10253 fi
10254done
10255done
10256
040b1c5a
GK
10257fi
10258fi
1c710c3c 10259LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10260if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10261 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10262echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10263else
2aeb72e9
DD
10264 echo "$as_me:$LINENO: result: no" >&5
10265echo "${ECHO_T}no" >&6
040b1c5a
GK
10266fi
10267
e8b05380
PB
10268 fi
10269 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10271set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10272echo "$as_me:$LINENO: checking for $ac_word" >&5
10273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10274if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10276else
10277 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10278 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10279else
1c710c3c
DJ
10280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281for as_dir in $PATH
10282do
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10287 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10290 fi
10291done
10292done
10293
040b1c5a
GK
10294fi
10295fi
1c710c3c 10296LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10297if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10298 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10299echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10300else
2aeb72e9
DD
10301 echo "$as_me:$LINENO: result: no" >&5
10302echo "${ECHO_T}no" >&6
040b1c5a 10303fi
1c710c3c 10304
e8b05380
PB
10305 fi
10306 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10307 done
10308fi
1c710c3c 10309
040b1c5a
GK
10310if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10311 set dummy lipo
10312 if test $build = $target ; then
10313 LIPO_FOR_TARGET="$2"
10314 else
10315 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10316 fi
1c00b503
PB
10317else
10318 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10319fi
10320
d1f8db0c
PB
10321else
10322 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10323fi
10324
10325
10326
10327
10328if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10329 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10330 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10331echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10332 if test -x $with_build_time_tools/nm; then
10333 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10334 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
10335 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10336echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 10337 else
2aeb72e9
DD
10338 echo "$as_me:$LINENO: result: no" >&5
10339echo "${ECHO_T}no" >&6
d1f8db0c 10340 fi
e8b05380
PB
10341 elif test $build != $host && test $have_gcc_for_target = yes; then
10342 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10343 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10344 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10345 fi
10346fi
3e19841a 10347if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10348 # Extract the first word of "nm", so it can be a program name with args.
10349set dummy nm; ac_word=$2
2aeb72e9
DD
10350echo "$as_me:$LINENO: checking for $ac_word" >&5
10351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10352if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10354else
1c710c3c
DJ
10355 case $NM_FOR_TARGET in
10356 [\\/]* | ?:[\\/]*)
e8b05380
PB
10357 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10358 ;;
e8b05380 10359 *)
1c710c3c
DJ
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $gcc_cv_tool_dirs
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10367 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371done
10372done
10373
e8b05380
PB
10374 ;;
10375esac
10376fi
1c710c3c 10377NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 10378
e8b05380 10379if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10380 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10381echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 10382else
2aeb72e9
DD
10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
e8b05380
PB
10385fi
10386
10387fi
10388if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10389
10390
10391if test -n "$NM_FOR_TARGET"; then
10392 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10393elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10394 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10395fi
10396
10397if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10398 for ncn_progname in nm; do
10399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10400set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10403if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$NM_FOR_TARGET"; then
10407 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10416 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
10423fi
10424fi
10425NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10426if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10427 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10428echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 10429else
2aeb72e9
DD
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
278a7a38
AO
10432fi
10433
10434 done
10435fi
10436
10437if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10438 for ncn_progname in nm; do
2aeb72e9
DD
10439 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10440echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10441 if test -x $with_build_time_tools/${ncn_progname}; then
10442 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10443 echo "$as_me:$LINENO: result: yes" >&5
10444echo "${ECHO_T}yes" >&6
e8b05380
PB
10445 break
10446 else
2aeb72e9
DD
10447 echo "$as_me:$LINENO: result: no" >&5
10448echo "${ECHO_T}no" >&6
e8b05380
PB
10449 fi
10450 done
10451fi
10452
10453if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10454 for ncn_progname in nm; do
10455 if test -n "$ncn_target_tool_prefix"; then
10456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10457set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10458echo "$as_me:$LINENO: checking for $ac_word" >&5
10459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10460if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10462else
4de997d1
PB
10463 if test -n "$NM_FOR_TARGET"; then
10464 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10465else
1c710c3c
DJ
10466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467for as_dir in $PATH
10468do
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10473 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 break 2
10476 fi
10477done
10478done
10479
ca9f4b81
AO
10480fi
10481fi
1c710c3c 10482NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10483if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10484 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10485echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10486else
2aeb72e9
DD
10487 echo "$as_me:$LINENO: result: no" >&5
10488echo "${ECHO_T}no" >&6
ca9f4b81
AO
10489fi
10490
e8b05380
PB
10491 fi
10492 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10494set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10495echo "$as_me:$LINENO: checking for $ac_word" >&5
10496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10497if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10499else
2693c0b0
PB
10500 if test -n "$NM_FOR_TARGET"; then
10501 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10502else
1c710c3c
DJ
10503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504for as_dir in $PATH
10505do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10510 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514done
10515done
10516
ca9f4b81
AO
10517fi
10518fi
1c710c3c 10519NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10520if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10521 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10522echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10523else
2aeb72e9
DD
10524 echo "$as_me:$LINENO: result: no" >&5
10525echo "${ECHO_T}no" >&6
ca9f4b81 10526fi
1c710c3c 10527
e8b05380
PB
10528 fi
10529 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10530 done
10531fi
1c710c3c 10532
2693c0b0
PB
10533if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10534 set dummy nm
10535 if test $build = $target ; then
10536 NM_FOR_TARGET="$2"
ca9f4b81 10537 else
2693c0b0 10538 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10539 fi
1c00b503
PB
10540else
10541 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10542fi
10543
d1f8db0c
PB
10544else
10545 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10546fi
10547
10548
10549
10550
10551if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10552 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10553 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10554echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10555 if test -x $with_build_time_tools/objdump; then
10556 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10557 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10558 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10559echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10560 else
2aeb72e9
DD
10561 echo "$as_me:$LINENO: result: no" >&5
10562echo "${ECHO_T}no" >&6
d1f8db0c 10563 fi
e8b05380
PB
10564 elif test $build != $host && test $have_gcc_for_target = yes; then
10565 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10566 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10567 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10568 fi
10569fi
3e19841a 10570if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10571 # Extract the first word of "objdump", so it can be a program name with args.
10572set dummy objdump; ac_word=$2
2aeb72e9
DD
10573echo "$as_me:$LINENO: checking for $ac_word" >&5
10574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10575if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10577else
1c710c3c
DJ
10578 case $OBJDUMP_FOR_TARGET in
10579 [\\/]* | ?:[\\/]*)
e8b05380
PB
10580 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10581 ;;
e8b05380 10582 *)
1c710c3c
DJ
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584for as_dir in $gcc_cv_tool_dirs
10585do
10586 IFS=$as_save_IFS
10587 test -z "$as_dir" && as_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10590 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 break 2
10593 fi
10594done
10595done
10596
e8b05380
PB
10597 ;;
10598esac
10599fi
1c710c3c 10600OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10601
e8b05380 10602if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10603 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10604echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10605else
2aeb72e9
DD
10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
e8b05380
PB
10608fi
10609
10610fi
10611if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10612
10613
10614if test -n "$OBJDUMP_FOR_TARGET"; then
10615 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10616elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10617 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10618fi
10619
10620if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10621 for ncn_progname in objdump; do
10622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10623set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10624echo "$as_me:$LINENO: checking for $ac_word" >&5
10625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10626if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10628else
10629 if test -n "$OBJDUMP_FOR_TARGET"; then
10630 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10631else
10632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633for as_dir in $PATH
10634do
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10639 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10642 fi
10643done
10644done
10645
10646fi
10647fi
10648OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10649if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10650 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10651echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10652else
2aeb72e9
DD
10653 echo "$as_me:$LINENO: result: no" >&5
10654echo "${ECHO_T}no" >&6
278a7a38
AO
10655fi
10656
10657 done
10658fi
10659
10660if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10661 for ncn_progname in objdump; do
2aeb72e9
DD
10662 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10663echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10664 if test -x $with_build_time_tools/${ncn_progname}; then
10665 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10666 echo "$as_me:$LINENO: result: yes" >&5
10667echo "${ECHO_T}yes" >&6
e8b05380
PB
10668 break
10669 else
2aeb72e9
DD
10670 echo "$as_me:$LINENO: result: no" >&5
10671echo "${ECHO_T}no" >&6
e8b05380
PB
10672 fi
10673 done
10674fi
10675
10676if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10677 for ncn_progname in objdump; do
10678 if test -n "$ncn_target_tool_prefix"; then
10679 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10680set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10681echo "$as_me:$LINENO: checking for $ac_word" >&5
10682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10683if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10685else
10686 if test -n "$OBJDUMP_FOR_TARGET"; then
10687 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10688else
1c710c3c
DJ
10689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690for as_dir in $PATH
10691do
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10696 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10699 fi
10700done
10701done
10702
d739199a
DJ
10703fi
10704fi
1c710c3c 10705OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10706if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10707 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10708echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10709else
2aeb72e9
DD
10710 echo "$as_me:$LINENO: result: no" >&5
10711echo "${ECHO_T}no" >&6
d739199a
DJ
10712fi
10713
e8b05380
PB
10714 fi
10715 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10717set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10718echo "$as_me:$LINENO: checking for $ac_word" >&5
10719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10720if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10722else
10723 if test -n "$OBJDUMP_FOR_TARGET"; then
10724 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10725else
1c710c3c
DJ
10726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727for as_dir in $PATH
10728do
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
10731 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10733 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10735 break 2
10736 fi
10737done
10738done
10739
d739199a
DJ
10740fi
10741fi
1c710c3c 10742OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10743if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10744 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10745echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10746else
2aeb72e9
DD
10747 echo "$as_me:$LINENO: result: no" >&5
10748echo "${ECHO_T}no" >&6
d739199a 10749fi
1c710c3c 10750
e8b05380
PB
10751 fi
10752 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10753 done
10754fi
1c710c3c 10755
d739199a
DJ
10756if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10757 set dummy objdump
10758 if test $build = $target ; then
10759 OBJDUMP_FOR_TARGET="$2"
10760 else
10761 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10762 fi
1c00b503
PB
10763else
10764 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10765fi
10766
d1f8db0c
PB
10767else
10768 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10769fi
10770
10771
10772
10773
10774if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10775 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10776 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10777echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10778 if test -x $with_build_time_tools/ranlib; then
10779 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10780 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10781 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10782echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10783 else
2aeb72e9
DD
10784 echo "$as_me:$LINENO: result: no" >&5
10785echo "${ECHO_T}no" >&6
d1f8db0c 10786 fi
e8b05380
PB
10787 elif test $build != $host && test $have_gcc_for_target = yes; then
10788 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10789 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10790 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10791 fi
10792fi
3e19841a 10793if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10794 # Extract the first word of "ranlib", so it can be a program name with args.
10795set dummy ranlib; ac_word=$2
2aeb72e9
DD
10796echo "$as_me:$LINENO: checking for $ac_word" >&5
10797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10798if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10800else
1c710c3c
DJ
10801 case $RANLIB_FOR_TARGET in
10802 [\\/]* | ?:[\\/]*)
e8b05380
PB
10803 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10804 ;;
e8b05380 10805 *)
1c710c3c
DJ
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807for as_dir in $gcc_cv_tool_dirs
10808do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10813 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10816 fi
10817done
10818done
10819
e8b05380
PB
10820 ;;
10821esac
10822fi
1c710c3c 10823RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10824
e8b05380 10825if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10826 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10827echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10828else
2aeb72e9
DD
10829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
e8b05380
PB
10831fi
10832
10833fi
10834if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10835
10836
10837if test -n "$RANLIB_FOR_TARGET"; then
10838 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10839elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10840 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10841fi
10842
10843if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10844 for ncn_progname in ranlib; do
10845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10846set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10847echo "$as_me:$LINENO: checking for $ac_word" >&5
10848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10849if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851else
10852 if test -n "$RANLIB_FOR_TARGET"; then
10853 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10854else
10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10862 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10864 break 2
10865 fi
10866done
10867done
10868
10869fi
10870fi
10871RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10872if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10873 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10874echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10875else
2aeb72e9
DD
10876 echo "$as_me:$LINENO: result: no" >&5
10877echo "${ECHO_T}no" >&6
278a7a38
AO
10878fi
10879
10880 done
10881fi
10882
10883if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10884 for ncn_progname in ranlib; do
2aeb72e9
DD
10885 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10886echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10887 if test -x $with_build_time_tools/${ncn_progname}; then
10888 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10889 echo "$as_me:$LINENO: result: yes" >&5
10890echo "${ECHO_T}yes" >&6
e8b05380
PB
10891 break
10892 else
2aeb72e9
DD
10893 echo "$as_me:$LINENO: result: no" >&5
10894echo "${ECHO_T}no" >&6
e8b05380
PB
10895 fi
10896 done
10897fi
10898
10899if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10900 for ncn_progname in ranlib; do
10901 if test -n "$ncn_target_tool_prefix"; then
10902 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10903set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10904echo "$as_me:$LINENO: checking for $ac_word" >&5
10905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10906if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10908else
4de997d1
PB
10909 if test -n "$RANLIB_FOR_TARGET"; then
10910 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10911else
1c710c3c
DJ
10912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10919 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923done
10924done
10925
ca9f4b81
AO
10926fi
10927fi
1c710c3c 10928RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10929if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10930 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10931echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10932else
2aeb72e9
DD
10933 echo "$as_me:$LINENO: result: no" >&5
10934echo "${ECHO_T}no" >&6
ca9f4b81
AO
10935fi
10936
e8b05380
PB
10937 fi
10938 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10940set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10941echo "$as_me:$LINENO: checking for $ac_word" >&5
10942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10943if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10945else
2693c0b0
PB
10946 if test -n "$RANLIB_FOR_TARGET"; then
10947 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10948else
1c710c3c
DJ
10949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950for as_dir in $PATH
10951do
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10956 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10959 fi
10960done
10961done
10962
ca9f4b81
AO
10963fi
10964fi
1c710c3c 10965RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10966if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10967 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10968echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10969else
2aeb72e9
DD
10970 echo "$as_me:$LINENO: result: no" >&5
10971echo "${ECHO_T}no" >&6
ca9f4b81 10972fi
1c710c3c 10973
e8b05380
PB
10974 fi
10975 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10976 done
10977fi
1c710c3c 10978
e8b05380
PB
10979if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10980 set dummy ranlib
10981 if test $build = $target ; then
10982 RANLIB_FOR_TARGET="$2"
10983 else
10984 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10985 fi
1c00b503
PB
10986else
10987 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10988fi
2693c0b0 10989
d1f8db0c
PB
10990else
10991 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10992fi
10993
e8b05380
PB
10994
10995
10996
10997if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10998 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10999 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11000echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11001 if test -x $with_build_time_tools/strip; then
11002 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11003 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
11004 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11005echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 11006 else
2aeb72e9
DD
11007 echo "$as_me:$LINENO: result: no" >&5
11008echo "${ECHO_T}no" >&6
d1f8db0c 11009 fi
e8b05380
PB
11010 elif test $build != $host && test $have_gcc_for_target = yes; then
11011 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
11012 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11013 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
11014 fi
11015fi
3e19841a 11016if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11017 # Extract the first word of "strip", so it can be a program name with args.
11018set dummy strip; ac_word=$2
2aeb72e9
DD
11019echo "$as_me:$LINENO: checking for $ac_word" >&5
11020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11021if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11023else
1c710c3c
DJ
11024 case $STRIP_FOR_TARGET in
11025 [\\/]* | ?:[\\/]*)
e8b05380
PB
11026 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11027 ;;
e8b05380 11028 *)
1c710c3c
DJ
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $gcc_cv_tool_dirs
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11036 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11039 fi
11040done
11041done
11042
e8b05380
PB
11043 ;;
11044esac
11045fi
1c710c3c 11046STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 11047
e8b05380 11048if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11049 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11050echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 11051else
2aeb72e9
DD
11052 echo "$as_me:$LINENO: result: no" >&5
11053echo "${ECHO_T}no" >&6
e8b05380
PB
11054fi
11055
11056fi
11057if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
11058
11059
11060if test -n "$STRIP_FOR_TARGET"; then
11061 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11062elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11063 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11064fi
11065
11066if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11067 for ncn_progname in strip; do
11068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11069set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11070echo "$as_me:$LINENO: checking for $ac_word" >&5
11071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11072if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074else
11075 if test -n "$STRIP_FOR_TARGET"; then
11076 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11077else
11078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079for as_dir in $PATH
11080do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11085 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089done
11090done
11091
11092fi
11093fi
11094STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11095if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11096 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11097echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 11098else
2aeb72e9
DD
11099 echo "$as_me:$LINENO: result: no" >&5
11100echo "${ECHO_T}no" >&6
278a7a38
AO
11101fi
11102
11103 done
11104fi
11105
11106if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11107 for ncn_progname in strip; do
2aeb72e9
DD
11108 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11109echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11110 if test -x $with_build_time_tools/${ncn_progname}; then
11111 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11112 echo "$as_me:$LINENO: result: yes" >&5
11113echo "${ECHO_T}yes" >&6
e8b05380
PB
11114 break
11115 else
2aeb72e9
DD
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
e8b05380
PB
11118 fi
11119 done
11120fi
11121
11122if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11123 for ncn_progname in strip; do
11124 if test -n "$ncn_target_tool_prefix"; then
11125 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11126set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11127echo "$as_me:$LINENO: checking for $ac_word" >&5
11128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11129if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11131else
11132 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11133 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11134else
11135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136for as_dir in $PATH
11137do
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11142 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 break 2
11145 fi
11146done
11147done
11148
040b1c5a
GK
11149fi
11150fi
1c710c3c 11151STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11152if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11153 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11154echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11155else
2aeb72e9
DD
11156 echo "$as_me:$LINENO: result: no" >&5
11157echo "${ECHO_T}no" >&6
040b1c5a
GK
11158fi
11159
e8b05380
PB
11160 fi
11161 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11163set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11164echo "$as_me:$LINENO: checking for $ac_word" >&5
11165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11166if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11168else
11169 if test -n "$STRIP_FOR_TARGET"; then
11170 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11171else
1c710c3c
DJ
11172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173for as_dir in $PATH
11174do
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
11177 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11179 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 break 2
11182 fi
11183done
11184done
11185
040b1c5a
GK
11186fi
11187fi
1c710c3c 11188STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11189if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11190 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11191echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11192else
2aeb72e9
DD
11193 echo "$as_me:$LINENO: result: no" >&5
11194echo "${ECHO_T}no" >&6
040b1c5a 11195fi
1c710c3c 11196
e8b05380
PB
11197 fi
11198 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11199 done
11200fi
1c710c3c 11201
040b1c5a
GK
11202if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11203 set dummy strip
11204 if test $build = $target ; then
11205 STRIP_FOR_TARGET="$2"
11206 else
11207 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11208 fi
1c00b503
PB
11209else
11210 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11211fi
11212
d1f8db0c
PB
11213else
11214 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11215fi
11216
11217
11218
11219
11220if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11221 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11222 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11223echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11224 if test -x $with_build_time_tools/windres; then
11225 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11226 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
11227 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11228echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 11229 else
2aeb72e9
DD
11230 echo "$as_me:$LINENO: result: no" >&5
11231echo "${ECHO_T}no" >&6
d1f8db0c 11232 fi
e8b05380
PB
11233 elif test $build != $host && test $have_gcc_for_target = yes; then
11234 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11235 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11236 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11237 fi
11238fi
3e19841a 11239if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11240 # Extract the first word of "windres", so it can be a program name with args.
11241set dummy windres; ac_word=$2
2aeb72e9
DD
11242echo "$as_me:$LINENO: checking for $ac_word" >&5
11243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11244if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11246else
1c710c3c
DJ
11247 case $WINDRES_FOR_TARGET in
11248 [\\/]* | ?:[\\/]*)
e8b05380
PB
11249 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11250 ;;
e8b05380 11251 *)
1c710c3c
DJ
11252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253for as_dir in $gcc_cv_tool_dirs
11254do
11255 IFS=$as_save_IFS
11256 test -z "$as_dir" && as_dir=.
11257 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11259 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11261 break 2
11262 fi
11263done
11264done
11265
e8b05380
PB
11266 ;;
11267esac
11268fi
1c710c3c 11269WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 11270
e8b05380 11271if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11272 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11273echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 11274else
2aeb72e9
DD
11275 echo "$as_me:$LINENO: result: no" >&5
11276echo "${ECHO_T}no" >&6
e8b05380
PB
11277fi
11278
11279fi
11280if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11281
11282
11283if test -n "$WINDRES_FOR_TARGET"; then
11284 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11285elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11286 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11287fi
11288
11289if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11290 for ncn_progname in windres; do
11291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11293echo "$as_me:$LINENO: checking for $ac_word" >&5
11294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11295if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298 if test -n "$WINDRES_FOR_TARGET"; then
11299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11300else
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11308 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11311 fi
11312done
11313done
11314
11315fi
11316fi
11317WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11318if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11319 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11320echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 11321else
2aeb72e9
DD
11322 echo "$as_me:$LINENO: result: no" >&5
11323echo "${ECHO_T}no" >&6
278a7a38
AO
11324fi
11325
11326 done
11327fi
11328
11329if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11330 for ncn_progname in windres; do
2aeb72e9
DD
11331 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11332echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11333 if test -x $with_build_time_tools/${ncn_progname}; then
11334 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11335 echo "$as_me:$LINENO: result: yes" >&5
11336echo "${ECHO_T}yes" >&6
e8b05380
PB
11337 break
11338 else
2aeb72e9
DD
11339 echo "$as_me:$LINENO: result: no" >&5
11340echo "${ECHO_T}no" >&6
e8b05380
PB
11341 fi
11342 done
11343fi
11344
11345if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11346 for ncn_progname in windres; do
11347 if test -n "$ncn_target_tool_prefix"; then
11348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11350echo "$as_me:$LINENO: checking for $ac_word" >&5
11351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11352if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11354else
4de997d1
PB
11355 if test -n "$WINDRES_FOR_TARGET"; then
11356 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11357else
1c710c3c
DJ
11358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11365 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11367 break 2
11368 fi
11369done
11370done
11371
ca9f4b81
AO
11372fi
11373fi
1c710c3c 11374WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11375if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11376 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11377echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11378else
2aeb72e9
DD
11379 echo "$as_me:$LINENO: result: no" >&5
11380echo "${ECHO_T}no" >&6
ca9f4b81
AO
11381fi
11382
e8b05380
PB
11383 fi
11384 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11386set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11387echo "$as_me:$LINENO: checking for $ac_word" >&5
11388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11389if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11391else
2693c0b0
PB
11392 if test -n "$WINDRES_FOR_TARGET"; then
11393 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11394else
1c710c3c
DJ
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11402 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407done
11408
ca9f4b81
AO
11409fi
11410fi
1c710c3c 11411WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11412if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11413 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11414echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11415else
2aeb72e9
DD
11416 echo "$as_me:$LINENO: result: no" >&5
11417echo "${ECHO_T}no" >&6
ca9f4b81 11418fi
1c710c3c 11419
e8b05380
PB
11420 fi
11421 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11422 done
11423fi
1c710c3c 11424
2693c0b0
PB
11425if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11426 set dummy windres
11427 if test $build = $target ; then
11428 WINDRES_FOR_TARGET="$2"
ca9f4b81 11429 else
2693c0b0 11430 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11431 fi
1c00b503
PB
11432else
11433 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
11434fi
11435
d1f8db0c
PB
11436else
11437 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11438fi
11439
4977bab6 11440
901119ae
KT
11441
11442
11443if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11444 if test -n "$with_build_time_tools"; then
11445 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11446echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11447 if test -x $with_build_time_tools/windmc; then
11448 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11449 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11450 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11451echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11452 else
11453 echo "$as_me:$LINENO: result: no" >&5
11454echo "${ECHO_T}no" >&6
11455 fi
11456 elif test $build != $host && test $have_gcc_for_target = yes; then
11457 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11458 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11459 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11460 fi
11461fi
11462if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11463 # Extract the first word of "windmc", so it can be a program name with args.
11464set dummy windmc; ac_word=$2
11465echo "$as_me:$LINENO: checking for $ac_word" >&5
11466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11467if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469else
11470 case $WINDMC_FOR_TARGET in
11471 [\\/]* | ?:[\\/]*)
11472 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11473 ;;
11474 *)
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476for as_dir in $gcc_cv_tool_dirs
11477do
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11485 fi
11486done
11487done
11488
11489 ;;
11490esac
11491fi
11492WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11493
11494if test -n "$WINDMC_FOR_TARGET"; then
11495 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11496echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11497else
11498 echo "$as_me:$LINENO: result: no" >&5
11499echo "${ECHO_T}no" >&6
11500fi
11501
11502fi
11503if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11504
11505
11506if test -n "$WINDMC_FOR_TARGET"; then
11507 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11508elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11509 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11510fi
11511
11512if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11513 for ncn_progname in windmc; do
11514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11515set dummy ${ncn_progname}; ac_word=$2
11516echo "$as_me:$LINENO: checking for $ac_word" >&5
11517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11518if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 if test -n "$WINDMC_FOR_TARGET"; then
11522 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11523else
11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $PATH
11526do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535done
11536done
11537
11538fi
11539fi
11540WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11541if test -n "$WINDMC_FOR_TARGET"; then
11542 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11543echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11544else
11545 echo "$as_me:$LINENO: result: no" >&5
11546echo "${ECHO_T}no" >&6
11547fi
11548
11549 done
11550fi
11551
11552if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11553 for ncn_progname in windmc; do
11554 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11555echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11556 if test -x $with_build_time_tools/${ncn_progname}; then
11557 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11558 echo "$as_me:$LINENO: result: yes" >&5
11559echo "${ECHO_T}yes" >&6
11560 break
11561 else
11562 echo "$as_me:$LINENO: result: no" >&5
11563echo "${ECHO_T}no" >&6
11564 fi
11565 done
11566fi
11567
11568if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11569 for ncn_progname in windmc; do
11570 if test -n "$ncn_target_tool_prefix"; then
11571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11572set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11573echo "$as_me:$LINENO: checking for $ac_word" >&5
11574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11575if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578 if test -n "$WINDMC_FOR_TARGET"; then
11579 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11580else
11581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $PATH
11583do
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11588 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11591 fi
11592done
11593done
11594
11595fi
11596fi
11597WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11598if test -n "$WINDMC_FOR_TARGET"; then
11599 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11600echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11601else
11602 echo "$as_me:$LINENO: result: no" >&5
11603echo "${ECHO_T}no" >&6
11604fi
11605
11606 fi
11607 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11609set dummy ${ncn_progname}; ac_word=$2
11610echo "$as_me:$LINENO: checking for $ac_word" >&5
11611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11612if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
11615 if test -n "$WINDMC_FOR_TARGET"; then
11616 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11617else
11618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11625 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11628 fi
11629done
11630done
11631
11632fi
11633fi
11634WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11635if test -n "$WINDMC_FOR_TARGET"; then
11636 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11637echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11638else
11639 echo "$as_me:$LINENO: result: no" >&5
11640echo "${ECHO_T}no" >&6
11641fi
11642
11643 fi
11644 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11645 done
11646fi
11647
11648if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11649 set dummy windmc
11650 if test $build = $target ; then
11651 WINDMC_FOR_TARGET="$2"
11652 else
11653 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11654 fi
1c00b503
PB
11655else
11656 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11657fi
11658
11659else
11660 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11661fi
11662
11663
2abefe3d
PB
11664RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11665
2aeb72e9
DD
11666echo "$as_me:$LINENO: checking where to find the target ar" >&5
11667echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11668if test "x${build}" != "x${host}" ; then
e8b05380
PB
11669 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11670 # We already found the complete path
172e41aa 11671 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11672 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11673echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11674 else
11675 # Canadian cross, just use what we found
2aeb72e9
DD
11676 echo "$as_me:$LINENO: result: pre-installed" >&5
11677echo "${ECHO_T}pre-installed" >&6
e8b05380 11678 fi
2abefe3d
PB
11679else
11680 ok=yes
11681 case " ${configdirs} " in
11682 *" binutils "*) ;;
11683 *) ok=no ;;
11684 esac
1c710c3c 11685
2abefe3d
PB
11686 if test $ok = yes; then
11687 # An in-tree tool is available and we can use it
11688 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11689 echo "$as_me:$LINENO: result: just compiled" >&5
11690echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11691 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11692 # We already found the complete path
172e41aa 11693 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11694 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11695echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11696 elif test "x$target" = "x$host"; then
11697 # We can use an host tool
11698 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11699 echo "$as_me:$LINENO: result: host tool" >&5
11700echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11701 else
11702 # We need a cross tool
2aeb72e9
DD
11703 echo "$as_me:$LINENO: result: pre-installed" >&5
11704echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11705 fi
11706fi
0b0dc272 11707
2aeb72e9
DD
11708echo "$as_me:$LINENO: checking where to find the target as" >&5
11709echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11710if test "x${build}" != "x${host}" ; then
e8b05380
PB
11711 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
172e41aa 11713 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11716 else
11717 # Canadian cross, just use what we found
2aeb72e9
DD
11718 echo "$as_me:$LINENO: result: pre-installed" >&5
11719echo "${ECHO_T}pre-installed" >&6
e8b05380 11720 fi
2abefe3d
PB
11721else
11722 ok=yes
11723 case " ${configdirs} " in
11724 *" gas "*) ;;
11725 *) ok=no ;;
11726 esac
1c710c3c 11727
2abefe3d
PB
11728 if test $ok = yes; then
11729 # An in-tree tool is available and we can use it
11730 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11731 echo "$as_me:$LINENO: result: just compiled" >&5
11732echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11733 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11734 # We already found the complete path
172e41aa 11735 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11736 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11737echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11738 elif test "x$target" = "x$host"; then
11739 # We can use an host tool
11740 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11741 echo "$as_me:$LINENO: result: host tool" >&5
11742echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11743 else
11744 # We need a cross tool
2aeb72e9
DD
11745 echo "$as_me:$LINENO: result: pre-installed" >&5
11746echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11747 fi
11748fi
0b0dc272 11749
2aeb72e9
DD
11750echo "$as_me:$LINENO: checking where to find the target cc" >&5
11751echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11752if test "x${build}" != "x${host}" ; then
e8b05380
PB
11753 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11754 # We already found the complete path
172e41aa 11755 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11756 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11757echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11758 else
11759 # Canadian cross, just use what we found
2aeb72e9
DD
11760 echo "$as_me:$LINENO: result: pre-installed" >&5
11761echo "${ECHO_T}pre-installed" >&6
e8b05380 11762 fi
2abefe3d
PB
11763else
11764 ok=yes
11765 case " ${configdirs} " in
11766 *" gcc "*) ;;
11767 *) ok=no ;;
11768 esac
1c710c3c 11769
2abefe3d
PB
11770 if test $ok = yes; then
11771 # An in-tree tool is available and we can use it
11772 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11773 echo "$as_me:$LINENO: result: just compiled" >&5
11774echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11775 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11776 # We already found the complete path
172e41aa 11777 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11778 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11779echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11780 elif test "x$target" = "x$host"; then
11781 # We can use an host tool
11782 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11783 echo "$as_me:$LINENO: result: host tool" >&5
11784echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11785 else
11786 # We need a cross tool
2aeb72e9
DD
11787 echo "$as_me:$LINENO: result: pre-installed" >&5
11788echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11789 fi
11790fi
0b0dc272 11791
2aeb72e9
DD
11792echo "$as_me:$LINENO: checking where to find the target c++" >&5
11793echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11794if test "x${build}" != "x${host}" ; then
e8b05380
PB
11795 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11796 # We already found the complete path
172e41aa 11797 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11798 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11799echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11800 else
11801 # Canadian cross, just use what we found
2aeb72e9
DD
11802 echo "$as_me:$LINENO: result: pre-installed" >&5
11803echo "${ECHO_T}pre-installed" >&6
e8b05380 11804 fi
2abefe3d
PB
11805else
11806 ok=yes
11807 case " ${configdirs} " in
11808 *" gcc "*) ;;
11809 *) ok=no ;;
11810 esac
11811 case ,${enable_languages}, in
11812 *,c++,*) ;;
11813 *) ok=no ;;
11814 esac
11815 if test $ok = yes; then
11816 # An in-tree tool is available and we can use it
11817 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
11818 echo "$as_me:$LINENO: result: just compiled" >&5
11819echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11820 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11821 # We already found the complete path
172e41aa 11822 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11823 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11824echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11825 elif test "x$target" = "x$host"; then
11826 # We can use an host tool
11827 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11828 echo "$as_me:$LINENO: result: host tool" >&5
11829echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11830 else
11831 # We need a cross tool
2aeb72e9
DD
11832 echo "$as_me:$LINENO: result: pre-installed" >&5
11833echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11834 fi
11835fi
0b0dc272 11836
2aeb72e9
DD
11837echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11838echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11839if test "x${build}" != "x${host}" ; then
e8b05380
PB
11840 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11841 # We already found the complete path
172e41aa 11842 ac_dir=`dirname $RAW_CXX_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
e8b05380
PB
11845 else
11846 # Canadian cross, just use what we found
2aeb72e9
DD
11847 echo "$as_me:$LINENO: result: pre-installed" >&5
11848echo "${ECHO_T}pre-installed" >&6
e8b05380 11849 fi
2abefe3d
PB
11850else
11851 ok=yes
11852 case " ${configdirs} " in
11853 *" gcc "*) ;;
11854 *) ok=no ;;
11855 esac
11856 case ,${enable_languages}, in
11857 *,c++,*) ;;
11858 *) ok=no ;;
11859 esac
11860 if test $ok = yes; then
11861 # An in-tree tool is available and we can use it
11862 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
11863 echo "$as_me:$LINENO: result: just compiled" >&5
11864echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11865 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11866 # We already found the complete path
172e41aa 11867 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11868 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11869echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11870 elif test "x$target" = "x$host"; then
11871 # We can use an host tool
11872 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11873 echo "$as_me:$LINENO: result: host tool" >&5
11874echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11875 else
11876 # We need a cross tool
2aeb72e9
DD
11877 echo "$as_me:$LINENO: result: pre-installed" >&5
11878echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11879 fi
11880fi
0b0dc272 11881
2aeb72e9
DD
11882echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11883echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11884if test "x${build}" != "x${host}" ; then
e8b05380
PB
11885 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11886 # We already found the complete path
172e41aa 11887 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11888 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11889echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11890 else
11891 # Canadian cross, just use what we found
2aeb72e9
DD
11892 echo "$as_me:$LINENO: result: pre-installed" >&5
11893echo "${ECHO_T}pre-installed" >&6
e8b05380 11894 fi
2abefe3d
PB
11895else
11896 ok=yes
11897 case " ${configdirs} " in
11898 *" binutils "*) ;;
11899 *) ok=no ;;
11900 esac
1c710c3c 11901
2abefe3d
PB
11902 if test $ok = yes; then
11903 # An in-tree tool is available and we can use it
11904 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11905 echo "$as_me:$LINENO: result: just compiled" >&5
11906echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11907 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11908 # We already found the complete path
172e41aa 11909 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11910 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11911echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11912 elif test "x$target" = "x$host"; then
11913 # We can use an host tool
11914 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11915 echo "$as_me:$LINENO: result: host tool" >&5
11916echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11917 else
11918 # We need a cross tool
2aeb72e9
DD
11919 echo "$as_me:$LINENO: result: pre-installed" >&5
11920echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11921 fi
11922fi
0b0dc272 11923
2aeb72e9
DD
11924echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11925echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11926if test "x${build}" != "x${host}" ; then
e8b05380
PB
11927 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11928 # We already found the complete path
172e41aa 11929 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11930 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11931echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11932 else
11933 # Canadian cross, just use what we found
2aeb72e9
DD
11934 echo "$as_me:$LINENO: result: pre-installed" >&5
11935echo "${ECHO_T}pre-installed" >&6
e8b05380 11936 fi
2abefe3d
PB
11937else
11938 ok=yes
11939 case " ${configdirs} " in
11940 *" gcc "*) ;;
11941 *) ok=no ;;
11942 esac
1c710c3c 11943
2abefe3d
PB
11944 if test $ok = yes; then
11945 # An in-tree tool is available and we can use it
11946 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11947 echo "$as_me:$LINENO: result: just compiled" >&5
11948echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11949 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11950 # We already found the complete path
172e41aa 11951 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11952 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11953echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11954 elif test "x$target" = "x$host"; then
11955 # We can use an host tool
11956 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11957 echo "$as_me:$LINENO: result: host tool" >&5
11958echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11959 else
11960 # We need a cross tool
2aeb72e9
DD
11961 echo "$as_me:$LINENO: result: pre-installed" >&5
11962echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11963 fi
11964fi
0b0dc272 11965
2aeb72e9
DD
11966echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11967echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11968if test "x${build}" != "x${host}" ; then
e8b05380
PB
11969 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11970 # We already found the complete path
172e41aa 11971 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11972 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11973echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11974 else
11975 # Canadian cross, just use what we found
2aeb72e9
DD
11976 echo "$as_me:$LINENO: result: pre-installed" >&5
11977echo "${ECHO_T}pre-installed" >&6
e8b05380 11978 fi
2abefe3d
PB
11979else
11980 ok=yes
11981 case " ${configdirs} " in
11982 *" gcc "*) ;;
11983 *) ok=no ;;
11984 esac
11985 case ,${enable_languages}, in
11986 *,java,*) ;;
11987 *) ok=no ;;
11988 esac
11989 if test $ok = yes; then
11990 # An in-tree tool is available and we can use it
11991 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11992 echo "$as_me:$LINENO: result: just compiled" >&5
11993echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11994 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11995 # We already found the complete path
172e41aa 11996 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11997 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11998echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11999 elif test "x$target" = "x$host"; then
12000 # We can use an host tool
12001 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
12002 echo "$as_me:$LINENO: result: host tool" >&5
12003echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12004 else
12005 # We need a cross tool
2aeb72e9
DD
12006 echo "$as_me:$LINENO: result: pre-installed" >&5
12007echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12008 fi
12009fi
0b0dc272 12010
2aeb72e9
DD
12011echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12012echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 12013if test "x${build}" != "x${host}" ; then
e8b05380
PB
12014 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12015 # We already found the complete path
172e41aa 12016 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12017 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12018echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12019 else
12020 # Canadian cross, just use what we found
2aeb72e9
DD
12021 echo "$as_me:$LINENO: result: pre-installed" >&5
12022echo "${ECHO_T}pre-installed" >&6
e8b05380 12023 fi
2abefe3d
PB
12024else
12025 ok=yes
12026 case " ${configdirs} " in
12027 *" gcc "*) ;;
12028 *) ok=no ;;
12029 esac
12030 case ,${enable_languages}, in
12031 *,fortran,*) ;;
12032 *) ok=no ;;
12033 esac
12034 if test $ok = yes; then
12035 # An in-tree tool is available and we can use it
12036 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12037 echo "$as_me:$LINENO: result: just compiled" >&5
12038echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12039 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12040 # We already found the complete path
172e41aa 12041 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12042 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12043echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12044 elif test "x$target" = "x$host"; then
12045 # We can use an host tool
12046 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
12047 echo "$as_me:$LINENO: result: host tool" >&5
12048echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12049 else
12050 # We need a cross tool
2aeb72e9
DD
12051 echo "$as_me:$LINENO: result: pre-installed" >&5
12052echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12053 fi
12054fi
0b0dc272 12055
2aeb72e9
DD
12056echo "$as_me:$LINENO: checking where to find the target ld" >&5
12057echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 12058if test "x${build}" != "x${host}" ; then
e8b05380
PB
12059 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12060 # We already found the complete path
172e41aa 12061 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12062 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12063echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12064 else
12065 # Canadian cross, just use what we found
2aeb72e9
DD
12066 echo "$as_me:$LINENO: result: pre-installed" >&5
12067echo "${ECHO_T}pre-installed" >&6
e8b05380 12068 fi
2abefe3d
PB
12069else
12070 ok=yes
12071 case " ${configdirs} " in
12072 *" ld "*) ;;
12073 *) ok=no ;;
12074 esac
1c710c3c 12075
2abefe3d
PB
12076 if test $ok = yes; then
12077 # An in-tree tool is available and we can use it
12078 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
12079 echo "$as_me:$LINENO: result: just compiled" >&5
12080echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12081 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12082 # We already found the complete path
172e41aa 12083 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12084 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12085echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12086 elif test "x$target" = "x$host"; then
12087 # We can use an host tool
12088 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
12089 echo "$as_me:$LINENO: result: host tool" >&5
12090echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12091 else
12092 # We need a cross tool
2aeb72e9
DD
12093 echo "$as_me:$LINENO: result: pre-installed" >&5
12094echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12095 fi
12096fi
0b0dc272 12097
2aeb72e9
DD
12098echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12099echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 12100if test "x${build}" != "x${host}" ; then
e8b05380
PB
12101 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12102 # We already found the complete path
172e41aa 12103 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12104 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12105echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12106 else
12107 # Canadian cross, just use what we found
2aeb72e9
DD
12108 echo "$as_me:$LINENO: result: pre-installed" >&5
12109echo "${ECHO_T}pre-installed" >&6
e8b05380 12110 fi
2abefe3d 12111else
e8b05380
PB
12112 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12113 # We already found the complete path
172e41aa 12114 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12115 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12116echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 12117 elif test "x$target" = "x$host"; then
2abefe3d
PB
12118 # We can use an host tool
12119 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
12120 echo "$as_me:$LINENO: result: host tool" >&5
12121echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12122 else
12123 # We need a cross tool
2aeb72e9
DD
12124 echo "$as_me:$LINENO: result: pre-installed" >&5
12125echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12126 fi
12127fi
0b0dc272 12128
2aeb72e9
DD
12129echo "$as_me:$LINENO: checking where to find the target nm" >&5
12130echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 12131if test "x${build}" != "x${host}" ; then
e8b05380
PB
12132 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12133 # We already found the complete path
172e41aa 12134 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12135 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12136echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12137 else
12138 # Canadian cross, just use what we found
2aeb72e9
DD
12139 echo "$as_me:$LINENO: result: pre-installed" >&5
12140echo "${ECHO_T}pre-installed" >&6
e8b05380 12141 fi
2abefe3d
PB
12142else
12143 ok=yes
12144 case " ${configdirs} " in
12145 *" binutils "*) ;;
12146 *) ok=no ;;
12147 esac
1c710c3c 12148
2abefe3d
PB
12149 if test $ok = yes; then
12150 # An in-tree tool is available and we can use it
12151 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
12152 echo "$as_me:$LINENO: result: just compiled" >&5
12153echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12154 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12155 # We already found the complete path
172e41aa 12156 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12157 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12158echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12159 elif test "x$target" = "x$host"; then
12160 # We can use an host tool
12161 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
12162 echo "$as_me:$LINENO: result: host tool" >&5
12163echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12164 else
12165 # We need a cross tool
2aeb72e9
DD
12166 echo "$as_me:$LINENO: result: pre-installed" >&5
12167echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12168 fi
12169fi
0b0dc272 12170
2aeb72e9
DD
12171echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12172echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 12173if test "x${build}" != "x${host}" ; then
e8b05380
PB
12174 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12175 # We already found the complete path
172e41aa 12176 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12177 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12178echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12179 else
12180 # Canadian cross, just use what we found
2aeb72e9
DD
12181 echo "$as_me:$LINENO: result: pre-installed" >&5
12182echo "${ECHO_T}pre-installed" >&6
e8b05380 12183 fi
2abefe3d
PB
12184else
12185 ok=yes
12186 case " ${configdirs} " in
12187 *" binutils "*) ;;
12188 *) ok=no ;;
12189 esac
1c710c3c 12190
2abefe3d
PB
12191 if test $ok = yes; then
12192 # An in-tree tool is available and we can use it
12193 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
12194 echo "$as_me:$LINENO: result: just compiled" >&5
12195echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12196 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12197 # We already found the complete path
172e41aa 12198 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12199 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12200echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12201 elif test "x$target" = "x$host"; then
12202 # We can use an host tool
12203 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
12204 echo "$as_me:$LINENO: result: host tool" >&5
12205echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12206 else
12207 # We need a cross tool
2aeb72e9
DD
12208 echo "$as_me:$LINENO: result: pre-installed" >&5
12209echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12210 fi
12211fi
0b0dc272 12212
2aeb72e9
DD
12213echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12214echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 12215if test "x${build}" != "x${host}" ; then
e8b05380
PB
12216 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12217 # We already found the complete path
172e41aa 12218 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12219 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12220echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12221 else
12222 # Canadian cross, just use what we found
2aeb72e9
DD
12223 echo "$as_me:$LINENO: result: pre-installed" >&5
12224echo "${ECHO_T}pre-installed" >&6
e8b05380 12225 fi
2abefe3d
PB
12226else
12227 ok=yes
12228 case " ${configdirs} " in
12229 *" binutils "*) ;;
12230 *) ok=no ;;
12231 esac
1c710c3c 12232
2abefe3d
PB
12233 if test $ok = yes; then
12234 # An in-tree tool is available and we can use it
12235 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
12236 echo "$as_me:$LINENO: result: just compiled" >&5
12237echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12238 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12239 # We already found the complete path
172e41aa 12240 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12241 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12242echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12243 elif test "x$target" = "x$host"; then
12244 # We can use an host tool
12245 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
12246 echo "$as_me:$LINENO: result: host tool" >&5
12247echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12248 else
12249 # We need a cross tool
2aeb72e9
DD
12250 echo "$as_me:$LINENO: result: pre-installed" >&5
12251echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12252 fi
12253fi
0b0dc272 12254
2aeb72e9
DD
12255echo "$as_me:$LINENO: checking where to find the target strip" >&5
12256echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 12257if test "x${build}" != "x${host}" ; then
e8b05380
PB
12258 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12259 # We already found the complete path
172e41aa 12260 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12261 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12262echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12263 else
12264 # Canadian cross, just use what we found
2aeb72e9
DD
12265 echo "$as_me:$LINENO: result: pre-installed" >&5
12266echo "${ECHO_T}pre-installed" >&6
e8b05380 12267 fi
2abefe3d
PB
12268else
12269 ok=yes
12270 case " ${configdirs} " in
12271 *" binutils "*) ;;
12272 *) ok=no ;;
12273 esac
1c710c3c 12274
2abefe3d
PB
12275 if test $ok = yes; then
12276 # An in-tree tool is available and we can use it
12277 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
12278 echo "$as_me:$LINENO: result: just compiled" >&5
12279echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12280 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12281 # We already found the complete path
172e41aa 12282 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12283 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12284echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12285 elif test "x$target" = "x$host"; then
12286 # We can use an host tool
12287 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
12288 echo "$as_me:$LINENO: result: host tool" >&5
12289echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12290 else
12291 # We need a cross tool
2aeb72e9
DD
12292 echo "$as_me:$LINENO: result: pre-installed" >&5
12293echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12294 fi
12295fi
0b0dc272 12296
2aeb72e9
DD
12297echo "$as_me:$LINENO: checking where to find the target windres" >&5
12298echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 12299if test "x${build}" != "x${host}" ; then
e8b05380
PB
12300 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12301 # We already found the complete path
172e41aa 12302 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12303 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12304echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12305 else
12306 # Canadian cross, just use what we found
2aeb72e9
DD
12307 echo "$as_me:$LINENO: result: pre-installed" >&5
12308echo "${ECHO_T}pre-installed" >&6
e8b05380 12309 fi
2abefe3d
PB
12310else
12311 ok=yes
12312 case " ${configdirs} " in
12313 *" binutils "*) ;;
12314 *) ok=no ;;
12315 esac
1c710c3c 12316
2abefe3d
PB
12317 if test $ok = yes; then
12318 # An in-tree tool is available and we can use it
12319 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
12320 echo "$as_me:$LINENO: result: just compiled" >&5
12321echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12322 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12323 # We already found the complete path
172e41aa 12324 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12325 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12326echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12327 elif test "x$target" = "x$host"; then
12328 # We can use an host tool
12329 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
12330 echo "$as_me:$LINENO: result: host tool" >&5
12331echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12332 else
12333 # We need a cross tool
2aeb72e9
DD
12334 echo "$as_me:$LINENO: result: pre-installed" >&5
12335echo "${ECHO_T}pre-installed" >&6
2abefe3d 12336 fi
671aa708 12337fi
be912515 12338
901119ae
KT
12339echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12340echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12341if test "x${build}" != "x${host}" ; then
12342 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12343 # We already found the complete path
12344 ac_dir=`dirname $WINDMC_FOR_TARGET`
12345 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12346echo "${ECHO_T}pre-installed in $ac_dir" >&6
12347 else
12348 # Canadian cross, just use what we found
12349 echo "$as_me:$LINENO: result: pre-installed" >&5
12350echo "${ECHO_T}pre-installed" >&6
12351 fi
12352else
12353 ok=yes
12354 case " ${configdirs} " in
12355 *" binutils "*) ;;
12356 *) ok=no ;;
12357 esac
12358
12359 if test $ok = yes; then
12360 # An in-tree tool is available and we can use it
12361 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12362 echo "$as_me:$LINENO: result: just compiled" >&5
12363echo "${ECHO_T}just compiled" >&6
12364 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12365 # We already found the complete path
12366 ac_dir=`dirname $WINDMC_FOR_TARGET`
12367 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12368echo "${ECHO_T}pre-installed in $ac_dir" >&6
12369 elif test "x$target" = "x$host"; then
12370 # We can use an host tool
12371 WINDMC_FOR_TARGET='$(WINDMC)'
12372 echo "$as_me:$LINENO: result: host tool" >&5
12373echo "${ECHO_T}host tool" >&6
12374 else
12375 # We need a cross tool
12376 echo "$as_me:$LINENO: result: pre-installed" >&5
12377echo "${ECHO_T}pre-installed" >&6
12378 fi
12379fi
12380
be912515
NN
12381
12382
2abefe3d 12383
0b0dc272 12384
671aa708
NN
12385# Certain tools may need extra flags.
12386AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12387RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12388NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12389
2abefe3d
PB
12390# When building target libraries, except in a Canadian cross, we use
12391# the same toolchain as the compiler we just built.
12392COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12393COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12394COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12395if test $host = $build; then
12396 case " $configdirs " in
12397 *" gcc "*)
12398 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12399 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12400 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12401 ;;
12402 esac
12403fi
12404
12405
12406
12407
12408
2aeb72e9
DD
12409echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12410echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12411# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 12412if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
12413 enableval="$enable_maintainer_mode"
12414 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12415else
12416 USE_MAINTAINER_MODE=no
2aeb72e9
DD
12417fi;
12418echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12419echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
12420
12421
12422if test "$USE_MAINTAINER_MODE" = yes; then
12423 MAINTAINER_MODE_TRUE=
12424 MAINTAINER_MODE_FALSE='#'
12425else
12426 MAINTAINER_MODE_TRUE='#'
12427 MAINTAINER_MODE_FALSE=
1c710c3c 12428fi
ee03dc5e
AO
12429MAINT=$MAINTAINER_MODE_TRUE
12430
2805b53a
NN
12431# ---------------------
12432# GCC bootstrap support
12433# ---------------------
12434
12435# Stage specific cflags for build.
12436stage1_cflags="-g"
12437case $build in
12438 vax-*-*)
12439 case ${GCC} in
12440 yes) stage1_cflags="-g -Wa,-J" ;;
12441 *) stage1_cflags="-g -J" ;;
12442 esac ;;
2805b53a
NN
12443esac
12444
0b50988a
EB
12445# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12446if test "$GCC" = yes; then
12447 saved_CFLAGS="$CFLAGS"
12448
12449 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12450 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12451 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12452echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12453 cat >conftest.$ac_ext <<_ACEOF
12454/* confdefs.h. */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h. */
12459
9cc1244e
JJ
12460#if (__GNUC__ < 3) \
12461 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12462 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12463#error http://gcc.gnu.org/PR29382
12464#endif
12465
1c710c3c
DJ
12466int
12467main ()
12468{
12469
12470 ;
12471 return 0;
12472}
12473_ACEOF
12474rm -f conftest.$ac_objext
2aeb72e9
DD
12475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12482 (exit $ac_status); } &&
12483 { ac_try='test -z "$ac_c_werror_flag"
12484 || test ! -s conftest.err'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; } &&
12490 { ac_try='test -s conftest.$ac_objext'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 echo "$as_me:$LINENO: result: yes" >&5
12497echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12498else
12499 echo "$as_me: failed program was:" >&5
12500sed 's/^/| /' conftest.$ac_ext >&5
12501
2aeb72e9
DD
12502echo "$as_me:$LINENO: result: no" >&5
12503echo "${ECHO_T}no" >&6
1c710c3c 12504fi
2aeb72e9 12505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12506
12507 CFLAGS="$saved_CFLAGS"
12508fi
12509
12510
2805b53a 12511
8efea775 12512# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12513# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12514if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12515 enableval="$enable_stage1_checking"
12516 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12517else
e643dc23 12518 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12519 stage1_checking=--enable-checking=yes,types
8efea775 12520else
e643dc23 12521 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12522fi
2aeb72e9 12523fi;
8efea775
PB
12524
12525
2805b53a 12526# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12527# Check whether --enable-werror or --disable-werror was given.
2805b53a 12528if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12529 enableval="$enable_werror"
12530
2805b53a 12531else
416cfb5e 12532 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12533 enable_werror=yes
88fceb68
PB
12534else
12535 enable_werror=no
12536fi
2aeb72e9 12537fi;
09a9c095
NN
12538case ${enable_werror} in
12539 yes) stage2_werror_flag="--enable-werror-always" ;;
12540 *) stage2_werror_flag="" ;;
2805b53a
NN
12541esac
12542
12543
32845532 12544# Flags needed to enable html installing and building
1c710c3c 12545
2aeb72e9 12546# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12547if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12548 withval="$with_datarootdir"
12549 datarootdir="\${prefix}/${withval}"
32845532
CD
12550else
12551 datarootdir="\${prefix}/share"
2aeb72e9 12552fi;
32845532
CD
12553
12554
2aeb72e9 12555# Check whether --with-docdir or --without-docdir was given.
32845532 12556if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12557 withval="$with_docdir"
12558 docdir="\${prefix}/${withval}"
32845532
CD
12559else
12560 docdir="\${datarootdir}/doc"
2aeb72e9 12561fi;
32845532
CD
12562
12563
2aeb72e9 12564# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12565if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12566 withval="$with_pdfdir"
12567 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12568else
12569 pdfdir="\${docdir}"
2aeb72e9 12570fi;
9c4d2493
BM
12571
12572
2aeb72e9 12573# Check whether --with-htmldir or --without-htmldir was given.
32845532 12574if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12575 withval="$with_htmldir"
12576 htmldir="\${prefix}/${withval}"
32845532
CD
12577else
12578 htmldir="\${docdir}"
2aeb72e9 12579fi;
32845532
CD
12580
12581
12582
12583
172e41aa 12584
11a67599 12585
2aeb72e9 12586 ac_config_files="$ac_config_files Makefile"
1c710c3c 12587cat >confcache <<\_ACEOF
671aa708
NN
12588# This file is a shell script that caches the results of configure
12589# tests run on this system so they can be shared between configure
1c710c3c
DJ
12590# scripts and configure runs, see configure's option --config-cache.
12591# It is not useful on other systems. If it contains results you don't
12592# want to keep, you may remove or edit it.
671aa708 12593#
1c710c3c
DJ
12594# config.status only pays attention to the cache file if you give it
12595# the --recheck option to rerun configure.
671aa708 12596#
1c710c3c
DJ
12597# `ac_cv_env_foo' variables (set or unset) will be overridden when
12598# loading this file, other *unset* `ac_cv_foo' will be assigned the
12599# following values.
12600
12601_ACEOF
12602
671aa708
NN
12603# The following way of writing the cache mishandles newlines in values,
12604# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12605# So, don't put newlines in cache variables' values.
671aa708
NN
12606# Ultrix sh set writes to stderr and can't be redirected directly,
12607# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12608{
1c710c3c 12609 (set) 2>&1 |
2aeb72e9
DD
12610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12611 *ac_space=\ *)
1c710c3c
DJ
12612 # `set' does not quote correctly, so add quotes (double-quote
12613 # substitution turns \\\\ into \\, and sed turns \\ into \).
12614 sed -n \
12615 "s/'/'\\\\''/g;
12616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12617 ;;
1c710c3c
DJ
12618 *)
12619 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12620 sed -n \
12621 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12622 ;;
2aeb72e9
DD
12623 esac;
12624} |
1c710c3c
DJ
12625 sed '
12626 t clear
2aeb72e9 12627 : clear
1c710c3c
DJ
12628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12629 t end
2aeb72e9
DD
12630 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12631 : end' >>confcache
12632if diff $cache_file confcache >/dev/null 2>&1; then :; else
12633 if test -w $cache_file; then
12634 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12635 cat confcache >$cache_file
671aa708 12636 else
2aeb72e9 12637 echo "not updating unwritable cache $cache_file"
671aa708 12638 fi
4977bab6 12639fi
671aa708 12640rm -f confcache
79c06341 12641
671aa708
NN
12642test "x$prefix" = xNONE && prefix=$ac_default_prefix
12643# Let make expand exec_prefix.
12644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12645
2aeb72e9
DD
12646# VPATH may cause trouble with some makes, so we remove $(srcdir),
12647# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12648# trailing colons and then remove the whole line if VPATH becomes empty
12649# (actually we leave an empty line to preserve line numbers).
12650if test "x$srcdir" = x.; then
12651 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12652s/:*\$(srcdir):*/:/;
12653s/:*\${srcdir}:*/:/;
12654s/:*@srcdir@:*/:/;
12655s/^\([^=]*=[ ]*\):*/\1/;
12656s/:*$//;
12657s/^[^=]*=[ ]*$//;
12658}'
12659fi
12660
671aa708
NN
12661# Transform confdefs.h into DEFS.
12662# Protect against shell expansion while executing Makefile rules.
12663# Protect against Makefile macro expansion.
1c710c3c
DJ
12664#
12665# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12666# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12667# look for a macro that doesn't take arguments.
2aeb72e9 12668cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12669t clear
2aeb72e9
DD
12670: clear
12671s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12672t quote
2aeb72e9 12673s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12674t quote
2aeb72e9
DD
12675d
12676: quote
12677s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12678s,\[,\\&,g
12679s,\],\\&,g
12680s,\$,$$,g
12681p
12682_ACEOF
12683# We use echo to avoid assuming a particular line-breaking character.
12684# The extra dot is to prevent the shell from consuming trailing
12685# line-breaks from the sub-command output. A line-break within
12686# single-quotes doesn't work because, if this script is created in a
12687# platform that uses two characters for line-breaks (e.g., DOS), tr
12688# would break.
12689ac_LF_and_DOT=`echo; echo .`
12690DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12691rm -f confdef2opt.sed
1c710c3c
DJ
12692
12693
12694ac_libobjs=
12695ac_ltlibobjs=
12696for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12697 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12698 ac_i=`echo "$ac_i" |
12699 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12700 # 2. Add them.
12701 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12702 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12703done
12704LIBOBJS=$ac_libobjs
fb0103e5 12705
1c710c3c 12706LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12707
af71363e 12708
1c710c3c
DJ
12709
12710: ${CONFIG_STATUS=./config.status}
12711ac_clean_files_save=$ac_clean_files
12712ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12713{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12714echo "$as_me: creating $CONFIG_STATUS" >&6;}
12715cat >$CONFIG_STATUS <<_ACEOF
12716#! $SHELL
12717# Generated by $as_me.
671aa708 12718# Run this file to recreate the current configuration.
671aa708 12719# Compiler output produced by configure, useful for debugging
1c710c3c 12720# configure, is in config.log if it exists.
0b0dc272 12721
1c710c3c
DJ
12722debug=false
12723ac_cs_recheck=false
12724ac_cs_silent=false
12725SHELL=\${CONFIG_SHELL-$SHELL}
12726_ACEOF
12727
12728cat >>$CONFIG_STATUS <<\_ACEOF
12729## --------------------- ##
12730## M4sh Initialization. ##
12731## --------------------- ##
12732
2aeb72e9 12733# Be Bourne compatible
1c710c3c
DJ
12734if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12735 emulate sh
12736 NULLCMD=:
12737 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12738 # is contrary to our usage. Disable this feature.
12739 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12740elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12741 set -o posix
1c710c3c 12742fi
2aeb72e9 12743DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12744
12745# Support unset when possible.
12746if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12747 as_unset=unset
12748else
12749 as_unset=false
12750fi
12751
12752
12753# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12754$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12755PS1='$ '
12756PS2='> '
12757PS4='+ '
12758
12759# NLS nuisances.
12760for as_var in \
12761 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12762 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12763 LC_TELEPHONE LC_TIME
12764do
12765 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12766 eval $as_var=C; export $as_var
12767 else
2aeb72e9 12768 $as_unset $as_var
1c710c3c
DJ
12769 fi
12770done
12771
12772# Required to use basename.
2aeb72e9 12773if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12774 as_expr=expr
12775else
12776 as_expr=false
12777fi
12778
2aeb72e9 12779if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12780 as_basename=basename
12781else
12782 as_basename=false
12783fi
12784
12785
12786# Name of the executable.
2aeb72e9 12787as_me=`$as_basename "$0" ||
1c710c3c
DJ
12788$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12789 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12790 X"$0" : 'X\(/\)$' \| \
12791 . : '\(.\)' 2>/dev/null ||
1c710c3c 12792echo X/"$0" |
2aeb72e9
DD
12793 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12794 /^X\/\(\/\/\)$/{ s//\1/; q; }
12795 /^X\/\(\/\).*/{ s//\1/; q; }
12796 s/.*/./; q'`
1c710c3c 12797
2aeb72e9
DD
12798
12799# PATH needs CR, and LINENO needs CR and PATH.
12800# Avoid depending upon Character Ranges.
12801as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12802as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12803as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12804as_cr_digits='0123456789'
12805as_cr_alnum=$as_cr_Letters$as_cr_digits
12806
12807# The user is always right.
12808if test "${PATH_SEPARATOR+set}" != set; then
12809 echo "#! /bin/sh" >conf$$.sh
12810 echo "exit 0" >>conf$$.sh
12811 chmod +x conf$$.sh
12812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12813 PATH_SEPARATOR=';'
12814 else
12815 PATH_SEPARATOR=:
12816 fi
12817 rm -f conf$$.sh
12818fi
1c710c3c
DJ
12819
12820
2aeb72e9
DD
12821 as_lineno_1=$LINENO
12822 as_lineno_2=$LINENO
12823 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12824 test "x$as_lineno_1" != "x$as_lineno_2" &&
12825 test "x$as_lineno_3" = "x$as_lineno_2" || {
12826 # Find who we are. Look in the path if we contain no path at all
12827 # relative or not.
12828 case $0 in
12829 *[\\/]* ) as_myself=$0 ;;
12830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831for as_dir in $PATH
12832do
12833 IFS=$as_save_IFS
12834 test -z "$as_dir" && as_dir=.
12835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12836done
1c710c3c 12837
2aeb72e9
DD
12838 ;;
12839 esac
12840 # We did not find ourselves, most probably we were run as `sh COMMAND'
12841 # in which case we are not to be found in the path.
12842 if test "x$as_myself" = x; then
12843 as_myself=$0
12844 fi
12845 if test ! -f "$as_myself"; then
12846 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12847echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12848 { (exit 1); exit 1; }; }
12849 fi
12850 case $CONFIG_SHELL in
12851 '')
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12854do
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for as_base in sh bash ksh sh5; do
12858 case $as_dir in
12859 /*)
12860 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12861 as_lineno_1=$LINENO
12862 as_lineno_2=$LINENO
2aeb72e9 12863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12864 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12865 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12866 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12867 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12868 CONFIG_SHELL=$as_dir/$as_base
12869 export CONFIG_SHELL
12870 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12871 fi;;
12872 esac
12873 done
12874done
12875;;
12876 esac
1c710c3c
DJ
12877
12878 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12879 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12880 # line-number line before each line; the second 'sed' does the real
12881 # work. The second script uses 'N' to pair each line-number line
12882 # with the numbered line, and appends trailing '-' during
12883 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12884 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12885 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12886 sed '=' <$as_myself |
1c710c3c
DJ
12887 sed '
12888 N
2aeb72e9
DD
12889 s,$,-,
12890 : loop
12891 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12892 t loop
2aeb72e9
DD
12893 s,-$,,
12894 s,^['$as_cr_digits']*\n,,
1c710c3c 12895 ' >$as_me.lineno &&
2aeb72e9
DD
12896 chmod +x $as_me.lineno ||
12897 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12898echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12899 { (exit 1); exit 1; }; }
12900
12901 # Don't try to exec as it changes $[0], causing all sort of problems
12902 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12903 # original and so on. Autoconf is especially sensible to this).
12904 . ./$as_me.lineno
1c710c3c
DJ
12905 # Exit status is that of the last command.
12906 exit
12907}
12908
12909
2aeb72e9
DD
12910case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12911 *c*,-n*) ECHO_N= ECHO_C='
12912' ECHO_T=' ' ;;
12913 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12914 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12915esac
12916
2aeb72e9 12917if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12918 as_expr=expr
12919else
12920 as_expr=false
12921fi
12922
12923rm -f conf$$ conf$$.exe conf$$.file
12924echo >conf$$.file
12925if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12926 # We could just check for DJGPP; but this test a) works b) is more generic
12927 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12928 if test -f conf$$.exe; then
12929 # Don't use ln at all; we don't have any links
1c710c3c 12930 as_ln_s='cp -p'
2aeb72e9
DD
12931 else
12932 as_ln_s='ln -s'
12933 fi
1c710c3c
DJ
12934elif ln conf$$.file conf$$ 2>/dev/null; then
12935 as_ln_s=ln
12936else
12937 as_ln_s='cp -p'
12938fi
2aeb72e9 12939rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12940
12941if mkdir -p . 2>/dev/null; then
12942 as_mkdir_p=:
12943else
12944 test -d ./-p && rmdir ./-p
12945 as_mkdir_p=false
12946fi
12947
2aeb72e9 12948as_executable_p="test -f"
1c710c3c
DJ
12949
12950# Sed expression to map a string onto a valid CPP name.
12951as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12952
12953# Sed expression to map a string onto a valid variable name.
12954as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12955
12956
2aeb72e9
DD
12957# IFS
12958# We need space, tab and new line, in precisely that order.
12959as_nl='
12960'
12961IFS=" $as_nl"
12962
12963# CDPATH.
12964$as_unset CDPATH
12965
1c710c3c
DJ
12966exec 6>&1
12967
2aeb72e9 12968# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12969# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12970# values after options handling. Logging --version etc. is OK.
12971exec 5>>config.log
12972{
12973 echo
12974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12975## Running $as_me. ##
12976_ASBOX
12977} >&5
12978cat >&5 <<_CSEOF
12979
1c710c3c 12980This file was extended by $as_me, which was
2aeb72e9 12981generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12982
12983 CONFIG_FILES = $CONFIG_FILES
12984 CONFIG_HEADERS = $CONFIG_HEADERS
12985 CONFIG_LINKS = $CONFIG_LINKS
12986 CONFIG_COMMANDS = $CONFIG_COMMANDS
12987 $ $0 $@
12988
2aeb72e9
DD
12989_CSEOF
12990echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12991echo >&5
1c710c3c
DJ
12992_ACEOF
12993
12994# Files that config.status was made for.
2aeb72e9
DD
12995if test -n "$ac_config_files"; then
12996 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12997fi
1c710c3c 12998
2aeb72e9
DD
12999if test -n "$ac_config_headers"; then
13000 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13001fi
13002
13003if test -n "$ac_config_links"; then
13004 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13005fi
13006
13007if test -n "$ac_config_commands"; then
13008 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13009fi
1c710c3c
DJ
13010
13011cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 13012
1c710c3c
DJ
13013ac_cs_usage="\
13014\`$as_me' instantiates files from templates according to the
13015current configuration.
13016
13017Usage: $0 [OPTIONS] [FILE]...
13018
13019 -h, --help print this help, then exit
2aeb72e9 13020 -V, --version print version number, then exit
1c710c3c
DJ
13021 -q, --quiet do not print progress messages
13022 -d, --debug don't remove temporary files
13023 --recheck update $as_me by reconfiguring in the same conditions
13024 --file=FILE[:TEMPLATE]
13025 instantiate the configuration file FILE
13026
13027Configuration files:
13028$config_files
13029
13030Report bugs to <bug-autoconf@gnu.org>."
11a67599 13031_ACEOF
2aeb72e9 13032
1c710c3c
DJ
13033cat >>$CONFIG_STATUS <<_ACEOF
13034ac_cs_version="\\
13035config.status
2aeb72e9
DD
13036configured by $0, generated by GNU Autoconf 2.59,
13037 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 13038
2aeb72e9 13039Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
13040This config.status script is free software; the Free Software Foundation
13041gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
13042srcdir=$srcdir
13043INSTALL="$INSTALL"
1c710c3c
DJ
13044_ACEOF
13045
13046cat >>$CONFIG_STATUS <<\_ACEOF
13047# If no file are specified by the user, then we need to provide default
13048# value. By we need to know if files were specified by the user.
13049ac_need_defaults=:
13050while test $# != 0
a4b9e93e 13051do
1c710c3c
DJ
13052 case $1 in
13053 --*=*)
2aeb72e9
DD
13054 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13055 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
13056 ac_shift=:
13057 ;;
2aeb72e9 13058 -*)
1c710c3c
DJ
13059 ac_option=$1
13060 ac_optarg=$2
13061 ac_shift=shift
13062 ;;
2aeb72e9
DD
13063 *) # This is not an option, so the user has probably given explicit
13064 # arguments.
13065 ac_option=$1
13066 ac_need_defaults=false;;
1c710c3c
DJ
13067 esac
13068
13069 case $ac_option in
13070 # Handling of the options.
2aeb72e9
DD
13071_ACEOF
13072cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 13073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13074 ac_cs_recheck=: ;;
2aeb72e9
DD
13075 --version | --vers* | -V )
13076 echo "$ac_cs_version"; exit 0 ;;
13077 --he | --h)
13078 # Conflict between --help and --header
13079 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13080Try \`$0 --help' for more information." >&5
13081echo "$as_me: error: ambiguous option: $1
13082Try \`$0 --help' for more information." >&2;}
13083 { (exit 1); exit 1; }; };;
13084 --help | --hel | -h )
13085 echo "$ac_cs_usage"; exit 0 ;;
13086 --debug | --d* | -d )
1c710c3c
DJ
13087 debug=: ;;
13088 --file | --fil | --fi | --f )
13089 $ac_shift
13090 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13091 ac_need_defaults=false;;
2aeb72e9
DD
13092 --header | --heade | --head | --hea )
13093 $ac_shift
13094 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13095 ac_need_defaults=false;;
1c710c3c
DJ
13096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13098 ac_cs_silent=: ;;
13099
13100 # This is an error.
2aeb72e9
DD
13101 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13102Try \`$0 --help' for more information." >&5
13103echo "$as_me: error: unrecognized option: $1
13104Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
13105 { (exit 1); exit 1; }; } ;;
13106
2aeb72e9 13107 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 13108
0b0dc272 13109 esac
1c710c3c 13110 shift
0b0dc272
AM
13111done
13112
1c710c3c 13113ac_configure_extra_args=
0b0dc272 13114
1c710c3c
DJ
13115if $ac_cs_silent; then
13116 exec 6>/dev/null
13117 ac_configure_extra_args="$ac_configure_extra_args --silent"
13118fi
0b0dc272 13119
1c710c3c
DJ
13120_ACEOF
13121cat >>$CONFIG_STATUS <<_ACEOF
13122if \$ac_cs_recheck; then
2aeb72e9
DD
13123 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13124 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
13125fi
13126
13127_ACEOF
13128
1c710c3c 13129
11a67599 13130
2aeb72e9
DD
13131
13132
13133cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
13134for ac_config_target in $ac_config_targets
13135do
2aeb72e9
DD
13136 case "$ac_config_target" in
13137 # Handling of arguments.
13138 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
13139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13140echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13141 { (exit 1); exit 1; }; };;
13142 esac
13143done
13144
13145# If the user did not use the arguments to specify the items to instantiate,
13146# then the envvar interface is used. Set only those that are not.
13147# We use the long form for the default assignment because of an extremely
13148# bizarre bug on SunOS 4.1.3.
13149if $ac_need_defaults; then
13150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13151fi
13152
13153# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 13154# simply because there is no reason to put it here, and in addition,
1c710c3c 13155# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 13156# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
13157$debug ||
13158{
2aeb72e9 13159 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
13160 trap '{ (exit 1); exit 1; }' 1 2 13 15
13161}
2aeb72e9 13162
1c710c3c
DJ
13163# Create a (secure) tmp directory for tmp files.
13164
13165{
2aeb72e9 13166 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13167 test -n "$tmp" && test -d "$tmp"
13168} ||
13169{
2aeb72e9
DD
13170 tmp=./confstat$$-$RANDOM
13171 (umask 077 && mkdir $tmp)
1c710c3c
DJ
13172} ||
13173{
13174 echo "$me: cannot create a temporary directory in ." >&2
13175 { (exit 1); exit 1; }
13176}
13177
2aeb72e9
DD
13178_ACEOF
13179
13180cat >>$CONFIG_STATUS <<_ACEOF
13181
1c710c3c 13182#
2aeb72e9 13183# CONFIG_FILES section.
1c710c3c
DJ
13184#
13185
13186# No need to generate the scripts if there are no CONFIG_FILES.
13187# This happens for instance when ./config.status config.h
2aeb72e9
DD
13188if test -n "\$CONFIG_FILES"; then
13189 # Protect against being on the right side of a sed subst in config.status.
13190 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13191 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13192s,@SHELL@,$SHELL,;t t
13193s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13194s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13195s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13196s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13197s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13198s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13199s,@exec_prefix@,$exec_prefix,;t t
13200s,@prefix@,$prefix,;t t
13201s,@program_transform_name@,$program_transform_name,;t t
13202s,@bindir@,$bindir,;t t
13203s,@sbindir@,$sbindir,;t t
13204s,@libexecdir@,$libexecdir,;t t
13205s,@datadir@,$datadir,;t t
13206s,@sysconfdir@,$sysconfdir,;t t
13207s,@sharedstatedir@,$sharedstatedir,;t t
13208s,@localstatedir@,$localstatedir,;t t
13209s,@libdir@,$libdir,;t t
13210s,@includedir@,$includedir,;t t
13211s,@oldincludedir@,$oldincludedir,;t t
13212s,@infodir@,$infodir,;t t
13213s,@mandir@,$mandir,;t t
13214s,@build_alias@,$build_alias,;t t
13215s,@host_alias@,$host_alias,;t t
13216s,@target_alias@,$target_alias,;t t
13217s,@DEFS@,$DEFS,;t t
13218s,@ECHO_C@,$ECHO_C,;t t
13219s,@ECHO_N@,$ECHO_N,;t t
13220s,@ECHO_T@,$ECHO_T,;t t
13221s,@LIBS@,$LIBS,;t t
ad33ff57 13222s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
2aeb72e9
DD
13223s,@build@,$build,;t t
13224s,@build_cpu@,$build_cpu,;t t
13225s,@build_vendor@,$build_vendor,;t t
13226s,@build_os@,$build_os,;t t
13227s,@build_noncanonical@,$build_noncanonical,;t t
13228s,@host_noncanonical@,$host_noncanonical,;t t
13229s,@target_noncanonical@,$target_noncanonical,;t t
13230s,@host@,$host,;t t
13231s,@host_cpu@,$host_cpu,;t t
13232s,@host_vendor@,$host_vendor,;t t
13233s,@host_os@,$host_os,;t t
13234s,@target@,$target,;t t
13235s,@target_cpu@,$target_cpu,;t t
13236s,@target_vendor@,$target_vendor,;t t
13237s,@target_os@,$target_os,;t t
13238s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13239s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13240s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13241s,@LN@,$LN,;t t
13242s,@LN_S@,$LN_S,;t t
2aeb72e9
DD
13243s,@build_libsubdir@,$build_libsubdir,;t t
13244s,@build_subdir@,$build_subdir,;t t
13245s,@host_subdir@,$host_subdir,;t t
13246s,@target_subdir@,$target_subdir,;t t
13247s,@CC@,$CC,;t t
13248s,@CFLAGS@,$CFLAGS,;t t
13249s,@LDFLAGS@,$LDFLAGS,;t t
13250s,@CPPFLAGS@,$CPPFLAGS,;t t
13251s,@ac_ct_CC@,$ac_ct_CC,;t t
13252s,@EXEEXT@,$EXEEXT,;t t
13253s,@OBJEXT@,$OBJEXT,;t t
13254s,@CXX@,$CXX,;t t
13255s,@CXXFLAGS@,$CXXFLAGS,;t t
13256s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13257s,@GNATBIND@,$GNATBIND,;t t
13258s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13259s,@GNATMAKE@,$GNATMAKE,;t t
13260s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13261s,@do_compare@,$do_compare,;t t
13262s,@gmplibs@,$gmplibs,;t t
13263s,@gmpinc@,$gmpinc,;t t
9e3eba15 13264s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
f8bf9252
SP
13265s,@ppllibs@,$ppllibs,;t t
13266s,@pplinc@,$pplinc,;t t
13267s,@clooglibs@,$clooglibs,;t t
13268s,@clooginc@,$clooginc,;t t
2aeb72e9
DD
13269s,@stage1_languages@,$stage1_languages,;t t
13270s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 13271s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
1c8bd6a3
PB
13272s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13273s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
2aeb72e9 13274s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
d89f0ad6 13275s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
2aeb72e9
DD
13276s,@tooldir@,$tooldir,;t t
13277s,@build_tooldir@,$build_tooldir,;t t
13278s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13279s,@GDB_TK@,$GDB_TK,;t t
13280s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13281s,@build_configargs@,$build_configargs,;t t
13282s,@build_configdirs@,$build_configdirs,;t t
13283s,@host_configargs@,$host_configargs,;t t
13284s,@configdirs@,$configdirs,;t t
13285s,@target_configargs@,$target_configargs,;t t
0999159b
PB
13286s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13287s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 13288s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
13289s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13290s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13291s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13292s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13293s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13294s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13295s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13296s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13297s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13298s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13299s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13300s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
13301s,@config_shell@,$config_shell,;t t
13302s,@YACC@,$YACC,;t t
13303s,@BISON@,$BISON,;t t
13304s,@M4@,$M4,;t t
13305s,@LEX@,$LEX,;t t
13306s,@FLEX@,$FLEX,;t t
13307s,@MAKEINFO@,$MAKEINFO,;t t
13308s,@EXPECT@,$EXPECT,;t t
13309s,@RUNTEST@,$RUNTEST,;t t
13310s,@AR@,$AR,;t t
13311s,@AS@,$AS,;t t
13312s,@DLLTOOL@,$DLLTOOL,;t t
13313s,@LD@,$LD,;t t
13314s,@LIPO@,$LIPO,;t t
13315s,@NM@,$NM,;t t
13316s,@RANLIB@,$RANLIB,;t t
13317s,@STRIP@,$STRIP,;t t
13318s,@WINDRES@,$WINDRES,;t t
901119ae 13319s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
13320s,@OBJCOPY@,$OBJCOPY,;t t
13321s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
13322s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13323s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13324s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13325s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13326s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13327s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13328s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13329s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13330s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13331s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13332s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13333s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13334s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13335s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13336s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 13337s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
13338s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13339s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13340s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13341s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13342s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13343s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13344s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13345s,@MAINT@,$MAINT,;t t
13346s,@stage1_cflags@,$stage1_cflags,;t t
13347s,@stage1_checking@,$stage1_checking,;t t
13348s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13349s,@datarootdir@,$datarootdir,;t t
13350s,@docdir@,$docdir,;t t
13351s,@pdfdir@,$pdfdir,;t t
13352s,@htmldir@,$htmldir,;t t
13353s,@LIBOBJS@,$LIBOBJS,;t t
13354s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13355/@serialization_dependencies@/r $serialization_dependencies
13356s,@serialization_dependencies@,,;t t
13357/@host_makefile_frag@/r $host_makefile_frag
13358s,@host_makefile_frag@,,;t t
13359/@target_makefile_frag@/r $target_makefile_frag
13360s,@target_makefile_frag@,,;t t
13361/@alphaieee_frag@/r $alphaieee_frag
13362s,@alphaieee_frag@,,;t t
13363/@ospace_frag@/r $ospace_frag
13364s,@ospace_frag@,,;t t
13365CEOF
79c06341 13366
1c710c3c
DJ
13367_ACEOF
13368
2aeb72e9
DD
13369 cat >>$CONFIG_STATUS <<\_ACEOF
13370 # Split the substitutions into bite-sized pieces for seds with
13371 # small command number limits, like on Digital OSF/1 and HP-UX.
13372 ac_max_sed_lines=48
13373 ac_sed_frag=1 # Number of current file.
13374 ac_beg=1 # First line for current file.
13375 ac_end=$ac_max_sed_lines # Line after last line for current file.
13376 ac_more_lines=:
13377 ac_sed_cmds=
13378 while $ac_more_lines; do
13379 if test $ac_beg -gt 1; then
13380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13381 else
13382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13383 fi
13384 if test ! -s $tmp/subs.frag; then
13385 ac_more_lines=false
13386 else
13387 # The purpose of the label and of the branching condition is to
13388 # speed up the sed processing (if there are no `@' at all, there
13389 # is no need to browse any of the substitutions).
13390 # These are the two extra sed commands mentioned above.
13391 (echo ':t
13392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13393 if test -z "$ac_sed_cmds"; then
13394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13395 else
13396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13397 fi
13398 ac_sed_frag=`expr $ac_sed_frag + 1`
13399 ac_beg=$ac_end
13400 ac_end=`expr $ac_end + $ac_max_sed_lines`
13401 fi
13402 done
13403 if test -z "$ac_sed_cmds"; then
13404 ac_sed_cmds=cat
11a67599 13405 fi
2aeb72e9 13406fi # test -n "$CONFIG_FILES"
11a67599 13407
11a67599 13408_ACEOF
1c710c3c 13409cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
13410for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13412 case $ac_file in
13413 - | *:- | *:-:* ) # input from stdin
13414 cat >$tmp/stdin
13415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13419 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
13420 esac
13421
2aeb72e9
DD
13422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13423 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
13424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425 X"$ac_file" : 'X\(//\)[^/]' \| \
13426 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
13427 X"$ac_file" : 'X\(/\)' \| \
13428 . : '\(.\)' 2>/dev/null ||
1c710c3c 13429echo X"$ac_file" |
2aeb72e9
DD
13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13432 /^X\(\/\/\)$/{ s//\1/; q; }
13433 /^X\(\/\).*/{ s//\1/; q; }
13434 s/.*/./; q'`
13435 { if $as_mkdir_p; then
13436 mkdir -p "$ac_dir"
13437 else
13438 as_dir="$ac_dir"
1c710c3c 13439 as_dirs=
2aeb72e9
DD
13440 while test ! -d "$as_dir"; do
13441 as_dirs="$as_dir $as_dirs"
13442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
13443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13444 X"$as_dir" : 'X\(//\)[^/]' \| \
13445 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13446 X"$as_dir" : 'X\(/\)' \| \
13447 . : '\(.\)' 2>/dev/null ||
1c710c3c 13448echo X"$as_dir" |
2aeb72e9
DD
13449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13451 /^X\(\/\/\)$/{ s//\1/; q; }
13452 /^X\(\/\).*/{ s//\1/; q; }
13453 s/.*/./; q'`
1c710c3c 13454 done
2aeb72e9
DD
13455 test ! -n "$as_dirs" || mkdir $as_dirs
13456 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13457echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13458 { (exit 1); exit 1; }; }; }
2aeb72e9 13459
1c710c3c 13460 ac_builddir=.
0b0dc272 13461
2aeb72e9 13462if test "$ac_dir" != .; then
1c710c3c 13463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13464 # A "../" for each directory in $ac_dir_suffix.
13465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13466else
13467 ac_dir_suffix= ac_top_builddir=
13468fi
1c710c3c
DJ
13469
13470case $srcdir in
2aeb72e9 13471 .) # No --srcdir option. We are building in place.
1c710c3c 13472 ac_srcdir=.
2aeb72e9
DD
13473 if test -z "$ac_top_builddir"; then
13474 ac_top_srcdir=.
13475 else
13476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13477 fi ;;
13478 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13479 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13480 ac_top_srcdir=$srcdir ;;
13481 *) # Relative path.
13482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13484esac
a4b9e93e 13485
2aeb72e9
DD
13486# Do not use `cd foo && pwd` to compute absolute paths, because
13487# the directories may not exist.
13488case `pwd` in
13489.) ac_abs_builddir="$ac_dir";;
13490*)
13491 case "$ac_dir" in
13492 .) ac_abs_builddir=`pwd`;;
13493 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13494 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13495 esac;;
13496esac
13497case $ac_abs_builddir in
13498.) ac_abs_top_builddir=${ac_top_builddir}.;;
13499*)
13500 case ${ac_top_builddir}. in
13501 .) ac_abs_top_builddir=$ac_abs_builddir;;
13502 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13503 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13504 esac;;
13505esac
13506case $ac_abs_builddir in
13507.) ac_abs_srcdir=$ac_srcdir;;
13508*)
13509 case $ac_srcdir in
13510 .) ac_abs_srcdir=$ac_abs_builddir;;
13511 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13512 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13513 esac;;
13514esac
13515case $ac_abs_builddir in
13516.) ac_abs_top_srcdir=$ac_top_srcdir;;
13517*)
13518 case $ac_top_srcdir in
13519 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13520 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13521 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13522 esac;;
13523esac
0b0dc272 13524
1c710c3c
DJ
13525
13526 case $INSTALL in
13527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13528 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13529 esac
11a67599 13530
2aeb72e9
DD
13531 if test x"$ac_file" != x-; then
13532 { echo "$as_me:$LINENO: creating $ac_file" >&5
13533echo "$as_me: creating $ac_file" >&6;}
13534 rm -f "$ac_file"
13535 fi
13536 # Let's still pretend it is `configure' which instantiates (i.e., don't
13537 # use $as_me), people would be surprised to read:
13538 # /* config.h. Generated by config.status. */
13539 if test x"$ac_file" = x-; then
13540 configure_input=
13541 else
13542 configure_input="$ac_file. "
13543 fi
13544 configure_input=$configure_input"Generated from `echo $ac_file_in |
13545 sed 's,.*/,,'` by configure."
13546
13547 # First look for the input files in the build tree, otherwise in the
13548 # src tree.
13549 ac_file_inputs=`IFS=:
13550 for f in $ac_file_in; do
13551 case $f in
13552 -) echo $tmp/stdin ;;
13553 [\\/$]*)
13554 # Absolute (can't be DOS-style, as IFS=:)
13555 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13556echo "$as_me: error: cannot find input file: $f" >&2;}
13557 { (exit 1); exit 1; }; }
13558 echo "$f";;
13559 *) # Relative
13560 if test -f "$f"; then
13561 # Build tree
13562 echo "$f"
13563 elif test -f "$srcdir/$f"; then
13564 # Source tree
13565 echo "$srcdir/$f"
13566 else
13567 # /dev/null tree
13568 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13569echo "$as_me: error: cannot find input file: $f" >&2;}
13570 { (exit 1); exit 1; }; }
13571 fi;;
13572 esac
13573 done` || { (exit 1); exit 1; }
11a67599 13574_ACEOF
1c710c3c
DJ
13575cat >>$CONFIG_STATUS <<_ACEOF
13576 sed "$ac_vpsub
13577$extrasub
13578_ACEOF
13579cat >>$CONFIG_STATUS <<\_ACEOF
13580:t
13581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13582s,@configure_input@,$configure_input,;t t
13583s,@srcdir@,$ac_srcdir,;t t
13584s,@abs_srcdir@,$ac_abs_srcdir,;t t
13585s,@top_srcdir@,$ac_top_srcdir,;t t
13586s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13587s,@builddir@,$ac_builddir,;t t
13588s,@abs_builddir@,$ac_abs_builddir,;t t
13589s,@top_builddir@,$ac_top_builddir,;t t
13590s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13591s,@INSTALL@,$ac_INSTALL,;t t
13592" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13593 rm -f $tmp/stdin
13594 if test x"$ac_file" != x-; then
13595 mv $tmp/out $ac_file
13596 else
13597 cat $tmp/out
13598 rm -f $tmp/out
13599 fi
11a67599 13600
2aeb72e9
DD
13601done
13602_ACEOF
11a67599 13603
2aeb72e9 13604cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13605
1c710c3c
DJ
13606{ (exit 0); exit 0; }
13607_ACEOF
671aa708 13608chmod +x $CONFIG_STATUS
1c710c3c
DJ
13609ac_clean_files=$ac_clean_files_save
13610
13611
13612# configure is writing to config.log, and then calls config.status.
13613# config.status does its own redirection, appending to config.log.
13614# Unfortunately, on DOS this fails, as config.log is still kept open
13615# by configure, so config.status won't be able to write to it; its
13616# output is simply discarded. So we exec the FD to /dev/null,
13617# effectively closing config.log, so it can be properly (re)opened and
13618# appended to by config.status. When coming back to configure, we
13619# need to make the FD available again.
13620if test "$no_create" != yes; then
13621 ac_cs_success=:
13622 ac_config_status_args=
13623 test "$silent" = yes &&
13624 ac_config_status_args="$ac_config_status_args --quiet"
13625 exec 5>/dev/null
13626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13627 exec 5>>config.log
13628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13629 # would make configure fail if this is the last instruction.
13630 $ac_cs_success || { (exit 1); exit 1; }
13631fi
79c06341 13632