* infrun.c (fetch_inferior_event): Only call normal_stop if not
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
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.
33$as_unset ENV MAIL MAILPATH
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
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
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
85
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
97fi
98
99
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
116
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 '')
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=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
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
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
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.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
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
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
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
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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
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
225as_executable_p="test -f"
226
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
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
242
a0da8069 243
c6b750e1
DJ
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
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
5b553f7e 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 stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
7a283e07 277ac_pwd=`pwd`
a0da8069
NN
278
279# Initialize some variables set by options.
c6b750e1
DJ
280ac_init_help=
281ac_init_version=false
a0da8069
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
c6b750e1 284cache_file=/dev/null
a0da8069 285exec_prefix=NONE
a0da8069 286no_create=
a0da8069
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
a0da8069
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
c6b750e1
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.
a0da8069
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
252b5132 316
a0da8069
NN
317ac_prev=
318for ac_option
319do
a0da8069
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
252b5132 326
c6b750e1 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
c6b750e1 331 case $ac_option in
a0da8069
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 336 bindir=$ac_optarg ;;
a0da8069
NN
337
338 -build | --build | --buil | --bui | --bu)
c6b750e1 339 ac_prev=build_alias ;;
a0da8069 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 341 build_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
a0da8069
NN
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
c6b750e1 357 datadir=$ac_optarg ;;
a0da8069
NN
358
359 -disable-* | --disable-*)
c6b750e1 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 361 # Reject names that are not valid shell variable names.
c6b750e1
DJ
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
a0da8069
NN
367
368 -enable-* | --enable-*)
c6b750e1 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 370 # Reject names that are not valid shell variable names.
c6b750e1
DJ
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
377 *) ac_optarg=yes ;;
378 esac
c6b750e1 379 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
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=*)
c6b750e1 388 exec_prefix=$ac_optarg ;;
a0da8069
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
c6b750e1
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 ;;
a0da8069
NN
400
401 -host | --host | --hos | --ho)
c6b750e1 402 ac_prev=host_alias ;;
a0da8069 403 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 404 host_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 411 includedir=$ac_optarg ;;
a0da8069
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 416 infodir=$ac_optarg ;;
a0da8069
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 421 libdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 428 libexecdir=$ac_optarg ;;
a0da8069
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 437 localstatedir=$ac_optarg ;;
a0da8069
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 442 mandir=$ac_optarg ;;
a0da8069
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 \
c6b750e1 449 | --no-cr | --no-c | -n)
a0da8069
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=*)
c6b750e1 463 oldincludedir=$ac_optarg ;;
a0da8069
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 468 prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 475 program_prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 482 program_suffix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 499 program_transform_name=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 509 sbindir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 520 sharedstatedir=$ac_optarg ;;
a0da8069
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
c6b750e1 525 site=$ac_optarg ;;
a0da8069
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 530 srcdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 537 sysconfdir=$ac_optarg ;;
a0da8069
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 540 ac_prev=target_alias ;;
a0da8069 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 542 target_alias=$ac_optarg ;;
a0da8069
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
c6b750e1
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
a0da8069
NN
549
550 -with-* | --with-*)
c6b750e1 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 552 # Reject names that are not valid shell variable names.
c6b750e1
DJ
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
a0da8069 556 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
559 *) ac_optarg=yes ;;
560 esac
c6b750e1 561 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
562
563 -without-* | --without-*)
c6b750e1 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 565 # Reject names that are not valid shell variable names.
c6b750e1
DJ
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
a0da8069
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=*)
c6b750e1 581 x_includes=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 588 x_libraries=$ac_optarg ;;
a0da8069 589
c6b750e1
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
a0da8069
NN
593 ;;
594
c6b750e1
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; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
a0da8069 605 *)
c6b750e1
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}
a0da8069
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
c6b750e1
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; }; }
a0da8069 620fi
a0da8069 621
c6b750e1
DJ
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
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
a0da8069 632
c6b750e1
DJ
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 636do
c6b750e1
DJ
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; }; };;
a0da8069
NN
642 esac
643done
644
c6b750e1
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
376a0e54 651
c6b750e1
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
a0da8069 667
a0da8069
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
c6b750e1
DJ
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
a0da8069
NN
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
a0da8069 696 else
c6b750e1
DJ
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
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
703 { (exit 1); exit 1; }; }
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
9cc8ae67
PB
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
c6b750e1
DJ
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
18f6b6ee
PB
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
9a819804
AO
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
0c24b341
NC
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
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
0c24b341
NC
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
c6b750e1
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
883_ACEOF
884
885 cat <<_ACEOF
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]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
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]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
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
a0da8069 926fi
a0da8069 927
c6b750e1
DJ
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]
93f9b408 935 --enable-gold use gold instead of ld
521ec477
DD
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 939 stage1. Mostly useful for compiler development.
521ec477
DD
940 --enable-objc-gc enable use of Boehm's garbage collector with the
941 GNU Objective-C runtime
942 --enable-bootstrap enable bootstrapping [yes if native build]
943 --enable-serial-[{host,target,build}-]configure
944 force sequential configuration of
c6b750e1 945 sub-packages for the host, target or build
521ec477 946 machine, or all sub-packages
c6b750e1
DJ
947 --enable-maintainer-mode enable make rules and dependencies not useful
948 (and sometimes confusing) to the casual installer
521ec477
DD
949 --enable-stage1-checking[=all] choose additional checking for stage1
950 of the compiler
c6b750e1
DJ
951 --enable-werror enable -Werror in bootstrap stage2 and later
952
953Optional Packages:
954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
956 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
957 --with-mpfr-dir=PATH this option has been REMOVED
958 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
959 Equivalent to --with-mpfr-include=PATH/include
960 plus --with-mpfr-lib=PATH/lib
961 --with-mpfr-include=PATH
521ec477
DD
962 specify directory for installed MPFR include files
963 --with-mpfr-lib=PATH specify directory for the installed MPFR library
964 --with-gmp-dir=PATH this option has been REMOVED
965 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
966 Equivalent to --with-gmp-include=PATH/include
967 plus --with-gmp-lib=PATH/lib
521ec477
DD
968 --with-gmp-include=PATH specify directory for installed GMP include files
969 --with-gmp-lib=PATH specify directory for the installed GMP library
970 --with-build-sysroot=SYSROOT
c6b750e1 971 use sysroot as the system root during the build
8a6ee3ab
JM
972 --with-debug-prefix-map='A=B C=D ...'
973 map A to B, C to D ... in debug information
521ec477 974 --with-build-time-tools=PATH
c6b750e1 975 use given path to find target tools during the build
521ec477
DD
976 --with-datarootdir use datarootdir as the data root directory.
977 --with-docdir install documentation in this directory.
978 --with-pdfdir install pdf in this directory.
979 --with-htmldir install html in this directory.
c6b750e1
DJ
980
981Some influential environment variables:
982 CC C compiler command
983 CFLAGS C compiler flags
984 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
985 nonstandard directory <lib dir>
986 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
987 headers in a nonstandard directory <include dir>
18f6b6ee
PB
988 CXX C++ compiler command
989 CXXFLAGS C++ compiler flags
9a819804
AO
990 AR AR for the host
991 AS AS for the host
992 DLLTOOL DLLTOOL for the host
993 LD LD for the host
994 LIPO LIPO for the host
995 NM NM for the host
996 RANLIB RANLIB for the host
997 STRIP STRIP for the host
998 WINDRES WINDRES for the host
0c24b341 999 WINDMC WINDMC for the host
9a819804
AO
1000 OBJCOPY OBJCOPY for the host
1001 OBJDUMP OBJDUMP for the host
1002 CC_FOR_TARGET
1003 CC for the target
1004 CXX_FOR_TARGET
1005 CXX for the target
1006 GCC_FOR_TARGET
1007 GCC for the target
1008 GCJ_FOR_TARGET
1009 GCJ for the target
1010 GFORTRAN_FOR_TARGET
1011 GFORTRAN for the target
1012 AR_FOR_TARGET
1013 AR for the target
1014 AS_FOR_TARGET
1015 AS for the target
1016 DLLTOOL_FOR_TARGET
1017 DLLTOOL for the target
1018 LD_FOR_TARGET
1019 LD for the target
1020 LIPO_FOR_TARGET
1021 LIPO for the target
1022 NM_FOR_TARGET
1023 NM for the target
1024 OBJDUMP_FOR_TARGET
1025 OBJDUMP for the target
1026 RANLIB_FOR_TARGET
1027 RANLIB for the target
1028 STRIP_FOR_TARGET
1029 STRIP for the target
1030 WINDRES_FOR_TARGET
1031 WINDRES for the target
0c24b341
NC
1032 WINDMC_FOR_TARGET
1033 WINDMC for the target
c6b750e1
DJ
1034
1035Use these variables to override the choices made by `configure' or to help
1036it to find libraries and programs with nonstandard names/locations.
1037
1038_ACEOF
1039fi
1040
1041if test "$ac_init_help" = "recursive"; then
1042 # If there are subdirs, report their specific --help.
1043 ac_popdir=`pwd`
1044 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1045 test -d $ac_dir || continue
1046 ac_builddir=.
1047
1048if test "$ac_dir" != .; then
1049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1050 # A "../" for each directory in $ac_dir_suffix.
1051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052else
1053 ac_dir_suffix= ac_top_builddir=
1054fi
1055
1056case $srcdir in
1057 .) # No --srcdir option. We are building in place.
1058 ac_srcdir=.
1059 if test -z "$ac_top_builddir"; then
1060 ac_top_srcdir=.
1061 else
1062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063 fi ;;
1064 [\\/]* | ?:[\\/]* ) # Absolute path.
1065 ac_srcdir=$srcdir$ac_dir_suffix;
1066 ac_top_srcdir=$srcdir ;;
1067 *) # Relative path.
1068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1070esac
1071
1072# Do not use `cd foo && pwd` to compute absolute paths, because
1073# the directories may not exist.
1074case `pwd` in
1075.) ac_abs_builddir="$ac_dir";;
1076*)
1077 case "$ac_dir" in
1078 .) ac_abs_builddir=`pwd`;;
1079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1081 esac;;
1082esac
1083case $ac_abs_builddir in
1084.) ac_abs_top_builddir=${ac_top_builddir}.;;
1085*)
1086 case ${ac_top_builddir}. in
1087 .) ac_abs_top_builddir=$ac_abs_builddir;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1090 esac;;
1091esac
1092case $ac_abs_builddir in
1093.) ac_abs_srcdir=$ac_srcdir;;
1094*)
1095 case $ac_srcdir in
1096 .) ac_abs_srcdir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1099 esac;;
1100esac
1101case $ac_abs_builddir in
1102.) ac_abs_top_srcdir=$ac_top_srcdir;;
1103*)
1104 case $ac_top_srcdir in
1105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1108 esac;;
1109esac
1110
1111 cd $ac_dir
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1114 echo
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1117 echo
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1121 echo
1122 $ac_configure --help
1123 else
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 fi
1126 cd $ac_popdir
1127 done
1128fi
1129
1130test -n "$ac_init_help" && exit 0
1131if $ac_init_version; then
1132 cat <<\_ACEOF
1133
1134Copyright (C) 2003 Free Software Foundation, Inc.
1135This configure script is free software; the Free Software Foundation
1136gives unlimited permission to copy, distribute and modify it.
1137_ACEOF
1138 exit 0
1139fi
1140exec 5>config.log
1141cat >&5 <<_ACEOF
1142This file contains any messages produced by compilers while
1143running configure, to aid debugging if configure makes a mistake.
1144
1145It was created by $as_me, which was
1146generated by GNU Autoconf 2.59. Invocation command line was
1147
1148 $ $0 $@
1149
1150_ACEOF
1151{
1152cat <<_ASUNAME
1153## --------- ##
1154## Platform. ##
1155## --------- ##
1156
1157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1158uname -m = `(uname -m) 2>/dev/null || echo unknown`
1159uname -r = `(uname -r) 2>/dev/null || echo unknown`
1160uname -s = `(uname -s) 2>/dev/null || echo unknown`
1161uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162
1163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165
1166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1169hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173
1174_ASUNAME
1175
1176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1177for as_dir in $PATH
1178do
1179 IFS=$as_save_IFS
1180 test -z "$as_dir" && as_dir=.
1181 echo "PATH: $as_dir"
1182done
1183
1184} >&5
1185
1186cat >&5 <<_ACEOF
1187
1188
1189## ----------- ##
1190## Core tests. ##
1191## ----------- ##
1192
1193_ACEOF
1194
1195
1196# Keep a trace of the command line.
1197# Strip out --no-create and --no-recursion so they do not pile up.
1198# Strip out --silent because we don't want to record it for future runs.
1199# Also quote any args containing shell meta-characters.
1200# Make two passes to allow for proper duplicate-argument suppression.
1201ac_configure_args=
1202ac_configure_args0=
1203ac_configure_args1=
1204ac_sep=
1205ac_must_keep_next=false
1206for ac_pass in 1 2
1207do
1208 for ac_arg
1209 do
1210 case $ac_arg in
1211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 continue ;;
1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1217 esac
1218 case $ac_pass in
1219 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 2)
1221 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1222 if test $ac_must_keep_next = true; then
1223 ac_must_keep_next=false # Got value, back to normal.
1224 else
1225 case $ac_arg in
1226 *=* | --config-cache | -C | -disable-* | --disable-* \
1227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1229 | -with-* | --with-* | -without-* | --without-* | --x)
1230 case "$ac_configure_args0 " in
1231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1232 esac
1233 ;;
1234 -* ) ac_must_keep_next=true ;;
1235 esac
1236 fi
1237 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1238 # Get rid of the leading space.
1239 ac_sep=" "
1240 ;;
1241 esac
1242 done
1243done
1244$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1245$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246
1247# When interrupted or exit'd, cleanup temporary files, and complete
1248# config.log. We remove comments because anyway the quotes in there
1249# would cause problems or look ugly.
1250# WARNING: Be sure not to use single quotes in there, as some shells,
1251# such as our DU 5.0 friend, will then `close' the trap.
1252trap 'exit_status=$?
1253 # Save into config.log some information that might help in debugging.
1254 {
1255 echo
1256
1257 cat <<\_ASBOX
1258## ---------------- ##
1259## Cache variables. ##
1260## ---------------- ##
1261_ASBOX
1262 echo
1263 # The following way of writing the cache mishandles newlines in values,
1264{
1265 (set) 2>&1 |
1266 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1267 *ac_space=\ *)
1268 sed -n \
1269 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271 ;;
1272 *)
1273 sed -n \
1274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 ;;
1276 esac;
1277}
1278 echo
1279
1280 cat <<\_ASBOX
1281## ----------------- ##
1282## Output variables. ##
1283## ----------------- ##
1284_ASBOX
1285 echo
1286 for ac_var in $ac_subst_vars
1287 do
1288 eval ac_val=$`echo $ac_var`
1289 echo "$ac_var='"'"'$ac_val'"'"'"
1290 done | sort
1291 echo
1292
1293 if test -n "$ac_subst_files"; then
1294 cat <<\_ASBOX
1295## ------------- ##
1296## Output files. ##
1297## ------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_files
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306 fi
1307
1308 if test -s confdefs.h; then
1309 cat <<\_ASBOX
1310## ----------- ##
1311## confdefs.h. ##
1312## ----------- ##
1313_ASBOX
1314 echo
1315 sed "/^$/d" confdefs.h | sort
1316 echo
1317 fi
1318 test "$ac_signal" != 0 &&
1319 echo "$as_me: caught signal $ac_signal"
1320 echo "$as_me: exit $exit_status"
1321 } >&5
1322 rm -f core *.core &&
1323 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1324 exit $exit_status
1325 ' 0
1326for ac_signal in 1 2 13 15; do
1327 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1328done
1329ac_signal=0
1330
1331# confdefs.h avoids OS command line length limits that DEFS can exceed.
1332rm -rf conftest* confdefs.h
1333# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1334echo >confdefs.h
1335
1336# Predefined preprocessor variables.
1337
1338cat >>confdefs.h <<_ACEOF
1339#define PACKAGE_NAME "$PACKAGE_NAME"
1340_ACEOF
1341
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_VERSION "$PACKAGE_VERSION"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_STRING "$PACKAGE_STRING"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1360_ACEOF
1361
1362
1363# Let the site file select an alternate cache file if it wants to.
a0da8069 1364# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1365if test -z "$CONFIG_SITE"; then
1366 if test "x$prefix" != xNONE; then
1367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368 else
1369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1370 fi
1371fi
1372for ac_site_file in $CONFIG_SITE; do
1373 if test -r "$ac_site_file"; then
c6b750e1
DJ
1374 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1375echo "$as_me: loading site script $ac_site_file" >&6;}
1376 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1377 . "$ac_site_file"
1378 fi
1379done
1380
1381if test -r "$cache_file"; then
c6b750e1
DJ
1382 # Some versions of bash will fail to source /dev/null (special
1383 # files actually), so we avoid doing that.
1384 if test -f "$cache_file"; then
1385 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1386echo "$as_me: loading cache $cache_file" >&6;}
1387 case $cache_file in
1388 [\\/]* | ?:[\\/]* ) . $cache_file;;
1389 *) . ./$cache_file;;
1390 esac
1391 fi
a0da8069 1392else
c6b750e1
DJ
1393 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1394echo "$as_me: creating cache $cache_file" >&6;}
1395 >$cache_file
1396fi
1397
1398# Check that the precious variables saved in the cache have kept the same
1399# value.
1400ac_cache_corrupted=false
1401for ac_var in `(set) 2>&1 |
1402 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1404 eval ac_new_set=\$ac_env_${ac_var}_set
1405 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1406 eval ac_new_val="\$ac_env_${ac_var}_value"
1407 case $ac_old_set,$ac_new_set in
1408 set,)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,set)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,);;
1417 *)
1418 if test "x$ac_old_val" != "x$ac_new_val"; then
266df637
PB
1419 # differences in whitespace do not lead to failure.
1420 ac_old_val_w=`echo x $ac_old_val`
1421 ac_new_val_w=`echo x $ac_new_val`
1422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
c6b750e1 1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
266df637
PB
1425 ac_cache_corrupted=:
1426 else
1427 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1428echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1429 eval $ac_var=\$ac_old_val
1430 fi
1431 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1432echo "$as_me: former value: \`$ac_old_val'" >&2;}
1433 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1434echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
7a283e07
RW
1451 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1452echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
a0da8069
NN
1458fi
1459
1460ac_ext=c
a0da8069 1461ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
a0da8069
NN
1478
1479
75778ec4 1480
c6b750e1 1481
7a283e07
RW
1482
1483
1484
c6b750e1
DJ
1485
1486
1487
5b553f7e
RW
1488
1489progname=$0
1490# if PWD already has a value, it is probably wrong.
1491if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1492
1493# Export original configure arguments for use by sub-configures.
1494# Quote arguments with shell meta charatcers.
1495TOPLEVEL_CONFIGURE_ARGUMENTS=
1496set -- "$progname" "$@"
1497for ac_arg
1498do
1499 case "$ac_arg" in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1502 # if the argument is of the form -foo=baz, quote the baz part only
1503 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1504 *) ;;
1505 esac
1506 # Add the quoted argument to the list.
1507 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1508done
1509if test "$silent" = yes; then
1510 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1511fi
1512# Remove the initial space we just introduced and, as these will be
1513# expanded by make, quote '$'.
1514TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1515
c6b750e1
DJ
1516
1517# Find the build, host, and target systems.
a0da8069 1518ac_aux_dir=
315b3b02 1519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
c6b750e1
DJ
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
a0da8069
NN
1532 fi
1533done
1534if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537 { (exit 1); exit 1; }; }
a0da8069 1538fi
c6b750e1
DJ
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1542
c6b750e1
DJ
1543# Make sure we can run config.sub.
1544$ac_config_sub sun4 >/dev/null 2>&1 ||
1545 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549echo "$as_me:$LINENO: checking build system type" >&5
1550echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551if test "${ac_cv_build+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_build_alias=$build_alias
1555test -z "$ac_cv_build_alias" &&
1556 ac_cv_build_alias=`$ac_config_guess`
1557test -z "$ac_cv_build_alias" &&
1558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560 { (exit 1); exit 1; }; }
1561ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566fi
1567echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568echo "${ECHO_T}$ac_cv_build" >&6
1569build=$ac_cv_build
1570build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1573
a0da8069 1574
c6b750e1
DJ
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1578esac
1579
1580
cac3d6c4 1581
c6b750e1
DJ
1582 case ${host_alias} in
1583 "") host_noncanonical=${build_noncanonical} ;;
1584 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1585esac
1586
cac3d6c4 1587
c6b750e1
DJ
1588
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1592esac
1593
cac3d6c4 1594
c6b750e1
DJ
1595
1596
1597test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
c6b750e1 1600 program_transform_name=s,y,y,
cac3d6c4 1601
c6b750e1
DJ
1602echo "$as_me:$LINENO: checking host system type" >&5
1603echo $ECHO_N "checking host system type... $ECHO_C" >&6
1604if test "${ac_cv_host+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1606else
c6b750e1
DJ
1607 ac_cv_host_alias=$host_alias
1608test -z "$ac_cv_host_alias" &&
1609 ac_cv_host_alias=$ac_cv_build_alias
1610ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1612echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615fi
1616echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1617echo "${ECHO_T}$ac_cv_host" >&6
1618host=$ac_cv_host
1619host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622
1623
1624echo "$as_me:$LINENO: checking target system type" >&5
1625echo $ECHO_N "checking target system type... $ECHO_C" >&6
1626if test "${ac_cv_target+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_target_alias=$target_alias
1630test "x$ac_cv_target_alias" = "x" &&
1631 ac_cv_target_alias=$ac_cv_host_alias
1632ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1634echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1635 { (exit 1); exit 1; }; }
1636
cac3d6c4 1637fi
c6b750e1
DJ
1638echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1639echo "${ECHO_T}$ac_cv_target" >&6
1640target=$ac_cv_target
1641target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644
1645
1646# The aliases save the names the user supplied, while $host etc.
1647# will get canonicalized.
1648test -n "$target_alias" &&
1649 test "$program_prefix$program_suffix$program_transform_name" = \
1650 NONENONEs,x,x, &&
1651 program_prefix=${target_alias}-
a0da8069 1652test "$program_prefix" != NONE &&
c6b750e1 1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1654# Use a double $ so make ignores it.
1655test "$program_suffix" != NONE &&
c6b750e1
DJ
1656 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1657# Double any \ or $. echo might interpret backslashes.
1658# By default was `s,x,x', remove it if useless.
1659cat <<\_ACEOF >conftest.sed
1660s/[\\$]/&&/g;s/;s,x,x,$//
1661_ACEOF
1662program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1663rm conftest.sed
cac3d6c4 1664
a0da8069
NN
1665
1666
e5c3f801
NN
1667# Get 'install' or 'install-sh' and its variants.
1668# Find a good install program. We prefer a C program (faster),
1669# so one script is as good as another. But avoid the broken or
1670# incompatible versions:
1671# SysV /etc/install, /usr/sbin/install
1672# SunOS /usr/etc/install
1673# IRIX /sbin/install
1674# AIX /bin/install
c6b750e1 1675# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1679# OS/2's system install, which has a completely different semantic
e5c3f801 1680# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 1681# Reject install programs that cannot install multiple files.
c6b750e1
DJ
1682echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1683echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1684if test -z "$INSTALL"; then
c6b750e1
DJ
1685if test "${ac_cv_path_install+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 # Account for people who put trailing slashes in PATH elements.
1694case $as_dir/ in
1695 ./ | .// | /cC/* | \
1696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1698 /usr/ucb/* ) ;;
1699 *)
1700 # OSF1 and SCO ODT 3.0 have their own names for install.
1701 # Don't use installbsd from OSF since it installs stuff as root
1702 # by default.
1703 for ac_prog in ginstall scoinst install; do
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1706 if test $ac_prog = install &&
c6b750e1 1707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1708 # AIX install. It has an incompatible calling convention.
1709 :
c6b750e1
DJ
1710 elif test $ac_prog = install &&
1711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1712 # program-specific install script used by HP pwplus--don't use.
1713 :
e5c3f801 1714 else
58c85be7
RW
1715 rm -rf conftest.one conftest.two conftest.dir
1716 echo one > conftest.one
1717 echo two > conftest.two
1718 mkdir conftest.dir
1719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1720 test -s conftest.one && test -s conftest.two &&
1721 test -s conftest.dir/conftest.one &&
1722 test -s conftest.dir/conftest.two
1723 then
1724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1725 break 3
1726 fi
e5c3f801
NN
1727 fi
1728 fi
1729 done
c6b750e1
DJ
1730 done
1731 ;;
1732esac
1733done
1734
58c85be7 1735rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
1736
1737fi
1738 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1739 INSTALL=$ac_cv_path_install
e5c3f801 1740 else
58c85be7
RW
1741 # As a last resort, use the slow shell script. Don't cache a
1742 # value for INSTALL within a source directory, because that will
e5c3f801 1743 # break other packages using the cache if that directory is
58c85be7 1744 # removed, or if the value is a relative name.
c6b750e1 1745 INSTALL=$ac_install_sh
e5c3f801
NN
1746 fi
1747fi
c6b750e1
DJ
1748echo "$as_me:$LINENO: result: $INSTALL" >&5
1749echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1750
1751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752# It thinks the first close brace ends the variable substitution.
1753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754
c6b750e1 1755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1756
1757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
c6b750e1
DJ
1759echo "$as_me:$LINENO: checking whether ln works" >&5
1760echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1761if test "${acx_cv_prog_LN+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1763else
1764 rm -f conftestdata_t
1765echo >conftestdata_f
1766if ln conftestdata_f conftestdata_t 2>/dev/null
1767then
1768 acx_cv_prog_LN=ln
1769else
1770 acx_cv_prog_LN=no
1771fi
1772rm -f conftestdata_f conftestdata_t
1773
1774fi
1775if test $acx_cv_prog_LN = no; then
1776 LN="cp"
c6b750e1
DJ
1777 echo "$as_me:$LINENO: result: no, using $LN" >&5
1778echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1779else
1780 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1781 echo "$as_me:$LINENO: result: yes" >&5
1782echo "${ECHO_T}yes" >&6
656fdd47
PB
1783fi
1784
c6b750e1
DJ
1785echo "$as_me:$LINENO: checking whether ln -s works" >&5
1786echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1787LN_S=$as_ln_s
1788if test "$LN_S" = "ln -s"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
cac3d6c4 1791else
c6b750e1
DJ
1792 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1793echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1794fi
1795
e5c3f801 1796
252b5132 1797### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1798### If we are on Windows, search for the shell. This will permit people
1799### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1800### without also having to set CONFIG_SHELL. This code will work when
1801### using bash, which sets OSTYPE.
1802case "${OSTYPE}" in
1803*win32*)
a0da8069
NN
1804 if test x${CONFIG_SHELL} = x ; then
1805 if test ! -f /bin/sh ; then
1806 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1807 CONFIG_SHELL=${SHELL}
1808 export CONFIG_SHELL
1809 else
1810 for prog in sh sh.exe bash bash.exe; do
1811 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1812 for dir in $PATH; do
1813 test -z "$dir" && dir=.
1814 if test -f $dir/$prog; then
1815 CONFIG_SHELL=$dir/$prog
1816 export CONFIG_SHELL
1817 break
1818 fi
1819 done
1820 IFS="$save_ifs"
1821 test -n "${CONFIG_SHELL}" && break
1822 done
1823 fi
1824 fi
1825 fi
1826 ;;
1827esac
1828
1829config_shell=${CONFIG_SHELL-/bin/sh}
1830
a0da8069 1831moveifchange=${srcdir}/move-if-change
252b5132 1832
0fdbe983
DJ
1833srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1834
1835# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1836# a relative path.
1837if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1838 INSTALL="${srcpwd}/install-sh -c"
1839fi
1840
a0da8069
NN
1841# Set srcdir to "." if that's what it is.
1842# This is important for multilib support.
1843pwd=`${PWDCMD-pwd}`
a0da8069
NN
1844if test "${pwd}" = "${srcpwd}" ; then
1845 srcdir=.
252b5132
RH
1846fi
1847
a0da8069 1848topsrcdir=$srcpwd
252b5132 1849
a0da8069 1850extra_host_args=
afefada0 1851
a0da8069
NN
1852### To add a new directory to the tree, first choose whether it is a target
1853### or a host dependent tool. Then put it into the appropriate list
1854### (library or tools, host or target), doing a dependency sort.
252b5132 1855
c6b750e1 1856# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1857# configdirs, or target_configdirs; see the serialization section below.
252b5132 1858
c6b750e1
DJ
1859# Dependency sorting is only needed when *configuration* must be done in
1860# a particular order. In all cases a dependency should be specified in
a0da8069 1861# the Makefile, whether or not it's implicitly specified here.
252b5132 1862
a0da8069
NN
1863# Double entries in build_configdirs, configdirs, or target_configdirs may
1864# cause circular dependencies and break everything horribly.
252b5132 1865
6a9cf61e
PB
1866# these library is used by various programs built for the build
1867# environment
1868#
1869build_libs="build-libiberty"
1870
1871# these tools are built for the build environment
ee025550 1872build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1873
a0da8069
NN
1874# these libraries are used by various programs built for the host environment
1875#
4b900473 1876host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1877
a0da8069
NN
1878# these tools are built for the host environment
1879# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1880# know that we are building the simulator.
1881# binutils, gas and ld appear in that order because it makes sense to run
1882# "make check" in that particular order.
93f9b408 1883# If --enable-gold is used, "gold" will replace "ld".
b00612cc 1884host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1885
1886# libgcj represents the runtime libraries only used by gcj.
1887libgcj="target-libffi \
a0da8069
NN
1888 target-zlib \
1889 target-qthreads \
1890 target-libjava"
1891
1892# these libraries are built for the target environment, and are built after
1893# the host libraries and the host tools (which may be a cross compiler)
1894#
b1299c4e
DJ
1895target_libraries="target-libgcc \
1896 target-libiberty \
a0da8069
NN
1897 target-libgloss \
1898 target-newlib \
cff87f51 1899 target-libgomp \
b9459e83 1900 target-libstdc++-v3 \
4b1cb4fe 1901 target-libmudflap \
bb780410 1902 target-libssp \
4b1cb4fe 1903 target-libgfortran \
4f0ef2d8 1904 target-boehm-gc \
83326456 1905 ${libgcj} \
a2592b1b 1906 target-libobjc \
cff87f51 1907 target-libada"
a0da8069 1908
9c14acb8
NN
1909# these tools are built using the target libraries, and are intended to
1910# run only in the target environment
a0da8069 1911#
9c14acb8 1912# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1913# list belongs in this list. those programs are also very likely
1914# candidates for the "native_only" list which follows
1915#
a3dd767d 1916target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1917
a0da8069 1918################################################################################
252b5132 1919
a0da8069
NN
1920## All tools belong in one of the four categories, and are assigned above
1921## We assign ${configdirs} this way to remove all embedded newlines. This
1922## is important because configure will choke if they ever get through.
1923## ${configdirs} is directories we build using the host tools.
1924## ${target_configdirs} is directories we build using the target tools.
a0da8069 1925configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1926target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1927build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1928
9cc8ae67
PB
1929
1930
a0da8069 1931################################################################################
252b5132 1932
a0da8069 1933srcname="gnu development package"
252b5132 1934
a0da8069
NN
1935# This gets set non-empty for some net releases of packages.
1936appdirs=""
252b5132 1937
a0da8069
NN
1938# Define is_cross_compiler to save on calls to 'test'.
1939is_cross_compiler=
1940if test x"${host}" = x"${target}" ; then
1941 is_cross_compiler=no
252b5132 1942else
a0da8069 1943 is_cross_compiler=yes
c6b750e1 1944fi
252b5132 1945
9175bfc0 1946# Find the build and target subdir names.
dd12c3a8 1947
66a79c16
DJ
1948# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1949# have matching libraries, they should use host libraries: Makefile.tpl
1950# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1951# However, they still use the build modules, because the corresponding
1952# host modules (e.g. bison) are only built for the host when bootstrap
1953# finishes. So:
1954# - build_subdir is where we find build modules, and never changes.
1955# - build_libsubdir is where we find build libraries, and can be overridden.
1956
1957# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1958build_subdir="build-${build_noncanonical}"
c6b750e1 1959
66a79c16
DJ
1960# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1961if test "${with_build_libsubdir+set}" = set; then
1962 withval="$with_build_libsubdir"
1963 build_libsubdir="$withval"
1964else
1965 build_libsubdir="$build_subdir"
c6b750e1 1966fi;
b00612cc
PB
1967# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1968if ( test $srcdir = . && test -d gcc ) \
1969 || test -d $srcdir/../host-${host_noncanonical}; then
1970 host_subdir="host-${host_noncanonical}"
1971else
1972 host_subdir=.
1973fi
dd12c3a8
NN
1974# No prefix.
1975target_subdir=${target_noncanonical}
c6b750e1 1976
252b5132 1977
a0da8069
NN
1978# Skipdirs are removed silently.
1979skipdirs=
1980# Noconfigdirs are removed loudly.
1981noconfigdirs=""
252b5132 1982
a0da8069
NN
1983use_gnu_ld=
1984# Make sure we don't let GNU ld be added if we didn't want it.
1985if test x$with_gnu_ld = xno ; then
1986 use_gnu_ld=no
93f9b408 1987 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
1988fi
1989
a0da8069
NN
1990use_gnu_as=
1991# Make sure we don't let GNU as be added if we didn't want it.
1992if test x$with_gnu_as = xno ; then
1993 use_gnu_as=no
1994 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1995fi
1996
c6b750e1 1997# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1998# it's not even worth trying to configure, much less build, that tool.
252b5132 1999
a0da8069
NN
2000case ${with_x} in
2001 yes | "") ;; # the default value for this tree is that X11 is available
2002 no)
675c6968 2003 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2004 # We won't be able to build gdbtk without X.
c6b750e1 2005 enable_gdbtk=no
a0da8069
NN
2006 ;;
2007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2008esac
252b5132 2009
a0da8069 2010# Some tools are only suitable for building in a "native" situation.
c6b750e1 2011# Remove these if host!=target.
701628f5 2012native_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"
252b5132 2013
a0da8069
NN
2014# Similarly, some are only suitable for cross toolchains.
2015# Remove these if host=target.
2016cross_only="target-libgloss target-newlib target-opcodes"
2017
2018case $is_cross_compiler in
2019 no) skipdirs="${skipdirs} ${cross_only}" ;;
2020 yes) skipdirs="${skipdirs} ${native_only}" ;;
2021esac
252b5132 2022
a0da8069
NN
2023# If both --with-headers and --with-libs are specified, default to
2024# --without-newlib.
32be62b5
RS
2025if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2027 if test x"${with_newlib}" = x ; then
2028 with_newlib=no
2029 fi
252b5132
RH
2030fi
2031
a0da8069
NN
2032# Recognize --with-newlib/--without-newlib.
2033case ${with_newlib} in
2034 no) skipdirs="${skipdirs} target-newlib" ;;
2035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2036esac
252b5132 2037
93f9b408
ILT
2038# Handle --enable-gold.
2039
2040# Check whether --enable-gold or --disable-gold was given.
2041if test "${enable_gold+set}" = set; then
2042 enableval="$enable_gold"
2043 ENABLE_GOLD=$enableval
2044else
2045 ENABLE_GOLD=no
2046fi;
2047if test "${ENABLE_GOLD}" = "yes"; then
2048 # Check for ELF target.
2049 is_elf=no
2050 case "${target}" in
2051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2052 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2054 case "${target}" in
2055 *-*-linux*aout* | *-*-linux*oldld*)
2056 ;;
2057 *)
2058 is_elf=yes
2059 ;;
2060 esac
2061 esac
2062
2063 if test "$is_elf" = "yes"; then
2064 # Check for target supported by gold.
2065 case "${target}" in
310213e8 2066 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
93f9b408
ILT
2067 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2068 ;;
2069 esac
2070 fi
2071fi
2072
a0da8069 2073# Configure extra directories which are host specific
252b5132 2074
a0da8069
NN
2075case "${host}" in
2076 *-cygwin*)
2077 configdirs="$configdirs libtermcap" ;;
2078esac
252b5132 2079
59f7ec45
HPN
2080# A target can indicate whether a language isn't supported for some reason.
2081# Only spaces may be used in this macro; not newlines or tabs.
2082unsupported_languages=
2083
c6b750e1 2084# Remove more programs from consideration, based on the host or
a0da8069
NN
2085# target this usually means that a port of the program doesn't
2086# exist yet.
252b5132 2087
a0da8069
NN
2088case "${host}" in
2089 hppa*64*-*-*)
2090 noconfigdirs="$noconfigdirs byacc"
2091 ;;
ec11bdc6 2092 i[3456789]86-*-vsta)
675c6968 2093 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2094 ;;
ec11bdc6 2095 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2096 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2097 ;;
2d1e8239
NC
2098 x86_64-*-mingw*)
2099 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2100 ;;
ec11bdc6 2101 i[3456789]86-*-mingw32*)
675c6968 2102 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2103 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2104 ;;
ec11bdc6 2105 i[3456789]86-*-beos*)
675c6968 2106 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2107 ;;
a0da8069 2108 *-*-cygwin*)
a92834c8 2109 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2110 ;;
2111 *-*-netbsd*)
a92834c8 2112 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2113 ;;
2114 ppc*-*-pe)
675c6968 2115 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2116 ;;
2117 powerpc-*-beos*)
675c6968 2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2119 ;;
a0da8069 2120esac
252b5132 2121
4b1cb4fe 2122
a2592b1b
DD
2123# Check whether --enable-libada or --disable-libada was given.
2124if test "${enable_libada+set}" = set; then
2125 enableval="$enable_libada"
2126 ENABLE_LIBADA=$enableval
2127else
2128 ENABLE_LIBADA=yes
c6b750e1 2129fi;
a2592b1b 2130if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2131 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2132fi
2133
5f128533
KH
2134# Check whether --enable-libssp or --disable-libssp was given.
2135if test "${enable_libssp+set}" = set; then
2136 enableval="$enable_libssp"
2137 ENABLE_LIBSSP=$enableval
2138else
2139 ENABLE_LIBSSP=yes
c6b750e1 2140fi;
5f128533 2141
a0da8069
NN
2142# Save it here so that, even in case of --enable-libgcj, if the Java
2143# front-end isn't enabled, we still get libgcj disabled.
2144libgcj_saved=$libgcj
2145case $enable_libgcj in
2146yes)
2147 # If we reset it here, it won't get added to noconfigdirs in the
2148 # target-specific build rules, so it will be forcibly enabled
2149 # (unless the Java language itself isn't enabled).
2150 libgcj=
2151 ;;
2152no)
2153 # Make sure we get it printed in the list of not supported target libs.
2154 noconfigdirs="$noconfigdirs ${libgcj}"
2155 ;;
2156esac
252b5132 2157
4b1cb4fe 2158
a6df5a19
PB
2159# Disable libmudflap on some systems.
2160if test x$enable_libmudflap = x ; then
3e707e94 2161 case "${target}" in
0ebe98fb 2162 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2163 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2164 ;;
2165 *-*-freebsd*)
2166 # Enable libmudflap by default in FreeBSD.
2167 ;;
2168 *)
2169 # Disable it by default everywhere else.
2170 noconfigdirs="$noconfigdirs target-libmudflap"
2171 ;;
2172 esac
a6df5a19 2173fi
4b1cb4fe 2174
a6df5a19
PB
2175# Disable libgomp on non POSIX hosted systems.
2176if test x$enable_libgomp = x ; then
b3ded179
PB
2177 # Enable libgomp by default on hosted POSIX systems.
2178 case "${target}" in
2179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2180 ;;
2181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2182 ;;
64ce424c 2183 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2184 ;;
2185 *-*-darwin* | *-*-aix*)
2186 ;;
2187 *)
2188 noconfigdirs="$noconfigdirs target-libgomp"
2189 ;;
2190 esac
a6df5a19 2191fi
b3ded179 2192
691bb5a1
DD
2193# Default libgloss CPU subdirectory.
2194libgloss_dir="$target_cpu"
4b1cb4fe 2195
a0da8069
NN
2196case "${target}" in
2197 *-*-chorusos)
54d1c879 2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2199 ;;
c9b68031 2200 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
b3f16a9b 2201 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2202 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2203 ;;
04d1ab34 2204 *-*-darwin*)
d320aacb 2205 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2206 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2207 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2208 ;;
a0da8069 2209 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2211 ;;
de0b4a87 2212 *-*-freebsd*)
4b1cb4fe
DD
2213 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2214 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2215 && test -f /usr/local/include/gmp.h; then
2216 with_gmp=/usr/local
2217 fi
2218
2219 # Skip some stuff that's unsupported on some FreeBSD configurations.
2220 case "${target}" in
2221 i*86-*-*) ;;
2222 alpha*-*-*) ;;
2223 *)
54d1c879 2224 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2225 ;;
2226 esac
2227 ;;
f8a495c8
NC
2228 *-*-kaos*)
2229 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2230 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2231 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2232 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2233 noconfigdirs="$noconfigdirs target-libgloss"
2234 ;;
a0da8069
NN
2235 *-*-netbsd*)
2236 # Skip some stuff on all NetBSD configurations.
2237 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2238
2239 # Skip some stuff that's unsupported on some NetBSD configurations.
2240 case "${target}" in
2241 i*86-*-netbsdelf*) ;;
5b474aa8 2242 arm*-*-netbsdelf*) ;;
a0da8069 2243 *)
54d1c879 2244 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2245 ;;
2246 esac
2247 ;;
2a3124ca 2248 *-*-netware*)
54d1c879 2249 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2250 ;;
2251 *-*-rtems*)
54d1c879 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2253 ;;
1587117a
EC
2254 # The tpf target doesn't support gdb yet.
2255 *-*-tpf*)
54d1c879 2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2257 ;;
c1968181 2258 *-*-uclinux*)
54d1c879 2259 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2260 ;;
a0da8069 2261 *-*-vxworks*)
54d1c879 2262 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2263 ;;
2264 alpha*-dec-osf*)
2265 # ld works, but does not support shared libraries.
2266 # newlib is not 64 bit ready. I'm not sure about fileutils.
2267 # gas doesn't generate exception information.
2268 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2269 ;;
2270 alpha*-*-*vms*)
54d1c879 2271 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2272 ;;
2273 alpha*-*-linux*)
2274 # newlib is not 64 bit ready
2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2276 ;;
a0da8069
NN
2277 alpha*-*-*)
2278 # newlib is not 64 bit ready
54d1c879 2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2280 ;;
4a18bd6b 2281 am33_2.0-*-linux*)
54d1c879 2282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2283 ;;
a0da8069 2284 sh-*-linux*)
54d1c879 2285 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2286 ;;
a0da8069 2287 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2288 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2289 noconfigdirs="$noconfigdirs target-examples"
2290 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2291 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2292 noconfigdirs="$noconfigdirs expect dejagnu"
2293 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2294 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2295 noconfigdirs="$noconfigdirs target-newlib"
2296 case "${host}" in
2297 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2298 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2299 ;;
2300 esac
691bb5a1 2301 libgloss_dir=wince
a0da8069
NN
2302 ;;
2303 arc-*-*)
54d1c879 2304 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2305 ;;
caeba88f 2306 arm-semi-aof )
caeba88f 2307 ;;
a0da8069 2308 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2309 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2310 libgloss_dir=arm
a0da8069 2311 ;;
11b04d1f 2312 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2313 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2314 libgloss_dir=arm
a0da8069 2315 ;;
bd70a46f 2316 arm*-*-linux-gnueabi)
6d18b86b 2317 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2318 case ${with_newlib} in
2319 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2320 esac
691bb5a1 2321 libgloss_dir=arm
bd70a46f 2322 ;;
df4a6958 2323 arm*-*-symbianelf*)
54d1c879 2324 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2325 libgloss_dir=arm
df4a6958 2326 ;;
a0da8069 2327 arm-*-pe*)
54d1c879 2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2329 ;;
a0da8069 2330 thumb-*-coff)
54d1c879 2331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2332 ;;
2333 thumb-*-elf)
54d1c879 2334 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2335 ;;
a0da8069 2336 thumb-*-pe)
54d1c879 2337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2338 ;;
2339 arm-*-riscix*)
54d1c879 2340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2341 ;;
2342 avr-*-*)
266df637 2343 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 2344 ;;
376a0e54 2345 bfin-*-*)
00d89675 2346 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2347 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2348 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2349 fi
2350 ;;
a0da8069 2351 c4x-*-* | tic4x-*-*)
54d1c879 2352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2353 ;;
2354 c54x*-*-* | tic54x-*-*)
54d1c879 2355 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2356 ;;
52310858
NC
2357 cr16-*-*)
2358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2359 ;;
c7e66c6d 2360 cris-*-* | crisv32-*-*)
59f7ec45 2361 unsupported_languages="$unsupported_languages java"
c7e66c6d 2362 case "${target}" in
2faa2958 2363 *-*-aout)
096f7d00 2364 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2365 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2366 *-*-elf)
5e818318 2367 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2368 *-*-linux*)
5e818318 2369 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2370 *)
096f7d00 2371 unsupported_languages="$unsupported_languages fortran"
54d1c879 2372 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2373 esac
691bb5a1 2374 libgloss_dir=cris
a0da8069 2375 ;;
3e707e94 2376 crx-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2378 ;;
a0da8069 2379 d10v-*-*)
54d1c879 2380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2381 ;;
2382 d30v-*-*)
54d1c879 2383 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 2384 ;;
691bb5a1
DD
2385 ep9312-*-elf | ep9312-*-coff)
2386 libgloss_dir=arm
2387 ;;
a0da8069 2388 fr30-*-elf*)
54d1c879 2389 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2390 ;;
2391 frv-*-*)
54d1c879 2392 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2393 ;;
2394 h8300*-*-*)
54d1c879 2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2396 ;;
2397 h8500-*-*)
54d1c879 2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2399 ;;
caeba88f 2400 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2401 ;;
a0da8069
NN
2402 hppa*64*-*-linux* | parisc*64*-*-linux*)
2403 # In this case, it's because the hppa64-linux target is for
2404 # the kernel only at this point and has no libc, and thus no
2405 # headers, crt*.o, etc., all of which are needed by these.
2406 noconfigdirs="$noconfigdirs target-zlib"
2407 ;;
5dcac624
DA
2408 parisc*-*-linux* | hppa*-*-linux*)
2409 ;;
a0da8069 2410 hppa*-*-*elf* | \
a0da8069
NN
2411 hppa*-*-lites* | \
2412 hppa*-*-openbsd* | \
2413 hppa*64*-*-*)
54d1c879 2414 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2415 ;;
2416 hppa*-hp-hpux11*)
2417 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 2418 ;;
691bb5a1
DD
2419 hppa*-*-pro*)
2420 libgloss_dir=pa
2421 ;;
a0da8069
NN
2422 hppa*-*-*)
2423 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2424 # build on HP-UX 10.20.
54d1c879 2425 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2426 ;;
b07c2aad 2427 i960-*-*)
54d1c879 2428 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2429 ;;
a0da8069
NN
2430 ia64*-*-elf*)
2431 # No gdb support yet.
675c6968 2432 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2433 ;;
2434 ia64*-**-hpux*)
2435 # No gdb or ld support yet.
54d1c879 2436 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2437 ;;
caeba88f 2438 i370-*-opened*)
caeba88f 2439 ;;
ec11bdc6 2440 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2441 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2442 libgloss_dir=i386
a0da8069 2443 ;;
ec11bdc6 2444 i[3456789]86-*-linux*)
a0da8069
NN
2445 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2446 # not build java stuff by default.
2447 case "${target}" in
2448 *-*-*libc1*)
54d1c879 2449 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2450 esac
2451
2452 # This section makes it possible to build newlib natively on linux.
2453 # If we are using a cross compiler then don't configure newlib.
2454 if test x${is_cross_compiler} != xno ; then
bba45b8b 2455 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2456 fi
2457 noconfigdirs="$noconfigdirs target-libgloss"
2458 # If we are not using a cross compiler, do configure newlib.
2459 # Note however, that newlib will only be configured in this situation
2460 # if the --with-newlib option has been given, because otherwise
2461 # 'target-newlib' will appear in skipdirs.
2462 ;;
ec11bdc6 2463 i[3456789]86-*-mingw32*)
45055374
CV
2464 target_configdirs="$target_configdirs target-winsup"
2465 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2466 ;;
2d1e8239
NC
2467 x86_64-*-mingw*)
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2470 ;;
a0da8069
NN
2471 *-*-cygwin*)
2472 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2473 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2474 # always build newlib if winsup directory is present.
45055374 2475 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2476 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2477 elif test -d "$srcdir/newlib"; then
45055374 2478 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2479 fi
c6b750e1 2480 ;;
caeba88f
AL
2481 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2482 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2483 ;;
ec11bdc6 2484 i[3456789]86-*-pe)
54d1c879 2485 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2486 ;;
ec11bdc6 2487 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2488 # The linker does not yet know about weak symbols in COFF,
2489 # and is not configured to handle mixed ELF and COFF.
54d1c879 2490 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2491 ;;
ec11bdc6 2492 i[3456789]86-*-sco*)
54d1c879 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2494 ;;
ec11bdc6 2495 i[3456789]86-*-solaris2*)
a0da8069
NN
2496 noconfigdirs="$noconfigdirs target-libgloss"
2497 ;;
ec11bdc6 2498 i[3456789]86-*-sysv4*)
54d1c879 2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2500 ;;
ec11bdc6 2501 i[3456789]86-*-beos*)
54d1c879 2502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2503 ;;
b59bea8a 2504 i[3456789]86-*-rdos*)
2429c060
PB
2505 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2506 ;;
b07c2aad 2507 m32r-*-*)
54d1c879 2508 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2509 ;;
a0da8069 2510 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2511 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 2512 libgloss_dir=m68hc11
a0da8069
NN
2513 ;;
2514 m68k-*-elf*)
54d1c879 2515 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2516 ;;
2517 m68k-*-coff*)
54d1c879 2518 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2519 ;;
691bb5a1
DD
2520 m68*-*-* | fido-*-*)
2521 libgloss_dir=m68k
2522 ;;
a0da8069
NN
2523 mcore-*-pe*)
2524 # The EPOC C++ environment does not support exceptions or rtti,
2525 # and so building libstdc++-v3 tends not to always work.
2526 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2527 ;;
2528 mmix-*-*)
59f7ec45 2529 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2530 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2531 ;;
2532 mn10200-*-*)
54d1c879 2533 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2534 ;;
2535 mn10300-*-*)
54d1c879 2536 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2537 ;;
4970f871 2538 mt-*-*)
cdb9b172
AH
2539 noconfigdirs="$noconfigdirs sim"
2540 ;;
a0da8069
NN
2541 powerpc-*-aix*)
2542 # copied from rs6000-*-* entry
54d1c879 2543 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2544 ;;
2545 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2546 target_configdirs="$target_configdirs target-winsup"
54d1c879 2547 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2548 # always build newlib.
2549 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2550 ;;
2551 # This is temporary until we can link against shared libraries
2552 powerpcle-*-solaris*)
54d1c879 2553 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 2554 libgloss_dir=rs6000
a0da8069
NN
2555 ;;
2556 powerpc-*-beos*)
54d1c879 2557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2558 ;;
a0da8069 2559 powerpc-*-eabi)
54d1c879 2560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2561 libgloss_dir=rs6000
caeba88f
AL
2562 ;;
2563 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 2564 libgloss_dir=rs6000
a0da8069 2565 ;;
a0da8069 2566 rs6000-*-lynxos*)
54d1c879 2567 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2568 ;;
2569 rs6000-*-aix*)
54d1c879 2570 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2571 ;;
2572 rs6000-*-*)
54d1c879 2573 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2574 ;;
2575 m68k-apollo-*)
54d1c879 2576 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 2577 ;;
5bd8be13
RS
2578 mips*-sde-elf*)
2579 skipdirs="$skipdirs target-libiberty"
2580 noconfigdirs="$noconfigdirs ${libgcj}"
2581 if test x$with_newlib = xyes; then
2582 noconfigdirs="$noconfigdirs gprof"
2583 fi
2584 libgloss_dir=mips
2585 ;;
a0da8069 2586 mips*-*-irix5*)
54d1c879 2587 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2588 ;;
2589 mips*-*-irix6*)
a0da8069
NN
2590 # Linking libjava exceeds command-line length limits on at least
2591 # IRIX 6.2, but not on IRIX 6.5.
2592 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2593 # <oldham@codesourcery.com>
54d1c879 2594 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2595 ;;
a0da8069 2596 mips*-*-bsd*)
54d1c879 2597 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2598 ;;
a0da8069
NN
2599 mips*-*-linux*)
2600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2601 ;;
2602 mips*-*-*)
54d1c879 2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 2604 libgloss_dir=mips
a0da8069
NN
2605 ;;
2606 romp-*-*)
54d1c879 2607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2608 ;;
dbf85af7 2609 sh-*-* | sh64-*-*)
a0da8069 2610 case "${host}" in
ec11bdc6
DD
2611 i[3456789]86-*-vsta) ;; # don't add gprof back in
2612 i[3456789]86-*-go32*) ;; # don't add gprof back in
2613 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2615 esac
54d1c879 2616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2617 ;;
691bb5a1
DD
2618 sparclet-*-aout* | sparc86x-*-*)
2619 libgloss_dir=sparc
2620 ;;
a0da8069 2621 sparc-*-elf*)
54d1c879 2622 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2623 ;;
2624 sparc64-*-elf*)
54d1c879 2625 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2626 libgloss_dir=sparc
a0da8069
NN
2627 ;;
2628 sparclite-*-*)
54d1c879 2629 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2630 libgloss_dir=sparc
a0da8069
NN
2631 ;;
2632 sparc-*-sunos4*)
54d1c879 2633 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2634 if test x${is_cross_compiler} != xno ; then
2635 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2636 else
2637 use_gnu_ld=no
2638 fi
2639 ;;
e3c770b1 2640 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2641 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2642 ;;
a0da8069
NN
2643 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2644 ;;
2839fe5d
BE
2645 spu-*-*)
2646 skipdirs="target-libssp"
2647 ;;
a0da8069 2648 v810-*-*)
54d1c879 2649 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2650 ;;
2651 v850-*-*)
54d1c879 2652 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2653 ;;
2654 v850e-*-*)
54d1c879 2655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2656 ;;
2657 v850ea-*-*)
54d1c879 2658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2659 ;;
2660 vax-*-vms)
54d1c879 2661 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2662 ;;
2663 vax-*-*)
54d1c879 2664 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2665 ;;
8b66833e 2666 xtensa*-*-*)
54d1c879 2667 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2668 ;;
a0da8069 2669 ip2k-*-*)
54d1c879 2670 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2671 ;;
de0b4a87 2672 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2674 ;;
2675 *-*-lynxos*)
54d1c879 2676 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2677 ;;
a0da8069 2678 *-*-*)
54d1c879 2679 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2680 ;;
2681esac
252b5132 2682
a0da8069
NN
2683# If we aren't building newlib, then don't build libgloss, since libgloss
2684# depends upon some newlib header files.
2685case "${noconfigdirs}" in
2686 *target-libgloss*) ;;
2687 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2688esac
2689
a0da8069
NN
2690# Work in distributions that contain no compiler tools, like Autoconf.
2691tentative_cc=""
2692host_makefile_frag=/dev/null
2693if test -d ${srcdir}/config ; then
2694case "${host}" in
2695 m68k-hp-hpux*)
2696 # Avoid "too much defining" errors from HPUX compiler.
2697 tentative_cc="cc -Wp,-H256000"
2698 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2699 # If it's HP/UX ar, this should be harmless.
2700 RANLIB="ar ts"
2701 ;;
2702 m68k-apollo-sysv*)
2703 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2704 ;;
2705 m68k-apollo-bsd*)
2706 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2707 # chokes on bfd, the compiler won't let you assign integers to enums, and
2708 # other problems. Defining CC to gcc is a questionable way to say "don't use
2709 # the apollo compiler" (the preferred version of GCC could be called cc,
2710 # or whatever), but I'm not sure leaving CC as cc is any better...
2711 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2712 # Used to have BISON=yacc.
2713 tentative_cc=gcc
2714 ;;
2715 m88k-dg-dgux*)
2716 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2717 ;;
2718 m88k-harris-cxux*)
2719 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2720 tentative_cc="cc -Xa"
2721 host_makefile_frag="config/mh-cxux"
2722 ;;
2723 m88k-motorola-sysv*)
2724 ;;
2725 mips*-dec-ultrix*)
2726 tentative_cc="cc -Wf,-XNg1000"
2727 host_makefile_frag="config/mh-decstation"
2728 ;;
2729 mips*-nec-sysv4*)
2730 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2731 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2732 host_makefile_frag="config/mh-necv4"
2733 ;;
2734 mips*-sgi-irix4*)
2735 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2736 # environment. Also bump switch table size so that cp-parse will
2737 # compile. Bump string length limit so linker builds.
2738 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2739 ;;
2740 mips*-*-sysv4*)
2741 host_makefile_frag="config/mh-sysv4"
2742 ;;
2743 mips*-*-sysv*)
2744 # This is for a MIPS running RISC/os 4.52C.
2745
2746 # This is needed for GDB, but needs to be in the top-level make because
2747 # if a library is compiled with the bsd headers and gets linked with the
2748 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2749 # a different size).
2750 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2751 # known except to select the sysv environment. Could we use /proc instead?
2752 # These "sysv environments" and "bsd environments" often end up being a pain.
2753 #
2754 # This is not part of CFLAGS because perhaps not all C compilers have this
2755 # option.
2756 tentative_cc="cc -systype sysv"
2757 ;;
2758 i370-ibm-opened*)
2759 tentative_cc="c89"
2760 ;;
ec11bdc6 2761 i[3456789]86-*-sysv5*)
a0da8069
NN
2762 host_makefile_frag="config/mh-sysv5"
2763 ;;
ec11bdc6 2764 i[3456789]86-*-dgux*)
a0da8069
NN
2765 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2766 host_makefile_frag="config/mh-dgux386"
2767 ;;
ec11bdc6 2768 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2769 # The MetaWare compiler will generate a copyright message unless you
2770 # turn it off by adding the -Hnocopyr flag.
2771 tentative_cc="cc -Hnocopyr"
2772 ;;
ec11bdc6 2773 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2774 # for an NCR 3000 (i486/SVR4) system.
2775 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2776 # This compiler not only emits obnoxious copyright messages every time
2777 # you run it, but it chokes and dies on a whole bunch of GNU source
2778 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2779 tentative_cc="/usr/ccs/ATT/cc"
2780 host_makefile_frag="config/mh-ncr3000"
2781 ;;
ec11bdc6 2782 i[3456789]86-*-sco3.2v5*)
a0da8069 2783 ;;
ec11bdc6 2784 i[3456789]86-*-sco*)
a0da8069
NN
2785 # The native C compiler botches some simple uses of const. Unfortunately,
2786 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2787 tentative_cc="cc -Dconst="
2788 host_makefile_frag="config/mh-sco"
2789 ;;
ec11bdc6 2790 i[3456789]86-*-udk*)
a0da8069
NN
2791 host_makefile_frag="config/mh-sysv5"
2792 ;;
ec11bdc6 2793 i[3456789]86-*-solaris2*)
a0da8069
NN
2794 host_makefile_frag="config/mh-sysv4"
2795 ;;
ec11bdc6 2796 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2797 host_makefile_frag="config/mh-djgpp"
2798 ;;
2799 *-cygwin*)
e33b51a6
NC
2800
2801echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2802echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2803echo a >cygwin-cat-check
2804if test `cat cygwin-cat-check` == a ; then
8ade07e9 2805 rm cygwin-cat-check
e33b51a6
NC
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808else
8ade07e9 2809 rm cygwin-cat-check
e33b51a6
NC
2810 echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6
2812 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2813 Please either mount the build directory in binary mode or run the following
2814 commands before running any configure script:
2815set -o igncr
2816export SHELLOPTS
2817 " >&5
2818echo "$as_me: error: The cat command does not ignore carriage return characters.
2819 Please either mount the build directory in binary mode or run the following
2820 commands before running any configure script:
2821set -o igncr
2822export SHELLOPTS
2823 " >&2;}
2824 { (exit 1); exit 1; }; }
2825fi
e33b51a6 2826
a0da8069
NN
2827 host_makefile_frag="config/mh-cygwin"
2828 ;;
8a1599ab 2829 *-mingw*)
84e7906e 2830 host_makefile_frag="config/mh-mingw"
2d1e8239 2831 ;;
a0da8069
NN
2832 *-interix*)
2833 host_makefile_frag="config/mh-interix"
2834 ;;
2835 vax-*-ultrix2*)
2836 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2837 tentative_cc=gcc
2838 ;;
2839 *-*-solaris2*)
2840 host_makefile_frag="config/mh-solaris"
2841 ;;
2842 m68k-sun-sunos*)
2843 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2844 # without overflowing the jump tables (-J says to use a 32 bit table)
2845 tentative_cc="cc -J"
2846 ;;
da888c87 2847 hppa*-hp-hpux10*)
a0da8069 2848 tentative_cc="cc -Wp,-H256000"
da888c87 2849 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 2850 ;;
da888c87
PB
2851 hppa*-hp-hpux* | hppa*-*-hiux*)
2852 tentative_cc="cc -Wp,-H256000"
2853 host_makefile_frag="config/mh-pa"
2854 ;;
2855 hppa*-*)
2856 host_makefile_frag="config/mh-pa"
2857 ;;
2858 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
2859 tentative_cc="cc -Wp,-H256000"
2860 ;;
2861 rs6000-*-lynxos*)
2862 # /bin/cc is less than useful for our purposes. Always use GCC
2863 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2864 host_makefile_frag="config/mh-lynxrs6k"
2865 ;;
0df3d27f
PB
2866 powerpc-*-darwin*)
2867 host_makefile_frag="config/mh-ppc-darwin"
2868 ;;
f6d183c0
PB
2869 powerpc-*-aix*)
2870 host_makefile_frag="config/mh-ppc-aix"
2871 ;;
2872 rs6000-*-aix*)
2873 host_makefile_frag="config/mh-ppc-aix"
2874 ;;
a0da8069
NN
2875 *-*-lynxos*)
2876 # /bin/cc is less than useful for our purposes. Always use GCC
2877 tentative_cc="/bin/gcc"
2878 ;;
2879 *-*-sysv4*)
2880 host_makefile_frag="config/mh-sysv4"
2881 ;;
fe69863c
DD
2882 # This is placed last to prevent interfering with the cases above.
2883 i[3456789]86-*-*)
2884 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2885 host_makefile_frag="config/mh-x86omitfp"
2886 ;;
a0da8069
NN
2887esac
2888fi
2889
9e07f89d
NN
2890# If we aren't going to be using gcc, see if we can extract a definition
2891# of CC from the fragment.
2892# Actually, use the 'pre-extracted' version above.
2893if test -z "${CC}" && test "${build}" = "${host}" ; then
2894 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2895 found=
2896 for dir in $PATH; do
2897 test -z "$dir" && dir=.
2898 if test -f $dir/gcc; then
2899 found=yes
2900 break
2901 fi
2902 done
2903 IFS="$save_ifs"
2904 if test -z "${found}" && test -n "${tentative_cc}" ; then
2905 CC=$tentative_cc
2906 fi
2907fi
2908
2909if test "${build}" != "${host}" ; then
1576798e
PB
2910 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2911 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 2912 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
2913 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2914 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2915 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2916 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2917 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2918 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2919 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2920 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2921 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2922else
2923 AR_FOR_BUILD="\$(AR)"
2924 AS_FOR_BUILD="\$(AS)"
512b7dfb 2925 CC_FOR_BUILD="\$(CC)"
1576798e
PB
2926 CXX_FOR_BUILD="\$(CXX)"
2927 GCJ_FOR_BUILD="\$(GCJ)"
2928 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2929 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2930 LD_FOR_BUILD="\$(LD)"
2931 NM_FOR_BUILD="\$(NM)"
2932 RANLIB_FOR_BUILD="\$(RANLIB)"
2933 WINDRES_FOR_BUILD="\$(WINDRES)"
2934 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
2935fi
2936
2937ac_ext=c
c6b750e1
DJ
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2944set dummy ${ac_tool_prefix}gcc; ac_word=$2
2945echo "$as_me:$LINENO: checking for $ac_word" >&5
2946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947if test "${ac_cv_prog_CC+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964done
2965done
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
2971 echo "$as_me:$LINENO: result: $CC" >&5
2972echo "${ECHO_T}$CC" >&6
2973else
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
2976fi
2977
2978fi
2979if test -z "$ac_cv_prog_CC"; then
2980 ac_ct_CC=$CC
6a9cf61e 2981 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2982set dummy gcc; ac_word=$2
c6b750e1
DJ
2983echo "$as_me:$LINENO: checking for $ac_word" >&5
2984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CC="gcc"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002done
3003done
3004
3005fi
3006fi
3007ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008if test -n "$ac_ct_CC"; then
3009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010echo "${ECHO_T}$ac_ct_CC" >&6
3011else
3012 echo "$as_me:$LINENO: result: no" >&5
3013echo "${ECHO_T}no" >&6
3014fi
3015
3016 CC=$ac_ct_CC
3017else
3018 CC="$ac_cv_prog_CC"
3019fi
3020
3021if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3024set dummy ${ac_tool_prefix}cc; ac_word=$2
3025echo "$as_me:$LINENO: checking for $ac_word" >&5
3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027if test "${ac_cv_prog_CC+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3029else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032else
c6b750e1
DJ
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="${ac_tool_prefix}cc"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045done
3046
9e07f89d
NN
3047fi
3048fi
c6b750e1 3049CC=$ac_cv_prog_CC
9e07f89d 3050if test -n "$CC"; then
c6b750e1
DJ
3051 echo "$as_me:$LINENO: result: $CC" >&5
3052echo "${ECHO_T}$CC" >&6
9e07f89d 3053else
c6b750e1
DJ
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
9e07f89d
NN
3056fi
3057
c6b750e1
DJ
3058fi
3059if test -z "$ac_cv_prog_CC"; then
3060 ac_ct_CC=$CC
3061 # Extract the first word of "cc", so it can be a program name with args.
3062set dummy cc; ac_word=$2
3063echo "$as_me:$LINENO: checking for $ac_word" >&5
3064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="cc"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082done
3083done
3084
3085fi
3086fi
3087ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088if test -n "$ac_ct_CC"; then
3089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3090echo "${ECHO_T}$ac_ct_CC" >&6
3091else
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
3094fi
3095
3096 CC=$ac_ct_CC
3097else
3098 CC="$ac_cv_prog_CC"
3099fi
3100
3101fi
9e07f89d
NN
3102if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104set dummy cc; ac_word=$2
c6b750e1
DJ
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3109else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
9e07f89d 3113 ac_prog_rejected=no
c6b750e1
DJ
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3123 continue
3124 fi
3125 ac_cv_prog_CC="cc"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130done
3131
9e07f89d
NN
3132if test $ac_prog_rejected = yes; then
3133 # We found a bogon in the path, so make sure we never use it.
3134 set dummy $ac_cv_prog_CC
3135 shift
c6b750e1 3136 if test $# != 0; then
9e07f89d
NN
3137 # We chose a different compiler from the bogus one.
3138 # However, it has the same basename, so the bogon will be chosen
3139 # first if we set CC to just the basename; use the full file name.
3140 shift
c6b750e1 3141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3142 fi
3143fi
3144fi
3145fi
c6b750e1 3146CC=$ac_cv_prog_CC
9e07f89d 3147if test -n "$CC"; then
c6b750e1
DJ
3148 echo "$as_me:$LINENO: result: $CC" >&5
3149echo "${ECHO_T}$CC" >&6
9e07f89d 3150else
c6b750e1
DJ
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
9e07f89d
NN
3153fi
3154
c6b750e1
DJ
3155fi
3156if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 for ac_prog in cl
3159 do
3160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162echo "$as_me:$LINENO: checking for $ac_word" >&5
3163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164if test "${ac_cv_prog_CC+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3166else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
c6b750e1
DJ
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
376a0e54 3180 fi
c6b750e1
DJ
3181done
3182done
cac3d6c4 3183
c6b750e1
DJ
3184fi
3185fi
3186CC=$ac_cv_prog_CC
3187if test -n "$CC"; then
3188 echo "$as_me:$LINENO: result: $CC" >&5
3189echo "${ECHO_T}$CC" >&6
cac3d6c4 3190else
c6b750e1
DJ
3191 echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
9e07f89d 3193fi
cac3d6c4 3194
c6b750e1
DJ
3195 test -n "$CC" && break
3196 done
cac3d6c4 3197fi
c6b750e1
DJ
3198if test -z "$CC"; then
3199 ac_ct_CC=$CC
3200 for ac_prog in cl
3201do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203set dummy $ac_prog; ac_word=$2
3204echo "$as_me:$LINENO: checking for $ac_word" >&5
3205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3208else
c6b750e1
DJ
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3211else
c6b750e1
DJ
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_CC="$ac_prog"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223done
3224done
3225
cac3d6c4
CM
3226fi
3227fi
c6b750e1
DJ
3228ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229if test -n "$ac_ct_CC"; then
3230 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3231echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3232else
c6b750e1
DJ
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
cac3d6c4 3235fi
376a0e54 3236
c6b750e1
DJ
3237 test -n "$ac_ct_CC" && break
3238done
3239
3240 CC=$ac_ct_CC
3241fi
3242
3243fi
3244
3245
7a283e07
RW
3246test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
c6b750e1
DJ
3249See \`config.log' for more details." >&5
3250echo "$as_me: error: no acceptable C compiler found in \$PATH
3251See \`config.log' for more details." >&2;}
7a283e07 3252 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3253
3254# Provide some information about the compiler.
3255echo "$as_me:$LINENO:" \
3256 "checking for C compiler version" >&5
3257ac_compiler=`set X $ac_compile; echo $2`
3258{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3259 (eval $ac_compiler --version </dev/null >&5) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3264 (eval $ac_compiler -v </dev/null >&5) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3269 (eval $ac_compiler -V </dev/null >&5) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3273
3274cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
3289ac_clean_files_save=$ac_clean_files
3290ac_clean_files="$ac_clean_files a.out a.exe b.out"
3291# Try to create an executable without -o first, disregard a.out.
3292# It will help us diagnose broken compilers, and finding out an intuition
3293# of exeext.
3294echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3296ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3298 (eval $ac_link_default) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; then
3302 # Find the output, starting from the most likely. This scheme is
3303# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3304# resort.
3305
3306# Be careful to initialize this variable, since it used to be cached.
3307# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3308ac_cv_exeext=
3309# b.out is created by i960 compilers.
3310for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3311do
3312 test -f "$ac_file" || continue
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3315 ;;
3316 conftest.$ac_ext )
3317 # This is the source file.
3318 ;;
3319 [ab].out )
3320 # We found the default executable, but exeext='' is most
3321 # certainly right.
3322 break;;
3323 *.* )
3324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325 # FIXME: I believe we export ac_cv_exeext for Libtool,
3326 # but it would be cool to find out if it's true. Does anybody
3327 # maintain Libtool? --akim.
3328 export ac_cv_exeext
3329 break;;
3330 * )
3331 break;;
3332 esac
3333done
3334else
3335 echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
7a283e07
RW
3338{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3339echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3340{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3341See \`config.log' for more details." >&5
3342echo "$as_me: error: C compiler cannot create executables
3343See \`config.log' for more details." >&2;}
7a283e07 3344 { (exit 77); exit 77; }; }; }
c6b750e1
DJ
3345fi
3346
3347ac_exeext=$ac_cv_exeext
3348echo "$as_me:$LINENO: result: $ac_file" >&5
3349echo "${ECHO_T}$ac_file" >&6
3350
3351# Check the compiler produces executables we can run. If not, either
3352# the compiler is broken, or we cross compile.
3353echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3354echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3355# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3356# If not cross compiling, check that we can run a simple program.
3357if test "$cross_compiling" != yes; then
3358 if { ac_try='./$ac_file'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 cross_compiling=no
3365 else
3366 if test "$cross_compiling" = maybe; then
3367 cross_compiling=yes
3368 else
7a283e07
RW
3369 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3370echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
c6b750e1
DJ
3372If you meant to cross compile, use \`--host'.
3373See \`config.log' for more details." >&5
3374echo "$as_me: error: cannot run C compiled programs.
3375If you meant to cross compile, use \`--host'.
3376See \`config.log' for more details." >&2;}
7a283e07 3377 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3378 fi
3379 fi
3380fi
3381echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383
3384rm -f a.out a.exe conftest$ac_cv_exeext b.out
3385ac_clean_files=$ac_clean_files_save
3386# Check the compiler produces executables we can run. If not, either
3387# the compiler is broken, or we cross compile.
3388echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3389echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3390echo "$as_me:$LINENO: result: $cross_compiling" >&5
3391echo "${ECHO_T}$cross_compiling" >&6
3392
3393echo "$as_me:$LINENO: checking for suffix of executables" >&5
3394echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3396 (eval $ac_link) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; then
3400 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3401# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3402# work properly (i.e., refer to `conftest.exe'), while it won't with
3403# `rm'.
3404for ac_file in conftest.exe conftest conftest.*; do
3405 test -f "$ac_file" || continue
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3408 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 export ac_cv_exeext
3410 break;;
3411 * ) break;;
3412 esac
3413done
3414else
7a283e07
RW
3415 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3416echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
c6b750e1
DJ
3418See \`config.log' for more details." >&5
3419echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3420See \`config.log' for more details." >&2;}
7a283e07 3421 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3422fi
3423
3424rm -f conftest$ac_cv_exeext
3425echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3426echo "${ECHO_T}$ac_cv_exeext" >&6
3427
3428rm -f conftest.$ac_ext
3429EXEEXT=$ac_cv_exeext
3430ac_exeext=$EXEEXT
3431echo "$as_me:$LINENO: checking for suffix of object files" >&5
3432echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3433if test "${ac_cv_objext+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442
3443int
3444main ()
3445{
3446
3447 ;
3448 return 0;
3449}
3450_ACEOF
3451rm -f conftest.o conftest.obj
3452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; then
3457 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3461 break;;
3462 esac
3463done
cac3d6c4 3464else
c6b750e1
DJ
3465 echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
7a283e07
RW
3468{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3469echo "$as_me: error: in \`$ac_pwd':" >&2;}
c6b750e1
DJ
3470{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3471See \`config.log' for more details." >&5
3472echo "$as_me: error: cannot compute suffix of object files: cannot compile
3473See \`config.log' for more details." >&2;}
7a283e07 3474 { (exit 1); exit 1; }; }; }
c6b750e1
DJ
3475fi
3476
3477rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3480echo "${ECHO_T}$ac_cv_objext" >&6
3481OBJEXT=$ac_cv_objext
3482ac_objext=$OBJEXT
3483echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3484echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3485if test "${ac_cv_c_compiler_gnu+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h. */
3494
3495int
3496main ()
3497{
3498#ifndef __GNUC__
3499 choke me
3500#endif
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_compiler_gnu=yes
3529else
3530 echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533ac_compiler_gnu=no
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538fi
3539echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3540echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3541GCC=`test $ac_compiler_gnu = yes && echo yes`
3542ac_test_CFLAGS=${CFLAGS+set}
3543ac_save_CFLAGS=$CFLAGS
3544CFLAGS="-g"
3545echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3546echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3547if test "${ac_cv_prog_cc_g+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556
3557int
3558main ()
3559{
3560
3561 ;
3562 return 0;
3563}
3564_ACEOF
3565rm -f conftest.$ac_objext
3566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try='test -s conftest.$ac_objext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
9e07f89d
NN
3587 ac_cv_prog_cc_g=yes
3588else
c6b750e1
DJ
3589 echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3591
c6b750e1 3592ac_cv_prog_cc_g=no
376a0e54 3593fi
c6b750e1
DJ
3594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3597echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3598if test "$ac_test_CFLAGS" = set; then
c6b750e1 3599 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3600elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3605 fi
3606else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3611 fi
3612fi
c6b750e1
DJ
3613echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3614echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3615if test "${ac_cv_prog_cc_stdc+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
3618 ac_cv_prog_cc_stdc=no
3619ac_save_CC=$CC
3620cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h. */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h. */
3626#include <stdarg.h>
3627#include <stdio.h>
3628#include <sys/types.h>
3629#include <sys/stat.h>
3630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631struct buf { int x; };
3632FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633static char *e (p, i)
3634 char **p;
3635 int i;
3636{
3637 return p[i];
3638}
3639static char *f (char * (*g) (char **, int), char **p, ...)
3640{
3641 char *s;
3642 va_list v;
3643 va_start (v,p);
3644 s = g (p, va_arg (v,int));
3645 va_end (v);
3646 return s;
3647}
3648
3649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std1 is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std1. */
3656int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658int test (int i, double x);
3659struct s1 {int (*f) (int a);};
3660struct s2 {int (*f) (double a);};
3661int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662int argc;
3663char **argv;
3664int
3665main ()
3666{
3667return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672# Don't try gcc -ansi; that turns off useful extensions and
3673# breaks some systems' header files.
3674# AIX -qlanglvl=ansi
3675# Ultrix and OSF/1 -std1
3676# HP-UX 10.20 and later -Ae
3677# HP-UX older versions -Aa -D_HPUX_SOURCE
3678# SVR4 -Xc -D__EXTENSIONS__
3679for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680do
3681 CC="$ac_save_CC $ac_arg"
3682 rm -f conftest.$ac_objext
3683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_prog_cc_stdc=$ac_arg
3705break
3706else
3707 echo "$as_me: failed program was:" >&5
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
3710fi
3711rm -f conftest.err conftest.$ac_objext
3712done
3713rm -f conftest.$ac_ext conftest.$ac_objext
3714CC=$ac_save_CC
3715
3716fi
3717
3718case "x$ac_cv_prog_cc_stdc" in
3719 x|xno)
3720 echo "$as_me:$LINENO: result: none needed" >&5
3721echo "${ECHO_T}none needed" >&6 ;;
3722 *)
3723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3724echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3725 CC="$CC $ac_cv_prog_cc_stdc" ;;
3726esac
3727
3728# Some people use a C++ compiler to compile C. Since we use `exit',
3729# in C++ we need to declare it. In case someone uses the same compiler
3730# for both compiling C and C++ we need to have the C++ compiler decide
3731# the declaration of exit, since it's the most demanding environment.
3732cat >conftest.$ac_ext <<_ACEOF
3733#ifndef __cplusplus
3734 choke me
3735#endif
3736_ACEOF
3737rm -f conftest.$ac_objext
3738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3739 (eval $ac_compile) 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest.$ac_objext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 for ac_declaration in \
3760 '' \
3761 'extern "C" void std::exit (int) throw (); using std::exit;' \
3762 'extern "C" void std::exit (int); using std::exit;' \
3763 'extern "C" void exit (int) throw ();' \
3764 'extern "C" void exit (int);' \
3765 'void exit (int);'
3766do
3767 cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h. */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h. */
3773$ac_declaration
3774#include <stdlib.h>
3775int
3776main ()
3777{
3778exit (42);
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783rm -f conftest.$ac_objext
3784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 :
3806else
3807 echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810continue
3811fi
3812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h. */
3819$ac_declaration
3820int
3821main ()
3822{
3823exit (42);
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext
3829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 break
3851else
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855fi
3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857done
3858rm -f conftest*
3859if test -n "$ac_declaration"; then
3860 echo '#ifdef __cplusplus' >>confdefs.h
3861 echo $ac_declaration >>confdefs.h
3862 echo '#endif' >>confdefs.h
3863fi
3864
3865else
3866 echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869fi
3870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871ac_ext=c
3872ac_cpp='$CPP $CPPFLAGS'
3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3876
18f6b6ee
PB
3877ac_ext=cc
3878ac_cpp='$CXXCPP $CPPFLAGS'
3879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3882if test -n "$ac_tool_prefix"; then
3883 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3884 do
3885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3887echo "$as_me:$LINENO: checking for $ac_word" >&5
3888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889if test "${ac_cv_prog_CXX+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 if test -n "$CXX"; then
3893 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907done
512b7dfb 3908
18f6b6ee
PB
3909fi
3910fi
3911CXX=$ac_cv_prog_CXX
3912if test -n "$CXX"; then
3913 echo "$as_me:$LINENO: result: $CXX" >&5
3914echo "${ECHO_T}$CXX" >&6
3915else
3916 echo "$as_me:$LINENO: result: no" >&5
3917echo "${ECHO_T}no" >&6
3918fi
3919
3920 test -n "$CXX" && break
3921 done
3922fi
3923if test -z "$CXX"; then
3924 ac_ct_CXX=$CXX
3925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3926do
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928set dummy $ac_prog; ac_word=$2
3929echo "$as_me:$LINENO: checking for $ac_word" >&5
3930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 if test -n "$ac_ct_CXX"; then
3935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_ac_ct_CXX="$ac_prog"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
512b7dfb 3947 fi
18f6b6ee
PB
3948done
3949done
512b7dfb 3950
18f6b6ee
PB
3951fi
3952fi
3953ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3954if test -n "$ac_ct_CXX"; then
3955 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3956echo "${ECHO_T}$ac_ct_CXX" >&6
3957else
3958 echo "$as_me:$LINENO: result: no" >&5
3959echo "${ECHO_T}no" >&6
3960fi
3961
3962 test -n "$ac_ct_CXX" && break
3963done
3964test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3965
3966 CXX=$ac_ct_CXX
3967fi
3968
3969
3970# Provide some information about the compiler.
3971echo "$as_me:$LINENO:" \
3972 "checking for C++ compiler version" >&5
3973ac_compiler=`set X $ac_compile; echo $2`
3974{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3975 (eval $ac_compiler --version </dev/null >&5) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }
3979{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3980 (eval $ac_compiler -v </dev/null >&5) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }
3984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3985 (eval $ac_compiler -V </dev/null >&5) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
3989
3990echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3991echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3992if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995 cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
4001
4002int
4003main ()
4004{
4005#ifndef __GNUC__
4006 choke me
4007#endif
4008
4009 ;
4010 return 0;
4011}
4012_ACEOF
4013rm -f conftest.$ac_objext
4014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -z "$ac_cxx_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_compiler_gnu=yes
4036else
4037 echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040ac_compiler_gnu=no
4041fi
4042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4043ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4044
4045fi
4046echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4047echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4048GXX=`test $ac_compiler_gnu = yes && echo yes`
4049ac_test_CXXFLAGS=${CXXFLAGS+set}
4050ac_save_CXXFLAGS=$CXXFLAGS
4051CXXFLAGS="-g"
4052echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4053echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4054if test "${ac_cv_prog_cxx_g+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057 cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063
4064int
4065main ()
4066{
4067
4068 ;
4069 return 0;
4070}
4071_ACEOF
4072rm -f conftest.$ac_objext
4073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_cxx_werror_flag"
4082 || test ! -s conftest.err'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_cv_prog_cxx_g=yes
4095else
4096 echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099ac_cv_prog_cxx_g=no
4100fi
4101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102fi
4103echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4104echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4105if test "$ac_test_CXXFLAGS" = set; then
4106 CXXFLAGS=$ac_save_CXXFLAGS
4107elif test $ac_cv_prog_cxx_g = yes; then
4108 if test "$GXX" = yes; then
4109 CXXFLAGS="-g -O2"
4110 else
4111 CXXFLAGS="-g"
4112 fi
4113else
4114 if test "$GXX" = yes; then
4115 CXXFLAGS="-O2"
4116 else
4117 CXXFLAGS=
4118 fi
4119fi
4120for ac_declaration in \
4121 '' \
4122 'extern "C" void std::exit (int) throw (); using std::exit;' \
4123 'extern "C" void std::exit (int); using std::exit;' \
4124 'extern "C" void exit (int) throw ();' \
4125 'extern "C" void exit (int);' \
4126 'void exit (int);'
4127do
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134$ac_declaration
4135#include <stdlib.h>
4136int
4137main ()
4138{
4139exit (42);
4140 ;
4141 return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext
4145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_cxx_werror_flag"
4154 || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 :
4167else
4168 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171continue
4172fi
4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
4180$ac_declaration
4181int
4182main ()
4183{
4184exit (42);
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189rm -f conftest.$ac_objext
4190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_cxx_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 break
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216fi
4217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218done
4219rm -f conftest*
4220if test -n "$ac_declaration"; then
4221 echo '#ifdef __cplusplus' >>confdefs.h
4222 echo $ac_declaration >>confdefs.h
4223 echo '#endif' >>confdefs.h
4224fi
4225
4226ac_ext=c
4227ac_cpp='$CPP $CPPFLAGS'
4228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232
4233# We must set the default linker to the linker used by gcc for the correct
4234# operation of libtool. If LD is not defined and we are using gcc, try to
4235# set the LD default to the ld used by gcc.
4236if test -z "$LD"; then
4237 if test "$GCC" = yes; then
4238 case $build in
4239 *-*-mingw*)
4240 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4241 *)
4242 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4243 esac
4244 case $gcc_prog_ld in
4245 # Accept absolute paths.
4246 [\\/]* | [A-Za-z]:[\\/]*)
4247 LD="$gcc_prog_ld" ;;
4248 esac
4249 fi
512b7dfb
PB
4250fi
4251
4252
4253
4254
c6b750e1 4255if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4256 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4257set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4258echo "$as_me:$LINENO: checking for $ac_word" >&5
4259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4260if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4261 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4262else
512b7dfb
PB
4263 if test -n "$GNATBIND"; then
4264 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4265else
c6b750e1
DJ
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4273 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279
9e07f89d
NN
4280fi
4281fi
512b7dfb
PB
4282GNATBIND=$ac_cv_prog_GNATBIND
4283if test -n "$GNATBIND"; then
4284 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4285echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4286else
c6b750e1
DJ
4287 echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
9e07f89d
NN
4289fi
4290
c6b750e1 4291fi
512b7dfb
PB
4292if test -z "$ac_cv_prog_GNATBIND"; then
4293 ac_ct_GNATBIND=$GNATBIND
4294 # Extract the first word of "gnatbind", so it can be a program name with args.
4295set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4296echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4298if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4299 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4300else
512b7dfb
PB
4301 if test -n "$ac_ct_GNATBIND"; then
4302 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4303else
c6b750e1
DJ
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4311 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317
512b7dfb 4318 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4319fi
4320fi
512b7dfb
PB
4321ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4322if test -n "$ac_ct_GNATBIND"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4324echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4325else
c6b750e1
DJ
4326 echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
9e07f89d
NN
4328fi
4329
512b7dfb 4330 GNATBIND=$ac_ct_GNATBIND
24ff9987 4331else
512b7dfb 4332 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4333fi
4334
7df2cd5d 4335if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4336 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4337set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4338echo "$as_me:$LINENO: checking for $ac_word" >&5
4339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4340if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
512b7dfb
PB
4343 if test -n "$GNATMAKE"; then
4344 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4353 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358done
4359
4360fi
4361fi
512b7dfb
PB
4362GNATMAKE=$ac_cv_prog_GNATMAKE
4363if test -n "$GNATMAKE"; then
4364 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4365echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4366else
4367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369fi
4370
4371fi
512b7dfb
PB
4372if test -z "$ac_cv_prog_GNATMAKE"; then
4373 ac_ct_GNATMAKE=$GNATMAKE
4374 # Extract the first word of "gnatmake", so it can be a program name with args.
4375set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4376echo "$as_me:$LINENO: checking for $ac_word" >&5
4377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4378if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
512b7dfb
PB
4381 if test -n "$ac_ct_GNATMAKE"; then
4382 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4391 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395done
4396done
4397
512b7dfb 4398 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4399fi
4400fi
512b7dfb
PB
4401ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4402if test -n "$ac_ct_GNATMAKE"; then
4403 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4404echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4405else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409
512b7dfb 4410 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4411else
512b7dfb 4412 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4413fi
4414
c6b750e1
DJ
4415echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4416echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4417if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4419else
4420 cat >conftest.adb <<EOF
4421procedure conftest is begin null; end conftest;
4422EOF
4423acx_cv_cc_gcc_supports_ada=no
4424# There is a bug in old released versions of GCC which causes the
4425# driver to exit successfully when the appropriate language module
4426# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4427# Therefore we must check for the error message as well as an
4428# unsuccessful exit.
b8908782
DD
4429# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4430# given a .adb file, but produce no object file. So we must check
4431# if an object file was really produced to guard against this.
9e07f89d 4432errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4433if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4434 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4435fi
4436rm -f conftest.*
4437fi
c6b750e1
DJ
4438echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4439echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4440
512b7dfb 4441if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4442 have_gnat=yes
4443else
4444 have_gnat=no
4445fi
4446
c6b750e1
DJ
4447echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4448echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4449if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4451else
4452 echo abfoo >t1
4453 echo cdfoo >t2
4454 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4455 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4456 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4457 :
4458 else
4459 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4460 fi
4461 fi
b8908782
DD
4462 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4463 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4464 :
b8908782
DD
4465 else
4466 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4467 fi
4468 fi
4469 rm t1 t2
4470
4471fi
c6b750e1
DJ
4472echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4473echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4474do_compare="$gcc_cv_prog_cmp_skip"
4475
4476
9e07f89d 4477
11b04d1f 4478# Check for GMP and MPFR
4b900473 4479gmplibs="-lmpfr -lgmp"
4b1cb4fe 4480gmpinc=
4b900473
PB
4481have_gmp=no
4482
11b04d1f
DD
4483# Specify a location for mpfr
4484# check for this first so it ends up on the link line before gmp.
c6b750e1 4485
11b04d1f
DD
4486# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4487if test "${with_mpfr_dir+set}" = set; then
4488 withval="$with_mpfr_dir"
c6b750e1
DJ
4489 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4490Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4491echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4492Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4493 { (exit 1); exit 1; }; }
4494fi;
11b04d1f
DD
4495
4496
11b04d1f
DD
4497# Check whether --with-mpfr or --without-mpfr was given.
4498if test "${with_mpfr+set}" = set; then
4499 withval="$with_mpfr"
c6b750e1
DJ
4500
4501fi;
11b04d1f 4502
8a0d8a5c
PB
4503# Check whether --with-mpfr_include or --without-mpfr_include was given.
4504if test "${with_mpfr_include+set}" = set; then
4505 withval="$with_mpfr_include"
c6b750e1
DJ
4506
4507fi;
8a0d8a5c
PB
4508
4509# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4510if test "${with_mpfr_lib+set}" = set; then
4511 withval="$with_mpfr_lib"
8a0d8a5c 4512
c6b750e1 4513fi;
11b04d1f
DD
4514
4515if test "x$with_mpfr" != x; then
4516 gmplibs="-L$with_mpfr/lib $gmplibs"
4517 gmpinc="-I$with_mpfr/include"
4518fi
8a0d8a5c
PB
4519if test "x$with_mpfr_include" != x; then
4520 gmpinc="-I$with_mpfr_include"
4521fi
4522if test "x$with_mpfr_lib" != x; then
4523 gmplibs="-L$with_mpfr_lib $gmplibs"
4524fi
4b900473
PB
4525if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4526 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4527 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4528 # Do not test the mpfr version. Assume that it is sufficient, since
4529 # it is in the source tree, and the library has not been built yet
4530 # but it would be included on the link line in the version check below
4531 # hence making the test fail.
4532 have_gmp=yes
4533fi
11b04d1f 4534
4b1cb4fe 4535# Specify a location for gmp
c6b750e1 4536
4b1cb4fe
DD
4537# Check whether --with-gmp-dir or --without-gmp-dir was given.
4538if test "${with_gmp_dir+set}" = set; then
4539 withval="$with_gmp_dir"
c6b750e1
DJ
4540 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4541Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4542echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4543Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4544 { (exit 1); exit 1; }; }
4545fi;
4b1cb4fe
DD
4546
4547
4b1cb4fe
DD
4548# Check whether --with-gmp or --without-gmp was given.
4549if test "${with_gmp+set}" = set; then
4550 withval="$with_gmp"
c6b750e1
DJ
4551
4552fi;
4b1cb4fe 4553
8a0d8a5c
PB
4554# Check whether --with-gmp_include or --without-gmp_include was given.
4555if test "${with_gmp_include+set}" = set; then
4556 withval="$with_gmp_include"
c6b750e1
DJ
4557
4558fi;
8a0d8a5c
PB
4559
4560# Check whether --with-gmp_lib or --without-gmp_lib was given.
4561if test "${with_gmp_lib+set}" = set; then
4562 withval="$with_gmp_lib"
8a0d8a5c 4563
c6b750e1 4564fi;
8a0d8a5c 4565
4b1cb4fe 4566
11b04d1f
DD
4567if test "x$with_gmp" != x; then
4568 gmplibs="-L$with_gmp/lib $gmplibs"
4569 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4570fi
8a0d8a5c
PB
4571if test "x$with_gmp_include" != x; then
4572 gmpinc="-I$with_gmp_include $gmpinc"
4573fi
4574if test "x$with_gmp_lib" != x; then
4575 gmplibs="-L$with_gmp_lib $gmplibs"
4576fi
4b900473
PB
4577if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4578 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4579 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4580 # Do not test the gmp version. Assume that it is sufficient, since
4581 # it is in the source tree, and the library has not been built yet
4582 # but it would be included on the link line in the version check below
4583 # hence making the test fail.
4584 have_gmp=yes
4585fi
4b1cb4fe 4586
ceb92e78 4587if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4588 have_gmp=yes
4589 saved_CFLAGS="$CFLAGS"
4590 CFLAGS="$CFLAGS $gmpinc"
4591 # Check GMP actually works
c6b750e1
DJ
4592 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4593echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4594
4595cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4b1cb4fe 4601#include "gmp.h"
c6b750e1
DJ
4602int
4603main ()
4604{
4b1cb4fe 4605
4b900473
PB
4606 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4607 choke me
4608 #endif
c6b750e1
DJ
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 echo "$as_me:$LINENO: result: yes" >&5
4637echo "${ECHO_T}yes" >&6
4638else
4639 echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6; have_gmp=no
4644fi
4645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4646
4b900473
PB
4647 if test x"$have_gmp" = xyes; then
4648 saved_LIBS="$LIBS"
4649 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4650 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4651echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
9b134994 4658#include <gmp.h>
4b900473 4659 #include <mpfr.h>
c6b750e1
DJ
4660int
4661main ()
4662{
9b134994 4663
57c53b2b 4664 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4b900473
PB
4665 choke me
4666 #endif
a3ca38d2
DD
4667 mpfr_t n;
4668 mpfr_t x;
4b900473 4669 int t;
a3ca38d2
DD
4670 mpfr_init (n);
4671 mpfr_init (x);
4b900473
PB
4672 mpfr_atan2 (n, n, x, GMP_RNDN);
4673 mpfr_erfc (n, x, GMP_RNDN);
4674 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680rm -f conftest.$ac_objext conftest$ac_exeext
4681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest$ac_exeext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
4b1cb4fe 4708#include <gmp.h>
4b900473 4709 #include <mpfr.h>
c6b750e1
DJ
4710int
4711main ()
4712{
9dbaa842 4713
57c53b2b 4714 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4b900473
PB
4715 choke me
4716 #endif
4717 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
4723rm -f conftest.$ac_objext conftest$ac_exeext
4724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -z "$ac_c_werror_flag"
4733 || test ! -s conftest.err'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746echo "${ECHO_T}yes" >&6
4747else
4748 echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4752echo "${ECHO_T}buggy but acceptable" >&6
4753fi
4754rm -f conftest.err conftest.$ac_objext \
4755 conftest$ac_exeext conftest.$ac_ext
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6; have_gmp=no
4762fi
4763rm -f conftest.err conftest.$ac_objext \
4764 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4765 LIBS="$saved_LIBS"
4766 fi
4767 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4768
4b900473 4769 if test x$have_gmp != xyes; then
57c53b2b 4770 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
c6b750e1
DJ
4771Try the --with-gmp and/or --with-mpfr options to specify their locations.
4772Copies of these libraries' source code can be found at their respective
4773hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4774See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4775If you obtained GMP and/or MPFR from a vendor distribution package, make
4776sure that you have installed both the libraries and the header files.
4777They may be located in separate packages." >&5
57c53b2b 4778echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
9dbaa842
DD
4779Try the --with-gmp and/or --with-mpfr options to specify their locations.
4780Copies of these libraries' source code can be found at their respective
4781hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4782See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4783If you obtained GMP and/or MPFR from a vendor distribution package, make
4784sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4785They may be located in separate packages." >&2;}
4786 { (exit 1); exit 1; }; }
4b900473 4787 fi
9dbaa842
DD
4788fi
4789
11b04d1f 4790# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4791
4792
4793
947f426e 4794# By default, C is the only stage 1 language.
9b134994 4795stage1_languages=,c,
1d39f329 4796
9e07f89d
NN
4797# Figure out what language subdirectories are present.
4798# Look if the user specified --enable-languages="..."; if not, use
4799# the environment variable $LANGUAGES if defined. $LANGUAGES might
4800# go away some day.
4801# NB: embedded tabs in this IF block -- do not untabify
4802if test -d ${srcdir}/gcc; then
4803 if test x"${enable_languages+set}" != xset; then
4804 if test x"${LANGUAGES+set}" = xset; then
4805 enable_languages="${LANGUAGES}"
4806 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4807 else
4808 enable_languages=all
4809 fi
4810 else
4811 if test x"${enable_languages}" = x ||
4812 test x"${enable_languages}" = xyes;
4813 then
4814 echo configure.in: --enable-languages needs at least one language argument 1>&2
4815 exit 1
4816 fi
4817 fi
4818 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4819
096f7d00
DE
4820 # 'f95' is the old name for the 'fortran' language. We issue a warning
4821 # and make the substitution.
4822 case ,${enable_languages}, in
4823 *,f95,*)
4824 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4825 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4826 ;;
4827 esac
4828
9e07f89d
NN
4829 # First scan to see if an enabled language requires some other language.
4830 # We assume that a given config-lang.in will list all the language
4831 # front ends it requires, even if some are required indirectly.
4832 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4833 case ${lang_frag} in
4834 ..) ;;
4835 # The odd quoting in the next line works around
4836 # an apparent bug in bash 1.12 on linux.
4837 ${srcdir}/gcc/[*]/config-lang.in) ;;
4838 *)
4839 # From the config-lang.in, get $language, $lang_requires
4840 language=
4841 lang_requires=
4842 . ${lang_frag}
4843 for other in ${lang_requires} ; do
4844 case ,${enable_languages}, in
4845 *,$other,*) ;;
4846 *,all,*) ;;
4847 *,$language,*)
4848 echo " \`$other' language required by \`$language'; enabling" 1>&2
4849 enable_languages="${enable_languages},${other}"
4850 ;;
4851 esac
4852 done
4853 ;;
4854 esac
4855 done
4856
9b134994 4857 new_enable_languages=,c,
9e07f89d 4858 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4859 potential_languages=,c,
9e07f89d
NN
4860
4861 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4862 case ${lang_frag} in
4863 ..) ;;
4864 # The odd quoting in the next line works around
4865 # an apparent bug in bash 1.12 on linux.
4866 ${srcdir}/gcc/[*]/config-lang.in) ;;
4867 *)
c6b750e1 4868 # From the config-lang.in, get $language, $target_libs,
1d39f329 4869 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4870 language=
4871 target_libs=
4872 lang_dirs=
64ce424c 4873 subdir_requires=
9b134994
PB
4874 boot_language=no
4875 build_by_default=yes
9e07f89d 4876 . ${lang_frag}
9b134994
PB
4877 if test x${language} = x; then
4878 echo "${lang_frag} doesn't set \$language." 1>&2
4879 exit 1
4880 fi
4881
4882 case ,${enable_languages}, in
4883 *,${language},*)
9e07f89d
NN
4884 # Language was explicitly selected; include it.
4885 add_this_lang=yes
4886 ;;
9b134994
PB
4887 *,all,*)
4888 # 'all' was selected, select it if it is a default language
4889 add_this_lang=${build_by_default}
9e07f89d
NN
4890 ;;
4891 *)
4892 add_this_lang=no
4893 ;;
4894 esac
4b1cb4fe 4895
64ce424c 4896 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4897 for i in $subdir_requires; do
3d3adb43 4898 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4899 case ,${enable_languages}, in
4900 *,${language},*)
4901 # Specifically requested language; tell them.
c6b750e1
DJ
4902 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4903echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4904 { (exit 1); exit 1; }; }
64ce424c
PB
4905 ;;
4906 *)
4907 # Silently disable.
9b134994 4908 add_this_lang=unsupported
64ce424c
PB
4909 ;;
4910 esac
4911 done
4912
9b134994
PB
4913 # Disable Ada if no preexisting GNAT is available.
4914 case ,${enable_languages},:${language}:${have_gnat} in
4915 *,${language},*:ada:no)
4916 # Specifically requested language; tell them.
c6b750e1
DJ
4917 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4918echo "$as_me: error: GNAT is required to build $language" >&2;}
4919 { (exit 1); exit 1; }; }
9b134994
PB
4920 ;;
4921 *:ada:no)
4922 # Silently disable.
4923 add_this_lang=unsupported
4924 ;;
4925 esac
4926
59f7ec45
HPN
4927 # Disable a language that is unsupported by the target.
4928 case " $unsupported_languages " in
4929 *" $language "*)
9b134994 4930 add_this_lang=unsupported
59f7ec45
HPN
4931 ;;
4932 esac
4933
4b1cb4fe 4934 case $add_this_lang in
9b134994 4935 unsupported)
9e07f89d 4936 # Remove language-dependent dirs.
1d39f329
NN
4937 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4938 ;;
9b134994
PB
4939 no)
4940 # Remove language-dependent dirs; still show language as supported.
4941 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4942 potential_languages="${potential_languages}${language},"
4943 ;;
4944 yes)
4945 new_enable_languages="${new_enable_languages}${language},"
4946 potential_languages="${potential_languages}${language},"
1d39f329
NN
4947 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4948 case ${boot_language} in
4949 yes)
4fa63067 4950 # Add to (comma-separated) list of stage 1 languages.
9b134994 4951 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4952 ;;
4953 esac
4954 ;;
9e07f89d
NN
4955 esac
4956 ;;
4957 esac
4958 done
4959
9b134994
PB
4960 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4961if test "${enable_stage1_languages+set}" = set; then
4962 enableval="$enable_stage1_languages"
4963 case ,${enable_stage1_languages}, in
4964 ,no,|,,)
4965 # Set it to something that will have no effect in the loop below
4966 enable_stage1_languages=c ;;
4967 ,yes,)
4968 enable_stage1_languages=`echo $new_enable_languages | \
4969 sed -e "s/^,//" -e "s/,$//" ` ;;
4970 *,all,*)
4971 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4972 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4973 esac
4974
4975 # Add "good" languages from enable_stage1_languages to stage1_languages,
4976 # while "bad" languages go in missing_languages. Leave no duplicates.
4977 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4978 case $potential_languages in
4979 *,$i,*)
4980 case $stage1_languages in
4981 *,$i,*) ;;
4982 *) stage1_languages="$stage1_languages$i," ;;
4983 esac ;;
4984 *)
4985 case $missing_languages in
4986 *,$i,*) ;;
4987 *) missing_languages="$missing_languages$i," ;;
4988 esac ;;
4989 esac
4990 done
c6b750e1 4991fi;
9b134994
PB
4992
4993 # Remove leading/trailing commas that were added for simplicity
4994 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4995 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4996 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4997 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4998
9e07f89d 4999 if test "x$missing_languages" != x; then
c6b750e1 5000 { { echo "$as_me:$LINENO: error:
27258dd4 5001The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
5002Supported languages are: ${potential_languages}" >&5
5003echo "$as_me: error:
5004The following requested languages could not be built: ${missing_languages}
5005Supported languages are: ${potential_languages}" >&2;}
5006 { (exit 1); exit 1; }; }
9e07f89d 5007 fi
9e07f89d
NN
5008 if test "x$new_enable_languages" != "x$enable_languages"; then
5009 echo The following languages will be built: ${new_enable_languages}
9b134994 5010 enable_languages="$new_enable_languages"
9e07f89d 5011 fi
9b134994 5012
c6b750e1 5013
81ec575a 5014 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5015fi
5016
a6df5a19
PB
5017# Handle --disable-<component> generically.
5018for dir in $configdirs $build_configdirs $target_configdirs ; do
5019 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5020 varname=`echo $dirname | sed -e s/+/_/g`
5021 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5022 noconfigdirs="$noconfigdirs $dir"
5023 fi
5024done
5025
4f0ef2d8
CD
5026# Check for Boehm's garbage collector
5027# Check whether --enable-objc-gc or --disable-objc-gc was given.
5028if test "${enable_objc_gc+set}" = set; then
5029 enableval="$enable_objc_gc"
5030 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5031 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
5032 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5033echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5034 { (exit 1); exit 1; }; }
4f0ef2d8
CD
5035 ;;
5036esac
c6b750e1 5037fi;
4f0ef2d8
CD
5038
5039# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5040case ,${enable_languages},:${enable_objc_gc} in
5041 *,objc,*:yes)
4f0ef2d8
CD
5042 # Keep target-boehm-gc if requested for Objective-C.
5043 ;;
4f0ef2d8 5044 *)
d42c4017
DA
5045 # Otherwise remove target-boehm-gc depending on target-libjava.
5046 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5047 noconfigdirs="$noconfigdirs target-boehm-gc"
5048 fi
4f0ef2d8
CD
5049 ;;
5050esac
5051
caeba88f
AL
5052# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5053# $build_configdirs and $target_configdirs.
9e07f89d
NN
5054# If we have the source for $noconfigdirs entries, add them to $notsupp.
5055
5056notsupp=""
5057for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5058 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5059 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5060 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5061 if test -r $srcdir/$dirname/configure ; then
5062 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5063 true
5064 else
5065 notsupp="$notsupp $dir"
5066 fi
5067 fi
5068 fi
caeba88f
AL
5069 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5070 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5071 if test -r $srcdir/$dirname/configure ; then
5072 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5073 true
5074 else
5075 notsupp="$notsupp $dir"
5076 fi
5077 fi
5078 fi
9e07f89d
NN
5079 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5080 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5081 if test -r $srcdir/$dirname/configure ; then
5082 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5083 true
5084 else
5085 notsupp="$notsupp $dir"
5086 fi
5087 fi
5088 fi
5089done
5090
5091# Sometimes the tools are distributed with libiberty but with no other
5092# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5093# Don't let libgcc imply libiberty either.
9e07f89d 5094if test -n "${target_configdirs}" ; then
f86e35b8 5095 libgcc=
9e07f89d
NN
5096 others=
5097 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5098 if test "$i" = "libgcc"; then
5099 libgcc=target-libgcc
5100 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5101 if test -r $srcdir/$i/configure ; then
5102 others=yes;
5103 break;
5104 fi
5105 fi
5106 done
5107 if test -z "${others}" ; then
f86e35b8 5108 target_configdirs=$libgcc
9e07f89d
NN
5109 fi
5110fi
5111
5112# Quietly strip out all directories which aren't configurable in this tree.
5113# This relies on all configurable subdirectories being autoconfiscated, which
5114# is now the case.
6a9cf61e
PB
5115build_configdirs_all="$build_configdirs"
5116build_configdirs=
5117for i in ${build_configdirs_all} ; do
c6b750e1 5118 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5119 if test -f ${srcdir}/$j/configure ; then
5120 build_configdirs="${build_configdirs} $i"
5121 fi
5122done
5123
9e07f89d
NN
5124configdirs_all="$configdirs"
5125configdirs=
5126for i in ${configdirs_all} ; do
5127 if test -f ${srcdir}/$i/configure ; then
5128 configdirs="${configdirs} $i"
5129 fi
5130done
6a9cf61e 5131
9e07f89d
NN
5132target_configdirs_all="$target_configdirs"
5133target_configdirs=
5134for i in ${target_configdirs_all} ; do
c6b750e1 5135 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5136 if test -f ${srcdir}/$j/configure ; then
5137 target_configdirs="${target_configdirs} $i"
5138 fi
5139done
5140
5141# Produce a warning message for the subdirs we can't configure.
5142# This isn't especially interesting in the Cygnus tree, but in the individual
5143# FSF releases, it's important to let people know when their machine isn't
5144# supported by the one or two programs in a package.
5145
5146if test -n "${notsupp}" && test -z "${norecursion}" ; then
5147 # If $appdirs is non-empty, at least one of those directories must still
5148 # be configured, or we error out. (E.g., if the gas release supports a
5149 # specified target in some subdirs but not the gas subdir, we shouldn't
5150 # pretend that all is well.)
5151 if test -n "$appdirs" ; then
5152 for dir in $appdirs ; do
5153 if test -r $dir/Makefile.in ; then
5154 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5155 appdirs=""
5156 break
5157 fi
6a9cf61e 5158 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5159 appdirs=""
5160 break
5161 fi
5162 fi
5163 done
5164 if test -n "$appdirs" ; then
5165 echo "*** This configuration is not supported by this package." 1>&2
5166 exit 1
5167 fi
5168 fi
5169 # Okay, some application will build, or we don't care to check. Still
5170 # notify of subdirs not getting built.
5171 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5172 echo " ${notsupp}" 1>&2
5173 echo " (Any other directories should still work fine.)" 1>&2
5174fi
5175
5176case "$host" in
5177 *msdosdjgpp*)
5178 enable_gdbtk=no ;;
5179esac
5180
18f6b6ee
PB
5181# To find our prefix, in gcc_cv_tool_prefix.
5182
5183# The user is always right.
5184if test "${PATH_SEPARATOR+set}" != set; then
5185 echo "#! /bin/sh" >conf$$.sh
5186 echo "exit 0" >>conf$$.sh
5187 chmod +x conf$$.sh
5188 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5189 PATH_SEPARATOR=';'
5190 else
5191 PATH_SEPARATOR=:
5192 fi
5193 rm -f conf$$.sh
5194fi
5195
5196
5197
5198if test "x$exec_prefix" = xNONE; then
5199 if test "x$prefix" = xNONE; then
5200 gcc_cv_tool_prefix=$ac_default_prefix
5201 else
5202 gcc_cv_tool_prefix=$prefix
5203 fi
5204else
5205 gcc_cv_tool_prefix=$exec_prefix
5206fi
5207
5208# If there is no compiler in the tree, use the PATH only. In any
5209# case, if there is no compiler in the tree nobody should use
5210# AS_FOR_TARGET and LD_FOR_TARGET.
5211if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5212 gcc_version=`cat $srcdir/gcc/BASE-VER`
5213 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5214 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5219else
5220 gcc_cv_tool_dirs=
5221fi
5222
5223if test x$build = x$target && test -n "$md_exec_prefix"; then
5224 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5225fi
5226
5227
5228
9e07f89d
NN
5229copy_dirs=
5230
c6b750e1 5231
a19b6204
MM
5232# Check whether --with-build-sysroot or --without-build-sysroot was given.
5233if test "${with_build_sysroot+set}" = set; then
5234 withval="$with_build_sysroot"
5235 if test x"$withval" != x ; then
5236 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5237 fi
5238else
5239 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5240fi;
a19b6204
MM
5241
5242
8a6ee3ab
JM
5243
5244# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5245if test "${with_debug_prefix_map+set}" = set; then
5246 withval="$with_debug_prefix_map"
5247 if test x"$withval" != x; then
5248 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5249 for debug_map in $withval; do
5250 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5251 done
5252 fi
5253else
5254 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5255fi;
5256
5257
7f6ef0c0
PB
5258# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5259# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5260# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5261# We want to ensure that TARGET libraries (which we know are built with
5262# gcc) are built with "-O2 -g", so include those options when setting
5263# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5264if test "x$CFLAGS_FOR_TARGET" = x; then
5265 CFLAGS_FOR_TARGET=$CFLAGS
5266 case " $CFLAGS " in
5267 *" -O2 "*) ;;
5268 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5269 esac
5270 case " $CFLAGS " in
5271 *" -g "* | *" -g3 "*) ;;
5272 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5273 esac
5274fi
5275
5276
5277if test "x$CXXFLAGS_FOR_TARGET" = x; then
5278 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5279 case " $CXXFLAGS " in
5280 *" -O2 "*) ;;
5281 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5282 esac
5283 case " $CXXFLAGS " in
5284 *" -g "* | *" -g3 "*) ;;
5285 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5286 esac
5287fi
5288
5289
9e07f89d
NN
5290# Handle --with-headers=XXX. If the value is not "yes", the contents of
5291# the named directory are copied to $(tooldir)/sys-include.
5292if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5293 if test x${is_cross_compiler} = xno ; then
5294 echo 1>&2 '***' --with-headers is only supported when cross compiling
5295 exit 1
5296 fi
5297 if test x"${with_headers}" != xyes ; then
18f6b6ee 5298 x=${gcc_cv_tool_prefix}
c6b750e1 5299 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5300 fi
5301fi
5302
5303# Handle --with-libs=XXX. If the value is not "yes", the contents of
5304# the name directories are copied to $(tooldir)/lib. Multiple directories
5305# are permitted.
5306if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5307 if test x${is_cross_compiler} = xno ; then
5308 echo 1>&2 '***' --with-libs is only supported when cross compiling
5309 exit 1
5310 fi
5311 if test x"${with_libs}" != xyes ; then
5312 # Copy the libraries in reverse order, so that files in the first named
5313 # library override files in subsequent libraries.
18f6b6ee 5314 x=${gcc_cv_tool_prefix}
9e07f89d 5315 for l in ${with_libs}; do
c6b750e1 5316 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5317 done
5318 fi
5319fi
5320
2429c060
PB
5321# Set with_gnu_as and with_gnu_ld as appropriate.
5322#
5323# This is done by determining whether or not the appropriate directory
5324# is available, and by checking whether or not specific configurations
5325# have requested that this magic not happen.
c6b750e1
DJ
5326#
5327# The command line options always override the explicit settings in
2429c060
PB
5328# configure.in, and the settings in configure.in override this magic.
5329#
c6b750e1 5330# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5331# want to do that, then you should use the --without-gnu-as and
5332# --without-gnu-ld options for the configure script.
5333
5334if test x${use_gnu_as} = x &&
5335 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5336 with_gnu_as=yes
5337 extra_host_args="$extra_host_args --with-gnu-as"
5338fi
5339
5340if test x${use_gnu_ld} = x &&
93f9b408 5341 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
5342 with_gnu_ld=yes
5343 extra_host_args="$extra_host_args --with-gnu-ld"
5344fi
5345
5346# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5347# can detect this case.
5348
5349if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5350 with_newlib=yes
5351 extra_host_args="$extra_host_args --with-newlib"
5352fi
5353
9e07f89d
NN
5354# Handle ${copy_dirs}
5355set fnord ${copy_dirs}
5356shift
5357while test $# != 0 ; do
5358 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5359 :
5360 else
5361 echo Copying $1 to $2
5362
5363 # Use the install script to create the directory and all required
5364 # parent directories.
5365 if test -d $2 ; then
5366 :
5367 else
5368 echo >config.temp
5369 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5370 fi
5371
5372 # Copy the directory, assuming we have tar.
5373 # FIXME: Should we use B in the second tar? Not all systems support it.
5374 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5375
5376 # It is the responsibility of the user to correctly adjust all
5377 # symlinks. If somebody can figure out how to handle them correctly
5378 # here, feel free to add the code.
5379
5380 echo $1 > $2/COPIED
5381 fi
5382 shift; shift
5383done
5384
2429c060
PB
5385# Determine a target-dependent exec_prefix that the installed
5386# gcc will search in. Keep this list sorted by triplet, with
5387# the *-*-osname triplets last.
5388md_exec_prefix=
5389case "${target}" in
5390 alpha*-*-*vms*)
5391 md_exec_prefix=/gnu/lib/gcc-lib
5392 ;;
521ec477 5393 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5394 md_exec_prefix=/dev/env/DJDIR/bin
5395 ;;
521ec477 5396 i[34567]86-*-sco3.2v5*)
2429c060
PB
5397 if test $with_gnu_as = yes; then
5398 md_exec_prefix=/usr/gnu/bin
5399 else
5400 md_exec_prefix=/usr/ccs/bin/elf
5401 fi
5402 ;;
5403
5404 mn10300-*-* | \
5405 powerpc-*-chorusos* | \
5406 powerpc*-*-eabi* | \
5407 powerpc*-*-sysv* | \
5408 powerpc*-*-kaos* | \
5409 s390x-ibm-tpf*)
5410 md_exec_prefix=/usr/ccs/bin
5411 ;;
5412 sparc64-*-elf*)
5413 ;;
5414 v850*-*-*)
5415 md_exec_prefix=/usr/ccs/bin
5416 ;;
8b66833e 5417 xtensa*-*-elf*)
2429c060
PB
5418 ;;
5419
5420 *-*-beos* | \
5421 *-*-elf* | \
5422 *-*-hpux* | \
5423 *-*-netware* | \
5424 *-*-nto-qnx* | \
5425 *-*-rtems* | \
5426 *-*-solaris2* | \
521ec477 5427 *-*-sysv[45]* | \
2429c060
PB
5428 *-*-vxworks* | \
5429 *-wrs-windiss)
5430 md_exec_prefix=/usr/ccs/bin
5431 ;;
5432esac
5433
a0da8069
NN
5434extra_arflags_for_target=
5435extra_nmflags_for_target=
5436extra_ranlibflags_for_target=
5437target_makefile_frag=/dev/null
5438case "${target}" in
4e206d7e
DB
5439 mep*-*-*)
5440 target_makefile_frag="config/mt-mep"
5441 ;;
77d7106f
AM
5442 spu-*-*)
5443 target_makefile_frag="config/mt-spu"
5444 ;;
429acdec
RS
5445 mips*-sde-elf*)
5446 target_makefile_frag="config/mt-sde"
5447 ;;
f3b1e08e
RS
5448 mipsisa*-*-elfoabi*)
5449 target_makefile_frag="config/mt-mips-elfoabi"
5450 ;;
2a3124ca 5451 *-*-netware*)
a0da8069
NN
5452 target_makefile_frag="config/mt-netware"
5453 ;;
3d6dfe0f
NN
5454 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5455 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5456 ;;
5457 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5458 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5459 # commands to handle both 32-bit and 64-bit objects. These flags are
5460 # harmless if we're using GNU nm or ar.
5461 extra_arflags_for_target=" -X32_64"
5462 extra_nmflags_for_target=" -B -X32_64"
5463 ;;
5464 *-*-darwin*)
5465 # ranlib from Darwin requires the -c flag to look at common symbols.
5466 extra_ranlibflags_for_target=" -c"
5467 ;;
5468 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5469 target_makefile_frag="config/mt-wince"
5470 ;;
5471esac
5472
5473alphaieee_frag=/dev/null
5474case $target in
5475 alpha*-*-*)
5476 # This just makes sure to use the -mieee option to build target libs.
5477 # This should probably be set individually by each library.
5478 alphaieee_frag="config/mt-alphaieee"
5479 ;;
5480esac
5481
5482# If --enable-target-optspace always use -Os instead of -O2 to build
5483# the target libraries, similarly if it is not specified, use -Os
5484# on selected platforms.
5485ospace_frag=/dev/null
5486case "${enable_target_optspace}:${target}" in
5487 yes:*)
5488 ospace_frag="config/mt-ospace"
5489 ;;
5490 :d30v-*)
5491 ospace_frag="config/mt-d30v"
5492 ;;
5493 :m32r-* | :d10v-* | :fr30-*)
5494 ospace_frag="config/mt-ospace"
5495 ;;
5496 no:* | :*)
5497 ;;
5498 *)
5499 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5500 ;;
5501esac
5502
a0da8069
NN
5503# Default to using --with-stabs for certain targets.
5504if test x${with_stabs} = x ; then
5505 case "${target}" in
e31d1ea3 5506 mips*-*-irix[56]*)
a0da8069
NN
5507 ;;
5508 mips*-*-* | alpha*-*-osf*)
5509 with_stabs=yes;
5510 extra_host_args="${extra_host_args} --with-stabs"
5511 ;;
5512 esac
5513fi
5514
5515# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5516# them automatically.
5517case "${host}" in
c6b750e1 5518 hppa*64*-*-hpux11*)
a0da8069
NN
5519 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5520 ;;
5521esac
5522
a0da8069
NN
5523# Some systems (e.g., one of the i386-aix systems the gas testers are
5524# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5525tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5526build_tooldir=${tooldir}
5527
a0da8069
NN
5528# Create a .gdbinit file which runs the one in srcdir
5529# and tells GDB to look there for source files.
5530
5531if test -r ${srcdir}/.gdbinit ; then
5532 case ${srcdir} in
5533 .) ;;
5534 *) cat > ./.gdbinit <<EOF
5535# ${NO_EDIT}
5536dir ${srcdir}
5537dir .
5538source ${srcdir}/.gdbinit
5539EOF
5540 ;;
5541 esac
5542fi
5543
a0da8069
NN
5544# Make sure that the compiler is able to generate an executable. If it
5545# can't, we are probably in trouble. We don't care whether we can run the
5546# executable--we might be using a cross compiler--we only care whether it
5547# can be created. At this point the main configure script has set CC.
5548we_are_ok=no
5549echo "int main () { return 0; }" > conftest.c
5550${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5551if test $? = 0 ; then
5552 if test -s conftest || test -s conftest.exe ; then
5553 we_are_ok=yes
5554 fi
c6b750e1 5555fi
a0da8069
NN
5556case $we_are_ok in
5557 no)
5558 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5559 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5560 rm -f conftest*
5561 exit 1
5562 ;;
5563esac
5564rm -f conftest*
5565
5566# The Solaris /usr/ucb/cc compiler does not appear to work.
5567case "${host}" in
5568 sparc-sun-solaris2*)
5569 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5570 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5571 could_use=
5572 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5573 if test -d /opt/cygnus/bin ; then
5574 if test "$could_use" = "" ; then
5575 could_use="/opt/cygnus/bin"
5576 else
5577 could_use="$could_use or /opt/cygnus/bin"
5578 fi
5579 fi
5580 if test "$could_use" = "" ; then
5581 echo "Warning: compilation may fail because you're using"
5582 echo "/usr/ucb/cc. You should change your PATH or CC "
5583 echo "variable and rerun configure."
5584 else
5585 echo "Warning: compilation may fail because you're using"
5586 echo "/usr/ucb/cc, when you should use the C compiler from"
5587 echo "$could_use. You should change your"
5588 echo "PATH or CC variable and rerun configure."
5589 fi
5590 fi
5591 ;;
5592esac
5593
a0da8069
NN
5594case "${host}" in
5595 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5596 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5597 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5598esac
5599
5600# Record target_configdirs and the configure arguments for target and
5601# build configuration in Makefile.
5602target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5603build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5604
a0da8069
NN
5605# Determine whether gdb needs tk/tcl or not.
5606# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5607# and in that case we want gdb to be built without tk. Ugh!
5608# In fact I believe gdb is the *only* package directly dependent on tk,
5609# so we should be able to put the 'maybe's in unconditionally and
5610# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5611# 100% sure that that's safe though.
c180f501 5612
675c6968 5613gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5614case "$enable_gdbtk" in
5615 no)
5616 GDB_TK="" ;;
c180f501
AC
5617 yes)
5618 GDB_TK="${gdb_tk}" ;;
a0da8069 5619 *)
c180f501
AC
5620 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5621 # distro. Eventually someone will fix this and move Insight, nee
5622 # gdbtk to a separate directory.
5623 if test -d ${srcdir}/gdb/gdbtk ; then
5624 GDB_TK="${gdb_tk}"
5625 else
5626 GDB_TK=""
5627 fi
5628 ;;
a0da8069 5629esac
907be67c
DJ
5630CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5631INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5632
6bd3dfaa 5633# Strip out unwanted targets.
dd12c3a8
NN
5634
5635# While at that, we remove Makefiles if we were started for recursive
5636# configuration, so that the top-level Makefile reconfigures them,
5637# like we used to do when configure itself was recursive.
dd12c3a8 5638
6bd3dfaa
PB
5639# Loop over modules. $extrasub must be used with care, limiting as
5640# much as possible the usage of range addresses. That's because autoconf
5641# splits the sed script to overcome limits in the number of commands,
5642# and relying on carefully-timed sed passes may turn out to be very hard
5643# to maintain later. In this particular case, you just have to be careful
5644# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5645
319cab08
PB
5646# Check whether --enable-bootstrap or --disable-bootstrap was given.
5647if test "${enable_bootstrap+set}" = set; then
5648 enableval="$enable_bootstrap"
c6b750e1 5649
319cab08 5650else
9cb3fa6f 5651 enable_bootstrap=default
c6b750e1 5652fi;
319cab08 5653
9cb3fa6f
PB
5654# Issue errors and warnings for invalid/strange bootstrap combinations.
5655case "$configdirs" in
5656 *gcc*) have_compiler=yes ;;
5657 *) have_compiler=no ;;
5658esac
5659
5660case "$have_compiler:$host:$target:$enable_bootstrap" in
5661 *:*:*:no) ;;
5662
0aed8855 5663 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5664 # and we are in a native configuration.
5665 yes:$build:$build:default)
0aed8855 5666 enable_bootstrap=yes ;;
9cb3fa6f
PB
5667
5668 *:*:*:default)
5669 enable_bootstrap=no ;;
5670
5671 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5672 yes:$build:$build:yes)
9cb3fa6f
PB
5673 ;;
5674
5675 # Other configurations, but we have a compiler. Assume the user knows
5676 # what he's doing.
80911fe1 5677 yes:*:*:yes)
c6b750e1
DJ
5678 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5679echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5680 ;;
5681
5682 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5683 no:*:*:yes)
c6b750e1
DJ
5684 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5685echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5686 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5687
5688 # Fail if wrong command line
5689 *)
c6b750e1
DJ
5690 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5691echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5692 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5693 ;;
5694esac
5695
5696# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5697case "$enable_bootstrap" in
5698 yes)
498d4a71 5699 bootstrap_suffix=bootstrap ;;
319cab08 5700 no)
498d4a71 5701 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5702esac
5703
6a9cf61e 5704for module in ${build_configdirs} ; do
498d4a71
CF
5705 if test -z "${no_recursion}" \
5706 && test -f ${build_subdir}/${module}/Makefile; then
5707 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5708 rm -f ${build_subdir}/${module}/Makefile
5709 fi
5710 extrasub="$extrasub
5711/^@if build-$module\$/d
5712/^@endif build-$module\$/d
5713/^@if build-$module-$bootstrap_suffix\$/d
5714/^@endif build-$module-$bootstrap_suffix\$/d"
5715done
5716for module in ${configdirs} ; do
80911fe1 5717 if test -z "${no_recursion}"; then
8cf39b1b 5718 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5719 if test -f ${file}; then
5720 echo 1>&2 "*** removing ${file} to force reconfigure"
5721 rm -f ${file}
5722 fi
5723 done
498d4a71
CF
5724 fi
5725 extrasub="$extrasub
5726/^@if $module\$/d
5727/^@endif $module\$/d
5728/^@if $module-$bootstrap_suffix\$/d
5729/^@endif $module-$bootstrap_suffix\$/d"
5730done
5731for module in ${target_configdirs} ; do
5732 if test -z "${no_recursion}" \
5733 && test -f ${target_subdir}/${module}/Makefile; then
5734 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5735 rm -f ${target_subdir}/${module}/Makefile
5736 fi
5737 extrasub="$extrasub
5738/^@if target-$module\$/d
5739/^@endif target-$module\$/d
5740/^@if target-$module-$bootstrap_suffix\$/d
5741/^@endif target-$module-$bootstrap_suffix\$/d"
5742done
5743
6bd3dfaa
PB
5744extrasub="$extrasub
5745/^@if /,/^@endif /d"
a0da8069
NN
5746
5747# Create the serialization dependencies. This uses a temporary file.
5748
e6bfb94a
AO
5749# Check whether --enable-serial-configure or --disable-serial-configure was given.
5750if test "${enable_serial_configure+set}" = set; then
5751 enableval="$enable_serial_configure"
e6bfb94a 5752
c6b750e1 5753fi;
e6bfb94a 5754
1047cb91
DD
5755case ${enable_serial_configure} in
5756 yes)
5757 enable_serial_build_configure=yes
5758 enable_serial_host_configure=yes
5759 enable_serial_target_configure=yes
5760 ;;
5761esac
5762
a0da8069
NN
5763# These force 'configure's to be done one at a time, to avoid problems
5764# with contention over a shared config.cache.
5765rm -f serdep.tmp
e6bfb94a 5766echo '# serdep.tmp' > serdep.tmp
a0da8069 5767olditem=
1047cb91 5768test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5769for item in ${build_configdirs} ; do
5770 case ${olditem} in
5771 "") ;;
e6bfb94a 5772 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5773 esac
5774 olditem=${item}
5775done
5776olditem=
1047cb91 5777test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5778for item in ${configdirs} ; do
5779 case ${olditem} in
5780 "") ;;
e6bfb94a 5781 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5782 esac
5783 olditem=${item}
5784done
5785olditem=
1047cb91 5786test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5787for item in ${target_configdirs} ; do
5788 case ${olditem} in
5789 "") ;;
e6bfb94a 5790 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5791 esac
5792 olditem=${item}
5793done
5794serialization_dependencies=serdep.tmp
5795
5796
e6bfb94a 5797# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5798# target, nonopt, and variable assignments. These are the ones we
5799# might not want to pass down to subconfigures. Also strip
5800# program-prefix, program-suffix, and program-transform-name, so that
5801# we can pass down a consistent program-transform-name.
5802baseargs=
5803keep_next=no
5804skip_next=no
5805eval "set -- $ac_configure_args"
18f6b6ee
PB
5806for ac_arg
5807do
c6b750e1
DJ
5808 if test X"$skip_next" = X"yes"; then
5809 skip_next=no
5810 continue
5811 fi
5812 if test X"$keep_next" = X"yes"; then
5813 case $ac_arg in
5814 *\'*)
5815 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5816 esac
5817 baseargs="$baseargs '$ac_arg'"
5818 keep_next=no
5819 continue
5820 fi
5821
5822 # Handle separated arguments. Based on the logic generated by
5823 # autoconf 2.59.
5824 case $ac_arg in
5825 *=* | --config-cache | -C | -disable-* | --disable-* \
5826 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5827 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5828 | -with-* | --with-* | -without-* | --without-* | --x)
5829 separate_arg=no
5830 ;;
5831 -*)
5832 separate_arg=yes
5833 ;;
5834 *)
5835 separate_arg=no
5836 ;;
5837 esac
5838
5839 case "$ac_arg" in
5840 --no*)
5841 continue
5842 ;;
5843 --c* | \
5844 --sr* | \
5845 --ho* | \
5846 --bu* | \
5847 --t* | \
5848 --program-* | \
5849 -cache_file* | \
5850 -srcdir* | \
5851 -host* | \
5852 -build* | \
5853 -target* | \
5854 -program-prefix* | \
5855 -program-suffix* | \
5856 -program-transform-name* )
5857 skip_next=$separate_arg
5858 continue
5859 ;;
5860 -*)
5861 # An option. Add it.
5862 case $ac_arg in
5863 *\'*)
5864 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5865 esac
5866 baseargs="$baseargs '$ac_arg'"
5867 keep_next=$separate_arg
5868 ;;
5869 *)
5870 # Either a variable assignment, or a nonopt (triplet). Don't
5871 # pass it down; let the Makefile handle this.
5872 continue
5873 ;;
5874 esac
5875done
5876# Remove the initial space we just introduced and, as these will be
5877# expanded by make, quote '$'.
5878baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5879
f27d4f92
DJ
5880# Add in --program-transform-name, after --program-prefix and
5881# --program-suffix have been applied to it. Autoconf has already
5882# doubled dollar signs and backslashes in program_transform_name; we want
5883# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5884# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5885# Also, because we want to override the logic in subdir configure scripts to
5886# choose program_transform_name, replace any s,x,x, with s,y,y,.
5887sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5888${program_transform_name}
5889EOF_SED
5890gcc_transform_name=`cat conftestsed.out`
5891rm -f conftestsed.out
5892baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5893if test "$silent" = yes; then
5894 baseargs="$baseargs --silent"
5895fi
f27d4f92 5896
a0da8069
NN
5897# For the build-side libraries, we just need to pretend we're native,
5898# and not use the same cache file. Multilibs are neither needed nor
5899# desired.
4b900473 5900build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5901
5902# For host modules, accept cache file option, or specification as blank.
5903case "${cache_file}" in
5904"") # empty
5905 cache_file_option="" ;;
5906/* | [A-Za-z]:[\\/]* ) # absolute path
5907 cache_file_option="--cache-file=${cache_file}" ;;
5908*) # relative path
5909 cache_file_option="--cache-file=../${cache_file}" ;;
5910esac
5911
82252c06
NN
5912# Host dirs don't like to share a cache file either, horribly enough.
5913# This seems to be due to autoconf 2.5x stupidity.
4b900473 5914host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5915
5916target_configargs=${baseargs}
5917
5918# Passing a --with-cross-host argument lets the target libraries know
5919# whether they are being built with a cross-compiler or being built
5920# native. However, it would be better to use other mechanisms to make the
5921# sorts of decisions they want to make on this basis. Please consider
5922# this option to be deprecated. FIXME.
5923if test x${is_cross_compiler} = xyes ; then
c6b750e1 5924 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5925fi
5926
5927# Default to --enable-multilib.
5928if test x${enable_multilib} = x ; then
5929 target_configargs="--enable-multilib ${target_configargs}"
5930fi
5931
5932# Pass --with-newlib if appropriate. Note that target_configdirs has
5933# changed from the earlier setting of with_newlib.
5934if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5935 target_configargs="--with-newlib ${target_configargs}"
5936fi
5937
95036d20
NN
5938# Different target subdirs use different values of certain variables
5939# (notably CXX). Worse, multilibs use *lots* of different values.
5940# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5941# it doesn't automatically accept command-line overrides of them.
5942# This means it's not safe for target subdirs to share a cache file,
5943# which is disgusting, but there you have it. Hopefully this can be
5944# fixed in future. It's still worthwhile to use a cache file for each
5945# directory. I think.
5946
ae380b45
MS
5947# Pass the appropriate --build, --host, --target and --cache-file arguments.
5948# We need to pass --target, as newer autoconf's requires consistency
5949# for target_alias and gcc doesn't manage it consistently.
4b900473 5950target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5951
a0da8069
NN
5952FLAGS_FOR_TARGET=
5953case " $target_configdirs " in
5954 *" newlib "*)
5955 case " $target_configargs " in
5956 *" --with-newlib "*)
5957 case "$target" in
5958 *-cygwin*)
564b43e5 5959 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' ;;
a0da8069
NN
5960 esac
5961
5962 # If we're not building GCC, don't discard standard headers.
5963 if test -d ${srcdir}/gcc; then
5964 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5965
5966 if test "${build}" != "${host}"; then
5967 # On Canadian crosses, CC_FOR_TARGET will have already been set
5968 # by `configure', so we won't have an opportunity to add -Bgcc/
5969 # to it. This is right: we don't want to search that directory
5970 # for binaries, but we want the header files in there, so add
5971 # them explicitly.
b00612cc 5972 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5973
5974 # Someone might think of using the pre-installed headers on
5975 # Canadian crosses, in case the installed compiler is not fully
5976 # compatible with the compiler being built. In this case, it
5977 # would be better to flag an error than risking having
5978 # incompatible object files being constructed. We can't
5979 # guarantee that an error will be flagged, but let's hope the
5980 # compiler will do it, when presented with incompatible header
5981 # files.
5982 fi
5983 fi
5984
5985 case "${target}-${is_cross_compiler}" in
ec11bdc6 5986 i[3456789]86-*-linux*-no)
a0da8069
NN
5987 # Here host == target, so we don't need to build gcc,
5988 # so we don't want to discard standard headers.
5989 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5990 ;;
5991 *)
5992 # If we're building newlib, use its generic headers last, but search
5993 # for any libc-related directories first (so make it the last -B
5994 # switch).
5995 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
5996
5997 # If we're building libgloss, find the startup file, simulator library
5998 # and linker script.
5999 case " $target_configdirs " in
6000 *" libgloss "*)
6001 # Look for startup file, simulator library and maybe linker script.
6002 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6003 # Look for libnosys.a in case the target needs it.
6004 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6005 # Most targets have the linker script in the source directory.
6006 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6007 ;;
6008 esac
a0da8069
NN
6009 ;;
6010 esac
6011 ;;
6012 esac
6013 ;;
6014esac
45055374
CV
6015case "$target" in
6016*-mingw*)
6017 # Can't be handled as Cygwin above since Mingw does not use newlib.
6018 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' ;;
6019esac
a0da8069 6020
5fbad20a
DD
6021# Allow the user to override the flags for
6022# our build compiler if desired.
c66487f8
NC
6023if test x"${build}" = x"${host}" ; then
6024 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6025 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6026 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6027fi
5fbad20a 6028
a0da8069
NN
6029# On Canadian crosses, we'll be searching the right directories for
6030# the previously-installed cross compiler, so don't bother to add
6031# flags for directories within the install tree of the compiler
6032# being built; programs in there won't even run.
6033if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6034 # Search for pre-installed headers if nothing else fits.
bba45b8b 6035 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
6036fi
6037
6038if test "x${use_gnu_ld}" = x &&
6039 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6040 # Arrange for us to find uninstalled linker scripts.
b00612cc 6041 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6042fi
6043
a481dbb7
DD
6044# Search for other target-specific linker scripts and such.
6045case "${target}" in
4e206d7e
DB
6046 mep*)
6047 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6048 ;;
6049esac
6050
a0da8069 6051# Makefile fragments.
3e707e94
PB
6052for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6053do
6054 eval fragval=\$$frag
6055 if test $fragval != /dev/null; then
6056 eval $frag=${srcdir}/$fragval
6057 fi
6058done
a0da8069
NN
6059
6060
6061
6062
6063
6064# Miscellanea: directories, flags, etc.
6065
6066
6067
6068
6069
6070
6071
6a9cf61e 6072# Build module lists & subconfigure args.
a0da8069
NN
6073
6074
6075
be01d343
PB
6076# Host module lists & subconfigure args.
6077
6078
6079
6080# Target module lists & subconfigure args.
6081
6082
6083
6084# Build tools.
6085
6086
6087
1576798e
PB
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
be01d343
PB
6102# Generate default definitions for YACC, M4, LEX and other programs that run
6103# on the build machine. These are used if the Makefile can't locate these
6104# programs in objdir.
6105MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6106
6107for ac_prog in 'bison -y' byacc yacc
6108do
c6b750e1 6109 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6110set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6111echo "$as_me:$LINENO: checking for $ac_word" >&5
6112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113if test "${ac_cv_prog_YACC+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6115else
6116 if test -n "$YACC"; then
6117 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6118else
c6b750e1
DJ
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_YACC="$ac_prog"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131done
6132
be01d343
PB
6133fi
6134fi
c6b750e1 6135YACC=$ac_cv_prog_YACC
be01d343 6136if test -n "$YACC"; then
c6b750e1
DJ
6137 echo "$as_me:$LINENO: result: $YACC" >&5
6138echo "${ECHO_T}$YACC" >&6
be01d343 6139else
c6b750e1
DJ
6140 echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
be01d343
PB
6142fi
6143
c6b750e1 6144 test -n "$YACC" && break
be01d343
PB
6145done
6146test -n "$YACC" || YACC="$MISSING bison -y"
6147
6148case " $build_configdirs " in
6149 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6150 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6151esac
6152
6153for ac_prog in bison
6154do
c6b750e1 6155 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6156set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6157echo "$as_me:$LINENO: checking for $ac_word" >&5
6158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6159if test "${ac_cv_prog_BISON+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6161else
6162 if test -n "$BISON"; then
6163 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6164else
c6b750e1
DJ
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_BISON="$ac_prog"
6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177done
6178
be01d343
PB
6179fi
6180fi
c6b750e1 6181BISON=$ac_cv_prog_BISON
be01d343 6182if test -n "$BISON"; then
c6b750e1
DJ
6183 echo "$as_me:$LINENO: result: $BISON" >&5
6184echo "${ECHO_T}$BISON" >&6
be01d343 6185else
c6b750e1
DJ
6186 echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6
be01d343
PB
6188fi
6189
c6b750e1 6190 test -n "$BISON" && break
be01d343
PB
6191done
6192test -n "$BISON" || BISON="$MISSING bison"
6193
6194case " $build_configdirs " in
6195 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6196esac
6197
6198for ac_prog in gm4 gnum4 m4
6199do
c6b750e1 6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6201set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6202echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6204if test "${ac_cv_prog_M4+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6206else
6207 if test -n "$M4"; then
6208 ac_cv_prog_M4="$M4" # Let the user override the test.
6209else
c6b750e1
DJ
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_M4="$ac_prog"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221done
6222done
6223
be01d343
PB
6224fi
6225fi
c6b750e1 6226M4=$ac_cv_prog_M4
be01d343 6227if test -n "$M4"; then
c6b750e1
DJ
6228 echo "$as_me:$LINENO: result: $M4" >&5
6229echo "${ECHO_T}$M4" >&6
be01d343 6230else
c6b750e1
DJ
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
be01d343
PB
6233fi
6234
c6b750e1 6235 test -n "$M4" && break
be01d343
PB
6236done
6237test -n "$M4" || M4="$MISSING m4"
6238
6239case " $build_configdirs " in
6240 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6241esac
6242
6243for ac_prog in flex lex
6244do
c6b750e1 6245 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6246set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6247echo "$as_me:$LINENO: checking for $ac_word" >&5
6248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6249if test "${ac_cv_prog_LEX+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6251else
6252 if test -n "$LEX"; then
6253 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6254else
c6b750e1
DJ
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262 ac_cv_prog_LEX="$ac_prog"
6263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267done
6268
be01d343
PB
6269fi
6270fi
c6b750e1 6271LEX=$ac_cv_prog_LEX
be01d343 6272if test -n "$LEX"; then
c6b750e1
DJ
6273 echo "$as_me:$LINENO: result: $LEX" >&5
6274echo "${ECHO_T}$LEX" >&6
be01d343 6275else
c6b750e1
DJ
6276 echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
be01d343
PB
6278fi
6279
c6b750e1 6280 test -n "$LEX" && break
be01d343
PB
6281done
6282test -n "$LEX" || LEX="$MISSING flex"
6283
6284case " $build_configdirs " in
6285 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6286 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6287esac
6288
6289for ac_prog in flex
6290do
c6b750e1 6291 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6292set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6293echo "$as_me:$LINENO: checking for $ac_word" >&5
6294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6295if test "${ac_cv_prog_FLEX+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6297else
6298 if test -n "$FLEX"; then
6299 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6300else
c6b750e1
DJ
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_FLEX="$ac_prog"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312done
6313done
6314
be01d343
PB
6315fi
6316fi
c6b750e1 6317FLEX=$ac_cv_prog_FLEX
be01d343 6318if test -n "$FLEX"; then
c6b750e1
DJ
6319 echo "$as_me:$LINENO: result: $FLEX" >&5
6320echo "${ECHO_T}$FLEX" >&6
be01d343 6321else
c6b750e1
DJ
6322 echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
be01d343
PB
6324fi
6325
c6b750e1 6326 test -n "$FLEX" && break
be01d343
PB
6327done
6328test -n "$FLEX" || FLEX="$MISSING flex"
6329
6330case " $build_configdirs " in
6331 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6332esac
6333
6334for ac_prog in makeinfo
6335do
c6b750e1 6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6337set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6338echo "$as_me:$LINENO: checking for $ac_word" >&5
6339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6340if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6342else
6343 if test -n "$MAKEINFO"; then
6344 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6345else
c6b750e1
DJ
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_MAKEINFO="$ac_prog"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357done
6358done
6359
be01d343
PB
6360fi
6361fi
c6b750e1 6362MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6363if test -n "$MAKEINFO"; then
c6b750e1
DJ
6364 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6365echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6366else
c6b750e1
DJ
6367 echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
be01d343
PB
6369fi
6370
c6b750e1 6371 test -n "$MAKEINFO" && break
be01d343
PB
6372done
6373test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6374
6375case " $build_configdirs " in
6376 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6377 *)
6378
625a61cd 6379 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6380 # higher, else we use the "missing" dummy.
6381 if ${MAKEINFO} --version \
625a61cd 6382 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6383 :
6384 else
6385 MAKEINFO="$MISSING makeinfo"
6386 fi
6387 ;;
6388
6389esac
a0da8069 6390
be01d343 6391# FIXME: expect and dejagnu may become build tools?
a0da8069 6392
be01d343
PB
6393for ac_prog in expect
6394do
c6b750e1 6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6396set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6397echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6399if test "${ac_cv_prog_EXPECT+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6401else
6402 if test -n "$EXPECT"; then
6403 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6404else
c6b750e1
DJ
6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406for as_dir in $PATH
6407do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_EXPECT="$ac_prog"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416done
6417done
6418
be01d343
PB
6419fi
6420fi
c6b750e1 6421EXPECT=$ac_cv_prog_EXPECT
be01d343 6422if test -n "$EXPECT"; then
c6b750e1
DJ
6423 echo "$as_me:$LINENO: result: $EXPECT" >&5
6424echo "${ECHO_T}$EXPECT" >&6
be01d343 6425else
c6b750e1
DJ
6426 echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6
be01d343 6428fi
a0da8069 6429
c6b750e1 6430 test -n "$EXPECT" && break
be01d343
PB
6431done
6432test -n "$EXPECT" || EXPECT="expect"
a0da8069 6433
be01d343
PB
6434case " $configdirs " in
6435 *" expect "*)
6436 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6437 ;;
6438esac
a0da8069 6439
be01d343
PB
6440for ac_prog in runtest
6441do
c6b750e1 6442 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6443set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6444echo "$as_me:$LINENO: checking for $ac_word" >&5
6445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6446if test "${ac_cv_prog_RUNTEST+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6448else
6449 if test -n "$RUNTEST"; then
6450 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6451else
c6b750e1
DJ
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_RUNTEST="$ac_prog"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464done
6465
be01d343
PB
6466fi
6467fi
c6b750e1 6468RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6469if test -n "$RUNTEST"; then
c6b750e1
DJ
6470 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6471echo "${ECHO_T}$RUNTEST" >&6
be01d343 6472else
c6b750e1
DJ
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
be01d343 6475fi
a0da8069 6476
c6b750e1 6477 test -n "$RUNTEST" && break
be01d343
PB
6478done
6479test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6480
be01d343
PB
6481case " $configdirs " in
6482 *" dejagnu "*)
6b89cc21 6483 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6484 ;;
6485esac
a0da8069
NN
6486
6487
a0da8069 6488# Host tools.
859789af
AC
6489ncn_tool_prefix=
6490test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6491ncn_target_tool_prefix=
6492test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6493
9a819804
AO
6494
6495
6496if test -n "$AR"; then
6497 ac_cv_prog_AR=$AR
6498elif test -n "$ac_cv_prog_AR"; then
6499 AR=$ac_cv_prog_AR
6500fi
6501
6502if test -n "$ac_cv_prog_AR"; then
6503 for ncn_progname in ar; do
6504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6505set dummy ${ncn_progname}; ac_word=$2
6506echo "$as_me:$LINENO: checking for $ac_word" >&5
6507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6508if test "${ac_cv_prog_AR+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510else
6511 if test -n "$AR"; then
6512 ac_cv_prog_AR="$AR" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_AR="${ncn_progname}"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6524 fi
6525done
6526done
6527
6528fi
6529fi
6530AR=$ac_cv_prog_AR
6531if test -n "$AR"; then
6532 echo "$as_me:$LINENO: result: $AR" >&5
6533echo "${ECHO_T}$AR" >&6
6534else
6535 echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6
6537fi
6538
6539 done
6540fi
6541
6542for ncn_progname in ar; do
05cbd757
PB
6543 if test -n "$ncn_tool_prefix"; then
6544 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6545set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6546echo "$as_me:$LINENO: checking for $ac_word" >&5
6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6548if test "${ac_cv_prog_AR+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6550else
6551 if test -n "$AR"; then
6552 ac_cv_prog_AR="$AR" # Let the user override the test.
6553else
c6b750e1
DJ
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565done
6566done
6567
859789af
AC
6568fi
6569fi
c6b750e1 6570AR=$ac_cv_prog_AR
859789af 6571if test -n "$AR"; then
c6b750e1
DJ
6572 echo "$as_me:$LINENO: result: $AR" >&5
6573echo "${ECHO_T}$AR" >&6
859789af 6574else
c6b750e1
DJ
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
859789af
AC
6577fi
6578
05cbd757
PB
6579 fi
6580 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6582set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6583echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6585if test "${ac_cv_prog_AR+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6587else
05cbd757
PB
6588 if test -n "$AR"; then
6589 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6590else
c6b750e1
DJ
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_AR="${ncn_progname}"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603done
6604
859789af
AC
6605fi
6606fi
c6b750e1 6607AR=$ac_cv_prog_AR
05cbd757 6608if test -n "$AR"; then
c6b750e1
DJ
6609 echo "$as_me:$LINENO: result: $AR" >&5
6610echo "${ECHO_T}$AR" >&6
859789af 6611else
c6b750e1
DJ
6612 echo "$as_me:$LINENO: result: no" >&5
6613echo "${ECHO_T}no" >&6
859789af 6614fi
c6b750e1 6615
05cbd757
PB
6616 fi
6617 test -n "$ac_cv_prog_AR" && break
6618done
6619
6620if test -z "$ac_cv_prog_AR" ; then
6621 set dummy ar
6622 if test $build = $host ; then
6623 AR="$2"
859789af 6624 else
05cbd757 6625 AR="${ncn_tool_prefix}$2"
859789af 6626 fi
859789af
AC
6627fi
6628
9a819804
AO
6629
6630
6631if test -n "$AS"; then
6632 ac_cv_prog_AS=$AS
6633elif test -n "$ac_cv_prog_AS"; then
6634 AS=$ac_cv_prog_AS
6635fi
6636
6637if test -n "$ac_cv_prog_AS"; then
6638 for ncn_progname in as; do
6639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6640set dummy ${ncn_progname}; ac_word=$2
6641echo "$as_me:$LINENO: checking for $ac_word" >&5
6642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6643if test "${ac_cv_prog_AS+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 if test -n "$AS"; then
6647 ac_cv_prog_AS="$AS" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_AS="${ncn_progname}"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661done
6662
6663fi
6664fi
6665AS=$ac_cv_prog_AS
6666if test -n "$AS"; then
6667 echo "$as_me:$LINENO: result: $AS" >&5
6668echo "${ECHO_T}$AS" >&6
6669else
6670 echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6
6672fi
6673
6674 done
6675fi
6676
6677for ncn_progname in as; do
05cbd757
PB
6678 if test -n "$ncn_tool_prefix"; then
6679 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6680set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6681echo "$as_me:$LINENO: checking for $ac_word" >&5
6682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6683if test "${ac_cv_prog_AS+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6685else
6686 if test -n "$AS"; then
6687 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6688else
6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700done
6701done
6702
859789af
AC
6703fi
6704fi
c6b750e1 6705AS=$ac_cv_prog_AS
859789af 6706if test -n "$AS"; then
c6b750e1
DJ
6707 echo "$as_me:$LINENO: result: $AS" >&5
6708echo "${ECHO_T}$AS" >&6
859789af 6709else
c6b750e1
DJ
6710 echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6
859789af
AC
6712fi
6713
05cbd757
PB
6714 fi
6715 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6717set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6718echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720if test "${ac_cv_prog_AS+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6722else
05cbd757
PB
6723 if test -n "$AS"; then
6724 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6725else
c6b750e1
DJ
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_AS="${ncn_progname}"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738done
6739
859789af
AC
6740fi
6741fi
c6b750e1 6742AS=$ac_cv_prog_AS
05cbd757 6743if test -n "$AS"; then
c6b750e1
DJ
6744 echo "$as_me:$LINENO: result: $AS" >&5
6745echo "${ECHO_T}$AS" >&6
859789af 6746else
c6b750e1
DJ
6747 echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6
859789af 6749fi
c6b750e1 6750
05cbd757
PB
6751 fi
6752 test -n "$ac_cv_prog_AS" && break
6753done
6754
6755if test -z "$ac_cv_prog_AS" ; then
6756 set dummy as
6757 if test $build = $host ; then
6758 AS="$2"
859789af 6759 else
05cbd757 6760 AS="${ncn_tool_prefix}$2"
859789af 6761 fi
859789af
AC
6762fi
6763
9a819804
AO
6764
6765
6766if test -n "$DLLTOOL"; then
6767 ac_cv_prog_DLLTOOL=$DLLTOOL
6768elif test -n "$ac_cv_prog_DLLTOOL"; then
6769 DLLTOOL=$ac_cv_prog_DLLTOOL
6770fi
6771
6772if test -n "$ac_cv_prog_DLLTOOL"; then
6773 for ncn_progname in dlltool; do
6774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6775set dummy ${ncn_progname}; ac_word=$2
6776echo "$as_me:$LINENO: checking for $ac_word" >&5
6777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6778if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781 if test -n "$DLLTOOL"; then
6782 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_DLLTOOL="${ncn_progname}"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795done
6796done
6797
6798fi
6799fi
6800DLLTOOL=$ac_cv_prog_DLLTOOL
6801if test -n "$DLLTOOL"; then
6802 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6803echo "${ECHO_T}$DLLTOOL" >&6
6804else
6805 echo "$as_me:$LINENO: result: no" >&5
6806echo "${ECHO_T}no" >&6
6807fi
6808
6809 done
6810fi
6811
6812for ncn_progname in dlltool; do
05cbd757
PB
6813 if test -n "$ncn_tool_prefix"; then
6814 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6815set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6816echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6818if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6820else
6821 if test -n "$DLLTOOL"; then
6822 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6823else
c6b750e1
DJ
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836done
6837
859789af
AC
6838fi
6839fi
c6b750e1 6840DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6841if test -n "$DLLTOOL"; then
c6b750e1
DJ
6842 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6843echo "${ECHO_T}$DLLTOOL" >&6
859789af 6844else
c6b750e1
DJ
6845 echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6
859789af
AC
6847fi
6848
05cbd757
PB
6849 fi
6850 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6852set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6853echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6855if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6857else
05cbd757
PB
6858 if test -n "$DLLTOOL"; then
6859 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6860else
c6b750e1
DJ
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_DLLTOOL="${ncn_progname}"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873done
6874
859789af
AC
6875fi
6876fi
c6b750e1 6877DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6878if test -n "$DLLTOOL"; then
c6b750e1
DJ
6879 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6880echo "${ECHO_T}$DLLTOOL" >&6
859789af 6881else
c6b750e1
DJ
6882 echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6
859789af 6884fi
c6b750e1 6885
05cbd757
PB
6886 fi
6887 test -n "$ac_cv_prog_DLLTOOL" && break
6888done
6889
6890if test -z "$ac_cv_prog_DLLTOOL" ; then
6891 set dummy dlltool
6892 if test $build = $host ; then
6893 DLLTOOL="$2"
859789af 6894 else
05cbd757 6895 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6896 fi
859789af
AC
6897fi
6898
9a819804
AO
6899
6900
6901if test -n "$LD"; then
6902 ac_cv_prog_LD=$LD
6903elif test -n "$ac_cv_prog_LD"; then
6904 LD=$ac_cv_prog_LD
6905fi
6906
6907if test -n "$ac_cv_prog_LD"; then
6908 for ncn_progname in ld; do
6909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6910set dummy ${ncn_progname}; ac_word=$2
6911echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6913if test "${ac_cv_prog_LD+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916 if test -n "$LD"; then
6917 ac_cv_prog_LD="$LD" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_LD="${ncn_progname}"
6927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930done
6931done
6932
6933fi
6934fi
6935LD=$ac_cv_prog_LD
6936if test -n "$LD"; then
6937 echo "$as_me:$LINENO: result: $LD" >&5
6938echo "${ECHO_T}$LD" >&6
6939else
6940 echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6
6942fi
6943
6944 done
6945fi
6946
6947for ncn_progname in ld; do
05cbd757
PB
6948 if test -n "$ncn_tool_prefix"; then
6949 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6950set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6951echo "$as_me:$LINENO: checking for $ac_word" >&5
6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6953if test "${ac_cv_prog_LD+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6955else
6956 if test -n "$LD"; then
6957 ac_cv_prog_LD="$LD" # Let the user override the test.
6958else
c6b750e1
DJ
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970done
6971done
6972
859789af
AC
6973fi
6974fi
c6b750e1 6975LD=$ac_cv_prog_LD
859789af 6976if test -n "$LD"; then
c6b750e1
DJ
6977 echo "$as_me:$LINENO: result: $LD" >&5
6978echo "${ECHO_T}$LD" >&6
859789af 6979else
c6b750e1
DJ
6980 echo "$as_me:$LINENO: result: no" >&5
6981echo "${ECHO_T}no" >&6
859789af
AC
6982fi
6983
05cbd757
PB
6984 fi
6985 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6987set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6988echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6990if test "${ac_cv_prog_LD+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6992else
05cbd757
PB
6993 if test -n "$LD"; then
6994 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6995else
c6b750e1
DJ
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_LD="${ncn_progname}"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008done
7009
859789af
AC
7010fi
7011fi
c6b750e1 7012LD=$ac_cv_prog_LD
05cbd757 7013if test -n "$LD"; then
c6b750e1
DJ
7014 echo "$as_me:$LINENO: result: $LD" >&5
7015echo "${ECHO_T}$LD" >&6
859789af 7016else
c6b750e1
DJ
7017 echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6
859789af 7019fi
c6b750e1 7020
05cbd757
PB
7021 fi
7022 test -n "$ac_cv_prog_LD" && break
7023done
7024
7025if test -z "$ac_cv_prog_LD" ; then
7026 set dummy ld
7027 if test $build = $host ; then
7028 LD="$2"
859789af 7029 else
05cbd757 7030 LD="${ncn_tool_prefix}$2"
859789af 7031 fi
859789af
AC
7032fi
7033
9a819804
AO
7034
7035
7036if test -n "$LIPO"; then
7037 ac_cv_prog_LIPO=$LIPO
7038elif test -n "$ac_cv_prog_LIPO"; then
7039 LIPO=$ac_cv_prog_LIPO
7040fi
7041
7042if test -n "$ac_cv_prog_LIPO"; then
7043 for ncn_progname in lipo; do
7044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7045set dummy ${ncn_progname}; ac_word=$2
7046echo "$as_me:$LINENO: checking for $ac_word" >&5
7047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7048if test "${ac_cv_prog_LIPO+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051 if test -n "$LIPO"; then
7052 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061 ac_cv_prog_LIPO="${ncn_progname}"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066done
7067
7068fi
7069fi
7070LIPO=$ac_cv_prog_LIPO
7071if test -n "$LIPO"; then
7072 echo "$as_me:$LINENO: result: $LIPO" >&5
7073echo "${ECHO_T}$LIPO" >&6
7074else
7075 echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6
7077fi
7078
7079 done
7080fi
7081
7082for ncn_progname in lipo; do
be01d343
PB
7083 if test -n "$ncn_tool_prefix"; then
7084 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7085set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7086echo "$as_me:$LINENO: checking for $ac_word" >&5
7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7088if test "${ac_cv_prog_LIPO+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7090else
7091 if test -n "$LIPO"; then
7092 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7093else
c6b750e1
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
7100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107
be01d343
PB
7108fi
7109fi
c6b750e1 7110LIPO=$ac_cv_prog_LIPO
be01d343 7111if test -n "$LIPO"; then
c6b750e1
DJ
7112 echo "$as_me:$LINENO: result: $LIPO" >&5
7113echo "${ECHO_T}$LIPO" >&6
be01d343 7114else
c6b750e1
DJ
7115 echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6
be01d343
PB
7117fi
7118
7119 fi
7120 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7122set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7123echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7125if test "${ac_cv_prog_LIPO+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7127else
7128 if test -n "$LIPO"; then
7129 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7130else
c6b750e1
DJ
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_LIPO="${ncn_progname}"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142done
7143done
7144
be01d343
PB
7145fi
7146fi
c6b750e1 7147LIPO=$ac_cv_prog_LIPO
be01d343 7148if test -n "$LIPO"; then
c6b750e1
DJ
7149 echo "$as_me:$LINENO: result: $LIPO" >&5
7150echo "${ECHO_T}$LIPO" >&6
be01d343 7151else
c6b750e1
DJ
7152 echo "$as_me:$LINENO: result: no" >&5
7153echo "${ECHO_T}no" >&6
be01d343 7154fi
c6b750e1 7155
be01d343
PB
7156 fi
7157 test -n "$ac_cv_prog_LIPO" && break
7158done
7159
7160if test -z "$ac_cv_prog_LIPO" ; then
7161 set dummy lipo
7162 if test $build = $host ; then
7163 LIPO="$2"
7164 else
7165 LIPO="${ncn_tool_prefix}$2"
7166 fi
7167fi
7168
9a819804
AO
7169
7170
7171if test -n "$NM"; then
7172 ac_cv_prog_NM=$NM
7173elif test -n "$ac_cv_prog_NM"; then
7174 NM=$ac_cv_prog_NM
7175fi
7176
7177if test -n "$ac_cv_prog_NM"; then
7178 for ncn_progname in nm; do
7179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7180set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7181echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183if test "${ac_cv_prog_NM+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7185else
7186 if test -n "$NM"; then
7187 ac_cv_prog_NM="$NM" # Let the user override the test.
7188else
c6b750e1
DJ
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7196 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200done
7201done
7202
859789af
AC
7203fi
7204fi
c6b750e1 7205NM=$ac_cv_prog_NM
859789af 7206if test -n "$NM"; then
c6b750e1
DJ
7207 echo "$as_me:$LINENO: result: $NM" >&5
7208echo "${ECHO_T}$NM" >&6
859789af 7209else
c6b750e1
DJ
7210 echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
859789af
AC
7212fi
7213
9a819804
AO
7214 done
7215fi
7216
7217for ncn_progname in nm; do
7218 if test -n "$ncn_tool_prefix"; then
7219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7220set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7221echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7223if test "${ac_cv_prog_NM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7225else
05cbd757
PB
7226 if test -n "$NM"; then
7227 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7228else
c6b750e1
DJ
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7236 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240done
7241done
7242
859789af
AC
7243fi
7244fi
c6b750e1 7245NM=$ac_cv_prog_NM
05cbd757 7246if test -n "$NM"; then
c6b750e1
DJ
7247 echo "$as_me:$LINENO: result: $NM" >&5
7248echo "${ECHO_T}$NM" >&6
859789af 7249else
c6b750e1
DJ
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
859789af 7252fi
c6b750e1 7253
05cbd757 7254 fi
9a819804
AO
7255 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7257set dummy ${ncn_progname}; ac_word=$2
7258echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7260if test "${ac_cv_prog_NM+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262else
7263 if test -n "$NM"; then
7264 ac_cv_prog_NM="$NM" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_NM="${ncn_progname}"
7274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7276 fi
7277done
7278done
7279
7280fi
7281fi
7282NM=$ac_cv_prog_NM
7283if test -n "$NM"; then
7284 echo "$as_me:$LINENO: result: $NM" >&5
7285echo "${ECHO_T}$NM" >&6
7286else
7287 echo "$as_me:$LINENO: result: no" >&5
7288echo "${ECHO_T}no" >&6
7289fi
7290
7291 fi
7292 test -n "$ac_cv_prog_NM" && break
7293done
7294
7295if test -z "$ac_cv_prog_NM" ; then
7296 set dummy nm
7297 if test $build = $host ; then
7298 NM="$2"
7299 else
7300 NM="${ncn_tool_prefix}$2"
7301 fi
7302fi
7303
7304
7305
7306if test -n "$RANLIB"; then
7307 ac_cv_prog_RANLIB=$RANLIB
7308elif test -n "$ac_cv_prog_RANLIB"; then
7309 RANLIB=$ac_cv_prog_RANLIB
7310fi
7311
7312if test -n "$ac_cv_prog_RANLIB"; then
7313 for ncn_progname in ranlib; do
7314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7315set dummy ${ncn_progname}; ac_word=$2
7316echo "$as_me:$LINENO: checking for $ac_word" >&5
7317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7318if test "${ac_cv_prog_RANLIB+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320else
7321 if test -n "$RANLIB"; then
7322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7323else
7324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_RANLIB="${ncn_progname}"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335done
7336done
7337
7338fi
7339fi
7340RANLIB=$ac_cv_prog_RANLIB
7341if test -n "$RANLIB"; then
7342 echo "$as_me:$LINENO: result: $RANLIB" >&5
7343echo "${ECHO_T}$RANLIB" >&6
7344else
7345 echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6
7347fi
7348
7349 done
7350fi
859789af 7351
9a819804 7352for ncn_progname in ranlib; do
05cbd757
PB
7353 if test -n "$ncn_tool_prefix"; then
7354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7355set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7356echo "$as_me:$LINENO: checking for $ac_word" >&5
7357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7358if test "${ac_cv_prog_RANLIB+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7360else
7361 if test -n "$RANLIB"; then
7362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7363else
c6b750e1
DJ
7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376done
7377
859789af
AC
7378fi
7379fi
c6b750e1 7380RANLIB=$ac_cv_prog_RANLIB
859789af 7381if test -n "$RANLIB"; then
c6b750e1
DJ
7382 echo "$as_me:$LINENO: result: $RANLIB" >&5
7383echo "${ECHO_T}$RANLIB" >&6
859789af 7384else
c6b750e1
DJ
7385 echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6
859789af
AC
7387fi
7388
05cbd757
PB
7389 fi
7390 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7392set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7393echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7395if test "${ac_cv_prog_RANLIB+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7397else
05cbd757
PB
7398 if test -n "$RANLIB"; then
7399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7400else
c6b750e1
DJ
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_RANLIB="${ncn_progname}"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413done
7414
859789af
AC
7415fi
7416fi
c6b750e1 7417RANLIB=$ac_cv_prog_RANLIB
05cbd757 7418if test -n "$RANLIB"; then
c6b750e1
DJ
7419 echo "$as_me:$LINENO: result: $RANLIB" >&5
7420echo "${ECHO_T}$RANLIB" >&6
859789af 7421else
c6b750e1
DJ
7422 echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
859789af 7424fi
c6b750e1 7425
859789af 7426 fi
05cbd757
PB
7427 test -n "$ac_cv_prog_RANLIB" && break
7428done
7429
7430if test -z "$ac_cv_prog_RANLIB" ; then
7431 RANLIB=":"
859789af
AC
7432fi
7433
9a819804
AO
7434
7435
7436if test -n "$STRIP"; then
7437 ac_cv_prog_STRIP=$STRIP
7438elif test -n "$ac_cv_prog_STRIP"; then
7439 STRIP=$ac_cv_prog_STRIP
7440fi
7441
7442if test -n "$ac_cv_prog_STRIP"; then
7443 for ncn_progname in strip; do
7444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7445set dummy ${ncn_progname}; ac_word=$2
7446echo "$as_me:$LINENO: checking for $ac_word" >&5
7447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7448if test "${ac_cv_prog_STRIP+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451 if test -n "$STRIP"; then
7452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_STRIP="${ncn_progname}"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465done
7466done
7467
7468fi
7469fi
7470STRIP=$ac_cv_prog_STRIP
7471if test -n "$STRIP"; then
7472 echo "$as_me:$LINENO: result: $STRIP" >&5
7473echo "${ECHO_T}$STRIP" >&6
7474else
7475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
7477fi
7478
7479 done
7480fi
7481
7482for ncn_progname in strip; do
be01d343
PB
7483 if test -n "$ncn_tool_prefix"; then
7484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7486echo "$as_me:$LINENO: checking for $ac_word" >&5
7487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488if test "${ac_cv_prog_STRIP+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7490else
7491 if test -n "$STRIP"; then
7492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7493else
c6b750e1
DJ
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506done
7507
be01d343
PB
7508fi
7509fi
c6b750e1 7510STRIP=$ac_cv_prog_STRIP
be01d343 7511if test -n "$STRIP"; then
c6b750e1
DJ
7512 echo "$as_me:$LINENO: result: $STRIP" >&5
7513echo "${ECHO_T}$STRIP" >&6
be01d343 7514else
c6b750e1
DJ
7515 echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
be01d343
PB
7517fi
7518
7519 fi
7520 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7522set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7523echo "$as_me:$LINENO: checking for $ac_word" >&5
7524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7525if test "${ac_cv_prog_STRIP+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7527else
7528 if test -n "$STRIP"; then
7529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7530else
c6b750e1
DJ
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_STRIP="${ncn_progname}"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542done
7543done
7544
be01d343
PB
7545fi
7546fi
c6b750e1 7547STRIP=$ac_cv_prog_STRIP
be01d343 7548if test -n "$STRIP"; then
c6b750e1
DJ
7549 echo "$as_me:$LINENO: result: $STRIP" >&5
7550echo "${ECHO_T}$STRIP" >&6
be01d343 7551else
c6b750e1
DJ
7552 echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6
be01d343 7554fi
c6b750e1 7555
be01d343
PB
7556 fi
7557 test -n "$ac_cv_prog_STRIP" && break
7558done
7559
7560if test -z "$ac_cv_prog_STRIP" ; then
7561 STRIP=":"
7562fi
7563
9a819804
AO
7564
7565
7566if test -n "$WINDRES"; then
7567 ac_cv_prog_WINDRES=$WINDRES
7568elif test -n "$ac_cv_prog_WINDRES"; then
7569 WINDRES=$ac_cv_prog_WINDRES
7570fi
7571
7572if test -n "$ac_cv_prog_WINDRES"; then
7573 for ncn_progname in windres; do
7574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7575set dummy ${ncn_progname}; ac_word=$2
7576echo "$as_me:$LINENO: checking for $ac_word" >&5
7577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7578if test "${ac_cv_prog_WINDRES+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581 if test -n "$WINDRES"; then
7582 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_WINDRES="${ncn_progname}"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596done
7597
7598fi
7599fi
7600WINDRES=$ac_cv_prog_WINDRES
7601if test -n "$WINDRES"; then
7602 echo "$as_me:$LINENO: result: $WINDRES" >&5
7603echo "${ECHO_T}$WINDRES" >&6
7604else
7605 echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6
7607fi
7608
7609 done
7610fi
7611
7612for ncn_progname in windres; do
05cbd757
PB
7613 if test -n "$ncn_tool_prefix"; then
7614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7615set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7616echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618if test "${ac_cv_prog_WINDRES+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7620else
7621 if test -n "$WINDRES"; then
7622 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7623else
c6b750e1
DJ
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635done
7636done
7637
859789af
AC
7638fi
7639fi
c6b750e1 7640WINDRES=$ac_cv_prog_WINDRES
859789af 7641if test -n "$WINDRES"; then
c6b750e1
DJ
7642 echo "$as_me:$LINENO: result: $WINDRES" >&5
7643echo "${ECHO_T}$WINDRES" >&6
859789af 7644else
c6b750e1
DJ
7645 echo "$as_me:$LINENO: result: no" >&5
7646echo "${ECHO_T}no" >&6
859789af
AC
7647fi
7648
05cbd757
PB
7649 fi
7650 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7652set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7653echo "$as_me:$LINENO: checking for $ac_word" >&5
7654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7655if test "${ac_cv_prog_WINDRES+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7657else
05cbd757
PB
7658 if test -n "$WINDRES"; then
7659 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7660else
c6b750e1
DJ
7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_WINDRES="${ncn_progname}"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672done
7673done
7674
859789af
AC
7675fi
7676fi
c6b750e1 7677WINDRES=$ac_cv_prog_WINDRES
05cbd757 7678if test -n "$WINDRES"; then
c6b750e1
DJ
7679 echo "$as_me:$LINENO: result: $WINDRES" >&5
7680echo "${ECHO_T}$WINDRES" >&6
859789af 7681else
c6b750e1
DJ
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
859789af 7684fi
c6b750e1 7685
05cbd757
PB
7686 fi
7687 test -n "$ac_cv_prog_WINDRES" && break
7688done
7689
7690if test -z "$ac_cv_prog_WINDRES" ; then
7691 set dummy windres
7692 if test $build = $host ; then
7693 WINDRES="$2"
859789af 7694 else
05cbd757 7695 WINDRES="${ncn_tool_prefix}$2"
859789af 7696 fi
859789af
AC
7697fi
7698
9a819804
AO
7699
7700
0c24b341
NC
7701if test -n "$WINDMC"; then
7702 ac_cv_prog_WINDMC=$WINDMC
7703elif test -n "$ac_cv_prog_WINDMC"; then
7704 WINDMC=$ac_cv_prog_WINDMC
7705fi
7706
7707if test -n "$ac_cv_prog_WINDMC"; then
7708 for ncn_progname in windmc; do
7709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7710set dummy ${ncn_progname}; ac_word=$2
7711echo "$as_me:$LINENO: checking for $ac_word" >&5
7712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7713if test "${ac_cv_prog_WINDMC+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 if test -n "$WINDMC"; then
7717 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_WINDMC="${ncn_progname}"
7727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730done
7731done
7732
7733fi
7734fi
7735WINDMC=$ac_cv_prog_WINDMC
7736if test -n "$WINDMC"; then
7737 echo "$as_me:$LINENO: result: $WINDMC" >&5
7738echo "${ECHO_T}$WINDMC" >&6
7739else
7740 echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6
7742fi
7743
7744 done
7745fi
7746
7747for ncn_progname in windmc; do
7748 if test -n "$ncn_tool_prefix"; then
7749 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7750set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7751echo "$as_me:$LINENO: checking for $ac_word" >&5
7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7753if test "${ac_cv_prog_WINDMC+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756 if test -n "$WINDMC"; then
7757 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770done
7771done
7772
7773fi
7774fi
7775WINDMC=$ac_cv_prog_WINDMC
7776if test -n "$WINDMC"; then
7777 echo "$as_me:$LINENO: result: $WINDMC" >&5
7778echo "${ECHO_T}$WINDMC" >&6
7779else
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
7782fi
7783
7784 fi
7785 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7787set dummy ${ncn_progname}; ac_word=$2
7788echo "$as_me:$LINENO: checking for $ac_word" >&5
7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7790if test "${ac_cv_prog_WINDMC+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793 if test -n "$WINDMC"; then
7794 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7795else
7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797for as_dir in $PATH
7798do
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_WINDMC="${ncn_progname}"
7804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7806 fi
7807done
7808done
7809
7810fi
7811fi
7812WINDMC=$ac_cv_prog_WINDMC
7813if test -n "$WINDMC"; then
7814 echo "$as_me:$LINENO: result: $WINDMC" >&5
7815echo "${ECHO_T}$WINDMC" >&6
7816else
7817 echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6
7819fi
7820
7821 fi
7822 test -n "$ac_cv_prog_WINDMC" && break
7823done
7824
7825if test -z "$ac_cv_prog_WINDMC" ; then
7826 set dummy windmc
7827 if test $build = $host ; then
7828 WINDMC="$2"
7829 else
7830 WINDMC="${ncn_tool_prefix}$2"
7831 fi
7832fi
7833
7834
7835
9a819804
AO
7836if test -n "$OBJCOPY"; then
7837 ac_cv_prog_OBJCOPY=$OBJCOPY
7838elif test -n "$ac_cv_prog_OBJCOPY"; then
7839 OBJCOPY=$ac_cv_prog_OBJCOPY
7840fi
7841
7842if test -n "$ac_cv_prog_OBJCOPY"; then
7843 for ncn_progname in objcopy; do
7844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7845set dummy ${ncn_progname}; ac_word=$2
7846echo "$as_me:$LINENO: checking for $ac_word" >&5
7847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7848if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851 if test -n "$OBJCOPY"; then
7852 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7853else
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_OBJCOPY="${ncn_progname}"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865done
7866done
7867
7868fi
7869fi
7870OBJCOPY=$ac_cv_prog_OBJCOPY
7871if test -n "$OBJCOPY"; then
7872 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7873echo "${ECHO_T}$OBJCOPY" >&6
7874else
7875 echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877fi
7878
7879 done
7880fi
7881
7882for ncn_progname in objcopy; do
05cbd757
PB
7883 if test -n "$ncn_tool_prefix"; then
7884 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7885set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7886echo "$as_me:$LINENO: checking for $ac_word" >&5
7887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7888if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7890else
7891 if test -n "$OBJCOPY"; then
7892 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7893else
c6b750e1
DJ
7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7904 fi
7905done
7906done
7907
859789af
AC
7908fi
7909fi
c6b750e1 7910OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7911if test -n "$OBJCOPY"; then
c6b750e1
DJ
7912 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7913echo "${ECHO_T}$OBJCOPY" >&6
859789af 7914else
c6b750e1
DJ
7915 echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6
859789af
AC
7917fi
7918
05cbd757
PB
7919 fi
7920 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7922set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7923echo "$as_me:$LINENO: checking for $ac_word" >&5
7924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7925if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7927else
05cbd757
PB
7928 if test -n "$OBJCOPY"; then
7929 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7930else
c6b750e1
DJ
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_OBJCOPY="${ncn_progname}"
7939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942done
7943done
7944
859789af
AC
7945fi
7946fi
c6b750e1 7947OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7948if test -n "$OBJCOPY"; then
c6b750e1
DJ
7949 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7950echo "${ECHO_T}$OBJCOPY" >&6
859789af 7951else
c6b750e1
DJ
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
859789af 7954fi
c6b750e1 7955
05cbd757
PB
7956 fi
7957 test -n "$ac_cv_prog_OBJCOPY" && break
7958done
7959
7960if test -z "$ac_cv_prog_OBJCOPY" ; then
7961 set dummy objcopy
7962 if test $build = $host ; then
7963 OBJCOPY="$2"
859789af 7964 else
05cbd757 7965 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7966 fi
859789af
AC
7967fi
7968
9a819804
AO
7969
7970
7971if test -n "$OBJDUMP"; then
7972 ac_cv_prog_OBJDUMP=$OBJDUMP
7973elif test -n "$ac_cv_prog_OBJDUMP"; then
7974 OBJDUMP=$ac_cv_prog_OBJDUMP
7975fi
7976
7977if test -n "$ac_cv_prog_OBJDUMP"; then
7978 for ncn_progname in objdump; do
7979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7980set dummy ${ncn_progname}; ac_word=$2
7981echo "$as_me:$LINENO: checking for $ac_word" >&5
7982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7983if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986 if test -n "$OBJDUMP"; then
7987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_OBJDUMP="${ncn_progname}"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000done
8001done
8002
8003fi
8004fi
8005OBJDUMP=$ac_cv_prog_OBJDUMP
8006if test -n "$OBJDUMP"; then
8007 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8008echo "${ECHO_T}$OBJDUMP" >&6
8009else
8010 echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6
8012fi
8013
8014 done
8015fi
8016
8017for ncn_progname in objdump; do
05cbd757
PB
8018 if test -n "$ncn_tool_prefix"; then
8019 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8020set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8021echo "$as_me:$LINENO: checking for $ac_word" >&5
8022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8023if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8025else
8026 if test -n "$OBJDUMP"; then
8027 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8028else
c6b750e1
DJ
8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040done
8041done
8042
859789af
AC
8043fi
8044fi
c6b750e1 8045OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8046if test -n "$OBJDUMP"; then
c6b750e1
DJ
8047 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8048echo "${ECHO_T}$OBJDUMP" >&6
859789af 8049else
c6b750e1
DJ
8050 echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
859789af
AC
8052fi
8053
05cbd757
PB
8054 fi
8055 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8057set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8058echo "$as_me:$LINENO: checking for $ac_word" >&5
8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8062else
05cbd757
PB
8063 if test -n "$OBJDUMP"; then
8064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8065else
c6b750e1
DJ
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_OBJDUMP="${ncn_progname}"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077done
8078done
8079
859789af
AC
8080fi
8081fi
c6b750e1 8082OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8083if test -n "$OBJDUMP"; then
c6b750e1
DJ
8084 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8085echo "${ECHO_T}$OBJDUMP" >&6
859789af 8086else
c6b750e1
DJ
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
859789af 8089fi
c6b750e1 8090
05cbd757
PB
8091 fi
8092 test -n "$ac_cv_prog_OBJDUMP" && break
8093done
8094
8095if test -z "$ac_cv_prog_OBJDUMP" ; then
8096 set dummy objdump
8097 if test $build = $host ; then
8098 OBJDUMP="$2"
859789af 8099 else
05cbd757 8100 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8101 fi
859789af
AC
8102fi
8103
a0da8069
NN
8104
8105
8106
8107
8108
be01d343 8109# Target tools.
c6b750e1 8110
2429c060
PB
8111# Check whether --with-build-time-tools or --without-build-time-tools was given.
8112if test "${with_build_time_tools+set}" = set; then
8113 withval="$with_build_time_tools"
8114 case x"$withval" in
8115 x/*) ;;
8116 *)
8117 with_build_time_tools=
c6b750e1
DJ
8118 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8119echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8120 ;;
8121 esac
859789af 8122else
2429c060 8123 with_build_time_tools=
c6b750e1 8124fi;
859789af 8125
9a819804
AO
8126
8127
8128if test -n "$CC_FOR_TARGET"; then
8129 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8130elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8131 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8132fi
8133
8134if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8135 for ncn_progname in cc gcc; do
8136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8137set dummy ${ncn_progname}; ac_word=$2
8138echo "$as_me:$LINENO: checking for $ac_word" >&5
8139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8140if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143 if test -n "$CC_FOR_TARGET"; then
8144 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8145else
8146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157done
8158done
8159
8160fi
8161fi
8162CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8163if test -n "$CC_FOR_TARGET"; then
8164 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8165echo "${ECHO_T}$CC_FOR_TARGET" >&6
8166else
8167 echo "$as_me:$LINENO: result: no" >&5
8168echo "${ECHO_T}no" >&6
8169fi
8170
8171 done
8172fi
8173
8174if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8175 for ncn_progname in cc gcc; do
c6b750e1
DJ
8176 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8177echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8178 if test -x $with_build_time_tools/${ncn_progname}; then
8179 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8180 echo "$as_me:$LINENO: result: yes" >&5
8181echo "${ECHO_T}yes" >&6
cac3d6c4 8182 break
2429c060 8183 else
c6b750e1
DJ
8184 echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6
cac3d6c4
CM
8186 fi
8187 done
55db4b87
PB
8188fi
8189
2429c060
PB
8190if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8191 for ncn_progname in cc gcc; do
8192 if test -n "$ncn_target_tool_prefix"; then
8193 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8194set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8195echo "$as_me:$LINENO: checking for $ac_word" >&5
8196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8197if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8199else
8200 if test -n "$CC_FOR_TARGET"; then
8201 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8202else
c6b750e1
DJ
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214done
8215done
8216
55db4b87
PB
8217fi
8218fi
c6b750e1 8219CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8220if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8221 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8222echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8223else
c6b750e1
DJ
8224 echo "$as_me:$LINENO: result: no" >&5
8225echo "${ECHO_T}no" >&6
55db4b87
PB
8226fi
8227
2429c060
PB
8228 fi
8229 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8231set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8232echo "$as_me:$LINENO: checking for $ac_word" >&5
8233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8234if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8236else
05cbd757
PB
8237 if test -n "$CC_FOR_TARGET"; then
8238 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8239else
c6b750e1
DJ
8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241for as_dir in $PATH
8242do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251done
8252done
8253
55db4b87
PB
8254fi
8255fi
c6b750e1 8256CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8257if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8258 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8259echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8260else
c6b750e1
DJ
8261 echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6
55db4b87 8263fi
c6b750e1 8264
2429c060
PB
8265 fi
8266 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8267 done
8268fi
c6b750e1 8269
05cbd757
PB
8270if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8271 set dummy cc gcc
8272 if test $build = $target ; then
8273 CC_FOR_TARGET="$2"
55db4b87 8274 else
05cbd757 8275 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8276 fi
d3f5afc4
MS
8277else
8278 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8279fi
8280
9a819804
AO
8281
8282
8283if test -n "$CXX_FOR_TARGET"; then
8284 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8285elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8286 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8287fi
8288
8289if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8290 for ncn_progname in c++ g++ cxx gxx; do
8291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8292set dummy ${ncn_progname}; ac_word=$2
8293echo "$as_me:$LINENO: checking for $ac_word" >&5
8294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8295if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 if test -n "$CXX_FOR_TARGET"; then
8299 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8300else
8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
8303do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312done
8313done
8314
8315fi
8316fi
8317CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8318if test -n "$CXX_FOR_TARGET"; then
8319 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8320echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8321else
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
8324fi
8325
8326 done
8327fi
8328
8329if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8330 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8331 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8332echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8333 if test -x $with_build_time_tools/${ncn_progname}; then
8334 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8335 echo "$as_me:$LINENO: result: yes" >&5
8336echo "${ECHO_T}yes" >&6
2429c060
PB
8337 break
8338 else
c6b750e1
DJ
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
2429c060
PB
8341 fi
8342 done
8343fi
8344
8345if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8346 for ncn_progname in c++ g++ cxx gxx; do
8347 if test -n "$ncn_target_tool_prefix"; then
8348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8350echo "$as_me:$LINENO: checking for $ac_word" >&5
8351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8352if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8354else
8355 if test -n "$CXX_FOR_TARGET"; then
8356 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8357else
c6b750e1
DJ
8358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359for as_dir in $PATH
8360do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369done
8370done
8371
55db4b87
PB
8372fi
8373fi
c6b750e1 8374CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8375if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8376 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8377echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8378else
c6b750e1
DJ
8379 echo "$as_me:$LINENO: result: no" >&5
8380echo "${ECHO_T}no" >&6
55db4b87
PB
8381fi
8382
2429c060
PB
8383 fi
8384 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8386set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8387echo "$as_me:$LINENO: checking for $ac_word" >&5
8388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8389if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8391else
05cbd757
PB
8392 if test -n "$CXX_FOR_TARGET"; then
8393 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8394else
c6b750e1
DJ
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8405 fi
8406done
8407done
8408
55db4b87
PB
8409fi
8410fi
c6b750e1 8411CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8412if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8413 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8414echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8415else
c6b750e1
DJ
8416 echo "$as_me:$LINENO: result: no" >&5
8417echo "${ECHO_T}no" >&6
55db4b87 8418fi
c6b750e1 8419
2429c060
PB
8420 fi
8421 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8422 done
8423fi
c6b750e1 8424
05cbd757
PB
8425if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8426 set dummy c++ g++ cxx gxx
8427 if test $build = $target ; then
8428 CXX_FOR_TARGET="$2"
55db4b87 8429 else
05cbd757 8430 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8431 fi
d3f5afc4
MS
8432else
8433 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8434fi
8435
9a819804
AO
8436
8437
8438if test -n "$GCC_FOR_TARGET"; then
8439 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8440elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8441 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8442fi
8443
8444if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8445 for ncn_progname in gcc; do
8446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8447set dummy ${ncn_progname}; ac_word=$2
8448echo "$as_me:$LINENO: checking for $ac_word" >&5
8449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8450if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453 if test -n "$GCC_FOR_TARGET"; then
8454 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8455else
8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457for as_dir in $PATH
8458do
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467done
8468done
8469
8470fi
8471fi
8472GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8473if test -n "$GCC_FOR_TARGET"; then
8474 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8475echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8476else
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
8479fi
8480
8481 done
8482fi
8483
8484if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8485 for ncn_progname in gcc; do
c6b750e1
DJ
8486 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8487echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8488 if test -x $with_build_time_tools/${ncn_progname}; then
8489 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8490 echo "$as_me:$LINENO: result: yes" >&5
8491echo "${ECHO_T}yes" >&6
2429c060
PB
8492 break
8493 else
c6b750e1
DJ
8494 echo "$as_me:$LINENO: result: no" >&5
8495echo "${ECHO_T}no" >&6
2429c060
PB
8496 fi
8497 done
8498fi
8499
8500if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8501 for ncn_progname in gcc; do
8502 if test -n "$ncn_target_tool_prefix"; then
8503 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8504set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8505echo "$as_me:$LINENO: checking for $ac_word" >&5
8506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8507if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8509else
2429c060
PB
8510 if test -n "$GCC_FOR_TARGET"; then
8511 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8512else
c6b750e1
DJ
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8520 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524done
8525done
8526
55db4b87
PB
8527fi
8528fi
c6b750e1 8529GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8530if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8531 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8532echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8533else
c6b750e1
DJ
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
55db4b87
PB
8536fi
8537
2429c060
PB
8538 fi
8539 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8541set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8542echo "$as_me:$LINENO: checking for $ac_word" >&5
8543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8544if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8546else
05cbd757
PB
8547 if test -n "$GCC_FOR_TARGET"; then
8548 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8549else
c6b750e1
DJ
8550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
8552do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561done
8562done
8563
55db4b87
PB
8564fi
8565fi
c6b750e1 8566GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8567if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8568 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8569echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8570else
c6b750e1
DJ
8571 echo "$as_me:$LINENO: result: no" >&5
8572echo "${ECHO_T}no" >&6
55db4b87 8573fi
c6b750e1 8574
2429c060
PB
8575 fi
8576 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8577 done
8578fi
c6b750e1 8579
05cbd757
PB
8580if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8581 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8582else
8583 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8584fi
8585
9a819804
AO
8586
8587
8588if test -n "$GCJ_FOR_TARGET"; then
8589 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8590elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8591 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8592fi
8593
8594if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8595 for ncn_progname in gcj; do
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_progname}; ac_word=$2
8598echo "$as_me:$LINENO: checking for $ac_word" >&5
8599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8600if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603 if test -n "$GCJ_FOR_TARGET"; then
8604 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8605else
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8616 fi
8617done
8618done
8619
8620fi
8621fi
8622GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8623if test -n "$GCJ_FOR_TARGET"; then
8624 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8625echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8626else
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
8629fi
8630
8631 done
8632fi
8633
8634if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8635 for ncn_progname in gcj; do
c6b750e1
DJ
8636 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8637echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8638 if test -x $with_build_time_tools/${ncn_progname}; then
8639 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8640 echo "$as_me:$LINENO: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
2429c060
PB
8642 break
8643 else
c6b750e1
DJ
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
2429c060
PB
8646 fi
8647 done
8648fi
8649
8650if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8651 for ncn_progname in gcj; do
8652 if test -n "$ncn_target_tool_prefix"; then
8653 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8654set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8655echo "$as_me:$LINENO: checking for $ac_word" >&5
8656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8657if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8659else
8660 if test -n "$GCJ_FOR_TARGET"; then
8661 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8662else
c6b750e1
DJ
8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674done
8675done
8676
55db4b87
PB
8677fi
8678fi
9a819804
AO
8679GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8680if test -n "$GCJ_FOR_TARGET"; then
8681 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8682echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8683else
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
8686fi
8687
8688 fi
8689 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8691set dummy ${ncn_progname}; ac_word=$2
8692echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697 if test -n "$GCJ_FOR_TARGET"; then
8698 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8710 fi
8711done
8712done
8713
8714fi
8715fi
8716GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8717if test -n "$GCJ_FOR_TARGET"; then
8718 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8719echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8720else
8721 echo "$as_me:$LINENO: result: no" >&5
8722echo "${ECHO_T}no" >&6
8723fi
8724
8725 fi
8726 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8727 done
8728fi
8729
8730if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8731 set dummy gcj
8732 if test $build = $target ; then
8733 GCJ_FOR_TARGET="$2"
8734 else
8735 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8736 fi
d3f5afc4
MS
8737else
8738 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8739fi
8740
8741
8742
8743if test -n "$GFORTRAN_FOR_TARGET"; then
8744 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8745elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8746 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8747fi
8748
9a819804
AO
8749if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8750 for ncn_progname in gfortran; do
8751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8752set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8753echo "$as_me:$LINENO: checking for $ac_word" >&5
8754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8755if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8756 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8757else
9a819804
AO
8758 if test -n "$GFORTRAN_FOR_TARGET"; then
8759 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8760else
c6b750e1
DJ
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8768 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8771 fi
8772done
8773done
8774
55db4b87
PB
8775fi
8776fi
9a819804
AO
8777GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8778if test -n "$GFORTRAN_FOR_TARGET"; then
8779 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8780echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8781else
c6b750e1
DJ
8782 echo "$as_me:$LINENO: result: no" >&5
8783echo "${ECHO_T}no" >&6
55db4b87 8784fi
c6b750e1 8785
2429c060
PB
8786 done
8787fi
c6b750e1 8788
9a819804 8789if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8790 for ncn_progname in gfortran; do
c6b750e1
DJ
8791 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8792echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8793 if test -x $with_build_time_tools/${ncn_progname}; then
8794 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8795 echo "$as_me:$LINENO: result: yes" >&5
8796echo "${ECHO_T}yes" >&6
2429c060
PB
8797 break
8798 else
c6b750e1
DJ
8799 echo "$as_me:$LINENO: result: no" >&5
8800echo "${ECHO_T}no" >&6
2429c060
PB
8801 fi
8802 done
8803fi
8804
8805if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8806 for ncn_progname in gfortran; do
8807 if test -n "$ncn_target_tool_prefix"; then
8808 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8809set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8810echo "$as_me:$LINENO: checking for $ac_word" >&5
8811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8812if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8814else
8815 if test -n "$GFORTRAN_FOR_TARGET"; then
8816 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8817else
c6b750e1
DJ
8818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819for as_dir in $PATH
8820do
8821 IFS=$as_save_IFS
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 break 2
8828 fi
8829done
8830done
8831
55db4b87
PB
8832fi
8833fi
c6b750e1 8834GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8835if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8836 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8837echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8838else
c6b750e1
DJ
8839 echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
55db4b87
PB
8841fi
8842
2429c060
PB
8843 fi
8844 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8846set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8847echo "$as_me:$LINENO: checking for $ac_word" >&5
8848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8849if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8851else
05cbd757 8852 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8853 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8854else
8855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856for as_dir in $PATH
8857do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8862 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8865 fi
8866done
8867done
8868
55db4b87
PB
8869fi
8870fi
c6b750e1 8871GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8872if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8873 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8874echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8875else
c6b750e1
DJ
8876 echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6
55db4b87 8878fi
c6b750e1 8879
2429c060
PB
8880 fi
8881 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8882 done
8883fi
c6b750e1 8884
05cbd757
PB
8885if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8886 set dummy gfortran
8887 if test $build = $target ; then
8888 GFORTRAN_FOR_TARGET="$2"
55db4b87 8889 else
05cbd757 8890 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8891 fi
d3f5afc4
MS
8892else
8893 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8894fi
8895
2429c060
PB
8896
8897
2429c060
PB
8898cat > conftest.c << \EOF
8899#ifdef __GNUC__
8900 gcc_yay;
8901#endif
8902EOF
8903if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8904 have_gcc_for_target=yes
859789af 8905else
2429c060
PB
8906 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8907 have_gcc_for_target=no
859789af 8908fi
2429c060
PB
8909rm conftest.c
8910
8911
8912
859789af 8913
2429c060
PB
8914if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8915 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8916 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8917echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8918 if test -x $with_build_time_tools/ar; then
8919 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8920 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8921 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8922echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8923 else
c6b750e1
DJ
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
3a35eeb3 8926 fi
2429c060
PB
8927 elif test $build != $host && test $have_gcc_for_target = yes; then
8928 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8929 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8930 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8931 fi
2429c060 8932fi
c6b750e1 8933if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8934 # Extract the first word of "ar", so it can be a program name with args.
8935set dummy ar; ac_word=$2
c6b750e1
DJ
8936echo "$as_me:$LINENO: checking for $ac_word" >&5
8937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8938if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8940else
c6b750e1
DJ
8941 case $AR_FOR_TARGET in
8942 [\\/]* | ?:[\\/]*)
2429c060
PB
8943 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8944 ;;
2429c060 8945 *)
c6b750e1
DJ
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947for as_dir in $gcc_cv_tool_dirs
8948do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8955 break 2
8956 fi
8957done
8958done
8959
2429c060
PB
8960 ;;
8961esac
859789af 8962fi
c6b750e1
DJ
8963AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8964
2429c060 8965if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8966 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8967echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8968else
c6b750e1
DJ
8969 echo "$as_me:$LINENO: result: no" >&5
8970echo "${ECHO_T}no" >&6
859789af 8971fi
05cbd757 8972
2429c060
PB
8973fi
8974if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8975
8976
8977if test -n "$AR_FOR_TARGET"; then
8978 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8979elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8980 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8981fi
8982
8983if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8984 for ncn_progname in ar; do
8985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8986set dummy ${ncn_progname}; ac_word=$2
8987echo "$as_me:$LINENO: checking for $ac_word" >&5
8988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8989if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991else
8992 if test -n "$AR_FOR_TARGET"; then
8993 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8994else
8995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996for as_dir in $PATH
8997do
8998 IFS=$as_save_IFS
8999 test -z "$as_dir" && as_dir=.
9000 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9002 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 break 2
9005 fi
9006done
9007done
9008
9009fi
9010fi
9011AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9012if test -n "$AR_FOR_TARGET"; then
9013 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9014echo "${ECHO_T}$AR_FOR_TARGET" >&6
9015else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018fi
9019
9020 done
9021fi
9022
9023if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9024 for ncn_progname in ar; do
c6b750e1
DJ
9025 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9026echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9027 if test -x $with_build_time_tools/${ncn_progname}; then
9028 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9029 echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
2429c060
PB
9031 break
9032 else
c6b750e1
DJ
9033 echo "$as_me:$LINENO: result: no" >&5
9034echo "${ECHO_T}no" >&6
2429c060
PB
9035 fi
9036 done
859789af
AC
9037fi
9038
2429c060
PB
9039if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9040 for ncn_progname in ar; do
9041 if test -n "$ncn_target_tool_prefix"; then
9042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9043set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9044echo "$as_me:$LINENO: checking for $ac_word" >&5
9045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9046if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9048else
2429c060
PB
9049 if test -n "$AR_FOR_TARGET"; then
9050 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9051else
c6b750e1
DJ
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063done
9064done
9065
7e0f7140
GK
9066fi
9067fi
c6b750e1 9068AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9069if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9070 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9071echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9072else
c6b750e1
DJ
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
7e0f7140
GK
9075fi
9076
2429c060
PB
9077 fi
9078 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9080set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9081echo "$as_me:$LINENO: checking for $ac_word" >&5
9082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9083if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9085else
2429c060
PB
9086 if test -n "$AR_FOR_TARGET"; then
9087 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9088else
c6b750e1
DJ
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101done
9102
7e0f7140
GK
9103fi
9104fi
c6b750e1 9105AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9106if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9107 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9108echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9109else
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
7e0f7140 9112fi
c6b750e1 9113
2429c060
PB
9114 fi
9115 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9116 done
9117fi
c6b750e1 9118
2429c060
PB
9119if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9120 set dummy ar
7e0f7140 9121 if test $build = $target ; then
2429c060 9122 AR_FOR_TARGET="$2"
7e0f7140 9123 else
2429c060 9124 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9125 fi
d3f5afc4
MS
9126else
9127 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9128fi
9129
3a35eeb3
PB
9130else
9131 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9132fi
9133
9134
9135
9136
9137if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9138 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9139 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9140echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9141 if test -x $with_build_time_tools/as; then
9142 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9143 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9144 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9145echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9146 else
c6b750e1
DJ
9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
3a35eeb3 9149 fi
2429c060
PB
9150 elif test $build != $host && test $have_gcc_for_target = yes; then
9151 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9152 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9153 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9154 fi
9155fi
c6b750e1 9156if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9157 # Extract the first word of "as", so it can be a program name with args.
9158set dummy as; ac_word=$2
c6b750e1
DJ
9159echo "$as_me:$LINENO: checking for $ac_word" >&5
9160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9161if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9163else
c6b750e1
DJ
9164 case $AS_FOR_TARGET in
9165 [\\/]* | ?:[\\/]*)
2429c060
PB
9166 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9167 ;;
2429c060 9168 *)
c6b750e1
DJ
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $gcc_cv_tool_dirs
9171do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180done
9181done
9182
2429c060
PB
9183 ;;
9184esac
9185fi
c6b750e1
DJ
9186AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9187
2429c060 9188if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9189 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9190echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9191else
c6b750e1
DJ
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
2429c060
PB
9194fi
9195
9196fi
9197if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9198
9199
9200if test -n "$AS_FOR_TARGET"; then
9201 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9202elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9203 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9204fi
9205
9206if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9207 for ncn_progname in as; do
9208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9209set dummy ${ncn_progname}; ac_word=$2
9210echo "$as_me:$LINENO: checking for $ac_word" >&5
9211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9212if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 if test -n "$AS_FOR_TARGET"; then
9216 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9217else
9218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219for as_dir in $PATH
9220do
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9225 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9228 fi
9229done
9230done
9231
9232fi
9233fi
9234AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9235if test -n "$AS_FOR_TARGET"; then
9236 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9237echo "${ECHO_T}$AS_FOR_TARGET" >&6
9238else
9239 echo "$as_me:$LINENO: result: no" >&5
9240echo "${ECHO_T}no" >&6
9241fi
9242
9243 done
9244fi
9245
9246if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9247 for ncn_progname in as; do
c6b750e1
DJ
9248 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9249echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9250 if test -x $with_build_time_tools/${ncn_progname}; then
9251 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9252 echo "$as_me:$LINENO: result: yes" >&5
9253echo "${ECHO_T}yes" >&6
2429c060
PB
9254 break
9255 else
c6b750e1
DJ
9256 echo "$as_me:$LINENO: result: no" >&5
9257echo "${ECHO_T}no" >&6
2429c060
PB
9258 fi
9259 done
9260fi
9261
9262if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9263 for ncn_progname in as; do
9264 if test -n "$ncn_target_tool_prefix"; then
9265 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9266set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9267echo "$as_me:$LINENO: checking for $ac_word" >&5
9268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9269if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9271else
9272 if test -n "$AS_FOR_TARGET"; then
9273 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9274else
c6b750e1
DJ
9275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276for as_dir in $PATH
9277do
9278 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=.
9280 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9282 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 break 2
9285 fi
9286done
9287done
9288
2429c060
PB
9289fi
9290fi
c6b750e1 9291AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9292if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9293 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9294echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9295else
c6b750e1
DJ
9296 echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
2429c060
PB
9298fi
9299
9300 fi
9301 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9303set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9304echo "$as_me:$LINENO: checking for $ac_word" >&5
9305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9306if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9308else
9309 if test -n "$AS_FOR_TARGET"; then
9310 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9311else
c6b750e1
DJ
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9319 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9322 fi
9323done
9324done
9325
2429c060
PB
9326fi
9327fi
c6b750e1 9328AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9329if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9330 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9331echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9332else
c6b750e1
DJ
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
2429c060 9335fi
c6b750e1 9336
2429c060
PB
9337 fi
9338 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9339 done
9340fi
c6b750e1 9341
2429c060
PB
9342if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9343 set dummy as
9344 if test $build = $target ; then
9345 AS_FOR_TARGET="$2"
9346 else
9347 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9348 fi
d3f5afc4
MS
9349else
9350 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9351fi
9352
3a35eeb3
PB
9353else
9354 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9355fi
9356
9357
9358
9359
9360if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9361 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9362 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9363echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9364 if test -x $with_build_time_tools/dlltool; then
9365 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9366 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9367 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9368echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9369 else
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
3a35eeb3 9372 fi
2429c060
PB
9373 elif test $build != $host && test $have_gcc_for_target = yes; then
9374 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9375 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9376 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9377 fi
9378fi
c6b750e1 9379if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9380 # Extract the first word of "dlltool", so it can be a program name with args.
9381set dummy dlltool; ac_word=$2
c6b750e1
DJ
9382echo "$as_me:$LINENO: checking for $ac_word" >&5
9383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9384if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9386else
c6b750e1
DJ
9387 case $DLLTOOL_FOR_TARGET in
9388 [\\/]* | ?:[\\/]*)
2429c060
PB
9389 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9390 ;;
2429c060 9391 *)
c6b750e1
DJ
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $gcc_cv_tool_dirs
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9402 fi
9403done
9404done
9405
2429c060
PB
9406 ;;
9407esac
9408fi
c6b750e1
DJ
9409DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9410
2429c060 9411if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9412 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9413echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9414else
c6b750e1
DJ
9415 echo "$as_me:$LINENO: result: no" >&5
9416echo "${ECHO_T}no" >&6
2429c060
PB
9417fi
9418
9419fi
9420if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9421
9422
9423if test -n "$DLLTOOL_FOR_TARGET"; then
9424 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9425elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9426 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9427fi
9428
9429if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9430 for ncn_progname in dlltool; do
9431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9432set dummy ${ncn_progname}; ac_word=$2
9433echo "$as_me:$LINENO: checking for $ac_word" >&5
9434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9435if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437else
9438 if test -n "$DLLTOOL_FOR_TARGET"; then
9439 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9440else
9441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442for as_dir in $PATH
9443do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 break 2
9451 fi
9452done
9453done
9454
9455fi
9456fi
9457DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9458if test -n "$DLLTOOL_FOR_TARGET"; then
9459 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9460echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9461else
9462 echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
9464fi
9465
9466 done
9467fi
9468
9469if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9470 for ncn_progname in dlltool; do
c6b750e1
DJ
9471 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9472echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9473 if test -x $with_build_time_tools/${ncn_progname}; then
9474 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9475 echo "$as_me:$LINENO: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
2429c060
PB
9477 break
9478 else
c6b750e1
DJ
9479 echo "$as_me:$LINENO: result: no" >&5
9480echo "${ECHO_T}no" >&6
2429c060
PB
9481 fi
9482 done
9483fi
9484
9485if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9486 for ncn_progname in dlltool; do
9487 if test -n "$ncn_target_tool_prefix"; then
9488 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9489set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9490echo "$as_me:$LINENO: checking for $ac_word" >&5
9491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9492if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9494else
9495 if test -n "$DLLTOOL_FOR_TARGET"; then
9496 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9497else
c6b750e1
DJ
9498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499for as_dir in $PATH
9500do
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9505 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9508 fi
9509done
9510done
9511
2429c060
PB
9512fi
9513fi
c6b750e1 9514DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9515if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9516 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9517echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9518else
c6b750e1
DJ
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
2429c060
PB
9521fi
9522
9523 fi
9524 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9526set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9527echo "$as_me:$LINENO: checking for $ac_word" >&5
9528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9529if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9531else
9532 if test -n "$DLLTOOL_FOR_TARGET"; then
9533 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9534else
c6b750e1
DJ
9535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547done
9548
2429c060
PB
9549fi
9550fi
c6b750e1 9551DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9552if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9553 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9554echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9555else
c6b750e1
DJ
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
2429c060 9558fi
c6b750e1 9559
2429c060
PB
9560 fi
9561 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9562 done
9563fi
c6b750e1 9564
2429c060
PB
9565if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9566 set dummy dlltool
9567 if test $build = $target ; then
9568 DLLTOOL_FOR_TARGET="$2"
9569 else
9570 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9571 fi
d3f5afc4
MS
9572else
9573 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9574fi
9575
3a35eeb3
PB
9576else
9577 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9578fi
9579
9580
9581
9582
9583if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9584 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9585 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9586echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9587 if test -x $with_build_time_tools/ld; then
9588 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9589 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9590 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9591echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9592 else
c6b750e1
DJ
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
3a35eeb3 9595 fi
2429c060
PB
9596 elif test $build != $host && test $have_gcc_for_target = yes; then
9597 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9598 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9599 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9600 fi
9601fi
c6b750e1 9602if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9603 # Extract the first word of "ld", so it can be a program name with args.
9604set dummy ld; ac_word=$2
c6b750e1
DJ
9605echo "$as_me:$LINENO: checking for $ac_word" >&5
9606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9607if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9609else
c6b750e1
DJ
9610 case $LD_FOR_TARGET in
9611 [\\/]* | ?:[\\/]*)
2429c060
PB
9612 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9613 ;;
2429c060 9614 *)
c6b750e1
DJ
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616for as_dir in $gcc_cv_tool_dirs
9617do
9618 IFS=$as_save_IFS
9619 test -z "$as_dir" && as_dir=.
9620 for ac_exec_ext in '' $ac_executable_extensions; do
9621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9622 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 break 2
9625 fi
9626done
9627done
9628
2429c060
PB
9629 ;;
9630esac
9631fi
c6b750e1
DJ
9632LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9633
2429c060 9634if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9635 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9636echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9637else
c6b750e1
DJ
9638 echo "$as_me:$LINENO: result: no" >&5
9639echo "${ECHO_T}no" >&6
2429c060
PB
9640fi
9641
9642fi
9643if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9644
9645
9646if test -n "$LD_FOR_TARGET"; then
9647 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9648elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9649 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9650fi
9651
9652if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9653 for ncn_progname in ld; do
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655set dummy ${ncn_progname}; ac_word=$2
9656echo "$as_me:$LINENO: checking for $ac_word" >&5
9657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9658if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660else
9661 if test -n "$LD_FOR_TARGET"; then
9662 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9663else
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 break 2
9674 fi
9675done
9676done
9677
9678fi
9679fi
9680LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9681if test -n "$LD_FOR_TARGET"; then
9682 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9683echo "${ECHO_T}$LD_FOR_TARGET" >&6
9684else
9685 echo "$as_me:$LINENO: result: no" >&5
9686echo "${ECHO_T}no" >&6
9687fi
9688
9689 done
9690fi
9691
9692if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9693 for ncn_progname in ld; do
c6b750e1
DJ
9694 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9695echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9696 if test -x $with_build_time_tools/${ncn_progname}; then
9697 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9698 echo "$as_me:$LINENO: result: yes" >&5
9699echo "${ECHO_T}yes" >&6
2429c060
PB
9700 break
9701 else
c6b750e1
DJ
9702 echo "$as_me:$LINENO: result: no" >&5
9703echo "${ECHO_T}no" >&6
2429c060
PB
9704 fi
9705 done
9706fi
9707
9708if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9709 for ncn_progname in ld; do
9710 if test -n "$ncn_target_tool_prefix"; then
9711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9712set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9713echo "$as_me:$LINENO: checking for $ac_word" >&5
9714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9715if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9717else
9718 if test -n "$LD_FOR_TARGET"; then
9719 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9720else
c6b750e1
DJ
9721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722for as_dir in $PATH
9723do
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 break 2
9731 fi
9732done
9733done
9734
2429c060
PB
9735fi
9736fi
c6b750e1 9737LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9738if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9739 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9740echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9741else
c6b750e1
DJ
9742 echo "$as_me:$LINENO: result: no" >&5
9743echo "${ECHO_T}no" >&6
2429c060
PB
9744fi
9745
9746 fi
9747 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9749set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9750echo "$as_me:$LINENO: checking for $ac_word" >&5
9751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9752if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9754else
9755 if test -n "$LD_FOR_TARGET"; then
9756 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9757else
c6b750e1
DJ
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9768 fi
9769done
9770done
9771
2429c060
PB
9772fi
9773fi
c6b750e1 9774LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9775if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9776 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9777echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9778else
c6b750e1
DJ
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
2429c060 9781fi
c6b750e1 9782
2429c060
PB
9783 fi
9784 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9785 done
9786fi
c6b750e1 9787
2429c060
PB
9788if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9789 set dummy ld
9790 if test $build = $target ; then
9791 LD_FOR_TARGET="$2"
9792 else
9793 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9794 fi
d3f5afc4
MS
9795else
9796 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9797fi
9798
3a35eeb3
PB
9799else
9800 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9801fi
9802
9803
9804
9805
9806if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9807 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9808 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9809echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9810 if test -x $with_build_time_tools/lipo; then
9811 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9812 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9813 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9814echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9815 else
c6b750e1
DJ
9816 echo "$as_me:$LINENO: result: no" >&5
9817echo "${ECHO_T}no" >&6
3a35eeb3 9818 fi
2429c060
PB
9819 elif test $build != $host && test $have_gcc_for_target = yes; then
9820 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9821 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9822 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9823 fi
9824fi
9a819804
AO
9825if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9826 # Extract the first word of "lipo", so it can be a program name with args.
9827set dummy lipo; ac_word=$2
9828echo "$as_me:$LINENO: checking for $ac_word" >&5
9829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9830if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832else
9833 case $LIPO_FOR_TARGET in
9834 [\\/]* | ?:[\\/]*)
9835 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9836 ;;
9837 *)
9838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839for as_dir in $gcc_cv_tool_dirs
9840do
9841 IFS=$as_save_IFS
9842 test -z "$as_dir" && as_dir=.
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9845 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9847 break 2
9848 fi
9849done
9850done
9851
9852 ;;
9853esac
9854fi
9855LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9856
9857if test -n "$LIPO_FOR_TARGET"; then
9858 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9859echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9860else
9861 echo "$as_me:$LINENO: result: no" >&5
9862echo "${ECHO_T}no" >&6
9863fi
9864
9865fi
9866if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9867
9868
9869if test -n "$LIPO_FOR_TARGET"; then
9870 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9871elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9872 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9873fi
9874
9875if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9876 for ncn_progname in lipo; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9879echo "$as_me:$LINENO: checking for $ac_word" >&5
9880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9881if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9882 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9883else
9a819804
AO
9884 if test -n "$LIPO_FOR_TARGET"; then
9885 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9886else
9887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
c6b750e1
DJ
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9894 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9897 fi
9898done
9899done
9900
2429c060 9901fi
9a819804
AO
9902fi
9903LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9904if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9905 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9906echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9907else
c6b750e1
DJ
9908 echo "$as_me:$LINENO: result: no" >&5
9909echo "${ECHO_T}no" >&6
2429c060
PB
9910fi
9911
9a819804 9912 done
2429c060 9913fi
9a819804
AO
9914
9915if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9916 for ncn_progname in lipo; do
c6b750e1
DJ
9917 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9918echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9919 if test -x $with_build_time_tools/${ncn_progname}; then
9920 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9921 echo "$as_me:$LINENO: result: yes" >&5
9922echo "${ECHO_T}yes" >&6
2429c060
PB
9923 break
9924 else
c6b750e1
DJ
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
2429c060
PB
9927 fi
9928 done
9929fi
9930
9931if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9932 for ncn_progname in lipo; do
9933 if test -n "$ncn_target_tool_prefix"; then
9934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9935set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9936echo "$as_me:$LINENO: checking for $ac_word" >&5
9937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9938if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9940else
9941 if test -n "$LIPO_FOR_TARGET"; then
9942 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9943else
c6b750e1
DJ
9944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945for as_dir in $PATH
9946do
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9951 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9954 fi
9955done
9956done
9957
2429c060
PB
9958fi
9959fi
c6b750e1 9960LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9961if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9962 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9963echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9964else
c6b750e1
DJ
9965 echo "$as_me:$LINENO: result: no" >&5
9966echo "${ECHO_T}no" >&6
2429c060
PB
9967fi
9968
9969 fi
9970 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9972set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9973echo "$as_me:$LINENO: checking for $ac_word" >&5
9974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9975if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9977else
9978 if test -n "$LIPO_FOR_TARGET"; then
9979 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9980else
c6b750e1
DJ
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9991 fi
9992done
9993done
9994
2429c060
PB
9995fi
9996fi
c6b750e1 9997LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9998if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9999 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10000echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10001else
c6b750e1
DJ
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
2429c060 10004fi
c6b750e1 10005
2429c060
PB
10006 fi
10007 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10008 done
10009fi
c6b750e1 10010
2429c060
PB
10011if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10012 set dummy lipo
10013 if test $build = $target ; then
10014 LIPO_FOR_TARGET="$2"
10015 else
10016 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10017 fi
d3f5afc4
MS
10018else
10019 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10020fi
10021
3a35eeb3
PB
10022else
10023 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10024fi
10025
10026
10027
10028
10029if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10030 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10031 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10032echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10033 if test -x $with_build_time_tools/nm; then
10034 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10035 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10036 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10037echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10038 else
c6b750e1
DJ
10039 echo "$as_me:$LINENO: result: no" >&5
10040echo "${ECHO_T}no" >&6
3a35eeb3 10041 fi
2429c060
PB
10042 elif test $build != $host && test $have_gcc_for_target = yes; then
10043 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10044 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10045 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10046 fi
10047fi
c6b750e1 10048if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10049 # Extract the first word of "nm", so it can be a program name with args.
10050set dummy nm; ac_word=$2
c6b750e1
DJ
10051echo "$as_me:$LINENO: checking for $ac_word" >&5
10052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10053if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10055else
c6b750e1
DJ
10056 case $NM_FOR_TARGET in
10057 [\\/]* | ?:[\\/]*)
2429c060
PB
10058 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10059 ;;
2429c060 10060 *)
c6b750e1
DJ
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $gcc_cv_tool_dirs
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10068 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10071 fi
10072done
10073done
10074
2429c060
PB
10075 ;;
10076esac
10077fi
c6b750e1
DJ
10078NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10079
2429c060 10080if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10081 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10082echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10083else
c6b750e1
DJ
10084 echo "$as_me:$LINENO: result: no" >&5
10085echo "${ECHO_T}no" >&6
2429c060
PB
10086fi
10087
10088fi
10089if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10090
10091
10092if test -n "$NM_FOR_TARGET"; then
10093 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10094elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10095 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10096fi
10097
10098if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10099 for ncn_progname in nm; do
10100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10101set dummy ${ncn_progname}; ac_word=$2
10102echo "$as_me:$LINENO: checking for $ac_word" >&5
10103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10104if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107 if test -n "$NM_FOR_TARGET"; then
10108 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10109else
10110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111for as_dir in $PATH
10112do
10113 IFS=$as_save_IFS
10114 test -z "$as_dir" && as_dir=.
10115 for ac_exec_ext in '' $ac_executable_extensions; do
10116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10117 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 break 2
10120 fi
10121done
10122done
10123
10124fi
10125fi
10126NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10127if test -n "$NM_FOR_TARGET"; then
10128 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10129echo "${ECHO_T}$NM_FOR_TARGET" >&6
10130else
10131 echo "$as_me:$LINENO: result: no" >&5
10132echo "${ECHO_T}no" >&6
10133fi
10134
10135 done
10136fi
10137
10138if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10139 for ncn_progname in nm; do
c6b750e1
DJ
10140 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10141echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10142 if test -x $with_build_time_tools/${ncn_progname}; then
10143 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10144 echo "$as_me:$LINENO: result: yes" >&5
10145echo "${ECHO_T}yes" >&6
2429c060
PB
10146 break
10147 else
c6b750e1
DJ
10148 echo "$as_me:$LINENO: result: no" >&5
10149echo "${ECHO_T}no" >&6
2429c060
PB
10150 fi
10151 done
10152fi
10153
10154if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10155 for ncn_progname in nm; do
10156 if test -n "$ncn_target_tool_prefix"; then
10157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10158set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10159echo "$as_me:$LINENO: checking for $ac_word" >&5
10160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10161if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10163else
55db4b87
PB
10164 if test -n "$NM_FOR_TARGET"; then
10165 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10166else
c6b750e1
DJ
10167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168for as_dir in $PATH
10169do
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10177 fi
10178done
10179done
10180
859789af
AC
10181fi
10182fi
c6b750e1 10183NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10184if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10185 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10186echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10187else
c6b750e1
DJ
10188 echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
859789af
AC
10190fi
10191
2429c060
PB
10192 fi
10193 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10195set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10196echo "$as_me:$LINENO: checking for $ac_word" >&5
10197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10198if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10200else
05cbd757
PB
10201 if test -n "$NM_FOR_TARGET"; then
10202 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10203else
c6b750e1
DJ
10204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10211 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10214 fi
10215done
10216done
10217
859789af
AC
10218fi
10219fi
c6b750e1 10220NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10221if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10222 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10223echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10224else
c6b750e1
DJ
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
859789af 10227fi
c6b750e1 10228
2429c060
PB
10229 fi
10230 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10231 done
10232fi
c6b750e1 10233
05cbd757
PB
10234if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10235 set dummy nm
10236 if test $build = $target ; then
10237 NM_FOR_TARGET="$2"
859789af 10238 else
05cbd757 10239 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10240 fi
d3f5afc4
MS
10241else
10242 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10243fi
10244
3a35eeb3
PB
10245else
10246 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10247fi
10248
10249
10250
10251
10252if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10253 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10254 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10255echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10256 if test -x $with_build_time_tools/objdump; then
10257 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10258 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10259 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10260echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10261 else
c6b750e1
DJ
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
3a35eeb3 10264 fi
2429c060
PB
10265 elif test $build != $host && test $have_gcc_for_target = yes; then
10266 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10267 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10268 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10269 fi
10270fi
c6b750e1 10271if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10272 # Extract the first word of "objdump", so it can be a program name with args.
10273set dummy objdump; ac_word=$2
c6b750e1
DJ
10274echo "$as_me:$LINENO: checking for $ac_word" >&5
10275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10276if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10278else
c6b750e1
DJ
10279 case $OBJDUMP_FOR_TARGET in
10280 [\\/]* | ?:[\\/]*)
2429c060
PB
10281 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10282 ;;
2429c060 10283 *)
c6b750e1
DJ
10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $gcc_cv_tool_dirs
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296done
10297
2429c060
PB
10298 ;;
10299esac
10300fi
c6b750e1
DJ
10301OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10302
2429c060 10303if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10304 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10305echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10306else
c6b750e1
DJ
10307 echo "$as_me:$LINENO: result: no" >&5
10308echo "${ECHO_T}no" >&6
2429c060
PB
10309fi
10310
10311fi
10312if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10313
10314
10315if test -n "$OBJDUMP_FOR_TARGET"; then
10316 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10317elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10318 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10319fi
10320
10321if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10322 for ncn_progname in objdump; do
10323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10324set dummy ${ncn_progname}; ac_word=$2
10325echo "$as_me:$LINENO: checking for $ac_word" >&5
10326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10327if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329else
10330 if test -n "$OBJDUMP_FOR_TARGET"; then
10331 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10332else
10333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334for as_dir in $PATH
10335do
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 break 2
10343 fi
10344done
10345done
10346
10347fi
10348fi
10349OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10350if test -n "$OBJDUMP_FOR_TARGET"; then
10351 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10352echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10353else
10354 echo "$as_me:$LINENO: result: no" >&5
10355echo "${ECHO_T}no" >&6
10356fi
10357
10358 done
10359fi
10360
10361if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10362 for ncn_progname in objdump; do
c6b750e1
DJ
10363 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10364echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10365 if test -x $with_build_time_tools/${ncn_progname}; then
10366 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10367 echo "$as_me:$LINENO: result: yes" >&5
10368echo "${ECHO_T}yes" >&6
2429c060
PB
10369 break
10370 else
c6b750e1
DJ
10371 echo "$as_me:$LINENO: result: no" >&5
10372echo "${ECHO_T}no" >&6
2429c060
PB
10373 fi
10374 done
10375fi
10376
10377if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10378 for ncn_progname in objdump; do
10379 if test -n "$ncn_target_tool_prefix"; then
10380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10381set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10382echo "$as_me:$LINENO: checking for $ac_word" >&5
10383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10384if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10386else
10387 if test -n "$OBJDUMP_FOR_TARGET"; then
10388 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10389else
c6b750e1
DJ
10390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391for as_dir in $PATH
10392do
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10400 fi
10401done
10402done
10403
5ae72758
DJ
10404fi
10405fi
c6b750e1 10406OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10407if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10408 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10409echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10410else
c6b750e1
DJ
10411 echo "$as_me:$LINENO: result: no" >&5
10412echo "${ECHO_T}no" >&6
5ae72758
DJ
10413fi
10414
2429c060
PB
10415 fi
10416 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10418set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10419echo "$as_me:$LINENO: checking for $ac_word" >&5
10420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10421if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10423else
10424 if test -n "$OBJDUMP_FOR_TARGET"; then
10425 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10426else
c6b750e1
DJ
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_exec_ext in '' $ac_executable_extensions; do
10433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10434 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 break 2
10437 fi
10438done
10439done
10440
5ae72758
DJ
10441fi
10442fi
c6b750e1 10443OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10444if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10445 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10446echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10447else
c6b750e1
DJ
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
5ae72758 10450fi
c6b750e1 10451
2429c060
PB
10452 fi
10453 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10454 done
10455fi
c6b750e1 10456
5ae72758
DJ
10457if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10458 set dummy objdump
10459 if test $build = $target ; then
10460 OBJDUMP_FOR_TARGET="$2"
10461 else
10462 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10463 fi
d3f5afc4
MS
10464else
10465 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10466fi
10467
3a35eeb3
PB
10468else
10469 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10470fi
10471
10472
10473
10474
10475if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10476 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10477 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10478echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10479 if test -x $with_build_time_tools/ranlib; then
10480 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10481 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10482 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10483echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10484 else
c6b750e1
DJ
10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
3a35eeb3 10487 fi
2429c060
PB
10488 elif test $build != $host && test $have_gcc_for_target = yes; then
10489 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10490 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10491 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10492 fi
10493fi
c6b750e1 10494if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10495 # Extract the first word of "ranlib", so it can be a program name with args.
10496set dummy ranlib; ac_word=$2
c6b750e1
DJ
10497echo "$as_me:$LINENO: checking for $ac_word" >&5
10498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10499if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10501else
c6b750e1
DJ
10502 case $RANLIB_FOR_TARGET in
10503 [\\/]* | ?:[\\/]*)
2429c060
PB
10504 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10505 ;;
2429c060 10506 *)
c6b750e1
DJ
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508for as_dir in $gcc_cv_tool_dirs
10509do
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 break 2
10517 fi
10518done
10519done
10520
2429c060
PB
10521 ;;
10522esac
10523fi
c6b750e1
DJ
10524RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10525
2429c060 10526if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10527 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10528echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10529else
c6b750e1
DJ
10530 echo "$as_me:$LINENO: result: no" >&5
10531echo "${ECHO_T}no" >&6
2429c060
PB
10532fi
10533
10534fi
10535if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10536
10537
10538if test -n "$RANLIB_FOR_TARGET"; then
10539 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10540elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10541 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10542fi
10543
10544if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10545 for ncn_progname in ranlib; do
10546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10547set dummy ${ncn_progname}; ac_word=$2
10548echo "$as_me:$LINENO: checking for $ac_word" >&5
10549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10550if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552else
10553 if test -n "$RANLIB_FOR_TARGET"; then
10554 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10555else
10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557for as_dir in $PATH
10558do
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10563 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567done
10568done
10569
10570fi
10571fi
10572RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10573if test -n "$RANLIB_FOR_TARGET"; then
10574 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10575echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10576else
10577 echo "$as_me:$LINENO: result: no" >&5
10578echo "${ECHO_T}no" >&6
10579fi
10580
10581 done
10582fi
10583
10584if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10585 for ncn_progname in ranlib; do
c6b750e1
DJ
10586 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10587echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10588 if test -x $with_build_time_tools/${ncn_progname}; then
10589 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10590 echo "$as_me:$LINENO: result: yes" >&5
10591echo "${ECHO_T}yes" >&6
2429c060
PB
10592 break
10593 else
c6b750e1
DJ
10594 echo "$as_me:$LINENO: result: no" >&5
10595echo "${ECHO_T}no" >&6
2429c060
PB
10596 fi
10597 done
10598fi
10599
10600if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10601 for ncn_progname in ranlib; do
10602 if test -n "$ncn_target_tool_prefix"; then
10603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10604set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10605echo "$as_me:$LINENO: checking for $ac_word" >&5
10606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10607if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10609else
55db4b87
PB
10610 if test -n "$RANLIB_FOR_TARGET"; then
10611 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10612else
c6b750e1
DJ
10613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614for as_dir in $PATH
10615do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10620 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10623 fi
10624done
10625done
10626
859789af
AC
10627fi
10628fi
c6b750e1 10629RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10630if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10631 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10632echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10633else
c6b750e1
DJ
10634 echo "$as_me:$LINENO: result: no" >&5
10635echo "${ECHO_T}no" >&6
859789af
AC
10636fi
10637
2429c060
PB
10638 fi
10639 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10641set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10642echo "$as_me:$LINENO: checking for $ac_word" >&5
10643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10644if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10646else
05cbd757
PB
10647 if test -n "$RANLIB_FOR_TARGET"; then
10648 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10649else
c6b750e1
DJ
10650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651for as_dir in $PATH
10652do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
10661done
10662done
10663
859789af
AC
10664fi
10665fi
c6b750e1 10666RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10667if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10668 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10669echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10670else
c6b750e1
DJ
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
859789af 10673fi
c6b750e1 10674
2429c060
PB
10675 fi
10676 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10677 done
10678fi
c6b750e1 10679
2429c060
PB
10680if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10681 set dummy ranlib
10682 if test $build = $target ; then
10683 RANLIB_FOR_TARGET="$2"
10684 else
10685 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10686 fi
d3f5afc4
MS
10687else
10688 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10689fi
05cbd757 10690
3a35eeb3
PB
10691else
10692 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10693fi
10694
2429c060
PB
10695
10696
10697
10698if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10699 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10700 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10701echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10702 if test -x $with_build_time_tools/strip; then
10703 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10704 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10705 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10706echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10707 else
c6b750e1
DJ
10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
3a35eeb3 10710 fi
2429c060
PB
10711 elif test $build != $host && test $have_gcc_for_target = yes; then
10712 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10713 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10714 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10715 fi
10716fi
c6b750e1 10717if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10718 # Extract the first word of "strip", so it can be a program name with args.
10719set dummy strip; ac_word=$2
c6b750e1
DJ
10720echo "$as_me:$LINENO: checking for $ac_word" >&5
10721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10722if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10724else
c6b750e1
DJ
10725 case $STRIP_FOR_TARGET in
10726 [\\/]* | ?:[\\/]*)
2429c060
PB
10727 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10728 ;;
2429c060 10729 *)
c6b750e1
DJ
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731for as_dir in $gcc_cv_tool_dirs
10732do
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10737 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10740 fi
10741done
10742done
10743
2429c060
PB
10744 ;;
10745esac
10746fi
c6b750e1
DJ
10747STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10748
2429c060 10749if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10750 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10751echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10752else
c6b750e1
DJ
10753 echo "$as_me:$LINENO: result: no" >&5
10754echo "${ECHO_T}no" >&6
2429c060
PB
10755fi
10756
10757fi
10758if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10759
10760
10761if test -n "$STRIP_FOR_TARGET"; then
10762 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10763elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10764 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10765fi
10766
10767if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10768 for ncn_progname in strip; do
10769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10770set dummy ${ncn_progname}; ac_word=$2
10771echo "$as_me:$LINENO: checking for $ac_word" >&5
10772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775else
10776 if test -n "$STRIP_FOR_TARGET"; then
10777 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10778else
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790done
10791done
10792
10793fi
10794fi
10795STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10796if test -n "$STRIP_FOR_TARGET"; then
10797 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10798echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10799else
10800 echo "$as_me:$LINENO: result: no" >&5
10801echo "${ECHO_T}no" >&6
10802fi
10803
10804 done
10805fi
10806
10807if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10808 for ncn_progname in strip; do
c6b750e1
DJ
10809 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10810echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10811 if test -x $with_build_time_tools/${ncn_progname}; then
10812 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10813 echo "$as_me:$LINENO: result: yes" >&5
10814echo "${ECHO_T}yes" >&6
2429c060
PB
10815 break
10816 else
c6b750e1
DJ
10817 echo "$as_me:$LINENO: result: no" >&5
10818echo "${ECHO_T}no" >&6
2429c060
PB
10819 fi
10820 done
10821fi
10822
10823if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10824 for ncn_progname in strip; do
10825 if test -n "$ncn_target_tool_prefix"; then
10826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10827set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10828echo "$as_me:$LINENO: checking for $ac_word" >&5
10829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10832else
10833 if test -n "$STRIP_FOR_TARGET"; then
10834 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847done
10848done
10849
7e0f7140
GK
10850fi
10851fi
c6b750e1 10852STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10853if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10854 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10855echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10856else
c6b750e1
DJ
10857 echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
7e0f7140
GK
10859fi
10860
2429c060
PB
10861 fi
10862 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10864set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10865echo "$as_me:$LINENO: checking for $ac_word" >&5
10866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10867if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10869else
10870 if test -n "$STRIP_FOR_TARGET"; then
10871 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10872else
c6b750e1
DJ
10873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874for as_dir in $PATH
10875do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 for ac_exec_ext in '' $ac_executable_extensions; do
10879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10880 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 break 2
10883 fi
10884done
10885done
10886
7e0f7140
GK
10887fi
10888fi
c6b750e1 10889STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10890if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10891 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10892echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10893else
c6b750e1
DJ
10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
7e0f7140 10896fi
c6b750e1 10897
2429c060
PB
10898 fi
10899 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10900 done
10901fi
c6b750e1 10902
7e0f7140
GK
10903if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10904 set dummy strip
10905 if test $build = $target ; then
10906 STRIP_FOR_TARGET="$2"
10907 else
10908 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10909 fi
d3f5afc4
MS
10910else
10911 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10912fi
10913
3a35eeb3
PB
10914else
10915 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10916fi
10917
10918
10919
10920
10921if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10922 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10923 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10924echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10925 if test -x $with_build_time_tools/windres; then
10926 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10927 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10928 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10929echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10930 else
c6b750e1
DJ
10931 echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6
3a35eeb3 10933 fi
2429c060
PB
10934 elif test $build != $host && test $have_gcc_for_target = yes; then
10935 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10936 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10937 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10938 fi
10939fi
c6b750e1 10940if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10941 # Extract the first word of "windres", so it can be a program name with args.
10942set dummy windres; ac_word=$2
c6b750e1
DJ
10943echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10945if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10947else
c6b750e1
DJ
10948 case $WINDRES_FOR_TARGET in
10949 [\\/]* | ?:[\\/]*)
2429c060
PB
10950 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10951 ;;
2429c060 10952 *)
c6b750e1
DJ
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954for as_dir in $gcc_cv_tool_dirs
10955do
10956 IFS=$as_save_IFS
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10960 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 break 2
10963 fi
10964done
10965done
10966
2429c060
PB
10967 ;;
10968esac
10969fi
c6b750e1
DJ
10970WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10971
2429c060 10972if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10973 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10974echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10975else
c6b750e1
DJ
10976 echo "$as_me:$LINENO: result: no" >&5
10977echo "${ECHO_T}no" >&6
2429c060
PB
10978fi
10979
10980fi
10981if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10982
10983
10984if test -n "$WINDRES_FOR_TARGET"; then
10985 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10986elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10987 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10988fi
10989
10990if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10991 for ncn_progname in windres; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993set dummy ${ncn_progname}; ac_word=$2
10994echo "$as_me:$LINENO: checking for $ac_word" >&5
10995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10996if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998else
10999 if test -n "$WINDRES_FOR_TARGET"; then
11000 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11001else
11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11012 fi
11013done
11014done
11015
11016fi
11017fi
11018WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11019if test -n "$WINDRES_FOR_TARGET"; then
11020 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11021echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11022else
11023 echo "$as_me:$LINENO: result: no" >&5
11024echo "${ECHO_T}no" >&6
11025fi
11026
11027 done
11028fi
11029
11030if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11031 for ncn_progname in windres; do
c6b750e1
DJ
11032 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11033echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11034 if test -x $with_build_time_tools/${ncn_progname}; then
11035 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11036 echo "$as_me:$LINENO: result: yes" >&5
11037echo "${ECHO_T}yes" >&6
2429c060
PB
11038 break
11039 else
c6b750e1
DJ
11040 echo "$as_me:$LINENO: result: no" >&5
11041echo "${ECHO_T}no" >&6
2429c060
PB
11042 fi
11043 done
11044fi
11045
11046if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11047 for ncn_progname in windres; do
11048 if test -n "$ncn_target_tool_prefix"; then
11049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11051echo "$as_me:$LINENO: checking for $ac_word" >&5
11052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11053if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11055else
55db4b87
PB
11056 if test -n "$WINDRES_FOR_TARGET"; then
11057 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11058else
c6b750e1
DJ
11059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060for as_dir in $PATH
11061do
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11066 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11068 break 2
11069 fi
11070done
11071done
11072
859789af
AC
11073fi
11074fi
c6b750e1 11075WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11076if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11077 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11078echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11079else
c6b750e1
DJ
11080 echo "$as_me:$LINENO: result: no" >&5
11081echo "${ECHO_T}no" >&6
859789af
AC
11082fi
11083
2429c060
PB
11084 fi
11085 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11087set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11088echo "$as_me:$LINENO: checking for $ac_word" >&5
11089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11092else
05cbd757
PB
11093 if test -n "$WINDRES_FOR_TARGET"; then
11094 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11095else
c6b750e1
DJ
11096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11106 fi
11107done
11108done
11109
859789af
AC
11110fi
11111fi
c6b750e1 11112WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11113if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11114 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11115echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11116else
c6b750e1
DJ
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
859789af 11119fi
c6b750e1 11120
2429c060
PB
11121 fi
11122 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11123 done
11124fi
c6b750e1 11125
05cbd757
PB
11126if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11127 set dummy windres
11128 if test $build = $target ; then
11129 WINDRES_FOR_TARGET="$2"
859789af 11130 else
05cbd757 11131 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11132 fi
d3f5afc4
MS
11133else
11134 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11135fi
11136
3a35eeb3
PB
11137else
11138 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11139fi
11140
852e5f18 11141
0c24b341
NC
11142
11143
11144if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11145 if test -n "$with_build_time_tools"; then
11146 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11147echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11148 if test -x $with_build_time_tools/windmc; then
11149 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11150 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11151 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11152echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11153 else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156 fi
11157 elif test $build != $host && test $have_gcc_for_target = yes; then
11158 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11159 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11160 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11161 fi
11162fi
11163if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11164 # Extract the first word of "windmc", so it can be a program name with args.
11165set dummy windmc; ac_word=$2
11166echo "$as_me:$LINENO: checking for $ac_word" >&5
11167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11168if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170else
11171 case $WINDMC_FOR_TARGET in
11172 [\\/]* | ?:[\\/]*)
11173 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11174 ;;
11175 *)
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177for as_dir in $gcc_cv_tool_dirs
11178do
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11186 fi
11187done
11188done
11189
11190 ;;
11191esac
11192fi
11193WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11194
11195if test -n "$WINDMC_FOR_TARGET"; then
11196 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11197echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11198else
11199 echo "$as_me:$LINENO: result: no" >&5
11200echo "${ECHO_T}no" >&6
11201fi
11202
11203fi
11204if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11205
11206
11207if test -n "$WINDMC_FOR_TARGET"; then
11208 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11209elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11210 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11211fi
11212
11213if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11214 for ncn_progname in windmc; do
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216set dummy ${ncn_progname}; ac_word=$2
11217echo "$as_me:$LINENO: checking for $ac_word" >&5
11218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11219if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221else
11222 if test -n "$WINDMC_FOR_TARGET"; then
11223 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11224else
11225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $PATH
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236done
11237done
11238
11239fi
11240fi
11241WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11242if test -n "$WINDMC_FOR_TARGET"; then
11243 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11244echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11245else
11246 echo "$as_me:$LINENO: result: no" >&5
11247echo "${ECHO_T}no" >&6
11248fi
11249
11250 done
11251fi
11252
11253if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11254 for ncn_progname in windmc; do
11255 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11256echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11257 if test -x $with_build_time_tools/${ncn_progname}; then
11258 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11259 echo "$as_me:$LINENO: result: yes" >&5
11260echo "${ECHO_T}yes" >&6
11261 break
11262 else
11263 echo "$as_me:$LINENO: result: no" >&5
11264echo "${ECHO_T}no" >&6
11265 fi
11266 done
11267fi
11268
11269if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11270 for ncn_progname in windmc; do
11271 if test -n "$ncn_target_tool_prefix"; then
11272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11273set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11274echo "$as_me:$LINENO: checking for $ac_word" >&5
11275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11276if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278else
11279 if test -n "$WINDMC_FOR_TARGET"; then
11280 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293done
11294done
11295
11296fi
11297fi
11298WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11299if test -n "$WINDMC_FOR_TARGET"; then
11300 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11301echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11302else
11303 echo "$as_me:$LINENO: result: no" >&5
11304echo "${ECHO_T}no" >&6
11305fi
11306
11307 fi
11308 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11310set dummy ${ncn_progname}; ac_word=$2
11311echo "$as_me:$LINENO: checking for $ac_word" >&5
11312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11313if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 if test -n "$WINDMC_FOR_TARGET"; then
11317 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11318else
11319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320for as_dir in $PATH
11321do
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11326 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11329 fi
11330done
11331done
11332
11333fi
11334fi
11335WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11336if test -n "$WINDMC_FOR_TARGET"; then
11337 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11338echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11339else
11340 echo "$as_me:$LINENO: result: no" >&5
11341echo "${ECHO_T}no" >&6
11342fi
11343
11344 fi
11345 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11346 done
11347fi
11348
11349if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11350 set dummy windmc
11351 if test $build = $target ; then
11352 WINDMC_FOR_TARGET="$2"
11353 else
11354 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11355 fi
11356else
11357 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11358fi
11359
11360else
11361 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11362fi
11363
11364
be01d343
PB
11365RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11366
c6b750e1
DJ
11367echo "$as_me:$LINENO: checking where to find the target ar" >&5
11368echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11369if test "x${build}" != "x${host}" ; then
2429c060
PB
11370 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11371 # We already found the complete path
b8025f34
AS
11372 ac_dir=`dirname $AR_FOR_TARGET`
11373 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11374echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11375 else
11376 # Canadian cross, just use what we found
c6b750e1
DJ
11377 echo "$as_me:$LINENO: result: pre-installed" >&5
11378echo "${ECHO_T}pre-installed" >&6
2429c060 11379 fi
be01d343
PB
11380else
11381 ok=yes
11382 case " ${configdirs} " in
11383 *" binutils "*) ;;
11384 *) ok=no ;;
11385 esac
c6b750e1 11386
be01d343
PB
11387 if test $ok = yes; then
11388 # An in-tree tool is available and we can use it
11389 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11390 echo "$as_me:$LINENO: result: just compiled" >&5
11391echo "${ECHO_T}just compiled" >&6
2429c060
PB
11392 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11393 # We already found the complete path
b8025f34
AS
11394 ac_dir=`dirname $AR_FOR_TARGET`
11395 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11396echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11397 elif test "x$target" = "x$host"; then
11398 # We can use an host tool
11399 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11400 echo "$as_me:$LINENO: result: host tool" >&5
11401echo "${ECHO_T}host tool" >&6
be01d343
PB
11402 else
11403 # We need a cross tool
c6b750e1
DJ
11404 echo "$as_me:$LINENO: result: pre-installed" >&5
11405echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11406 fi
11407fi
4b900473 11408
c6b750e1
DJ
11409echo "$as_me:$LINENO: checking where to find the target as" >&5
11410echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11411if test "x${build}" != "x${host}" ; then
2429c060
PB
11412 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11413 # We already found the complete path
b8025f34
AS
11414 ac_dir=`dirname $AS_FOR_TARGET`
11415 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11416echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11417 else
11418 # Canadian cross, just use what we found
c6b750e1
DJ
11419 echo "$as_me:$LINENO: result: pre-installed" >&5
11420echo "${ECHO_T}pre-installed" >&6
2429c060 11421 fi
be01d343
PB
11422else
11423 ok=yes
11424 case " ${configdirs} " in
11425 *" gas "*) ;;
11426 *) ok=no ;;
11427 esac
c6b750e1 11428
be01d343
PB
11429 if test $ok = yes; then
11430 # An in-tree tool is available and we can use it
11431 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11432 echo "$as_me:$LINENO: result: just compiled" >&5
11433echo "${ECHO_T}just compiled" >&6
2429c060
PB
11434 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11435 # We already found the complete path
b8025f34
AS
11436 ac_dir=`dirname $AS_FOR_TARGET`
11437 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11438echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11439 elif test "x$target" = "x$host"; then
11440 # We can use an host tool
11441 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11442 echo "$as_me:$LINENO: result: host tool" >&5
11443echo "${ECHO_T}host tool" >&6
be01d343
PB
11444 else
11445 # We need a cross tool
c6b750e1
DJ
11446 echo "$as_me:$LINENO: result: pre-installed" >&5
11447echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11448 fi
11449fi
4b900473 11450
c6b750e1
DJ
11451echo "$as_me:$LINENO: checking where to find the target cc" >&5
11452echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11453if test "x${build}" != "x${host}" ; then
2429c060
PB
11454 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11455 # We already found the complete path
b8025f34
AS
11456 ac_dir=`dirname $CC_FOR_TARGET`
11457 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11458echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11459 else
11460 # Canadian cross, just use what we found
c6b750e1
DJ
11461 echo "$as_me:$LINENO: result: pre-installed" >&5
11462echo "${ECHO_T}pre-installed" >&6
2429c060 11463 fi
be01d343
PB
11464else
11465 ok=yes
11466 case " ${configdirs} " in
11467 *" gcc "*) ;;
11468 *) ok=no ;;
11469 esac
c6b750e1 11470
be01d343
PB
11471 if test $ok = yes; then
11472 # An in-tree tool is available and we can use it
11473 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11474 echo "$as_me:$LINENO: result: just compiled" >&5
11475echo "${ECHO_T}just compiled" >&6
2429c060
PB
11476 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11477 # We already found the complete path
b8025f34
AS
11478 ac_dir=`dirname $CC_FOR_TARGET`
11479 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11480echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11481 elif test "x$target" = "x$host"; then
11482 # We can use an host tool
11483 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11484 echo "$as_me:$LINENO: result: host tool" >&5
11485echo "${ECHO_T}host tool" >&6
be01d343
PB
11486 else
11487 # We need a cross tool
c6b750e1
DJ
11488 echo "$as_me:$LINENO: result: pre-installed" >&5
11489echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11490 fi
11491fi
4b900473 11492
c6b750e1
DJ
11493echo "$as_me:$LINENO: checking where to find the target c++" >&5
11494echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11495if test "x${build}" != "x${host}" ; then
2429c060
PB
11496 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11497 # We already found the complete path
b8025f34
AS
11498 ac_dir=`dirname $CXX_FOR_TARGET`
11499 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11500echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11501 else
11502 # Canadian cross, just use what we found
c6b750e1
DJ
11503 echo "$as_me:$LINENO: result: pre-installed" >&5
11504echo "${ECHO_T}pre-installed" >&6
2429c060 11505 fi
be01d343
PB
11506else
11507 ok=yes
11508 case " ${configdirs} " in
11509 *" gcc "*) ;;
11510 *) ok=no ;;
11511 esac
11512 case ,${enable_languages}, in
11513 *,c++,*) ;;
11514 *) ok=no ;;
11515 esac
11516 if test $ok = yes; then
11517 # An in-tree tool is available and we can use it
11518 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'
c6b750e1
DJ
11519 echo "$as_me:$LINENO: result: just compiled" >&5
11520echo "${ECHO_T}just compiled" >&6
2429c060
PB
11521 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11522 # We already found the complete path
b8025f34
AS
11523 ac_dir=`dirname $CXX_FOR_TARGET`
11524 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11525echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11526 elif test "x$target" = "x$host"; then
11527 # We can use an host tool
11528 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11529 echo "$as_me:$LINENO: result: host tool" >&5
11530echo "${ECHO_T}host tool" >&6
be01d343
PB
11531 else
11532 # We need a cross tool
c6b750e1
DJ
11533 echo "$as_me:$LINENO: result: pre-installed" >&5
11534echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11535 fi
11536fi
4b900473 11537
c6b750e1
DJ
11538echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11539echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11540if test "x${build}" != "x${host}" ; then
2429c060
PB
11541 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11542 # We already found the complete path
b8025f34
AS
11543 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11544 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11545echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11546 else
11547 # Canadian cross, just use what we found
c6b750e1
DJ
11548 echo "$as_me:$LINENO: result: pre-installed" >&5
11549echo "${ECHO_T}pre-installed" >&6
2429c060 11550 fi
be01d343
PB
11551else
11552 ok=yes
11553 case " ${configdirs} " in
11554 *" gcc "*) ;;
11555 *) ok=no ;;
11556 esac
11557 case ,${enable_languages}, in
11558 *,c++,*) ;;
11559 *) ok=no ;;
11560 esac
11561 if test $ok = yes; then
11562 # An in-tree tool is available and we can use it
11563 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'
c6b750e1
DJ
11564 echo "$as_me:$LINENO: result: just compiled" >&5
11565echo "${ECHO_T}just compiled" >&6
2429c060
PB
11566 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11567 # We already found the complete path
b8025f34
AS
11568 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11569 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11570echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11571 elif test "x$target" = "x$host"; then
11572 # We can use an host tool
11573 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11574 echo "$as_me:$LINENO: result: host tool" >&5
11575echo "${ECHO_T}host tool" >&6
be01d343
PB
11576 else
11577 # We need a cross tool
c6b750e1
DJ
11578 echo "$as_me:$LINENO: result: pre-installed" >&5
11579echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11580 fi
11581fi
4b900473 11582
c6b750e1
DJ
11583echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11584echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11585if test "x${build}" != "x${host}" ; then
2429c060
PB
11586 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11587 # We already found the complete path
b8025f34
AS
11588 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11589 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11590echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11591 else
11592 # Canadian cross, just use what we found
c6b750e1
DJ
11593 echo "$as_me:$LINENO: result: pre-installed" >&5
11594echo "${ECHO_T}pre-installed" >&6
2429c060 11595 fi
be01d343
PB
11596else
11597 ok=yes
11598 case " ${configdirs} " in
11599 *" binutils "*) ;;
11600 *) ok=no ;;
11601 esac
c6b750e1 11602
be01d343
PB
11603 if test $ok = yes; then
11604 # An in-tree tool is available and we can use it
11605 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11606 echo "$as_me:$LINENO: result: just compiled" >&5
11607echo "${ECHO_T}just compiled" >&6
2429c060
PB
11608 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11609 # We already found the complete path
b8025f34
AS
11610 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11611 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11612echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11613 elif test "x$target" = "x$host"; then
11614 # We can use an host tool
11615 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11616 echo "$as_me:$LINENO: result: host tool" >&5
11617echo "${ECHO_T}host tool" >&6
be01d343
PB
11618 else
11619 # We need a cross tool
c6b750e1
DJ
11620 echo "$as_me:$LINENO: result: pre-installed" >&5
11621echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11622 fi
11623fi
4b900473 11624
c6b750e1
DJ
11625echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11626echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11627if test "x${build}" != "x${host}" ; then
2429c060
PB
11628 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11629 # We already found the complete path
b8025f34
AS
11630 ac_dir=`dirname $GCC_FOR_TARGET`
11631 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11632echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11633 else
11634 # Canadian cross, just use what we found
c6b750e1
DJ
11635 echo "$as_me:$LINENO: result: pre-installed" >&5
11636echo "${ECHO_T}pre-installed" >&6
2429c060 11637 fi
be01d343
PB
11638else
11639 ok=yes
11640 case " ${configdirs} " in
11641 *" gcc "*) ;;
11642 *) ok=no ;;
11643 esac
c6b750e1 11644
be01d343
PB
11645 if test $ok = yes; then
11646 # An in-tree tool is available and we can use it
11647 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11648 echo "$as_me:$LINENO: result: just compiled" >&5
11649echo "${ECHO_T}just compiled" >&6
2429c060
PB
11650 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11651 # We already found the complete path
b8025f34
AS
11652 ac_dir=`dirname $GCC_FOR_TARGET`
11653 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11654echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11655 elif test "x$target" = "x$host"; then
11656 # We can use an host tool
11657 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11658 echo "$as_me:$LINENO: result: host tool" >&5
11659echo "${ECHO_T}host tool" >&6
be01d343
PB
11660 else
11661 # We need a cross tool
c6b750e1
DJ
11662 echo "$as_me:$LINENO: result: pre-installed" >&5
11663echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11664 fi
11665fi
4b900473 11666
c6b750e1
DJ
11667echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11668echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11669if test "x${build}" != "x${host}" ; then
2429c060
PB
11670 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11671 # We already found the complete path
b8025f34
AS
11672 ac_dir=`dirname $GCJ_FOR_TARGET`
11673 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11674echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11675 else
11676 # Canadian cross, just use what we found
c6b750e1
DJ
11677 echo "$as_me:$LINENO: result: pre-installed" >&5
11678echo "${ECHO_T}pre-installed" >&6
2429c060 11679 fi
be01d343
PB
11680else
11681 ok=yes
11682 case " ${configdirs} " in
11683 *" gcc "*) ;;
11684 *) ok=no ;;
11685 esac
11686 case ,${enable_languages}, in
11687 *,java,*) ;;
11688 *) ok=no ;;
11689 esac
11690 if test $ok = yes; then
11691 # An in-tree tool is available and we can use it
11692 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11693 echo "$as_me:$LINENO: result: just compiled" >&5
11694echo "${ECHO_T}just compiled" >&6
2429c060
PB
11695 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11696 # We already found the complete path
b8025f34
AS
11697 ac_dir=`dirname $GCJ_FOR_TARGET`
11698 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11699echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11700 elif test "x$target" = "x$host"; then
11701 # We can use an host tool
11702 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11703 echo "$as_me:$LINENO: result: host tool" >&5
11704echo "${ECHO_T}host tool" >&6
be01d343
PB
11705 else
11706 # We need a cross tool
c6b750e1
DJ
11707 echo "$as_me:$LINENO: result: pre-installed" >&5
11708echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11709 fi
11710fi
4b900473 11711
c6b750e1
DJ
11712echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11713echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11714if test "x${build}" != "x${host}" ; then
2429c060
PB
11715 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11716 # We already found the complete path
b8025f34
AS
11717 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11719echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11720 else
11721 # Canadian cross, just use what we found
c6b750e1
DJ
11722 echo "$as_me:$LINENO: result: pre-installed" >&5
11723echo "${ECHO_T}pre-installed" >&6
2429c060 11724 fi
be01d343
PB
11725else
11726 ok=yes
11727 case " ${configdirs} " in
11728 *" gcc "*) ;;
11729 *) ok=no ;;
11730 esac
11731 case ,${enable_languages}, in
11732 *,fortran,*) ;;
11733 *) ok=no ;;
11734 esac
11735 if test $ok = yes; then
11736 # An in-tree tool is available and we can use it
11737 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11738 echo "$as_me:$LINENO: result: just compiled" >&5
11739echo "${ECHO_T}just compiled" >&6
2429c060
PB
11740 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11741 # We already found the complete path
b8025f34
AS
11742 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11743 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11744echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11745 elif test "x$target" = "x$host"; then
11746 # We can use an host tool
11747 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11748 echo "$as_me:$LINENO: result: host tool" >&5
11749echo "${ECHO_T}host tool" >&6
be01d343
PB
11750 else
11751 # We need a cross tool
c6b750e1
DJ
11752 echo "$as_me:$LINENO: result: pre-installed" >&5
11753echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11754 fi
11755fi
4b900473 11756
c6b750e1
DJ
11757echo "$as_me:$LINENO: checking where to find the target ld" >&5
11758echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11759if test "x${build}" != "x${host}" ; then
2429c060
PB
11760 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11761 # We already found the complete path
b8025f34
AS
11762 ac_dir=`dirname $LD_FOR_TARGET`
11763 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11764echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11765 else
11766 # Canadian cross, just use what we found
c6b750e1
DJ
11767 echo "$as_me:$LINENO: result: pre-installed" >&5
11768echo "${ECHO_T}pre-installed" >&6
2429c060 11769 fi
be01d343
PB
11770else
11771 ok=yes
11772 case " ${configdirs} " in
11773 *" ld "*) ;;
11774 *) ok=no ;;
11775 esac
c6b750e1 11776
be01d343
PB
11777 if test $ok = yes; then
11778 # An in-tree tool is available and we can use it
11779 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11780 echo "$as_me:$LINENO: result: just compiled" >&5
11781echo "${ECHO_T}just compiled" >&6
2429c060
PB
11782 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11783 # We already found the complete path
b8025f34
AS
11784 ac_dir=`dirname $LD_FOR_TARGET`
11785 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11786echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11787 elif test "x$target" = "x$host"; then
11788 # We can use an host tool
11789 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11790 echo "$as_me:$LINENO: result: host tool" >&5
11791echo "${ECHO_T}host tool" >&6
be01d343
PB
11792 else
11793 # We need a cross tool
c6b750e1
DJ
11794 echo "$as_me:$LINENO: result: pre-installed" >&5
11795echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11796 fi
11797fi
4b900473 11798
c6b750e1
DJ
11799echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11800echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11801if test "x${build}" != "x${host}" ; then
2429c060
PB
11802 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11803 # We already found the complete path
b8025f34
AS
11804 ac_dir=`dirname $LIPO_FOR_TARGET`
11805 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11806echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11807 else
11808 # Canadian cross, just use what we found
c6b750e1
DJ
11809 echo "$as_me:$LINENO: result: pre-installed" >&5
11810echo "${ECHO_T}pre-installed" >&6
2429c060 11811 fi
be01d343 11812else
2429c060
PB
11813 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11814 # We already found the complete path
b8025f34
AS
11815 ac_dir=`dirname $LIPO_FOR_TARGET`
11816 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11817echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11818 elif test "x$target" = "x$host"; then
be01d343
PB
11819 # We can use an host tool
11820 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11821 echo "$as_me:$LINENO: result: host tool" >&5
11822echo "${ECHO_T}host tool" >&6
be01d343
PB
11823 else
11824 # We need a cross tool
c6b750e1
DJ
11825 echo "$as_me:$LINENO: result: pre-installed" >&5
11826echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11827 fi
11828fi
4b900473 11829
c6b750e1
DJ
11830echo "$as_me:$LINENO: checking where to find the target nm" >&5
11831echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11832if test "x${build}" != "x${host}" ; then
2429c060
PB
11833 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11834 # We already found the complete path
b8025f34
AS
11835 ac_dir=`dirname $NM_FOR_TARGET`
11836 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11837echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11838 else
11839 # Canadian cross, just use what we found
c6b750e1
DJ
11840 echo "$as_me:$LINENO: result: pre-installed" >&5
11841echo "${ECHO_T}pre-installed" >&6
2429c060 11842 fi
be01d343
PB
11843else
11844 ok=yes
11845 case " ${configdirs} " in
11846 *" binutils "*) ;;
11847 *) ok=no ;;
11848 esac
c6b750e1 11849
be01d343
PB
11850 if test $ok = yes; then
11851 # An in-tree tool is available and we can use it
11852 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11853 echo "$as_me:$LINENO: result: just compiled" >&5
11854echo "${ECHO_T}just compiled" >&6
2429c060
PB
11855 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11856 # We already found the complete path
b8025f34
AS
11857 ac_dir=`dirname $NM_FOR_TARGET`
11858 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11859echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11860 elif test "x$target" = "x$host"; then
11861 # We can use an host tool
11862 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11863 echo "$as_me:$LINENO: result: host tool" >&5
11864echo "${ECHO_T}host tool" >&6
be01d343
PB
11865 else
11866 # We need a cross tool
c6b750e1
DJ
11867 echo "$as_me:$LINENO: result: pre-installed" >&5
11868echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11869 fi
11870fi
4b900473 11871
c6b750e1
DJ
11872echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11873echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11874if test "x${build}" != "x${host}" ; then
2429c060
PB
11875 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11876 # We already found the complete path
b8025f34
AS
11877 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11878 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11879echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11880 else
11881 # Canadian cross, just use what we found
c6b750e1
DJ
11882 echo "$as_me:$LINENO: result: pre-installed" >&5
11883echo "${ECHO_T}pre-installed" >&6
2429c060 11884 fi
be01d343
PB
11885else
11886 ok=yes
11887 case " ${configdirs} " in
11888 *" binutils "*) ;;
11889 *) ok=no ;;
11890 esac
c6b750e1 11891
be01d343
PB
11892 if test $ok = yes; then
11893 # An in-tree tool is available and we can use it
11894 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11895 echo "$as_me:$LINENO: result: just compiled" >&5
11896echo "${ECHO_T}just compiled" >&6
2429c060
PB
11897 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11898 # We already found the complete path
b8025f34
AS
11899 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11900 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11901echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11902 elif test "x$target" = "x$host"; then
11903 # We can use an host tool
11904 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11905 echo "$as_me:$LINENO: result: host tool" >&5
11906echo "${ECHO_T}host tool" >&6
be01d343
PB
11907 else
11908 # We need a cross tool
c6b750e1
DJ
11909 echo "$as_me:$LINENO: result: pre-installed" >&5
11910echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11911 fi
11912fi
4b900473 11913
c6b750e1
DJ
11914echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11915echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11916if test "x${build}" != "x${host}" ; then
2429c060
PB
11917 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11918 # We already found the complete path
b8025f34
AS
11919 ac_dir=`dirname $RANLIB_FOR_TARGET`
11920 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11921echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11922 else
11923 # Canadian cross, just use what we found
c6b750e1
DJ
11924 echo "$as_me:$LINENO: result: pre-installed" >&5
11925echo "${ECHO_T}pre-installed" >&6
2429c060 11926 fi
be01d343
PB
11927else
11928 ok=yes
11929 case " ${configdirs} " in
11930 *" binutils "*) ;;
11931 *) ok=no ;;
11932 esac
c6b750e1 11933
be01d343
PB
11934 if test $ok = yes; then
11935 # An in-tree tool is available and we can use it
11936 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11937 echo "$as_me:$LINENO: result: just compiled" >&5
11938echo "${ECHO_T}just compiled" >&6
2429c060
PB
11939 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11940 # We already found the complete path
b8025f34
AS
11941 ac_dir=`dirname $RANLIB_FOR_TARGET`
11942 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11943echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11944 elif test "x$target" = "x$host"; then
11945 # We can use an host tool
11946 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11947 echo "$as_me:$LINENO: result: host tool" >&5
11948echo "${ECHO_T}host tool" >&6
be01d343
PB
11949 else
11950 # We need a cross tool
c6b750e1
DJ
11951 echo "$as_me:$LINENO: result: pre-installed" >&5
11952echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11953 fi
11954fi
4b900473 11955
c6b750e1
DJ
11956echo "$as_me:$LINENO: checking where to find the target strip" >&5
11957echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11958if test "x${build}" != "x${host}" ; then
2429c060
PB
11959 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11960 # We already found the complete path
b8025f34
AS
11961 ac_dir=`dirname $STRIP_FOR_TARGET`
11962 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11963echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11964 else
11965 # Canadian cross, just use what we found
c6b750e1
DJ
11966 echo "$as_me:$LINENO: result: pre-installed" >&5
11967echo "${ECHO_T}pre-installed" >&6
2429c060 11968 fi
be01d343
PB
11969else
11970 ok=yes
11971 case " ${configdirs} " in
11972 *" binutils "*) ;;
11973 *) ok=no ;;
11974 esac
c6b750e1 11975
be01d343
PB
11976 if test $ok = yes; then
11977 # An in-tree tool is available and we can use it
11978 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11979 echo "$as_me:$LINENO: result: just compiled" >&5
11980echo "${ECHO_T}just compiled" >&6
2429c060
PB
11981 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11982 # We already found the complete path
b8025f34
AS
11983 ac_dir=`dirname $STRIP_FOR_TARGET`
11984 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11985echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11986 elif test "x$target" = "x$host"; then
11987 # We can use an host tool
11988 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11989 echo "$as_me:$LINENO: result: host tool" >&5
11990echo "${ECHO_T}host tool" >&6
be01d343
PB
11991 else
11992 # We need a cross tool
c6b750e1
DJ
11993 echo "$as_me:$LINENO: result: pre-installed" >&5
11994echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11995 fi
11996fi
4b900473 11997
c6b750e1
DJ
11998echo "$as_me:$LINENO: checking where to find the target windres" >&5
11999echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12000if test "x${build}" != "x${host}" ; then
2429c060
PB
12001 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12002 # We already found the complete path
b8025f34
AS
12003 ac_dir=`dirname $WINDRES_FOR_TARGET`
12004 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12005echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12006 else
12007 # Canadian cross, just use what we found
c6b750e1
DJ
12008 echo "$as_me:$LINENO: result: pre-installed" >&5
12009echo "${ECHO_T}pre-installed" >&6
2429c060 12010 fi
be01d343
PB
12011else
12012 ok=yes
12013 case " ${configdirs} " in
12014 *" binutils "*) ;;
12015 *) ok=no ;;
12016 esac
c6b750e1 12017
be01d343
PB
12018 if test $ok = yes; then
12019 # An in-tree tool is available and we can use it
12020 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12021 echo "$as_me:$LINENO: result: just compiled" >&5
12022echo "${ECHO_T}just compiled" >&6
2429c060
PB
12023 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12024 # We already found the complete path
b8025f34
AS
12025 ac_dir=`dirname $WINDRES_FOR_TARGET`
12026 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12027echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12028 elif test "x$target" = "x$host"; then
12029 # We can use an host tool
12030 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12031 echo "$as_me:$LINENO: result: host tool" >&5
12032echo "${ECHO_T}host tool" >&6
be01d343
PB
12033 else
12034 # We need a cross tool
c6b750e1
DJ
12035 echo "$as_me:$LINENO: result: pre-installed" >&5
12036echo "${ECHO_T}pre-installed" >&6
be01d343 12037 fi
a0da8069 12038fi
54752a6b 12039
0c24b341
NC
12040echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12041echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12042if test "x${build}" != "x${host}" ; then
12043 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12044 # We already found the complete path
12045 ac_dir=`dirname $WINDMC_FOR_TARGET`
12046 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12047echo "${ECHO_T}pre-installed in $ac_dir" >&6
12048 else
12049 # Canadian cross, just use what we found
12050 echo "$as_me:$LINENO: result: pre-installed" >&5
12051echo "${ECHO_T}pre-installed" >&6
12052 fi
12053else
12054 ok=yes
12055 case " ${configdirs} " in
12056 *" binutils "*) ;;
12057 *) ok=no ;;
12058 esac
12059
12060 if test $ok = yes; then
12061 # An in-tree tool is available and we can use it
12062 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12063 echo "$as_me:$LINENO: result: just compiled" >&5
12064echo "${ECHO_T}just compiled" >&6
12065 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12066 # We already found the complete path
12067 ac_dir=`dirname $WINDMC_FOR_TARGET`
12068 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12069echo "${ECHO_T}pre-installed in $ac_dir" >&6
12070 elif test "x$target" = "x$host"; then
12071 # We can use an host tool
12072 WINDMC_FOR_TARGET='$(WINDMC)'
12073 echo "$as_me:$LINENO: result: host tool" >&5
12074echo "${ECHO_T}host tool" >&6
12075 else
12076 # We need a cross tool
12077 echo "$as_me:$LINENO: result: pre-installed" >&5
12078echo "${ECHO_T}pre-installed" >&6
12079 fi
12080fi
12081
54752a6b
NN
12082
12083
be01d343 12084
4b900473 12085
a0da8069
NN
12086# Certain tools may need extra flags.
12087AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12088RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12089NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12090
be01d343
PB
12091# When building target libraries, except in a Canadian cross, we use
12092# the same toolchain as the compiler we just built.
12093COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12094COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12095COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12096if test $host = $build; then
12097 case " $configdirs " in
12098 *" gcc "*)
12099 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12100 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12101 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12102 ;;
12103 esac
12104fi
12105
12106
12107
12108
12109
c6b750e1
DJ
12110echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12111echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12112# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12113if test "${enable_maintainer_mode+set}" = set; then
12114 enableval="$enable_maintainer_mode"
12115 USE_MAINTAINER_MODE=$enableval
12116else
12117 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12118fi;
12119echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12120echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12121
12122
12123if test "$USE_MAINTAINER_MODE" = yes; then
12124 MAINTAINER_MODE_TRUE=
12125 MAINTAINER_MODE_FALSE='#'
12126else
12127 MAINTAINER_MODE_TRUE='#'
12128 MAINTAINER_MODE_FALSE=
c6b750e1 12129fi
3d5e36ae
AO
12130MAINT=$MAINTAINER_MODE_TRUE
12131
1d39f329
NN
12132# ---------------------
12133# GCC bootstrap support
12134# ---------------------
12135
12136# Stage specific cflags for build.
12137stage1_cflags="-g"
12138case $build in
12139 vax-*-*)
12140 case ${GCC} in
12141 yes) stage1_cflags="-g -Wa,-J" ;;
12142 *) stage1_cflags="-g -J" ;;
12143 esac ;;
1d39f329
NN
12144esac
12145
1d89b610
PB
12146# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12147if test "$GCC" = yes; then
12148 saved_CFLAGS="$CFLAGS"
12149
12150 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12151 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12152 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12153echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h. */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
12159/* end confdefs.h. */
12160
2038f525
PB
12161#if (__GNUC__ < 3) \
12162 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12163 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12164#error http://gcc.gnu.org/PR29382
12165#endif
12166
c6b750e1
DJ
12167int
12168main ()
12169{
12170
12171 ;
12172 return 0;
12173}
12174_ACEOF
12175rm -f conftest.$ac_objext
12176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12177 (eval $ac_compile) 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag"
12185 || test ! -s conftest.err'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; } &&
12191 { ac_try='test -s conftest.$ac_objext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 echo "$as_me:$LINENO: result: yes" >&5
12198echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12199else
12200 echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203echo "$as_me:$LINENO: result: no" >&5
12204echo "${ECHO_T}no" >&6
12205fi
12206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12207
12208 CFLAGS="$saved_CFLAGS"
12209fi
12210
12211
1d39f329 12212
8a0d8a5c
PB
12213# Enable --enable-checking in stage1 of the compiler.
12214# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12215if test "${enable_stage1_checking+set}" = set; then
12216 enableval="$enable_stage1_checking"
12217 stage1_checking=--enable-checking=${enable_stage1_checking}
12218else
5566c1fa 12219 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12220 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12221else
5566c1fa 12222 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12223fi
c6b750e1 12224fi;
8a0d8a5c
PB
12225
12226
1d39f329 12227# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12228# Check whether --enable-werror or --disable-werror was given.
12229if test "${enable_werror+set}" = set; then
12230 enableval="$enable_werror"
c6b750e1 12231
1d39f329 12232else
a0323144 12233 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12234 enable_werror=yes
79fcd0ec
PB
12235else
12236 enable_werror=no
12237fi
c6b750e1 12238fi;
1a6f2dc7
NN
12239case ${enable_werror} in
12240 yes) stage2_werror_flag="--enable-werror-always" ;;
12241 *) stage2_werror_flag="" ;;
1d39f329
NN
12242esac
12243
12244
108a6f8e 12245# Flags needed to enable html installing and building
c6b750e1 12246
108a6f8e
CD
12247# Check whether --with-datarootdir or --without-datarootdir was given.
12248if test "${with_datarootdir+set}" = set; then
12249 withval="$with_datarootdir"
12250 datarootdir="\${prefix}/${withval}"
12251else
12252 datarootdir="\${prefix}/share"
c6b750e1 12253fi;
108a6f8e
CD
12254
12255
12256# Check whether --with-docdir or --without-docdir was given.
12257if test "${with_docdir+set}" = set; then
12258 withval="$with_docdir"
12259 docdir="\${prefix}/${withval}"
12260else
12261 docdir="\${datarootdir}/doc"
c6b750e1 12262fi;
108a6f8e
CD
12263
12264
a3ca38d2
DD
12265# Check whether --with-pdfdir or --without-pdfdir was given.
12266if test "${with_pdfdir+set}" = set; then
12267 withval="$with_pdfdir"
12268 pdfdir="\${prefix}/${withval}"
12269else
12270 pdfdir="\${docdir}"
12271fi;
12272
12273
108a6f8e
CD
12274# Check whether --with-htmldir or --without-htmldir was given.
12275if test "${with_htmldir+set}" = set; then
12276 withval="$with_htmldir"
12277 htmldir="\${prefix}/${withval}"
12278else
12279 htmldir="\${docdir}"
c6b750e1 12280fi;
108a6f8e
CD
12281
12282
12283
12284
12285
b8025f34 12286
c6b750e1
DJ
12287 ac_config_files="$ac_config_files Makefile"
12288cat >confcache <<\_ACEOF
a0da8069
NN
12289# This file is a shell script that caches the results of configure
12290# tests run on this system so they can be shared between configure
c6b750e1
DJ
12291# scripts and configure runs, see configure's option --config-cache.
12292# It is not useful on other systems. If it contains results you don't
12293# want to keep, you may remove or edit it.
a0da8069 12294#
c6b750e1
DJ
12295# config.status only pays attention to the cache file if you give it
12296# the --recheck option to rerun configure.
a0da8069 12297#
c6b750e1
DJ
12298# `ac_cv_env_foo' variables (set or unset) will be overridden when
12299# loading this file, other *unset* `ac_cv_foo' will be assigned the
12300# following values.
12301
12302_ACEOF
12303
a0da8069
NN
12304# The following way of writing the cache mishandles newlines in values,
12305# but we know of no workaround that is simple, portable, and efficient.
12306# So, don't put newlines in cache variables' values.
12307# Ultrix sh set writes to stderr and can't be redirected directly,
12308# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12309{
12310 (set) 2>&1 |
12311 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12312 *ac_space=\ *)
12313 # `set' does not quote correctly, so add quotes (double-quote
12314 # substitution turns \\\\ into \\, and sed turns \\ into \).
12315 sed -n \
12316 "s/'/'\\\\''/g;
12317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12318 ;;
12319 *)
12320 # `set' quotes correctly as required by POSIX, so do not add quotes.
12321 sed -n \
12322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12323 ;;
12324 esac;
12325} |
12326 sed '
12327 t clear
12328 : clear
12329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12330 t end
12331 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12332 : end' >>confcache
12333if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12334 if test -w $cache_file; then
c6b750e1
DJ
12335 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12336 cat confcache >$cache_file
a0da8069
NN
12337 else
12338 echo "not updating unwritable cache $cache_file"
12339 fi
852e5f18 12340fi
a0da8069 12341rm -f confcache
852e5f18 12342
a0da8069
NN
12343test "x$prefix" = xNONE && prefix=$ac_default_prefix
12344# Let make expand exec_prefix.
12345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12346
c6b750e1
DJ
12347# VPATH may cause trouble with some makes, so we remove $(srcdir),
12348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12349# trailing colons and then remove the whole line if VPATH becomes empty
12350# (actually we leave an empty line to preserve line numbers).
a0da8069 12351if test "x$srcdir" = x.; then
c6b750e1
DJ
12352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12353s/:*\$(srcdir):*/:/;
12354s/:*\${srcdir}:*/:/;
12355s/:*@srcdir@:*/:/;
12356s/^\([^=]*=[ ]*\):*/\1/;
12357s/:*$//;
12358s/^[^=]*=[ ]*$//;
12359}'
a0da8069 12360fi
252b5132 12361
a0da8069
NN
12362# Transform confdefs.h into DEFS.
12363# Protect against shell expansion while executing Makefile rules.
12364# Protect against Makefile macro expansion.
c6b750e1
DJ
12365#
12366# If the first sed substitution is executed (which looks for macros that
12367# take arguments), then we branch to the quote section. Otherwise,
12368# look for a macro that doesn't take arguments.
12369cat >confdef2opt.sed <<\_ACEOF
12370t clear
12371: clear
12372s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12373t quote
12374s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12375t quote
12376d
12377: quote
12378s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12379s,\[,\\&,g
12380s,\],\\&,g
12381s,\$,$$,g
12382p
12383_ACEOF
12384# We use echo to avoid assuming a particular line-breaking character.
12385# The extra dot is to prevent the shell from consuming trailing
12386# line-breaks from the sub-command output. A line-break within
12387# single-quotes doesn't work because, if this script is created in a
12388# platform that uses two characters for line-breaks (e.g., DOS), tr
12389# would break.
12390ac_LF_and_DOT=`echo; echo .`
12391DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12392rm -f confdef2opt.sed
12393
12394
12395ac_libobjs=
12396ac_ltlibobjs=
12397for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12398 # 1. Remove the extension, and $U if already installed.
12399 ac_i=`echo "$ac_i" |
12400 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12401 # 2. Add them.
12402 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12403 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12404done
12405LIBOBJS=$ac_libobjs
852e5f18 12406
c6b750e1 12407LTLIBOBJS=$ac_ltlibobjs
376a0e54 12408
cac3d6c4 12409
c6b750e1
DJ
12410
12411: ${CONFIG_STATUS=./config.status}
12412ac_clean_files_save=$ac_clean_files
12413ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12414{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12415echo "$as_me: creating $CONFIG_STATUS" >&6;}
12416cat >$CONFIG_STATUS <<_ACEOF
12417#! $SHELL
12418# Generated by $as_me.
a0da8069 12419# Run this file to recreate the current configuration.
a0da8069 12420# Compiler output produced by configure, useful for debugging
c6b750e1 12421# configure, is in config.log if it exists.
376a0e54 12422
c6b750e1
DJ
12423debug=false
12424ac_cs_recheck=false
12425ac_cs_silent=false
12426SHELL=\${CONFIG_SHELL-$SHELL}
12427_ACEOF
12428
12429cat >>$CONFIG_STATUS <<\_ACEOF
12430## --------------------- ##
12431## M4sh Initialization. ##
12432## --------------------- ##
12433
12434# Be Bourne compatible
12435if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12436 emulate sh
12437 NULLCMD=:
12438 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12439 # is contrary to our usage. Disable this feature.
12440 alias -g '${1+"$@"}'='"$@"'
12441elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12442 set -o posix
12443fi
12444DUALCASE=1; export DUALCASE # for MKS sh
12445
12446# Support unset when possible.
12447if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12448 as_unset=unset
12449else
12450 as_unset=false
12451fi
12452
12453
12454# Work around bugs in pre-3.0 UWIN ksh.
12455$as_unset ENV MAIL MAILPATH
12456PS1='$ '
12457PS2='> '
12458PS4='+ '
12459
12460# NLS nuisances.
12461for as_var in \
12462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12464 LC_TELEPHONE LC_TIME
12465do
12466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12467 eval $as_var=C; export $as_var
12468 else
12469 $as_unset $as_var
12470 fi
12471done
12472
12473# Required to use basename.
12474if expr a : '\(a\)' >/dev/null 2>&1; then
12475 as_expr=expr
12476else
12477 as_expr=false
12478fi
12479
12480if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12481 as_basename=basename
12482else
12483 as_basename=false
12484fi
12485
12486
12487# Name of the executable.
12488as_me=`$as_basename "$0" ||
12489$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12490 X"$0" : 'X\(//\)$' \| \
12491 X"$0" : 'X\(/\)$' \| \
12492 . : '\(.\)' 2>/dev/null ||
12493echo X/"$0" |
12494 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12495 /^X\/\(\/\/\)$/{ s//\1/; q; }
12496 /^X\/\(\/\).*/{ s//\1/; q; }
12497 s/.*/./; q'`
12498
12499
12500# PATH needs CR, and LINENO needs CR and PATH.
12501# Avoid depending upon Character Ranges.
12502as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12503as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12504as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12505as_cr_digits='0123456789'
12506as_cr_alnum=$as_cr_Letters$as_cr_digits
12507
12508# The user is always right.
12509if test "${PATH_SEPARATOR+set}" != set; then
12510 echo "#! /bin/sh" >conf$$.sh
12511 echo "exit 0" >>conf$$.sh
12512 chmod +x conf$$.sh
12513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12514 PATH_SEPARATOR=';'
12515 else
12516 PATH_SEPARATOR=:
12517 fi
12518 rm -f conf$$.sh
12519fi
12520
12521
12522 as_lineno_1=$LINENO
12523 as_lineno_2=$LINENO
12524 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12525 test "x$as_lineno_1" != "x$as_lineno_2" &&
12526 test "x$as_lineno_3" = "x$as_lineno_2" || {
12527 # Find who we are. Look in the path if we contain no path at all
12528 # relative or not.
12529 case $0 in
12530 *[\\/]* ) as_myself=$0 ;;
12531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532for as_dir in $PATH
12533do
12534 IFS=$as_save_IFS
12535 test -z "$as_dir" && as_dir=.
12536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12537done
12538
12539 ;;
12540 esac
12541 # We did not find ourselves, most probably we were run as `sh COMMAND'
12542 # in which case we are not to be found in the path.
12543 if test "x$as_myself" = x; then
12544 as_myself=$0
12545 fi
12546 if test ! -f "$as_myself"; then
12547 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12548echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12549 { (exit 1); exit 1; }; }
12550 fi
12551 case $CONFIG_SHELL in
12552 '')
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for as_base in sh bash ksh sh5; do
12559 case $as_dir in
12560 /*)
12561 if ("$as_dir/$as_base" -c '
12562 as_lineno_1=$LINENO
12563 as_lineno_2=$LINENO
12564 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12565 test "x$as_lineno_1" != "x$as_lineno_2" &&
12566 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12567 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12568 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12569 CONFIG_SHELL=$as_dir/$as_base
12570 export CONFIG_SHELL
12571 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12572 fi;;
12573 esac
12574 done
12575done
12576;;
12577 esac
12578
12579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12580 # uniformly replaced by the line number. The first 'sed' inserts a
12581 # line-number line before each line; the second 'sed' does the real
12582 # work. The second script uses 'N' to pair each line-number line
12583 # with the numbered line, and appends trailing '-' during
12584 # substitution so that $LINENO is not a special case at line end.
12585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12586 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12587 sed '=' <$as_myself |
12588 sed '
12589 N
12590 s,$,-,
12591 : loop
12592 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12593 t loop
12594 s,-$,,
12595 s,^['$as_cr_digits']*\n,,
12596 ' >$as_me.lineno &&
12597 chmod +x $as_me.lineno ||
12598 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12599echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12600 { (exit 1); exit 1; }; }
12601
12602 # Don't try to exec as it changes $[0], causing all sort of problems
12603 # (the dirname of $[0] is not the place where we might find the
12604 # original and so on. Autoconf is especially sensible to this).
12605 . ./$as_me.lineno
12606 # Exit status is that of the last command.
12607 exit
12608}
12609
12610
12611case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12612 *c*,-n*) ECHO_N= ECHO_C='
12613' ECHO_T=' ' ;;
12614 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12615 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12616esac
12617
12618if expr a : '\(a\)' >/dev/null 2>&1; then
12619 as_expr=expr
12620else
12621 as_expr=false
12622fi
12623
12624rm -f conf$$ conf$$.exe conf$$.file
12625echo >conf$$.file
12626if ln -s conf$$.file conf$$ 2>/dev/null; then
12627 # We could just check for DJGPP; but this test a) works b) is more generic
12628 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12629 if test -f conf$$.exe; then
12630 # Don't use ln at all; we don't have any links
12631 as_ln_s='cp -p'
12632 else
12633 as_ln_s='ln -s'
12634 fi
12635elif ln conf$$.file conf$$ 2>/dev/null; then
12636 as_ln_s=ln
12637else
12638 as_ln_s='cp -p'
12639fi
12640rm -f conf$$ conf$$.exe conf$$.file
12641
12642if mkdir -p . 2>/dev/null; then
12643 as_mkdir_p=:
12644else
12645 test -d ./-p && rmdir ./-p
12646 as_mkdir_p=false
12647fi
12648
12649as_executable_p="test -f"
12650
12651# Sed expression to map a string onto a valid CPP name.
12652as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12653
12654# Sed expression to map a string onto a valid variable name.
12655as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12656
12657
12658# IFS
12659# We need space, tab and new line, in precisely that order.
12660as_nl='
12661'
12662IFS=" $as_nl"
12663
12664# CDPATH.
12665$as_unset CDPATH
12666
12667exec 6>&1
12668
12669# Open the log real soon, to keep \$[0] and so on meaningful, and to
12670# report actual input values of CONFIG_FILES etc. instead of their
12671# values after options handling. Logging --version etc. is OK.
12672exec 5>>config.log
12673{
12674 echo
12675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12676## Running $as_me. ##
12677_ASBOX
12678} >&5
12679cat >&5 <<_CSEOF
12680
12681This file was extended by $as_me, which was
12682generated by GNU Autoconf 2.59. Invocation command line was
12683
12684 CONFIG_FILES = $CONFIG_FILES
12685 CONFIG_HEADERS = $CONFIG_HEADERS
12686 CONFIG_LINKS = $CONFIG_LINKS
12687 CONFIG_COMMANDS = $CONFIG_COMMANDS
12688 $ $0 $@
12689
12690_CSEOF
12691echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12692echo >&5
12693_ACEOF
12694
12695# Files that config.status was made for.
12696if test -n "$ac_config_files"; then
12697 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12698fi
12699
12700if test -n "$ac_config_headers"; then
12701 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12702fi
12703
12704if test -n "$ac_config_links"; then
12705 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12706fi
12707
12708if test -n "$ac_config_commands"; then
12709 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12710fi
12711
12712cat >>$CONFIG_STATUS <<\_ACEOF
12713
12714ac_cs_usage="\
12715\`$as_me' instantiates files from templates according to the
12716current configuration.
12717
12718Usage: $0 [OPTIONS] [FILE]...
12719
12720 -h, --help print this help, then exit
12721 -V, --version print version number, then exit
12722 -q, --quiet do not print progress messages
12723 -d, --debug don't remove temporary files
12724 --recheck update $as_me by reconfiguring in the same conditions
12725 --file=FILE[:TEMPLATE]
12726 instantiate the configuration file FILE
12727
12728Configuration files:
12729$config_files
12730
12731Report bugs to <bug-autoconf@gnu.org>."
12732_ACEOF
12733
12734cat >>$CONFIG_STATUS <<_ACEOF
12735ac_cs_version="\\
12736config.status
12737configured by $0, generated by GNU Autoconf 2.59,
12738 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12739
12740Copyright (C) 2003 Free Software Foundation, Inc.
12741This config.status script is free software; the Free Software Foundation
12742gives unlimited permission to copy, distribute and modify it."
12743srcdir=$srcdir
12744INSTALL="$INSTALL"
12745_ACEOF
12746
12747cat >>$CONFIG_STATUS <<\_ACEOF
12748# If no file are specified by the user, then we need to provide default
12749# value. By we need to know if files were specified by the user.
12750ac_need_defaults=:
12751while test $# != 0
a0da8069 12752do
c6b750e1
DJ
12753 case $1 in
12754 --*=*)
12755 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12756 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12757 ac_shift=:
12758 ;;
12759 -*)
12760 ac_option=$1
12761 ac_optarg=$2
12762 ac_shift=shift
12763 ;;
12764 *) # This is not an option, so the user has probably given explicit
12765 # arguments.
12766 ac_option=$1
12767 ac_need_defaults=false;;
12768 esac
12769
12770 case $ac_option in
12771 # Handling of the options.
12772_ACEOF
12773cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12775 ac_cs_recheck=: ;;
12776 --version | --vers* | -V )
12777 echo "$ac_cs_version"; exit 0 ;;
12778 --he | --h)
12779 # Conflict between --help and --header
12780 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12781Try \`$0 --help' for more information." >&5
12782echo "$as_me: error: ambiguous option: $1
12783Try \`$0 --help' for more information." >&2;}
12784 { (exit 1); exit 1; }; };;
12785 --help | --hel | -h )
12786 echo "$ac_cs_usage"; exit 0 ;;
12787 --debug | --d* | -d )
12788 debug=: ;;
12789 --file | --fil | --fi | --f )
12790 $ac_shift
12791 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12792 ac_need_defaults=false;;
12793 --header | --heade | --head | --hea )
12794 $ac_shift
12795 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12796 ac_need_defaults=false;;
12797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12798 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12799 ac_cs_silent=: ;;
12800
12801 # This is an error.
12802 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12803Try \`$0 --help' for more information." >&5
12804echo "$as_me: error: unrecognized option: $1
12805Try \`$0 --help' for more information." >&2;}
12806 { (exit 1); exit 1; }; } ;;
12807
12808 *) ac_config_targets="$ac_config_targets $1" ;;
12809
376a0e54 12810 esac
c6b750e1 12811 shift
376a0e54
CM
12812done
12813
c6b750e1 12814ac_configure_extra_args=
376a0e54 12815
c6b750e1
DJ
12816if $ac_cs_silent; then
12817 exec 6>/dev/null
12818 ac_configure_extra_args="$ac_configure_extra_args --silent"
12819fi
376a0e54 12820
c6b750e1
DJ
12821_ACEOF
12822cat >>$CONFIG_STATUS <<_ACEOF
12823if \$ac_cs_recheck; then
12824 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12825 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12826fi
12827
12828_ACEOF
12829
12830
12831
12832
12833
12834cat >>$CONFIG_STATUS <<\_ACEOF
12835for ac_config_target in $ac_config_targets
12836do
12837 case "$ac_config_target" in
12838 # Handling of arguments.
12839 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12840 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12841echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12842 { (exit 1); exit 1; }; };;
12843 esac
12844done
12845
12846# If the user did not use the arguments to specify the items to instantiate,
12847# then the envvar interface is used. Set only those that are not.
12848# We use the long form for the default assignment because of an extremely
12849# bizarre bug on SunOS 4.1.3.
12850if $ac_need_defaults; then
12851 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12852fi
12853
12854# Have a temporary directory for convenience. Make it in the build tree
12855# simply because there is no reason to put it here, and in addition,
12856# creating and moving files from /tmp can sometimes cause problems.
12857# Create a temporary directory, and hook for its removal unless debugging.
12858$debug ||
12859{
12860 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12861 trap '{ (exit 1); exit 1; }' 1 2 13 15
12862}
12863
12864# Create a (secure) tmp directory for tmp files.
12865
12866{
12867 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12868 test -n "$tmp" && test -d "$tmp"
12869} ||
12870{
12871 tmp=./confstat$$-$RANDOM
12872 (umask 077 && mkdir $tmp)
12873} ||
12874{
12875 echo "$me: cannot create a temporary directory in ." >&2
12876 { (exit 1); exit 1; }
12877}
12878
12879_ACEOF
12880
12881cat >>$CONFIG_STATUS <<_ACEOF
12882
12883#
12884# CONFIG_FILES section.
12885#
12886
12887# No need to generate the scripts if there are no CONFIG_FILES.
12888# This happens for instance when ./config.status config.h
12889if test -n "\$CONFIG_FILES"; then
12890 # Protect against being on the right side of a sed subst in config.status.
12891 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12892 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12893s,@SHELL@,$SHELL,;t t
12894s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12895s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12896s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12897s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12898s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12899s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12900s,@exec_prefix@,$exec_prefix,;t t
12901s,@prefix@,$prefix,;t t
12902s,@program_transform_name@,$program_transform_name,;t t
12903s,@bindir@,$bindir,;t t
12904s,@sbindir@,$sbindir,;t t
12905s,@libexecdir@,$libexecdir,;t t
12906s,@datadir@,$datadir,;t t
12907s,@sysconfdir@,$sysconfdir,;t t
12908s,@sharedstatedir@,$sharedstatedir,;t t
12909s,@localstatedir@,$localstatedir,;t t
12910s,@libdir@,$libdir,;t t
12911s,@includedir@,$includedir,;t t
12912s,@oldincludedir@,$oldincludedir,;t t
12913s,@infodir@,$infodir,;t t
12914s,@mandir@,$mandir,;t t
12915s,@build_alias@,$build_alias,;t t
12916s,@host_alias@,$host_alias,;t t
12917s,@target_alias@,$target_alias,;t t
12918s,@DEFS@,$DEFS,;t t
12919s,@ECHO_C@,$ECHO_C,;t t
12920s,@ECHO_N@,$ECHO_N,;t t
12921s,@ECHO_T@,$ECHO_T,;t t
12922s,@LIBS@,$LIBS,;t t
5b553f7e 12923s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
12924s,@build@,$build,;t t
12925s,@build_cpu@,$build_cpu,;t t
12926s,@build_vendor@,$build_vendor,;t t
12927s,@build_os@,$build_os,;t t
12928s,@build_noncanonical@,$build_noncanonical,;t t
12929s,@host_noncanonical@,$host_noncanonical,;t t
12930s,@target_noncanonical@,$target_noncanonical,;t t
12931s,@host@,$host,;t t
12932s,@host_cpu@,$host_cpu,;t t
12933s,@host_vendor@,$host_vendor,;t t
12934s,@host_os@,$host_os,;t t
12935s,@target@,$target,;t t
12936s,@target_cpu@,$target_cpu,;t t
12937s,@target_vendor@,$target_vendor,;t t
12938s,@target_os@,$target_os,;t t
12939s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12940s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12941s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12942s,@LN@,$LN,;t t
12943s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
12944s,@build_libsubdir@,$build_libsubdir,;t t
12945s,@build_subdir@,$build_subdir,;t t
12946s,@host_subdir@,$host_subdir,;t t
12947s,@target_subdir@,$target_subdir,;t t
12948s,@CC@,$CC,;t t
12949s,@CFLAGS@,$CFLAGS,;t t
12950s,@LDFLAGS@,$LDFLAGS,;t t
12951s,@CPPFLAGS@,$CPPFLAGS,;t t
12952s,@ac_ct_CC@,$ac_ct_CC,;t t
12953s,@EXEEXT@,$EXEEXT,;t t
12954s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12955s,@CXX@,$CXX,;t t
12956s,@CXXFLAGS@,$CXXFLAGS,;t t
12957s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12958s,@GNATBIND@,$GNATBIND,;t t
12959s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12960s,@GNATMAKE@,$GNATMAKE,;t t
12961s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12962s,@do_compare@,$do_compare,;t t
12963s,@gmplibs@,$gmplibs,;t t
12964s,@gmpinc@,$gmpinc,;t t
12965s,@stage1_languages@,$stage1_languages,;t t
12966s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12967s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12968s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12969s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12970s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12971s,@tooldir@,$tooldir,;t t
12972s,@build_tooldir@,$build_tooldir,;t t
12973s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12974s,@GDB_TK@,$GDB_TK,;t t
12975s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12976s,@build_configargs@,$build_configargs,;t t
12977s,@build_configdirs@,$build_configdirs,;t t
12978s,@host_configargs@,$host_configargs,;t t
12979s,@configdirs@,$configdirs,;t t
12980s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12981s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12982s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12983s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12984s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12985s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12986s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12987s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12988s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12989s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12990s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12991s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12992s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12993s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12994s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12995s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12996s,@config_shell@,$config_shell,;t t
12997s,@YACC@,$YACC,;t t
12998s,@BISON@,$BISON,;t t
12999s,@M4@,$M4,;t t
13000s,@LEX@,$LEX,;t t
13001s,@FLEX@,$FLEX,;t t
13002s,@MAKEINFO@,$MAKEINFO,;t t
13003s,@EXPECT@,$EXPECT,;t t
13004s,@RUNTEST@,$RUNTEST,;t t
13005s,@AR@,$AR,;t t
13006s,@AS@,$AS,;t t
13007s,@DLLTOOL@,$DLLTOOL,;t t
13008s,@LD@,$LD,;t t
13009s,@LIPO@,$LIPO,;t t
13010s,@NM@,$NM,;t t
13011s,@RANLIB@,$RANLIB,;t t
13012s,@STRIP@,$STRIP,;t t
13013s,@WINDRES@,$WINDRES,;t t
0c24b341 13014s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13015s,@OBJCOPY@,$OBJCOPY,;t t
13016s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13017s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13018s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13019s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13020s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13021s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13022s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13023s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13024s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13025s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13026s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13027s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13028s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13029s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13030s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13031s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13032s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13033s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13034s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13035s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13036s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13037s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13038s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13039s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13040s,@MAINT@,$MAINT,;t t
13041s,@stage1_cflags@,$stage1_cflags,;t t
13042s,@stage1_checking@,$stage1_checking,;t t
13043s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13044s,@datarootdir@,$datarootdir,;t t
13045s,@docdir@,$docdir,;t t
a3ca38d2 13046s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13047s,@htmldir@,$htmldir,;t t
13048s,@LIBOBJS@,$LIBOBJS,;t t
13049s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13050/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13051s,@serialization_dependencies@,,;t t
a0da8069 13052/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13053s,@host_makefile_frag@,,;t t
a0da8069 13054/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13055s,@target_makefile_frag@,,;t t
a0da8069 13056/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13057s,@alphaieee_frag@,,;t t
a0da8069 13058/@ospace_frag@/r $ospace_frag
c6b750e1 13059s,@ospace_frag@,,;t t
a0da8069 13060CEOF
252b5132 13061
c6b750e1
DJ
13062_ACEOF
13063
13064 cat >>$CONFIG_STATUS <<\_ACEOF
13065 # Split the substitutions into bite-sized pieces for seds with
13066 # small command number limits, like on Digital OSF/1 and HP-UX.
13067 ac_max_sed_lines=48
13068 ac_sed_frag=1 # Number of current file.
13069 ac_beg=1 # First line for current file.
13070 ac_end=$ac_max_sed_lines # Line after last line for current file.
13071 ac_more_lines=:
13072 ac_sed_cmds=
13073 while $ac_more_lines; do
13074 if test $ac_beg -gt 1; then
13075 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13076 else
13077 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13078 fi
13079 if test ! -s $tmp/subs.frag; then
13080 ac_more_lines=false
a0da8069 13081 else
c6b750e1
DJ
13082 # The purpose of the label and of the branching condition is to
13083 # speed up the sed processing (if there are no `@' at all, there
13084 # is no need to browse any of the substitutions).
13085 # These are the two extra sed commands mentioned above.
13086 (echo ':t
13087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13088 if test -z "$ac_sed_cmds"; then
13089 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13090 else
13091 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13092 fi
13093 ac_sed_frag=`expr $ac_sed_frag + 1`
13094 ac_beg=$ac_end
13095 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13096 fi
c6b750e1
DJ
13097 done
13098 if test -z "$ac_sed_cmds"; then
13099 ac_sed_cmds=cat
852e5f18 13100 fi
c6b750e1 13101fi # test -n "$CONFIG_FILES"
cac3d6c4 13102
c6b750e1
DJ
13103_ACEOF
13104cat >>$CONFIG_STATUS <<\_ACEOF
13105for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13107 case $ac_file in
13108 - | *:- | *:-:* ) # input from stdin
13109 cat >$tmp/stdin
13110 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13111 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13112 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13114 * ) ac_file_in=$ac_file.in ;;
a0da8069 13115 esac
252b5132 13116
c6b750e1
DJ
13117 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13118 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13119$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13120 X"$ac_file" : 'X\(//\)[^/]' \| \
13121 X"$ac_file" : 'X\(//\)$' \| \
13122 X"$ac_file" : 'X\(/\)' \| \
13123 . : '\(.\)' 2>/dev/null ||
13124echo X"$ac_file" |
13125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13127 /^X\(\/\/\)$/{ s//\1/; q; }
13128 /^X\(\/\).*/{ s//\1/; q; }
13129 s/.*/./; q'`
13130 { if $as_mkdir_p; then
13131 mkdir -p "$ac_dir"
cac3d6c4 13132 else
c6b750e1
DJ
13133 as_dir="$ac_dir"
13134 as_dirs=
13135 while test ! -d "$as_dir"; do
13136 as_dirs="$as_dir $as_dirs"
13137 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13139 X"$as_dir" : 'X\(//\)[^/]' \| \
13140 X"$as_dir" : 'X\(//\)$' \| \
13141 X"$as_dir" : 'X\(/\)' \| \
13142 . : '\(.\)' 2>/dev/null ||
13143echo X"$as_dir" |
13144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13146 /^X\(\/\/\)$/{ s//\1/; q; }
13147 /^X\(\/\).*/{ s//\1/; q; }
13148 s/.*/./; q'`
13149 done
13150 test ! -n "$as_dirs" || mkdir $as_dirs
13151 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13152echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13153 { (exit 1); exit 1; }; }; }
13154
13155 ac_builddir=.
252b5132 13156
c6b750e1
DJ
13157if test "$ac_dir" != .; then
13158 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13159 # A "../" for each directory in $ac_dir_suffix.
13160 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13161else
13162 ac_dir_suffix= ac_top_builddir=
13163fi
13164
13165case $srcdir in
13166 .) # No --srcdir option. We are building in place.
13167 ac_srcdir=.
13168 if test -z "$ac_top_builddir"; then
13169 ac_top_srcdir=.
13170 else
13171 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13172 fi ;;
13173 [\\/]* | ?:[\\/]* ) # Absolute path.
13174 ac_srcdir=$srcdir$ac_dir_suffix;
13175 ac_top_srcdir=$srcdir ;;
a0da8069 13176 *) # Relative path.
c6b750e1
DJ
13177 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13178 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13179esac
252b5132 13180
c6b750e1
DJ
13181# Do not use `cd foo && pwd` to compute absolute paths, because
13182# the directories may not exist.
13183case `pwd` in
13184.) ac_abs_builddir="$ac_dir";;
13185*)
13186 case "$ac_dir" in
13187 .) ac_abs_builddir=`pwd`;;
13188 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13189 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13190 esac;;
13191esac
13192case $ac_abs_builddir in
13193.) ac_abs_top_builddir=${ac_top_builddir}.;;
13194*)
13195 case ${ac_top_builddir}. in
13196 .) ac_abs_top_builddir=$ac_abs_builddir;;
13197 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13198 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13199 esac;;
13200esac
13201case $ac_abs_builddir in
13202.) ac_abs_srcdir=$ac_srcdir;;
13203*)
13204 case $ac_srcdir in
13205 .) ac_abs_srcdir=$ac_abs_builddir;;
13206 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13207 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13208 esac;;
13209esac
13210case $ac_abs_builddir in
13211.) ac_abs_top_srcdir=$ac_top_srcdir;;
13212*)
13213 case $ac_top_srcdir in
13214 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13215 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13216 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13217 esac;;
13218esac
252b5132 13219
c6b750e1
DJ
13220
13221 case $INSTALL in
13222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13223 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13224 esac
252b5132 13225
c6b750e1
DJ
13226 if test x"$ac_file" != x-; then
13227 { echo "$as_me:$LINENO: creating $ac_file" >&5
13228echo "$as_me: creating $ac_file" >&6;}
13229 rm -f "$ac_file"
13230 fi
13231 # Let's still pretend it is `configure' which instantiates (i.e., don't
13232 # use $as_me), people would be surprised to read:
13233 # /* config.h. Generated by config.status. */
13234 if test x"$ac_file" = x-; then
13235 configure_input=
13236 else
13237 configure_input="$ac_file. "
13238 fi
13239 configure_input=$configure_input"Generated from `echo $ac_file_in |
13240 sed 's,.*/,,'` by configure."
13241
13242 # First look for the input files in the build tree, otherwise in the
13243 # src tree.
13244 ac_file_inputs=`IFS=:
13245 for f in $ac_file_in; do
13246 case $f in
13247 -) echo $tmp/stdin ;;
13248 [\\/$]*)
13249 # Absolute (can't be DOS-style, as IFS=:)
13250 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13251echo "$as_me: error: cannot find input file: $f" >&2;}
13252 { (exit 1); exit 1; }; }
13253 echo "$f";;
13254 *) # Relative
13255 if test -f "$f"; then
13256 # Build tree
13257 echo "$f"
13258 elif test -f "$srcdir/$f"; then
13259 # Source tree
13260 echo "$srcdir/$f"
13261 else
13262 # /dev/null tree
13263 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13264echo "$as_me: error: cannot find input file: $f" >&2;}
13265 { (exit 1); exit 1; }; }
13266 fi;;
13267 esac
13268 done` || { (exit 1); exit 1; }
13269_ACEOF
13270cat >>$CONFIG_STATUS <<_ACEOF
13271 sed "$ac_vpsub
13272$extrasub
13273_ACEOF
13274cat >>$CONFIG_STATUS <<\_ACEOF
13275:t
13276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13277s,@configure_input@,$configure_input,;t t
13278s,@srcdir@,$ac_srcdir,;t t
13279s,@abs_srcdir@,$ac_abs_srcdir,;t t
13280s,@top_srcdir@,$ac_top_srcdir,;t t
13281s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13282s,@builddir@,$ac_builddir,;t t
13283s,@abs_builddir@,$ac_abs_builddir,;t t
13284s,@top_builddir@,$ac_top_builddir,;t t
13285s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13286s,@INSTALL@,$ac_INSTALL,;t t
13287" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13288 rm -f $tmp/stdin
13289 if test x"$ac_file" != x-; then
13290 mv $tmp/out $ac_file
13291 else
13292 cat $tmp/out
13293 rm -f $tmp/out
13294 fi
c148b4cb 13295
c6b750e1
DJ
13296done
13297_ACEOF
c148b4cb 13298
c6b750e1 13299cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13300
c6b750e1
DJ
13301{ (exit 0); exit 0; }
13302_ACEOF
c148b4cb 13303chmod +x $CONFIG_STATUS
c6b750e1
DJ
13304ac_clean_files=$ac_clean_files_save
13305
13306
13307# configure is writing to config.log, and then calls config.status.
13308# config.status does its own redirection, appending to config.log.
13309# Unfortunately, on DOS this fails, as config.log is still kept open
13310# by configure, so config.status won't be able to write to it; its
13311# output is simply discarded. So we exec the FD to /dev/null,
13312# effectively closing config.log, so it can be properly (re)opened and
13313# appended to by config.status. When coming back to configure, we
13314# need to make the FD available again.
13315if test "$no_create" != yes; then
13316 ac_cs_success=:
13317 ac_config_status_args=
13318 test "$silent" = yes &&
13319 ac_config_status_args="$ac_config_status_args --quiet"
13320 exec 5>/dev/null
13321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13322 exec 5>>config.log
13323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13324 # would make configure fail if this is the last instruction.
13325 $ac_cs_success || { (exit 1); exit 1; }
13326fi
c148b4cb 13327
This page took 1.171855 seconds and 4 git commands to generate.