]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Makefile.am: Don't set SECTION_FLAGS with @SECTION_FLAGS@.
[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"
f2689b09 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 extra_mpc_gmp_configure_flags extra_mpc_mpfr_configure_flags stage1_ldflags stage1_libs poststage1_ldflags poststage1_libs 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 compare_exclusions 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
00020c16 938 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e
SP
939 --disable-ppl-version-check disable check for PPL version
940 --disable-cloog-version-check disable check for CLooG version
30b74385 941 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 942 stage1. Mostly useful for compiler development.
30b74385
RW
943 --enable-objc-gc enable use of Boehm's garbage collector with the
944 GNU Objective-C runtime
945 --enable-bootstrap enable bootstrapping [yes if native build]
946 --enable-serial-[{host,target,build}-]configure
947 force sequential configuration of
1c710c3c 948 sub-packages for the host, target or build
30b74385 949 machine, or all sub-packages
1c710c3c
DJ
950 --enable-maintainer-mode enable make rules and dependencies not useful
951 (and sometimes confusing) to the casual installer
30b74385
RW
952 --enable-stage1-checking[=all] choose additional checking for stage1
953 of the compiler
1c710c3c
DJ
954 --enable-werror enable -Werror in bootstrap stage2 and later
955
956Optional Packages:
957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
959 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
960 --with-mpc=PATH specify prefix directory for installed MPC package.
961 Equivalent to --with-mpc-include=PATH/include
962 plus --with-mpc-lib=PATH/lib
963 --with-mpc-include=PATH
964 specify directory for installed MPC include files
965 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
966 --with-mpfr-dir=PATH this option has been REMOVED
967 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
968 Equivalent to --with-mpfr-include=PATH/include
969 plus --with-mpfr-lib=PATH/lib
970 --with-mpfr-include=PATH
30b74385
RW
971 specify directory for installed MPFR include files
972 --with-mpfr-lib=PATH specify directory for the installed MPFR library
973 --with-gmp-dir=PATH this option has been REMOVED
974 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
975 Equivalent to --with-gmp-include=PATH/include
976 plus --with-gmp-lib=PATH/lib
30b74385
RW
977 --with-gmp-include=PATH specify directory for installed GMP include files
978 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
979 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
980 when linking with PPL
00020c16
ILT
981 --with-stage1-ldflags=FLAGS Linker flags for stage1
982 -with-stage1-libs=LIBS Libraries for stage1
983 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
984 --with-boot-libs=LIBS Libraries for stage2 and later
f8bf9252
SP
985 --with-ppl=PATH Specify prefix directory for the installed PPL package
986 Equivalent to --with-ppl-include=PATH/include
987 plus --with-ppl-lib=PATH/lib
988 --with-ppl-include=PATH Specify directory for installed PPL include files
989 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 990 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
991 Equivalent to --with-cloog-include=PATH/include
992 plus --with-cloog-lib=PATH/lib
d789184e
SP
993 --with-cloog-include=PATH Specify directory for installed CLooG include files
994 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 995 --with-build-sysroot=SYSROOT
1c710c3c 996 use sysroot as the system root during the build
c8aea42c
PB
997 --with-debug-prefix-map='A=B C=D ...'
998 map A to B, C to D ... in debug information
30b74385 999 --with-build-time-tools=PATH
1c710c3c 1000 use given path to find target tools during the build
30b74385
RW
1001 --with-datarootdir use datarootdir as the data root directory.
1002 --with-docdir install documentation in this directory.
1003 --with-pdfdir install pdf in this directory.
1004 --with-htmldir install html in this directory.
1c710c3c
DJ
1005
1006Some influential environment variables:
1007 CC C compiler command
1008 CFLAGS C compiler flags
1009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1010 nonstandard directory <lib dir>
2aeb72e9
DD
1011 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1012 headers in a nonstandard directory <include dir>
c3a86da9
DJ
1013 CXX C++ compiler command
1014 CXXFLAGS C++ compiler flags
278a7a38
AO
1015 AR AR for the host
1016 AS AS for the host
1017 DLLTOOL DLLTOOL for the host
1018 LD LD for the host
1019 LIPO LIPO for the host
1020 NM NM for the host
1021 RANLIB RANLIB for the host
1022 STRIP STRIP for the host
1023 WINDRES WINDRES for the host
901119ae 1024 WINDMC WINDMC for the host
278a7a38
AO
1025 OBJCOPY OBJCOPY for the host
1026 OBJDUMP OBJDUMP for the host
1027 CC_FOR_TARGET
1028 CC for the target
1029 CXX_FOR_TARGET
1030 CXX for the target
1031 GCC_FOR_TARGET
1032 GCC for the target
1033 GCJ_FOR_TARGET
1034 GCJ for the target
1035 GFORTRAN_FOR_TARGET
1036 GFORTRAN for the target
1037 AR_FOR_TARGET
1038 AR for the target
1039 AS_FOR_TARGET
1040 AS for the target
1041 DLLTOOL_FOR_TARGET
1042 DLLTOOL for the target
1043 LD_FOR_TARGET
1044 LD for the target
1045 LIPO_FOR_TARGET
1046 LIPO for the target
1047 NM_FOR_TARGET
1048 NM for the target
1049 OBJDUMP_FOR_TARGET
1050 OBJDUMP for the target
1051 RANLIB_FOR_TARGET
1052 RANLIB for the target
1053 STRIP_FOR_TARGET
1054 STRIP for the target
1055 WINDRES_FOR_TARGET
1056 WINDRES for the target
901119ae
KT
1057 WINDMC_FOR_TARGET
1058 WINDMC for the target
1c710c3c
DJ
1059
1060Use these variables to override the choices made by `configure' or to help
1061it to find libraries and programs with nonstandard names/locations.
1062
1063_ACEOF
1064fi
1065
1066if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
2aeb72e9 1068 ac_popdir=`pwd`
1c710c3c 1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1070 test -d $ac_dir || continue
1c710c3c
DJ
1071 ac_builddir=.
1072
2aeb72e9 1073if test "$ac_dir" != .; then
1c710c3c 1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077else
1078 ac_dir_suffix= ac_top_builddir=
1079fi
1c710c3c
DJ
1080
1081case $srcdir in
2aeb72e9 1082 .) # No --srcdir option. We are building in place.
1c710c3c 1083 ac_srcdir=.
2aeb72e9
DD
1084 if test -z "$ac_top_builddir"; then
1085 ac_top_srcdir=.
1086 else
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 fi ;;
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1090 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1091 ac_top_srcdir=$srcdir ;;
1092 *) # Relative path.
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095esac
1096
1097# Do not use `cd foo && pwd` to compute absolute paths, because
1098# the directories may not exist.
1099case `pwd` in
1100.) ac_abs_builddir="$ac_dir";;
1101*)
1102 case "$ac_dir" in
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106 esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_builddir=${ac_top_builddir}.;;
1110*)
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115 esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_srcdir=$ac_srcdir;;
1119*)
1120 case $ac_srcdir in
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_srcdir=$ac_top_srcdir;;
1128*)
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133 esac;;
1c710c3c 1134esac
2aeb72e9
DD
1135
1136 cd $ac_dir
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1139 echo
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1142 echo
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1146 echo
1147 $ac_configure --help
1c710c3c
DJ
1148 else
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1150 fi
1151 cd $ac_popdir
1c710c3c
DJ
1152 done
1153fi
1154
2aeb72e9 1155test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1156if $ac_init_version; then
1157 cat <<\_ACEOF
1158
2aeb72e9 1159Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1160This configure script is free software; the Free Software Foundation
1161gives unlimited permission to copy, distribute and modify it.
1162_ACEOF
2aeb72e9 1163 exit 0
0b0dc272 1164fi
2aeb72e9
DD
1165exec 5>config.log
1166cat >&5 <<_ACEOF
1c710c3c
DJ
1167This file contains any messages produced by compilers while
1168running configure, to aid debugging if configure makes a mistake.
1169
1170It was created by $as_me, which was
2aeb72e9 1171generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1172
1173 $ $0 $@
1174
1175_ACEOF
1176{
1177cat <<_ASUNAME
1178## --------- ##
1179## Platform. ##
1180## --------- ##
1181
1182hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187
1188/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190
1191/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1194hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1195/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198
1199_ASUNAME
1200
1201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202for as_dir in $PATH
1203do
1204 IFS=$as_save_IFS
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1207done
1208
1209} >&5
1210
1211cat >&5 <<_ACEOF
1212
1213
1214## ----------- ##
1215## Core tests. ##
1216## ----------- ##
1217
1218_ACEOF
1219
1220
1221# Keep a trace of the command line.
1222# Strip out --no-create and --no-recursion so they do not pile up.
1223# Strip out --silent because we don't want to record it for future runs.
1224# Also quote any args containing shell meta-characters.
1225# Make two passes to allow for proper duplicate-argument suppression.
1226ac_configure_args=
1227ac_configure_args0=
1228ac_configure_args1=
2aeb72e9 1229ac_sep=
1c710c3c
DJ
1230ac_must_keep_next=false
1231for ac_pass in 1 2
1232do
1233 for ac_arg
1234 do
1235 case $ac_arg in
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 continue ;;
2aeb72e9 1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 esac
1243 case $ac_pass in
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 2)
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1249 else
1250 case $ac_arg in
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257 esac
1258 ;;
1259 -* ) ac_must_keep_next=true ;;
1260 esac
1261 fi
2aeb72e9
DD
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1264 ac_sep=" "
1c710c3c
DJ
1265 ;;
1266 esac
1267 done
1268done
1269$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271
1272# When interrupted or exit'd, cleanup temporary files, and complete
1273# config.log. We remove comments because anyway the quotes in there
1274# would cause problems or look ugly.
2aeb72e9
DD
1275# WARNING: Be sure not to use single quotes in there, as some shells,
1276# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1277trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1279 {
1280 echo
1281
1282 cat <<\_ASBOX
1283## ---------------- ##
1284## Cache variables. ##
1285## ---------------- ##
1286_ASBOX
1287 echo
1288 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1289{
1c710c3c 1290 (set) 2>&1 |
2aeb72e9
DD
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292 *ac_space=\ *)
1c710c3c 1293 sed -n \
2aeb72e9
DD
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1296 ;;
1c710c3c 1297 *)
2aeb72e9
DD
1298 sed -n \
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1300 ;;
2aeb72e9
DD
1301 esac;
1302}
1c710c3c
DJ
1303 echo
1304
1305 cat <<\_ASBOX
1306## ----------------- ##
1307## Output variables. ##
1308## ----------------- ##
1309_ASBOX
1310 echo
1311 for ac_var in $ac_subst_vars
1312 do
2aeb72e9
DD
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1315 done | sort
1316 echo
1317
1318 if test -n "$ac_subst_files"; then
1319 cat <<\_ASBOX
2aeb72e9
DD
1320## ------------- ##
1321## Output files. ##
1322## ------------- ##
1c710c3c
DJ
1323_ASBOX
1324 echo
1325 for ac_var in $ac_subst_files
1326 do
2aeb72e9
DD
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1329 done | sort
1330 echo
1331 fi
1332
1333 if test -s confdefs.h; then
1334 cat <<\_ASBOX
1335## ----------- ##
1336## confdefs.h. ##
1337## ----------- ##
1338_ASBOX
1339 echo
2aeb72e9 1340 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1341 echo
1342 fi
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1346 } >&5
2aeb72e9
DD
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1349 exit $exit_status
2aeb72e9 1350 ' 0
1c710c3c
DJ
1351for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353done
1354ac_signal=0
1355
1356# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1357rm -rf conftest* confdefs.h
1358# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359echo >confdefs.h
1c710c3c
DJ
1360
1361# Predefined preprocessor variables.
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_NAME "$PACKAGE_NAME"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_VERSION "$PACKAGE_VERSION"
1375_ACEOF
0b0dc272 1376
1c710c3c
DJ
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_STRING "$PACKAGE_STRING"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385_ACEOF
1386
1387
1388# Let the site file select an alternate cache file if it wants to.
671aa708 1389# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1390if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 else
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1395 fi
671aa708 1396fi
2aeb72e9 1397for ac_site_file in $CONFIG_SITE; do
671aa708 1398 if test -r "$ac_site_file"; then
1c710c3c
DJ
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1402 . "$ac_site_file"
1403 fi
1404done
1405
1406if test -r "$cache_file"; then
1c710c3c
DJ
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411echo "$as_me: loading cache $cache_file" >&6;}
1412 case $cache_file in
2aeb72e9
DD
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1c710c3c
DJ
1415 esac
1416 fi
671aa708 1417else
1c710c3c
DJ
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419echo "$as_me: creating cache $cache_file" >&6;}
1420 >$cache_file
1421fi
1422
1423# Check that the precious variables saved in the cache have kept the same
1424# value.
1425ac_cache_corrupted=false
2aeb72e9
DD
1426for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1432 case $ac_old_set,$ac_new_set in
1433 set,)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,set)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,);;
1442 *)
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
7142fb32
PB
1444 # differences in whitespace do not lead to failure.
1445 ac_old_val_w=`echo x $ac_old_val`
1446 ac_new_val_w=`echo x $ac_new_val`
1447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1c710c3c 1449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
7142fb32
PB
1450 ac_cache_corrupted=:
1451 else
1452 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1453echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1454 eval $ac_var=\$ac_old_val
1455 fi
1456 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1457echo "$as_me: former value: \`$ac_old_val'" >&2;}
1458 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1459echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
2aeb72e9
DD
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1473 fi
1474done
1475if $ac_cache_corrupted; then
18c04407
RW
1476 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1477echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
671aa708
NN
1483fi
1484
2aeb72e9
DD
1485ac_ext=c
1486ac_cpp='$CPP $CPPFLAGS'
1487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1c710c3c
DJ
1491
1492
1493
1494
671aa708
NN
1495
1496
d02c69be 1497
1c710c3c
DJ
1498
1499
1500
1501
1502
1503
1504
1505
1506
18c04407
RW
1507
1508
1509
1c710c3c
DJ
1510
1511
1512
ad33ff57
RW
1513
1514progname=$0
1515# if PWD already has a value, it is probably wrong.
1516if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1517
1518# Export original configure arguments for use by sub-configures.
1519# Quote arguments with shell meta charatcers.
1520TOPLEVEL_CONFIGURE_ARGUMENTS=
1521set -- "$progname" "$@"
1522for ac_arg
1523do
1524 case "$ac_arg" in
1525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1527 # if the argument is of the form -foo=baz, quote the baz part only
1528 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1529 *) ;;
1530 esac
1531 # Add the quoted argument to the list.
1532 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1533done
1534if test "$silent" = yes; then
1535 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1536fi
1537# Remove the initial space we just introduced and, as these will be
1538# expanded by make, quote '$'.
1539TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1540
1c710c3c
DJ
1541
1542# Find the build, host, and target systems.
671aa708 1543ac_aux_dir=
2aeb72e9
DD
1544for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
671aa708
NN
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
2aeb72e9 1549 elif test -f $ac_dir/install.sh; then
671aa708
NN
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
2aeb72e9 1553 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
671aa708
NN
1557 fi
1558done
1559if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1562 { (exit 1); exit 1; }; }
671aa708 1563fi
2aeb72e9
DD
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1567
1c710c3c 1568# Make sure we can run config.sub.
2aeb72e9
DD
1569$ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1572 { (exit 1); exit 1; }; }
1573
2aeb72e9
DD
1574echo "$as_me:$LINENO: checking build system type" >&5
1575echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1576if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
2aeb72e9
DD
1579 ac_cv_build_alias=$build_alias
1580test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
2aeb72e9
DD
1586ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1589 { (exit 1); exit 1; }; }
1590
1591fi
2aeb72e9
DD
1592echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1594build=$ac_cv_build
2aeb72e9
DD
1595build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1598
671aa708 1599
1c710c3c
DJ
1600 case ${build_alias} in
1601 "") build_noncanonical=${build} ;;
1602 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1603esac
1604
1605
af71363e 1606
1c710c3c
DJ
1607 case ${host_alias} in
1608 "") host_noncanonical=${build_noncanonical} ;;
1609 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1610esac
1611
af71363e 1612
1c710c3c
DJ
1613
1614 case ${target_alias} in
1615 "") target_noncanonical=${host_noncanonical} ;;
1616 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1617esac
1618
af71363e 1619
1c710c3c
DJ
1620
1621
1622test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1624 NONENONEs,x,x, &&
1c710c3c 1625 program_transform_name=s,y,y,
af71363e 1626
2aeb72e9
DD
1627echo "$as_me:$LINENO: checking host system type" >&5
1628echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1629if test "${ac_cv_host+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1631else
2aeb72e9
DD
1632 ac_cv_host_alias=$host_alias
1633test -z "$ac_cv_host_alias" &&
1634 ac_cv_host_alias=$ac_cv_build_alias
1635ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1638 { (exit 1); exit 1; }; }
1639
af71363e 1640fi
2aeb72e9
DD
1641echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1642echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1643host=$ac_cv_host
2aeb72e9
DD
1644host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649echo "$as_me:$LINENO: checking target system type" >&5
1650echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1651if test "${ac_cv_target+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
2aeb72e9
DD
1654 ac_cv_target_alias=$target_alias
1655test "x$ac_cv_target_alias" = "x" &&
1656 ac_cv_target_alias=$ac_cv_host_alias
1657ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1659echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1660 { (exit 1); exit 1; }; }
1661
1662fi
2aeb72e9
DD
1663echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1664echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1665target=$ac_cv_target
2aeb72e9
DD
1666target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1669
1670
1671# The aliases save the names the user supplied, while $host etc.
1672# will get canonicalized.
1673test -n "$target_alias" &&
1674 test "$program_prefix$program_suffix$program_transform_name" = \
1675 NONENONEs,x,x, &&
1676 program_prefix=${target_alias}-
671aa708 1677test "$program_prefix" != NONE &&
2aeb72e9 1678 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1679# Use a double $ so make ignores it.
1680test "$program_suffix" != NONE &&
2aeb72e9 1681 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1682# Double any \ or $. echo might interpret backslashes.
1683# By default was `s,x,x', remove it if useless.
1684cat <<\_ACEOF >conftest.sed
1685s/[\\$]/&&/g;s/;s,x,x,$//
1686_ACEOF
1687program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1688rm conftest.sed
af71363e 1689
671aa708
NN
1690
1691
775956d0
NN
1692# Get 'install' or 'install-sh' and its variants.
1693# Find a good install program. We prefer a C program (faster),
1694# so one script is as good as another. But avoid the broken or
1695# incompatible versions:
1696# SysV /etc/install, /usr/sbin/install
1697# SunOS /usr/etc/install
1698# IRIX /sbin/install
1699# AIX /bin/install
1c710c3c 1700# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1701# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1704# OS/2's system install, which has a completely different semantic
775956d0 1705# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1706# Reject install programs that cannot install multiple files.
2aeb72e9
DD
1707echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1709if test -z "$INSTALL"; then
1c710c3c
DJ
1710if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714for as_dir in $PATH
1715do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1719case $as_dir/ in
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 /usr/ucb/* ) ;;
1724 *)
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1727 # by default.
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1731 if test $ac_prog = install &&
1c710c3c 1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1733 # AIX install. It has an incompatible calling convention.
1734 :
1c710c3c
DJ
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1738 :
775956d0 1739 else
38d24731
RW
1740 rm -rf conftest.one conftest.two conftest.dir
1741 echo one > conftest.one
1742 echo two > conftest.two
1743 mkdir conftest.dir
1744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1745 test -s conftest.one && test -s conftest.two &&
1746 test -s conftest.dir/conftest.one &&
1747 test -s conftest.dir/conftest.two
1748 then
1749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 break 3
1751 fi
775956d0
NN
1752 fi
1753 fi
1754 done
1c710c3c
DJ
1755 done
1756 ;;
1757esac
1758done
1759
38d24731 1760rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
1761
1762fi
1763 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1764 INSTALL=$ac_cv_path_install
775956d0 1765 else
38d24731
RW
1766 # As a last resort, use the slow shell script. Don't cache a
1767 # value for INSTALL within a source directory, because that will
775956d0 1768 # break other packages using the cache if that directory is
38d24731 1769 # removed, or if the value is a relative name.
1c710c3c 1770 INSTALL=$ac_install_sh
775956d0
NN
1771 fi
1772fi
2aeb72e9
DD
1773echo "$as_me:$LINENO: result: $INSTALL" >&5
1774echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1775
1776# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1777# It thinks the first close brace ends the variable substitution.
1778test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1779
1c710c3c 1780test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1781
1782test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1783
2aeb72e9
DD
1784echo "$as_me:$LINENO: checking whether ln works" >&5
1785echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1786if test "${acx_cv_prog_LN+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1788else
1789 rm -f conftestdata_t
1790echo >conftestdata_f
1791if ln conftestdata_f conftestdata_t 2>/dev/null
1792then
1793 acx_cv_prog_LN=ln
1794else
1795 acx_cv_prog_LN=no
1796fi
1797rm -f conftestdata_f conftestdata_t
1798
1799fi
1800if test $acx_cv_prog_LN = no; then
1801 LN="cp"
2aeb72e9
DD
1802 echo "$as_me:$LINENO: result: no, using $LN" >&5
1803echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1804else
1805 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1806 echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
ad6717df
PB
1808fi
1809
2aeb72e9
DD
1810echo "$as_me:$LINENO: checking whether ln -s works" >&5
1811echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1812LN_S=$as_ln_s
1813if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1814 echo "$as_me:$LINENO: result: yes" >&5
1815echo "${ECHO_T}yes" >&6
fb0103e5 1816else
2aeb72e9
DD
1817 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1818echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1819fi
1820
775956d0 1821
79c06341 1822### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1823### If we are on Windows, search for the shell. This will permit people
1824### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1825### without also having to set CONFIG_SHELL. This code will work when
1826### using bash, which sets OSTYPE.
1827case "${OSTYPE}" in
1828*win32*)
671aa708
NN
1829 if test x${CONFIG_SHELL} = x ; then
1830 if test ! -f /bin/sh ; then
1831 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1832 CONFIG_SHELL=${SHELL}
1833 export CONFIG_SHELL
1834 else
1835 for prog in sh sh.exe bash bash.exe; do
1836 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1837 for dir in $PATH; do
1838 test -z "$dir" && dir=.
1839 if test -f $dir/$prog; then
1840 CONFIG_SHELL=$dir/$prog
1841 export CONFIG_SHELL
1842 break
1843 fi
1844 done
1845 IFS="$save_ifs"
1846 test -n "${CONFIG_SHELL}" && break
1847 done
1848 fi
1849 fi
1850 fi
1851 ;;
1852esac
1853
1854config_shell=${CONFIG_SHELL-/bin/sh}
1855
671aa708 1856moveifchange=${srcdir}/move-if-change
79c06341 1857
ee6a22df
L
1858srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1859
1860# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1861# a relative path.
1862if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1863 INSTALL="${srcpwd}/install-sh -c"
1864fi
1865
671aa708
NN
1866# Set srcdir to "." if that's what it is.
1867# This is important for multilib support.
1868pwd=`${PWDCMD-pwd}`
671aa708
NN
1869if test "${pwd}" = "${srcpwd}" ; then
1870 srcdir=.
79c06341
JL
1871fi
1872
671aa708 1873topsrcdir=$srcpwd
5d4a5ee6 1874
671aa708 1875extra_host_args=
afabd8e6 1876
671aa708
NN
1877### To add a new directory to the tree, first choose whether it is a target
1878### or a host dependent tool. Then put it into the appropriate list
1879### (library or tools, host or target), doing a dependency sort.
79c06341 1880
1c710c3c 1881# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1882# configdirs, or target_configdirs; see the serialization section below.
79c06341 1883
1c710c3c
DJ
1884# Dependency sorting is only needed when *configuration* must be done in
1885# a particular order. In all cases a dependency should be specified in
671aa708 1886# the Makefile, whether or not it's implicitly specified here.
79c06341 1887
671aa708
NN
1888# Double entries in build_configdirs, configdirs, or target_configdirs may
1889# cause circular dependencies and break everything horribly.
79c06341 1890
23f6b2f9
PB
1891# these library is used by various programs built for the build
1892# environment
1893#
1894build_libs="build-libiberty"
1895
1896# these tools are built for the build environment
71b5d516 1897build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1898
671aa708
NN
1899# these libraries are used by various programs built for the host environment
1900#
acd26225 1901host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
671aa708 1902
671aa708
NN
1903# these tools are built for the host environment
1904# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1905# know that we are building the simulator.
1906# binutils, gas and ld appear in that order because it makes sense to run
1907# "make check" in that particular order.
5afab7ad 1908# If --enable-gold is used, "gold" will replace "ld".
8c32c9f0 1909host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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
1910
1911# libgcj represents the runtime libraries only used by gcj.
1912libgcj="target-libffi \
671aa708
NN
1913 target-zlib \
1914 target-qthreads \
1915 target-libjava"
1916
1917# these libraries are built for the target environment, and are built after
1918# the host libraries and the host tools (which may be a cross compiler)
1919#
291f172e
DJ
1920target_libraries="target-libgcc \
1921 target-libiberty \
671aa708
NN
1922 target-libgloss \
1923 target-newlib \
6d3b5aea 1924 target-libgomp \
cb543528 1925 target-libstdc++-v3 \
6de9cd9a 1926 target-libmudflap \
77008252 1927 target-libssp \
6de9cd9a 1928 target-libgfortran \
7cd0cf9c 1929 target-boehm-gc \
77d187bc 1930 ${libgcj} \
d9cdb878 1931 target-libobjc \
6d3b5aea 1932 target-libada"
671aa708 1933
4dbda6f0
NN
1934# these tools are built using the target libraries, and are intended to
1935# run only in the target environment
671aa708 1936#
4dbda6f0 1937# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1938# list belongs in this list. those programs are also very likely
1939# candidates for the "native_only" list which follows
1940#
97286f7f 1941target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1942
671aa708 1943################################################################################
79c06341 1944
671aa708
NN
1945## All tools belong in one of the four categories, and are assigned above
1946## We assign ${configdirs} this way to remove all embedded newlines. This
1947## is important because configure will choke if they ever get through.
1948## ${configdirs} is directories we build using the host tools.
1949## ${target_configdirs} is directories we build using the target tools.
671aa708 1950configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1951target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1952build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1953
ac9e6043
RW
1954
1955
671aa708 1956################################################################################
79c06341 1957
671aa708 1958srcname="gnu development package"
79c06341 1959
671aa708
NN
1960# This gets set non-empty for some net releases of packages.
1961appdirs=""
79c06341 1962
671aa708
NN
1963# Define is_cross_compiler to save on calls to 'test'.
1964is_cross_compiler=
1965if test x"${host}" = x"${target}" ; then
1966 is_cross_compiler=no
79c06341 1967else
671aa708 1968 is_cross_compiler=yes
1c710c3c 1969fi
79c06341 1970
b4acb5ef 1971# Find the build and target subdir names.
8b87bb96 1972
2e9e6f68
DJ
1973# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1974# have matching libraries, they should use host libraries: Makefile.tpl
1975# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1976# However, they still use the build modules, because the corresponding
1977# host modules (e.g. bison) are only built for the host when bootstrap
1978# finishes. So:
1979# - build_subdir is where we find build modules, and never changes.
1980# - build_libsubdir is where we find build libraries, and can be overridden.
1981
1982# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1983build_subdir="build-${build_noncanonical}"
1c710c3c 1984
2aeb72e9 1985# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1986if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1987 withval="$with_build_libsubdir"
1988 build_libsubdir="$withval"
2e9e6f68
DJ
1989else
1990 build_libsubdir="$build_subdir"
2aeb72e9 1991fi;
215c351a
PB
1992# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1993if ( test $srcdir = . && test -d gcc ) \
1994 || test -d $srcdir/../host-${host_noncanonical}; then
1995 host_subdir="host-${host_noncanonical}"
1996else
1997 host_subdir=.
1998fi
8b87bb96
NN
1999# No prefix.
2000target_subdir=${target_noncanonical}
1c710c3c 2001
79c06341 2002
671aa708
NN
2003# Skipdirs are removed silently.
2004skipdirs=
2005# Noconfigdirs are removed loudly.
2006noconfigdirs=""
79c06341 2007
671aa708
NN
2008use_gnu_ld=
2009# Make sure we don't let GNU ld be added if we didn't want it.
2010if test x$with_gnu_ld = xno ; then
2011 use_gnu_ld=no
5afab7ad 2012 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2013fi
2014
671aa708
NN
2015use_gnu_as=
2016# Make sure we don't let GNU as be added if we didn't want it.
2017if test x$with_gnu_as = xno ; then
2018 use_gnu_as=no
2019 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2020fi
2021
1c710c3c 2022# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2023# it's not even worth trying to configure, much less build, that tool.
79c06341 2024
671aa708
NN
2025case ${with_x} in
2026 yes | "") ;; # the default value for this tree is that X11 is available
2027 no)
b4f96efe 2028 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2029 # We won't be able to build gdbtk without X.
1c710c3c 2030 enable_gdbtk=no
671aa708
NN
2031 ;;
2032 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2033esac
79c06341 2034
671aa708 2035# Some tools are only suitable for building in a "native" situation.
1c710c3c 2036# Remove these if host!=target.
9e299237 2037native_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 2038
671aa708
NN
2039# Similarly, some are only suitable for cross toolchains.
2040# Remove these if host=target.
2041cross_only="target-libgloss target-newlib target-opcodes"
2042
2043case $is_cross_compiler in
2044 no) skipdirs="${skipdirs} ${cross_only}" ;;
2045 yes) skipdirs="${skipdirs} ${native_only}" ;;
2046esac
79c06341 2047
671aa708
NN
2048# If both --with-headers and --with-libs are specified, default to
2049# --without-newlib.
ee6a22df
L
2050if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2051 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2052 if test x"${with_newlib}" = x ; then
2053 with_newlib=no
2054 fi
79c06341
JL
2055fi
2056
671aa708
NN
2057# Recognize --with-newlib/--without-newlib.
2058case ${with_newlib} in
2059 no) skipdirs="${skipdirs} target-newlib" ;;
2060 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2061esac
79c06341 2062
5afab7ad
ILT
2063# Handle --enable-gold.
2064
2065# Check whether --enable-gold or --disable-gold was given.
2066if test "${enable_gold+set}" = set; then
2067 enableval="$enable_gold"
2068 ENABLE_GOLD=$enableval
2069else
2070 ENABLE_GOLD=no
2071fi;
2072if test "${ENABLE_GOLD}" = "yes"; then
2073 # Check for ELF target.
2074 is_elf=no
2075 case "${target}" in
2076 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2077 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
144c9175 2078 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
5afab7ad
ILT
2079 case "${target}" in
2080 *-*-linux*aout* | *-*-linux*oldld*)
2081 ;;
2082 *)
2083 is_elf=yes
2084 ;;
2085 esac
2086 esac
2087
2088 if test "$is_elf" = "yes"; then
2089 # Check for target supported by gold.
2090 case "${target}" in
7f1245df 2091 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
5afab7ad
ILT
2092 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2093 ;;
2094 esac
2095 fi
2096fi
2097
671aa708 2098# Configure extra directories which are host specific
79c06341 2099
671aa708
NN
2100case "${host}" in
2101 *-cygwin*)
2102 configdirs="$configdirs libtermcap" ;;
2103esac
79c06341 2104
4fab7234
HPN
2105# A target can indicate whether a language isn't supported for some reason.
2106# Only spaces may be used in this macro; not newlines or tabs.
2107unsupported_languages=
2108
1c710c3c 2109# Remove more programs from consideration, based on the host or
671aa708
NN
2110# target this usually means that a port of the program doesn't
2111# exist yet.
ec8d6ddc 2112
671aa708
NN
2113case "${host}" in
2114 hppa*64*-*-*)
2115 noconfigdirs="$noconfigdirs byacc"
2116 ;;
f2a0e225 2117 i[3456789]86-*-vsta)
b4f96efe 2118 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2119 ;;
f2a0e225 2120 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2121 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2122 ;;
95af8923
KT
2123 x86_64-*-mingw*)
2124 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2125 ;;
f2a0e225 2126 i[3456789]86-*-mingw32*)
b4f96efe 2127 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2128 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2129 ;;
f2a0e225 2130 i[3456789]86-*-beos*)
b4f96efe 2131 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2132 ;;
671aa708 2133 *-*-cygwin*)
a22c2d8d 2134 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2135 ;;
2136 *-*-netbsd*)
a22c2d8d 2137 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2138 ;;
2139 ppc*-*-pe)
b4f96efe 2140 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2141 ;;
2142 powerpc-*-beos*)
b4f96efe 2143 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2144 ;;
671aa708 2145esac
ec8d6ddc 2146
6de9cd9a 2147
2aeb72e9 2148# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2149if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2150 enableval="$enable_libada"
2151 ENABLE_LIBADA=$enableval
d9cdb878
AC
2152else
2153 ENABLE_LIBADA=yes
2aeb72e9 2154fi;
d9cdb878 2155if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2156 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2157fi
2158
2aeb72e9 2159# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2160if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2161 enableval="$enable_libssp"
2162 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2163else
2164 ENABLE_LIBSSP=yes
2aeb72e9 2165fi;
ef0087a7 2166
671aa708
NN
2167# Save it here so that, even in case of --enable-libgcj, if the Java
2168# front-end isn't enabled, we still get libgcj disabled.
2169libgcj_saved=$libgcj
2170case $enable_libgcj in
2171yes)
2172 # If we reset it here, it won't get added to noconfigdirs in the
2173 # target-specific build rules, so it will be forcibly enabled
2174 # (unless the Java language itself isn't enabled).
2175 libgcj=
2176 ;;
2177no)
2178 # Make sure we get it printed in the list of not supported target libs.
2179 noconfigdirs="$noconfigdirs ${libgcj}"
2180 ;;
2181esac
ec8d6ddc 2182
6de9cd9a 2183
27079765
AH
2184# Disable libmudflap on some systems.
2185if test x$enable_libmudflap = x ; then
dfcada9a 2186 case "${target}" in
416ac4d4 2187 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2188 # Enable libmudflap by default in GNU and friends.
dfcada9a 2189 ;;
a3e8d8b4
LR
2190 *-*-freebsd*)
2191 # Enable libmudflap by default in FreeBSD.
2192 ;;
dfcada9a
MM
2193 *)
2194 # Disable it by default everywhere else.
2195 noconfigdirs="$noconfigdirs target-libmudflap"
2196 ;;
2197 esac
27079765 2198fi
6de9cd9a 2199
27079765
AH
2200# Disable libgomp on non POSIX hosted systems.
2201if test x$enable_libgomp = x ; then
953ff289
DN
2202 # Enable libgomp by default on hosted POSIX systems.
2203 case "${target}" in
416ac4d4 2204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
2205 ;;
2206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2207 ;;
04879af3 2208 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2209 ;;
cac90078 2210 *-*-darwin* | *-*-aix*)
953ff289
DN
2211 ;;
2212 *)
2213 noconfigdirs="$noconfigdirs target-libgomp"
2214 ;;
2215 esac
27079765 2216fi
953ff289 2217
c03353e2
RIL
2218# Default libgloss CPU subdirectory.
2219libgloss_dir="$target_cpu"
6de9cd9a 2220
671aa708
NN
2221case "${target}" in
2222 *-*-chorusos)
cb253473 2223 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2224 ;;
75eeae1a 2225 powerpc-*-darwin*)
e1514c3f 2226 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2227 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2228 ;;
b93133bc 2229 i[3456789]86-*-darwin* | x86_64-*-darwin[912]*)
0db3a858
TG
2230 noconfigdirs="$noconfigdirs ld gas gprof"
2231 noconfigdirs="$noconfigdirs sim target-rda"
2232 ;;
42c1cd8a
AT
2233 *-*-darwin*)
2234 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2235 noconfigdirs="$noconfigdirs sim target-rda"
2236 noconfigdirs="$noconfigdirs ${libgcj}"
2237 ;;
671aa708 2238 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2239 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2240 ;;
c3f84f61 2241 *-*-freebsd*)
6de9cd9a
DN
2242 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2243 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2244 && test -f /usr/local/include/gmp.h; then
2245 with_gmp=/usr/local
2246 fi
2247
2248 # Skip some stuff that's unsupported on some FreeBSD configurations.
2249 case "${target}" in
2250 i*86-*-*) ;;
2251 alpha*-*-*) ;;
2252 *)
cb253473 2253 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2254 ;;
2255 esac
2256 ;;
ef4e7569
US
2257 *-*-kaos*)
2258 # Remove unsupported stuff on all kaOS configurations.
cb253473 2259 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2260 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2261 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2262 noconfigdirs="$noconfigdirs target-libgloss"
2263 ;;
671aa708
NN
2264 *-*-netbsd*)
2265 # Skip some stuff on all NetBSD configurations.
2266 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2267
2268 # Skip some stuff that's unsupported on some NetBSD configurations.
2269 case "${target}" in
2270 i*86-*-netbsdelf*) ;;
0590b963 2271 arm*-*-netbsdelf*) ;;
671aa708 2272 *)
cb253473 2273 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2274 ;;
2275 esac
2276 ;;
61fec9ff 2277 *-*-netware*)
cb253473 2278 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2279 ;;
2280 *-*-rtems*)
cb253473 2281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2282 ;;
a8ba31f2
EC
2283 # The tpf target doesn't support gdb yet.
2284 *-*-tpf*)
cb253473 2285 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2286 ;;
5785c0ed 2287 *-*-uclinux*)
cb253473 2288 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2289 ;;
671aa708 2290 *-*-vxworks*)
cb253473 2291 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2292 ;;
2293 alpha*-dec-osf*)
2294 # ld works, but does not support shared libraries.
2295 # newlib is not 64 bit ready. I'm not sure about fileutils.
2296 # gas doesn't generate exception information.
2297 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2298 ;;
2299 alpha*-*-*vms*)
cb253473 2300 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2301 ;;
2302 alpha*-*-linux*)
2303 # newlib is not 64 bit ready
2304 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2305 ;;
671aa708
NN
2306 alpha*-*-*)
2307 # newlib is not 64 bit ready
cb253473 2308 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2309 ;;
33952f6f 2310 am33_2.0-*-linux*)
cb253473 2311 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2312 ;;
671aa708 2313 sh-*-linux*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2315 ;;
671aa708 2316 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2317 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2318 noconfigdirs="$noconfigdirs target-examples"
2319 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2320 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2321 noconfigdirs="$noconfigdirs expect dejagnu"
2322 # the C++ libraries don't build on top of CE's C libraries
cb543528 2323 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2324 noconfigdirs="$noconfigdirs target-newlib"
2325 case "${host}" in
2326 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2327 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2328 ;;
2329 esac
c03353e2 2330 libgloss_dir=wince
671aa708
NN
2331 ;;
2332 arc-*-*)
cb253473 2333 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2334 ;;
ee6a22df 2335 arm-semi-aof )
ee6a22df 2336 ;;
671aa708 2337 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2338 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2339 libgloss_dir=arm
671aa708 2340 ;;
b3f8d95d 2341 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2342 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2343 libgloss_dir=arm
671aa708 2344 ;;
077fc835 2345 arm*-*-linux-gnueabi)
c4e9bf2b 2346 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2347 case ${with_newlib} in
2348 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2349 esac
c03353e2 2350 libgloss_dir=arm
077fc835 2351 ;;
972974fc 2352 arm*-*-symbianelf*)
cb253473 2353 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2354 libgloss_dir=arm
972974fc 2355 ;;
671aa708 2356 arm-*-pe*)
cb253473 2357 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2358 ;;
671aa708 2359 thumb-*-coff)
cb253473 2360 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2361 ;;
2362 thumb-*-elf)
cb253473 2363 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2364 ;;
671aa708 2365 thumb-*-pe)
cb253473 2366 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2367 ;;
2368 arm-*-riscix*)
cb253473 2369 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2370 ;;
2371 avr-*-*)
ac3949d9 2372 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 2373 ;;
6b65a26d 2374 bfin-*-*)
8b3c6c5a 2375 noconfigdirs="$noconfigdirs gdb"
61efc800 2376 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2377 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2378 fi
2379 ;;
671aa708 2380 c4x-*-* | tic4x-*-*)
cb253473 2381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2382 ;;
2383 c54x*-*-* | tic54x-*-*)
cb253473 2384 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2385 ;;
c993ae60
SR
2386 cr16-*-*)
2387 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2388 ;;
40d64b5a 2389 cris-*-* | crisv32-*-*)
4fab7234 2390 unsupported_languages="$unsupported_languages java"
40d64b5a 2391 case "${target}" in
c2e0d3a9 2392 *-*-aout)
7f26dfa3 2393 unsupported_languages="$unsupported_languages fortran"
4fab7234 2394 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2395 *-*-elf)
789ec619 2396 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2397 *-*-linux*)
789ec619 2398 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2399 *)
7f26dfa3 2400 unsupported_languages="$unsupported_languages fortran"
cb253473 2401 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2402 esac
c03353e2 2403 libgloss_dir=cris
671aa708 2404 ;;
25b656e7 2405 crx-*-*)
cb253473 2406 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2407 ;;
671aa708 2408 d10v-*-*)
cb253473 2409 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2410 ;;
2411 d30v-*-*)
cb253473 2412 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2413 ;;
c03353e2
RIL
2414 ep9312-*-elf | ep9312-*-coff)
2415 libgloss_dir=arm
2416 ;;
671aa708 2417 fr30-*-elf*)
cb253473 2418 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2419 ;;
2420 frv-*-*)
cb253473 2421 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2422 ;;
55f2d967
AG
2423 moxie-*-*)
2424 noconfigdirs="$noconfigdirs ${libgcj}"
2425 noconfigdirs="$noconfigdirs gprof"
2426 ;;
671aa708 2427 h8300*-*-*)
cb253473 2428 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2429 ;;
2430 h8500-*-*)
cb253473 2431 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2432 ;;
ee6a22df 2433 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2434 ;;
671aa708
NN
2435 hppa*64*-*-linux* | parisc*64*-*-linux*)
2436 # In this case, it's because the hppa64-linux target is for
2437 # the kernel only at this point and has no libc, and thus no
2438 # headers, crt*.o, etc., all of which are needed by these.
2439 noconfigdirs="$noconfigdirs target-zlib"
2440 ;;
3e732ba0
JDA
2441 parisc*-*-linux* | hppa*-*-linux*)
2442 ;;
671aa708 2443 hppa*-*-*elf* | \
671aa708
NN
2444 hppa*-*-lites* | \
2445 hppa*-*-openbsd* | \
2446 hppa*64*-*-*)
cb253473 2447 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2448 ;;
2a332582
JDA
2449 hppa*-hp-hpux11*)
2450 noconfigdirs="$noconfigdirs ld shellutils"
2451 ;;
c03353e2
RIL
2452 hppa*-*-pro*)
2453 libgloss_dir=pa
2454 ;;
671aa708
NN
2455 hppa*-*-*)
2456 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2457 # build on HP-UX 10.20.
cb253473 2458 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2459 ;;
fb87ad5d 2460 i960-*-*)
cb253473 2461 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2462 ;;
671aa708
NN
2463 ia64*-*-elf*)
2464 # No gdb support yet.
b4f96efe 2465 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2466 ;;
2467 ia64*-**-hpux*)
2468 # No gdb or ld support yet.
cb253473 2469 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2470 ;;
52535a64
DR
2471 ia64*-*-*vms*)
2472 # No gdb or ld support yet.
2473 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2474 ;;
ee6a22df 2475 i370-*-opened*)
ee6a22df 2476 ;;
f2a0e225 2477 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2478 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2479 libgloss_dir=i386
671aa708 2480 ;;
f2a0e225 2481 i[3456789]86-*-linux*)
671aa708
NN
2482 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2483 # not build java stuff by default.
2484 case "${target}" in
2485 *-*-*libc1*)
cb253473 2486 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2487 esac
2488
2489 # This section makes it possible to build newlib natively on linux.
2490 # If we are using a cross compiler then don't configure newlib.
2491 if test x${is_cross_compiler} != xno ; then
3aa83176 2492 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2493 fi
2494 noconfigdirs="$noconfigdirs target-libgloss"
2495 # If we are not using a cross compiler, do configure newlib.
2496 # Note however, that newlib will only be configured in this situation
2497 # if the --with-newlib option has been given, because otherwise
2498 # 'target-newlib' will appear in skipdirs.
2499 ;;
f2a0e225 2500 i[3456789]86-*-mingw32*)
b91f0a41
CV
2501 target_configdirs="$target_configdirs target-winsup"
2502 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2503 ;;
95af8923
KT
2504 x86_64-*-mingw*)
2505 target_configdirs="$target_configdirs target-winsup"
2506 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2507 ;;
671aa708
NN
2508 *-*-cygwin*)
2509 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 2510 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 2511 # always build newlib if winsup directory is present.
b91f0a41 2512 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2513 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2514 elif test -d "$srcdir/newlib"; then
b91f0a41 2515 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2516 fi
1c710c3c 2517 ;;
ee6a22df
L
2518 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2519 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2520 ;;
f2a0e225 2521 i[3456789]86-*-pe)
cb253473 2522 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2523 ;;
f2a0e225 2524 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2525 # The linker does not yet know about weak symbols in COFF,
2526 # and is not configured to handle mixed ELF and COFF.
cb253473 2527 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2528 ;;
f2a0e225 2529 i[3456789]86-*-sco*)
cb253473 2530 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2531 ;;
f2a0e225 2532 i[3456789]86-*-solaris2*)
671aa708
NN
2533 noconfigdirs="$noconfigdirs target-libgloss"
2534 ;;
f2a0e225 2535 i[3456789]86-*-sysv4*)
cb253473 2536 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2537 ;;
f2a0e225 2538 i[3456789]86-*-beos*)
cb253473 2539 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2540 ;;
d1f8db0c
PB
2541 i[3456789]86-*-rdos*)
2542 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2543 ;;
fb87ad5d 2544 m32r-*-*)
cb253473 2545 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2546 ;;
671aa708 2547 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2548 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2549 libgloss_dir=m68hc11
671aa708
NN
2550 ;;
2551 m68k-*-elf*)
cb253473 2552 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2553 ;;
2554 m68k-*-coff*)
cb253473 2555 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2556 ;;
c03353e2
RIL
2557 m68*-*-* | fido-*-*)
2558 libgloss_dir=m68k
2559 ;;
671aa708
NN
2560 mcore-*-pe*)
2561 # The EPOC C++ environment does not support exceptions or rtti,
2562 # and so building libstdc++-v3 tends not to always work.
2563 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2564 ;;
2565 mmix-*-*)
4fab7234 2566 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2567 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2568 ;;
2569 mn10200-*-*)
cb253473 2570 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2571 ;;
2572 mn10300-*-*)
cb253473 2573 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2574 ;;
ab34901f 2575 mt-*-*)
79dd769c
AH
2576 noconfigdirs="$noconfigdirs sim"
2577 ;;
671aa708
NN
2578 powerpc-*-aix*)
2579 # copied from rs6000-*-* entry
a891a473 2580 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
2581 ;;
2582 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2583 target_configdirs="$target_configdirs target-winsup"
cb253473 2584 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2585 # always build newlib.
2586 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2587 ;;
2588 # This is temporary until we can link against shared libraries
2589 powerpcle-*-solaris*)
cb253473 2590 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2591 libgloss_dir=rs6000
671aa708
NN
2592 ;;
2593 powerpc-*-beos*)
cb253473 2594 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2595 ;;
671aa708 2596 powerpc-*-eabi)
cb253473 2597 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2598 libgloss_dir=rs6000
ee6a22df
L
2599 ;;
2600 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2601 libgloss_dir=rs6000
671aa708 2602 ;;
671aa708 2603 rs6000-*-lynxos*)
cb253473 2604 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2605 ;;
2606 rs6000-*-aix*)
a891a473 2607 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
2608 ;;
2609 rs6000-*-*)
cb253473 2610 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2611 ;;
2612 m68k-apollo-*)
cb253473 2613 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2614 ;;
d9dced13
RS
2615 mips*-sde-elf*)
2616 skipdirs="$skipdirs target-libiberty"
2617 noconfigdirs="$noconfigdirs ${libgcj}"
2618 if test x$with_newlib = xyes; then
2619 noconfigdirs="$noconfigdirs gprof"
2620 fi
2621 libgloss_dir=mips
2622 ;;
671aa708 2623 mips*-*-irix5*)
cb253473 2624 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2625 ;;
2626 mips*-*-irix6*)
671aa708
NN
2627 # Linking libjava exceeds command-line length limits on at least
2628 # IRIX 6.2, but not on IRIX 6.5.
2629 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2630 # <oldham@codesourcery.com>
cb253473 2631 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2632 ;;
671aa708 2633 mips*-*-bsd*)
cb253473 2634 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2635 ;;
671aa708
NN
2636 mips*-*-linux*)
2637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2638 ;;
2639 mips*-*-*)
cb253473 2640 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2641 libgloss_dir=mips
671aa708
NN
2642 ;;
2643 romp-*-*)
cb253473 2644 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2645 ;;
669f01d8 2646 sh-*-* | sh64-*-*)
671aa708 2647 case "${host}" in
f2a0e225
KC
2648 i[3456789]86-*-vsta) ;; # don't add gprof back in
2649 i[3456789]86-*-go32*) ;; # don't add gprof back in
2650 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2651 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2652 esac
cb253473 2653 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2654 ;;
c03353e2
RIL
2655 sparclet-*-aout* | sparc86x-*-*)
2656 libgloss_dir=sparc
2657 ;;
671aa708 2658 sparc-*-elf*)
cb253473 2659 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2660 ;;
2661 sparc64-*-elf*)
cb253473 2662 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2663 libgloss_dir=sparc
671aa708
NN
2664 ;;
2665 sparclite-*-*)
cb253473 2666 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2667 libgloss_dir=sparc
671aa708
NN
2668 ;;
2669 sparc-*-sunos4*)
cb253473 2670 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2671 if test x${is_cross_compiler} != xno ; then
2672 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2673 else
2674 use_gnu_ld=no
2675 fi
2676 ;;
bba5e0ca 2677 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2678 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2679 ;;
671aa708
NN
2680 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2681 ;;
2682 v810-*-*)
cb253473 2683 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2684 ;;
2685 v850-*-*)
cb253473 2686 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2687 ;;
2688 v850e-*-*)
cb253473 2689 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2690 ;;
2691 v850ea-*-*)
cb253473 2692 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2693 ;;
2694 vax-*-vms)
cb253473 2695 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2696 ;;
2697 vax-*-*)
cb253473 2698 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2699 ;;
aa12a573 2700 xtensa*-*-*)
cb253473 2701 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2702 ;;
671aa708 2703 ip2k-*-*)
cb253473 2704 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2705 ;;
416ac4d4 2706 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
2707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2708 ;;
2709 *-*-lynxos*)
cb253473 2710 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2711 ;;
671aa708 2712 *-*-*)
cb253473 2713 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2714 ;;
2715esac
79c06341 2716
671aa708
NN
2717# If we aren't building newlib, then don't build libgloss, since libgloss
2718# depends upon some newlib header files.
2719case "${noconfigdirs}" in
2720 *target-libgloss*) ;;
2721 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2722esac
2723
671aa708
NN
2724# Work in distributions that contain no compiler tools, like Autoconf.
2725tentative_cc=""
2726host_makefile_frag=/dev/null
2727if test -d ${srcdir}/config ; then
2728case "${host}" in
2729 m68k-hp-hpux*)
2730 # Avoid "too much defining" errors from HPUX compiler.
2731 tentative_cc="cc -Wp,-H256000"
2732 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2733 # If it's HP/UX ar, this should be harmless.
2734 RANLIB="ar ts"
2735 ;;
2736 m68k-apollo-sysv*)
2737 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2738 ;;
2739 m68k-apollo-bsd*)
2740 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2741 # chokes on bfd, the compiler won't let you assign integers to enums, and
2742 # other problems. Defining CC to gcc is a questionable way to say "don't use
2743 # the apollo compiler" (the preferred version of GCC could be called cc,
2744 # or whatever), but I'm not sure leaving CC as cc is any better...
2745 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2746 # Used to have BISON=yacc.
2747 tentative_cc=gcc
2748 ;;
2749 m88k-dg-dgux*)
2750 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2751 ;;
2752 m88k-harris-cxux*)
2753 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2754 tentative_cc="cc -Xa"
2755 host_makefile_frag="config/mh-cxux"
2756 ;;
2757 m88k-motorola-sysv*)
2758 ;;
2759 mips*-dec-ultrix*)
2760 tentative_cc="cc -Wf,-XNg1000"
2761 host_makefile_frag="config/mh-decstation"
2762 ;;
2763 mips*-nec-sysv4*)
2764 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2765 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2766 host_makefile_frag="config/mh-necv4"
2767 ;;
2768 mips*-sgi-irix4*)
2769 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2770 # environment. Also bump switch table size so that cp-parse will
2771 # compile. Bump string length limit so linker builds.
2772 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2773 ;;
2774 mips*-*-sysv4*)
2775 host_makefile_frag="config/mh-sysv4"
2776 ;;
2777 mips*-*-sysv*)
2778 # This is for a MIPS running RISC/os 4.52C.
2779
2780 # This is needed for GDB, but needs to be in the top-level make because
2781 # if a library is compiled with the bsd headers and gets linked with the
2782 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2783 # a different size).
2784 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2785 # known except to select the sysv environment. Could we use /proc instead?
2786 # These "sysv environments" and "bsd environments" often end up being a pain.
2787 #
2788 # This is not part of CFLAGS because perhaps not all C compilers have this
2789 # option.
2790 tentative_cc="cc -systype sysv"
2791 ;;
2792 i370-ibm-opened*)
2793 tentative_cc="c89"
2794 ;;
f2a0e225 2795 i[3456789]86-*-sysv5*)
671aa708
NN
2796 host_makefile_frag="config/mh-sysv5"
2797 ;;
f2a0e225 2798 i[3456789]86-*-dgux*)
671aa708
NN
2799 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2800 host_makefile_frag="config/mh-dgux386"
2801 ;;
f2a0e225 2802 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2803 # The MetaWare compiler will generate a copyright message unless you
2804 # turn it off by adding the -Hnocopyr flag.
2805 tentative_cc="cc -Hnocopyr"
2806 ;;
f2a0e225 2807 i[3456789]86-ncr-sysv4*)
671aa708
NN
2808 # for an NCR 3000 (i486/SVR4) system.
2809 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2810 # This compiler not only emits obnoxious copyright messages every time
2811 # you run it, but it chokes and dies on a whole bunch of GNU source
2812 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2813 tentative_cc="/usr/ccs/ATT/cc"
2814 host_makefile_frag="config/mh-ncr3000"
2815 ;;
f2a0e225 2816 i[3456789]86-*-sco3.2v5*)
671aa708 2817 ;;
f2a0e225 2818 i[3456789]86-*-sco*)
671aa708
NN
2819 # The native C compiler botches some simple uses of const. Unfortunately,
2820 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2821 tentative_cc="cc -Dconst="
2822 host_makefile_frag="config/mh-sco"
2823 ;;
f2a0e225 2824 i[3456789]86-*-udk*)
671aa708
NN
2825 host_makefile_frag="config/mh-sysv5"
2826 ;;
f2a0e225 2827 i[3456789]86-*-solaris2*)
671aa708
NN
2828 host_makefile_frag="config/mh-sysv4"
2829 ;;
f2a0e225 2830 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2831 host_makefile_frag="config/mh-djgpp"
2832 ;;
2833 *-cygwin*)
2a79c47f
NC
2834
2835echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2836echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2837echo a >cygwin-cat-check
2838if test `cat cygwin-cat-check` == a ; then
2839 rm cygwin-cat-check
2840 echo "$as_me:$LINENO: result: yes" >&5
2841echo "${ECHO_T}yes" >&6
2842else
2843 rm cygwin-cat-check
2844 echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6
2846 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2847 Please either mount the build directory in binary mode or run the following
2848 commands before running any configure script:
2849set -o igncr
2850export SHELLOPTS
2851 " >&5
2852echo "$as_me: error: The cat command does not ignore carriage return characters.
2853 Please either mount the build directory in binary mode or run the following
2854 commands before running any configure script:
2855set -o igncr
2856export SHELLOPTS
2857 " >&2;}
2858 { (exit 1); exit 1; }; }
2859fi
2860
671aa708
NN
2861 host_makefile_frag="config/mh-cygwin"
2862 ;;
c53a18d3 2863 *-mingw*)
1f5a6b84 2864 host_makefile_frag="config/mh-mingw"
95af8923 2865 ;;
671aa708
NN
2866 *-interix*)
2867 host_makefile_frag="config/mh-interix"
2868 ;;
2869 vax-*-ultrix2*)
2870 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2871 tentative_cc=gcc
2872 ;;
2873 *-*-solaris2*)
2874 host_makefile_frag="config/mh-solaris"
2875 ;;
2876 m68k-sun-sunos*)
2877 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2878 # without overflowing the jump tables (-J says to use a 32 bit table)
2879 tentative_cc="cc -J"
2880 ;;
efd41714 2881 hppa*-hp-hpux10*)
671aa708 2882 tentative_cc="cc -Wp,-H256000"
efd41714 2883 host_makefile_frag="config/mh-pa-hpux10"
671aa708 2884 ;;
efd41714
PB
2885 hppa*-hp-hpux* | hppa*-*-hiux*)
2886 tentative_cc="cc -Wp,-H256000"
2887 host_makefile_frag="config/mh-pa"
2888 ;;
2889 hppa*-*)
2890 host_makefile_frag="config/mh-pa"
2891 ;;
2892 *-hp-hpux* | *-*-hiux*)
671aa708
NN
2893 tentative_cc="cc -Wp,-H256000"
2894 ;;
2895 rs6000-*-lynxos*)
2896 # /bin/cc is less than useful for our purposes. Always use GCC
2897 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2898 host_makefile_frag="config/mh-lynxrs6k"
2899 ;;
45f366ab 2900 powerpc-*-darwin*)
be8fff81
RB
2901 host_makefile_frag="config/mh-ppc-darwin"
2902 ;;
d19bca38
PB
2903 powerpc-*-aix*)
2904 host_makefile_frag="config/mh-ppc-aix"
2905 ;;
2906 rs6000-*-aix*)
2907 host_makefile_frag="config/mh-ppc-aix"
2908 ;;
671aa708
NN
2909 *-*-lynxos*)
2910 # /bin/cc is less than useful for our purposes. Always use GCC
2911 tentative_cc="/bin/gcc"
2912 ;;
2913 *-*-sysv4*)
2914 host_makefile_frag="config/mh-sysv4"
2915 ;;
95c53c62
RS
2916 # This is placed last to prevent interfering with the cases above.
2917 i[3456789]86-*-*)
2918 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2919 host_makefile_frag="config/mh-x86omitfp"
2920 ;;
671aa708
NN
2921esac
2922fi
2923
55ffb5ed
NN
2924# If we aren't going to be using gcc, see if we can extract a definition
2925# of CC from the fragment.
2926# Actually, use the 'pre-extracted' version above.
2927if test -z "${CC}" && test "${build}" = "${host}" ; then
2928 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2929 found=
2930 for dir in $PATH; do
2931 test -z "$dir" && dir=.
2932 if test -f $dir/gcc; then
2933 found=yes
2934 break
2935 fi
2936 done
2937 IFS="$save_ifs"
2938 if test -z "${found}" && test -n "${tentative_cc}" ; then
2939 CC=$tentative_cc
2940 fi
2941fi
2942
2943if test "${build}" != "${host}" ; then
0999159b
PB
2944 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2945 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2946 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2947 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2948 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2949 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2950 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2951 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2952 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2953 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2954 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2955 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2956else
2957 AR_FOR_BUILD="\$(AR)"
2958 AS_FOR_BUILD="\$(AS)"
fb0103e5 2959 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2960 CXX_FOR_BUILD="\$(CXX)"
2961 GCJ_FOR_BUILD="\$(GCJ)"
2962 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2963 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2964 LD_FOR_BUILD="\$(LD)"
2965 NM_FOR_BUILD="\$(NM)"
2966 RANLIB_FOR_BUILD="\$(RANLIB)"
2967 WINDRES_FOR_BUILD="\$(WINDRES)"
2968 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2969fi
2970
2971ac_ext=c
1c710c3c
DJ
2972ac_cpp='$CPP $CPPFLAGS'
2973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2978set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2979echo "$as_me:$LINENO: checking for $ac_word" >&5
2980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2981if test "${ac_cv_prog_CC+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2994 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999done
3000
3001fi
3002fi
3003CC=$ac_cv_prog_CC
3004if test -n "$CC"; then
2aeb72e9
DD
3005 echo "$as_me:$LINENO: result: $CC" >&5
3006echo "${ECHO_T}$CC" >&6
1c710c3c 3007else
2aeb72e9
DD
3008 echo "$as_me:$LINENO: result: no" >&5
3009echo "${ECHO_T}no" >&6
1c710c3c
DJ
3010fi
3011
3012fi
3013if test -z "$ac_cv_prog_CC"; then
3014 ac_ct_CC=$CC
fb0103e5
RG
3015 # Extract the first word of "gcc", so it can be a program name with args.
3016set dummy gcc; ac_word=$2
2aeb72e9
DD
3017echo "$as_me:$LINENO: checking for $ac_word" >&5
3018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3019if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 if test -n "$ac_ct_CC"; then
3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3032 ac_cv_prog_ac_ct_CC="gcc"
3033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036done
3037done
3038
3039fi
3040fi
3041ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3043 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3044echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 3045else
2aeb72e9
DD
3046 echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6
1c710c3c
DJ
3048fi
3049
2aeb72e9 3050 CC=$ac_ct_CC
1c710c3c
DJ
3051else
3052 CC="$ac_cv_prog_CC"
3053fi
3054
3055if test -z "$CC"; then
2aeb72e9
DD
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3058set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3061if test "${ac_cv_prog_CC+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3063else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066else
1c710c3c
DJ
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3074 ac_cv_prog_CC="${ac_tool_prefix}cc"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
3080
0b0dc272 3081fi
0b0dc272 3082fi
1c710c3c 3083CC=$ac_cv_prog_CC
af71363e 3084if test -n "$CC"; then
2aeb72e9
DD
3085 echo "$as_me:$LINENO: result: $CC" >&5
3086echo "${ECHO_T}$CC" >&6
0b0dc272 3087else
2aeb72e9
DD
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
0b0dc272
AM
3090fi
3091
2aeb72e9
DD
3092fi
3093if test -z "$ac_cv_prog_CC"; then
3094 ac_ct_CC=$CC
3095 # Extract the first word of "cc", so it can be a program name with args.
3096set dummy cc; ac_word=$2
3097echo "$as_me:$LINENO: checking for $ac_word" >&5
3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101else
3102 if test -n "$ac_ct_CC"; then
3103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_ac_ct_CC="cc"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
11a67599 3115 fi
2aeb72e9
DD
3116done
3117done
3118
3119fi
3120fi
3121ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122if test -n "$ac_ct_CC"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3124echo "${ECHO_T}$ac_ct_CC" >&6
3125else
3126 echo "$as_me:$LINENO: result: no" >&5
3127echo "${ECHO_T}no" >&6
3128fi
3129
3130 CC=$ac_ct_CC
3131else
3132 CC="$ac_cv_prog_CC"
3133fi
3134
1c710c3c 3135fi
55ffb5ed
NN
3136if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138set dummy cc; ac_word=$2
2aeb72e9
DD
3139echo "$as_me:$LINENO: checking for $ac_word" >&5
3140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3141if test "${ac_cv_prog_CC+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3143else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146else
0b0dc272 3147 ac_prog_rejected=no
1c710c3c
DJ
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected=yes
3157 continue
3158 fi
3159 ac_cv_prog_CC="cc"
3160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163done
3164done
3165
55ffb5ed
NN
3166if test $ac_prog_rejected = yes; then
3167 # We found a bogon in the path, so make sure we never use it.
3168 set dummy $ac_cv_prog_CC
3169 shift
1c710c3c 3170 if test $# != 0; then
55ffb5ed
NN
3171 # We chose a different compiler from the bogus one.
3172 # However, it has the same basename, so the bogon will be chosen
3173 # first if we set CC to just the basename; use the full file name.
3174 shift
1c710c3c 3175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3176 fi
3177fi
3178fi
3179fi
1c710c3c 3180CC=$ac_cv_prog_CC
55ffb5ed 3181if test -n "$CC"; then
2aeb72e9
DD
3182 echo "$as_me:$LINENO: result: $CC" >&5
3183echo "${ECHO_T}$CC" >&6
55ffb5ed 3184else
2aeb72e9
DD
3185 echo "$as_me:$LINENO: result: no" >&5
3186echo "${ECHO_T}no" >&6
55ffb5ed
NN
3187fi
3188
1c710c3c
DJ
3189fi
3190if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
2aeb72e9 3192 for ac_prog in cl
1c710c3c
DJ
3193 do
3194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3196echo "$as_me:$LINENO: checking for $ac_word" >&5
3197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3198if test "${ac_cv_prog_CC+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3200else
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3203else
1c710c3c
DJ
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215done
3216done
3217
55ffb5ed
NN
3218fi
3219fi
1c710c3c 3220CC=$ac_cv_prog_CC
55ffb5ed 3221if test -n "$CC"; then
2aeb72e9
DD
3222 echo "$as_me:$LINENO: result: $CC" >&5
3223echo "${ECHO_T}$CC" >&6
a4b9e93e 3224else
2aeb72e9
DD
3225 echo "$as_me:$LINENO: result: no" >&5
3226echo "${ECHO_T}no" >&6
fb0103e5 3227fi
af71363e 3228
1c710c3c
DJ
3229 test -n "$CC" && break
3230 done
af71363e 3231fi
1c710c3c
DJ
3232if test -z "$CC"; then
3233 ac_ct_CC=$CC
2aeb72e9 3234 for ac_prog in cl
1c710c3c
DJ
3235do
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3238echo "$as_me:$LINENO: checking for $ac_word" >&5
3239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3240if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3242else
1c710c3c
DJ
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3245else
1c710c3c
DJ
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3253 ac_cv_prog_ac_ct_CC="$ac_prog"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257done
3258done
3259
af71363e
AS
3260fi
3261fi
1c710c3c
DJ
3262ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3265echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3266else
2aeb72e9
DD
3267 echo "$as_me:$LINENO: result: no" >&5
3268echo "${ECHO_T}no" >&6
af71363e 3269fi
0b0dc272 3270
1c710c3c
DJ
3271 test -n "$ac_ct_CC" && break
3272done
3273
2aeb72e9 3274 CC=$ac_ct_CC
1c710c3c
DJ
3275fi
3276
3277fi
3278
3279
18c04407
RW
3280test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3281echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1c710c3c
DJ
3283See \`config.log' for more details." >&5
3284echo "$as_me: error: no acceptable C compiler found in \$PATH
3285See \`config.log' for more details." >&2;}
18c04407 3286 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3287
3288# Provide some information about the compiler.
2aeb72e9
DD
3289echo "$as_me:$LINENO:" \
3290 "checking for C compiler version" >&5
1c710c3c 3291ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3292{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3293 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
2aeb72e9
DD
3297{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3298 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
2aeb72e9
DD
3302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3303 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }
3307
3308cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3314
3315int
3316main ()
3317{
3318
3319 ;
3320 return 0;
3321}
3322_ACEOF
3323ac_clean_files_save=$ac_clean_files
3324ac_clean_files="$ac_clean_files a.out a.exe b.out"
3325# Try to create an executable without -o first, disregard a.out.
3326# It will help us diagnose broken compilers, and finding out an intuition
3327# of exeext.
2aeb72e9
DD
3328echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3329echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3330ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3331if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3332 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; then
2aeb72e9
DD
3336 # Find the output, starting from the most likely. This scheme is
3337# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3338# resort.
3339
3340# Be careful to initialize this variable, since it used to be cached.
3341# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3342ac_cv_exeext=
3343# b.out is created by i960 compilers.
3344for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3345do
3346 test -f "$ac_file" || continue
3347 case $ac_file in
2aeb72e9
DD
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3349 ;;
3350 conftest.$ac_ext )
3351 # This is the source file.
1c710c3c
DJ
3352 ;;
3353 [ab].out )
3354 # We found the default executable, but exeext='' is most
3355 # certainly right.
3356 break;;
3357 *.* )
2aeb72e9
DD
3358 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 # FIXME: I believe we export ac_cv_exeext for Libtool,
3360 # but it would be cool to find out if it's true. Does anybody
3361 # maintain Libtool? --akim.
3362 export ac_cv_exeext
1c710c3c
DJ
3363 break;;
3364 * )
3365 break;;
3366 esac
3367done
3368else
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
18c04407
RW
3372{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3373echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3374{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3375See \`config.log' for more details." >&5
3376echo "$as_me: error: C compiler cannot create executables
3377See \`config.log' for more details." >&2;}
18c04407 3378 { (exit 77); exit 77; }; }; }
1c710c3c
DJ
3379fi
3380
3381ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3382echo "$as_me:$LINENO: result: $ac_file" >&5
3383echo "${ECHO_T}$ac_file" >&6
1c710c3c 3384
2aeb72e9 3385# Check the compiler produces executables we can run. If not, either
1c710c3c 3386# the compiler is broken, or we cross compile.
2aeb72e9
DD
3387echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3388echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3389# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3390# If not cross compiling, check that we can run a simple program.
3391if test "$cross_compiling" != yes; then
3392 if { ac_try='./$ac_file'
2aeb72e9
DD
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
1c710c3c
DJ
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 cross_compiling=no
3399 else
3400 if test "$cross_compiling" = maybe; then
3401 cross_compiling=yes
3402 else
18c04407
RW
3403 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3404echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1c710c3c
DJ
3406If you meant to cross compile, use \`--host'.
3407See \`config.log' for more details." >&5
3408echo "$as_me: error: cannot run C compiled programs.
3409If you meant to cross compile, use \`--host'.
3410See \`config.log' for more details." >&2;}
18c04407 3411 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3412 fi
3413 fi
3414fi
2aeb72e9
DD
3415echo "$as_me:$LINENO: result: yes" >&5
3416echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3417
3418rm -f a.out a.exe conftest$ac_cv_exeext b.out
3419ac_clean_files=$ac_clean_files_save
2aeb72e9 3420# Check the compiler produces executables we can run. If not, either
1c710c3c 3421# the compiler is broken, or we cross compile.
2aeb72e9
DD
3422echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3423echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3424echo "$as_me:$LINENO: result: $cross_compiling" >&5
3425echo "${ECHO_T}$cross_compiling" >&6
3426
3427echo "$as_me:$LINENO: checking for suffix of executables" >&5
3428echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430 (eval $ac_link) 2>&5
1c710c3c
DJ
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; then
3434 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3435# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3436# work properly (i.e., refer to `conftest.exe'), while it won't with
3437# `rm'.
3438for ac_file in conftest.exe conftest conftest.*; do
3439 test -f "$ac_file" || continue
3440 case $ac_file in
2aeb72e9 3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3442 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3443 export ac_cv_exeext
1c710c3c
DJ
3444 break;;
3445 * ) break;;
3446 esac
3447done
af71363e 3448else
18c04407
RW
3449 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3450echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1c710c3c
DJ
3452See \`config.log' for more details." >&5
3453echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3454See \`config.log' for more details." >&2;}
18c04407 3455 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3456fi
3457
3458rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3459echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3460echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3461
3462rm -f conftest.$ac_ext
3463EXEEXT=$ac_cv_exeext
3464ac_exeext=$EXEEXT
2aeb72e9
DD
3465echo "$as_me:$LINENO: checking for suffix of object files" >&5
3466echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3467if test "${ac_cv_objext+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
3476
3477int
3478main ()
3479{
3480
3481 ;
3482 return 0;
3483}
3484_ACEOF
3485rm -f conftest.o conftest.obj
2aeb72e9
DD
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>&5
1c710c3c
DJ
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; then
2aeb72e9 3491 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3492 case $ac_file in
2aeb72e9 3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3494 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495 break;;
3496 esac
3497done
3498else
3499 echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
18c04407
RW
3502{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3503echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3504{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3505See \`config.log' for more details." >&5
3506echo "$as_me: error: cannot compute suffix of object files: cannot compile
3507See \`config.log' for more details." >&2;}
18c04407 3508 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3509fi
3510
3511rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512fi
2aeb72e9
DD
3513echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3514echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3515OBJEXT=$ac_cv_objext
3516ac_objext=$OBJEXT
2aeb72e9
DD
3517echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3518echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3519if test "${ac_cv_c_compiler_gnu+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h. */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h. */
3528
3529int
3530main ()
3531{
3532#ifndef __GNUC__
3533 choke me
3534#endif
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
3540rm -f conftest.$ac_objext
2aeb72e9
DD
3541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3548 (exit $ac_status); } &&
3549 { ac_try='test -z "$ac_c_werror_flag"
3550 || test ! -s conftest.err'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
1c710c3c
DJ
3562 ac_compiler_gnu=yes
3563else
3564 echo "$as_me: failed program was:" >&5
3565sed 's/^/| /' conftest.$ac_ext >&5
3566
2aeb72e9 3567ac_compiler_gnu=no
1c710c3c 3568fi
2aeb72e9 3569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3570ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571
3572fi
2aeb72e9
DD
3573echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3574echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3575GCC=`test $ac_compiler_gnu = yes && echo yes`
3576ac_test_CFLAGS=${CFLAGS+set}
3577ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3578CFLAGS="-g"
3579echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3580echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3581if test "${ac_cv_prog_cc_g+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
2aeb72e9 3584 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590
3591int
3592main ()
3593{
3594
3595 ;
3596 return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext
2aeb72e9
DD
3600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
1c710c3c
DJ
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
1c710c3c
DJ
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3620 (exit $ac_status); }; }; then
55ffb5ed
NN
3621 ac_cv_prog_cc_g=yes
3622else
1c710c3c
DJ
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3625
2aeb72e9 3626ac_cv_prog_cc_g=no
0b0dc272 3627fi
2aeb72e9 3628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3629fi
2aeb72e9
DD
3630echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3631echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3632if test "$ac_test_CFLAGS" = set; then
1c710c3c 3633 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3634elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3636 CFLAGS="-g -O2"
3637 else
3638 CFLAGS="-g"
3639 fi
3640else
3641 if test "$GCC" = yes; then
3642 CFLAGS="-O2"
3643 else
3644 CFLAGS=
3645 fi
3646fi
2aeb72e9
DD
3647echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3648echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3649if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
2aeb72e9 3652 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3653ac_save_CC=$CC
3654cat >conftest.$ac_ext <<_ACEOF
3655/* confdefs.h. */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h. */
3660#include <stdarg.h>
3661#include <stdio.h>
3662#include <sys/types.h>
3663#include <sys/stat.h>
3664/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3665struct buf { int x; };
3666FILE * (*rcsopen) (struct buf *, struct stat *, int);
3667static char *e (p, i)
3668 char **p;
3669 int i;
3670{
3671 return p[i];
3672}
3673static char *f (char * (*g) (char **, int), char **p, ...)
3674{
3675 char *s;
3676 va_list v;
3677 va_start (v,p);
3678 s = g (p, va_arg (v,int));
3679 va_end (v);
3680 return s;
3681}
3682
3683/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3684 function prototypes and stuff, but not '\xHH' hex character constants.
3685 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3686 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3688 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3689 that's true only with -std1. */
1c710c3c
DJ
3690int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3691
3692int test (int i, double x);
3693struct s1 {int (*f) (int a);};
3694struct s2 {int (*f) (double a);};
3695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696int argc;
3697char **argv;
3698int
3699main ()
3700{
3701return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 ;
3703 return 0;
3704}
3705_ACEOF
2aeb72e9
DD
3706# Don't try gcc -ansi; that turns off useful extensions and
3707# breaks some systems' header files.
3708# AIX -qlanglvl=ansi
3709# Ultrix and OSF/1 -std1
3710# HP-UX 10.20 and later -Ae
3711# HP-UX older versions -Aa -D_HPUX_SOURCE
3712# SVR4 -Xc -D__EXTENSIONS__
3713for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3714do
3715 CC="$ac_save_CC $ac_arg"
3716 rm -f conftest.$ac_objext
2aeb72e9
DD
3717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3724 (exit $ac_status); } &&
3725 { ac_try='test -z "$ac_c_werror_flag"
3726 || test ! -s conftest.err'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; } &&
3732 { ac_try='test -s conftest.$ac_objext'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3738 ac_cv_prog_cc_stdc=$ac_arg
3739break
1c710c3c
DJ
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744fi
2aeb72e9 3745rm -f conftest.err conftest.$ac_objext
1c710c3c 3746done
2aeb72e9 3747rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3748CC=$ac_save_CC
3749
3750fi
2aeb72e9
DD
3751
3752case "x$ac_cv_prog_cc_stdc" in
3753 x|xno)
3754 echo "$as_me:$LINENO: result: none needed" >&5
3755echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3756 *)
2aeb72e9
DD
3757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3758echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3759 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3760esac
3761
2aeb72e9
DD
3762# Some people use a C++ compiler to compile C. Since we use `exit',
3763# in C++ we need to declare it. In case someone uses the same compiler
3764# for both compiling C and C++ we need to have the C++ compiler decide
3765# the declaration of exit, since it's the most demanding environment.
3766cat >conftest.$ac_ext <<_ACEOF
3767#ifndef __cplusplus
3768 choke me
3769#endif
3770_ACEOF
3771rm -f conftest.$ac_objext
3772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag"
3781 || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 for ac_declaration in \
3794 '' \
3795 'extern "C" void std::exit (int) throw (); using std::exit;' \
3796 'extern "C" void std::exit (int); using std::exit;' \
3797 'extern "C" void exit (int) throw ();' \
3798 'extern "C" void exit (int);' \
3799 'void exit (int);'
3800do
3801 cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h. */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h. */
3807$ac_declaration
3808#include <stdlib.h>
3809int
3810main ()
3811{
3812exit (42);
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817rm -f conftest.$ac_objext
3818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try='test -z "$ac_c_werror_flag"
3827 || test ! -s conftest.err'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest.$ac_objext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 :
3840else
3841 echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
3844continue
3845fi
3846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3847 cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h. */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h. */
3853$ac_declaration
3854int
3855main ()
3856{
3857exit (42);
3858 ;
3859 return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext
3863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 (eval $ac_try) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 break
3885else
3886 echo "$as_me: failed program was:" >&5
3887sed 's/^/| /' conftest.$ac_ext >&5
3888
3889fi
3890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3891done
3892rm -f conftest*
3893if test -n "$ac_declaration"; then
3894 echo '#ifdef __cplusplus' >>confdefs.h
3895 echo $ac_declaration >>confdefs.h
3896 echo '#endif' >>confdefs.h
3897fi
3898
3899else
3900 echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903fi
3904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905ac_ext=c
3906ac_cpp='$CPP $CPPFLAGS'
3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911ac_ext=cc
3912ac_cpp='$CXXCPP $CPPFLAGS'
3913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3916if test -n "$ac_tool_prefix"; then
3917 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3918 do
3919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3921echo "$as_me:$LINENO: checking for $ac_word" >&5
3922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923if test "${ac_cv_prog_CXX+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if test -n "$CXX"; then
3927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940done
3941done
55ffb5ed 3942
c3a86da9
DJ
3943fi
3944fi
3945CXX=$ac_cv_prog_CXX
3946if test -n "$CXX"; then
2aeb72e9
DD
3947 echo "$as_me:$LINENO: result: $CXX" >&5
3948echo "${ECHO_T}$CXX" >&6
c3a86da9 3949else
2aeb72e9
DD
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
c3a86da9
DJ
3952fi
3953
3954 test -n "$CXX" && break
3955 done
3956fi
3957if test -z "$CXX"; then
3958 ac_ct_CXX=$CXX
2aeb72e9 3959 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3960do
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3963echo "$as_me:$LINENO: checking for $ac_word" >&5
3964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3965if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 if test -n "$ac_ct_CXX"; then
3969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3970else
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH
3973do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3978 ac_cv_prog_ac_ct_CXX="$ac_prog"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982done
3983done
3984
3985fi
3986fi
3987ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3988if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3989 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3990echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3991else
2aeb72e9
DD
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
c3a86da9
DJ
3994fi
3995
3996 test -n "$ac_ct_CXX" && break
3997done
2aeb72e9 3998test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3999
2aeb72e9 4000 CXX=$ac_ct_CXX
c3a86da9
DJ
4001fi
4002
2aeb72e9 4003
c3a86da9 4004# Provide some information about the compiler.
2aeb72e9
DD
4005echo "$as_me:$LINENO:" \
4006 "checking for C++ compiler version" >&5
c3a86da9 4007ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
4008{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4009 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
2aeb72e9
DD
4013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4014 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
2aeb72e9
DD
4018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4019 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }
4023
2aeb72e9
DD
4024echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4025echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
4026if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029 cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035
4036int
4037main ()
4038{
4039#ifndef __GNUC__
4040 choke me
4041#endif
4042
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047rm -f conftest.$ac_objext
2aeb72e9
DD
4048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4055 (exit $ac_status); } &&
4056 { ac_try='test -z "$ac_cxx_werror_flag"
4057 || test ! -s conftest.err'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 (eval $ac_try) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
c3a86da9
DJ
4069 ac_compiler_gnu=yes
4070else
4071 echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
2aeb72e9 4074ac_compiler_gnu=no
c3a86da9 4075fi
2aeb72e9 4076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4077ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4078
4079fi
2aeb72e9
DD
4080echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4081echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
4082GXX=`test $ac_compiler_gnu = yes && echo yes`
4083ac_test_CXXFLAGS=${CXXFLAGS+set}
4084ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
4085CXXFLAGS="-g"
4086echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4087echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
4088if test "${ac_cv_prog_cxx_g+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
2aeb72e9 4091 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4092/* confdefs.h. */
4093_ACEOF
4094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
4096/* end confdefs.h. */
4097
4098int
4099main ()
4100{
4101
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext
2aeb72e9
DD
4107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_cxx_werror_flag"
4116 || test ! -s conftest.err'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
c3a86da9
DJ
4128 ac_cv_prog_cxx_g=yes
4129else
4130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
2aeb72e9
DD
4133ac_cv_prog_cxx_g=no
4134fi
4135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136fi
4137echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4138echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4139if test "$ac_test_CXXFLAGS" = set; then
4140 CXXFLAGS=$ac_save_CXXFLAGS
4141elif test $ac_cv_prog_cxx_g = yes; then
4142 if test "$GXX" = yes; then
4143 CXXFLAGS="-g -O2"
4144 else
4145 CXXFLAGS="-g"
4146 fi
4147else
4148 if test "$GXX" = yes; then
4149 CXXFLAGS="-O2"
4150 else
4151 CXXFLAGS=
4152 fi
4153fi
4154for ac_declaration in \
4155 '' \
4156 'extern "C" void std::exit (int) throw (); using std::exit;' \
4157 'extern "C" void std::exit (int); using std::exit;' \
4158 'extern "C" void exit (int) throw ();' \
4159 'extern "C" void exit (int);' \
4160 'void exit (int);'
4161do
4162 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h. */
2aeb72e9
DD
4168$ac_declaration
4169#include <stdlib.h>
c3a86da9
DJ
4170int
4171main ()
4172{
2aeb72e9 4173exit (42);
c3a86da9
DJ
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext
2aeb72e9
DD
4179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_cxx_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest.$ac_objext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
c3a86da9
DJ
4200 :
4201else
4202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4204
2aeb72e9
DD
4205continue
4206fi
4207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4208 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
2aeb72e9 4214$ac_declaration
c3a86da9
DJ
4215int
4216main ()
4217{
2aeb72e9 4218exit (42);
c3a86da9
DJ
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223rm -f conftest.$ac_objext
2aeb72e9
DD
4224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_cxx_werror_flag"
4233 || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 break
c3a86da9
DJ
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
11a67599 4250fi
2aeb72e9
DD
4251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252done
4253rm -f conftest*
4254if test -n "$ac_declaration"; then
4255 echo '#ifdef __cplusplus' >>confdefs.h
4256 echo $ac_declaration >>confdefs.h
4257 echo '#endif' >>confdefs.h
c3a86da9
DJ
4258fi
4259
4260ac_ext=c
4261ac_cpp='$CPP $CPPFLAGS'
4262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
4266
4267# We must set the default linker to the linker used by gcc for the correct
4268# operation of libtool. If LD is not defined and we are using gcc, try to
4269# set the LD default to the ld used by gcc.
4270if test -z "$LD"; then
4271 if test "$GCC" = yes; then
4272 case $build in
4273 *-*-mingw*)
4274 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4275 *)
4276 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4277 esac
4278 case $gcc_prog_ld in
4279 # Accept absolute paths.
4280 [\\/]* | [A-Za-z]:[\\/]*)
4281 LD="$gcc_prog_ld" ;;
4282 esac
4283 fi
23f6b2f9
PB
4284fi
4285
23f6b2f9
PB
4286
4287
55ffb5ed 4288
1c710c3c
DJ
4289if test -n "$ac_tool_prefix"; then
4290 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4291set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4292echo "$as_me:$LINENO: checking for $ac_word" >&5
4293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4294if test "${ac_cv_prog_GNATBIND+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4296else
4297 if test -n "$GNATBIND"; then
4298 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4299else
1c710c3c
DJ
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4307 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311done
4312done
4313
55ffb5ed
NN
4314fi
4315fi
1c710c3c 4316GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4317if test -n "$GNATBIND"; then
2aeb72e9
DD
4318 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4319echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4320else
2aeb72e9
DD
4321 echo "$as_me:$LINENO: result: no" >&5
4322echo "${ECHO_T}no" >&6
55ffb5ed
NN
4323fi
4324
1c710c3c 4325fi
55ffb5ed 4326if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4327 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4328 # Extract the first word of "gnatbind", so it can be a program name with args.
4329set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4330echo "$as_me:$LINENO: checking for $ac_word" >&5
4331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4332if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4334else
1c710c3c
DJ
4335 if test -n "$ac_ct_GNATBIND"; then
4336 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4337else
1c710c3c
DJ
4338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339for as_dir in $PATH
4340do
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4345 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4348 fi
4349done
4350done
4351
2aeb72e9 4352 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4353fi
4354fi
1c710c3c
DJ
4355ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4356if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4357 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4358echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4359else
2aeb72e9
DD
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
55ffb5ed
NN
4362fi
4363
2aeb72e9 4364 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4365else
1c710c3c 4366 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4367fi
4368
1c710c3c
DJ
4369if test -n "$ac_tool_prefix"; then
4370 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4371set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4372echo "$as_me:$LINENO: checking for $ac_word" >&5
4373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4374if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4376else
4377 if test -n "$GNATMAKE"; then
4378 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4379else
1c710c3c
DJ
4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
4382do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4387 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4390 fi
4391done
4392done
4393
5305be7e
RG
4394fi
4395fi
1c710c3c 4396GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4397if test -n "$GNATMAKE"; then
2aeb72e9
DD
4398 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4399echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4400else
2aeb72e9
DD
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
5305be7e
RG
4403fi
4404
1c710c3c 4405fi
5305be7e 4406if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4407 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4408 # Extract the first word of "gnatmake", so it can be a program name with args.
4409set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4410echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4412if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4414else
1c710c3c
DJ
4415 if test -n "$ac_ct_GNATMAKE"; then
4416 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4417else
1c710c3c
DJ
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4425 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429done
4430done
4431
2aeb72e9 4432 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4433fi
4434fi
1c710c3c
DJ
4435ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4436if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4437 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4438echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4439else
2aeb72e9
DD
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
5305be7e
RG
4442fi
4443
2aeb72e9 4444 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4445else
1c710c3c 4446 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4447fi
4448
2aeb72e9
DD
4449echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4450echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4451if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4453else
4454 cat >conftest.adb <<EOF
4455procedure conftest is begin null; end conftest;
4456EOF
4457acx_cv_cc_gcc_supports_ada=no
4458# There is a bug in old released versions of GCC which causes the
4459# driver to exit successfully when the appropriate language module
4460# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4461# Therefore we must check for the error message as well as an
4462# unsuccessful exit.
1db673ca
RO
4463# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4464# given a .adb file, but produce no object file. So we must check
4465# if an object file was really produced to guard against this.
55ffb5ed 4466errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4467if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4468 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4469fi
4470rm -f conftest.*
4471fi
2aeb72e9
DD
4472echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4473echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4474
5305be7e 4475if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4476 have_gnat=yes
4477else
4478 have_gnat=no
4479fi
4480
2aeb72e9
DD
4481echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4482echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4483if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4485else
4486 echo abfoo >t1
4487 echo cdfoo >t2
4488 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4489 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4490 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4491 :
4492 else
4493 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4494 fi
4495 fi
a76494aa
PB
4496 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4497 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4498 :
a76494aa
PB
4499 else
4500 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4501 fi
4502 fi
4503 rm t1 t2
4504
4505fi
2aeb72e9
DD
4506echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4507echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4508do_compare="$gcc_cv_prog_cmp_skip"
4509
4510
55ffb5ed 4511
00020c16
ILT
4512# See if we are building gcc with C++.
4513# Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
4514if test "${enable_build_with_cxx+set}" = set; then
4515 enableval="$enable_build_with_cxx"
4516 ENABLE_BUILD_WITH_CXX=$enableval
4517else
4518 ENABLE_BUILD_WITH_CXX=no
4519fi;
4520
acd26225 4521# Check for GMP, MPFR and MPC
e69bf64b 4522gmplibs="-lmpfr -lgmp"
6de9cd9a 4523gmpinc=
e69bf64b 4524have_gmp=no
5f4a82c0 4525mpclibs=-lmpc
acd26225
KG
4526mpcinc=
4527have_mpc=no
4528
4529# Specify a location for mpc
4530# check for this first so it ends up on the link line before mpfr.
4531
4532# Check whether --with-mpc or --without-mpc was given.
4533if test "${with_mpc+set}" = set; then
4534 withval="$with_mpc"
4535
4536fi;
4537
4538# Check whether --with-mpc_include or --without-mpc_include was given.
4539if test "${with_mpc_include+set}" = set; then
4540 withval="$with_mpc_include"
4541
4542fi;
4543
4544# Check whether --with-mpc_lib or --without-mpc_lib was given.
4545if test "${with_mpc_lib+set}" = set; then
4546 withval="$with_mpc_lib"
4547
4548fi;
4549
4550if test "x$with_mpc" != x; then
4551 mpclibs="-L$with_mpc/lib -lmpc"
4552 mpcinc="-I$with_mpc/include $mpcinc"
4553fi
4554if test "x$with_mpc_include" != x; then
4555 mpcinc="-I$with_mpc_include $mpcinc"
4556fi
4557if test "x$with_mpc_lib" != x; then
4558 mpclibs="-L$with_mpc_lib -lmpc"
4559fi
4560if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4561 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4562 mpcinc='-I$$s/mpc/src '"$mpcinc"
4563 # Do not test the mpc version. Assume that it is sufficient, since
4564 # it is in the source tree, and the library has not been built yet
4565 # but it would be included on the link line in the version check below
4566 # hence making the test fail.
4567 have_mpc=yes
4568fi
e69bf64b 4569
bebf829d
PB
4570# Specify a location for mpfr
4571# check for this first so it ends up on the link line before gmp.
1c710c3c 4572
2aeb72e9 4573# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4574if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4575 withval="$with_mpfr_dir"
4576 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4577Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4578echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4579Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4580 { (exit 1); exit 1; }; }
2aeb72e9 4581fi;
bebf829d
PB
4582
4583
2aeb72e9 4584# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4585if test "${with_mpfr+set}" = set; then
2aeb72e9 4586 withval="$with_mpfr"
1c710c3c 4587
2aeb72e9 4588fi;
bebf829d 4589
2aeb72e9 4590# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4591if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4592 withval="$with_mpfr_include"
1c710c3c 4593
2aeb72e9 4594fi;
8a877c9c 4595
2aeb72e9 4596# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4597if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4598 withval="$with_mpfr_lib"
8a877c9c 4599
2aeb72e9 4600fi;
bebf829d
PB
4601
4602if test "x$with_mpfr" != x; then
4603 gmplibs="-L$with_mpfr/lib $gmplibs"
4604 gmpinc="-I$with_mpfr/include"
4605fi
8a877c9c
KG
4606if test "x$with_mpfr_include" != x; then
4607 gmpinc="-I$with_mpfr_include"
4608fi
4609if test "x$with_mpfr_lib" != x; then
4610 gmplibs="-L$with_mpfr_lib $gmplibs"
4611fi
e69bf64b
PB
4612if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4613 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4614 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
acd26225 4615 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
e69bf64b
PB
4616 # Do not test the mpfr version. Assume that it is sufficient, since
4617 # it is in the source tree, and the library has not been built yet
4618 # but it would be included on the link line in the version check below
4619 # hence making the test fail.
4620 have_gmp=yes
4621fi
bebf829d 4622
6de9cd9a 4623# Specify a location for gmp
1c710c3c 4624
2aeb72e9 4625# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4626if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4627 withval="$with_gmp_dir"
4628 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4629Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4630echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4631Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4632 { (exit 1); exit 1; }; }
2aeb72e9 4633fi;
6de9cd9a 4634
6de9cd9a 4635
2aeb72e9 4636# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4637if test "${with_gmp+set}" = set; then
2aeb72e9 4638 withval="$with_gmp"
1c710c3c 4639
2aeb72e9 4640fi;
6de9cd9a 4641
2aeb72e9 4642# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4643if test "${with_gmp_include+set}" = set; then
2aeb72e9 4644 withval="$with_gmp_include"
1c710c3c 4645
2aeb72e9 4646fi;
8a877c9c 4647
2aeb72e9 4648# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4649if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4650 withval="$with_gmp_lib"
8a877c9c 4651
2aeb72e9 4652fi;
8a877c9c 4653
6de9cd9a 4654
bebf829d
PB
4655if test "x$with_gmp" != x; then
4656 gmplibs="-L$with_gmp/lib $gmplibs"
4657 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4658fi
8a877c9c
KG
4659if test "x$with_gmp_include" != x; then
4660 gmpinc="-I$with_gmp_include $gmpinc"
4661fi
4662if test "x$with_gmp_lib" != x; then
4663 gmplibs="-L$with_gmp_lib $gmplibs"
4664fi
e69bf64b
PB
4665if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4666 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4667 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9e3eba15 4668 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
acd26225 4669 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
4670 # Do not test the gmp version. Assume that it is sufficient, since
4671 # it is in the source tree, and the library has not been built yet
4672 # but it would be included on the link line in the version check below
4673 # hence making the test fail.
4674 have_gmp=yes
4675fi
6de9cd9a 4676
d943d7c4 4677if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4678 have_gmp=yes
4679 saved_CFLAGS="$CFLAGS"
4680 CFLAGS="$CFLAGS $gmpinc"
4681 # Check GMP actually works
2aeb72e9
DD
4682 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4683echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4684
4685cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h. */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h. */
6de9cd9a 4691#include "gmp.h"
1c710c3c
DJ
4692int
4693main ()
4694{
6de9cd9a 4695
a3337ea2 4696 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
e69bf64b
PB
4697 choke me
4698 #endif
1c710c3c
DJ
4699
4700 ;
4701 return 0;
4702}
4703_ACEOF
4704rm -f conftest.$ac_objext
2aeb72e9
DD
4705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 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_objext'
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
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4728else
4729 echo "$as_me: failed program was:" >&5
4730sed 's/^/| /' conftest.$ac_ext >&5
4731
2aeb72e9
DD
4732echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4734fi
2aeb72e9 4735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4736
acd26225 4737 # If we have GMP, check the MPFR version.
e69bf64b 4738 if test x"$have_gmp" = xyes; then
2aeb72e9
DD
4739 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4740echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4741 cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h. */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h. */
70ec446f 4747#include <gmp.h>
e69bf64b 4748 #include <mpfr.h>
1c710c3c
DJ
4749int
4750main ()
4751{
e48d66a9 4752
a3337ea2 4753 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
4754 choke me
4755 #endif
1c710c3c
DJ
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
acd26225
KG
4761rm -f conftest.$ac_objext
4762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4769 (exit $ac_status); } &&
4770 { ac_try='test -z "$ac_c_werror_flag"
4771 || test ! -s conftest.err'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; } &&
acd26225 4777 { ac_try='test -s conftest.$ac_objext'
2aeb72e9
DD
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
1c710c3c
DJ
4783 cat >conftest.$ac_ext <<_ACEOF
4784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
a3993f33 4789#include <gmp.h>
e69bf64b 4790 #include <mpfr.h>
1c710c3c
DJ
4791int
4792main ()
4793{
a3993f33 4794
36c713e0 4795 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
4796 choke me
4797 #endif
acd26225
KG
4798
4799 ;
4800 return 0;
4801}
4802_ACEOF
4803rm -f conftest.$ac_objext
4804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827else
4828 echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4832echo "${ECHO_T}buggy but acceptable" >&6
4833fi
4834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4835else
4836 echo "$as_me: failed program was:" >&5
4837sed 's/^/| /' conftest.$ac_ext >&5
4838
4839echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6; have_gmp=no
4841fi
4842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 fi
4844
4845 # Check for the MPC header version.
4846 if test x"$have_mpc" != xyes ; then
4847 CFLAGS="$CFLAGS $mpcinc"
4848 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4849echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4850 cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h. */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h. */
4856#include <mpc.h>
4857int
4858main ()
4859{
4860
4861 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4862 choke me
4863 #endif
4864
4865 ;
4866 return 0;
4867}
4868_ACEOF
4869rm -f conftest.$ac_objext
4870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -z "$ac_c_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 (eval $ac_try) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try='test -s conftest.$ac_objext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 echo "$as_me:$LINENO: result: yes" >&5
4892echo "${ECHO_T}yes" >&6; have_mpc=maybe
4893else
4894 echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4899fi
4900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4901 fi
4902
4903 # Now check the MPFR library.
4904 if test x"$have_gmp" = xyes; then
4905 saved_LIBS="$LIBS"
4906 LIBS="$LIBS $gmplibs"
4907 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4908echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4909 cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h. */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h. */
4915#include <gmp.h>
4916 #include <mpfr.h>
4917int
4918main ()
4919{
4920
4921 mpfr_t n;
4922 mpfr_t x;
4923 int t;
4924 mpfr_init (n);
4925 mpfr_init (x);
4926 mpfr_atan2 (n, n, x, GMP_RNDN);
4927 mpfr_erfc (n, x, GMP_RNDN);
4928 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4929
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4936 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest$ac_exeext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 echo "$as_me:$LINENO: result: yes" >&5
4957echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4958else
4959 echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
acd26225
KG
4962echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4964fi
2aeb72e9 4965rm -f conftest.err conftest.$ac_objext \
1c710c3c 4966 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
4967 LIBS="$saved_LIBS"
4968 fi
4969
4970 if test x"$have_mpc" = xmaybe; then
4971 saved_LIBS="$LIBS"
4972 LIBS="$LIBS $mpclibs $gmplibs"
4973 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4974echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <mpc.h>
4982int
4983main ()
4984{
4985
4986 mpc_t n;
4987 mpc_init2 (n, 53);
4988 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
4989 mpc_sin (n, n, MPC_RNDNN);
4990 mpc_cos (n, n, MPC_RNDNN);
4991 mpc_tan (n, n, MPC_RNDNN);
4992 mpc_sinh (n, n, MPC_RNDNN);
4993 mpc_cosh (n, n, MPC_RNDNN);
4994 mpc_tanh (n, n, MPC_RNDNN);
4995 mpc_exp (n, n, MPC_RNDNN);
4996 mpc_log (n, n, MPC_RNDNN);
4997 mpc_sqrt (n, n, MPC_RNDNN);
4998 mpc_proj (n, n, MPC_RNDNN);
4999 mpc_neg (n, n, MPC_RNDNN);
5000 mpc_sqr (n, n, MPC_RNDNN);
5001 mpc_clear (n);
5002
5003 ;
5004 return 0;
5005}
5006_ACEOF
5007rm -f conftest.$ac_objext conftest$ac_exeext
5008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5009 (eval $ac_link) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest$ac_exeext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 echo "$as_me:$LINENO: result: yes" >&5
5030echo "${ECHO_T}yes" >&6; have_mpc=yes
1c710c3c
DJ
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
2aeb72e9 5035echo "$as_me:$LINENO: result: no" >&5
acd26225 5036echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
1c710c3c 5037fi
2aeb72e9 5038rm -f conftest.err conftest.$ac_objext \
1c710c3c 5039 conftest$ac_exeext conftest.$ac_ext
acd26225 5040 LIBS="$saved_LIBS"
e69bf64b 5041 fi
acd26225 5042
e69bf64b 5043 CFLAGS="$saved_CFLAGS"
6de9cd9a 5044
e69bf64b 5045 if test x$have_gmp != xyes; then
a3337ea2 5046 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
1c710c3c
DJ
5047Try the --with-gmp and/or --with-mpfr options to specify their locations.
5048Copies of these libraries' source code can be found at their respective
5049hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5050See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5051If you obtained GMP and/or MPFR from a vendor distribution package, make
5052sure that you have installed both the libraries and the header files.
5053They may be located in separate packages." >&5
a3337ea2 5054echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
ca558912
KG
5055Try the --with-gmp and/or --with-mpfr options to specify their locations.
5056Copies of these libraries' source code can be found at their respective
5057hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
5058See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5059If you obtained GMP and/or MPFR from a vendor distribution package, make
5060sure that you have installed both the libraries and the header files.
1c710c3c
DJ
5061They may be located in separate packages." >&2;}
5062 { (exit 1); exit 1; }; }
e69bf64b 5063 fi
70ec446f
KG
5064fi
5065
5f4a82c0
KG
5066if test x$have_mpc != xyes ; then
5067 mpcinc=
5068 mpclibs=
5069fi
5070
acd26225
KG
5071gmpinc="$mpcinc $gmpinc"
5072gmplibs="$mpclibs $gmplibs"
5073
5074# Flags needed for both GMP, MPFR and/or MPC.
5075
5076
6de9cd9a
DN
5077
5078
5079
9e3eba15 5080
f38095f3
JM
5081# Allow host libstdc++ to be specified for static linking with PPL.
5082
5083# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5084if test "${with_host_libstdcxx+set}" = set; then
5085 withval="$with_host_libstdcxx"
5086
5087fi;
5088
5089case $with_host_libstdcxx in
5090 no|yes)
5091 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5092echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5093 { (exit 1); exit 1; }; }
5094 ;;
5095esac
f8bf9252 5096
00020c16
ILT
5097# Linker flags to use for stage1 or when not boostrapping.
5098
5099# Check whether --with-stage1-ldflags or --without-stage1-ldflags was given.
5100if test "${with_stage1_ldflags+set}" = set; then
5101 withval="$with_stage1_ldflags"
5102 if test "$withval" = "no" -o "$withval" = "yes"; then
5103 stage1_ldflags=
5104 else
5105 stage1_ldflags=$withval
5106 fi
5107else
5108 stage1_ldflags=
5109fi;
5110
5111
5112# Libraries to use for stage1 or when not bootstrapping.
5113
5114# Check whether --with-stage1-libs or --without-stage1-libs was given.
5115if test "${with_stage1_libs+set}" = set; then
5116 withval="$with_stage1_libs"
5117 if test "$withval" = "no" -o "$withval" = "yes"; then
5118 stage1_libs=
5119 else
5120 stage1_libs=$withval
5121 fi
5122else
5123 stage1_libs=$with_host_libstdcxx
5124fi;
5125
5126
5127# Linker flags to use for stage2 and later builds.
5128
5129# Check whether --with-boot-ldflags or --without-boot-ldflags was given.
5130if test "${with_boot_ldflags+set}" = set; then
5131 withval="$with_boot_ldflags"
5132 if test "$withval" = "no" -o "$withval" = "yes"; then
5133 poststage1_ldflags=
5134 else
5135 poststage1_ldflags=$withval
5136 fi
5137else
5138 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5139 poststage1_ldflags=-static-libstdc++
5140 else
5141 poststage1_ldflags=
5142 fi
5143fi;
5144
5145
5146# Libraries to use for stage2 and later builds. This defaults to the
5147# argument passed to --with-host-libstdcxx.
5148
5149# Check whether --with-boot-libs or --without-boot-libs was given.
5150if test "${with_boot_libs+set}" = set; then
5151 withval="$with_boot_libs"
e90e6bd7
ILT
5152 if test "$withval" = "no" -o "$withval" = "yes"; then
5153 poststage1_libs=
5154 else
5155 poststage1_libs=$withval
5156 fi
5157else
00020c16
ILT
5158 poststage1_libs=$with_host_libstdcxx
5159fi;
5160
5161
f8bf9252
SP
5162# Check for PPL
5163ppl_major_version=0
5164ppl_minor_version=10
00020c16 5165ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5166pplinc=
5167
5168
5169# Check whether --with-ppl or --without-ppl was given.
5170if test "${with_ppl+set}" = set; then
5171 withval="$with_ppl"
5172
0b70eafd
DK
5173else
5174 with_ppl=no
f8bf9252
SP
5175fi;
5176
5177# Check whether --with-ppl_include or --without-ppl_include was given.
5178if test "${with_ppl_include+set}" = set; then
5179 withval="$with_ppl_include"
5180
5181fi;
5182
5183# Check whether --with-ppl_lib or --without-ppl_lib was given.
5184if test "${with_ppl_lib+set}" = set; then
5185 withval="$with_ppl_lib"
5186
5187fi;
5188
53095c56
SP
5189case $with_ppl in
5190 no)
5191 ppllibs=
5192 ;;
5193 *)
00020c16 5194 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56
SP
5195 pplinc="-I$with_ppl/include $pplinc"
5196 LIBS="$ppllibs $LIBS"
5197 ;;
5198esac
f8bf9252
SP
5199if test "x$with_ppl_include" != x; then
5200 pplinc="-I$with_ppl_include $pplinc"
5201fi
5202if test "x$with_ppl_lib" != x; then
00020c16 5203 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5204 LIBS="$ppllibs $LIBS"
5205fi
5206if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
00020c16 5207 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
f8bf9252
SP
5208 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5209 LIBS="$ppllibs $LIBS"
5210fi
5211
d789184e
SP
5212# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5213if test "${enable_ppl_version_check+set}" = set; then
5214 enableval="$enable_ppl_version_check"
5215 ENABLE_PPL_CHECK=$enableval
5216else
5217 ENABLE_PPL_CHECK=yes
f8bf9252
SP
5218fi;
5219
d789184e
SP
5220if test "${ENABLE_PPL_CHECK}" = "yes"; then
5221 saved_CFLAGS="$CFLAGS"
5222 CFLAGS="$CFLAGS $pplinc $gmpinc"
5223 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
f8bf9252 5224echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
d789184e 5225 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
5226/* confdefs.h. */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h. */
5231#include "ppl_c.h"
5232int
5233main ()
5234{
5235
d789184e
SP
5236 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5237 choke me
5238 #endif
f8bf9252
SP
5239
5240 ;
5241 return 0;
5242}
5243_ACEOF
5244rm -f conftest.$ac_objext
5245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5246 (eval $ac_compile) 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -z "$ac_c_werror_flag"
5254 || test ! -s conftest.err'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 (eval $ac_try) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; } &&
5260 { ac_try='test -s conftest.$ac_objext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272echo "$as_me:$LINENO: result: no" >&5
d789184e 5273echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
f8bf9252
SP
5274fi
5275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5276 CFLAGS="$saved_CFLAGS"
5277fi
5278
5279# Flags needed for PPL
5280
5281
f8bf9252 5282
f8bf9252 5283
d789184e 5284# Check for CLOOG
23d9794a 5285clooglibs=" -lcloog "
d789184e
SP
5286clooginc=" -DCLOOG_PPL_BACKEND "
5287
5288
5289# Check whether --with-cloog or --without-cloog was given.
5290if test "${with_cloog+set}" = set; then
5291 withval="$with_cloog"
5292
0b70eafd
DK
5293else
5294 with_cloog=no
d789184e
SP
5295fi;
5296
5297# Check whether --with-cloog_include or --without-cloog_include was given.
5298if test "${with_cloog_include+set}" = set; then
5299 withval="$with_cloog_include"
5300
5301fi;
5302
5303# Check whether --with-cloog_lib or --without-cloog_lib was given.
5304if test "${with_cloog_lib+set}" = set; then
5305 withval="$with_cloog_lib"
5306
5307fi;
5308
53095c56
SP
5309case $with_cloog in
5310 no)
5311 clooglibs=
5312 clooginc=
5313 ;;
5314 *)
5315 clooglibs="-L$with_cloog/lib -lcloog"
5316 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5317 LIBS="$clooglibs $LIBS"
5318 ;;
5319esac
d789184e
SP
5320if test "x$with_cloog_include" != x; then
5321 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5322fi
5323if test "x$with_cloog_lib" != x; then
5324 clooglibs="-L$with_cloog_lib -lcloog"
5325 LIBS="$clooglibs $LIBS"
5326fi
5327if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5328 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5329 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5330 LIBS="$clooglibs $LIBS"
5331fi
5332
5333# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5334if test "${enable_cloog_version_check+set}" = set; then
5335 enableval="$enable_cloog_version_check"
5336 ENABLE_CLOOG_CHECK=$enableval
5337else
5338 ENABLE_CLOOG_CHECK=yes
5339fi;
5340
5341if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5342 saved_CFLAGS="$CFLAGS"
5343 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5344 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
f8bf9252 5345echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
d789184e 5346 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
5347/* confdefs.h. */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h. */
5352#include "cloog/cloog.h"
5353int
5354main ()
5355{
5356
d789184e
SP
5357 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5358 choke me
5359 #endif
f8bf9252
SP
5360
5361 ;
5362 return 0;
5363}
5364_ACEOF
5365rm -f conftest.$ac_objext
5366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389else
5390 echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5395fi
5396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5397 CFLAGS="$saved_CFLAGS"
5398fi
f8bf9252
SP
5399
5400# Flags needed for CLOOG
5401
5402
5403
5404
1e0f07d3 5405# By default, C is the only stage 1 language.
e1888513 5406stage1_languages=,c,
2805b53a 5407
00020c16
ILT
5408# Target libraries that we bootstrap.
5409bootstrap_target_libs=,target-libgcc,
5410
55ffb5ed
NN
5411# Figure out what language subdirectories are present.
5412# Look if the user specified --enable-languages="..."; if not, use
5413# the environment variable $LANGUAGES if defined. $LANGUAGES might
5414# go away some day.
5415# NB: embedded tabs in this IF block -- do not untabify
5416if test -d ${srcdir}/gcc; then
5417 if test x"${enable_languages+set}" != xset; then
5418 if test x"${LANGUAGES+set}" = xset; then
5419 enable_languages="${LANGUAGES}"
5420 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5421 else
5422 enable_languages=all
5423 fi
5424 else
5425 if test x"${enable_languages}" = x ||
5426 test x"${enable_languages}" = xyes;
5427 then
5428 echo configure.in: --enable-languages needs at least one language argument 1>&2
5429 exit 1
5430 fi
5431 fi
5432 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5433
7f26dfa3
FXC
5434 # 'f95' is the old name for the 'fortran' language. We issue a warning
5435 # and make the substitution.
5436 case ,${enable_languages}, in
5437 *,f95,*)
5438 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5439 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5440 ;;
5441 esac
5442
55ffb5ed
NN
5443 # First scan to see if an enabled language requires some other language.
5444 # We assume that a given config-lang.in will list all the language
5445 # front ends it requires, even if some are required indirectly.
5446 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5447 case ${lang_frag} in
5448 ..) ;;
5449 # The odd quoting in the next line works around
5450 # an apparent bug in bash 1.12 on linux.
5451 ${srcdir}/gcc/[*]/config-lang.in) ;;
5452 *)
5453 # From the config-lang.in, get $language, $lang_requires
5454 language=
5455 lang_requires=
5456 . ${lang_frag}
5457 for other in ${lang_requires} ; do
5458 case ,${enable_languages}, in
5459 *,$other,*) ;;
5460 *,all,*) ;;
5461 *,$language,*)
5462 echo " \`$other' language required by \`$language'; enabling" 1>&2
5463 enable_languages="${enable_languages},${other}"
5464 ;;
5465 esac
5466 done
5467 ;;
5468 esac
5469 done
5470
e1888513 5471 new_enable_languages=,c,
55ffb5ed 5472 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5473 potential_languages=,c,
55ffb5ed
NN
5474
5475 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5476 case ${lang_frag} in
5477 ..) ;;
5478 # The odd quoting in the next line works around
5479 # an apparent bug in bash 1.12 on linux.
5480 ${srcdir}/gcc/[*]/config-lang.in) ;;
5481 *)
1c710c3c 5482 # From the config-lang.in, get $language, $target_libs,
2805b53a 5483 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5484 language=
5485 target_libs=
5486 lang_dirs=
1546bb64 5487 subdir_requires=
e1888513
PB
5488 boot_language=no
5489 build_by_default=yes
55ffb5ed 5490 . ${lang_frag}
e1888513
PB
5491 if test x${language} = x; then
5492 echo "${lang_frag} doesn't set \$language." 1>&2
5493 exit 1
5494 fi
5495
00020c16
ILT
5496 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5497 boot_language=yes
5498 fi
5499
e1888513
PB
5500 case ,${enable_languages}, in
5501 *,${language},*)
55ffb5ed
NN
5502 # Language was explicitly selected; include it.
5503 add_this_lang=yes
5504 ;;
e1888513
PB
5505 *,all,*)
5506 # 'all' was selected, select it if it is a default language
5507 add_this_lang=${build_by_default}
55ffb5ed
NN
5508 ;;
5509 *)
5510 add_this_lang=no
5511 ;;
5512 esac
6de9cd9a 5513
1546bb64 5514 # Disable languages that need other directories if these aren't available.
95695ad3 5515 for i in $subdir_requires; do
b6348cb3 5516 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5517 case ,${enable_languages}, in
5518 *,${language},*)
5519 # Specifically requested language; tell them.
1c710c3c
DJ
5520 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5521echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5522 { (exit 1); exit 1; }; }
1546bb64
PB
5523 ;;
5524 *)
5525 # Silently disable.
e1888513 5526 add_this_lang=unsupported
1546bb64
PB
5527 ;;
5528 esac
5529 done
5530
e1888513
PB
5531 # Disable Ada if no preexisting GNAT is available.
5532 case ,${enable_languages},:${language}:${have_gnat} in
5533 *,${language},*:ada:no)
5534 # Specifically requested language; tell them.
1c710c3c
DJ
5535 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5536echo "$as_me: error: GNAT is required to build $language" >&2;}
5537 { (exit 1); exit 1; }; }
e1888513
PB
5538 ;;
5539 *:ada:no)
5540 # Silently disable.
5541 add_this_lang=unsupported
5542 ;;
5543 esac
5544
4fab7234
HPN
5545 # Disable a language that is unsupported by the target.
5546 case " $unsupported_languages " in
5547 *" $language "*)
e1888513 5548 add_this_lang=unsupported
4fab7234
HPN
5549 ;;
5550 esac
5551
6de9cd9a 5552 case $add_this_lang in
e1888513 5553 unsupported)
55ffb5ed 5554 # Remove language-dependent dirs.
2805b53a
NN
5555 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5556 ;;
e1888513
PB
5557 no)
5558 # Remove language-dependent dirs; still show language as supported.
5559 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5560 potential_languages="${potential_languages}${language},"
5561 ;;
5562 yes)
5563 new_enable_languages="${new_enable_languages}${language},"
5564 potential_languages="${potential_languages}${language},"
2805b53a
NN
5565 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5566 case ${boot_language} in
5567 yes)
340de83f 5568 # Add to (comma-separated) list of stage 1 languages.
e1888513 5569 stage1_languages="${stage1_languages}${language},"
00020c16
ILT
5570 # We need to bootstrap any supporting libraries.
5571 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
5572 ;;
5573 esac
5574 ;;
55ffb5ed
NN
5575 esac
5576 ;;
5577 esac
5578 done
5579
2aeb72e9 5580 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 5581if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
5582 enableval="$enable_stage1_languages"
5583 case ,${enable_stage1_languages}, in
e1888513
PB
5584 ,no,|,,)
5585 # Set it to something that will have no effect in the loop below
5586 enable_stage1_languages=c ;;
5587 ,yes,)
5588 enable_stage1_languages=`echo $new_enable_languages | \
5589 sed -e "s/^,//" -e "s/,$//" ` ;;
5590 *,all,*)
5591 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5592 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5593 esac
5594
5595 # Add "good" languages from enable_stage1_languages to stage1_languages,
5596 # while "bad" languages go in missing_languages. Leave no duplicates.
5597 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5598 case $potential_languages in
5599 *,$i,*)
5600 case $stage1_languages in
5601 *,$i,*) ;;
5602 *) stage1_languages="$stage1_languages$i," ;;
5603 esac ;;
5604 *)
5605 case $missing_languages in
5606 *,$i,*) ;;
5607 *) missing_languages="$missing_languages$i," ;;
5608 esac ;;
5609 esac
5610 done
2aeb72e9 5611fi;
e1888513
PB
5612
5613 # Remove leading/trailing commas that were added for simplicity
5614 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5615 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5616 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5617 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5618
55ffb5ed 5619 if test "x$missing_languages" != x; then
1c710c3c 5620 { { echo "$as_me:$LINENO: error:
0cf085e4 5621The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5622Supported languages are: ${potential_languages}" >&5
5623echo "$as_me: error:
5624The following requested languages could not be built: ${missing_languages}
5625Supported languages are: ${potential_languages}" >&2;}
5626 { (exit 1); exit 1; }; }
55ffb5ed 5627 fi
55ffb5ed
NN
5628 if test "x$new_enable_languages" != "x$enable_languages"; then
5629 echo The following languages will be built: ${new_enable_languages}
e1888513 5630 enable_languages="$new_enable_languages"
55ffb5ed 5631 fi
e1888513 5632
1c710c3c 5633
b2eaac4a 5634 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5635fi
5636
27079765
AH
5637# Handle --disable-<component> generically.
5638for dir in $configdirs $build_configdirs $target_configdirs ; do
5639 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5640 varname=`echo $dirname | sed -e s/+/_/g`
5641 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5642 noconfigdirs="$noconfigdirs $dir"
5643 fi
5644done
5645
7cd0cf9c 5646# Check for Boehm's garbage collector
2aeb72e9 5647# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 5648if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
5649 enableval="$enable_objc_gc"
5650 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5651 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5652 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5653echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5654 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5655 ;;
5656esac
2aeb72e9 5657fi;
7cd0cf9c
DA
5658
5659# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5660case ,${enable_languages},:${enable_objc_gc} in
5661 *,objc,*:yes)
7cd0cf9c
DA
5662 # Keep target-boehm-gc if requested for Objective-C.
5663 ;;
7cd0cf9c 5664 *)
2a79fd67
DA
5665 # Otherwise remove target-boehm-gc depending on target-libjava.
5666 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5667 noconfigdirs="$noconfigdirs target-boehm-gc"
5668 fi
7cd0cf9c
DA
5669 ;;
5670esac
5671
ee6a22df
L
5672# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5673# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5674# If we have the source for $noconfigdirs entries, add them to $notsupp.
5675
5676notsupp=""
5677for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5678 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5679 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5680 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5681 if test -r $srcdir/$dirname/configure ; then
5682 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5683 true
5684 else
5685 notsupp="$notsupp $dir"
5686 fi
5687 fi
5688 fi
ee6a22df
L
5689 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5690 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5691 if test -r $srcdir/$dirname/configure ; then
5692 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5693 true
5694 else
5695 notsupp="$notsupp $dir"
5696 fi
5697 fi
5698 fi
55ffb5ed
NN
5699 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5700 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5701 if test -r $srcdir/$dirname/configure ; then
5702 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5703 true
5704 else
5705 notsupp="$notsupp $dir"
5706 fi
5707 fi
5708 fi
5709done
5710
5711# Sometimes the tools are distributed with libiberty but with no other
5712# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5713# Don't let libgcc imply libiberty either.
55ffb5ed 5714if test -n "${target_configdirs}" ; then
54fdc474 5715 libgcc=
55ffb5ed
NN
5716 others=
5717 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5718 if test "$i" = "libgcc"; then
5719 libgcc=target-libgcc
5720 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5721 if test -r $srcdir/$i/configure ; then
5722 others=yes;
5723 break;
5724 fi
5725 fi
5726 done
5727 if test -z "${others}" ; then
54fdc474 5728 target_configdirs=$libgcc
55ffb5ed
NN
5729 fi
5730fi
5731
5732# Quietly strip out all directories which aren't configurable in this tree.
5733# This relies on all configurable subdirectories being autoconfiscated, which
5734# is now the case.
23f6b2f9
PB
5735build_configdirs_all="$build_configdirs"
5736build_configdirs=
5737for i in ${build_configdirs_all} ; do
1c710c3c 5738 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5739 if test -f ${srcdir}/$j/configure ; then
5740 build_configdirs="${build_configdirs} $i"
5741 fi
5742done
5743
55ffb5ed
NN
5744configdirs_all="$configdirs"
5745configdirs=
5746for i in ${configdirs_all} ; do
5747 if test -f ${srcdir}/$i/configure ; then
5748 configdirs="${configdirs} $i"
5749 fi
5750done
23f6b2f9 5751
55ffb5ed
NN
5752target_configdirs_all="$target_configdirs"
5753target_configdirs=
5754for i in ${target_configdirs_all} ; do
1c710c3c 5755 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5756 if test -f ${srcdir}/$j/configure ; then
5757 target_configdirs="${target_configdirs} $i"
5758 fi
5759done
5760
5761# Produce a warning message for the subdirs we can't configure.
5762# This isn't especially interesting in the Cygnus tree, but in the individual
5763# FSF releases, it's important to let people know when their machine isn't
5764# supported by the one or two programs in a package.
5765
5766if test -n "${notsupp}" && test -z "${norecursion}" ; then
5767 # If $appdirs is non-empty, at least one of those directories must still
5768 # be configured, or we error out. (E.g., if the gas release supports a
5769 # specified target in some subdirs but not the gas subdir, we shouldn't
5770 # pretend that all is well.)
5771 if test -n "$appdirs" ; then
5772 for dir in $appdirs ; do
5773 if test -r $dir/Makefile.in ; then
5774 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5775 appdirs=""
5776 break
5777 fi
23f6b2f9 5778 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5779 appdirs=""
5780 break
5781 fi
5782 fi
5783 done
5784 if test -n "$appdirs" ; then
5785 echo "*** This configuration is not supported by this package." 1>&2
5786 exit 1
5787 fi
5788 fi
5789 # Okay, some application will build, or we don't care to check. Still
5790 # notify of subdirs not getting built.
5791 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5792 echo " ${notsupp}" 1>&2
5793 echo " (Any other directories should still work fine.)" 1>&2
5794fi
5795
5796case "$host" in
5797 *msdosdjgpp*)
5798 enable_gdbtk=no ;;
5799esac
5800
c3a86da9
DJ
5801# To find our prefix, in gcc_cv_tool_prefix.
5802
5803# The user is always right.
5804if test "${PATH_SEPARATOR+set}" != set; then
5805 echo "#! /bin/sh" >conf$$.sh
5806 echo "exit 0" >>conf$$.sh
5807 chmod +x conf$$.sh
5808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5809 PATH_SEPARATOR=';'
5810 else
5811 PATH_SEPARATOR=:
5812 fi
5813 rm -f conf$$.sh
5814fi
5815
5816
5817
5818if test "x$exec_prefix" = xNONE; then
5819 if test "x$prefix" = xNONE; then
5820 gcc_cv_tool_prefix=$ac_default_prefix
5821 else
5822 gcc_cv_tool_prefix=$prefix
5823 fi
5824else
5825 gcc_cv_tool_prefix=$exec_prefix
5826fi
5827
5828# If there is no compiler in the tree, use the PATH only. In any
5829# case, if there is no compiler in the tree nobody should use
5830# AS_FOR_TARGET and LD_FOR_TARGET.
5831if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5832 gcc_version=`cat $srcdir/gcc/BASE-VER`
5833 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5834 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5835 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5836 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5837 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5838 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5839else
5840 gcc_cv_tool_dirs=
5841fi
5842
5843if test x$build = x$target && test -n "$md_exec_prefix"; then
5844 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5845fi
5846
5847
5848
55ffb5ed
NN
5849copy_dirs=
5850
1c710c3c 5851
2aeb72e9 5852# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5853if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5854 withval="$with_build_sysroot"
5855 if test x"$withval" != x ; then
526635cb
MM
5856 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5857 fi
5858else
5859 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5860fi;
526635cb
MM
5861
5862
c8aea42c
PB
5863
5864# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5865if test "${with_debug_prefix_map+set}" = set; then
5866 withval="$with_debug_prefix_map"
5867 if test x"$withval" != x; then
5868 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5869 for debug_map in $withval; do
5870 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5871 done
5872 fi
5873else
5874 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5875fi;
5876
5877
1c8bd6a3
PB
5878# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5879# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5880# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5881# We want to ensure that TARGET libraries (which we know are built with
5882# gcc) are built with "-O2 -g", so include those options when setting
5883# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5884if test "x$CFLAGS_FOR_TARGET" = x; then
5885 CFLAGS_FOR_TARGET=$CFLAGS
5886 case " $CFLAGS " in
5887 *" -O2 "*) ;;
5888 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5889 esac
5890 case " $CFLAGS " in
5891 *" -g "* | *" -g3 "*) ;;
5892 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5893 esac
5894fi
5895
5896
5897if test "x$CXXFLAGS_FOR_TARGET" = x; then
5898 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5899 case " $CXXFLAGS " in
5900 *" -O2 "*) ;;
5901 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5902 esac
5903 case " $CXXFLAGS " in
5904 *" -g "* | *" -g3 "*) ;;
5905 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5906 esac
5907fi
5908
5909
55ffb5ed
NN
5910# Handle --with-headers=XXX. If the value is not "yes", the contents of
5911# the named directory are copied to $(tooldir)/sys-include.
5912if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5913 if test x${is_cross_compiler} = xno ; then
5914 echo 1>&2 '***' --with-headers is only supported when cross compiling
5915 exit 1
5916 fi
5917 if test x"${with_headers}" != xyes ; then
c3a86da9 5918 x=${gcc_cv_tool_prefix}
1c710c3c 5919 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5920 fi
5921fi
5922
5923# Handle --with-libs=XXX. If the value is not "yes", the contents of
5924# the name directories are copied to $(tooldir)/lib. Multiple directories
5925# are permitted.
5926if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5927 if test x${is_cross_compiler} = xno ; then
5928 echo 1>&2 '***' --with-libs is only supported when cross compiling
5929 exit 1
5930 fi
5931 if test x"${with_libs}" != xyes ; then
5932 # Copy the libraries in reverse order, so that files in the first named
5933 # library override files in subsequent libraries.
c3a86da9 5934 x=${gcc_cv_tool_prefix}
55ffb5ed 5935 for l in ${with_libs}; do
1c710c3c 5936 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5937 done
5938 fi
5939fi
5940
e8b05380
PB
5941# Set with_gnu_as and with_gnu_ld as appropriate.
5942#
5943# This is done by determining whether or not the appropriate directory
5944# is available, and by checking whether or not specific configurations
5945# have requested that this magic not happen.
1c710c3c
DJ
5946#
5947# The command line options always override the explicit settings in
e8b05380
PB
5948# configure.in, and the settings in configure.in override this magic.
5949#
1c710c3c 5950# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5951# want to do that, then you should use the --without-gnu-as and
5952# --without-gnu-ld options for the configure script.
5953
5954if test x${use_gnu_as} = x &&
5955 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5956 with_gnu_as=yes
5957 extra_host_args="$extra_host_args --with-gnu-as"
5958fi
5959
5960if test x${use_gnu_ld} = x &&
5afab7ad 5961 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
5962 with_gnu_ld=yes
5963 extra_host_args="$extra_host_args --with-gnu-ld"
5964fi
5965
5966# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5967# can detect this case.
5968
5969if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5970 with_newlib=yes
5971 extra_host_args="$extra_host_args --with-newlib"
5972fi
5973
55ffb5ed
NN
5974# Handle ${copy_dirs}
5975set fnord ${copy_dirs}
5976shift
5977while test $# != 0 ; do
5978 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5979 :
5980 else
5981 echo Copying $1 to $2
5982
5983 # Use the install script to create the directory and all required
5984 # parent directories.
5985 if test -d $2 ; then
5986 :
5987 else
5988 echo >config.temp
5989 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5990 fi
5991
5992 # Copy the directory, assuming we have tar.
5993 # FIXME: Should we use B in the second tar? Not all systems support it.
5994 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5995
5996 # It is the responsibility of the user to correctly adjust all
5997 # symlinks. If somebody can figure out how to handle them correctly
5998 # here, feel free to add the code.
5999
6000 echo $1 > $2/COPIED
6001 fi
6002 shift; shift
6003done
6004
e8b05380
PB
6005# Determine a target-dependent exec_prefix that the installed
6006# gcc will search in. Keep this list sorted by triplet, with
6007# the *-*-osname triplets last.
6008md_exec_prefix=
6009case "${target}" in
6010 alpha*-*-*vms*)
6011 md_exec_prefix=/gnu/lib/gcc-lib
6012 ;;
30b74385 6013 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6014 md_exec_prefix=/dev/env/DJDIR/bin
6015 ;;
30b74385 6016 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6017 if test $with_gnu_as = yes; then
6018 md_exec_prefix=/usr/gnu/bin
6019 else
6020 md_exec_prefix=/usr/ccs/bin/elf
6021 fi
6022 ;;
6023
6024 mn10300-*-* | \
6025 powerpc-*-chorusos* | \
6026 powerpc*-*-eabi* | \
6027 powerpc*-*-sysv* | \
6028 powerpc*-*-kaos* | \
6029 s390x-ibm-tpf*)
6030 md_exec_prefix=/usr/ccs/bin
6031 ;;
6032 sparc64-*-elf*)
6033 ;;
6034 v850*-*-*)
6035 md_exec_prefix=/usr/ccs/bin
6036 ;;
aa12a573 6037 xtensa*-*-elf*)
e8b05380
PB
6038 ;;
6039
6040 *-*-beos* | \
6041 *-*-elf* | \
6042 *-*-hpux* | \
6043 *-*-netware* | \
6044 *-*-nto-qnx* | \
6045 *-*-rtems* | \
6046 *-*-solaris2* | \
30b74385 6047 *-*-sysv[45]* | \
e8b05380
PB
6048 *-*-vxworks* | \
6049 *-wrs-windiss)
6050 md_exec_prefix=/usr/ccs/bin
6051 ;;
6052esac
6053
671aa708
NN
6054extra_arflags_for_target=
6055extra_nmflags_for_target=
6056extra_ranlibflags_for_target=
6057target_makefile_frag=/dev/null
6058case "${target}" in
3e19841a
PB
6059 mep*-*-*)
6060 target_makefile_frag="config/mt-mep"
6061 ;;
58e24147
AM
6062 spu-*-*)
6063 target_makefile_frag="config/mt-spu"
6064 ;;
4bf6c438
RS
6065 mips*-sde-elf*)
6066 target_makefile_frag="config/mt-sde"
6067 ;;
1ec3b87b
RS
6068 mipsisa*-*-elfoabi*)
6069 target_makefile_frag="config/mt-mips-elfoabi"
6070 ;;
08d0963a
RS
6071 mips*-*-*linux* | mips*-*-gnu*)
6072 target_makefile_frag="config/mt-mips-gnu"
6073 ;;
61fec9ff 6074 *-*-netware*)
671aa708
NN
6075 target_makefile_frag="config/mt-netware"
6076 ;;
416ac4d4 6077 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6078 target_makefile_frag="config/mt-gnu"
671aa708
NN
6079 ;;
6080 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6081 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6082 # commands to handle both 32-bit and 64-bit objects. These flags are
6083 # harmless if we're using GNU nm or ar.
6084 extra_arflags_for_target=" -X32_64"
6085 extra_nmflags_for_target=" -B -X32_64"
6086 ;;
6087 *-*-darwin*)
6088 # ranlib from Darwin requires the -c flag to look at common symbols.
6089 extra_ranlibflags_for_target=" -c"
6090 ;;
6091 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6092 target_makefile_frag="config/mt-wince"
6093 ;;
6094esac
6095
6096alphaieee_frag=/dev/null
6097case $target in
6098 alpha*-*-*)
6099 # This just makes sure to use the -mieee option to build target libs.
6100 # This should probably be set individually by each library.
6101 alphaieee_frag="config/mt-alphaieee"
6102 ;;
6103esac
6104
6105# If --enable-target-optspace always use -Os instead of -O2 to build
6106# the target libraries, similarly if it is not specified, use -Os
6107# on selected platforms.
6108ospace_frag=/dev/null
6109case "${enable_target_optspace}:${target}" in
6110 yes:*)
6111 ospace_frag="config/mt-ospace"
6112 ;;
6113 :d30v-*)
6114 ospace_frag="config/mt-d30v"
6115 ;;
6116 :m32r-* | :d10v-* | :fr30-*)
6117 ospace_frag="config/mt-ospace"
6118 ;;
6119 no:* | :*)
6120 ;;
6121 *)
6122 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6123 ;;
6124esac
6125
671aa708
NN
6126# Default to using --with-stabs for certain targets.
6127if test x${with_stabs} = x ; then
6128 case "${target}" in
89a95129 6129 mips*-*-irix[56]*)
671aa708
NN
6130 ;;
6131 mips*-*-* | alpha*-*-osf*)
6132 with_stabs=yes;
6133 extra_host_args="${extra_host_args} --with-stabs"
6134 ;;
6135 esac
6136fi
6137
6138# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6139# them automatically.
6140case "${host}" in
1c710c3c 6141 hppa*64*-*-hpux11*)
671aa708
NN
6142 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6143 ;;
6144esac
6145
671aa708
NN
6146# Some systems (e.g., one of the i386-aix systems the gas testers are
6147# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6148tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6149build_tooldir=${tooldir}
6150
671aa708
NN
6151# Create a .gdbinit file which runs the one in srcdir
6152# and tells GDB to look there for source files.
6153
6154if test -r ${srcdir}/.gdbinit ; then
6155 case ${srcdir} in
6156 .) ;;
6157 *) cat > ./.gdbinit <<EOF
6158# ${NO_EDIT}
6159dir ${srcdir}
6160dir .
6161source ${srcdir}/.gdbinit
6162EOF
6163 ;;
6164 esac
6165fi
6166
671aa708
NN
6167# Make sure that the compiler is able to generate an executable. If it
6168# can't, we are probably in trouble. We don't care whether we can run the
6169# executable--we might be using a cross compiler--we only care whether it
6170# can be created. At this point the main configure script has set CC.
6171we_are_ok=no
6172echo "int main () { return 0; }" > conftest.c
6173${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6174if test $? = 0 ; then
6175 if test -s conftest || test -s conftest.exe ; then
6176 we_are_ok=yes
6177 fi
1c710c3c 6178fi
671aa708
NN
6179case $we_are_ok in
6180 no)
6181 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6182 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6183 rm -f conftest*
6184 exit 1
6185 ;;
6186esac
6187rm -f conftest*
6188
6189# The Solaris /usr/ucb/cc compiler does not appear to work.
6190case "${host}" in
6191 sparc-sun-solaris2*)
6192 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6193 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6194 could_use=
6195 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6196 if test -d /opt/cygnus/bin ; then
6197 if test "$could_use" = "" ; then
6198 could_use="/opt/cygnus/bin"
6199 else
6200 could_use="$could_use or /opt/cygnus/bin"
6201 fi
6202 fi
6203 if test "$could_use" = "" ; then
6204 echo "Warning: compilation may fail because you're using"
6205 echo "/usr/ucb/cc. You should change your PATH or CC "
6206 echo "variable and rerun configure."
6207 else
6208 echo "Warning: compilation may fail because you're using"
6209 echo "/usr/ucb/cc, when you should use the C compiler from"
6210 echo "$could_use. You should change your"
6211 echo "PATH or CC variable and rerun configure."
6212 fi
6213 fi
6214 ;;
6215esac
6216
d89f0ad6 6217# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6218case "${host}" in
6219 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 6220 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6221 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6222 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6223esac
6224
d89f0ad6
AL
6225# On systems where the dynamic library environment variable is PATH,
6226# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6227# built executables to PATH.
6228if test "$RPATH_ENVVAR" = PATH; then
6229 GCC_SHLIB_SUBDIR=/shlib
6230else
6231 GCC_SHLIB_SUBDIR=
6232fi
6233
671aa708
NN
6234# Record target_configdirs and the configure arguments for target and
6235# build configuration in Makefile.
6236target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6237build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6238
671aa708
NN
6239# Determine whether gdb needs tk/tcl or not.
6240# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6241# and in that case we want gdb to be built without tk. Ugh!
6242# In fact I believe gdb is the *only* package directly dependent on tk,
6243# so we should be able to put the 'maybe's in unconditionally and
6244# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6245# 100% sure that that's safe though.
e914a571 6246
b4f96efe 6247gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6248case "$enable_gdbtk" in
6249 no)
6250 GDB_TK="" ;;
e914a571
AC
6251 yes)
6252 GDB_TK="${gdb_tk}" ;;
671aa708 6253 *)
e914a571
AC
6254 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6255 # distro. Eventually someone will fix this and move Insight, nee
6256 # gdbtk to a separate directory.
6257 if test -d ${srcdir}/gdb/gdbtk ; then
6258 GDB_TK="${gdb_tk}"
6259 else
6260 GDB_TK=""
6261 fi
6262 ;;
671aa708 6263esac
ef9db8d5
DJ
6264CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6265INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6266
60975492 6267# Strip out unwanted targets.
8b87bb96
NN
6268
6269# While at that, we remove Makefiles if we were started for recursive
6270# configuration, so that the top-level Makefile reconfigures them,
6271# like we used to do when configure itself was recursive.
8b87bb96 6272
60975492
PB
6273# Loop over modules. $extrasub must be used with care, limiting as
6274# much as possible the usage of range addresses. That's because autoconf
6275# splits the sed script to overcome limits in the number of commands,
6276# and relying on carefully-timed sed passes may turn out to be very hard
6277# to maintain later. In this particular case, you just have to be careful
6278# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6279
2aeb72e9 6280# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 6281if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
6282 enableval="$enable_bootstrap"
6283
f516a7da 6284else
ce521a9c 6285 enable_bootstrap=default
2aeb72e9 6286fi;
f516a7da 6287
ce521a9c
PB
6288# Issue errors and warnings for invalid/strange bootstrap combinations.
6289case "$configdirs" in
6290 *gcc*) have_compiler=yes ;;
6291 *) have_compiler=no ;;
6292esac
6293
6294case "$have_compiler:$host:$target:$enable_bootstrap" in
6295 *:*:*:no) ;;
6296
1ca26cd2 6297 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6298 # and we are in a native configuration.
6299 yes:$build:$build:default)
1ca26cd2 6300 enable_bootstrap=yes ;;
ce521a9c
PB
6301
6302 *:*:*:default)
6303 enable_bootstrap=no ;;
6304
6305 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6306 yes:$build:$build:yes)
ce521a9c
PB
6307 ;;
6308
6309 # Other configurations, but we have a compiler. Assume the user knows
6310 # what he's doing.
2d309510 6311 yes:*:*:yes)
1c710c3c
DJ
6312 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6313echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6314 ;;
6315
6316 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6317 no:*:*:yes)
1c710c3c
DJ
6318 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6319echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6320 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
6321
6322 # Fail if wrong command line
6323 *)
1c710c3c
DJ
6324 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6325echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6326 { (exit 1); exit 1; }; }
ce521a9c
PB
6327 ;;
6328esac
6329
6330# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
6331case "$enable_bootstrap" in
6332 yes)
5607edfd 6333 bootstrap_suffix=bootstrap ;;
f516a7da 6334 no)
5607edfd 6335 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
6336esac
6337
23f6b2f9 6338for module in ${build_configdirs} ; do
5607edfd
PB
6339 if test -z "${no_recursion}" \
6340 && test -f ${build_subdir}/${module}/Makefile; then
6341 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6342 rm -f ${build_subdir}/${module}/Makefile
6343 fi
6344 extrasub="$extrasub
6345/^@if build-$module\$/d
6346/^@endif build-$module\$/d
6347/^@if build-$module-$bootstrap_suffix\$/d
6348/^@endif build-$module-$bootstrap_suffix\$/d"
6349done
6350for module in ${configdirs} ; do
a6fbc1e2 6351 if test -z "${no_recursion}"; then
f063a9ed 6352 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6353 if test -f ${file}; then
6354 echo 1>&2 "*** removing ${file} to force reconfigure"
6355 rm -f ${file}
6356 fi
6357 done
5607edfd
PB
6358 fi
6359 extrasub="$extrasub
6360/^@if $module\$/d
6361/^@endif $module\$/d
6362/^@if $module-$bootstrap_suffix\$/d
6363/^@endif $module-$bootstrap_suffix\$/d"
6364done
6365for module in ${target_configdirs} ; do
6366 if test -z "${no_recursion}" \
6367 && test -f ${target_subdir}/${module}/Makefile; then
6368 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6369 rm -f ${target_subdir}/${module}/Makefile
6370 fi
00020c16
ILT
6371
6372 # We only bootstrap target libraries listed in bootstrap_target_libs.
6373 case $bootstrap_target_libs in
6374 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6375 *) target_bootstrap_suffix=no-bootstrap ;;
6376 esac
6377
5607edfd
PB
6378 extrasub="$extrasub
6379/^@if target-$module\$/d
6380/^@endif target-$module\$/d
00020c16
ILT
6381/^@if target-$module-$target_bootstrap_suffix\$/d
6382/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
6383done
6384
60975492
PB
6385extrasub="$extrasub
6386/^@if /,/^@endif /d"
671aa708
NN
6387
6388# Create the serialization dependencies. This uses a temporary file.
6389
2aeb72e9 6390# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 6391if test "${enable_serial_configure+set}" = set; then
2aeb72e9 6392 enableval="$enable_serial_configure"
ade82b16 6393
2aeb72e9 6394fi;
ade82b16 6395
bf1d3e81
NN
6396case ${enable_serial_configure} in
6397 yes)
6398 enable_serial_build_configure=yes
6399 enable_serial_host_configure=yes
6400 enable_serial_target_configure=yes
6401 ;;
6402esac
6403
671aa708
NN
6404# These force 'configure's to be done one at a time, to avoid problems
6405# with contention over a shared config.cache.
6406rm -f serdep.tmp
ade82b16 6407echo '# serdep.tmp' > serdep.tmp
671aa708 6408olditem=
bf1d3e81 6409test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6410for item in ${build_configdirs} ; do
6411 case ${olditem} in
6412 "") ;;
ade82b16 6413 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6414 esac
6415 olditem=${item}
6416done
6417olditem=
bf1d3e81 6418test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6419for item in ${configdirs} ; do
6420 case ${olditem} in
6421 "") ;;
ade82b16 6422 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6423 esac
6424 olditem=${item}
6425done
6426olditem=
bf1d3e81 6427test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6428for item in ${target_configdirs} ; do
6429 case ${olditem} in
6430 "") ;;
ade82b16 6431 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6432 esac
6433 olditem=${item}
6434done
6435serialization_dependencies=serdep.tmp
6436
6437
ade82b16 6438# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6439# target, nonopt, and variable assignments. These are the ones we
6440# might not want to pass down to subconfigures. Also strip
6441# program-prefix, program-suffix, and program-transform-name, so that
6442# we can pass down a consistent program-transform-name.
6443baseargs=
6444keep_next=no
6445skip_next=no
6446eval "set -- $ac_configure_args"
44bfc3ac
DJ
6447for ac_arg
6448do
1c710c3c
DJ
6449 if test X"$skip_next" = X"yes"; then
6450 skip_next=no
6451 continue
6452 fi
6453 if test X"$keep_next" = X"yes"; then
6454 case $ac_arg in
6455 *\'*)
6456 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6457 esac
6458 baseargs="$baseargs '$ac_arg'"
6459 keep_next=no
6460 continue
6461 fi
6462
6463 # Handle separated arguments. Based on the logic generated by
6464 # autoconf 2.59.
6465 case $ac_arg in
6466 *=* | --config-cache | -C | -disable-* | --disable-* \
6467 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6468 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6469 | -with-* | --with-* | -without-* | --without-* | --x)
6470 separate_arg=no
6471 ;;
6472 -*)
6473 separate_arg=yes
6474 ;;
6475 *)
6476 separate_arg=no
6477 ;;
6478 esac
6479
6480 case "$ac_arg" in
6481 --no*)
6482 continue
6483 ;;
6484 --c* | \
6485 --sr* | \
6486 --ho* | \
6487 --bu* | \
6488 --t* | \
6489 --program-* | \
6490 -cache_file* | \
6491 -srcdir* | \
6492 -host* | \
6493 -build* | \
6494 -target* | \
6495 -program-prefix* | \
6496 -program-suffix* | \
6497 -program-transform-name* )
6498 skip_next=$separate_arg
6499 continue
6500 ;;
6501 -*)
6502 # An option. Add it.
6503 case $ac_arg in
6504 *\'*)
6505 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6506 esac
6507 baseargs="$baseargs '$ac_arg'"
6508 keep_next=$separate_arg
6509 ;;
6510 *)
6511 # Either a variable assignment, or a nonopt (triplet). Don't
6512 # pass it down; let the Makefile handle this.
6513 continue
6514 ;;
6515 esac
6516done
6517# Remove the initial space we just introduced and, as these will be
6518# expanded by make, quote '$'.
6519baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6520
43bb47c2
DJ
6521# Add in --program-transform-name, after --program-prefix and
6522# --program-suffix have been applied to it. Autoconf has already
6523# doubled dollar signs and backslashes in program_transform_name; we want
6524# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6525# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6526# Also, because we want to override the logic in subdir configure scripts to
6527# choose program_transform_name, replace any s,x,x, with s,y,y,.
6528sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6529${program_transform_name}
6530EOF_SED
6531gcc_transform_name=`cat conftestsed.out`
6532rm -f conftestsed.out
6533baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6534if test "$silent" = yes; then
6535 baseargs="$baseargs --silent"
6536fi
43bb47c2 6537
671aa708
NN
6538# For the build-side libraries, we just need to pretend we're native,
6539# and not use the same cache file. Multilibs are neither needed nor
6540# desired.
e69bf64b 6541build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6542
6543# For host modules, accept cache file option, or specification as blank.
6544case "${cache_file}" in
6545"") # empty
6546 cache_file_option="" ;;
6547/* | [A-Za-z]:[\\/]* ) # absolute path
6548 cache_file_option="--cache-file=${cache_file}" ;;
6549*) # relative path
6550 cache_file_option="--cache-file=../${cache_file}" ;;
6551esac
6552
09438bde
NN
6553# Host dirs don't like to share a cache file either, horribly enough.
6554# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6555host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6556
6557target_configargs=${baseargs}
6558
6559# Passing a --with-cross-host argument lets the target libraries know
6560# whether they are being built with a cross-compiler or being built
6561# native. However, it would be better to use other mechanisms to make the
6562# sorts of decisions they want to make on this basis. Please consider
6563# this option to be deprecated. FIXME.
6564if test x${is_cross_compiler} = xyes ; then
1c710c3c 6565 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6566fi
6567
6568# Default to --enable-multilib.
6569if test x${enable_multilib} = x ; then
6570 target_configargs="--enable-multilib ${target_configargs}"
6571fi
6572
6573# Pass --with-newlib if appropriate. Note that target_configdirs has
6574# changed from the earlier setting of with_newlib.
6575if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6576 target_configargs="--with-newlib ${target_configargs}"
6577fi
6578
6b9eb62c
NN
6579# Different target subdirs use different values of certain variables
6580# (notably CXX). Worse, multilibs use *lots* of different values.
6581# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6582# it doesn't automatically accept command-line overrides of them.
6583# This means it's not safe for target subdirs to share a cache file,
6584# which is disgusting, but there you have it. Hopefully this can be
6585# fixed in future. It's still worthwhile to use a cache file for each
6586# directory. I think.
6587
bebcd931
MS
6588# Pass the appropriate --build, --host, --target and --cache-file arguments.
6589# We need to pass --target, as newer autoconf's requires consistency
6590# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6591target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6592
671aa708
NN
6593FLAGS_FOR_TARGET=
6594case " $target_configdirs " in
6595 *" newlib "*)
6596 case " $target_configargs " in
6597 *" --with-newlib "*)
6598 case "$target" in
6599 *-cygwin*)
aa8f1f57 6600 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
6601 esac
6602
6603 # If we're not building GCC, don't discard standard headers.
6604 if test -d ${srcdir}/gcc; then
6605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6606
6607 if test "${build}" != "${host}"; then
6608 # On Canadian crosses, CC_FOR_TARGET will have already been set
6609 # by `configure', so we won't have an opportunity to add -Bgcc/
6610 # to it. This is right: we don't want to search that directory
6611 # for binaries, but we want the header files in there, so add
6612 # them explicitly.
215c351a 6613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6614
6615 # Someone might think of using the pre-installed headers on
6616 # Canadian crosses, in case the installed compiler is not fully
6617 # compatible with the compiler being built. In this case, it
6618 # would be better to flag an error than risking having
6619 # incompatible object files being constructed. We can't
6620 # guarantee that an error will be flagged, but let's hope the
6621 # compiler will do it, when presented with incompatible header
6622 # files.
6623 fi
6624 fi
6625
6626 case "${target}-${is_cross_compiler}" in
f2a0e225 6627 i[3456789]86-*-linux*-no)
671aa708
NN
6628 # Here host == target, so we don't need to build gcc,
6629 # so we don't want to discard standard headers.
6630 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6631 ;;
6632 *)
6633 # If we're building newlib, use its generic headers last, but search
6634 # for any libc-related directories first (so make it the last -B
6635 # switch).
6636 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
6637
6638 # If we're building libgloss, find the startup file, simulator library
6639 # and linker script.
6640 case " $target_configdirs " in
6641 *" libgloss "*)
6642 # Look for startup file, simulator library and maybe linker script.
6643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6644 # Look for libnosys.a in case the target needs it.
6645 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6646 # Most targets have the linker script in the source directory.
6647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6648 ;;
6649 esac
671aa708
NN
6650 ;;
6651 esac
6652 ;;
6653 esac
6654 ;;
6655esac
b91f0a41
CV
6656case "$target" in
6657*-mingw*)
6658 # Can't be handled as Cygwin above since Mingw does not use newlib.
6659 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' ;;
6660esac
671aa708 6661
6691a79e
ME
6662# Allow the user to override the flags for
6663# our build compiler if desired.
f019adc1
MF
6664if test x"${build}" = x"${host}" ; then
6665 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6666 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6667 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6668fi
6691a79e 6669
671aa708
NN
6670# On Canadian crosses, we'll be searching the right directories for
6671# the previously-installed cross compiler, so don't bother to add
6672# flags for directories within the install tree of the compiler
6673# being built; programs in there won't even run.
6674if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6675 # Search for pre-installed headers if nothing else fits.
9124bc53 6676 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
6677fi
6678
6679if test "x${use_gnu_ld}" = x &&
6680 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6681 # Arrange for us to find uninstalled linker scripts.
215c351a 6682 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6683fi
6684
e88a2c09
DD
6685# Search for other target-specific linker scripts and such.
6686case "${target}" in
3e19841a
PB
6687 mep*)
6688 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6689 ;;
e88a2c09
DD
6690esac
6691
671aa708 6692# Makefile fragments.
7b61653a
PE
6693for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6694do
6695 eval fragval=\$$frag
6696 if test $fragval != /dev/null; then
6697 eval $frag=${srcdir}/$fragval
6698 fi
6699done
671aa708
NN
6700
6701
6702
6703
6704
6705# Miscellanea: directories, flags, etc.
6706
6707
6708
6709
6710
6711
6712
d89f0ad6 6713
23f6b2f9 6714# Build module lists & subconfigure args.
671aa708
NN
6715
6716
6717
2abefe3d
PB
6718# Host module lists & subconfigure args.
6719
6720
6721
6722# Target module lists & subconfigure args.
6723
6724
6725
6726# Build tools.
6727
6728
6729
0999159b
PB
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
2abefe3d
PB
6744# Generate default definitions for YACC, M4, LEX and other programs that run
6745# on the build machine. These are used if the Makefile can't locate these
6746# programs in objdir.
6747MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6748
6749for ac_prog in 'bison -y' byacc yacc
6750do
1c710c3c 6751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6752set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6753echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6755if test "${ac_cv_prog_YACC+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6757else
6758 if test -n "$YACC"; then
6759 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6760else
1c710c3c
DJ
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6768 ac_cv_prog_YACC="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773done
6774
2abefe3d
PB
6775fi
6776fi
1c710c3c 6777YACC=$ac_cv_prog_YACC
2abefe3d 6778if test -n "$YACC"; then
2aeb72e9
DD
6779 echo "$as_me:$LINENO: result: $YACC" >&5
6780echo "${ECHO_T}$YACC" >&6
2abefe3d 6781else
2aeb72e9
DD
6782 echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6
2abefe3d
PB
6784fi
6785
1c710c3c 6786 test -n "$YACC" && break
2abefe3d
PB
6787done
6788test -n "$YACC" || YACC="$MISSING bison -y"
6789
6790case " $build_configdirs " in
6791 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6792 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6793esac
6794
6795for ac_prog in bison
6796do
1c710c3c 6797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6798set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6799echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6801if test "${ac_cv_prog_BISON+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6803else
6804 if test -n "$BISON"; then
6805 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6806else
1c710c3c
DJ
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6814 ac_cv_prog_BISON="$ac_prog"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819done
6820
2abefe3d
PB
6821fi
6822fi
1c710c3c 6823BISON=$ac_cv_prog_BISON
2abefe3d 6824if test -n "$BISON"; then
2aeb72e9
DD
6825 echo "$as_me:$LINENO: result: $BISON" >&5
6826echo "${ECHO_T}$BISON" >&6
2abefe3d 6827else
2aeb72e9
DD
6828 echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6
2abefe3d
PB
6830fi
6831
1c710c3c 6832 test -n "$BISON" && break
2abefe3d
PB
6833done
6834test -n "$BISON" || BISON="$MISSING bison"
6835
6836case " $build_configdirs " in
6837 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6838esac
6839
6840for ac_prog in gm4 gnum4 m4
6841do
1c710c3c 6842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6843set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6844echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6846if test "${ac_cv_prog_M4+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6848else
6849 if test -n "$M4"; then
6850 ac_cv_prog_M4="$M4" # Let the user override the test.
6851else
1c710c3c
DJ
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6859 ac_cv_prog_M4="$ac_prog"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863done
6864done
6865
2abefe3d
PB
6866fi
6867fi
1c710c3c 6868M4=$ac_cv_prog_M4
2abefe3d 6869if test -n "$M4"; then
2aeb72e9
DD
6870 echo "$as_me:$LINENO: result: $M4" >&5
6871echo "${ECHO_T}$M4" >&6
2abefe3d 6872else
2aeb72e9
DD
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
2abefe3d
PB
6875fi
6876
1c710c3c 6877 test -n "$M4" && break
2abefe3d
PB
6878done
6879test -n "$M4" || M4="$MISSING m4"
6880
6881case " $build_configdirs " in
6882 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6883esac
6884
6885for ac_prog in flex lex
6886do
1c710c3c 6887 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6888set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6889echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6891if test "${ac_cv_prog_LEX+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6893else
6894 if test -n "$LEX"; then
6895 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6896else
1c710c3c
DJ
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6904 ac_cv_prog_LEX="$ac_prog"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909done
6910
2abefe3d
PB
6911fi
6912fi
1c710c3c 6913LEX=$ac_cv_prog_LEX
2abefe3d 6914if test -n "$LEX"; then
2aeb72e9
DD
6915 echo "$as_me:$LINENO: result: $LEX" >&5
6916echo "${ECHO_T}$LEX" >&6
2abefe3d 6917else
2aeb72e9
DD
6918 echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6
2abefe3d
PB
6920fi
6921
1c710c3c 6922 test -n "$LEX" && break
2abefe3d
PB
6923done
6924test -n "$LEX" || LEX="$MISSING flex"
6925
6926case " $build_configdirs " in
6927 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6928 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6929esac
6930
6931for ac_prog in flex
6932do
1c710c3c 6933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6934set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6935echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6937if test "${ac_cv_prog_FLEX+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6939else
6940 if test -n "$FLEX"; then
6941 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6942else
1c710c3c
DJ
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6950 ac_cv_prog_FLEX="$ac_prog"
6951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954done
6955done
6956
2abefe3d
PB
6957fi
6958fi
1c710c3c 6959FLEX=$ac_cv_prog_FLEX
2abefe3d 6960if test -n "$FLEX"; then
2aeb72e9
DD
6961 echo "$as_me:$LINENO: result: $FLEX" >&5
6962echo "${ECHO_T}$FLEX" >&6
2abefe3d 6963else
2aeb72e9
DD
6964 echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6
2abefe3d
PB
6966fi
6967
1c710c3c 6968 test -n "$FLEX" && break
2abefe3d
PB
6969done
6970test -n "$FLEX" || FLEX="$MISSING flex"
6971
6972case " $build_configdirs " in
6973 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6974esac
6975
6976for ac_prog in makeinfo
6977do
1c710c3c 6978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6979set dummy $ac_prog; 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_MAKEINFO+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6984else
6985 if test -n "$MAKEINFO"; then
6986 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
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_MAKEINFO="$ac_prog"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001
2abefe3d
PB
7002fi
7003fi
1c710c3c 7004MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7005if test -n "$MAKEINFO"; then
2aeb72e9
DD
7006 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7007echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 7008else
2aeb72e9
DD
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
2abefe3d
PB
7011fi
7012
1c710c3c 7013 test -n "$MAKEINFO" && break
2abefe3d
PB
7014done
7015test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7016
7017case " $build_configdirs " in
7018 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7019 *)
7020
d18ff35a 7021 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7022 # higher, else we use the "missing" dummy.
7023 if ${MAKEINFO} --version \
d18ff35a 7024 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7025 :
7026 else
7027 MAKEINFO="$MISSING makeinfo"
7028 fi
7029 ;;
7030
7031esac
671aa708 7032
2abefe3d 7033# FIXME: expect and dejagnu may become build tools?
671aa708 7034
2abefe3d
PB
7035for ac_prog in expect
7036do
1c710c3c 7037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7038set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
7039echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7041if test "${ac_cv_prog_EXPECT+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7043else
7044 if test -n "$EXPECT"; then
7045 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7046else
1c710c3c
DJ
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7054 ac_cv_prog_EXPECT="$ac_prog"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058done
7059done
7060
2abefe3d
PB
7061fi
7062fi
1c710c3c 7063EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7064if test -n "$EXPECT"; then
2aeb72e9
DD
7065 echo "$as_me:$LINENO: result: $EXPECT" >&5
7066echo "${ECHO_T}$EXPECT" >&6
2abefe3d 7067else
2aeb72e9
DD
7068 echo "$as_me:$LINENO: result: no" >&5
7069echo "${ECHO_T}no" >&6
2abefe3d 7070fi
671aa708 7071
1c710c3c 7072 test -n "$EXPECT" && break
2abefe3d
PB
7073done
7074test -n "$EXPECT" || EXPECT="expect"
671aa708 7075
2abefe3d
PB
7076case " $configdirs " in
7077 *" expect "*)
7078 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7079 ;;
7080esac
671aa708 7081
2abefe3d
PB
7082for ac_prog in runtest
7083do
1c710c3c 7084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7085set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
7086echo "$as_me:$LINENO: checking for $ac_word" >&5
7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7088if test "${ac_cv_prog_RUNTEST+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7090else
7091 if test -n "$RUNTEST"; then
7092 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7093else
1c710c3c
DJ
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7101 ac_cv_prog_RUNTEST="$ac_prog"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107
2abefe3d
PB
7108fi
7109fi
1c710c3c 7110RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7111if test -n "$RUNTEST"; then
2aeb72e9
DD
7112 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7113echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 7114else
2aeb72e9
DD
7115 echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6
2abefe3d 7117fi
671aa708 7118
1c710c3c 7119 test -n "$RUNTEST" && break
2abefe3d
PB
7120done
7121test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7122
2abefe3d
PB
7123case " $configdirs " in
7124 *" dejagnu "*)
c394e891 7125 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7126 ;;
7127esac
671aa708
NN
7128
7129
671aa708 7130# Host tools.
ca9f4b81
AO
7131ncn_tool_prefix=
7132test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7133ncn_target_tool_prefix=
7134test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7135
278a7a38
AO
7136
7137
7138if test -n "$AR"; then
7139 ac_cv_prog_AR=$AR
7140elif test -n "$ac_cv_prog_AR"; then
7141 AR=$ac_cv_prog_AR
7142fi
7143
7144if test -n "$ac_cv_prog_AR"; then
7145 for ncn_progname in ar; do
7146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7147set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7148echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7150if test "${ac_cv_prog_AR+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153 if test -n "$AR"; then
7154 ac_cv_prog_AR="$AR" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7163 ac_cv_prog_AR="${ncn_progname}"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
7169
7170fi
7171fi
7172AR=$ac_cv_prog_AR
7173if test -n "$AR"; then
2aeb72e9
DD
7174 echo "$as_me:$LINENO: result: $AR" >&5
7175echo "${ECHO_T}$AR" >&6
278a7a38 7176else
2aeb72e9
DD
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
278a7a38
AO
7179fi
7180
7181 done
7182fi
7183
7184for ncn_progname in ar; do
2693c0b0
PB
7185 if test -n "$ncn_tool_prefix"; then
7186 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7187set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7188echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7190if test "${ac_cv_prog_AR+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7192else
7193 if test -n "$AR"; then
7194 ac_cv_prog_AR="$AR" # Let the user override the test.
7195else
1c710c3c
DJ
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7203 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208done
7209
ca9f4b81
AO
7210fi
7211fi
1c710c3c 7212AR=$ac_cv_prog_AR
ca9f4b81 7213if test -n "$AR"; then
2aeb72e9
DD
7214 echo "$as_me:$LINENO: result: $AR" >&5
7215echo "${ECHO_T}$AR" >&6
ca9f4b81 7216else
2aeb72e9
DD
7217 echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
ca9f4b81
AO
7219fi
7220
2693c0b0
PB
7221 fi
7222 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7224set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7225echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7227if test "${ac_cv_prog_AR+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7229else
2693c0b0 7230 if test -n "$AR"; then
af71363e
AS
7231 ac_cv_prog_AR="$AR" # Let the user override the test.
7232else
1c710c3c
DJ
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7240 ac_cv_prog_AR="${ncn_progname}"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244done
7245done
7246
ca9f4b81
AO
7247fi
7248fi
1c710c3c 7249AR=$ac_cv_prog_AR
2693c0b0 7250if test -n "$AR"; then
2aeb72e9
DD
7251 echo "$as_me:$LINENO: result: $AR" >&5
7252echo "${ECHO_T}$AR" >&6
ca9f4b81 7253else
2aeb72e9
DD
7254 echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6
ca9f4b81 7256fi
1c710c3c 7257
2693c0b0
PB
7258 fi
7259 test -n "$ac_cv_prog_AR" && break
7260done
7261
7262if test -z "$ac_cv_prog_AR" ; then
7263 set dummy ar
7264 if test $build = $host ; then
7265 AR="$2"
ca9f4b81 7266 else
2693c0b0 7267 AR="${ncn_tool_prefix}$2"
ca9f4b81 7268 fi
ca9f4b81
AO
7269fi
7270
278a7a38
AO
7271
7272
7273if test -n "$AS"; then
7274 ac_cv_prog_AS=$AS
7275elif test -n "$ac_cv_prog_AS"; then
7276 AS=$ac_cv_prog_AS
7277fi
7278
7279if test -n "$ac_cv_prog_AS"; then
7280 for ncn_progname in as; do
7281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7282set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7283echo "$as_me:$LINENO: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7285if test "${ac_cv_prog_AS+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 if test -n "$AS"; then
7289 ac_cv_prog_AS="$AS" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7298 ac_cv_prog_AS="${ncn_progname}"
7299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302done
7303done
7304
7305fi
7306fi
7307AS=$ac_cv_prog_AS
7308if test -n "$AS"; then
2aeb72e9
DD
7309 echo "$as_me:$LINENO: result: $AS" >&5
7310echo "${ECHO_T}$AS" >&6
278a7a38 7311else
2aeb72e9
DD
7312 echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
278a7a38
AO
7314fi
7315
7316 done
7317fi
7318
7319for ncn_progname in as; do
2693c0b0
PB
7320 if test -n "$ncn_tool_prefix"; then
7321 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7322set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7323echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7325if test "${ac_cv_prog_AS+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7327else
7328 if test -n "$AS"; then
7329 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 7330else
1c710c3c
DJ
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7338 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342done
7343done
7344
ca9f4b81
AO
7345fi
7346fi
1c710c3c 7347AS=$ac_cv_prog_AS
ca9f4b81 7348if test -n "$AS"; then
2aeb72e9
DD
7349 echo "$as_me:$LINENO: result: $AS" >&5
7350echo "${ECHO_T}$AS" >&6
ca9f4b81 7351else
2aeb72e9
DD
7352 echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6
ca9f4b81
AO
7354fi
7355
2693c0b0
PB
7356 fi
7357 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7359set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7360echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7362if test "${ac_cv_prog_AS+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7364else
2693c0b0
PB
7365 if test -n "$AS"; then
7366 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 7367else
1c710c3c
DJ
7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7375 ac_cv_prog_AS="${ncn_progname}"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379done
7380done
7381
ca9f4b81
AO
7382fi
7383fi
1c710c3c 7384AS=$ac_cv_prog_AS
2693c0b0 7385if test -n "$AS"; then
2aeb72e9
DD
7386 echo "$as_me:$LINENO: result: $AS" >&5
7387echo "${ECHO_T}$AS" >&6
ca9f4b81 7388else
2aeb72e9
DD
7389 echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6
ca9f4b81 7391fi
1c710c3c 7392
2693c0b0
PB
7393 fi
7394 test -n "$ac_cv_prog_AS" && break
7395done
7396
7397if test -z "$ac_cv_prog_AS" ; then
7398 set dummy as
7399 if test $build = $host ; then
7400 AS="$2"
ca9f4b81 7401 else
2693c0b0 7402 AS="${ncn_tool_prefix}$2"
ca9f4b81 7403 fi
ca9f4b81
AO
7404fi
7405
278a7a38
AO
7406
7407
7408if test -n "$DLLTOOL"; then
7409 ac_cv_prog_DLLTOOL=$DLLTOOL
7410elif test -n "$ac_cv_prog_DLLTOOL"; then
7411 DLLTOOL=$ac_cv_prog_DLLTOOL
7412fi
7413
7414if test -n "$ac_cv_prog_DLLTOOL"; then
7415 for ncn_progname in dlltool; do
7416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7417set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7418echo "$as_me:$LINENO: checking for $ac_word" >&5
7419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7420if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423 if test -n "$DLLTOOL"; then
7424 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7425else
7426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427for as_dir in $PATH
7428do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7433 ac_cv_prog_DLLTOOL="${ncn_progname}"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437done
7438done
7439
7440fi
7441fi
7442DLLTOOL=$ac_cv_prog_DLLTOOL
7443if test -n "$DLLTOOL"; then
2aeb72e9
DD
7444 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7445echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 7446else
2aeb72e9
DD
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
278a7a38
AO
7449fi
7450
7451 done
7452fi
7453
7454for ncn_progname in dlltool; do
2693c0b0
PB
7455 if test -n "$ncn_tool_prefix"; then
7456 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7457set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7458echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7460if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7462else
7463 if test -n "$DLLTOOL"; then
7464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7465else
1c710c3c
DJ
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7473 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479
ca9f4b81
AO
7480fi
7481fi
1c710c3c 7482DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7483if test -n "$DLLTOOL"; then
2aeb72e9
DD
7484 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7485echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7486else
2aeb72e9
DD
7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
ca9f4b81
AO
7489fi
7490
2693c0b0
PB
7491 fi
7492 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7494set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7495echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7497if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7499else
2693c0b0
PB
7500 if test -n "$DLLTOOL"; then
7501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7502else
1c710c3c
DJ
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7510 ac_cv_prog_DLLTOOL="${ncn_progname}"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514done
7515done
7516
ca9f4b81
AO
7517fi
7518fi
1c710c3c 7519DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7520if test -n "$DLLTOOL"; then
2aeb72e9
DD
7521 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7522echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7523else
2aeb72e9
DD
7524 echo "$as_me:$LINENO: result: no" >&5
7525echo "${ECHO_T}no" >&6
ca9f4b81 7526fi
1c710c3c 7527
2693c0b0
PB
7528 fi
7529 test -n "$ac_cv_prog_DLLTOOL" && break
7530done
7531
7532if test -z "$ac_cv_prog_DLLTOOL" ; then
7533 set dummy dlltool
7534 if test $build = $host ; then
7535 DLLTOOL="$2"
ca9f4b81 7536 else
2693c0b0 7537 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7538 fi
ca9f4b81
AO
7539fi
7540
278a7a38
AO
7541
7542
7543if test -n "$LD"; then
7544 ac_cv_prog_LD=$LD
7545elif test -n "$ac_cv_prog_LD"; then
7546 LD=$ac_cv_prog_LD
7547fi
7548
7549if test -n "$ac_cv_prog_LD"; then
7550 for ncn_progname in ld; do
7551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7552set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7553echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7555if test "${ac_cv_prog_LD+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558 if test -n "$LD"; then
7559 ac_cv_prog_LD="$LD" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7568 ac_cv_prog_LD="${ncn_progname}"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572done
7573done
7574
7575fi
7576fi
7577LD=$ac_cv_prog_LD
7578if test -n "$LD"; then
2aeb72e9
DD
7579 echo "$as_me:$LINENO: result: $LD" >&5
7580echo "${ECHO_T}$LD" >&6
278a7a38 7581else
2aeb72e9
DD
7582 echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
278a7a38
AO
7584fi
7585
7586 done
7587fi
7588
7589for ncn_progname in ld; do
2693c0b0
PB
7590 if test -n "$ncn_tool_prefix"; then
7591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7592set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7593echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7595if test "${ac_cv_prog_LD+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7597else
7598 if test -n "$LD"; then
7599 ac_cv_prog_LD="$LD" # Let the user override the test.
7600else
1c710c3c
DJ
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7608 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614
ca9f4b81
AO
7615fi
7616fi
1c710c3c 7617LD=$ac_cv_prog_LD
ca9f4b81 7618if test -n "$LD"; then
2aeb72e9
DD
7619 echo "$as_me:$LINENO: result: $LD" >&5
7620echo "${ECHO_T}$LD" >&6
ca9f4b81 7621else
2aeb72e9
DD
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
ca9f4b81
AO
7624fi
7625
2693c0b0
PB
7626 fi
7627 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7629set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7630echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7632if test "${ac_cv_prog_LD+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7634else
2693c0b0
PB
7635 if test -n "$LD"; then
7636 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7637else
1c710c3c
DJ
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7645 ac_cv_prog_LD="${ncn_progname}"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7648 fi
7649done
7650done
7651
ca9f4b81
AO
7652fi
7653fi
1c710c3c 7654LD=$ac_cv_prog_LD
2693c0b0 7655if test -n "$LD"; then
2aeb72e9
DD
7656 echo "$as_me:$LINENO: result: $LD" >&5
7657echo "${ECHO_T}$LD" >&6
ca9f4b81 7658else
2aeb72e9
DD
7659 echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6
ca9f4b81 7661fi
1c710c3c 7662
2693c0b0
PB
7663 fi
7664 test -n "$ac_cv_prog_LD" && break
7665done
7666
7667if test -z "$ac_cv_prog_LD" ; then
7668 set dummy ld
7669 if test $build = $host ; then
7670 LD="$2"
ca9f4b81 7671 else
2693c0b0 7672 LD="${ncn_tool_prefix}$2"
ca9f4b81 7673 fi
ca9f4b81
AO
7674fi
7675
278a7a38
AO
7676
7677
7678if test -n "$LIPO"; then
7679 ac_cv_prog_LIPO=$LIPO
7680elif test -n "$ac_cv_prog_LIPO"; then
7681 LIPO=$ac_cv_prog_LIPO
7682fi
7683
7684if test -n "$ac_cv_prog_LIPO"; then
7685 for ncn_progname in lipo; do
7686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7687set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7688echo "$as_me:$LINENO: checking for $ac_word" >&5
7689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7690if test "${ac_cv_prog_LIPO+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693 if test -n "$LIPO"; then
7694 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7703 ac_cv_prog_LIPO="${ncn_progname}"
7704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707done
7708done
7709
7710fi
7711fi
7712LIPO=$ac_cv_prog_LIPO
7713if test -n "$LIPO"; then
2aeb72e9
DD
7714 echo "$as_me:$LINENO: result: $LIPO" >&5
7715echo "${ECHO_T}$LIPO" >&6
278a7a38 7716else
2aeb72e9
DD
7717 echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6
278a7a38
AO
7719fi
7720
7721 done
7722fi
7723
7724for ncn_progname in lipo; do
2abefe3d
PB
7725 if test -n "$ncn_tool_prefix"; then
7726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7727set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7730if test "${ac_cv_prog_LIPO+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7732else
7733 if test -n "$LIPO"; then
7734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7735else
1c710c3c
DJ
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7743 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749
2abefe3d
PB
7750fi
7751fi
1c710c3c 7752LIPO=$ac_cv_prog_LIPO
2abefe3d 7753if test -n "$LIPO"; then
2aeb72e9
DD
7754 echo "$as_me:$LINENO: result: $LIPO" >&5
7755echo "${ECHO_T}$LIPO" >&6
2abefe3d 7756else
2aeb72e9
DD
7757 echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
2abefe3d
PB
7759fi
7760
7761 fi
7762 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7764set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7765echo "$as_me:$LINENO: checking for $ac_word" >&5
7766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7767if test "${ac_cv_prog_LIPO+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7769else
7770 if test -n "$LIPO"; then
7771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7772else
1c710c3c
DJ
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7780 ac_cv_prog_LIPO="${ncn_progname}"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784done
7785done
7786
2abefe3d
PB
7787fi
7788fi
1c710c3c 7789LIPO=$ac_cv_prog_LIPO
2abefe3d 7790if test -n "$LIPO"; then
2aeb72e9
DD
7791 echo "$as_me:$LINENO: result: $LIPO" >&5
7792echo "${ECHO_T}$LIPO" >&6
2abefe3d 7793else
2aeb72e9
DD
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
2abefe3d 7796fi
1c710c3c 7797
2abefe3d
PB
7798 fi
7799 test -n "$ac_cv_prog_LIPO" && break
7800done
7801
7802if test -z "$ac_cv_prog_LIPO" ; then
7803 set dummy lipo
7804 if test $build = $host ; then
7805 LIPO="$2"
7806 else
7807 LIPO="${ncn_tool_prefix}$2"
7808 fi
7809fi
7810
278a7a38
AO
7811
7812
7813if test -n "$NM"; then
7814 ac_cv_prog_NM=$NM
7815elif test -n "$ac_cv_prog_NM"; then
7816 NM=$ac_cv_prog_NM
7817fi
7818
7819if test -n "$ac_cv_prog_NM"; then
7820 for ncn_progname in nm; do
7821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7822set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7823echo "$as_me:$LINENO: checking for $ac_word" >&5
7824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7825if test "${ac_cv_prog_NM+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7827else
7828 if test -n "$NM"; then
7829 ac_cv_prog_NM="$NM" # Let the user override the test.
7830else
1c710c3c
DJ
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7838 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842done
7843done
7844
ca9f4b81
AO
7845fi
7846fi
1c710c3c 7847NM=$ac_cv_prog_NM
ca9f4b81 7848if test -n "$NM"; then
2aeb72e9
DD
7849 echo "$as_me:$LINENO: result: $NM" >&5
7850echo "${ECHO_T}$NM" >&6
ca9f4b81 7851else
2aeb72e9
DD
7852 echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6
ca9f4b81
AO
7854fi
7855
278a7a38
AO
7856 done
7857fi
7858
7859for ncn_progname in nm; do
7860 if test -n "$ncn_tool_prefix"; then
7861 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7862set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7863echo "$as_me:$LINENO: checking for $ac_word" >&5
7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7865if test "${ac_cv_prog_NM+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7867else
2693c0b0
PB
7868 if test -n "$NM"; then
7869 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7870else
1c710c3c
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7878 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884
ca9f4b81
AO
7885fi
7886fi
1c710c3c 7887NM=$ac_cv_prog_NM
2693c0b0 7888if test -n "$NM"; then
2aeb72e9
DD
7889 echo "$as_me:$LINENO: result: $NM" >&5
7890echo "${ECHO_T}$NM" >&6
ca9f4b81 7891else
2aeb72e9
DD
7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
ca9f4b81 7894fi
1c710c3c 7895
2693c0b0 7896 fi
278a7a38
AO
7897 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7899set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7900echo "$as_me:$LINENO: checking for $ac_word" >&5
7901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7902if test "${ac_cv_prog_NM+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904else
7905 if test -n "$NM"; then
7906 ac_cv_prog_NM="$NM" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7915 ac_cv_prog_NM="${ncn_progname}"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919done
7920done
7921
7922fi
7923fi
7924NM=$ac_cv_prog_NM
7925if test -n "$NM"; then
2aeb72e9
DD
7926 echo "$as_me:$LINENO: result: $NM" >&5
7927echo "${ECHO_T}$NM" >&6
278a7a38 7928else
2aeb72e9
DD
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
278a7a38
AO
7931fi
7932
7933 fi
7934 test -n "$ac_cv_prog_NM" && break
7935done
7936
7937if test -z "$ac_cv_prog_NM" ; then
7938 set dummy nm
7939 if test $build = $host ; then
7940 NM="$2"
7941 else
7942 NM="${ncn_tool_prefix}$2"
7943 fi
7944fi
7945
7946
7947
7948if test -n "$RANLIB"; then
7949 ac_cv_prog_RANLIB=$RANLIB
7950elif test -n "$ac_cv_prog_RANLIB"; then
7951 RANLIB=$ac_cv_prog_RANLIB
7952fi
7953
7954if test -n "$ac_cv_prog_RANLIB"; then
7955 for ncn_progname in ranlib; do
7956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7957set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7958echo "$as_me:$LINENO: checking for $ac_word" >&5
7959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7960if test "${ac_cv_prog_RANLIB+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963 if test -n "$RANLIB"; then
7964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7973 ac_cv_prog_RANLIB="${ncn_progname}"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978done
7979
7980fi
7981fi
7982RANLIB=$ac_cv_prog_RANLIB
7983if test -n "$RANLIB"; then
2aeb72e9
DD
7984 echo "$as_me:$LINENO: result: $RANLIB" >&5
7985echo "${ECHO_T}$RANLIB" >&6
278a7a38 7986else
2aeb72e9
DD
7987 echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6
278a7a38
AO
7989fi
7990
7991 done
7992fi
ca9f4b81 7993
278a7a38 7994for ncn_progname in ranlib; do
2693c0b0
PB
7995 if test -n "$ncn_tool_prefix"; then
7996 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7997set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7998echo "$as_me:$LINENO: checking for $ac_word" >&5
7999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8000if test "${ac_cv_prog_RANLIB+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8002else
8003 if test -n "$RANLIB"; then
8004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8005else
1c710c3c
DJ
8006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8013 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017done
8018done
8019
ca9f4b81
AO
8020fi
8021fi
1c710c3c 8022RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8023if test -n "$RANLIB"; then
2aeb72e9
DD
8024 echo "$as_me:$LINENO: result: $RANLIB" >&5
8025echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 8026else
2aeb72e9
DD
8027 echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6
ca9f4b81
AO
8029fi
8030
2693c0b0
PB
8031 fi
8032 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8034set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8035echo "$as_me:$LINENO: checking for $ac_word" >&5
8036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8037if test "${ac_cv_prog_RANLIB+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8039else
2693c0b0
PB
8040 if test -n "$RANLIB"; then
8041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8042else
1c710c3c
DJ
8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8050 ac_cv_prog_RANLIB="${ncn_progname}"
8051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054done
8055done
8056
ca9f4b81
AO
8057fi
8058fi
1c710c3c 8059RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8060if test -n "$RANLIB"; then
2aeb72e9
DD
8061 echo "$as_me:$LINENO: result: $RANLIB" >&5
8062echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 8063else
2aeb72e9
DD
8064 echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6
ca9f4b81 8066fi
1c710c3c 8067
ca9f4b81 8068 fi
2693c0b0
PB
8069 test -n "$ac_cv_prog_RANLIB" && break
8070done
8071
8072if test -z "$ac_cv_prog_RANLIB" ; then
8073 RANLIB=":"
ca9f4b81
AO
8074fi
8075
278a7a38
AO
8076
8077
8078if test -n "$STRIP"; then
8079 ac_cv_prog_STRIP=$STRIP
8080elif test -n "$ac_cv_prog_STRIP"; then
8081 STRIP=$ac_cv_prog_STRIP
8082fi
8083
8084if test -n "$ac_cv_prog_STRIP"; then
8085 for ncn_progname in strip; do
8086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8087set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8088echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8090if test "${ac_cv_prog_STRIP+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093 if test -n "$STRIP"; then
8094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8103 ac_cv_prog_STRIP="${ncn_progname}"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108done
8109
8110fi
8111fi
8112STRIP=$ac_cv_prog_STRIP
8113if test -n "$STRIP"; then
2aeb72e9
DD
8114 echo "$as_me:$LINENO: result: $STRIP" >&5
8115echo "${ECHO_T}$STRIP" >&6
278a7a38 8116else
2aeb72e9
DD
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
278a7a38
AO
8119fi
8120
8121 done
8122fi
8123
8124for ncn_progname in strip; do
2abefe3d
PB
8125 if test -n "$ncn_tool_prefix"; then
8126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8127set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8128echo "$as_me:$LINENO: checking for $ac_word" >&5
8129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8130if test "${ac_cv_prog_STRIP+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
8132else
8133 if test -n "$STRIP"; then
8134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8135else
1c710c3c
DJ
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8143 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147done
8148done
8149
2abefe3d
PB
8150fi
8151fi
1c710c3c 8152STRIP=$ac_cv_prog_STRIP
2abefe3d 8153if test -n "$STRIP"; then
2aeb72e9
DD
8154 echo "$as_me:$LINENO: result: $STRIP" >&5
8155echo "${ECHO_T}$STRIP" >&6
2abefe3d 8156else
2aeb72e9
DD
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
2abefe3d
PB
8159fi
8160
8161 fi
8162 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8164set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8165echo "$as_me:$LINENO: checking for $ac_word" >&5
8166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8167if test "${ac_cv_prog_STRIP+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
8169else
8170 if test -n "$STRIP"; then
8171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8172else
1c710c3c
DJ
8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174for as_dir in $PATH
8175do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8180 ac_cv_prog_STRIP="${ncn_progname}"
8181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184done
8185done
8186
2abefe3d
PB
8187fi
8188fi
1c710c3c 8189STRIP=$ac_cv_prog_STRIP
2abefe3d 8190if test -n "$STRIP"; then
2aeb72e9
DD
8191 echo "$as_me:$LINENO: result: $STRIP" >&5
8192echo "${ECHO_T}$STRIP" >&6
2abefe3d 8193else
2aeb72e9
DD
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
2abefe3d 8196fi
1c710c3c 8197
2abefe3d
PB
8198 fi
8199 test -n "$ac_cv_prog_STRIP" && break
8200done
8201
8202if test -z "$ac_cv_prog_STRIP" ; then
8203 STRIP=":"
8204fi
8205
278a7a38
AO
8206
8207
8208if test -n "$WINDRES"; then
8209 ac_cv_prog_WINDRES=$WINDRES
8210elif test -n "$ac_cv_prog_WINDRES"; then
8211 WINDRES=$ac_cv_prog_WINDRES
8212fi
8213
8214if test -n "$ac_cv_prog_WINDRES"; then
8215 for ncn_progname in windres; do
8216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8217set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8218echo "$as_me:$LINENO: checking for $ac_word" >&5
8219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8220if test "${ac_cv_prog_WINDRES+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 if test -n "$WINDRES"; then
8224 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8225else
8226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8233 ac_cv_prog_WINDRES="${ncn_progname}"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237done
8238done
8239
8240fi
8241fi
8242WINDRES=$ac_cv_prog_WINDRES
8243if test -n "$WINDRES"; then
2aeb72e9
DD
8244 echo "$as_me:$LINENO: result: $WINDRES" >&5
8245echo "${ECHO_T}$WINDRES" >&6
278a7a38 8246else
2aeb72e9
DD
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
278a7a38
AO
8249fi
8250
8251 done
8252fi
8253
8254for ncn_progname in windres; do
2693c0b0
PB
8255 if test -n "$ncn_tool_prefix"; then
8256 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8257set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8258echo "$as_me:$LINENO: checking for $ac_word" >&5
8259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8260if test "${ac_cv_prog_WINDRES+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8262else
8263 if test -n "$WINDRES"; then
8264 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8265else
1c710c3c
DJ
8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8273 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8276 fi
8277done
8278done
8279
ca9f4b81
AO
8280fi
8281fi
1c710c3c 8282WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 8283if test -n "$WINDRES"; then
2aeb72e9
DD
8284 echo "$as_me:$LINENO: result: $WINDRES" >&5
8285echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 8286else
2aeb72e9
DD
8287 echo "$as_me:$LINENO: result: no" >&5
8288echo "${ECHO_T}no" >&6
ca9f4b81
AO
8289fi
8290
2693c0b0
PB
8291 fi
8292 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8294set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8295echo "$as_me:$LINENO: checking for $ac_word" >&5
8296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8297if test "${ac_cv_prog_WINDRES+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8299else
2693c0b0
PB
8300 if test -n "$WINDRES"; then
8301 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 8302else
1c710c3c
DJ
8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304for as_dir in $PATH
8305do
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8310 ac_cv_prog_WINDRES="${ncn_progname}"
8311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314done
8315done
8316
ca9f4b81
AO
8317fi
8318fi
1c710c3c 8319WINDRES=$ac_cv_prog_WINDRES
2693c0b0 8320if test -n "$WINDRES"; then
2aeb72e9
DD
8321 echo "$as_me:$LINENO: result: $WINDRES" >&5
8322echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 8323else
2aeb72e9
DD
8324 echo "$as_me:$LINENO: result: no" >&5
8325echo "${ECHO_T}no" >&6
ca9f4b81 8326fi
1c710c3c 8327
2693c0b0
PB
8328 fi
8329 test -n "$ac_cv_prog_WINDRES" && break
8330done
8331
8332if test -z "$ac_cv_prog_WINDRES" ; then
8333 set dummy windres
8334 if test $build = $host ; then
8335 WINDRES="$2"
ca9f4b81 8336 else
2693c0b0 8337 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 8338 fi
ca9f4b81
AO
8339fi
8340
278a7a38
AO
8341
8342
901119ae
KT
8343if test -n "$WINDMC"; then
8344 ac_cv_prog_WINDMC=$WINDMC
8345elif test -n "$ac_cv_prog_WINDMC"; then
8346 WINDMC=$ac_cv_prog_WINDMC
8347fi
8348
8349if test -n "$ac_cv_prog_WINDMC"; then
8350 for ncn_progname in windmc; do
8351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8352set dummy ${ncn_progname}; ac_word=$2
8353echo "$as_me:$LINENO: checking for $ac_word" >&5
8354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8355if test "${ac_cv_prog_WINDMC+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358 if test -n "$WINDMC"; then
8359 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_WINDMC="${ncn_progname}"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372done
8373done
8374
8375fi
8376fi
8377WINDMC=$ac_cv_prog_WINDMC
8378if test -n "$WINDMC"; then
8379 echo "$as_me:$LINENO: result: $WINDMC" >&5
8380echo "${ECHO_T}$WINDMC" >&6
8381else
8382 echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6
8384fi
8385
8386 done
8387fi
8388
8389for ncn_progname in windmc; do
8390 if test -n "$ncn_tool_prefix"; then
8391 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8392set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8393echo "$as_me:$LINENO: checking for $ac_word" >&5
8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8395if test "${ac_cv_prog_WINDMC+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398 if test -n "$WINDMC"; then
8399 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8400else
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412done
8413done
8414
8415fi
8416fi
8417WINDMC=$ac_cv_prog_WINDMC
8418if test -n "$WINDMC"; then
8419 echo "$as_me:$LINENO: result: $WINDMC" >&5
8420echo "${ECHO_T}$WINDMC" >&6
8421else
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
8424fi
8425
8426 fi
8427 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8429set dummy ${ncn_progname}; ac_word=$2
8430echo "$as_me:$LINENO: checking for $ac_word" >&5
8431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8432if test "${ac_cv_prog_WINDMC+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8434else
8435 if test -n "$WINDMC"; then
8436 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_WINDMC="${ncn_progname}"
8446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449done
8450done
8451
8452fi
8453fi
8454WINDMC=$ac_cv_prog_WINDMC
8455if test -n "$WINDMC"; then
8456 echo "$as_me:$LINENO: result: $WINDMC" >&5
8457echo "${ECHO_T}$WINDMC" >&6
8458else
8459 echo "$as_me:$LINENO: result: no" >&5
8460echo "${ECHO_T}no" >&6
8461fi
8462
8463 fi
8464 test -n "$ac_cv_prog_WINDMC" && break
8465done
8466
8467if test -z "$ac_cv_prog_WINDMC" ; then
8468 set dummy windmc
8469 if test $build = $host ; then
8470 WINDMC="$2"
8471 else
8472 WINDMC="${ncn_tool_prefix}$2"
8473 fi
8474fi
8475
8476
8477
278a7a38
AO
8478if test -n "$OBJCOPY"; then
8479 ac_cv_prog_OBJCOPY=$OBJCOPY
8480elif test -n "$ac_cv_prog_OBJCOPY"; then
8481 OBJCOPY=$ac_cv_prog_OBJCOPY
8482fi
8483
8484if test -n "$ac_cv_prog_OBJCOPY"; then
8485 for ncn_progname in objcopy; do
8486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8487set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8488echo "$as_me:$LINENO: checking for $ac_word" >&5
8489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8490if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492else
8493 if test -n "$OBJCOPY"; then
8494 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8495else
8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8503 ac_cv_prog_OBJCOPY="${ncn_progname}"
8504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507done
8508done
8509
8510fi
8511fi
8512OBJCOPY=$ac_cv_prog_OBJCOPY
8513if test -n "$OBJCOPY"; then
2aeb72e9
DD
8514 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8515echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 8516else
2aeb72e9
DD
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
278a7a38
AO
8519fi
8520
8521 done
8522fi
8523
8524for ncn_progname in objcopy; do
2693c0b0
PB
8525 if test -n "$ncn_tool_prefix"; then
8526 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8527set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8528echo "$as_me:$LINENO: checking for $ac_word" >&5
8529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8530if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8532else
8533 if test -n "$OBJCOPY"; then
8534 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8535else
1c710c3c
DJ
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8543 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547done
8548done
8549
ca9f4b81
AO
8550fi
8551fi
1c710c3c 8552OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8553if test -n "$OBJCOPY"; then
2aeb72e9
DD
8554 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8555echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8556else
2aeb72e9
DD
8557 echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6
ca9f4b81
AO
8559fi
8560
2693c0b0
PB
8561 fi
8562 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8564set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8565echo "$as_me:$LINENO: checking for $ac_word" >&5
8566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8567if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8569else
2693c0b0
PB
8570 if test -n "$OBJCOPY"; then
8571 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8572else
1c710c3c
DJ
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8580 ac_cv_prog_OBJCOPY="${ncn_progname}"
8581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584done
8585done
8586
ca9f4b81
AO
8587fi
8588fi
1c710c3c 8589OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8590if test -n "$OBJCOPY"; then
2aeb72e9
DD
8591 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8592echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8593else
2aeb72e9
DD
8594 echo "$as_me:$LINENO: result: no" >&5
8595echo "${ECHO_T}no" >&6
ca9f4b81 8596fi
1c710c3c 8597
2693c0b0
PB
8598 fi
8599 test -n "$ac_cv_prog_OBJCOPY" && break
8600done
8601
8602if test -z "$ac_cv_prog_OBJCOPY" ; then
8603 set dummy objcopy
8604 if test $build = $host ; then
8605 OBJCOPY="$2"
ca9f4b81 8606 else
2693c0b0 8607 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8608 fi
ca9f4b81
AO
8609fi
8610
278a7a38
AO
8611
8612
8613if test -n "$OBJDUMP"; then
8614 ac_cv_prog_OBJDUMP=$OBJDUMP
8615elif test -n "$ac_cv_prog_OBJDUMP"; then
8616 OBJDUMP=$ac_cv_prog_OBJDUMP
8617fi
8618
8619if test -n "$ac_cv_prog_OBJDUMP"; then
8620 for ncn_progname in objdump; do
8621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8622set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8623echo "$as_me:$LINENO: checking for $ac_word" >&5
8624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8625if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627else
8628 if test -n "$OBJDUMP"; then
8629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8630else
8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632for as_dir in $PATH
8633do
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8638 ac_cv_prog_OBJDUMP="${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8641 fi
8642done
8643done
8644
8645fi
8646fi
8647OBJDUMP=$ac_cv_prog_OBJDUMP
8648if test -n "$OBJDUMP"; then
2aeb72e9
DD
8649 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8650echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 8651else
2aeb72e9
DD
8652 echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6
278a7a38
AO
8654fi
8655
8656 done
8657fi
8658
8659for ncn_progname in objdump; do
2693c0b0
PB
8660 if test -n "$ncn_tool_prefix"; then
8661 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8662set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8663echo "$as_me:$LINENO: checking for $ac_word" >&5
8664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8665if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8667else
8668 if test -n "$OBJDUMP"; then
8669 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8670else
1c710c3c
DJ
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8678 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8681 fi
8682done
8683done
8684
ca9f4b81
AO
8685fi
8686fi
1c710c3c 8687OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8688if test -n "$OBJDUMP"; then
2aeb72e9
DD
8689 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8690echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8691else
2aeb72e9
DD
8692 echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6
ca9f4b81
AO
8694fi
8695
2693c0b0
PB
8696 fi
8697 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8699set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8700echo "$as_me:$LINENO: checking for $ac_word" >&5
8701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8702if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8704else
2693c0b0
PB
8705 if test -n "$OBJDUMP"; then
8706 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8707else
1c710c3c
DJ
8708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709for as_dir in $PATH
8710do
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8715 ac_cv_prog_OBJDUMP="${ncn_progname}"
8716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8718 fi
8719done
8720done
8721
ca9f4b81
AO
8722fi
8723fi
1c710c3c 8724OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8725if test -n "$OBJDUMP"; then
2aeb72e9
DD
8726 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8727echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8728else
2aeb72e9
DD
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
ca9f4b81 8731fi
1c710c3c 8732
2693c0b0
PB
8733 fi
8734 test -n "$ac_cv_prog_OBJDUMP" && break
8735done
8736
8737if test -z "$ac_cv_prog_OBJDUMP" ; then
8738 set dummy objdump
8739 if test $build = $host ; then
8740 OBJDUMP="$2"
ca9f4b81 8741 else
2693c0b0 8742 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8743 fi
ca9f4b81
AO
8744fi
8745
671aa708
NN
8746
8747
8748
8749
8750
2abefe3d 8751# Target tools.
1c710c3c 8752
2aeb72e9 8753# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 8754if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
8755 withval="$with_build_time_tools"
8756 case x"$withval" in
e8b05380
PB
8757 x/*) ;;
8758 *)
8759 with_build_time_tools=
1c710c3c
DJ
8760 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8761echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8762 ;;
8763 esac
ca9f4b81 8764else
e8b05380 8765 with_build_time_tools=
2aeb72e9 8766fi;
ca9f4b81 8767
278a7a38
AO
8768
8769
8770if test -n "$CC_FOR_TARGET"; then
8771 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8772elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8773 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8774fi
8775
8776if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8777 for ncn_progname in cc gcc; do
8778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8779set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8780echo "$as_me:$LINENO: checking for $ac_word" >&5
8781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8782if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785 if test -n "$CC_FOR_TARGET"; then
8786 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8787else
8788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8795 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799done
8800done
8801
8802fi
8803fi
8804CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8805if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8806 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8807echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8808else
2aeb72e9
DD
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
278a7a38
AO
8811fi
8812
8813 done
8814fi
8815
8816if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8817 for ncn_progname in cc gcc; do
2aeb72e9
DD
8818 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8819echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8820 if test -x $with_build_time_tools/${ncn_progname}; then
8821 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
72a7ab82 8824 break
e8b05380 8825 else
2aeb72e9
DD
8826 echo "$as_me:$LINENO: result: no" >&5
8827echo "${ECHO_T}no" >&6
72a7ab82
AP
8828 fi
8829 done
4de997d1
PB
8830fi
8831
e8b05380
PB
8832if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8833 for ncn_progname in cc gcc; do
8834 if test -n "$ncn_target_tool_prefix"; then
8835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8836set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8837echo "$as_me:$LINENO: checking for $ac_word" >&5
8838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8839if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8841else
8842 if test -n "$CC_FOR_TARGET"; then
8843 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8844else
1c710c3c
DJ
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8852 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856done
8857done
8858
4de997d1
PB
8859fi
8860fi
1c710c3c 8861CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8862if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8863 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8864echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8865else
2aeb72e9
DD
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
4de997d1
PB
8868fi
8869
e8b05380
PB
8870 fi
8871 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8873set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8874echo "$as_me:$LINENO: checking for $ac_word" >&5
8875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8876if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8878else
2693c0b0
PB
8879 if test -n "$CC_FOR_TARGET"; then
8880 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8881else
1c710c3c
DJ
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8889 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893done
8894done
8895
4de997d1
PB
8896fi
8897fi
1c710c3c 8898CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8899if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8900 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8901echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8902else
2aeb72e9
DD
8903 echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
4de997d1 8905fi
1c710c3c 8906
e8b05380
PB
8907 fi
8908 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8909 done
8910fi
1c710c3c 8911
2693c0b0
PB
8912if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8913 set dummy cc gcc
8914 if test $build = $target ; then
8915 CC_FOR_TARGET="$2"
4de997d1 8916 else
2693c0b0 8917 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8918 fi
1c00b503
PB
8919else
8920 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8921fi
8922
278a7a38
AO
8923
8924
8925if test -n "$CXX_FOR_TARGET"; then
8926 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8927elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8928 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8929fi
8930
8931if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8932 for ncn_progname in c++ g++ cxx gxx; do
8933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8934set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8935echo "$as_me:$LINENO: checking for $ac_word" >&5
8936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8937if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else
8940 if test -n "$CXX_FOR_TARGET"; then
8941 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8942else
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8950 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8953 fi
8954done
8955done
8956
8957fi
8958fi
8959CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8960if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8961 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8962echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8963else
2aeb72e9
DD
8964 echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
278a7a38
AO
8966fi
8967
8968 done
8969fi
8970
8971if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8972 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8973 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8974echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8975 if test -x $with_build_time_tools/${ncn_progname}; then
8976 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8977 echo "$as_me:$LINENO: result: yes" >&5
8978echo "${ECHO_T}yes" >&6
e8b05380
PB
8979 break
8980 else
2aeb72e9
DD
8981 echo "$as_me:$LINENO: result: no" >&5
8982echo "${ECHO_T}no" >&6
e8b05380
PB
8983 fi
8984 done
8985fi
8986
8987if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8988 for ncn_progname in c++ g++ cxx gxx; do
8989 if test -n "$ncn_target_tool_prefix"; then
8990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8992echo "$as_me:$LINENO: checking for $ac_word" >&5
8993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8994if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8996else
8997 if test -n "$CXX_FOR_TARGET"; then
8998 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8999else
1c710c3c
DJ
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9007 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9010 fi
9011done
9012done
9013
4de997d1
PB
9014fi
9015fi
1c710c3c 9016CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9017if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
9018 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9019echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 9020else
2aeb72e9
DD
9021 echo "$as_me:$LINENO: result: no" >&5
9022echo "${ECHO_T}no" >&6
4de997d1
PB
9023fi
9024
e8b05380
PB
9025 fi
9026 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9028set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9029echo "$as_me:$LINENO: checking for $ac_word" >&5
9030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9031if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9033else
2693c0b0
PB
9034 if test -n "$CXX_FOR_TARGET"; then
9035 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9036else
1c710c3c
DJ
9037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038for as_dir in $PATH
9039do
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9044 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 break 2
9047 fi
9048done
9049done
9050
4de997d1
PB
9051fi
9052fi
1c710c3c 9053CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9054if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
9055 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9056echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 9057else
2aeb72e9
DD
9058 echo "$as_me:$LINENO: result: no" >&5
9059echo "${ECHO_T}no" >&6
4de997d1 9060fi
1c710c3c 9061
e8b05380
PB
9062 fi
9063 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9064 done
9065fi
1c710c3c 9066
2693c0b0
PB
9067if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9068 set dummy c++ g++ cxx gxx
9069 if test $build = $target ; then
9070 CXX_FOR_TARGET="$2"
4de997d1 9071 else
2693c0b0 9072 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9073 fi
1c00b503
PB
9074else
9075 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9076fi
9077
278a7a38
AO
9078
9079
9080if test -n "$GCC_FOR_TARGET"; then
9081 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9082elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9083 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9084fi
9085
9086if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9087 for ncn_progname in gcc; do
9088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9089set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9090echo "$as_me:$LINENO: checking for $ac_word" >&5
9091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9092if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094else
9095 if test -n "$GCC_FOR_TARGET"; then
9096 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9097else
9098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099for as_dir in $PATH
9100do
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9105 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 break 2
9108 fi
9109done
9110done
9111
9112fi
9113fi
9114GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9115if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9116 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9117echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 9118else
2aeb72e9
DD
9119 echo "$as_me:$LINENO: result: no" >&5
9120echo "${ECHO_T}no" >&6
278a7a38
AO
9121fi
9122
9123 done
9124fi
9125
9126if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9127 for ncn_progname in gcc; do
2aeb72e9
DD
9128 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9129echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9130 if test -x $with_build_time_tools/${ncn_progname}; then
9131 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9132 echo "$as_me:$LINENO: result: yes" >&5
9133echo "${ECHO_T}yes" >&6
e8b05380
PB
9134 break
9135 else
2aeb72e9
DD
9136 echo "$as_me:$LINENO: result: no" >&5
9137echo "${ECHO_T}no" >&6
e8b05380
PB
9138 fi
9139 done
9140fi
9141
9142if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9143 for ncn_progname in gcc; do
9144 if test -n "$ncn_target_tool_prefix"; then
9145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9146set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9147echo "$as_me:$LINENO: checking for $ac_word" >&5
9148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9149if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9151else
e8b05380
PB
9152 if test -n "$GCC_FOR_TARGET"; then
9153 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9154else
1c710c3c
DJ
9155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156for as_dir in $PATH
9157do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9162 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9165 fi
9166done
9167done
9168
ca9f4b81
AO
9169fi
9170fi
1c710c3c 9171GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9172if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9173 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9174echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 9175else
2aeb72e9
DD
9176 echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
ca9f4b81
AO
9178fi
9179
e8b05380
PB
9180 fi
9181 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9183set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9184echo "$as_me:$LINENO: checking for $ac_word" >&5
9185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9186if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9188else
e8b05380
PB
9189 if test -n "$GCC_FOR_TARGET"; then
9190 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9191else
1c710c3c
DJ
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9199 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9202 fi
9203done
9204done
9205
ca9f4b81
AO
9206fi
9207fi
1c710c3c 9208GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9209if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9210 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9211echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 9212else
2aeb72e9
DD
9213 echo "$as_me:$LINENO: result: no" >&5
9214echo "${ECHO_T}no" >&6
ca9f4b81 9215fi
1c710c3c 9216
e8b05380
PB
9217 fi
9218 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9219 done
9220fi
1c710c3c 9221
e8b05380
PB
9222if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9223 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
9224else
9225 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
9226fi
9227
278a7a38
AO
9228
9229
9230if test -n "$GCJ_FOR_TARGET"; then
9231 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9232elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9233 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9234fi
9235
9236if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9237 for ncn_progname in gcj; do
9238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9240echo "$as_me:$LINENO: checking for $ac_word" >&5
9241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9242if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245 if test -n "$GCJ_FOR_TARGET"; then
9246 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9255 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259done
9260done
9261
9262fi
9263fi
9264GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9265if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9266 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9267echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9268else
2aeb72e9
DD
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
278a7a38
AO
9271fi
9272
9273 done
9274fi
9275
9276if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9277 for ncn_progname in gcj; do
2aeb72e9
DD
9278 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9279echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9280 if test -x $with_build_time_tools/${ncn_progname}; then
9281 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9282 echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
e8b05380
PB
9284 break
9285 else
2aeb72e9
DD
9286 echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
e8b05380
PB
9288 fi
9289 done
9290fi
9291
9292if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9293 for ncn_progname in gcj; do
9294 if test -n "$ncn_target_tool_prefix"; then
9295 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9296set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9297echo "$as_me:$LINENO: checking for $ac_word" >&5
9298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9299if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9301else
fb0103e5
RG
9302 if test -n "$GCJ_FOR_TARGET"; then
9303 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9304else
1c710c3c
DJ
9305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306for as_dir in $PATH
9307do
9308 IFS=$as_save_IFS
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9312 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9314 break 2
9315 fi
9316done
9317done
9318
e8b05380
PB
9319fi
9320fi
278a7a38
AO
9321GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9322if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9323 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9324echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9325else
2aeb72e9
DD
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
278a7a38
AO
9328fi
9329
9330 fi
9331 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9333set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9334echo "$as_me:$LINENO: checking for $ac_word" >&5
9335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9336if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339 if test -n "$GCJ_FOR_TARGET"; then
9340 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9341else
9342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343for as_dir in $PATH
9344do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9349 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353done
9354done
9355
9356fi
9357fi
9358GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9359if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9360 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9361echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9362else
2aeb72e9
DD
9363 echo "$as_me:$LINENO: result: no" >&5
9364echo "${ECHO_T}no" >&6
278a7a38
AO
9365fi
9366
9367 fi
9368 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9369 done
9370fi
9371
9372if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9373 set dummy gcj
9374 if test $build = $target ; then
9375 GCJ_FOR_TARGET="$2"
9376 else
9377 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9378 fi
1c00b503
PB
9379else
9380 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
9381fi
9382
9383
9384
9385if test -n "$GFORTRAN_FOR_TARGET"; then
9386 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9387elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9388 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
9389fi
9390
278a7a38
AO
9391if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9392 for ncn_progname in gfortran; do
9393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 9394set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9395echo "$as_me:$LINENO: checking for $ac_word" >&5
9396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9397if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 9398 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9399else
278a7a38
AO
9400 if test -n "$GFORTRAN_FOR_TARGET"; then
9401 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 9402else
1c710c3c
DJ
9403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404for as_dir in $PATH
9405do
9406 IFS=$as_save_IFS
9407 test -z "$as_dir" && as_dir=.
9408 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9410 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 break 2
9413 fi
9414done
9415done
9416
e8b05380
PB
9417fi
9418fi
278a7a38
AO
9419GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9420if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9421 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9422echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9423else
2aeb72e9
DD
9424 echo "$as_me:$LINENO: result: no" >&5
9425echo "${ECHO_T}no" >&6
e8b05380 9426fi
1c710c3c 9427
e8b05380
PB
9428 done
9429fi
1c710c3c 9430
278a7a38 9431if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9432 for ncn_progname in gfortran; do
2aeb72e9
DD
9433 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9434echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9435 if test -x $with_build_time_tools/${ncn_progname}; then
9436 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
e8b05380
PB
9439 break
9440 else
2aeb72e9
DD
9441 echo "$as_me:$LINENO: result: no" >&5
9442echo "${ECHO_T}no" >&6
e8b05380
PB
9443 fi
9444 done
9445fi
9446
9447if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9448 for ncn_progname in gfortran; do
9449 if test -n "$ncn_target_tool_prefix"; then
9450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9452echo "$as_me:$LINENO: checking for $ac_word" >&5
9453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9454if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9456else
9457 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9458 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9459else
9460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461for as_dir in $PATH
9462do
9463 IFS=$as_save_IFS
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9467 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 break 2
9470 fi
9471done
9472done
9473
e8b05380
PB
9474fi
9475fi
1c710c3c 9476GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9477if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9478 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9479echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9480else
2aeb72e9
DD
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
e8b05380
PB
9483fi
9484
9485 fi
9486 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9488set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9489echo "$as_me:$LINENO: checking for $ac_word" >&5
9490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9491if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9493else
9494 if test -n "$GFORTRAN_FOR_TARGET"; then
9495 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9496else
1c710c3c
DJ
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9504 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9507 fi
9508done
9509done
9510
e8b05380
PB
9511fi
9512fi
1c710c3c 9513GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9514if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9515 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9516echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9517else
2aeb72e9
DD
9518 echo "$as_me:$LINENO: result: no" >&5
9519echo "${ECHO_T}no" >&6
e8b05380 9520fi
1c710c3c 9521
e8b05380
PB
9522 fi
9523 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9524 done
9525fi
1c710c3c 9526
e8b05380
PB
9527if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9528 set dummy gfortran
2693c0b0 9529 if test $build = $target ; then
e8b05380 9530 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9531 else
e8b05380
PB
9532 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9533 fi
1c00b503
PB
9534else
9535 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9536fi
9537
9538
9539
e8b05380
PB
9540cat > conftest.c << \EOF
9541#ifdef __GNUC__
9542 gcc_yay;
9543#endif
9544EOF
9545if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9546 have_gcc_for_target=yes
9547else
9548 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9549 have_gcc_for_target=no
9550fi
9551rm conftest.c
9552
9553
9554
9555
9556if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9557 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9558 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9559echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9560 if test -x $with_build_time_tools/ar; then
9561 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9562 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
9563 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9564echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 9565 else
2aeb72e9
DD
9566 echo "$as_me:$LINENO: result: no" >&5
9567echo "${ECHO_T}no" >&6
d1f8db0c 9568 fi
e8b05380
PB
9569 elif test $build != $host && test $have_gcc_for_target = yes; then
9570 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9571 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9572 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9573 fi
9574fi
3e19841a 9575if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9576 # Extract the first word of "ar", so it can be a program name with args.
9577set dummy ar; ac_word=$2
2aeb72e9
DD
9578echo "$as_me:$LINENO: checking for $ac_word" >&5
9579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9580if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9582else
1c710c3c
DJ
9583 case $AR_FOR_TARGET in
9584 [\\/]* | ?:[\\/]*)
e8b05380
PB
9585 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9586 ;;
e8b05380 9587 *)
1c710c3c
DJ
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $gcc_cv_tool_dirs
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9595 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599done
9600done
9601
e8b05380
PB
9602 ;;
9603esac
9604fi
1c710c3c 9605AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 9606
e8b05380 9607if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9608 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9609echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9610else
2aeb72e9
DD
9611 echo "$as_me:$LINENO: result: no" >&5
9612echo "${ECHO_T}no" >&6
4de997d1
PB
9613fi
9614
e8b05380
PB
9615fi
9616if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9617
9618
9619if test -n "$AR_FOR_TARGET"; then
9620 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9621elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9622 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9623fi
9624
9625if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9626 for ncn_progname in ar; do
9627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9628set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9629echo "$as_me:$LINENO: checking for $ac_word" >&5
9630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9631if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634 if test -n "$AR_FOR_TARGET"; then
9635 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9636else
9637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638for as_dir in $PATH
9639do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9644 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9647 fi
9648done
9649done
9650
9651fi
9652fi
9653AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9654if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9655 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9656echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 9657else
2aeb72e9
DD
9658 echo "$as_me:$LINENO: result: no" >&5
9659echo "${ECHO_T}no" >&6
278a7a38
AO
9660fi
9661
9662 done
9663fi
9664
9665if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9666 for ncn_progname in ar; do
2aeb72e9
DD
9667 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9668echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9669 if test -x $with_build_time_tools/${ncn_progname}; then
9670 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
e8b05380
PB
9673 break
9674 else
2aeb72e9
DD
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
e8b05380
PB
9677 fi
9678 done
9679fi
9680
9681if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9682 for ncn_progname in ar; do
9683 if test -n "$ncn_target_tool_prefix"; then
9684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9685set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9686echo "$as_me:$LINENO: checking for $ac_word" >&5
9687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9688if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9690else
e8b05380
PB
9691 if test -n "$AR_FOR_TARGET"; then
9692 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9693else
1c710c3c
DJ
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9701 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706done
9707
4de997d1
PB
9708fi
9709fi
1c710c3c 9710AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9711if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9712 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9713echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 9714else
2aeb72e9
DD
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
4de997d1
PB
9717fi
9718
e8b05380
PB
9719 fi
9720 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9722set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9723echo "$as_me:$LINENO: checking for $ac_word" >&5
9724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9725if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9727else
9728 if test -n "$AR_FOR_TARGET"; then
9729 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9730else
1c710c3c
DJ
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9738 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742done
9743done
9744
e8b05380
PB
9745fi
9746fi
1c710c3c 9747AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9748if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9749 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9750echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9751else
2aeb72e9
DD
9752 echo "$as_me:$LINENO: result: no" >&5
9753echo "${ECHO_T}no" >&6
e8b05380 9754fi
1c710c3c 9755
e8b05380
PB
9756 fi
9757 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9758 done
9759fi
1c710c3c 9760
e8b05380
PB
9761if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9762 set dummy ar
9763 if test $build = $target ; then
9764 AR_FOR_TARGET="$2"
9765 else
9766 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9767 fi
1c00b503
PB
9768else
9769 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
9770fi
9771
d1f8db0c
PB
9772else
9773 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9774fi
9775
9776
9777
9778
9779if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9780 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9781 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9782echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9783 if test -x $with_build_time_tools/as; then
9784 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9785 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9786 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9787echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9788 else
2aeb72e9
DD
9789 echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
d1f8db0c 9791 fi
e8b05380
PB
9792 elif test $build != $host && test $have_gcc_for_target = yes; then
9793 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9794 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9795 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9796 fi
9797fi
3e19841a 9798if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9799 # Extract the first word of "as", so it can be a program name with args.
9800set dummy as; ac_word=$2
2aeb72e9
DD
9801echo "$as_me:$LINENO: checking for $ac_word" >&5
9802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9803if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9805else
1c710c3c
DJ
9806 case $AS_FOR_TARGET in
9807 [\\/]* | ?:[\\/]*)
e8b05380
PB
9808 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9809 ;;
e8b05380 9810 *)
1c710c3c
DJ
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $gcc_cv_tool_dirs
9813do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9818 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822done
9823done
9824
e8b05380
PB
9825 ;;
9826esac
9827fi
1c710c3c 9828AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9829
e8b05380 9830if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9831 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9832echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9833else
2aeb72e9
DD
9834 echo "$as_me:$LINENO: result: no" >&5
9835echo "${ECHO_T}no" >&6
e8b05380
PB
9836fi
9837
9838fi
9839if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9840
9841
9842if test -n "$AS_FOR_TARGET"; then
9843 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9844elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9845 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9846fi
9847
9848if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9849 for ncn_progname in as; do
9850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9851set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9852echo "$as_me:$LINENO: checking for $ac_word" >&5
9853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9854if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 if test -n "$AS_FOR_TARGET"; then
9858 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9859else
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9867 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871done
9872done
9873
9874fi
9875fi
9876AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9877if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9878 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9879echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9880else
2aeb72e9
DD
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
278a7a38
AO
9883fi
9884
9885 done
9886fi
9887
9888if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9889 for ncn_progname in as; do
2aeb72e9
DD
9890 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9891echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9892 if test -x $with_build_time_tools/${ncn_progname}; then
9893 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9894 echo "$as_me:$LINENO: result: yes" >&5
9895echo "${ECHO_T}yes" >&6
e8b05380
PB
9896 break
9897 else
2aeb72e9
DD
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
e8b05380
PB
9900 fi
9901 done
9902fi
9903
9904if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9905 for ncn_progname in as; do
9906 if test -n "$ncn_target_tool_prefix"; then
9907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9908set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9909echo "$as_me:$LINENO: checking for $ac_word" >&5
9910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9911if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9913else
9914 if test -n "$AS_FOR_TARGET"; then
9915 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9916else
1c710c3c
DJ
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9924 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929done
9930
e8b05380
PB
9931fi
9932fi
1c710c3c 9933AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9934if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9935 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9936echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9937else
2aeb72e9
DD
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
e8b05380
PB
9940fi
9941
9942 fi
9943 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9945set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9946echo "$as_me:$LINENO: checking for $ac_word" >&5
9947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9948if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9950else
e8b05380
PB
9951 if test -n "$AS_FOR_TARGET"; then
9952 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9953else
1c710c3c
DJ
9954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955for as_dir in $PATH
9956do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9961 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965done
9966done
9967
4de997d1
PB
9968fi
9969fi
1c710c3c 9970AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9971if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9972 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9973echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9974else
2aeb72e9
DD
9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
4de997d1 9977fi
1c710c3c 9978
e8b05380
PB
9979 fi
9980 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9981 done
9982fi
1c710c3c 9983
e8b05380
PB
9984if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9985 set dummy as
9986 if test $build = $target ; then
9987 AS_FOR_TARGET="$2"
9988 else
9989 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9990 fi
1c00b503
PB
9991else
9992 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9993fi
2693c0b0 9994
d1f8db0c
PB
9995else
9996 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9997fi
9998
e8b05380
PB
9999
10000
10001
10002if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10003 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10004 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
10005echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10006 if test -x $with_build_time_tools/dlltool; then
10007 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10008 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
10009 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10010echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 10011 else
2aeb72e9
DD
10012 echo "$as_me:$LINENO: result: no" >&5
10013echo "${ECHO_T}no" >&6
d1f8db0c 10014 fi
e8b05380
PB
10015 elif test $build != $host && test $have_gcc_for_target = yes; then
10016 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
10017 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10018 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
10019 fi
10020fi
3e19841a 10021if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10022 # Extract the first word of "dlltool", so it can be a program name with args.
10023set dummy dlltool; ac_word=$2
2aeb72e9
DD
10024echo "$as_me:$LINENO: checking for $ac_word" >&5
10025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10026if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10028else
1c710c3c
DJ
10029 case $DLLTOOL_FOR_TARGET in
10030 [\\/]* | ?:[\\/]*)
e8b05380
PB
10031 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10032 ;;
e8b05380 10033 *)
1c710c3c
DJ
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $gcc_cv_tool_dirs
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10041 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045done
10046done
10047
e8b05380
PB
10048 ;;
10049esac
4de997d1 10050fi
1c710c3c 10051DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 10052
e8b05380 10053if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10054 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10055echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10056else
2aeb72e9
DD
10057 echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
4de997d1
PB
10059fi
10060
e8b05380
PB
10061fi
10062if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
10063
10064
10065if test -n "$DLLTOOL_FOR_TARGET"; then
10066 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10067elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10068 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10069fi
10070
10071if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10072 for ncn_progname in dlltool; do
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10075echo "$as_me:$LINENO: checking for $ac_word" >&5
10076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10077if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10079else
10080 if test -n "$DLLTOOL_FOR_TARGET"; then
10081 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10090 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095done
10096
10097fi
10098fi
10099DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10100if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10101 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10102echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 10103else
2aeb72e9
DD
10104 echo "$as_me:$LINENO: result: no" >&5
10105echo "${ECHO_T}no" >&6
278a7a38
AO
10106fi
10107
10108 done
10109fi
10110
10111if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10112 for ncn_progname in dlltool; do
2aeb72e9
DD
10113 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10114echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10115 if test -x $with_build_time_tools/${ncn_progname}; then
10116 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10117 echo "$as_me:$LINENO: result: yes" >&5
10118echo "${ECHO_T}yes" >&6
e8b05380
PB
10119 break
10120 else
2aeb72e9
DD
10121 echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6
e8b05380
PB
10123 fi
10124 done
10125fi
10126
10127if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10128 for ncn_progname in dlltool; do
10129 if test -n "$ncn_target_tool_prefix"; then
10130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10131set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10132echo "$as_me:$LINENO: checking for $ac_word" >&5
10133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10134if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10136else
e8b05380
PB
10137 if test -n "$DLLTOOL_FOR_TARGET"; then
10138 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10139else
1c710c3c
DJ
10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10147 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10150 fi
10151done
10152done
10153
4de997d1
PB
10154fi
10155fi
1c710c3c 10156DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10157if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10158 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10159echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10160else
2aeb72e9
DD
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
4de997d1 10163fi
4de997d1 10164
e8b05380
PB
10165 fi
10166 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10168set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10169echo "$as_me:$LINENO: checking for $ac_word" >&5
10170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10171if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10173else
e8b05380
PB
10174 if test -n "$DLLTOOL_FOR_TARGET"; then
10175 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10176else
1c710c3c
DJ
10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178for as_dir in $PATH
10179do
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10184 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10187 fi
10188done
10189done
10190
4de997d1
PB
10191fi
10192fi
1c710c3c 10193DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10194if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10195 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10196echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10197else
2aeb72e9
DD
10198 echo "$as_me:$LINENO: result: no" >&5
10199echo "${ECHO_T}no" >&6
4de997d1 10200fi
1c710c3c 10201
e8b05380
PB
10202 fi
10203 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10204 done
10205fi
1c710c3c 10206
e8b05380
PB
10207if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10208 set dummy dlltool
10209 if test $build = $target ; then
10210 DLLTOOL_FOR_TARGET="$2"
10211 else
10212 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10213 fi
1c00b503
PB
10214else
10215 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
10216fi
10217
d1f8db0c
PB
10218else
10219 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
10220fi
10221
4de997d1 10222
e8b05380
PB
10223
10224
10225if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10226 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10227 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10228echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10229 if test -x $with_build_time_tools/ld; then
10230 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10231 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
10232 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10233echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 10234 else
2aeb72e9
DD
10235 echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6
d1f8db0c 10237 fi
e8b05380
PB
10238 elif test $build != $host && test $have_gcc_for_target = yes; then
10239 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
10240 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10241 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 10242 fi
e8b05380 10243fi
3e19841a 10244if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10245 # Extract the first word of "ld", so it can be a program name with args.
10246set dummy ld; ac_word=$2
2aeb72e9
DD
10247echo "$as_me:$LINENO: checking for $ac_word" >&5
10248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10249if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10251else
1c710c3c
DJ
10252 case $LD_FOR_TARGET in
10253 [\\/]* | ?:[\\/]*)
e8b05380
PB
10254 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10255 ;;
e8b05380 10256 *)
1c710c3c
DJ
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $gcc_cv_tool_dirs
10259do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10264 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10267 fi
10268done
10269done
10270
e8b05380
PB
10271 ;;
10272esac
4de997d1 10273fi
1c710c3c 10274LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 10275
e8b05380 10276if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10277 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10278echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 10279else
2aeb72e9
DD
10280 echo "$as_me:$LINENO: result: no" >&5
10281echo "${ECHO_T}no" >&6
4de997d1 10282fi
2693c0b0 10283
e8b05380
PB
10284fi
10285if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
10286
10287
10288if test -n "$LD_FOR_TARGET"; then
10289 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10290elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10291 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10292fi
10293
10294if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10295 for ncn_progname in ld; do
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10298echo "$as_me:$LINENO: checking for $ac_word" >&5
10299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10300if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 if test -n "$LD_FOR_TARGET"; then
10304 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10305else
10306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307for as_dir in $PATH
10308do
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10313 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10316 fi
10317done
10318done
10319
10320fi
10321fi
10322LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10323if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10324 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10325echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 10326else
2aeb72e9
DD
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
278a7a38
AO
10329fi
10330
10331 done
10332fi
10333
10334if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10335 for ncn_progname in ld; do
2aeb72e9
DD
10336 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10337echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10338 if test -x $with_build_time_tools/${ncn_progname}; then
10339 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10340 echo "$as_me:$LINENO: result: yes" >&5
10341echo "${ECHO_T}yes" >&6
e8b05380
PB
10342 break
10343 else
2aeb72e9
DD
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
e8b05380
PB
10346 fi
10347 done
ca9f4b81
AO
10348fi
10349
e8b05380
PB
10350if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10351 for ncn_progname in ld; do
10352 if test -n "$ncn_target_tool_prefix"; then
10353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10354set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10355echo "$as_me:$LINENO: checking for $ac_word" >&5
10356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10357if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10359else
4de997d1
PB
10360 if test -n "$LD_FOR_TARGET"; then
10361 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10362else
1c710c3c
DJ
10363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $PATH
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
10368 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10370 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 break 2
10373 fi
10374done
10375done
10376
ca9f4b81
AO
10377fi
10378fi
1c710c3c 10379LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 10380if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10381 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10382echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10383else
2aeb72e9
DD
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
ca9f4b81
AO
10386fi
10387
e8b05380
PB
10388 fi
10389 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10391set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10392echo "$as_me:$LINENO: checking for $ac_word" >&5
10393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10394if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10396else
2693c0b0
PB
10397 if test -n "$LD_FOR_TARGET"; then
10398 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10399else
1c710c3c
DJ
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10407 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 break 2
10410 fi
10411done
10412done
10413
ca9f4b81
AO
10414fi
10415fi
1c710c3c 10416LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10417if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10418 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10419echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10420else
2aeb72e9
DD
10421 echo "$as_me:$LINENO: result: no" >&5
10422echo "${ECHO_T}no" >&6
ca9f4b81 10423fi
1c710c3c 10424
e8b05380
PB
10425 fi
10426 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10427 done
10428fi
1c710c3c 10429
2693c0b0
PB
10430if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10431 set dummy ld
10432 if test $build = $target ; then
10433 LD_FOR_TARGET="$2"
ca9f4b81 10434 else
2693c0b0 10435 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10436 fi
1c00b503
PB
10437else
10438 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10439fi
10440
d1f8db0c
PB
10441else
10442 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10443fi
10444
10445
10446
10447
10448if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10449 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10450 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10451echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10452 if test -x $with_build_time_tools/lipo; then
10453 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10454 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
10455 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10456echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 10457 else
2aeb72e9
DD
10458 echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
d1f8db0c 10460 fi
e8b05380
PB
10461 elif test $build != $host && test $have_gcc_for_target = yes; then
10462 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10463 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10464 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10465 fi
10466fi
278a7a38
AO
10467if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10468 # Extract the first word of "lipo", so it can be a program name with args.
10469set dummy lipo; ac_word=$2
2aeb72e9
DD
10470echo "$as_me:$LINENO: checking for $ac_word" >&5
10471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10472if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 case $LIPO_FOR_TARGET in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10478 ;;
10479 *)
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $gcc_cv_tool_dirs
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10487 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10490 fi
10491done
10492done
10493
10494 ;;
10495esac
10496fi
10497LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 10498
278a7a38 10499if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10500 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10501echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 10502else
2aeb72e9
DD
10503 echo "$as_me:$LINENO: result: no" >&5
10504echo "${ECHO_T}no" >&6
278a7a38
AO
10505fi
10506
10507fi
10508if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10509
10510
10511if test -n "$LIPO_FOR_TARGET"; then
10512 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10513elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10514 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10515fi
10516
10517if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10518 for ncn_progname in lipo; do
10519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10520set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10521echo "$as_me:$LINENO: checking for $ac_word" >&5
10522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 10523if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10524 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10525else
278a7a38
AO
10526 if test -n "$LIPO_FOR_TARGET"; then
10527 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
1c710c3c
DJ
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10536 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541done
10542
e8b05380 10543fi
278a7a38
AO
10544fi
10545LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10546if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10547 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10548echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 10549else
2aeb72e9
DD
10550 echo "$as_me:$LINENO: result: no" >&5
10551echo "${ECHO_T}no" >&6
e8b05380
PB
10552fi
10553
278a7a38 10554 done
e8b05380 10555fi
278a7a38
AO
10556
10557if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10558 for ncn_progname in lipo; do
2aeb72e9
DD
10559 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10560echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10561 if test -x $with_build_time_tools/${ncn_progname}; then
10562 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10563 echo "$as_me:$LINENO: result: yes" >&5
10564echo "${ECHO_T}yes" >&6
e8b05380
PB
10565 break
10566 else
2aeb72e9
DD
10567 echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6
e8b05380
PB
10569 fi
10570 done
10571fi
10572
10573if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10574 for ncn_progname in lipo; do
10575 if test -n "$ncn_target_tool_prefix"; then
10576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10577set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10578echo "$as_me:$LINENO: checking for $ac_word" >&5
10579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10580if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10582else
10583 if test -n "$LIPO_FOR_TARGET"; then
10584 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10585else
1c710c3c
DJ
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10593 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598done
10599
040b1c5a
GK
10600fi
10601fi
1c710c3c 10602LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10603if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10604 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10605echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10606else
2aeb72e9
DD
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
040b1c5a
GK
10609fi
10610
e8b05380
PB
10611 fi
10612 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10614set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10615echo "$as_me:$LINENO: checking for $ac_word" >&5
10616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10617if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10619else
10620 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10621 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10622else
1c710c3c
DJ
10623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10630 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635done
10636
040b1c5a
GK
10637fi
10638fi
1c710c3c 10639LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10640if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10641 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10642echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10643else
2aeb72e9
DD
10644 echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
040b1c5a 10646fi
1c710c3c 10647
e8b05380
PB
10648 fi
10649 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10650 done
10651fi
1c710c3c 10652
040b1c5a
GK
10653if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10654 set dummy lipo
10655 if test $build = $target ; then
10656 LIPO_FOR_TARGET="$2"
10657 else
10658 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10659 fi
1c00b503
PB
10660else
10661 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10662fi
10663
d1f8db0c
PB
10664else
10665 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10666fi
10667
10668
10669
10670
10671if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10672 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10673 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10674echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10675 if test -x $with_build_time_tools/nm; then
10676 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10677 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
10678 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10679echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 10680 else
2aeb72e9
DD
10681 echo "$as_me:$LINENO: result: no" >&5
10682echo "${ECHO_T}no" >&6
d1f8db0c 10683 fi
e8b05380
PB
10684 elif test $build != $host && test $have_gcc_for_target = yes; then
10685 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10686 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10687 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10688 fi
10689fi
3e19841a 10690if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10691 # Extract the first word of "nm", so it can be a program name with args.
10692set dummy nm; ac_word=$2
2aeb72e9
DD
10693echo "$as_me:$LINENO: checking for $ac_word" >&5
10694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10695if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10697else
1c710c3c
DJ
10698 case $NM_FOR_TARGET in
10699 [\\/]* | ?:[\\/]*)
e8b05380
PB
10700 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10701 ;;
e8b05380 10702 *)
1c710c3c
DJ
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $gcc_cv_tool_dirs
10705do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10710 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10713 fi
10714done
10715done
10716
e8b05380
PB
10717 ;;
10718esac
10719fi
1c710c3c 10720NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 10721
e8b05380 10722if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10723 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10724echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 10725else
2aeb72e9
DD
10726 echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6
e8b05380
PB
10728fi
10729
10730fi
10731if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10732
10733
10734if test -n "$NM_FOR_TARGET"; then
10735 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10736elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10737 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10738fi
10739
10740if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10741 for ncn_progname in nm; do
10742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10743set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10744echo "$as_me:$LINENO: checking for $ac_word" >&5
10745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10746if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749 if test -n "$NM_FOR_TARGET"; then
10750 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10751else
10752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10759 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10762 fi
10763done
10764done
10765
10766fi
10767fi
10768NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10769if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10770 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10771echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 10772else
2aeb72e9
DD
10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
278a7a38
AO
10775fi
10776
10777 done
10778fi
10779
10780if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10781 for ncn_progname in nm; do
2aeb72e9
DD
10782 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10783echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10784 if test -x $with_build_time_tools/${ncn_progname}; then
10785 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10786 echo "$as_me:$LINENO: result: yes" >&5
10787echo "${ECHO_T}yes" >&6
e8b05380
PB
10788 break
10789 else
2aeb72e9
DD
10790 echo "$as_me:$LINENO: result: no" >&5
10791echo "${ECHO_T}no" >&6
e8b05380
PB
10792 fi
10793 done
10794fi
10795
10796if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10797 for ncn_progname in nm; do
10798 if test -n "$ncn_target_tool_prefix"; then
10799 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10800set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10801echo "$as_me:$LINENO: checking for $ac_word" >&5
10802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10803if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10805else
4de997d1
PB
10806 if test -n "$NM_FOR_TARGET"; then
10807 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10808else
1c710c3c
DJ
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10816 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821done
10822
ca9f4b81
AO
10823fi
10824fi
1c710c3c 10825NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10826if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10827 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10828echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10829else
2aeb72e9
DD
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
ca9f4b81
AO
10832fi
10833
e8b05380
PB
10834 fi
10835 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10837set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10838echo "$as_me:$LINENO: checking for $ac_word" >&5
10839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10840if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10842else
2693c0b0
PB
10843 if test -n "$NM_FOR_TARGET"; then
10844 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10845else
1c710c3c
DJ
10846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10853 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857done
10858done
10859
ca9f4b81
AO
10860fi
10861fi
1c710c3c 10862NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10863if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10864 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10865echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10866else
2aeb72e9
DD
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
ca9f4b81 10869fi
1c710c3c 10870
e8b05380
PB
10871 fi
10872 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10873 done
10874fi
1c710c3c 10875
2693c0b0
PB
10876if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10877 set dummy nm
10878 if test $build = $target ; then
10879 NM_FOR_TARGET="$2"
ca9f4b81 10880 else
2693c0b0 10881 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10882 fi
1c00b503
PB
10883else
10884 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10885fi
10886
d1f8db0c
PB
10887else
10888 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10889fi
10890
10891
10892
10893
10894if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10895 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10896 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10897echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10898 if test -x $with_build_time_tools/objdump; then
10899 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10900 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10901 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10902echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10903 else
2aeb72e9
DD
10904 echo "$as_me:$LINENO: result: no" >&5
10905echo "${ECHO_T}no" >&6
d1f8db0c 10906 fi
e8b05380
PB
10907 elif test $build != $host && test $have_gcc_for_target = yes; then
10908 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10909 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10910 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10911 fi
10912fi
3e19841a 10913if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10914 # Extract the first word of "objdump", so it can be a program name with args.
10915set dummy objdump; ac_word=$2
2aeb72e9
DD
10916echo "$as_me:$LINENO: checking for $ac_word" >&5
10917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10918if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10920else
1c710c3c
DJ
10921 case $OBJDUMP_FOR_TARGET in
10922 [\\/]* | ?:[\\/]*)
e8b05380
PB
10923 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10924 ;;
e8b05380 10925 *)
1c710c3c
DJ
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $gcc_cv_tool_dirs
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10933 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937done
10938done
10939
e8b05380
PB
10940 ;;
10941esac
10942fi
1c710c3c 10943OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10944
e8b05380 10945if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10946 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10947echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10948else
2aeb72e9
DD
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
e8b05380
PB
10951fi
10952
10953fi
10954if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10955
10956
10957if test -n "$OBJDUMP_FOR_TARGET"; then
10958 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10959elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10960 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10961fi
10962
10963if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10964 for ncn_progname in objdump; do
10965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10966set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10969if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$OBJDUMP_FOR_TARGET"; then
10973 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10982 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10992if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10993 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10994echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10995else
2aeb72e9
DD
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
278a7a38
AO
10998fi
10999
11000 done
11001fi
11002
11003if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11004 for ncn_progname in objdump; do
2aeb72e9
DD
11005 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11006echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11007 if test -x $with_build_time_tools/${ncn_progname}; then
11008 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11009 echo "$as_me:$LINENO: result: yes" >&5
11010echo "${ECHO_T}yes" >&6
e8b05380
PB
11011 break
11012 else
2aeb72e9
DD
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
e8b05380
PB
11015 fi
11016 done
11017fi
11018
11019if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11020 for ncn_progname in objdump; do
11021 if test -n "$ncn_target_tool_prefix"; then
11022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11024echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11026if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
11028else
11029 if test -n "$OBJDUMP_FOR_TARGET"; then
11030 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11031else
1c710c3c
DJ
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11039 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044done
11045
d739199a
DJ
11046fi
11047fi
1c710c3c 11048OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11049if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
11050 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11051echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 11052else
2aeb72e9
DD
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
d739199a
DJ
11055fi
11056
e8b05380
PB
11057 fi
11058 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 11060set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11061echo "$as_me:$LINENO: checking for $ac_word" >&5
11062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11063if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
11065else
11066 if test -n "$OBJDUMP_FOR_TARGET"; then
11067 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11068else
1c710c3c
DJ
11069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070for as_dir in $PATH
11071do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11076 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11079 fi
11080done
11081done
11082
d739199a
DJ
11083fi
11084fi
1c710c3c 11085OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11086if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
11087 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11088echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 11089else
2aeb72e9
DD
11090 echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6
d739199a 11092fi
1c710c3c 11093
e8b05380
PB
11094 fi
11095 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11096 done
11097fi
1c710c3c 11098
d739199a
DJ
11099if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11100 set dummy objdump
11101 if test $build = $target ; then
11102 OBJDUMP_FOR_TARGET="$2"
11103 else
11104 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11105 fi
1c00b503
PB
11106else
11107 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
11108fi
11109
d1f8db0c
PB
11110else
11111 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
11112fi
11113
11114
11115
11116
11117if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11118 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11119 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11120echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11121 if test -x $with_build_time_tools/ranlib; then
11122 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11123 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
11124 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11125echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 11126 else
2aeb72e9
DD
11127 echo "$as_me:$LINENO: result: no" >&5
11128echo "${ECHO_T}no" >&6
d1f8db0c 11129 fi
e8b05380
PB
11130 elif test $build != $host && test $have_gcc_for_target = yes; then
11131 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
11132 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11133 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
11134 fi
11135fi
3e19841a 11136if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11137 # Extract the first word of "ranlib", so it can be a program name with args.
11138set dummy ranlib; ac_word=$2
2aeb72e9
DD
11139echo "$as_me:$LINENO: checking for $ac_word" >&5
11140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11141if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11143else
1c710c3c
DJ
11144 case $RANLIB_FOR_TARGET in
11145 [\\/]* | ?:[\\/]*)
e8b05380
PB
11146 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11147 ;;
e8b05380 11148 *)
1c710c3c
DJ
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $gcc_cv_tool_dirs
11151do
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11156 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11159 fi
11160done
11161done
11162
e8b05380
PB
11163 ;;
11164esac
11165fi
1c710c3c 11166RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 11167
e8b05380 11168if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11169 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11170echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 11171else
2aeb72e9
DD
11172 echo "$as_me:$LINENO: result: no" >&5
11173echo "${ECHO_T}no" >&6
e8b05380
PB
11174fi
11175
11176fi
11177if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
11178
11179
11180if test -n "$RANLIB_FOR_TARGET"; then
11181 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11182elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11183 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11184fi
11185
11186if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11187 for ncn_progname in ranlib; do
11188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11189set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11190echo "$as_me:$LINENO: checking for $ac_word" >&5
11191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11192if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195 if test -n "$RANLIB_FOR_TARGET"; then
11196 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11197else
11198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199for as_dir in $PATH
11200do
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11205 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11208 fi
11209done
11210done
11211
11212fi
11213fi
11214RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11215if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11216 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11217echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 11218else
2aeb72e9
DD
11219 echo "$as_me:$LINENO: result: no" >&5
11220echo "${ECHO_T}no" >&6
278a7a38
AO
11221fi
11222
11223 done
11224fi
11225
11226if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11227 for ncn_progname in ranlib; do
2aeb72e9
DD
11228 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11229echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11230 if test -x $with_build_time_tools/${ncn_progname}; then
11231 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11232 echo "$as_me:$LINENO: result: yes" >&5
11233echo "${ECHO_T}yes" >&6
e8b05380
PB
11234 break
11235 else
2aeb72e9
DD
11236 echo "$as_me:$LINENO: result: no" >&5
11237echo "${ECHO_T}no" >&6
e8b05380
PB
11238 fi
11239 done
11240fi
11241
11242if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11243 for ncn_progname in ranlib; do
11244 if test -n "$ncn_target_tool_prefix"; then
11245 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 11246set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11247echo "$as_me:$LINENO: checking for $ac_word" >&5
11248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11249if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11251else
4de997d1
PB
11252 if test -n "$RANLIB_FOR_TARGET"; then
11253 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11254else
1c710c3c
DJ
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11262 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11265 fi
11266done
11267done
11268
ca9f4b81
AO
11269fi
11270fi
1c710c3c 11271RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 11272if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11273 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11274echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 11275else
2aeb72e9
DD
11276 echo "$as_me:$LINENO: result: no" >&5
11277echo "${ECHO_T}no" >&6
ca9f4b81
AO
11278fi
11279
e8b05380
PB
11280 fi
11281 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11283set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11284echo "$as_me:$LINENO: checking for $ac_word" >&5
11285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11286if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11288else
2693c0b0
PB
11289 if test -n "$RANLIB_FOR_TARGET"; then
11290 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11291else
1c710c3c
DJ
11292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11299 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11302 fi
11303done
11304done
11305
ca9f4b81
AO
11306fi
11307fi
1c710c3c 11308RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 11309if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11310 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11311echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 11312else
2aeb72e9
DD
11313 echo "$as_me:$LINENO: result: no" >&5
11314echo "${ECHO_T}no" >&6
ca9f4b81 11315fi
1c710c3c 11316
e8b05380
PB
11317 fi
11318 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11319 done
11320fi
1c710c3c 11321
e8b05380
PB
11322if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11323 set dummy ranlib
11324 if test $build = $target ; then
11325 RANLIB_FOR_TARGET="$2"
11326 else
11327 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11328 fi
1c00b503
PB
11329else
11330 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 11331fi
2693c0b0 11332
d1f8db0c
PB
11333else
11334 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
11335fi
11336
e8b05380
PB
11337
11338
11339
11340if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11341 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11342 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11343echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11344 if test -x $with_build_time_tools/strip; then
11345 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11346 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
11347 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11348echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 11349 else
2aeb72e9
DD
11350 echo "$as_me:$LINENO: result: no" >&5
11351echo "${ECHO_T}no" >&6
d1f8db0c 11352 fi
e8b05380
PB
11353 elif test $build != $host && test $have_gcc_for_target = yes; then
11354 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
11355 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11356 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
11357 fi
11358fi
3e19841a 11359if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11360 # Extract the first word of "strip", so it can be a program name with args.
11361set dummy strip; ac_word=$2
2aeb72e9
DD
11362echo "$as_me:$LINENO: checking for $ac_word" >&5
11363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11364if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11366else
1c710c3c
DJ
11367 case $STRIP_FOR_TARGET in
11368 [\\/]* | ?:[\\/]*)
e8b05380
PB
11369 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11370 ;;
e8b05380 11371 *)
1c710c3c
DJ
11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $gcc_cv_tool_dirs
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11379 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 break 2
11382 fi
11383done
11384done
11385
e8b05380
PB
11386 ;;
11387esac
11388fi
1c710c3c 11389STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 11390
e8b05380 11391if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11392 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11393echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 11394else
2aeb72e9
DD
11395 echo "$as_me:$LINENO: result: no" >&5
11396echo "${ECHO_T}no" >&6
e8b05380
PB
11397fi
11398
11399fi
11400if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
11401
11402
11403if test -n "$STRIP_FOR_TARGET"; then
11404 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11405elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11406 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11407fi
11408
11409if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11410 for ncn_progname in strip; do
11411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11412set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11413echo "$as_me:$LINENO: checking for $ac_word" >&5
11414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11415if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417else
11418 if test -n "$STRIP_FOR_TARGET"; then
11419 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11420else
11421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422for as_dir in $PATH
11423do
11424 IFS=$as_save_IFS
11425 test -z "$as_dir" && as_dir=.
11426 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11428 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 break 2
11431 fi
11432done
11433done
11434
11435fi
11436fi
11437STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11438if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11439 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11440echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 11441else
2aeb72e9
DD
11442 echo "$as_me:$LINENO: result: no" >&5
11443echo "${ECHO_T}no" >&6
278a7a38
AO
11444fi
11445
11446 done
11447fi
11448
11449if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11450 for ncn_progname in strip; do
2aeb72e9
DD
11451 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11452echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11453 if test -x $with_build_time_tools/${ncn_progname}; then
11454 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11455 echo "$as_me:$LINENO: result: yes" >&5
11456echo "${ECHO_T}yes" >&6
e8b05380
PB
11457 break
11458 else
2aeb72e9
DD
11459 echo "$as_me:$LINENO: result: no" >&5
11460echo "${ECHO_T}no" >&6
e8b05380
PB
11461 fi
11462 done
11463fi
11464
11465if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11466 for ncn_progname in strip; do
11467 if test -n "$ncn_target_tool_prefix"; then
11468 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11469set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11470echo "$as_me:$LINENO: checking for $ac_word" >&5
11471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11472if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11474else
11475 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11476 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11477else
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11485 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489done
11490done
11491
040b1c5a
GK
11492fi
11493fi
1c710c3c 11494STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11495if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11496 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11497echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11498else
2aeb72e9
DD
11499 echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
040b1c5a
GK
11501fi
11502
e8b05380
PB
11503 fi
11504 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11506set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11507echo "$as_me:$LINENO: checking for $ac_word" >&5
11508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11509if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11511else
11512 if test -n "$STRIP_FOR_TARGET"; then
11513 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11514else
1c710c3c
DJ
11515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11522 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11525 fi
11526done
11527done
11528
040b1c5a
GK
11529fi
11530fi
1c710c3c 11531STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11532if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11533 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11534echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11535else
2aeb72e9
DD
11536 echo "$as_me:$LINENO: result: no" >&5
11537echo "${ECHO_T}no" >&6
040b1c5a 11538fi
1c710c3c 11539
e8b05380
PB
11540 fi
11541 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11542 done
11543fi
1c710c3c 11544
040b1c5a
GK
11545if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11546 set dummy strip
11547 if test $build = $target ; then
11548 STRIP_FOR_TARGET="$2"
11549 else
11550 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11551 fi
1c00b503
PB
11552else
11553 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11554fi
11555
d1f8db0c
PB
11556else
11557 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11558fi
11559
11560
11561
11562
11563if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11564 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11565 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11566echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11567 if test -x $with_build_time_tools/windres; then
11568 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11569 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
11570 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11571echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 11572 else
2aeb72e9
DD
11573 echo "$as_me:$LINENO: result: no" >&5
11574echo "${ECHO_T}no" >&6
d1f8db0c 11575 fi
e8b05380
PB
11576 elif test $build != $host && test $have_gcc_for_target = yes; then
11577 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11578 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11579 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11580 fi
11581fi
3e19841a 11582if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11583 # Extract the first word of "windres", so it can be a program name with args.
11584set dummy windres; ac_word=$2
2aeb72e9
DD
11585echo "$as_me:$LINENO: checking for $ac_word" >&5
11586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11587if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11589else
1c710c3c
DJ
11590 case $WINDRES_FOR_TARGET in
11591 [\\/]* | ?:[\\/]*)
e8b05380
PB
11592 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11593 ;;
e8b05380 11594 *)
1c710c3c
DJ
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596for as_dir in $gcc_cv_tool_dirs
11597do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11602 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606done
11607done
11608
e8b05380
PB
11609 ;;
11610esac
11611fi
1c710c3c 11612WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 11613
e8b05380 11614if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11615 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11616echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 11617else
2aeb72e9
DD
11618 echo "$as_me:$LINENO: result: no" >&5
11619echo "${ECHO_T}no" >&6
e8b05380
PB
11620fi
11621
11622fi
11623if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11624
11625
11626if test -n "$WINDRES_FOR_TARGET"; then
11627 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11628elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11629 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11630fi
11631
11632if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11633 for ncn_progname in windres; do
11634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11635set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11636echo "$as_me:$LINENO: checking for $ac_word" >&5
11637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11638if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 if test -n "$WINDRES_FOR_TARGET"; then
11642 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11643else
11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645for as_dir in $PATH
11646do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11651 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11654 fi
11655done
11656done
11657
11658fi
11659fi
11660WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11661if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11662 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11663echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 11664else
2aeb72e9
DD
11665 echo "$as_me:$LINENO: result: no" >&5
11666echo "${ECHO_T}no" >&6
278a7a38
AO
11667fi
11668
11669 done
11670fi
11671
11672if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11673 for ncn_progname in windres; do
2aeb72e9
DD
11674 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11675echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11676 if test -x $with_build_time_tools/${ncn_progname}; then
11677 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11678 echo "$as_me:$LINENO: result: yes" >&5
11679echo "${ECHO_T}yes" >&6
e8b05380
PB
11680 break
11681 else
2aeb72e9
DD
11682 echo "$as_me:$LINENO: result: no" >&5
11683echo "${ECHO_T}no" >&6
e8b05380
PB
11684 fi
11685 done
11686fi
11687
11688if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11689 for ncn_progname in windres; do
11690 if test -n "$ncn_target_tool_prefix"; then
11691 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11692set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11693echo "$as_me:$LINENO: checking for $ac_word" >&5
11694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11695if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11697else
4de997d1
PB
11698 if test -n "$WINDRES_FOR_TARGET"; then
11699 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11700else
1c710c3c
DJ
11701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11708 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11711 fi
11712done
11713done
11714
ca9f4b81
AO
11715fi
11716fi
1c710c3c 11717WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11718if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11719 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11720echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11721else
2aeb72e9
DD
11722 echo "$as_me:$LINENO: result: no" >&5
11723echo "${ECHO_T}no" >&6
ca9f4b81
AO
11724fi
11725
e8b05380
PB
11726 fi
11727 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11729set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11730echo "$as_me:$LINENO: checking for $ac_word" >&5
11731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11732if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11734else
2693c0b0
PB
11735 if test -n "$WINDRES_FOR_TARGET"; then
11736 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11737else
1c710c3c
DJ
11738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11745 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 break 2
11748 fi
11749done
11750done
11751
ca9f4b81
AO
11752fi
11753fi
1c710c3c 11754WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11755if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11756 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11757echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11758else
2aeb72e9
DD
11759 echo "$as_me:$LINENO: result: no" >&5
11760echo "${ECHO_T}no" >&6
ca9f4b81 11761fi
1c710c3c 11762
e8b05380
PB
11763 fi
11764 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11765 done
11766fi
1c710c3c 11767
2693c0b0
PB
11768if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11769 set dummy windres
11770 if test $build = $target ; then
11771 WINDRES_FOR_TARGET="$2"
ca9f4b81 11772 else
2693c0b0 11773 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11774 fi
1c00b503
PB
11775else
11776 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
11777fi
11778
d1f8db0c
PB
11779else
11780 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11781fi
11782
4977bab6 11783
901119ae
KT
11784
11785
11786if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11787 if test -n "$with_build_time_tools"; then
11788 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11789echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11790 if test -x $with_build_time_tools/windmc; then
11791 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11792 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11793 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11794echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11795 else
11796 echo "$as_me:$LINENO: result: no" >&5
11797echo "${ECHO_T}no" >&6
11798 fi
11799 elif test $build != $host && test $have_gcc_for_target = yes; then
11800 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11801 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11802 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11803 fi
11804fi
11805if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11806 # Extract the first word of "windmc", so it can be a program name with args.
11807set dummy windmc; ac_word=$2
11808echo "$as_me:$LINENO: checking for $ac_word" >&5
11809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11810if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 case $WINDMC_FOR_TARGET in
11814 [\\/]* | ?:[\\/]*)
11815 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11816 ;;
11817 *)
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $gcc_cv_tool_dirs
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829done
11830done
11831
11832 ;;
11833esac
11834fi
11835WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11836
11837if test -n "$WINDMC_FOR_TARGET"; then
11838 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11839echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11840else
11841 echo "$as_me:$LINENO: result: no" >&5
11842echo "${ECHO_T}no" >&6
11843fi
11844
11845fi
11846if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11847
11848
11849if test -n "$WINDMC_FOR_TARGET"; then
11850 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11851elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11852 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11853fi
11854
11855if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11856 for ncn_progname in windmc; do
11857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11858set dummy ${ncn_progname}; ac_word=$2
11859echo "$as_me:$LINENO: checking for $ac_word" >&5
11860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11861if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 if test -n "$WINDMC_FOR_TARGET"; then
11865 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11866else
11867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $PATH
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11877 fi
11878done
11879done
11880
11881fi
11882fi
11883WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11884if test -n "$WINDMC_FOR_TARGET"; then
11885 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11886echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11887else
11888 echo "$as_me:$LINENO: result: no" >&5
11889echo "${ECHO_T}no" >&6
11890fi
11891
11892 done
11893fi
11894
11895if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11896 for ncn_progname in windmc; do
11897 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11898echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11899 if test -x $with_build_time_tools/${ncn_progname}; then
11900 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11901 echo "$as_me:$LINENO: result: yes" >&5
11902echo "${ECHO_T}yes" >&6
11903 break
11904 else
11905 echo "$as_me:$LINENO: result: no" >&5
11906echo "${ECHO_T}no" >&6
11907 fi
11908 done
11909fi
11910
11911if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11912 for ncn_progname in windmc; do
11913 if test -n "$ncn_target_tool_prefix"; then
11914 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11915set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11916echo "$as_me:$LINENO: checking for $ac_word" >&5
11917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11918if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 if test -n "$WINDMC_FOR_TARGET"; then
11922 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11923else
11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 break 2
11934 fi
11935done
11936done
11937
11938fi
11939fi
11940WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11941if test -n "$WINDMC_FOR_TARGET"; then
11942 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11943echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11944else
11945 echo "$as_me:$LINENO: result: no" >&5
11946echo "${ECHO_T}no" >&6
11947fi
11948
11949 fi
11950 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11952set dummy ${ncn_progname}; ac_word=$2
11953echo "$as_me:$LINENO: checking for $ac_word" >&5
11954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11955if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957else
11958 if test -n "$WINDMC_FOR_TARGET"; then
11959 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11960else
11961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962for as_dir in $PATH
11963do
11964 IFS=$as_save_IFS
11965 test -z "$as_dir" && as_dir=.
11966 for ac_exec_ext in '' $ac_executable_extensions; do
11967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 break 2
11971 fi
11972done
11973done
11974
11975fi
11976fi
11977WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11978if test -n "$WINDMC_FOR_TARGET"; then
11979 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11980echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11981else
11982 echo "$as_me:$LINENO: result: no" >&5
11983echo "${ECHO_T}no" >&6
11984fi
11985
11986 fi
11987 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11988 done
11989fi
11990
11991if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11992 set dummy windmc
11993 if test $build = $target ; then
11994 WINDMC_FOR_TARGET="$2"
11995 else
11996 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11997 fi
1c00b503
PB
11998else
11999 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
12000fi
12001
12002else
12003 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12004fi
12005
12006
2abefe3d
PB
12007RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12008
2aeb72e9
DD
12009echo "$as_me:$LINENO: checking where to find the target ar" >&5
12010echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 12011if test "x${build}" != "x${host}" ; then
e8b05380
PB
12012 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12013 # We already found the complete path
172e41aa 12014 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
12015 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12016echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12017 else
12018 # Canadian cross, just use what we found
2aeb72e9
DD
12019 echo "$as_me:$LINENO: result: pre-installed" >&5
12020echo "${ECHO_T}pre-installed" >&6
e8b05380 12021 fi
2abefe3d
PB
12022else
12023 ok=yes
12024 case " ${configdirs} " in
12025 *" binutils "*) ;;
12026 *) ok=no ;;
12027 esac
1c710c3c 12028
2abefe3d
PB
12029 if test $ok = yes; then
12030 # An in-tree tool is available and we can use it
12031 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
12032 echo "$as_me:$LINENO: result: just compiled" >&5
12033echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12034 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12035 # We already found the complete path
172e41aa 12036 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
12037 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12038echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12039 elif test "x$target" = "x$host"; then
12040 # We can use an host tool
12041 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
12042 echo "$as_me:$LINENO: result: host tool" >&5
12043echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12044 else
12045 # We need a cross tool
2aeb72e9
DD
12046 echo "$as_me:$LINENO: result: pre-installed" >&5
12047echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12048 fi
12049fi
0b0dc272 12050
2aeb72e9
DD
12051echo "$as_me:$LINENO: checking where to find the target as" >&5
12052echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 12053if test "x${build}" != "x${host}" ; then
e8b05380
PB
12054 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12055 # We already found the complete path
172e41aa 12056 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
12057 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12058echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12059 else
12060 # Canadian cross, just use what we found
2aeb72e9
DD
12061 echo "$as_me:$LINENO: result: pre-installed" >&5
12062echo "${ECHO_T}pre-installed" >&6
e8b05380 12063 fi
2abefe3d
PB
12064else
12065 ok=yes
12066 case " ${configdirs} " in
12067 *" gas "*) ;;
12068 *) ok=no ;;
12069 esac
1c710c3c 12070
2abefe3d
PB
12071 if test $ok = yes; then
12072 # An in-tree tool is available and we can use it
12073 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
12074 echo "$as_me:$LINENO: result: just compiled" >&5
12075echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12076 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12077 # We already found the complete path
172e41aa 12078 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
12079 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12080echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12081 elif test "x$target" = "x$host"; then
12082 # We can use an host tool
12083 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
12084 echo "$as_me:$LINENO: result: host tool" >&5
12085echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12086 else
12087 # We need a cross tool
2aeb72e9
DD
12088 echo "$as_me:$LINENO: result: pre-installed" >&5
12089echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12090 fi
12091fi
0b0dc272 12092
2aeb72e9
DD
12093echo "$as_me:$LINENO: checking where to find the target cc" >&5
12094echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 12095if test "x${build}" != "x${host}" ; then
e8b05380
PB
12096 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12097 # We already found the complete path
172e41aa 12098 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
12099 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12100echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12101 else
12102 # Canadian cross, just use what we found
2aeb72e9
DD
12103 echo "$as_me:$LINENO: result: pre-installed" >&5
12104echo "${ECHO_T}pre-installed" >&6
e8b05380 12105 fi
2abefe3d
PB
12106else
12107 ok=yes
12108 case " ${configdirs} " in
12109 *" gcc "*) ;;
12110 *) ok=no ;;
12111 esac
1c710c3c 12112
2abefe3d
PB
12113 if test $ok = yes; then
12114 # An in-tree tool is available and we can use it
12115 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12116 echo "$as_me:$LINENO: result: just compiled" >&5
12117echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12118 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12119 # We already found the complete path
172e41aa 12120 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
12121 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12122echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12123 elif test "x$target" = "x$host"; then
12124 # We can use an host tool
12125 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
12126 echo "$as_me:$LINENO: result: host tool" >&5
12127echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12128 else
12129 # We need a cross tool
2aeb72e9
DD
12130 echo "$as_me:$LINENO: result: pre-installed" >&5
12131echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12132 fi
12133fi
0b0dc272 12134
2aeb72e9
DD
12135echo "$as_me:$LINENO: checking where to find the target c++" >&5
12136echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 12137if test "x${build}" != "x${host}" ; then
e8b05380
PB
12138 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12139 # We already found the complete path
172e41aa 12140 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
12141 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12142echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12143 else
12144 # Canadian cross, just use what we found
2aeb72e9
DD
12145 echo "$as_me:$LINENO: result: pre-installed" >&5
12146echo "${ECHO_T}pre-installed" >&6
e8b05380 12147 fi
2abefe3d
PB
12148else
12149 ok=yes
12150 case " ${configdirs} " in
12151 *" gcc "*) ;;
12152 *) ok=no ;;
12153 esac
12154 case ,${enable_languages}, in
12155 *,c++,*) ;;
12156 *) ok=no ;;
12157 esac
12158 if test $ok = yes; then
12159 # An in-tree tool is available and we can use it
12160 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
12161 echo "$as_me:$LINENO: result: just compiled" >&5
12162echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12163 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12164 # We already found the complete path
172e41aa 12165 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
12166 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12167echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12168 elif test "x$target" = "x$host"; then
12169 # We can use an host tool
12170 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
12171 echo "$as_me:$LINENO: result: host tool" >&5
12172echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12173 else
12174 # We need a cross tool
2aeb72e9
DD
12175 echo "$as_me:$LINENO: result: pre-installed" >&5
12176echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12177 fi
12178fi
0b0dc272 12179
2aeb72e9
DD
12180echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12181echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 12182if test "x${build}" != "x${host}" ; then
e8b05380
PB
12183 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12184 # We already found the complete path
172e41aa 12185 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
12186 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12187echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12188 else
12189 # Canadian cross, just use what we found
2aeb72e9
DD
12190 echo "$as_me:$LINENO: result: pre-installed" >&5
12191echo "${ECHO_T}pre-installed" >&6
e8b05380 12192 fi
2abefe3d
PB
12193else
12194 ok=yes
12195 case " ${configdirs} " in
12196 *" gcc "*) ;;
12197 *) ok=no ;;
12198 esac
12199 case ,${enable_languages}, in
12200 *,c++,*) ;;
12201 *) ok=no ;;
12202 esac
12203 if test $ok = yes; then
12204 # An in-tree tool is available and we can use it
12205 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
12206 echo "$as_me:$LINENO: result: just compiled" >&5
12207echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12208 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12209 # We already found the complete path
172e41aa 12210 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
12211 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12212echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12213 elif test "x$target" = "x$host"; then
12214 # We can use an host tool
12215 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
12216 echo "$as_me:$LINENO: result: host tool" >&5
12217echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12218 else
12219 # We need a cross tool
2aeb72e9
DD
12220 echo "$as_me:$LINENO: result: pre-installed" >&5
12221echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12222 fi
12223fi
0b0dc272 12224
2aeb72e9
DD
12225echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12226echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 12227if test "x${build}" != "x${host}" ; then
e8b05380
PB
12228 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12229 # We already found the complete path
172e41aa 12230 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
12231 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12232echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12233 else
12234 # Canadian cross, just use what we found
2aeb72e9
DD
12235 echo "$as_me:$LINENO: result: pre-installed" >&5
12236echo "${ECHO_T}pre-installed" >&6
e8b05380 12237 fi
2abefe3d
PB
12238else
12239 ok=yes
12240 case " ${configdirs} " in
12241 *" binutils "*) ;;
12242 *) ok=no ;;
12243 esac
1c710c3c 12244
2abefe3d
PB
12245 if test $ok = yes; then
12246 # An in-tree tool is available and we can use it
12247 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
12248 echo "$as_me:$LINENO: result: just compiled" >&5
12249echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12250 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12251 # We already found the complete path
172e41aa 12252 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
12253 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12254echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12255 elif test "x$target" = "x$host"; then
12256 # We can use an host tool
12257 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
12258 echo "$as_me:$LINENO: result: host tool" >&5
12259echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12260 else
12261 # We need a cross tool
2aeb72e9
DD
12262 echo "$as_me:$LINENO: result: pre-installed" >&5
12263echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12264 fi
12265fi
0b0dc272 12266
2aeb72e9
DD
12267echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12268echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 12269if test "x${build}" != "x${host}" ; then
e8b05380
PB
12270 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12271 # We already found the complete path
172e41aa 12272 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
12273 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12274echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12275 else
12276 # Canadian cross, just use what we found
2aeb72e9
DD
12277 echo "$as_me:$LINENO: result: pre-installed" >&5
12278echo "${ECHO_T}pre-installed" >&6
e8b05380 12279 fi
2abefe3d
PB
12280else
12281 ok=yes
12282 case " ${configdirs} " in
12283 *" gcc "*) ;;
12284 *) ok=no ;;
12285 esac
1c710c3c 12286
2abefe3d
PB
12287 if test $ok = yes; then
12288 # An in-tree tool is available and we can use it
12289 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12290 echo "$as_me:$LINENO: result: just compiled" >&5
12291echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12292 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12293 # We already found the complete path
172e41aa 12294 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
12295 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12296echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12297 elif test "x$target" = "x$host"; then
12298 # We can use an host tool
12299 GCC_FOR_TARGET='$()'
2aeb72e9
DD
12300 echo "$as_me:$LINENO: result: host tool" >&5
12301echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12302 else
12303 # We need a cross tool
2aeb72e9
DD
12304 echo "$as_me:$LINENO: result: pre-installed" >&5
12305echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12306 fi
12307fi
0b0dc272 12308
2aeb72e9
DD
12309echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12310echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 12311if test "x${build}" != "x${host}" ; then
e8b05380
PB
12312 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12313 # We already found the complete path
172e41aa 12314 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
12315 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12316echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12317 else
12318 # Canadian cross, just use what we found
2aeb72e9
DD
12319 echo "$as_me:$LINENO: result: pre-installed" >&5
12320echo "${ECHO_T}pre-installed" >&6
e8b05380 12321 fi
2abefe3d
PB
12322else
12323 ok=yes
12324 case " ${configdirs} " in
12325 *" gcc "*) ;;
12326 *) ok=no ;;
12327 esac
12328 case ,${enable_languages}, in
12329 *,java,*) ;;
12330 *) ok=no ;;
12331 esac
12332 if test $ok = yes; then
12333 # An in-tree tool is available and we can use it
12334 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12335 echo "$as_me:$LINENO: result: just compiled" >&5
12336echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12337 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12338 # We already found the complete path
172e41aa 12339 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
12340 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12341echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12342 elif test "x$target" = "x$host"; then
12343 # We can use an host tool
12344 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
12345 echo "$as_me:$LINENO: result: host tool" >&5
12346echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12347 else
12348 # We need a cross tool
2aeb72e9
DD
12349 echo "$as_me:$LINENO: result: pre-installed" >&5
12350echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12351 fi
12352fi
0b0dc272 12353
2aeb72e9
DD
12354echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12355echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 12356if test "x${build}" != "x${host}" ; then
e8b05380
PB
12357 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12358 # We already found the complete path
172e41aa 12359 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12360 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12361echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12362 else
12363 # Canadian cross, just use what we found
2aeb72e9
DD
12364 echo "$as_me:$LINENO: result: pre-installed" >&5
12365echo "${ECHO_T}pre-installed" >&6
e8b05380 12366 fi
2abefe3d
PB
12367else
12368 ok=yes
12369 case " ${configdirs} " in
12370 *" gcc "*) ;;
12371 *) ok=no ;;
12372 esac
12373 case ,${enable_languages}, in
12374 *,fortran,*) ;;
12375 *) ok=no ;;
12376 esac
12377 if test $ok = yes; then
12378 # An in-tree tool is available and we can use it
12379 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12380 echo "$as_me:$LINENO: result: just compiled" >&5
12381echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12382 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12383 # We already found the complete path
172e41aa 12384 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12385 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12386echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12387 elif test "x$target" = "x$host"; then
12388 # We can use an host tool
12389 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
12390 echo "$as_me:$LINENO: result: host tool" >&5
12391echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12392 else
12393 # We need a cross tool
2aeb72e9
DD
12394 echo "$as_me:$LINENO: result: pre-installed" >&5
12395echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12396 fi
12397fi
0b0dc272 12398
2aeb72e9
DD
12399echo "$as_me:$LINENO: checking where to find the target ld" >&5
12400echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 12401if test "x${build}" != "x${host}" ; then
e8b05380
PB
12402 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12403 # We already found the complete path
172e41aa 12404 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12405 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12406echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12407 else
12408 # Canadian cross, just use what we found
2aeb72e9
DD
12409 echo "$as_me:$LINENO: result: pre-installed" >&5
12410echo "${ECHO_T}pre-installed" >&6
e8b05380 12411 fi
2abefe3d
PB
12412else
12413 ok=yes
12414 case " ${configdirs} " in
12415 *" ld "*) ;;
12416 *) ok=no ;;
12417 esac
1c710c3c 12418
2abefe3d
PB
12419 if test $ok = yes; then
12420 # An in-tree tool is available and we can use it
12421 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
12422 echo "$as_me:$LINENO: result: just compiled" >&5
12423echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12424 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12425 # We already found the complete path
172e41aa 12426 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12427 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12428echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12429 elif test "x$target" = "x$host"; then
12430 # We can use an host tool
12431 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
12432 echo "$as_me:$LINENO: result: host tool" >&5
12433echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12434 else
12435 # We need a cross tool
2aeb72e9
DD
12436 echo "$as_me:$LINENO: result: pre-installed" >&5
12437echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12438 fi
12439fi
0b0dc272 12440
2aeb72e9
DD
12441echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12442echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 12443if test "x${build}" != "x${host}" ; then
e8b05380
PB
12444 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12445 # We already found the complete path
172e41aa 12446 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12447 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12448echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12449 else
12450 # Canadian cross, just use what we found
2aeb72e9
DD
12451 echo "$as_me:$LINENO: result: pre-installed" >&5
12452echo "${ECHO_T}pre-installed" >&6
e8b05380 12453 fi
2abefe3d 12454else
e8b05380
PB
12455 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12456 # We already found the complete path
172e41aa 12457 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12458 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12459echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 12460 elif test "x$target" = "x$host"; then
2abefe3d
PB
12461 # We can use an host tool
12462 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
12463 echo "$as_me:$LINENO: result: host tool" >&5
12464echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12465 else
12466 # We need a cross tool
2aeb72e9
DD
12467 echo "$as_me:$LINENO: result: pre-installed" >&5
12468echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12469 fi
12470fi
0b0dc272 12471
2aeb72e9
DD
12472echo "$as_me:$LINENO: checking where to find the target nm" >&5
12473echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 12474if test "x${build}" != "x${host}" ; then
e8b05380
PB
12475 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12476 # We already found the complete path
172e41aa 12477 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12478 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12479echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12480 else
12481 # Canadian cross, just use what we found
2aeb72e9
DD
12482 echo "$as_me:$LINENO: result: pre-installed" >&5
12483echo "${ECHO_T}pre-installed" >&6
e8b05380 12484 fi
2abefe3d
PB
12485else
12486 ok=yes
12487 case " ${configdirs} " in
12488 *" binutils "*) ;;
12489 *) ok=no ;;
12490 esac
1c710c3c 12491
2abefe3d
PB
12492 if test $ok = yes; then
12493 # An in-tree tool is available and we can use it
12494 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
12495 echo "$as_me:$LINENO: result: just compiled" >&5
12496echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12497 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12498 # We already found the complete path
172e41aa 12499 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12500 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12501echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12502 elif test "x$target" = "x$host"; then
12503 # We can use an host tool
12504 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
12505 echo "$as_me:$LINENO: result: host tool" >&5
12506echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12507 else
12508 # We need a cross tool
2aeb72e9
DD
12509 echo "$as_me:$LINENO: result: pre-installed" >&5
12510echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12511 fi
12512fi
0b0dc272 12513
2aeb72e9
DD
12514echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12515echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 12516if test "x${build}" != "x${host}" ; then
e8b05380
PB
12517 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12518 # We already found the complete path
172e41aa 12519 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12520 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12521echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12522 else
12523 # Canadian cross, just use what we found
2aeb72e9
DD
12524 echo "$as_me:$LINENO: result: pre-installed" >&5
12525echo "${ECHO_T}pre-installed" >&6
e8b05380 12526 fi
2abefe3d
PB
12527else
12528 ok=yes
12529 case " ${configdirs} " in
12530 *" binutils "*) ;;
12531 *) ok=no ;;
12532 esac
1c710c3c 12533
2abefe3d
PB
12534 if test $ok = yes; then
12535 # An in-tree tool is available and we can use it
12536 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
12537 echo "$as_me:$LINENO: result: just compiled" >&5
12538echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12539 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12540 # We already found the complete path
172e41aa 12541 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12542 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12543echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12544 elif test "x$target" = "x$host"; then
12545 # We can use an host tool
12546 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
12547 echo "$as_me:$LINENO: result: host tool" >&5
12548echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12549 else
12550 # We need a cross tool
2aeb72e9
DD
12551 echo "$as_me:$LINENO: result: pre-installed" >&5
12552echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12553 fi
12554fi
0b0dc272 12555
2aeb72e9
DD
12556echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12557echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 12558if test "x${build}" != "x${host}" ; then
e8b05380
PB
12559 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12560 # We already found the complete path
172e41aa 12561 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12562 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12563echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12564 else
12565 # Canadian cross, just use what we found
2aeb72e9
DD
12566 echo "$as_me:$LINENO: result: pre-installed" >&5
12567echo "${ECHO_T}pre-installed" >&6
e8b05380 12568 fi
2abefe3d
PB
12569else
12570 ok=yes
12571 case " ${configdirs} " in
12572 *" binutils "*) ;;
12573 *) ok=no ;;
12574 esac
1c710c3c 12575
2abefe3d
PB
12576 if test $ok = yes; then
12577 # An in-tree tool is available and we can use it
12578 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
12579 echo "$as_me:$LINENO: result: just compiled" >&5
12580echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12581 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12582 # We already found the complete path
172e41aa 12583 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12584 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12585echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12586 elif test "x$target" = "x$host"; then
12587 # We can use an host tool
12588 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
12589 echo "$as_me:$LINENO: result: host tool" >&5
12590echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12591 else
12592 # We need a cross tool
2aeb72e9
DD
12593 echo "$as_me:$LINENO: result: pre-installed" >&5
12594echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12595 fi
12596fi
0b0dc272 12597
2aeb72e9
DD
12598echo "$as_me:$LINENO: checking where to find the target strip" >&5
12599echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 12600if test "x${build}" != "x${host}" ; then
e8b05380
PB
12601 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12602 # We already found the complete path
172e41aa 12603 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12604 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12605echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12606 else
12607 # Canadian cross, just use what we found
2aeb72e9
DD
12608 echo "$as_me:$LINENO: result: pre-installed" >&5
12609echo "${ECHO_T}pre-installed" >&6
e8b05380 12610 fi
2abefe3d
PB
12611else
12612 ok=yes
12613 case " ${configdirs} " in
12614 *" binutils "*) ;;
12615 *) ok=no ;;
12616 esac
1c710c3c 12617
2abefe3d
PB
12618 if test $ok = yes; then
12619 # An in-tree tool is available and we can use it
12620 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
12621 echo "$as_me:$LINENO: result: just compiled" >&5
12622echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12623 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12624 # We already found the complete path
172e41aa 12625 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12626 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12627echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12628 elif test "x$target" = "x$host"; then
12629 # We can use an host tool
12630 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
12631 echo "$as_me:$LINENO: result: host tool" >&5
12632echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12633 else
12634 # We need a cross tool
2aeb72e9
DD
12635 echo "$as_me:$LINENO: result: pre-installed" >&5
12636echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12637 fi
12638fi
0b0dc272 12639
2aeb72e9
DD
12640echo "$as_me:$LINENO: checking where to find the target windres" >&5
12641echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 12642if test "x${build}" != "x${host}" ; then
e8b05380
PB
12643 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12644 # We already found the complete path
172e41aa 12645 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12646 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12647echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12648 else
12649 # Canadian cross, just use what we found
2aeb72e9
DD
12650 echo "$as_me:$LINENO: result: pre-installed" >&5
12651echo "${ECHO_T}pre-installed" >&6
e8b05380 12652 fi
2abefe3d
PB
12653else
12654 ok=yes
12655 case " ${configdirs} " in
12656 *" binutils "*) ;;
12657 *) ok=no ;;
12658 esac
1c710c3c 12659
2abefe3d
PB
12660 if test $ok = yes; then
12661 # An in-tree tool is available and we can use it
12662 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
12663 echo "$as_me:$LINENO: result: just compiled" >&5
12664echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12665 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12666 # We already found the complete path
172e41aa 12667 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12668 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12669echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12670 elif test "x$target" = "x$host"; then
12671 # We can use an host tool
12672 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
12673 echo "$as_me:$LINENO: result: host tool" >&5
12674echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12675 else
12676 # We need a cross tool
2aeb72e9
DD
12677 echo "$as_me:$LINENO: result: pre-installed" >&5
12678echo "${ECHO_T}pre-installed" >&6
2abefe3d 12679 fi
671aa708 12680fi
be912515 12681
901119ae
KT
12682echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12683echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12684if test "x${build}" != "x${host}" ; then
12685 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12686 # We already found the complete path
12687 ac_dir=`dirname $WINDMC_FOR_TARGET`
12688 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12689echo "${ECHO_T}pre-installed in $ac_dir" >&6
12690 else
12691 # Canadian cross, just use what we found
12692 echo "$as_me:$LINENO: result: pre-installed" >&5
12693echo "${ECHO_T}pre-installed" >&6
12694 fi
12695else
12696 ok=yes
12697 case " ${configdirs} " in
12698 *" binutils "*) ;;
12699 *) ok=no ;;
12700 esac
12701
12702 if test $ok = yes; then
12703 # An in-tree tool is available and we can use it
12704 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12705 echo "$as_me:$LINENO: result: just compiled" >&5
12706echo "${ECHO_T}just compiled" >&6
12707 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12708 # We already found the complete path
12709 ac_dir=`dirname $WINDMC_FOR_TARGET`
12710 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12711echo "${ECHO_T}pre-installed in $ac_dir" >&6
12712 elif test "x$target" = "x$host"; then
12713 # We can use an host tool
12714 WINDMC_FOR_TARGET='$(WINDMC)'
12715 echo "$as_me:$LINENO: result: host tool" >&5
12716echo "${ECHO_T}host tool" >&6
12717 else
12718 # We need a cross tool
12719 echo "$as_me:$LINENO: result: pre-installed" >&5
12720echo "${ECHO_T}pre-installed" >&6
12721 fi
12722fi
12723
be912515
NN
12724
12725
2abefe3d 12726
0b0dc272 12727
671aa708
NN
12728# Certain tools may need extra flags.
12729AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12730RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12731NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12732
2abefe3d
PB
12733# When building target libraries, except in a Canadian cross, we use
12734# the same toolchain as the compiler we just built.
12735COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12736COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12737COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12738if test $host = $build; then
12739 case " $configdirs " in
12740 *" gcc "*)
12741 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12742 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12743 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12744 ;;
12745 esac
12746fi
12747
12748
12749
12750
12751
2aeb72e9
DD
12752echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12753echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12754# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 12755if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
12756 enableval="$enable_maintainer_mode"
12757 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12758else
12759 USE_MAINTAINER_MODE=no
2aeb72e9
DD
12760fi;
12761echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12762echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
12763
12764
12765if test "$USE_MAINTAINER_MODE" = yes; then
12766 MAINTAINER_MODE_TRUE=
12767 MAINTAINER_MODE_FALSE='#'
12768else
12769 MAINTAINER_MODE_TRUE='#'
12770 MAINTAINER_MODE_FALSE=
1c710c3c 12771fi
ee03dc5e
AO
12772MAINT=$MAINTAINER_MODE_TRUE
12773
2805b53a
NN
12774# ---------------------
12775# GCC bootstrap support
12776# ---------------------
12777
12778# Stage specific cflags for build.
12779stage1_cflags="-g"
12780case $build in
12781 vax-*-*)
12782 case ${GCC} in
12783 yes) stage1_cflags="-g -Wa,-J" ;;
12784 *) stage1_cflags="-g -J" ;;
12785 esac ;;
2805b53a
NN
12786esac
12787
0b50988a 12788# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 12789if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
12790 saved_CFLAGS="$CFLAGS"
12791
12792 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12793 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12794 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12795echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12796 cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802
9cc1244e
JJ
12803#if (__GNUC__ < 3) \
12804 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12805 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12806#error http://gcc.gnu.org/PR29382
12807#endif
12808
1c710c3c
DJ
12809int
12810main ()
12811{
12812
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817rm -f conftest.$ac_objext
2aeb72e9
DD
12818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest.$ac_objext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 echo "$as_me:$LINENO: result: yes" >&5
12840echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12841else
12842 echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
2aeb72e9
DD
12845echo "$as_me:$LINENO: result: no" >&5
12846echo "${ECHO_T}no" >&6
1c710c3c 12847fi
2aeb72e9 12848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12849
12850 CFLAGS="$saved_CFLAGS"
12851fi
12852
12853
2805b53a 12854
8efea775 12855# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12856# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12857if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12858 enableval="$enable_stage1_checking"
12859 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12860else
e643dc23 12861 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12862 stage1_checking=--enable-checking=yes,types
8efea775 12863else
e643dc23 12864 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12865fi
2aeb72e9 12866fi;
8efea775
PB
12867
12868
2805b53a 12869# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12870# Check whether --enable-werror or --disable-werror was given.
2805b53a 12871if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12872 enableval="$enable_werror"
12873
2805b53a 12874else
416cfb5e 12875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12876 enable_werror=yes
88fceb68
PB
12877else
12878 enable_werror=no
12879fi
2aeb72e9 12880fi;
09a9c095
NN
12881case ${enable_werror} in
12882 yes) stage2_werror_flag="--enable-werror-always" ;;
12883 *) stage2_werror_flag="" ;;
2805b53a
NN
12884esac
12885
12886
32845532 12887# Flags needed to enable html installing and building
1c710c3c 12888
2aeb72e9 12889# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12890if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12891 withval="$with_datarootdir"
12892 datarootdir="\${prefix}/${withval}"
32845532
CD
12893else
12894 datarootdir="\${prefix}/share"
2aeb72e9 12895fi;
32845532
CD
12896
12897
2aeb72e9 12898# Check whether --with-docdir or --without-docdir was given.
32845532 12899if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12900 withval="$with_docdir"
12901 docdir="\${prefix}/${withval}"
32845532
CD
12902else
12903 docdir="\${datarootdir}/doc"
2aeb72e9 12904fi;
32845532
CD
12905
12906
2aeb72e9 12907# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12908if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12909 withval="$with_pdfdir"
12910 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12911else
12912 pdfdir="\${docdir}"
2aeb72e9 12913fi;
9c4d2493
BM
12914
12915
2aeb72e9 12916# Check whether --with-htmldir or --without-htmldir was given.
32845532 12917if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12918 withval="$with_htmldir"
12919 htmldir="\${prefix}/${withval}"
32845532
CD
12920else
12921 htmldir="\${docdir}"
2aeb72e9 12922fi;
32845532
CD
12923
12924
12925
12926
172e41aa 12927
11a67599 12928
f2689b09
SE
12929# Specify what files to not compare during bootstrap.
12930
12931compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
12932case "$target" in
12933 hppa*64*-*-hpux*) ;;
12934 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
12935esac
12936
12937
2aeb72e9 12938 ac_config_files="$ac_config_files Makefile"
1c710c3c 12939cat >confcache <<\_ACEOF
671aa708
NN
12940# This file is a shell script that caches the results of configure
12941# tests run on this system so they can be shared between configure
1c710c3c
DJ
12942# scripts and configure runs, see configure's option --config-cache.
12943# It is not useful on other systems. If it contains results you don't
12944# want to keep, you may remove or edit it.
671aa708 12945#
1c710c3c
DJ
12946# config.status only pays attention to the cache file if you give it
12947# the --recheck option to rerun configure.
671aa708 12948#
1c710c3c
DJ
12949# `ac_cv_env_foo' variables (set or unset) will be overridden when
12950# loading this file, other *unset* `ac_cv_foo' will be assigned the
12951# following values.
12952
12953_ACEOF
12954
671aa708
NN
12955# The following way of writing the cache mishandles newlines in values,
12956# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12957# So, don't put newlines in cache variables' values.
671aa708
NN
12958# Ultrix sh set writes to stderr and can't be redirected directly,
12959# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12960{
1c710c3c 12961 (set) 2>&1 |
2aeb72e9
DD
12962 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12963 *ac_space=\ *)
1c710c3c
DJ
12964 # `set' does not quote correctly, so add quotes (double-quote
12965 # substitution turns \\\\ into \\, and sed turns \\ into \).
12966 sed -n \
12967 "s/'/'\\\\''/g;
12968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12969 ;;
1c710c3c
DJ
12970 *)
12971 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12972 sed -n \
12973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12974 ;;
2aeb72e9
DD
12975 esac;
12976} |
1c710c3c
DJ
12977 sed '
12978 t clear
2aeb72e9 12979 : clear
1c710c3c
DJ
12980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12981 t end
2aeb72e9
DD
12982 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12983 : end' >>confcache
12984if diff $cache_file confcache >/dev/null 2>&1; then :; else
12985 if test -w $cache_file; then
12986 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12987 cat confcache >$cache_file
671aa708 12988 else
2aeb72e9 12989 echo "not updating unwritable cache $cache_file"
671aa708 12990 fi
4977bab6 12991fi
671aa708 12992rm -f confcache
79c06341 12993
671aa708
NN
12994test "x$prefix" = xNONE && prefix=$ac_default_prefix
12995# Let make expand exec_prefix.
12996test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12997
2aeb72e9
DD
12998# VPATH may cause trouble with some makes, so we remove $(srcdir),
12999# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13000# trailing colons and then remove the whole line if VPATH becomes empty
13001# (actually we leave an empty line to preserve line numbers).
13002if test "x$srcdir" = x.; then
13003 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13004s/:*\$(srcdir):*/:/;
13005s/:*\${srcdir}:*/:/;
13006s/:*@srcdir@:*/:/;
13007s/^\([^=]*=[ ]*\):*/\1/;
13008s/:*$//;
13009s/^[^=]*=[ ]*$//;
13010}'
13011fi
13012
671aa708
NN
13013# Transform confdefs.h into DEFS.
13014# Protect against shell expansion while executing Makefile rules.
13015# Protect against Makefile macro expansion.
1c710c3c
DJ
13016#
13017# If the first sed substitution is executed (which looks for macros that
2aeb72e9 13018# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 13019# look for a macro that doesn't take arguments.
2aeb72e9 13020cat >confdef2opt.sed <<\_ACEOF
1c710c3c 13021t clear
2aeb72e9
DD
13022: clear
13023s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 13024t quote
2aeb72e9 13025s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 13026t quote
2aeb72e9
DD
13027d
13028: quote
13029s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13030s,\[,\\&,g
13031s,\],\\&,g
13032s,\$,$$,g
13033p
13034_ACEOF
13035# We use echo to avoid assuming a particular line-breaking character.
13036# The extra dot is to prevent the shell from consuming trailing
13037# line-breaks from the sub-command output. A line-break within
13038# single-quotes doesn't work because, if this script is created in a
13039# platform that uses two characters for line-breaks (e.g., DOS), tr
13040# would break.
13041ac_LF_and_DOT=`echo; echo .`
13042DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13043rm -f confdef2opt.sed
1c710c3c
DJ
13044
13045
13046ac_libobjs=
13047ac_ltlibobjs=
13048for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13049 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
13050 ac_i=`echo "$ac_i" |
13051 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13052 # 2. Add them.
13053 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13054 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
13055done
13056LIBOBJS=$ac_libobjs
fb0103e5 13057
1c710c3c 13058LTLIBOBJS=$ac_ltlibobjs
0b0dc272 13059
af71363e 13060
1c710c3c
DJ
13061
13062: ${CONFIG_STATUS=./config.status}
13063ac_clean_files_save=$ac_clean_files
13064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13065{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13066echo "$as_me: creating $CONFIG_STATUS" >&6;}
13067cat >$CONFIG_STATUS <<_ACEOF
13068#! $SHELL
13069# Generated by $as_me.
671aa708 13070# Run this file to recreate the current configuration.
671aa708 13071# Compiler output produced by configure, useful for debugging
1c710c3c 13072# configure, is in config.log if it exists.
0b0dc272 13073
1c710c3c
DJ
13074debug=false
13075ac_cs_recheck=false
13076ac_cs_silent=false
13077SHELL=\${CONFIG_SHELL-$SHELL}
13078_ACEOF
13079
13080cat >>$CONFIG_STATUS <<\_ACEOF
13081## --------------------- ##
13082## M4sh Initialization. ##
13083## --------------------- ##
13084
2aeb72e9 13085# Be Bourne compatible
1c710c3c
DJ
13086if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13087 emulate sh
13088 NULLCMD=:
13089 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13090 # is contrary to our usage. Disable this feature.
13091 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
13092elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13093 set -o posix
1c710c3c 13094fi
2aeb72e9 13095DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
13096
13097# Support unset when possible.
13098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13099 as_unset=unset
13100else
13101 as_unset=false
13102fi
13103
13104
13105# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 13106$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
13107PS1='$ '
13108PS2='> '
13109PS4='+ '
13110
13111# NLS nuisances.
13112for as_var in \
13113 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13114 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13115 LC_TELEPHONE LC_TIME
13116do
13117 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13118 eval $as_var=C; export $as_var
13119 else
2aeb72e9 13120 $as_unset $as_var
1c710c3c
DJ
13121 fi
13122done
13123
13124# Required to use basename.
2aeb72e9 13125if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
13126 as_expr=expr
13127else
13128 as_expr=false
13129fi
13130
2aeb72e9 13131if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
13132 as_basename=basename
13133else
13134 as_basename=false
13135fi
13136
13137
13138# Name of the executable.
2aeb72e9 13139as_me=`$as_basename "$0" ||
1c710c3c
DJ
13140$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13141 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
13142 X"$0" : 'X\(/\)$' \| \
13143 . : '\(.\)' 2>/dev/null ||
1c710c3c 13144echo X/"$0" |
2aeb72e9
DD
13145 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13146 /^X\/\(\/\/\)$/{ s//\1/; q; }
13147 /^X\/\(\/\).*/{ s//\1/; q; }
13148 s/.*/./; q'`
1c710c3c 13149
2aeb72e9
DD
13150
13151# PATH needs CR, and LINENO needs CR and PATH.
13152# Avoid depending upon Character Ranges.
13153as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13154as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13155as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13156as_cr_digits='0123456789'
13157as_cr_alnum=$as_cr_Letters$as_cr_digits
13158
13159# The user is always right.
13160if test "${PATH_SEPARATOR+set}" != set; then
13161 echo "#! /bin/sh" >conf$$.sh
13162 echo "exit 0" >>conf$$.sh
13163 chmod +x conf$$.sh
13164 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13165 PATH_SEPARATOR=';'
13166 else
13167 PATH_SEPARATOR=:
13168 fi
13169 rm -f conf$$.sh
13170fi
1c710c3c
DJ
13171
13172
2aeb72e9
DD
13173 as_lineno_1=$LINENO
13174 as_lineno_2=$LINENO
13175 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13176 test "x$as_lineno_1" != "x$as_lineno_2" &&
13177 test "x$as_lineno_3" = "x$as_lineno_2" || {
13178 # Find who we are. Look in the path if we contain no path at all
13179 # relative or not.
13180 case $0 in
13181 *[\\/]* ) as_myself=$0 ;;
13182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
13187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13188done
1c710c3c 13189
2aeb72e9
DD
13190 ;;
13191 esac
13192 # We did not find ourselves, most probably we were run as `sh COMMAND'
13193 # in which case we are not to be found in the path.
13194 if test "x$as_myself" = x; then
13195 as_myself=$0
13196 fi
13197 if test ! -f "$as_myself"; then
13198 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13199echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13200 { (exit 1); exit 1; }; }
13201 fi
13202 case $CONFIG_SHELL in
13203 '')
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13206do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for as_base in sh bash ksh sh5; do
13210 case $as_dir in
13211 /*)
13212 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
13213 as_lineno_1=$LINENO
13214 as_lineno_2=$LINENO
2aeb72e9 13215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 13216 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
13217 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13218 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13219 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13220 CONFIG_SHELL=$as_dir/$as_base
13221 export CONFIG_SHELL
13222 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13223 fi;;
13224 esac
13225 done
13226done
13227;;
13228 esac
1c710c3c
DJ
13229
13230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13231 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
13232 # line-number line before each line; the second 'sed' does the real
13233 # work. The second script uses 'N' to pair each line-number line
13234 # with the numbered line, and appends trailing '-' during
13235 # substitution so that $LINENO is not a special case at line end.
1c710c3c 13236 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
13237 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13238 sed '=' <$as_myself |
1c710c3c
DJ
13239 sed '
13240 N
2aeb72e9
DD
13241 s,$,-,
13242 : loop
13243 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 13244 t loop
2aeb72e9
DD
13245 s,-$,,
13246 s,^['$as_cr_digits']*\n,,
1c710c3c 13247 ' >$as_me.lineno &&
2aeb72e9
DD
13248 chmod +x $as_me.lineno ||
13249 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13250echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
13251 { (exit 1); exit 1; }; }
13252
13253 # Don't try to exec as it changes $[0], causing all sort of problems
13254 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
13255 # original and so on. Autoconf is especially sensible to this).
13256 . ./$as_me.lineno
1c710c3c
DJ
13257 # Exit status is that of the last command.
13258 exit
13259}
13260
13261
2aeb72e9
DD
13262case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13263 *c*,-n*) ECHO_N= ECHO_C='
13264' ECHO_T=' ' ;;
13265 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13266 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
13267esac
13268
2aeb72e9 13269if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
13270 as_expr=expr
13271else
13272 as_expr=false
13273fi
13274
13275rm -f conf$$ conf$$.exe conf$$.file
13276echo >conf$$.file
13277if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
13278 # We could just check for DJGPP; but this test a) works b) is more generic
13279 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13280 if test -f conf$$.exe; then
13281 # Don't use ln at all; we don't have any links
1c710c3c 13282 as_ln_s='cp -p'
2aeb72e9
DD
13283 else
13284 as_ln_s='ln -s'
13285 fi
1c710c3c
DJ
13286elif ln conf$$.file conf$$ 2>/dev/null; then
13287 as_ln_s=ln
13288else
13289 as_ln_s='cp -p'
13290fi
2aeb72e9 13291rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
13292
13293if mkdir -p . 2>/dev/null; then
13294 as_mkdir_p=:
13295else
13296 test -d ./-p && rmdir ./-p
13297 as_mkdir_p=false
13298fi
13299
2aeb72e9 13300as_executable_p="test -f"
1c710c3c
DJ
13301
13302# Sed expression to map a string onto a valid CPP name.
13303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13304
13305# Sed expression to map a string onto a valid variable name.
13306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13307
13308
2aeb72e9
DD
13309# IFS
13310# We need space, tab and new line, in precisely that order.
13311as_nl='
13312'
13313IFS=" $as_nl"
13314
13315# CDPATH.
13316$as_unset CDPATH
13317
1c710c3c
DJ
13318exec 6>&1
13319
2aeb72e9 13320# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 13321# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
13322# values after options handling. Logging --version etc. is OK.
13323exec 5>>config.log
13324{
13325 echo
13326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13327## Running $as_me. ##
13328_ASBOX
13329} >&5
13330cat >&5 <<_CSEOF
13331
1c710c3c 13332This file was extended by $as_me, which was
2aeb72e9 13333generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
13334
13335 CONFIG_FILES = $CONFIG_FILES
13336 CONFIG_HEADERS = $CONFIG_HEADERS
13337 CONFIG_LINKS = $CONFIG_LINKS
13338 CONFIG_COMMANDS = $CONFIG_COMMANDS
13339 $ $0 $@
13340
2aeb72e9
DD
13341_CSEOF
13342echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13343echo >&5
1c710c3c
DJ
13344_ACEOF
13345
13346# Files that config.status was made for.
2aeb72e9
DD
13347if test -n "$ac_config_files"; then
13348 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13349fi
1c710c3c 13350
2aeb72e9
DD
13351if test -n "$ac_config_headers"; then
13352 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13353fi
13354
13355if test -n "$ac_config_links"; then
13356 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13357fi
13358
13359if test -n "$ac_config_commands"; then
13360 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13361fi
1c710c3c
DJ
13362
13363cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 13364
1c710c3c
DJ
13365ac_cs_usage="\
13366\`$as_me' instantiates files from templates according to the
13367current configuration.
13368
13369Usage: $0 [OPTIONS] [FILE]...
13370
13371 -h, --help print this help, then exit
2aeb72e9 13372 -V, --version print version number, then exit
1c710c3c
DJ
13373 -q, --quiet do not print progress messages
13374 -d, --debug don't remove temporary files
13375 --recheck update $as_me by reconfiguring in the same conditions
13376 --file=FILE[:TEMPLATE]
13377 instantiate the configuration file FILE
13378
13379Configuration files:
13380$config_files
13381
13382Report bugs to <bug-autoconf@gnu.org>."
11a67599 13383_ACEOF
2aeb72e9 13384
1c710c3c
DJ
13385cat >>$CONFIG_STATUS <<_ACEOF
13386ac_cs_version="\\
13387config.status
2aeb72e9
DD
13388configured by $0, generated by GNU Autoconf 2.59,
13389 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 13390
2aeb72e9 13391Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
13392This config.status script is free software; the Free Software Foundation
13393gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
13394srcdir=$srcdir
13395INSTALL="$INSTALL"
1c710c3c
DJ
13396_ACEOF
13397
13398cat >>$CONFIG_STATUS <<\_ACEOF
13399# If no file are specified by the user, then we need to provide default
13400# value. By we need to know if files were specified by the user.
13401ac_need_defaults=:
13402while test $# != 0
a4b9e93e 13403do
1c710c3c
DJ
13404 case $1 in
13405 --*=*)
2aeb72e9
DD
13406 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13407 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
13408 ac_shift=:
13409 ;;
2aeb72e9 13410 -*)
1c710c3c
DJ
13411 ac_option=$1
13412 ac_optarg=$2
13413 ac_shift=shift
13414 ;;
2aeb72e9
DD
13415 *) # This is not an option, so the user has probably given explicit
13416 # arguments.
13417 ac_option=$1
13418 ac_need_defaults=false;;
1c710c3c
DJ
13419 esac
13420
13421 case $ac_option in
13422 # Handling of the options.
2aeb72e9
DD
13423_ACEOF
13424cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 13425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13426 ac_cs_recheck=: ;;
2aeb72e9
DD
13427 --version | --vers* | -V )
13428 echo "$ac_cs_version"; exit 0 ;;
13429 --he | --h)
13430 # Conflict between --help and --header
13431 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13432Try \`$0 --help' for more information." >&5
13433echo "$as_me: error: ambiguous option: $1
13434Try \`$0 --help' for more information." >&2;}
13435 { (exit 1); exit 1; }; };;
13436 --help | --hel | -h )
13437 echo "$ac_cs_usage"; exit 0 ;;
13438 --debug | --d* | -d )
1c710c3c
DJ
13439 debug=: ;;
13440 --file | --fil | --fi | --f )
13441 $ac_shift
13442 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13443 ac_need_defaults=false;;
2aeb72e9
DD
13444 --header | --heade | --head | --hea )
13445 $ac_shift
13446 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13447 ac_need_defaults=false;;
1c710c3c
DJ
13448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13450 ac_cs_silent=: ;;
13451
13452 # This is an error.
2aeb72e9
DD
13453 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13454Try \`$0 --help' for more information." >&5
13455echo "$as_me: error: unrecognized option: $1
13456Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
13457 { (exit 1); exit 1; }; } ;;
13458
2aeb72e9 13459 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 13460
0b0dc272 13461 esac
1c710c3c 13462 shift
0b0dc272
AM
13463done
13464
1c710c3c 13465ac_configure_extra_args=
0b0dc272 13466
1c710c3c
DJ
13467if $ac_cs_silent; then
13468 exec 6>/dev/null
13469 ac_configure_extra_args="$ac_configure_extra_args --silent"
13470fi
0b0dc272 13471
1c710c3c
DJ
13472_ACEOF
13473cat >>$CONFIG_STATUS <<_ACEOF
13474if \$ac_cs_recheck; then
2aeb72e9
DD
13475 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13476 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
13477fi
13478
13479_ACEOF
13480
1c710c3c 13481
11a67599 13482
2aeb72e9
DD
13483
13484
13485cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
13486for ac_config_target in $ac_config_targets
13487do
2aeb72e9
DD
13488 case "$ac_config_target" in
13489 # Handling of arguments.
13490 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
13491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13492echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13493 { (exit 1); exit 1; }; };;
13494 esac
13495done
13496
13497# If the user did not use the arguments to specify the items to instantiate,
13498# then the envvar interface is used. Set only those that are not.
13499# We use the long form for the default assignment because of an extremely
13500# bizarre bug on SunOS 4.1.3.
13501if $ac_need_defaults; then
13502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13503fi
13504
13505# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 13506# simply because there is no reason to put it here, and in addition,
1c710c3c 13507# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 13508# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
13509$debug ||
13510{
2aeb72e9 13511 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
13512 trap '{ (exit 1); exit 1; }' 1 2 13 15
13513}
2aeb72e9 13514
1c710c3c
DJ
13515# Create a (secure) tmp directory for tmp files.
13516
13517{
2aeb72e9 13518 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13519 test -n "$tmp" && test -d "$tmp"
13520} ||
13521{
2aeb72e9
DD
13522 tmp=./confstat$$-$RANDOM
13523 (umask 077 && mkdir $tmp)
1c710c3c
DJ
13524} ||
13525{
13526 echo "$me: cannot create a temporary directory in ." >&2
13527 { (exit 1); exit 1; }
13528}
13529
2aeb72e9
DD
13530_ACEOF
13531
13532cat >>$CONFIG_STATUS <<_ACEOF
13533
1c710c3c 13534#
2aeb72e9 13535# CONFIG_FILES section.
1c710c3c
DJ
13536#
13537
13538# No need to generate the scripts if there are no CONFIG_FILES.
13539# This happens for instance when ./config.status config.h
2aeb72e9
DD
13540if test -n "\$CONFIG_FILES"; then
13541 # Protect against being on the right side of a sed subst in config.status.
13542 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13543 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13544s,@SHELL@,$SHELL,;t t
13545s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13546s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13547s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13548s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13549s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13550s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13551s,@exec_prefix@,$exec_prefix,;t t
13552s,@prefix@,$prefix,;t t
13553s,@program_transform_name@,$program_transform_name,;t t
13554s,@bindir@,$bindir,;t t
13555s,@sbindir@,$sbindir,;t t
13556s,@libexecdir@,$libexecdir,;t t
13557s,@datadir@,$datadir,;t t
13558s,@sysconfdir@,$sysconfdir,;t t
13559s,@sharedstatedir@,$sharedstatedir,;t t
13560s,@localstatedir@,$localstatedir,;t t
13561s,@libdir@,$libdir,;t t
13562s,@includedir@,$includedir,;t t
13563s,@oldincludedir@,$oldincludedir,;t t
13564s,@infodir@,$infodir,;t t
13565s,@mandir@,$mandir,;t t
13566s,@build_alias@,$build_alias,;t t
13567s,@host_alias@,$host_alias,;t t
13568s,@target_alias@,$target_alias,;t t
13569s,@DEFS@,$DEFS,;t t
13570s,@ECHO_C@,$ECHO_C,;t t
13571s,@ECHO_N@,$ECHO_N,;t t
13572s,@ECHO_T@,$ECHO_T,;t t
13573s,@LIBS@,$LIBS,;t t
ad33ff57 13574s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
2aeb72e9
DD
13575s,@build@,$build,;t t
13576s,@build_cpu@,$build_cpu,;t t
13577s,@build_vendor@,$build_vendor,;t t
13578s,@build_os@,$build_os,;t t
13579s,@build_noncanonical@,$build_noncanonical,;t t
13580s,@host_noncanonical@,$host_noncanonical,;t t
13581s,@target_noncanonical@,$target_noncanonical,;t t
13582s,@host@,$host,;t t
13583s,@host_cpu@,$host_cpu,;t t
13584s,@host_vendor@,$host_vendor,;t t
13585s,@host_os@,$host_os,;t t
13586s,@target@,$target,;t t
13587s,@target_cpu@,$target_cpu,;t t
13588s,@target_vendor@,$target_vendor,;t t
13589s,@target_os@,$target_os,;t t
13590s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13591s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13592s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13593s,@LN@,$LN,;t t
13594s,@LN_S@,$LN_S,;t t
2aeb72e9
DD
13595s,@build_libsubdir@,$build_libsubdir,;t t
13596s,@build_subdir@,$build_subdir,;t t
13597s,@host_subdir@,$host_subdir,;t t
13598s,@target_subdir@,$target_subdir,;t t
13599s,@CC@,$CC,;t t
13600s,@CFLAGS@,$CFLAGS,;t t
13601s,@LDFLAGS@,$LDFLAGS,;t t
13602s,@CPPFLAGS@,$CPPFLAGS,;t t
13603s,@ac_ct_CC@,$ac_ct_CC,;t t
13604s,@EXEEXT@,$EXEEXT,;t t
13605s,@OBJEXT@,$OBJEXT,;t t
13606s,@CXX@,$CXX,;t t
13607s,@CXXFLAGS@,$CXXFLAGS,;t t
13608s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13609s,@GNATBIND@,$GNATBIND,;t t
13610s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13611s,@GNATMAKE@,$GNATMAKE,;t t
13612s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13613s,@do_compare@,$do_compare,;t t
13614s,@gmplibs@,$gmplibs,;t t
13615s,@gmpinc@,$gmpinc,;t t
9e3eba15 13616s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
acd26225
KG
13617s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13618s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
00020c16
ILT
13619s,@stage1_ldflags@,$stage1_ldflags,;t t
13620s,@stage1_libs@,$stage1_libs,;t t
13621s,@poststage1_ldflags@,$poststage1_ldflags,;t t
13622s,@poststage1_libs@,$poststage1_libs,;t t
f8bf9252
SP
13623s,@ppllibs@,$ppllibs,;t t
13624s,@pplinc@,$pplinc,;t t
13625s,@clooglibs@,$clooglibs,;t t
13626s,@clooginc@,$clooginc,;t t
2aeb72e9
DD
13627s,@stage1_languages@,$stage1_languages,;t t
13628s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 13629s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
1c8bd6a3
PB
13630s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13631s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
2aeb72e9 13632s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
d89f0ad6 13633s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
2aeb72e9
DD
13634s,@tooldir@,$tooldir,;t t
13635s,@build_tooldir@,$build_tooldir,;t t
13636s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13637s,@GDB_TK@,$GDB_TK,;t t
13638s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13639s,@build_configargs@,$build_configargs,;t t
13640s,@build_configdirs@,$build_configdirs,;t t
13641s,@host_configargs@,$host_configargs,;t t
13642s,@configdirs@,$configdirs,;t t
13643s,@target_configargs@,$target_configargs,;t t
0999159b
PB
13644s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13645s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 13646s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
13647s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13648s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13649s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13650s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13651s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13652s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13653s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13654s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13655s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13656s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13657s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13658s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
13659s,@config_shell@,$config_shell,;t t
13660s,@YACC@,$YACC,;t t
13661s,@BISON@,$BISON,;t t
13662s,@M4@,$M4,;t t
13663s,@LEX@,$LEX,;t t
13664s,@FLEX@,$FLEX,;t t
13665s,@MAKEINFO@,$MAKEINFO,;t t
13666s,@EXPECT@,$EXPECT,;t t
13667s,@RUNTEST@,$RUNTEST,;t t
13668s,@AR@,$AR,;t t
13669s,@AS@,$AS,;t t
13670s,@DLLTOOL@,$DLLTOOL,;t t
13671s,@LD@,$LD,;t t
13672s,@LIPO@,$LIPO,;t t
13673s,@NM@,$NM,;t t
13674s,@RANLIB@,$RANLIB,;t t
13675s,@STRIP@,$STRIP,;t t
13676s,@WINDRES@,$WINDRES,;t t
901119ae 13677s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
13678s,@OBJCOPY@,$OBJCOPY,;t t
13679s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
13680s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13681s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13682s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13683s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13684s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13685s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13686s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13687s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13688s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13689s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13690s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13691s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13692s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13693s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13694s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 13695s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
13696s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13697s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13698s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13699s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13700s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13701s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13702s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13703s,@MAINT@,$MAINT,;t t
13704s,@stage1_cflags@,$stage1_cflags,;t t
13705s,@stage1_checking@,$stage1_checking,;t t
13706s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13707s,@datarootdir@,$datarootdir,;t t
13708s,@docdir@,$docdir,;t t
13709s,@pdfdir@,$pdfdir,;t t
13710s,@htmldir@,$htmldir,;t t
f2689b09 13711s,@compare_exclusions@,$compare_exclusions,;t t
2aeb72e9
DD
13712s,@LIBOBJS@,$LIBOBJS,;t t
13713s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13714/@serialization_dependencies@/r $serialization_dependencies
13715s,@serialization_dependencies@,,;t t
13716/@host_makefile_frag@/r $host_makefile_frag
13717s,@host_makefile_frag@,,;t t
13718/@target_makefile_frag@/r $target_makefile_frag
13719s,@target_makefile_frag@,,;t t
13720/@alphaieee_frag@/r $alphaieee_frag
13721s,@alphaieee_frag@,,;t t
13722/@ospace_frag@/r $ospace_frag
13723s,@ospace_frag@,,;t t
13724CEOF
79c06341 13725
1c710c3c
DJ
13726_ACEOF
13727
2aeb72e9
DD
13728 cat >>$CONFIG_STATUS <<\_ACEOF
13729 # Split the substitutions into bite-sized pieces for seds with
13730 # small command number limits, like on Digital OSF/1 and HP-UX.
13731 ac_max_sed_lines=48
13732 ac_sed_frag=1 # Number of current file.
13733 ac_beg=1 # First line for current file.
13734 ac_end=$ac_max_sed_lines # Line after last line for current file.
13735 ac_more_lines=:
13736 ac_sed_cmds=
13737 while $ac_more_lines; do
13738 if test $ac_beg -gt 1; then
13739 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13740 else
13741 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13742 fi
13743 if test ! -s $tmp/subs.frag; then
13744 ac_more_lines=false
13745 else
13746 # The purpose of the label and of the branching condition is to
13747 # speed up the sed processing (if there are no `@' at all, there
13748 # is no need to browse any of the substitutions).
13749 # These are the two extra sed commands mentioned above.
13750 (echo ':t
13751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13752 if test -z "$ac_sed_cmds"; then
13753 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13754 else
13755 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13756 fi
13757 ac_sed_frag=`expr $ac_sed_frag + 1`
13758 ac_beg=$ac_end
13759 ac_end=`expr $ac_end + $ac_max_sed_lines`
13760 fi
13761 done
13762 if test -z "$ac_sed_cmds"; then
13763 ac_sed_cmds=cat
11a67599 13764 fi
2aeb72e9 13765fi # test -n "$CONFIG_FILES"
11a67599 13766
11a67599 13767_ACEOF
1c710c3c 13768cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
13769for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13771 case $ac_file in
13772 - | *:- | *:-:* ) # input from stdin
13773 cat >$tmp/stdin
13774 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13776 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13778 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
13779 esac
13780
2aeb72e9
DD
13781 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13782 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
13783$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13784 X"$ac_file" : 'X\(//\)[^/]' \| \
13785 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
13786 X"$ac_file" : 'X\(/\)' \| \
13787 . : '\(.\)' 2>/dev/null ||
1c710c3c 13788echo X"$ac_file" |
2aeb72e9
DD
13789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13791 /^X\(\/\/\)$/{ s//\1/; q; }
13792 /^X\(\/\).*/{ s//\1/; q; }
13793 s/.*/./; q'`
13794 { if $as_mkdir_p; then
13795 mkdir -p "$ac_dir"
13796 else
13797 as_dir="$ac_dir"
1c710c3c 13798 as_dirs=
2aeb72e9
DD
13799 while test ! -d "$as_dir"; do
13800 as_dirs="$as_dir $as_dirs"
13801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
13802$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13803 X"$as_dir" : 'X\(//\)[^/]' \| \
13804 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13805 X"$as_dir" : 'X\(/\)' \| \
13806 . : '\(.\)' 2>/dev/null ||
1c710c3c 13807echo X"$as_dir" |
2aeb72e9
DD
13808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13810 /^X\(\/\/\)$/{ s//\1/; q; }
13811 /^X\(\/\).*/{ s//\1/; q; }
13812 s/.*/./; q'`
1c710c3c 13813 done
2aeb72e9
DD
13814 test ! -n "$as_dirs" || mkdir $as_dirs
13815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13816echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13817 { (exit 1); exit 1; }; }; }
2aeb72e9 13818
1c710c3c 13819 ac_builddir=.
0b0dc272 13820
2aeb72e9 13821if test "$ac_dir" != .; then
1c710c3c 13822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13823 # A "../" for each directory in $ac_dir_suffix.
13824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13825else
13826 ac_dir_suffix= ac_top_builddir=
13827fi
1c710c3c
DJ
13828
13829case $srcdir in
2aeb72e9 13830 .) # No --srcdir option. We are building in place.
1c710c3c 13831 ac_srcdir=.
2aeb72e9
DD
13832 if test -z "$ac_top_builddir"; then
13833 ac_top_srcdir=.
13834 else
13835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13836 fi ;;
13837 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13838 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13839 ac_top_srcdir=$srcdir ;;
13840 *) # Relative path.
13841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13843esac
a4b9e93e 13844
2aeb72e9
DD
13845# Do not use `cd foo && pwd` to compute absolute paths, because
13846# the directories may not exist.
13847case `pwd` in
13848.) ac_abs_builddir="$ac_dir";;
13849*)
13850 case "$ac_dir" in
13851 .) ac_abs_builddir=`pwd`;;
13852 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13853 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13854 esac;;
13855esac
13856case $ac_abs_builddir in
13857.) ac_abs_top_builddir=${ac_top_builddir}.;;
13858*)
13859 case ${ac_top_builddir}. in
13860 .) ac_abs_top_builddir=$ac_abs_builddir;;
13861 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13862 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13863 esac;;
13864esac
13865case $ac_abs_builddir in
13866.) ac_abs_srcdir=$ac_srcdir;;
13867*)
13868 case $ac_srcdir in
13869 .) ac_abs_srcdir=$ac_abs_builddir;;
13870 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13871 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13872 esac;;
13873esac
13874case $ac_abs_builddir in
13875.) ac_abs_top_srcdir=$ac_top_srcdir;;
13876*)
13877 case $ac_top_srcdir in
13878 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13879 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13880 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13881 esac;;
13882esac
0b0dc272 13883
1c710c3c
DJ
13884
13885 case $INSTALL in
13886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13887 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13888 esac
11a67599 13889
2aeb72e9
DD
13890 if test x"$ac_file" != x-; then
13891 { echo "$as_me:$LINENO: creating $ac_file" >&5
13892echo "$as_me: creating $ac_file" >&6;}
13893 rm -f "$ac_file"
13894 fi
13895 # Let's still pretend it is `configure' which instantiates (i.e., don't
13896 # use $as_me), people would be surprised to read:
13897 # /* config.h. Generated by config.status. */
13898 if test x"$ac_file" = x-; then
13899 configure_input=
13900 else
13901 configure_input="$ac_file. "
13902 fi
13903 configure_input=$configure_input"Generated from `echo $ac_file_in |
13904 sed 's,.*/,,'` by configure."
13905
13906 # First look for the input files in the build tree, otherwise in the
13907 # src tree.
13908 ac_file_inputs=`IFS=:
13909 for f in $ac_file_in; do
13910 case $f in
13911 -) echo $tmp/stdin ;;
13912 [\\/$]*)
13913 # Absolute (can't be DOS-style, as IFS=:)
13914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13915echo "$as_me: error: cannot find input file: $f" >&2;}
13916 { (exit 1); exit 1; }; }
13917 echo "$f";;
13918 *) # Relative
13919 if test -f "$f"; then
13920 # Build tree
13921 echo "$f"
13922 elif test -f "$srcdir/$f"; then
13923 # Source tree
13924 echo "$srcdir/$f"
13925 else
13926 # /dev/null tree
13927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13928echo "$as_me: error: cannot find input file: $f" >&2;}
13929 { (exit 1); exit 1; }; }
13930 fi;;
13931 esac
13932 done` || { (exit 1); exit 1; }
11a67599 13933_ACEOF
1c710c3c
DJ
13934cat >>$CONFIG_STATUS <<_ACEOF
13935 sed "$ac_vpsub
13936$extrasub
13937_ACEOF
13938cat >>$CONFIG_STATUS <<\_ACEOF
13939:t
13940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13941s,@configure_input@,$configure_input,;t t
13942s,@srcdir@,$ac_srcdir,;t t
13943s,@abs_srcdir@,$ac_abs_srcdir,;t t
13944s,@top_srcdir@,$ac_top_srcdir,;t t
13945s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13946s,@builddir@,$ac_builddir,;t t
13947s,@abs_builddir@,$ac_abs_builddir,;t t
13948s,@top_builddir@,$ac_top_builddir,;t t
13949s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13950s,@INSTALL@,$ac_INSTALL,;t t
13951" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13952 rm -f $tmp/stdin
13953 if test x"$ac_file" != x-; then
13954 mv $tmp/out $ac_file
13955 else
13956 cat $tmp/out
13957 rm -f $tmp/out
13958 fi
11a67599 13959
2aeb72e9
DD
13960done
13961_ACEOF
11a67599 13962
2aeb72e9 13963cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13964
1c710c3c
DJ
13965{ (exit 0); exit 0; }
13966_ACEOF
671aa708 13967chmod +x $CONFIG_STATUS
1c710c3c
DJ
13968ac_clean_files=$ac_clean_files_save
13969
13970
13971# configure is writing to config.log, and then calls config.status.
13972# config.status does its own redirection, appending to config.log.
13973# Unfortunately, on DOS this fails, as config.log is still kept open
13974# by configure, so config.status won't be able to write to it; its
13975# output is simply discarded. So we exec the FD to /dev/null,
13976# effectively closing config.log, so it can be properly (re)opened and
13977# appended to by config.status. When coming back to configure, we
13978# need to make the FD available again.
13979if test "$no_create" != yes; then
13980 ac_cs_success=:
13981 ac_config_status_args=
13982 test "$silent" = yes &&
13983 ac_config_status_args="$ac_config_status_args --quiet"
13984 exec 5>/dev/null
13985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13986 exec 5>>config.log
13987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13988 # would make configure fail if this is the last instruction.
13989 $ac_cs_success || { (exit 1); exit 1; }
13990fi
79c06341 13991