gas/
[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 ;;
e7c8859c
RS
5451 mips*-*-*linux* | mips*-*-gnu*)
5452 target_makefile_frag="config/mt-mips-gnu"
5453 ;;
2a3124ca 5454 *-*-netware*)
a0da8069
NN
5455 target_makefile_frag="config/mt-netware"
5456 ;;
3d6dfe0f
NN
5457 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5458 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5459 ;;
5460 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5461 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5462 # commands to handle both 32-bit and 64-bit objects. These flags are
5463 # harmless if we're using GNU nm or ar.
5464 extra_arflags_for_target=" -X32_64"
5465 extra_nmflags_for_target=" -B -X32_64"
5466 ;;
5467 *-*-darwin*)
5468 # ranlib from Darwin requires the -c flag to look at common symbols.
5469 extra_ranlibflags_for_target=" -c"
5470 ;;
5471 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5472 target_makefile_frag="config/mt-wince"
5473 ;;
5474esac
5475
5476alphaieee_frag=/dev/null
5477case $target in
5478 alpha*-*-*)
5479 # This just makes sure to use the -mieee option to build target libs.
5480 # This should probably be set individually by each library.
5481 alphaieee_frag="config/mt-alphaieee"
5482 ;;
5483esac
5484
5485# If --enable-target-optspace always use -Os instead of -O2 to build
5486# the target libraries, similarly if it is not specified, use -Os
5487# on selected platforms.
5488ospace_frag=/dev/null
5489case "${enable_target_optspace}:${target}" in
5490 yes:*)
5491 ospace_frag="config/mt-ospace"
5492 ;;
5493 :d30v-*)
5494 ospace_frag="config/mt-d30v"
5495 ;;
5496 :m32r-* | :d10v-* | :fr30-*)
5497 ospace_frag="config/mt-ospace"
5498 ;;
5499 no:* | :*)
5500 ;;
5501 *)
5502 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5503 ;;
5504esac
5505
a0da8069
NN
5506# Default to using --with-stabs for certain targets.
5507if test x${with_stabs} = x ; then
5508 case "${target}" in
e31d1ea3 5509 mips*-*-irix[56]*)
a0da8069
NN
5510 ;;
5511 mips*-*-* | alpha*-*-osf*)
5512 with_stabs=yes;
5513 extra_host_args="${extra_host_args} --with-stabs"
5514 ;;
5515 esac
5516fi
5517
5518# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5519# them automatically.
5520case "${host}" in
c6b750e1 5521 hppa*64*-*-hpux11*)
a0da8069
NN
5522 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5523 ;;
5524esac
5525
a0da8069
NN
5526# Some systems (e.g., one of the i386-aix systems the gas testers are
5527# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5528tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5529build_tooldir=${tooldir}
5530
a0da8069
NN
5531# Create a .gdbinit file which runs the one in srcdir
5532# and tells GDB to look there for source files.
5533
5534if test -r ${srcdir}/.gdbinit ; then
5535 case ${srcdir} in
5536 .) ;;
5537 *) cat > ./.gdbinit <<EOF
5538# ${NO_EDIT}
5539dir ${srcdir}
5540dir .
5541source ${srcdir}/.gdbinit
5542EOF
5543 ;;
5544 esac
5545fi
5546
a0da8069
NN
5547# Make sure that the compiler is able to generate an executable. If it
5548# can't, we are probably in trouble. We don't care whether we can run the
5549# executable--we might be using a cross compiler--we only care whether it
5550# can be created. At this point the main configure script has set CC.
5551we_are_ok=no
5552echo "int main () { return 0; }" > conftest.c
5553${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5554if test $? = 0 ; then
5555 if test -s conftest || test -s conftest.exe ; then
5556 we_are_ok=yes
5557 fi
c6b750e1 5558fi
a0da8069
NN
5559case $we_are_ok in
5560 no)
5561 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5562 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5563 rm -f conftest*
5564 exit 1
5565 ;;
5566esac
5567rm -f conftest*
5568
5569# The Solaris /usr/ucb/cc compiler does not appear to work.
5570case "${host}" in
5571 sparc-sun-solaris2*)
5572 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5573 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5574 could_use=
5575 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5576 if test -d /opt/cygnus/bin ; then
5577 if test "$could_use" = "" ; then
5578 could_use="/opt/cygnus/bin"
5579 else
5580 could_use="$could_use or /opt/cygnus/bin"
5581 fi
5582 fi
5583 if test "$could_use" = "" ; then
5584 echo "Warning: compilation may fail because you're using"
5585 echo "/usr/ucb/cc. You should change your PATH or CC "
5586 echo "variable and rerun configure."
5587 else
5588 echo "Warning: compilation may fail because you're using"
5589 echo "/usr/ucb/cc, when you should use the C compiler from"
5590 echo "$could_use. You should change your"
5591 echo "PATH or CC variable and rerun configure."
5592 fi
5593 fi
5594 ;;
5595esac
5596
a0da8069
NN
5597case "${host}" in
5598 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5599 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5600 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5601esac
5602
5603# Record target_configdirs and the configure arguments for target and
5604# build configuration in Makefile.
5605target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5606build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5607
a0da8069
NN
5608# Determine whether gdb needs tk/tcl or not.
5609# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5610# and in that case we want gdb to be built without tk. Ugh!
5611# In fact I believe gdb is the *only* package directly dependent on tk,
5612# so we should be able to put the 'maybe's in unconditionally and
5613# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5614# 100% sure that that's safe though.
c180f501 5615
675c6968 5616gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5617case "$enable_gdbtk" in
5618 no)
5619 GDB_TK="" ;;
c180f501
AC
5620 yes)
5621 GDB_TK="${gdb_tk}" ;;
a0da8069 5622 *)
c180f501
AC
5623 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5624 # distro. Eventually someone will fix this and move Insight, nee
5625 # gdbtk to a separate directory.
5626 if test -d ${srcdir}/gdb/gdbtk ; then
5627 GDB_TK="${gdb_tk}"
5628 else
5629 GDB_TK=""
5630 fi
5631 ;;
a0da8069 5632esac
907be67c
DJ
5633CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5634INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5635
6bd3dfaa 5636# Strip out unwanted targets.
dd12c3a8
NN
5637
5638# While at that, we remove Makefiles if we were started for recursive
5639# configuration, so that the top-level Makefile reconfigures them,
5640# like we used to do when configure itself was recursive.
dd12c3a8 5641
6bd3dfaa
PB
5642# Loop over modules. $extrasub must be used with care, limiting as
5643# much as possible the usage of range addresses. That's because autoconf
5644# splits the sed script to overcome limits in the number of commands,
5645# and relying on carefully-timed sed passes may turn out to be very hard
5646# to maintain later. In this particular case, you just have to be careful
5647# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5648
319cab08
PB
5649# Check whether --enable-bootstrap or --disable-bootstrap was given.
5650if test "${enable_bootstrap+set}" = set; then
5651 enableval="$enable_bootstrap"
c6b750e1 5652
319cab08 5653else
9cb3fa6f 5654 enable_bootstrap=default
c6b750e1 5655fi;
319cab08 5656
9cb3fa6f
PB
5657# Issue errors and warnings for invalid/strange bootstrap combinations.
5658case "$configdirs" in
5659 *gcc*) have_compiler=yes ;;
5660 *) have_compiler=no ;;
5661esac
5662
5663case "$have_compiler:$host:$target:$enable_bootstrap" in
5664 *:*:*:no) ;;
5665
0aed8855 5666 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5667 # and we are in a native configuration.
5668 yes:$build:$build:default)
0aed8855 5669 enable_bootstrap=yes ;;
9cb3fa6f
PB
5670
5671 *:*:*:default)
5672 enable_bootstrap=no ;;
5673
5674 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5675 yes:$build:$build:yes)
9cb3fa6f
PB
5676 ;;
5677
5678 # Other configurations, but we have a compiler. Assume the user knows
5679 # what he's doing.
80911fe1 5680 yes:*:*:yes)
c6b750e1
DJ
5681 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5682echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5683 ;;
5684
5685 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5686 no:*:*:yes)
c6b750e1
DJ
5687 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5688echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5689 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5690
5691 # Fail if wrong command line
5692 *)
c6b750e1
DJ
5693 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5694echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5695 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5696 ;;
5697esac
5698
5699# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5700case "$enable_bootstrap" in
5701 yes)
498d4a71 5702 bootstrap_suffix=bootstrap ;;
319cab08 5703 no)
498d4a71 5704 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5705esac
5706
6a9cf61e 5707for module in ${build_configdirs} ; do
498d4a71
CF
5708 if test -z "${no_recursion}" \
5709 && test -f ${build_subdir}/${module}/Makefile; then
5710 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5711 rm -f ${build_subdir}/${module}/Makefile
5712 fi
5713 extrasub="$extrasub
5714/^@if build-$module\$/d
5715/^@endif build-$module\$/d
5716/^@if build-$module-$bootstrap_suffix\$/d
5717/^@endif build-$module-$bootstrap_suffix\$/d"
5718done
5719for module in ${configdirs} ; do
80911fe1 5720 if test -z "${no_recursion}"; then
8cf39b1b 5721 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5722 if test -f ${file}; then
5723 echo 1>&2 "*** removing ${file} to force reconfigure"
5724 rm -f ${file}
5725 fi
5726 done
498d4a71
CF
5727 fi
5728 extrasub="$extrasub
5729/^@if $module\$/d
5730/^@endif $module\$/d
5731/^@if $module-$bootstrap_suffix\$/d
5732/^@endif $module-$bootstrap_suffix\$/d"
5733done
5734for module in ${target_configdirs} ; do
5735 if test -z "${no_recursion}" \
5736 && test -f ${target_subdir}/${module}/Makefile; then
5737 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5738 rm -f ${target_subdir}/${module}/Makefile
5739 fi
5740 extrasub="$extrasub
5741/^@if target-$module\$/d
5742/^@endif target-$module\$/d
5743/^@if target-$module-$bootstrap_suffix\$/d
5744/^@endif target-$module-$bootstrap_suffix\$/d"
5745done
5746
6bd3dfaa
PB
5747extrasub="$extrasub
5748/^@if /,/^@endif /d"
a0da8069
NN
5749
5750# Create the serialization dependencies. This uses a temporary file.
5751
e6bfb94a
AO
5752# Check whether --enable-serial-configure or --disable-serial-configure was given.
5753if test "${enable_serial_configure+set}" = set; then
5754 enableval="$enable_serial_configure"
e6bfb94a 5755
c6b750e1 5756fi;
e6bfb94a 5757
1047cb91
DD
5758case ${enable_serial_configure} in
5759 yes)
5760 enable_serial_build_configure=yes
5761 enable_serial_host_configure=yes
5762 enable_serial_target_configure=yes
5763 ;;
5764esac
5765
a0da8069
NN
5766# These force 'configure's to be done one at a time, to avoid problems
5767# with contention over a shared config.cache.
5768rm -f serdep.tmp
e6bfb94a 5769echo '# serdep.tmp' > serdep.tmp
a0da8069 5770olditem=
1047cb91 5771test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5772for item in ${build_configdirs} ; do
5773 case ${olditem} in
5774 "") ;;
e6bfb94a 5775 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5776 esac
5777 olditem=${item}
5778done
5779olditem=
1047cb91 5780test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5781for item in ${configdirs} ; do
5782 case ${olditem} in
5783 "") ;;
e6bfb94a 5784 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5785 esac
5786 olditem=${item}
5787done
5788olditem=
1047cb91 5789test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5790for item in ${target_configdirs} ; do
5791 case ${olditem} in
5792 "") ;;
e6bfb94a 5793 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5794 esac
5795 olditem=${item}
5796done
5797serialization_dependencies=serdep.tmp
5798
5799
e6bfb94a 5800# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5801# target, nonopt, and variable assignments. These are the ones we
5802# might not want to pass down to subconfigures. Also strip
5803# program-prefix, program-suffix, and program-transform-name, so that
5804# we can pass down a consistent program-transform-name.
5805baseargs=
5806keep_next=no
5807skip_next=no
5808eval "set -- $ac_configure_args"
18f6b6ee
PB
5809for ac_arg
5810do
c6b750e1
DJ
5811 if test X"$skip_next" = X"yes"; then
5812 skip_next=no
5813 continue
5814 fi
5815 if test X"$keep_next" = X"yes"; then
5816 case $ac_arg in
5817 *\'*)
5818 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5819 esac
5820 baseargs="$baseargs '$ac_arg'"
5821 keep_next=no
5822 continue
5823 fi
5824
5825 # Handle separated arguments. Based on the logic generated by
5826 # autoconf 2.59.
5827 case $ac_arg in
5828 *=* | --config-cache | -C | -disable-* | --disable-* \
5829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5831 | -with-* | --with-* | -without-* | --without-* | --x)
5832 separate_arg=no
5833 ;;
5834 -*)
5835 separate_arg=yes
5836 ;;
5837 *)
5838 separate_arg=no
5839 ;;
5840 esac
5841
5842 case "$ac_arg" in
5843 --no*)
5844 continue
5845 ;;
5846 --c* | \
5847 --sr* | \
5848 --ho* | \
5849 --bu* | \
5850 --t* | \
5851 --program-* | \
5852 -cache_file* | \
5853 -srcdir* | \
5854 -host* | \
5855 -build* | \
5856 -target* | \
5857 -program-prefix* | \
5858 -program-suffix* | \
5859 -program-transform-name* )
5860 skip_next=$separate_arg
5861 continue
5862 ;;
5863 -*)
5864 # An option. Add it.
5865 case $ac_arg in
5866 *\'*)
5867 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5868 esac
5869 baseargs="$baseargs '$ac_arg'"
5870 keep_next=$separate_arg
5871 ;;
5872 *)
5873 # Either a variable assignment, or a nonopt (triplet). Don't
5874 # pass it down; let the Makefile handle this.
5875 continue
5876 ;;
5877 esac
5878done
5879# Remove the initial space we just introduced and, as these will be
5880# expanded by make, quote '$'.
5881baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5882
f27d4f92
DJ
5883# Add in --program-transform-name, after --program-prefix and
5884# --program-suffix have been applied to it. Autoconf has already
5885# doubled dollar signs and backslashes in program_transform_name; we want
5886# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5887# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5888# Also, because we want to override the logic in subdir configure scripts to
5889# choose program_transform_name, replace any s,x,x, with s,y,y,.
5890sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5891${program_transform_name}
5892EOF_SED
5893gcc_transform_name=`cat conftestsed.out`
5894rm -f conftestsed.out
5895baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5896if test "$silent" = yes; then
5897 baseargs="$baseargs --silent"
5898fi
f27d4f92 5899
a0da8069
NN
5900# For the build-side libraries, we just need to pretend we're native,
5901# and not use the same cache file. Multilibs are neither needed nor
5902# desired.
4b900473 5903build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5904
5905# For host modules, accept cache file option, or specification as blank.
5906case "${cache_file}" in
5907"") # empty
5908 cache_file_option="" ;;
5909/* | [A-Za-z]:[\\/]* ) # absolute path
5910 cache_file_option="--cache-file=${cache_file}" ;;
5911*) # relative path
5912 cache_file_option="--cache-file=../${cache_file}" ;;
5913esac
5914
82252c06
NN
5915# Host dirs don't like to share a cache file either, horribly enough.
5916# This seems to be due to autoconf 2.5x stupidity.
4b900473 5917host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5918
5919target_configargs=${baseargs}
5920
5921# Passing a --with-cross-host argument lets the target libraries know
5922# whether they are being built with a cross-compiler or being built
5923# native. However, it would be better to use other mechanisms to make the
5924# sorts of decisions they want to make on this basis. Please consider
5925# this option to be deprecated. FIXME.
5926if test x${is_cross_compiler} = xyes ; then
c6b750e1 5927 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5928fi
5929
5930# Default to --enable-multilib.
5931if test x${enable_multilib} = x ; then
5932 target_configargs="--enable-multilib ${target_configargs}"
5933fi
5934
5935# Pass --with-newlib if appropriate. Note that target_configdirs has
5936# changed from the earlier setting of with_newlib.
5937if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5938 target_configargs="--with-newlib ${target_configargs}"
5939fi
5940
95036d20
NN
5941# Different target subdirs use different values of certain variables
5942# (notably CXX). Worse, multilibs use *lots* of different values.
5943# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5944# it doesn't automatically accept command-line overrides of them.
5945# This means it's not safe for target subdirs to share a cache file,
5946# which is disgusting, but there you have it. Hopefully this can be
5947# fixed in future. It's still worthwhile to use a cache file for each
5948# directory. I think.
5949
ae380b45
MS
5950# Pass the appropriate --build, --host, --target and --cache-file arguments.
5951# We need to pass --target, as newer autoconf's requires consistency
5952# for target_alias and gcc doesn't manage it consistently.
4b900473 5953target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5954
a0da8069
NN
5955FLAGS_FOR_TARGET=
5956case " $target_configdirs " in
5957 *" newlib "*)
5958 case " $target_configargs " in
5959 *" --with-newlib "*)
5960 case "$target" in
5961 *-cygwin*)
564b43e5 5962 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
5963 esac
5964
5965 # If we're not building GCC, don't discard standard headers.
5966 if test -d ${srcdir}/gcc; then
5967 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5968
5969 if test "${build}" != "${host}"; then
5970 # On Canadian crosses, CC_FOR_TARGET will have already been set
5971 # by `configure', so we won't have an opportunity to add -Bgcc/
5972 # to it. This is right: we don't want to search that directory
5973 # for binaries, but we want the header files in there, so add
5974 # them explicitly.
b00612cc 5975 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5976
5977 # Someone might think of using the pre-installed headers on
5978 # Canadian crosses, in case the installed compiler is not fully
5979 # compatible with the compiler being built. In this case, it
5980 # would be better to flag an error than risking having
5981 # incompatible object files being constructed. We can't
5982 # guarantee that an error will be flagged, but let's hope the
5983 # compiler will do it, when presented with incompatible header
5984 # files.
5985 fi
5986 fi
5987
5988 case "${target}-${is_cross_compiler}" in
ec11bdc6 5989 i[3456789]86-*-linux*-no)
a0da8069
NN
5990 # Here host == target, so we don't need to build gcc,
5991 # so we don't want to discard standard headers.
5992 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5993 ;;
5994 *)
5995 # If we're building newlib, use its generic headers last, but search
5996 # for any libc-related directories first (so make it the last -B
5997 # switch).
5998 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
5999
6000 # If we're building libgloss, find the startup file, simulator library
6001 # and linker script.
6002 case " $target_configdirs " in
6003 *" libgloss "*)
6004 # Look for startup file, simulator library and maybe linker script.
6005 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6006 # Look for libnosys.a in case the target needs it.
6007 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6008 # Most targets have the linker script in the source directory.
6009 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6010 ;;
6011 esac
a0da8069
NN
6012 ;;
6013 esac
6014 ;;
6015 esac
6016 ;;
6017esac
45055374
CV
6018case "$target" in
6019*-mingw*)
6020 # Can't be handled as Cygwin above since Mingw does not use newlib.
6021 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' ;;
6022esac
a0da8069 6023
5fbad20a
DD
6024# Allow the user to override the flags for
6025# our build compiler if desired.
c66487f8
NC
6026if test x"${build}" = x"${host}" ; then
6027 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6028 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6029 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6030fi
5fbad20a 6031
a0da8069
NN
6032# On Canadian crosses, we'll be searching the right directories for
6033# the previously-installed cross compiler, so don't bother to add
6034# flags for directories within the install tree of the compiler
6035# being built; programs in there won't even run.
6036if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6037 # Search for pre-installed headers if nothing else fits.
bba45b8b 6038 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
6039fi
6040
6041if test "x${use_gnu_ld}" = x &&
6042 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6043 # Arrange for us to find uninstalled linker scripts.
b00612cc 6044 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6045fi
6046
a481dbb7
DD
6047# Search for other target-specific linker scripts and such.
6048case "${target}" in
4e206d7e
DB
6049 mep*)
6050 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6051 ;;
6052esac
6053
a0da8069 6054# Makefile fragments.
3e707e94
PB
6055for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6056do
6057 eval fragval=\$$frag
6058 if test $fragval != /dev/null; then
6059 eval $frag=${srcdir}/$fragval
6060 fi
6061done
a0da8069
NN
6062
6063
6064
6065
6066
6067# Miscellanea: directories, flags, etc.
6068
6069
6070
6071
6072
6073
6074
6a9cf61e 6075# Build module lists & subconfigure args.
a0da8069
NN
6076
6077
6078
be01d343
PB
6079# Host module lists & subconfigure args.
6080
6081
6082
6083# Target module lists & subconfigure args.
6084
6085
6086
6087# Build tools.
6088
6089
6090
1576798e
PB
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
be01d343
PB
6105# Generate default definitions for YACC, M4, LEX and other programs that run
6106# on the build machine. These are used if the Makefile can't locate these
6107# programs in objdir.
6108MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6109
6110for ac_prog in 'bison -y' byacc yacc
6111do
c6b750e1 6112 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6113set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6114echo "$as_me:$LINENO: checking for $ac_word" >&5
6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6116if test "${ac_cv_prog_YACC+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6118else
6119 if test -n "$YACC"; then
6120 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6121else
c6b750e1
DJ
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_YACC="$ac_prog"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133done
6134done
6135
be01d343
PB
6136fi
6137fi
c6b750e1 6138YACC=$ac_cv_prog_YACC
be01d343 6139if test -n "$YACC"; then
c6b750e1
DJ
6140 echo "$as_me:$LINENO: result: $YACC" >&5
6141echo "${ECHO_T}$YACC" >&6
be01d343 6142else
c6b750e1
DJ
6143 echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
be01d343
PB
6145fi
6146
c6b750e1 6147 test -n "$YACC" && break
be01d343
PB
6148done
6149test -n "$YACC" || YACC="$MISSING bison -y"
6150
6151case " $build_configdirs " in
6152 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6153 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6154esac
6155
6156for ac_prog in bison
6157do
c6b750e1 6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6159set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6160echo "$as_me:$LINENO: checking for $ac_word" >&5
6161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162if test "${ac_cv_prog_BISON+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6164else
6165 if test -n "$BISON"; then
6166 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6167else
c6b750e1
DJ
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_BISON="$ac_prog"
6176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179done
6180done
6181
be01d343
PB
6182fi
6183fi
c6b750e1 6184BISON=$ac_cv_prog_BISON
be01d343 6185if test -n "$BISON"; then
c6b750e1
DJ
6186 echo "$as_me:$LINENO: result: $BISON" >&5
6187echo "${ECHO_T}$BISON" >&6
be01d343 6188else
c6b750e1
DJ
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
be01d343
PB
6191fi
6192
c6b750e1 6193 test -n "$BISON" && break
be01d343
PB
6194done
6195test -n "$BISON" || BISON="$MISSING bison"
6196
6197case " $build_configdirs " in
6198 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6199esac
6200
6201for ac_prog in gm4 gnum4 m4
6202do
c6b750e1 6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6204set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6205echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6207if test "${ac_cv_prog_M4+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6209else
6210 if test -n "$M4"; then
6211 ac_cv_prog_M4="$M4" # Let the user override the test.
6212else
c6b750e1
DJ
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_M4="$ac_prog"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225done
6226
be01d343
PB
6227fi
6228fi
c6b750e1 6229M4=$ac_cv_prog_M4
be01d343 6230if test -n "$M4"; then
c6b750e1
DJ
6231 echo "$as_me:$LINENO: result: $M4" >&5
6232echo "${ECHO_T}$M4" >&6
be01d343 6233else
c6b750e1
DJ
6234 echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6
be01d343
PB
6236fi
6237
c6b750e1 6238 test -n "$M4" && break
be01d343
PB
6239done
6240test -n "$M4" || M4="$MISSING m4"
6241
6242case " $build_configdirs " in
6243 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6244esac
6245
6246for ac_prog in flex lex
6247do
c6b750e1 6248 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6249set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6250echo "$as_me:$LINENO: checking for $ac_word" >&5
6251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252if test "${ac_cv_prog_LEX+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6254else
6255 if test -n "$LEX"; then
6256 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6257else
c6b750e1
DJ
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_LEX="$ac_prog"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270done
6271
be01d343
PB
6272fi
6273fi
c6b750e1 6274LEX=$ac_cv_prog_LEX
be01d343 6275if test -n "$LEX"; then
c6b750e1
DJ
6276 echo "$as_me:$LINENO: result: $LEX" >&5
6277echo "${ECHO_T}$LEX" >&6
be01d343 6278else
c6b750e1
DJ
6279 echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6
be01d343
PB
6281fi
6282
c6b750e1 6283 test -n "$LEX" && break
be01d343
PB
6284done
6285test -n "$LEX" || LEX="$MISSING flex"
6286
6287case " $build_configdirs " in
6288 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6289 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6290esac
6291
6292for ac_prog in flex
6293do
c6b750e1 6294 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6295set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6296echo "$as_me:$LINENO: checking for $ac_word" >&5
6297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298if test "${ac_cv_prog_FLEX+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6300else
6301 if test -n "$FLEX"; then
6302 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6303else
c6b750e1
DJ
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_FLEX="$ac_prog"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315done
6316done
6317
be01d343
PB
6318fi
6319fi
c6b750e1 6320FLEX=$ac_cv_prog_FLEX
be01d343 6321if test -n "$FLEX"; then
c6b750e1
DJ
6322 echo "$as_me:$LINENO: result: $FLEX" >&5
6323echo "${ECHO_T}$FLEX" >&6
be01d343 6324else
c6b750e1
DJ
6325 echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6
be01d343
PB
6327fi
6328
c6b750e1 6329 test -n "$FLEX" && break
be01d343
PB
6330done
6331test -n "$FLEX" || FLEX="$MISSING flex"
6332
6333case " $build_configdirs " in
6334 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6335esac
6336
6337for ac_prog in makeinfo
6338do
c6b750e1 6339 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6340set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6341echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6343if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6345else
6346 if test -n "$MAKEINFO"; then
6347 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6348else
c6b750e1
DJ
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_MAKEINFO="$ac_prog"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361done
6362
be01d343
PB
6363fi
6364fi
c6b750e1 6365MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6366if test -n "$MAKEINFO"; then
c6b750e1
DJ
6367 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6368echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6369else
c6b750e1
DJ
6370 echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6
be01d343
PB
6372fi
6373
c6b750e1 6374 test -n "$MAKEINFO" && break
be01d343
PB
6375done
6376test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6377
6378case " $build_configdirs " in
6379 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6380 *)
6381
625a61cd 6382 # For an installed makeinfo, we require it to be from texinfo 4.6 or
be01d343
PB
6383 # higher, else we use the "missing" dummy.
6384 if ${MAKEINFO} --version \
625a61cd 6385 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
6386 :
6387 else
6388 MAKEINFO="$MISSING makeinfo"
6389 fi
6390 ;;
6391
6392esac
a0da8069 6393
be01d343 6394# FIXME: expect and dejagnu may become build tools?
a0da8069 6395
be01d343
PB
6396for ac_prog in expect
6397do
c6b750e1 6398 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6399set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6400echo "$as_me:$LINENO: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402if test "${ac_cv_prog_EXPECT+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6404else
6405 if test -n "$EXPECT"; then
6406 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6407else
c6b750e1
DJ
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_EXPECT="$ac_prog"
6416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419done
6420done
6421
be01d343
PB
6422fi
6423fi
c6b750e1 6424EXPECT=$ac_cv_prog_EXPECT
be01d343 6425if test -n "$EXPECT"; then
c6b750e1
DJ
6426 echo "$as_me:$LINENO: result: $EXPECT" >&5
6427echo "${ECHO_T}$EXPECT" >&6
be01d343 6428else
c6b750e1
DJ
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
be01d343 6431fi
a0da8069 6432
c6b750e1 6433 test -n "$EXPECT" && break
be01d343
PB
6434done
6435test -n "$EXPECT" || EXPECT="expect"
a0da8069 6436
be01d343
PB
6437case " $configdirs " in
6438 *" expect "*)
6439 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6440 ;;
6441esac
a0da8069 6442
be01d343
PB
6443for ac_prog in runtest
6444do
c6b750e1 6445 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6446set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6447echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449if test "${ac_cv_prog_RUNTEST+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6451else
6452 if test -n "$RUNTEST"; then
6453 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6454else
c6b750e1
DJ
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_RUNTEST="$ac_prog"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467done
6468
be01d343
PB
6469fi
6470fi
c6b750e1 6471RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6472if test -n "$RUNTEST"; then
c6b750e1
DJ
6473 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6474echo "${ECHO_T}$RUNTEST" >&6
be01d343 6475else
c6b750e1
DJ
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
be01d343 6478fi
a0da8069 6479
c6b750e1 6480 test -n "$RUNTEST" && break
be01d343
PB
6481done
6482test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6483
be01d343
PB
6484case " $configdirs " in
6485 *" dejagnu "*)
6b89cc21 6486 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6487 ;;
6488esac
a0da8069
NN
6489
6490
a0da8069 6491# Host tools.
859789af
AC
6492ncn_tool_prefix=
6493test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6494ncn_target_tool_prefix=
6495test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6496
9a819804
AO
6497
6498
6499if test -n "$AR"; then
6500 ac_cv_prog_AR=$AR
6501elif test -n "$ac_cv_prog_AR"; then
6502 AR=$ac_cv_prog_AR
6503fi
6504
6505if test -n "$ac_cv_prog_AR"; then
6506 for ncn_progname in ar; do
6507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6508set dummy ${ncn_progname}; ac_word=$2
6509echo "$as_me:$LINENO: checking for $ac_word" >&5
6510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6511if test "${ac_cv_prog_AR+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514 if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_AR="${ncn_progname}"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529done
6530
6531fi
6532fi
6533AR=$ac_cv_prog_AR
6534if test -n "$AR"; then
6535 echo "$as_me:$LINENO: result: $AR" >&5
6536echo "${ECHO_T}$AR" >&6
6537else
6538 echo "$as_me:$LINENO: result: no" >&5
6539echo "${ECHO_T}no" >&6
6540fi
6541
6542 done
6543fi
6544
6545for ncn_progname in ar; do
05cbd757
PB
6546 if test -n "$ncn_tool_prefix"; then
6547 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6548set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6549echo "$as_me:$LINENO: checking for $ac_word" >&5
6550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6551if test "${ac_cv_prog_AR+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6553else
6554 if test -n "$AR"; then
6555 ac_cv_prog_AR="$AR" # Let the user override the test.
6556else
c6b750e1
DJ
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568done
6569done
6570
859789af
AC
6571fi
6572fi
c6b750e1 6573AR=$ac_cv_prog_AR
859789af 6574if test -n "$AR"; then
c6b750e1
DJ
6575 echo "$as_me:$LINENO: result: $AR" >&5
6576echo "${ECHO_T}$AR" >&6
859789af 6577else
c6b750e1
DJ
6578 echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6
859789af
AC
6580fi
6581
05cbd757
PB
6582 fi
6583 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6585set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6586echo "$as_me:$LINENO: checking for $ac_word" >&5
6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6588if test "${ac_cv_prog_AR+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6590else
05cbd757
PB
6591 if test -n "$AR"; then
6592 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6593else
c6b750e1
DJ
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_AR="${ncn_progname}"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605done
6606done
6607
859789af
AC
6608fi
6609fi
c6b750e1 6610AR=$ac_cv_prog_AR
05cbd757 6611if test -n "$AR"; then
c6b750e1
DJ
6612 echo "$as_me:$LINENO: result: $AR" >&5
6613echo "${ECHO_T}$AR" >&6
859789af 6614else
c6b750e1
DJ
6615 echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6
859789af 6617fi
c6b750e1 6618
05cbd757
PB
6619 fi
6620 test -n "$ac_cv_prog_AR" && break
6621done
6622
6623if test -z "$ac_cv_prog_AR" ; then
6624 set dummy ar
6625 if test $build = $host ; then
6626 AR="$2"
859789af 6627 else
05cbd757 6628 AR="${ncn_tool_prefix}$2"
859789af 6629 fi
859789af
AC
6630fi
6631
9a819804
AO
6632
6633
6634if test -n "$AS"; then
6635 ac_cv_prog_AS=$AS
6636elif test -n "$ac_cv_prog_AS"; then
6637 AS=$ac_cv_prog_AS
6638fi
6639
6640if test -n "$ac_cv_prog_AS"; then
6641 for ncn_progname in as; do
6642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6643set dummy ${ncn_progname}; ac_word=$2
6644echo "$as_me:$LINENO: checking for $ac_word" >&5
6645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6646if test "${ac_cv_prog_AS+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648else
6649 if test -n "$AS"; then
6650 ac_cv_prog_AS="$AS" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_AS="${ncn_progname}"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664done
6665
6666fi
6667fi
6668AS=$ac_cv_prog_AS
6669if test -n "$AS"; then
6670 echo "$as_me:$LINENO: result: $AS" >&5
6671echo "${ECHO_T}$AS" >&6
6672else
6673 echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6
6675fi
6676
6677 done
6678fi
6679
6680for ncn_progname in as; do
05cbd757
PB
6681 if test -n "$ncn_tool_prefix"; then
6682 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6683set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6684echo "$as_me:$LINENO: checking for $ac_word" >&5
6685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6686if test "${ac_cv_prog_AS+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6688else
6689 if test -n "$AS"; then
6690 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704done
6705
859789af
AC
6706fi
6707fi
c6b750e1 6708AS=$ac_cv_prog_AS
859789af 6709if test -n "$AS"; then
c6b750e1
DJ
6710 echo "$as_me:$LINENO: result: $AS" >&5
6711echo "${ECHO_T}$AS" >&6
859789af 6712else
c6b750e1
DJ
6713 echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6
859789af
AC
6715fi
6716
05cbd757
PB
6717 fi
6718 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6720set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6721echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6723if test "${ac_cv_prog_AS+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6725else
05cbd757
PB
6726 if test -n "$AS"; then
6727 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6728else
c6b750e1
DJ
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_AS="${ncn_progname}"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741done
6742
859789af
AC
6743fi
6744fi
c6b750e1 6745AS=$ac_cv_prog_AS
05cbd757 6746if test -n "$AS"; then
c6b750e1
DJ
6747 echo "$as_me:$LINENO: result: $AS" >&5
6748echo "${ECHO_T}$AS" >&6
859789af 6749else
c6b750e1
DJ
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
859789af 6752fi
c6b750e1 6753
05cbd757
PB
6754 fi
6755 test -n "$ac_cv_prog_AS" && break
6756done
6757
6758if test -z "$ac_cv_prog_AS" ; then
6759 set dummy as
6760 if test $build = $host ; then
6761 AS="$2"
859789af 6762 else
05cbd757 6763 AS="${ncn_tool_prefix}$2"
859789af 6764 fi
859789af
AC
6765fi
6766
9a819804
AO
6767
6768
6769if test -n "$DLLTOOL"; then
6770 ac_cv_prog_DLLTOOL=$DLLTOOL
6771elif test -n "$ac_cv_prog_DLLTOOL"; then
6772 DLLTOOL=$ac_cv_prog_DLLTOOL
6773fi
6774
6775if test -n "$ac_cv_prog_DLLTOOL"; then
6776 for ncn_progname in dlltool; do
6777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6778set dummy ${ncn_progname}; ac_word=$2
6779echo "$as_me:$LINENO: checking for $ac_word" >&5
6780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6781if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784 if test -n "$DLLTOOL"; then
6785 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_DLLTOOL="${ncn_progname}"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799done
6800
6801fi
6802fi
6803DLLTOOL=$ac_cv_prog_DLLTOOL
6804if test -n "$DLLTOOL"; then
6805 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6806echo "${ECHO_T}$DLLTOOL" >&6
6807else
6808 echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6
6810fi
6811
6812 done
6813fi
6814
6815for ncn_progname in dlltool; do
05cbd757
PB
6816 if test -n "$ncn_tool_prefix"; then
6817 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6818set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6819echo "$as_me:$LINENO: checking for $ac_word" >&5
6820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6821if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6823else
6824 if test -n "$DLLTOOL"; then
6825 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6826else
c6b750e1
DJ
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839done
6840
859789af
AC
6841fi
6842fi
c6b750e1 6843DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6844if test -n "$DLLTOOL"; then
c6b750e1
DJ
6845 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6846echo "${ECHO_T}$DLLTOOL" >&6
859789af 6847else
c6b750e1
DJ
6848 echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6
859789af
AC
6850fi
6851
05cbd757
PB
6852 fi
6853 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6855set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6856echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6858if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6860else
05cbd757
PB
6861 if test -n "$DLLTOOL"; then
6862 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6863else
c6b750e1
DJ
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_DLLTOOL="${ncn_progname}"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
6877
859789af
AC
6878fi
6879fi
c6b750e1 6880DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6881if test -n "$DLLTOOL"; then
c6b750e1
DJ
6882 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6883echo "${ECHO_T}$DLLTOOL" >&6
859789af 6884else
c6b750e1
DJ
6885 echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6
859789af 6887fi
c6b750e1 6888
05cbd757
PB
6889 fi
6890 test -n "$ac_cv_prog_DLLTOOL" && break
6891done
6892
6893if test -z "$ac_cv_prog_DLLTOOL" ; then
6894 set dummy dlltool
6895 if test $build = $host ; then
6896 DLLTOOL="$2"
859789af 6897 else
05cbd757 6898 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6899 fi
859789af
AC
6900fi
6901
9a819804
AO
6902
6903
6904if test -n "$LD"; then
6905 ac_cv_prog_LD=$LD
6906elif test -n "$ac_cv_prog_LD"; then
6907 LD=$ac_cv_prog_LD
6908fi
6909
6910if test -n "$ac_cv_prog_LD"; then
6911 for ncn_progname in ld; do
6912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6913set dummy ${ncn_progname}; ac_word=$2
6914echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916if test "${ac_cv_prog_LD+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 if test -n "$LD"; then
6920 ac_cv_prog_LD="$LD" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_LD="${ncn_progname}"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
6935
6936fi
6937fi
6938LD=$ac_cv_prog_LD
6939if test -n "$LD"; then
6940 echo "$as_me:$LINENO: result: $LD" >&5
6941echo "${ECHO_T}$LD" >&6
6942else
6943 echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6
6945fi
6946
6947 done
6948fi
6949
6950for ncn_progname in ld; do
05cbd757
PB
6951 if test -n "$ncn_tool_prefix"; then
6952 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6953set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6954echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6956if test "${ac_cv_prog_LD+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6958else
6959 if test -n "$LD"; then
6960 ac_cv_prog_LD="$LD" # Let the user override the test.
6961else
c6b750e1
DJ
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974done
6975
859789af
AC
6976fi
6977fi
c6b750e1 6978LD=$ac_cv_prog_LD
859789af 6979if test -n "$LD"; then
c6b750e1
DJ
6980 echo "$as_me:$LINENO: result: $LD" >&5
6981echo "${ECHO_T}$LD" >&6
859789af 6982else
c6b750e1
DJ
6983 echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6
859789af
AC
6985fi
6986
05cbd757
PB
6987 fi
6988 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6990set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6991echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6993if test "${ac_cv_prog_LD+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6995else
05cbd757
PB
6996 if test -n "$LD"; then
6997 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6998else
c6b750e1
DJ
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_LD="${ncn_progname}"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
7012
859789af
AC
7013fi
7014fi
c6b750e1 7015LD=$ac_cv_prog_LD
05cbd757 7016if test -n "$LD"; then
c6b750e1
DJ
7017 echo "$as_me:$LINENO: result: $LD" >&5
7018echo "${ECHO_T}$LD" >&6
859789af 7019else
c6b750e1
DJ
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
859789af 7022fi
c6b750e1 7023
05cbd757
PB
7024 fi
7025 test -n "$ac_cv_prog_LD" && break
7026done
7027
7028if test -z "$ac_cv_prog_LD" ; then
7029 set dummy ld
7030 if test $build = $host ; then
7031 LD="$2"
859789af 7032 else
05cbd757 7033 LD="${ncn_tool_prefix}$2"
859789af 7034 fi
859789af
AC
7035fi
7036
9a819804
AO
7037
7038
7039if test -n "$LIPO"; then
7040 ac_cv_prog_LIPO=$LIPO
7041elif test -n "$ac_cv_prog_LIPO"; then
7042 LIPO=$ac_cv_prog_LIPO
7043fi
7044
7045if test -n "$ac_cv_prog_LIPO"; then
7046 for ncn_progname in lipo; do
7047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7048set dummy ${ncn_progname}; ac_word=$2
7049echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7051if test "${ac_cv_prog_LIPO+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 if test -n "$LIPO"; then
7055 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_LIPO="${ncn_progname}"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069done
7070
7071fi
7072fi
7073LIPO=$ac_cv_prog_LIPO
7074if test -n "$LIPO"; then
7075 echo "$as_me:$LINENO: result: $LIPO" >&5
7076echo "${ECHO_T}$LIPO" >&6
7077else
7078 echo "$as_me:$LINENO: result: no" >&5
7079echo "${ECHO_T}no" >&6
7080fi
7081
7082 done
7083fi
7084
7085for ncn_progname in lipo; do
be01d343
PB
7086 if test -n "$ncn_tool_prefix"; then
7087 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7088set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7089echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7091if test "${ac_cv_prog_LIPO+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7093else
7094 if test -n "$LIPO"; then
7095 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7096else
c6b750e1
DJ
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109done
7110
be01d343
PB
7111fi
7112fi
c6b750e1 7113LIPO=$ac_cv_prog_LIPO
be01d343 7114if test -n "$LIPO"; then
c6b750e1
DJ
7115 echo "$as_me:$LINENO: result: $LIPO" >&5
7116echo "${ECHO_T}$LIPO" >&6
be01d343 7117else
c6b750e1
DJ
7118 echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
be01d343
PB
7120fi
7121
7122 fi
7123 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7125set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7126echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7128if test "${ac_cv_prog_LIPO+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7130else
7131 if test -n "$LIPO"; then
7132 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7133else
c6b750e1
DJ
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_LIPO="${ncn_progname}"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145done
7146done
7147
be01d343
PB
7148fi
7149fi
c6b750e1 7150LIPO=$ac_cv_prog_LIPO
be01d343 7151if test -n "$LIPO"; then
c6b750e1
DJ
7152 echo "$as_me:$LINENO: result: $LIPO" >&5
7153echo "${ECHO_T}$LIPO" >&6
be01d343 7154else
c6b750e1
DJ
7155 echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6
be01d343 7157fi
c6b750e1 7158
be01d343
PB
7159 fi
7160 test -n "$ac_cv_prog_LIPO" && break
7161done
7162
7163if test -z "$ac_cv_prog_LIPO" ; then
7164 set dummy lipo
7165 if test $build = $host ; then
7166 LIPO="$2"
7167 else
7168 LIPO="${ncn_tool_prefix}$2"
7169 fi
7170fi
7171
9a819804
AO
7172
7173
7174if test -n "$NM"; then
7175 ac_cv_prog_NM=$NM
7176elif test -n "$ac_cv_prog_NM"; then
7177 NM=$ac_cv_prog_NM
7178fi
7179
7180if test -n "$ac_cv_prog_NM"; then
7181 for ncn_progname in nm; do
7182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7183set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7184echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186if test "${ac_cv_prog_NM+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7188else
7189 if test -n "$NM"; then
7190 ac_cv_prog_NM="$NM" # Let the user override the test.
7191else
c6b750e1
DJ
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7199 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203done
7204done
7205
859789af
AC
7206fi
7207fi
c6b750e1 7208NM=$ac_cv_prog_NM
859789af 7209if test -n "$NM"; then
c6b750e1
DJ
7210 echo "$as_me:$LINENO: result: $NM" >&5
7211echo "${ECHO_T}$NM" >&6
859789af 7212else
c6b750e1
DJ
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
859789af
AC
7215fi
7216
9a819804
AO
7217 done
7218fi
7219
7220for ncn_progname in nm; do
7221 if test -n "$ncn_tool_prefix"; then
7222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7224echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226if test "${ac_cv_prog_NM+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7228else
05cbd757
PB
7229 if test -n "$NM"; then
7230 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7231else
c6b750e1
DJ
7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7239 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245
859789af
AC
7246fi
7247fi
c6b750e1 7248NM=$ac_cv_prog_NM
05cbd757 7249if test -n "$NM"; then
c6b750e1
DJ
7250 echo "$as_me:$LINENO: result: $NM" >&5
7251echo "${ECHO_T}$NM" >&6
859789af 7252else
c6b750e1
DJ
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
859789af 7255fi
c6b750e1 7256
05cbd757 7257 fi
9a819804
AO
7258 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7260set dummy ${ncn_progname}; ac_word=$2
7261echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263if test "${ac_cv_prog_NM+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266 if test -n "$NM"; then
7267 ac_cv_prog_NM="$NM" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_NM="${ncn_progname}"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280done
7281done
7282
7283fi
7284fi
7285NM=$ac_cv_prog_NM
7286if test -n "$NM"; then
7287 echo "$as_me:$LINENO: result: $NM" >&5
7288echo "${ECHO_T}$NM" >&6
7289else
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
7292fi
7293
7294 fi
7295 test -n "$ac_cv_prog_NM" && break
7296done
7297
7298if test -z "$ac_cv_prog_NM" ; then
7299 set dummy nm
7300 if test $build = $host ; then
7301 NM="$2"
7302 else
7303 NM="${ncn_tool_prefix}$2"
7304 fi
7305fi
7306
7307
7308
7309if test -n "$RANLIB"; then
7310 ac_cv_prog_RANLIB=$RANLIB
7311elif test -n "$ac_cv_prog_RANLIB"; then
7312 RANLIB=$ac_cv_prog_RANLIB
7313fi
7314
7315if test -n "$ac_cv_prog_RANLIB"; then
7316 for ncn_progname in ranlib; do
7317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7318set dummy ${ncn_progname}; ac_word=$2
7319echo "$as_me:$LINENO: checking for $ac_word" >&5
7320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7321if test "${ac_cv_prog_RANLIB+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324 if test -n "$RANLIB"; then
7325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_RANLIB="${ncn_progname}"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7337 fi
7338done
7339done
7340
7341fi
7342fi
7343RANLIB=$ac_cv_prog_RANLIB
7344if test -n "$RANLIB"; then
7345 echo "$as_me:$LINENO: result: $RANLIB" >&5
7346echo "${ECHO_T}$RANLIB" >&6
7347else
7348 echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
7350fi
7351
7352 done
7353fi
859789af 7354
9a819804 7355for ncn_progname in ranlib; do
05cbd757
PB
7356 if test -n "$ncn_tool_prefix"; then
7357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7358set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7359echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361if test "${ac_cv_prog_RANLIB+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7363else
7364 if test -n "$RANLIB"; then
7365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7366else
c6b750e1
DJ
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379done
7380
859789af
AC
7381fi
7382fi
c6b750e1 7383RANLIB=$ac_cv_prog_RANLIB
859789af 7384if test -n "$RANLIB"; then
c6b750e1
DJ
7385 echo "$as_me:$LINENO: result: $RANLIB" >&5
7386echo "${ECHO_T}$RANLIB" >&6
859789af 7387else
c6b750e1
DJ
7388 echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6
859789af
AC
7390fi
7391
05cbd757
PB
7392 fi
7393 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7395set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7396echo "$as_me:$LINENO: checking for $ac_word" >&5
7397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398if test "${ac_cv_prog_RANLIB+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7400else
05cbd757
PB
7401 if test -n "$RANLIB"; then
7402 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7403else
c6b750e1
DJ
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_RANLIB="${ncn_progname}"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415done
7416done
7417
859789af
AC
7418fi
7419fi
c6b750e1 7420RANLIB=$ac_cv_prog_RANLIB
05cbd757 7421if test -n "$RANLIB"; then
c6b750e1
DJ
7422 echo "$as_me:$LINENO: result: $RANLIB" >&5
7423echo "${ECHO_T}$RANLIB" >&6
859789af 7424else
c6b750e1
DJ
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
859789af 7427fi
c6b750e1 7428
859789af 7429 fi
05cbd757
PB
7430 test -n "$ac_cv_prog_RANLIB" && break
7431done
7432
7433if test -z "$ac_cv_prog_RANLIB" ; then
7434 RANLIB=":"
859789af
AC
7435fi
7436
9a819804
AO
7437
7438
7439if test -n "$STRIP"; then
7440 ac_cv_prog_STRIP=$STRIP
7441elif test -n "$ac_cv_prog_STRIP"; then
7442 STRIP=$ac_cv_prog_STRIP
7443fi
7444
7445if test -n "$ac_cv_prog_STRIP"; then
7446 for ncn_progname in strip; do
7447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7448set dummy ${ncn_progname}; ac_word=$2
7449echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451if test "${ac_cv_prog_STRIP+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454 if test -n "$STRIP"; then
7455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_STRIP="${ncn_progname}"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468done
7469done
7470
7471fi
7472fi
7473STRIP=$ac_cv_prog_STRIP
7474if test -n "$STRIP"; then
7475 echo "$as_me:$LINENO: result: $STRIP" >&5
7476echo "${ECHO_T}$STRIP" >&6
7477else
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
7480fi
7481
7482 done
7483fi
7484
7485for ncn_progname in strip; do
be01d343
PB
7486 if test -n "$ncn_tool_prefix"; then
7487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7488set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7489echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7491if test "${ac_cv_prog_STRIP+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7493else
7494 if test -n "$STRIP"; then
7495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7496else
c6b750e1
DJ
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509done
7510
be01d343
PB
7511fi
7512fi
c6b750e1 7513STRIP=$ac_cv_prog_STRIP
be01d343 7514if test -n "$STRIP"; then
c6b750e1
DJ
7515 echo "$as_me:$LINENO: result: $STRIP" >&5
7516echo "${ECHO_T}$STRIP" >&6
be01d343 7517else
c6b750e1
DJ
7518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
be01d343
PB
7520fi
7521
7522 fi
7523 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7525set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7526echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528if test "${ac_cv_prog_STRIP+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7530else
7531 if test -n "$STRIP"; then
7532 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7533else
c6b750e1
DJ
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_STRIP="${ncn_progname}"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547
be01d343
PB
7548fi
7549fi
c6b750e1 7550STRIP=$ac_cv_prog_STRIP
be01d343 7551if test -n "$STRIP"; then
c6b750e1
DJ
7552 echo "$as_me:$LINENO: result: $STRIP" >&5
7553echo "${ECHO_T}$STRIP" >&6
be01d343 7554else
c6b750e1
DJ
7555 echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
be01d343 7557fi
c6b750e1 7558
be01d343
PB
7559 fi
7560 test -n "$ac_cv_prog_STRIP" && break
7561done
7562
7563if test -z "$ac_cv_prog_STRIP" ; then
7564 STRIP=":"
7565fi
7566
9a819804
AO
7567
7568
7569if test -n "$WINDRES"; then
7570 ac_cv_prog_WINDRES=$WINDRES
7571elif test -n "$ac_cv_prog_WINDRES"; then
7572 WINDRES=$ac_cv_prog_WINDRES
7573fi
7574
7575if test -n "$ac_cv_prog_WINDRES"; then
7576 for ncn_progname in windres; do
7577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7578set dummy ${ncn_progname}; ac_word=$2
7579echo "$as_me:$LINENO: checking for $ac_word" >&5
7580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7581if test "${ac_cv_prog_WINDRES+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583else
7584 if test -n "$WINDRES"; then
7585 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_WINDRES="${ncn_progname}"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599done
7600
7601fi
7602fi
7603WINDRES=$ac_cv_prog_WINDRES
7604if test -n "$WINDRES"; then
7605 echo "$as_me:$LINENO: result: $WINDRES" >&5
7606echo "${ECHO_T}$WINDRES" >&6
7607else
7608 echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6
7610fi
7611
7612 done
7613fi
7614
7615for ncn_progname in windres; do
05cbd757
PB
7616 if test -n "$ncn_tool_prefix"; then
7617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7618set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7619echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7621if test "${ac_cv_prog_WINDRES+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7623else
7624 if test -n "$WINDRES"; then
7625 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7626else
c6b750e1
DJ
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639done
7640
859789af
AC
7641fi
7642fi
c6b750e1 7643WINDRES=$ac_cv_prog_WINDRES
859789af 7644if test -n "$WINDRES"; then
c6b750e1
DJ
7645 echo "$as_me:$LINENO: result: $WINDRES" >&5
7646echo "${ECHO_T}$WINDRES" >&6
859789af 7647else
c6b750e1
DJ
7648 echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6
859789af
AC
7650fi
7651
05cbd757
PB
7652 fi
7653 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7655set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7656echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7658if test "${ac_cv_prog_WINDRES+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7660else
05cbd757
PB
7661 if test -n "$WINDRES"; then
7662 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7663else
c6b750e1
DJ
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_WINDRES="${ncn_progname}"
7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675done
7676done
7677
859789af
AC
7678fi
7679fi
c6b750e1 7680WINDRES=$ac_cv_prog_WINDRES
05cbd757 7681if test -n "$WINDRES"; then
c6b750e1
DJ
7682 echo "$as_me:$LINENO: result: $WINDRES" >&5
7683echo "${ECHO_T}$WINDRES" >&6
859789af 7684else
c6b750e1
DJ
7685 echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6
859789af 7687fi
c6b750e1 7688
05cbd757
PB
7689 fi
7690 test -n "$ac_cv_prog_WINDRES" && break
7691done
7692
7693if test -z "$ac_cv_prog_WINDRES" ; then
7694 set dummy windres
7695 if test $build = $host ; then
7696 WINDRES="$2"
859789af 7697 else
05cbd757 7698 WINDRES="${ncn_tool_prefix}$2"
859789af 7699 fi
859789af
AC
7700fi
7701
9a819804
AO
7702
7703
0c24b341
NC
7704if test -n "$WINDMC"; then
7705 ac_cv_prog_WINDMC=$WINDMC
7706elif test -n "$ac_cv_prog_WINDMC"; then
7707 WINDMC=$ac_cv_prog_WINDMC
7708fi
7709
7710if test -n "$ac_cv_prog_WINDMC"; then
7711 for ncn_progname in windmc; do
7712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7713set dummy ${ncn_progname}; ac_word=$2
7714echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7716if test "${ac_cv_prog_WINDMC+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 if test -n "$WINDMC"; then
7720 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_WINDMC="${ncn_progname}"
7730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733done
7734done
7735
7736fi
7737fi
7738WINDMC=$ac_cv_prog_WINDMC
7739if test -n "$WINDMC"; then
7740 echo "$as_me:$LINENO: result: $WINDMC" >&5
7741echo "${ECHO_T}$WINDMC" >&6
7742else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745fi
7746
7747 done
7748fi
7749
7750for ncn_progname in windmc; do
7751 if test -n "$ncn_tool_prefix"; then
7752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7753set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_prog_WINDMC+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 if test -n "$WINDMC"; then
7760 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774done
7775
7776fi
7777fi
7778WINDMC=$ac_cv_prog_WINDMC
7779if test -n "$WINDMC"; then
7780 echo "$as_me:$LINENO: result: $WINDMC" >&5
7781echo "${ECHO_T}$WINDMC" >&6
7782else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785fi
7786
7787 fi
7788 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7790set dummy ${ncn_progname}; ac_word=$2
7791echo "$as_me:$LINENO: checking for $ac_word" >&5
7792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7793if test "${ac_cv_prog_WINDMC+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 if test -n "$WINDMC"; then
7797 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_WINDMC="${ncn_progname}"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811done
7812
7813fi
7814fi
7815WINDMC=$ac_cv_prog_WINDMC
7816if test -n "$WINDMC"; then
7817 echo "$as_me:$LINENO: result: $WINDMC" >&5
7818echo "${ECHO_T}$WINDMC" >&6
7819else
7820 echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822fi
7823
7824 fi
7825 test -n "$ac_cv_prog_WINDMC" && break
7826done
7827
7828if test -z "$ac_cv_prog_WINDMC" ; then
7829 set dummy windmc
7830 if test $build = $host ; then
7831 WINDMC="$2"
7832 else
7833 WINDMC="${ncn_tool_prefix}$2"
7834 fi
7835fi
7836
7837
7838
9a819804
AO
7839if test -n "$OBJCOPY"; then
7840 ac_cv_prog_OBJCOPY=$OBJCOPY
7841elif test -n "$ac_cv_prog_OBJCOPY"; then
7842 OBJCOPY=$ac_cv_prog_OBJCOPY
7843fi
7844
7845if test -n "$ac_cv_prog_OBJCOPY"; then
7846 for ncn_progname in objcopy; do
7847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7848set dummy ${ncn_progname}; ac_word=$2
7849echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7851if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854 if test -n "$OBJCOPY"; then
7855 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_OBJCOPY="${ncn_progname}"
7865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868done
7869done
7870
7871fi
7872fi
7873OBJCOPY=$ac_cv_prog_OBJCOPY
7874if test -n "$OBJCOPY"; then
7875 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7876echo "${ECHO_T}$OBJCOPY" >&6
7877else
7878 echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880fi
7881
7882 done
7883fi
7884
7885for ncn_progname in objcopy; do
05cbd757
PB
7886 if test -n "$ncn_tool_prefix"; then
7887 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7888set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7889echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7893else
7894 if test -n "$OBJCOPY"; then
7895 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7896else
c6b750e1
DJ
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909done
7910
859789af
AC
7911fi
7912fi
c6b750e1 7913OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7914if test -n "$OBJCOPY"; then
c6b750e1
DJ
7915 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7916echo "${ECHO_T}$OBJCOPY" >&6
859789af 7917else
c6b750e1
DJ
7918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
859789af
AC
7920fi
7921
05cbd757
PB
7922 fi
7923 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7925set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7926echo "$as_me:$LINENO: checking for $ac_word" >&5
7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7928if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7930else
05cbd757
PB
7931 if test -n "$OBJCOPY"; then
7932 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7933else
c6b750e1
DJ
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_prog_OBJCOPY="${ncn_progname}"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947
859789af
AC
7948fi
7949fi
c6b750e1 7950OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7951if test -n "$OBJCOPY"; then
c6b750e1
DJ
7952 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7953echo "${ECHO_T}$OBJCOPY" >&6
859789af 7954else
c6b750e1
DJ
7955 echo "$as_me:$LINENO: result: no" >&5
7956echo "${ECHO_T}no" >&6
859789af 7957fi
c6b750e1 7958
05cbd757
PB
7959 fi
7960 test -n "$ac_cv_prog_OBJCOPY" && break
7961done
7962
7963if test -z "$ac_cv_prog_OBJCOPY" ; then
7964 set dummy objcopy
7965 if test $build = $host ; then
7966 OBJCOPY="$2"
859789af 7967 else
05cbd757 7968 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7969 fi
859789af
AC
7970fi
7971
9a819804
AO
7972
7973
7974if test -n "$OBJDUMP"; then
7975 ac_cv_prog_OBJDUMP=$OBJDUMP
7976elif test -n "$ac_cv_prog_OBJDUMP"; then
7977 OBJDUMP=$ac_cv_prog_OBJDUMP
7978fi
7979
7980if test -n "$ac_cv_prog_OBJDUMP"; then
7981 for ncn_progname in objdump; do
7982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7983set dummy ${ncn_progname}; ac_word=$2
7984echo "$as_me:$LINENO: checking for $ac_word" >&5
7985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7986if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989 if test -n "$OBJDUMP"; then
7990 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_OBJDUMP="${ncn_progname}"
8000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003done
8004done
8005
8006fi
8007fi
8008OBJDUMP=$ac_cv_prog_OBJDUMP
8009if test -n "$OBJDUMP"; then
8010 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8011echo "${ECHO_T}$OBJDUMP" >&6
8012else
8013 echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6
8015fi
8016
8017 done
8018fi
8019
8020for ncn_progname in objdump; do
05cbd757
PB
8021 if test -n "$ncn_tool_prefix"; then
8022 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8023set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8024echo "$as_me:$LINENO: checking for $ac_word" >&5
8025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8026if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
8028else
8029 if test -n "$OBJDUMP"; then
8030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8031else
c6b750e1
DJ
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043done
8044done
8045
859789af
AC
8046fi
8047fi
c6b750e1 8048OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8049if test -n "$OBJDUMP"; then
c6b750e1
DJ
8050 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8051echo "${ECHO_T}$OBJDUMP" >&6
859789af 8052else
c6b750e1
DJ
8053 echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6
859789af
AC
8055fi
8056
05cbd757
PB
8057 fi
8058 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8060set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8061echo "$as_me:$LINENO: checking for $ac_word" >&5
8062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8063if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8065else
05cbd757
PB
8066 if test -n "$OBJDUMP"; then
8067 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8068else
c6b750e1
DJ
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_OBJDUMP="${ncn_progname}"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080done
8081done
8082
859789af
AC
8083fi
8084fi
c6b750e1 8085OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8086if test -n "$OBJDUMP"; then
c6b750e1
DJ
8087 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8088echo "${ECHO_T}$OBJDUMP" >&6
859789af 8089else
c6b750e1
DJ
8090 echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
859789af 8092fi
c6b750e1 8093
05cbd757
PB
8094 fi
8095 test -n "$ac_cv_prog_OBJDUMP" && break
8096done
8097
8098if test -z "$ac_cv_prog_OBJDUMP" ; then
8099 set dummy objdump
8100 if test $build = $host ; then
8101 OBJDUMP="$2"
859789af 8102 else
05cbd757 8103 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8104 fi
859789af
AC
8105fi
8106
a0da8069
NN
8107
8108
8109
8110
8111
be01d343 8112# Target tools.
c6b750e1 8113
2429c060
PB
8114# Check whether --with-build-time-tools or --without-build-time-tools was given.
8115if test "${with_build_time_tools+set}" = set; then
8116 withval="$with_build_time_tools"
8117 case x"$withval" in
8118 x/*) ;;
8119 *)
8120 with_build_time_tools=
c6b750e1
DJ
8121 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8122echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8123 ;;
8124 esac
859789af 8125else
2429c060 8126 with_build_time_tools=
c6b750e1 8127fi;
859789af 8128
9a819804
AO
8129
8130
8131if test -n "$CC_FOR_TARGET"; then
8132 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8133elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8134 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8135fi
8136
8137if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8138 for ncn_progname in cc gcc; do
8139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8140set dummy ${ncn_progname}; ac_word=$2
8141echo "$as_me:$LINENO: checking for $ac_word" >&5
8142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8143if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146 if test -n "$CC_FOR_TARGET"; then
8147 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8148else
8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161done
8162
8163fi
8164fi
8165CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8166if test -n "$CC_FOR_TARGET"; then
8167 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8168echo "${ECHO_T}$CC_FOR_TARGET" >&6
8169else
8170 echo "$as_me:$LINENO: result: no" >&5
8171echo "${ECHO_T}no" >&6
8172fi
8173
8174 done
8175fi
8176
8177if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8178 for ncn_progname in cc gcc; do
c6b750e1
DJ
8179 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8180echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8181 if test -x $with_build_time_tools/${ncn_progname}; then
8182 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8183 echo "$as_me:$LINENO: result: yes" >&5
8184echo "${ECHO_T}yes" >&6
cac3d6c4 8185 break
2429c060 8186 else
c6b750e1
DJ
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
cac3d6c4
CM
8189 fi
8190 done
55db4b87
PB
8191fi
8192
2429c060
PB
8193if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8194 for ncn_progname in cc gcc; do
8195 if test -n "$ncn_target_tool_prefix"; then
8196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8197set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8198echo "$as_me:$LINENO: checking for $ac_word" >&5
8199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8200if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8202else
8203 if test -n "$CC_FOR_TARGET"; then
8204 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8205else
c6b750e1
DJ
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217done
8218done
8219
55db4b87
PB
8220fi
8221fi
c6b750e1 8222CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 8223if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8224 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8225echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8226else
c6b750e1
DJ
8227 echo "$as_me:$LINENO: result: no" >&5
8228echo "${ECHO_T}no" >&6
55db4b87
PB
8229fi
8230
2429c060
PB
8231 fi
8232 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8234set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8235echo "$as_me:$LINENO: checking for $ac_word" >&5
8236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8237if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8239else
05cbd757
PB
8240 if test -n "$CC_FOR_TARGET"; then
8241 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8242else
c6b750e1
DJ
8243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244for as_dir in $PATH
8245do
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8253 fi
8254done
8255done
8256
55db4b87
PB
8257fi
8258fi
c6b750e1 8259CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8260if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8261 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8262echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8263else
c6b750e1
DJ
8264 echo "$as_me:$LINENO: result: no" >&5
8265echo "${ECHO_T}no" >&6
55db4b87 8266fi
c6b750e1 8267
2429c060
PB
8268 fi
8269 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8270 done
8271fi
c6b750e1 8272
05cbd757
PB
8273if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8274 set dummy cc gcc
8275 if test $build = $target ; then
8276 CC_FOR_TARGET="$2"
55db4b87 8277 else
05cbd757 8278 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8279 fi
d3f5afc4
MS
8280else
8281 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8282fi
8283
9a819804
AO
8284
8285
8286if test -n "$CXX_FOR_TARGET"; then
8287 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8288elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8289 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8290fi
8291
8292if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8293 for ncn_progname in c++ g++ cxx gxx; do
8294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8295set dummy ${ncn_progname}; ac_word=$2
8296echo "$as_me:$LINENO: checking for $ac_word" >&5
8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8298if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 if test -n "$CXX_FOR_TARGET"; then
8302 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315done
8316done
8317
8318fi
8319fi
8320CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8321if test -n "$CXX_FOR_TARGET"; then
8322 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8323echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8324else
8325 echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6
8327fi
8328
8329 done
8330fi
8331
8332if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8333 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8334 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8335echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8336 if test -x $with_build_time_tools/${ncn_progname}; then
8337 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8338 echo "$as_me:$LINENO: result: yes" >&5
8339echo "${ECHO_T}yes" >&6
2429c060
PB
8340 break
8341 else
c6b750e1
DJ
8342 echo "$as_me:$LINENO: result: no" >&5
8343echo "${ECHO_T}no" >&6
2429c060
PB
8344 fi
8345 done
8346fi
8347
8348if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8349 for ncn_progname in c++ g++ cxx gxx; do
8350 if test -n "$ncn_target_tool_prefix"; then
8351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8352set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8353echo "$as_me:$LINENO: checking for $ac_word" >&5
8354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8355if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8357else
8358 if test -n "$CXX_FOR_TARGET"; then
8359 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8360else
c6b750e1
DJ
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372done
8373done
8374
55db4b87
PB
8375fi
8376fi
c6b750e1 8377CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8378if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8379 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8380echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8381else
c6b750e1
DJ
8382 echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6
55db4b87
PB
8384fi
8385
2429c060
PB
8386 fi
8387 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8389set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8390echo "$as_me:$LINENO: checking for $ac_word" >&5
8391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8392if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8394else
05cbd757
PB
8395 if test -n "$CXX_FOR_TARGET"; then
8396 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8397else
c6b750e1
DJ
8398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399for as_dir in $PATH
8400do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8405 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409done
8410done
8411
55db4b87
PB
8412fi
8413fi
c6b750e1 8414CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8415if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8416 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8417echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8418else
c6b750e1
DJ
8419 echo "$as_me:$LINENO: result: no" >&5
8420echo "${ECHO_T}no" >&6
55db4b87 8421fi
c6b750e1 8422
2429c060
PB
8423 fi
8424 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8425 done
8426fi
c6b750e1 8427
05cbd757
PB
8428if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8429 set dummy c++ g++ cxx gxx
8430 if test $build = $target ; then
8431 CXX_FOR_TARGET="$2"
55db4b87 8432 else
05cbd757 8433 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8434 fi
d3f5afc4
MS
8435else
8436 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8437fi
8438
9a819804
AO
8439
8440
8441if test -n "$GCC_FOR_TARGET"; then
8442 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8443elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8444 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8445fi
8446
8447if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8448 for ncn_progname in gcc; do
8449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8450set dummy ${ncn_progname}; ac_word=$2
8451echo "$as_me:$LINENO: checking for $ac_word" >&5
8452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456 if test -n "$GCC_FOR_TARGET"; then
8457 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8458else
8459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8469 fi
8470done
8471done
8472
8473fi
8474fi
8475GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8476if test -n "$GCC_FOR_TARGET"; then
8477 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8478echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8479else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482fi
8483
8484 done
8485fi
8486
8487if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8488 for ncn_progname in gcc; do
c6b750e1
DJ
8489 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8490echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8491 if test -x $with_build_time_tools/${ncn_progname}; then
8492 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8493 echo "$as_me:$LINENO: result: yes" >&5
8494echo "${ECHO_T}yes" >&6
2429c060
PB
8495 break
8496 else
c6b750e1
DJ
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
2429c060
PB
8499 fi
8500 done
8501fi
8502
8503if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8504 for ncn_progname in gcc; do
8505 if test -n "$ncn_target_tool_prefix"; then
8506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8507set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8508echo "$as_me:$LINENO: checking for $ac_word" >&5
8509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8510if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8512else
2429c060
PB
8513 if test -n "$GCC_FOR_TARGET"; then
8514 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8515else
c6b750e1
DJ
8516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8526 fi
8527done
8528done
8529
55db4b87
PB
8530fi
8531fi
c6b750e1 8532GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8533if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8534 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8535echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8536else
c6b750e1
DJ
8537 echo "$as_me:$LINENO: result: no" >&5
8538echo "${ECHO_T}no" >&6
55db4b87
PB
8539fi
8540
2429c060
PB
8541 fi
8542 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8544set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8545echo "$as_me:$LINENO: checking for $ac_word" >&5
8546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8547if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8549else
05cbd757
PB
8550 if test -n "$GCC_FOR_TARGET"; then
8551 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8552else
c6b750e1
DJ
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8560 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 break 2
8563 fi
8564done
8565done
8566
55db4b87
PB
8567fi
8568fi
c6b750e1 8569GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8570if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8571 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8572echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8573else
c6b750e1
DJ
8574 echo "$as_me:$LINENO: result: no" >&5
8575echo "${ECHO_T}no" >&6
55db4b87 8576fi
c6b750e1 8577
2429c060
PB
8578 fi
8579 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8580 done
8581fi
c6b750e1 8582
05cbd757
PB
8583if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8584 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8585else
8586 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8587fi
8588
9a819804
AO
8589
8590
8591if test -n "$GCJ_FOR_TARGET"; then
8592 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8593elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8594 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8595fi
8596
8597if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8598 for ncn_progname in gcj; do
8599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8600set dummy ${ncn_progname}; ac_word=$2
8601echo "$as_me:$LINENO: checking for $ac_word" >&5
8602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8603if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605else
8606 if test -n "$GCJ_FOR_TARGET"; then
8607 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8608else
8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610for as_dir in $PATH
8611do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8619 fi
8620done
8621done
8622
8623fi
8624fi
8625GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8626if test -n "$GCJ_FOR_TARGET"; then
8627 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8628echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8629else
8630 echo "$as_me:$LINENO: result: no" >&5
8631echo "${ECHO_T}no" >&6
8632fi
8633
8634 done
8635fi
8636
8637if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8638 for ncn_progname in gcj; do
c6b750e1
DJ
8639 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8640echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8641 if test -x $with_build_time_tools/${ncn_progname}; then
8642 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8643 echo "$as_me:$LINENO: result: yes" >&5
8644echo "${ECHO_T}yes" >&6
2429c060
PB
8645 break
8646 else
c6b750e1
DJ
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
2429c060
PB
8649 fi
8650 done
8651fi
8652
8653if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8654 for ncn_progname in gcj; do
8655 if test -n "$ncn_target_tool_prefix"; then
8656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8657set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8658echo "$as_me:$LINENO: checking for $ac_word" >&5
8659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8660if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8662else
8663 if test -n "$GCJ_FOR_TARGET"; then
8664 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8665else
c6b750e1
DJ
8666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667for as_dir in $PATH
8668do
8669 IFS=$as_save_IFS
8670 test -z "$as_dir" && as_dir=.
8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8673 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 break 2
8676 fi
8677done
8678done
8679
55db4b87
PB
8680fi
8681fi
9a819804
AO
8682GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8683if test -n "$GCJ_FOR_TARGET"; then
8684 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8685echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8686else
8687 echo "$as_me:$LINENO: result: no" >&5
8688echo "${ECHO_T}no" >&6
8689fi
8690
8691 fi
8692 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8694set dummy ${ncn_progname}; ac_word=$2
8695echo "$as_me:$LINENO: checking for $ac_word" >&5
8696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8697if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700 if test -n "$GCJ_FOR_TARGET"; then
8701 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8702else
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8713 fi
8714done
8715done
8716
8717fi
8718fi
8719GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8720if test -n "$GCJ_FOR_TARGET"; then
8721 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8722echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8723else
8724 echo "$as_me:$LINENO: result: no" >&5
8725echo "${ECHO_T}no" >&6
8726fi
8727
8728 fi
8729 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8730 done
8731fi
8732
8733if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8734 set dummy gcj
8735 if test $build = $target ; then
8736 GCJ_FOR_TARGET="$2"
8737 else
8738 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8739 fi
d3f5afc4
MS
8740else
8741 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8742fi
8743
8744
8745
8746if test -n "$GFORTRAN_FOR_TARGET"; then
8747 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8748elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8749 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8750fi
8751
9a819804
AO
8752if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8753 for ncn_progname in gfortran; do
8754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8755set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8756echo "$as_me:$LINENO: checking for $ac_word" >&5
8757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8758if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8759 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8760else
9a819804
AO
8761 if test -n "$GFORTRAN_FOR_TARGET"; then
8762 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8763else
c6b750e1
DJ
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8771 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8774 fi
8775done
8776done
8777
55db4b87
PB
8778fi
8779fi
9a819804
AO
8780GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8781if test -n "$GFORTRAN_FOR_TARGET"; then
8782 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8783echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8784else
c6b750e1
DJ
8785 echo "$as_me:$LINENO: result: no" >&5
8786echo "${ECHO_T}no" >&6
55db4b87 8787fi
c6b750e1 8788
2429c060
PB
8789 done
8790fi
c6b750e1 8791
9a819804 8792if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8793 for ncn_progname in gfortran; do
c6b750e1
DJ
8794 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8795echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8796 if test -x $with_build_time_tools/${ncn_progname}; then
8797 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8798 echo "$as_me:$LINENO: result: yes" >&5
8799echo "${ECHO_T}yes" >&6
2429c060
PB
8800 break
8801 else
c6b750e1
DJ
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
2429c060
PB
8804 fi
8805 done
8806fi
8807
8808if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8809 for ncn_progname in gfortran; do
8810 if test -n "$ncn_target_tool_prefix"; then
8811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8812set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8813echo "$as_me:$LINENO: checking for $ac_word" >&5
8814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8815if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8817else
8818 if test -n "$GFORTRAN_FOR_TARGET"; then
8819 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8820else
c6b750e1
DJ
8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822for as_dir in $PATH
8823do
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8831 fi
8832done
8833done
8834
55db4b87
PB
8835fi
8836fi
c6b750e1 8837GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8838if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8839 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8840echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8841else
c6b750e1
DJ
8842 echo "$as_me:$LINENO: result: no" >&5
8843echo "${ECHO_T}no" >&6
55db4b87
PB
8844fi
8845
2429c060
PB
8846 fi
8847 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8849set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8850echo "$as_me:$LINENO: checking for $ac_word" >&5
8851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8852if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8854else
05cbd757 8855 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8856 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8857else
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8868 fi
8869done
8870done
8871
55db4b87
PB
8872fi
8873fi
c6b750e1 8874GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8875if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8876 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8877echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8878else
c6b750e1
DJ
8879 echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
55db4b87 8881fi
c6b750e1 8882
2429c060
PB
8883 fi
8884 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8885 done
8886fi
c6b750e1 8887
05cbd757
PB
8888if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8889 set dummy gfortran
8890 if test $build = $target ; then
8891 GFORTRAN_FOR_TARGET="$2"
55db4b87 8892 else
05cbd757 8893 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8894 fi
d3f5afc4
MS
8895else
8896 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8897fi
8898
2429c060
PB
8899
8900
2429c060
PB
8901cat > conftest.c << \EOF
8902#ifdef __GNUC__
8903 gcc_yay;
8904#endif
8905EOF
8906if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8907 have_gcc_for_target=yes
859789af 8908else
2429c060
PB
8909 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8910 have_gcc_for_target=no
859789af 8911fi
2429c060
PB
8912rm conftest.c
8913
8914
8915
859789af 8916
2429c060
PB
8917if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8918 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8919 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8920echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8921 if test -x $with_build_time_tools/ar; then
8922 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8923 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8924 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8925echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8926 else
c6b750e1
DJ
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
3a35eeb3 8929 fi
2429c060
PB
8930 elif test $build != $host && test $have_gcc_for_target = yes; then
8931 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8932 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8933 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8934 fi
2429c060 8935fi
c6b750e1 8936if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8937 # Extract the first word of "ar", so it can be a program name with args.
8938set dummy ar; ac_word=$2
c6b750e1
DJ
8939echo "$as_me:$LINENO: checking for $ac_word" >&5
8940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8941if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8943else
c6b750e1
DJ
8944 case $AR_FOR_TARGET in
8945 [\\/]* | ?:[\\/]*)
2429c060
PB
8946 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8947 ;;
2429c060 8948 *)
c6b750e1
DJ
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $gcc_cv_tool_dirs
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960done
8961done
8962
2429c060
PB
8963 ;;
8964esac
859789af 8965fi
c6b750e1
DJ
8966AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8967
2429c060 8968if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8969 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8970echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8971else
c6b750e1
DJ
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
859789af 8974fi
05cbd757 8975
2429c060
PB
8976fi
8977if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8978
8979
8980if test -n "$AR_FOR_TARGET"; then
8981 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8982elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8983 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8984fi
8985
8986if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8987 for ncn_progname in ar; do
8988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8989set dummy ${ncn_progname}; ac_word=$2
8990echo "$as_me:$LINENO: checking for $ac_word" >&5
8991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8992if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994else
8995 if test -n "$AR_FOR_TARGET"; then
8996 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8997else
8998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999for as_dir in $PATH
9000do
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9008 fi
9009done
9010done
9011
9012fi
9013fi
9014AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9015if test -n "$AR_FOR_TARGET"; then
9016 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9017echo "${ECHO_T}$AR_FOR_TARGET" >&6
9018else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021fi
9022
9023 done
9024fi
9025
9026if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9027 for ncn_progname in ar; do
c6b750e1
DJ
9028 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9029echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9030 if test -x $with_build_time_tools/${ncn_progname}; then
9031 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9032 echo "$as_me:$LINENO: result: yes" >&5
9033echo "${ECHO_T}yes" >&6
2429c060
PB
9034 break
9035 else
c6b750e1
DJ
9036 echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
2429c060
PB
9038 fi
9039 done
859789af
AC
9040fi
9041
2429c060
PB
9042if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9043 for ncn_progname in ar; do
9044 if test -n "$ncn_target_tool_prefix"; then
9045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9046set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9047echo "$as_me:$LINENO: checking for $ac_word" >&5
9048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9049if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9051else
2429c060
PB
9052 if test -n "$AR_FOR_TARGET"; then
9053 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9054else
c6b750e1
DJ
9055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056for as_dir in $PATH
9057do
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 break 2
9065 fi
9066done
9067done
9068
7e0f7140
GK
9069fi
9070fi
c6b750e1 9071AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9072if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9073 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9074echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9075else
c6b750e1
DJ
9076 echo "$as_me:$LINENO: result: no" >&5
9077echo "${ECHO_T}no" >&6
7e0f7140
GK
9078fi
9079
2429c060
PB
9080 fi
9081 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9083set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9084echo "$as_me:$LINENO: checking for $ac_word" >&5
9085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9086if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 9088else
2429c060
PB
9089 if test -n "$AR_FOR_TARGET"; then
9090 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9091else
c6b750e1
DJ
9092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093for as_dir in $PATH
9094do
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103done
9104done
9105
7e0f7140
GK
9106fi
9107fi
c6b750e1 9108AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9109if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9111echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 9112else
c6b750e1
DJ
9113 echo "$as_me:$LINENO: result: no" >&5
9114echo "${ECHO_T}no" >&6
7e0f7140 9115fi
c6b750e1 9116
2429c060
PB
9117 fi
9118 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9119 done
9120fi
c6b750e1 9121
2429c060
PB
9122if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9123 set dummy ar
7e0f7140 9124 if test $build = $target ; then
2429c060 9125 AR_FOR_TARGET="$2"
7e0f7140 9126 else
2429c060 9127 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 9128 fi
d3f5afc4
MS
9129else
9130 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
9131fi
9132
3a35eeb3
PB
9133else
9134 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
9135fi
9136
9137
9138
9139
9140if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9141 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9142 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9143echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9144 if test -x $with_build_time_tools/as; then
9145 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9146 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
9147 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9148echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 9149 else
c6b750e1
DJ
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
3a35eeb3 9152 fi
2429c060
PB
9153 elif test $build != $host && test $have_gcc_for_target = yes; then
9154 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
9155 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9156 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
9157 fi
9158fi
c6b750e1 9159if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9160 # Extract the first word of "as", so it can be a program name with args.
9161set dummy as; ac_word=$2
c6b750e1
DJ
9162echo "$as_me:$LINENO: checking for $ac_word" >&5
9163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9164if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9166else
c6b750e1
DJ
9167 case $AS_FOR_TARGET in
9168 [\\/]* | ?:[\\/]*)
2429c060
PB
9169 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9170 ;;
2429c060 9171 *)
c6b750e1
DJ
9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173for as_dir in $gcc_cv_tool_dirs
9174do
9175 IFS=$as_save_IFS
9176 test -z "$as_dir" && as_dir=.
9177 for ac_exec_ext in '' $ac_executable_extensions; do
9178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9179 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 break 2
9182 fi
9183done
9184done
9185
2429c060
PB
9186 ;;
9187esac
9188fi
c6b750e1
DJ
9189AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9190
2429c060 9191if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9192 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9193echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9194else
c6b750e1
DJ
9195 echo "$as_me:$LINENO: result: no" >&5
9196echo "${ECHO_T}no" >&6
2429c060
PB
9197fi
9198
9199fi
9200if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
9201
9202
9203if test -n "$AS_FOR_TARGET"; then
9204 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9205elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9206 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9207fi
9208
9209if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9210 for ncn_progname in as; do
9211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9212set dummy ${ncn_progname}; ac_word=$2
9213echo "$as_me:$LINENO: checking for $ac_word" >&5
9214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9215if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218 if test -n "$AS_FOR_TARGET"; then
9219 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9220else
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9228 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 break 2
9231 fi
9232done
9233done
9234
9235fi
9236fi
9237AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9238if test -n "$AS_FOR_TARGET"; then
9239 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9240echo "${ECHO_T}$AS_FOR_TARGET" >&6
9241else
9242 echo "$as_me:$LINENO: result: no" >&5
9243echo "${ECHO_T}no" >&6
9244fi
9245
9246 done
9247fi
9248
9249if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9250 for ncn_progname in as; do
c6b750e1
DJ
9251 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9252echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9253 if test -x $with_build_time_tools/${ncn_progname}; then
9254 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9255 echo "$as_me:$LINENO: result: yes" >&5
9256echo "${ECHO_T}yes" >&6
2429c060
PB
9257 break
9258 else
c6b750e1
DJ
9259 echo "$as_me:$LINENO: result: no" >&5
9260echo "${ECHO_T}no" >&6
2429c060
PB
9261 fi
9262 done
9263fi
9264
9265if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9266 for ncn_progname in as; do
9267 if test -n "$ncn_target_tool_prefix"; then
9268 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9269set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9270echo "$as_me:$LINENO: checking for $ac_word" >&5
9271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9272if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9274else
9275 if test -n "$AS_FOR_TARGET"; then
9276 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9277else
c6b750e1
DJ
9278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279for as_dir in $PATH
9280do
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9285 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9288 fi
9289done
9290done
9291
2429c060
PB
9292fi
9293fi
c6b750e1 9294AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9295if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9296 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9297echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9298else
c6b750e1
DJ
9299 echo "$as_me:$LINENO: result: no" >&5
9300echo "${ECHO_T}no" >&6
2429c060
PB
9301fi
9302
9303 fi
9304 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9306set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9307echo "$as_me:$LINENO: checking for $ac_word" >&5
9308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9309if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9311else
9312 if test -n "$AS_FOR_TARGET"; then
9313 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9314else
c6b750e1
DJ
9315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316for as_dir in $PATH
9317do
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9325 fi
9326done
9327done
9328
2429c060
PB
9329fi
9330fi
c6b750e1 9331AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9332if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9333 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9334echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9335else
c6b750e1
DJ
9336 echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
2429c060 9338fi
c6b750e1 9339
2429c060
PB
9340 fi
9341 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9342 done
9343fi
c6b750e1 9344
2429c060
PB
9345if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9346 set dummy as
9347 if test $build = $target ; then
9348 AS_FOR_TARGET="$2"
9349 else
9350 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9351 fi
d3f5afc4
MS
9352else
9353 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9354fi
9355
3a35eeb3
PB
9356else
9357 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9358fi
9359
9360
9361
9362
9363if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9364 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9365 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9366echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9367 if test -x $with_build_time_tools/dlltool; then
9368 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9369 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9370 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9371echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9372 else
c6b750e1
DJ
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
3a35eeb3 9375 fi
2429c060
PB
9376 elif test $build != $host && test $have_gcc_for_target = yes; then
9377 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9378 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9379 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9380 fi
9381fi
c6b750e1 9382if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9383 # Extract the first word of "dlltool", so it can be a program name with args.
9384set dummy dlltool; ac_word=$2
c6b750e1
DJ
9385echo "$as_me:$LINENO: checking for $ac_word" >&5
9386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9387if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9389else
c6b750e1
DJ
9390 case $DLLTOOL_FOR_TARGET in
9391 [\\/]* | ?:[\\/]*)
2429c060
PB
9392 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9393 ;;
2429c060 9394 *)
c6b750e1
DJ
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $gcc_cv_tool_dirs
9397do
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9405 fi
9406done
9407done
9408
2429c060
PB
9409 ;;
9410esac
9411fi
c6b750e1
DJ
9412DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9413
2429c060 9414if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9415 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9416echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9417else
c6b750e1
DJ
9418 echo "$as_me:$LINENO: result: no" >&5
9419echo "${ECHO_T}no" >&6
2429c060
PB
9420fi
9421
9422fi
9423if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9424
9425
9426if test -n "$DLLTOOL_FOR_TARGET"; then
9427 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9428elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9429 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9430fi
9431
9432if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9433 for ncn_progname in dlltool; do
9434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9435set dummy ${ncn_progname}; ac_word=$2
9436echo "$as_me:$LINENO: checking for $ac_word" >&5
9437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9438if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441 if test -n "$DLLTOOL_FOR_TARGET"; then
9442 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9443else
9444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445for as_dir in $PATH
9446do
9447 IFS=$as_save_IFS
9448 test -z "$as_dir" && as_dir=.
9449 for ac_exec_ext in '' $ac_executable_extensions; do
9450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9451 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9453 break 2
9454 fi
9455done
9456done
9457
9458fi
9459fi
9460DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9461if test -n "$DLLTOOL_FOR_TARGET"; then
9462 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9463echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9464else
9465 echo "$as_me:$LINENO: result: no" >&5
9466echo "${ECHO_T}no" >&6
9467fi
9468
9469 done
9470fi
9471
9472if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9473 for ncn_progname in dlltool; do
c6b750e1
DJ
9474 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9475echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9476 if test -x $with_build_time_tools/${ncn_progname}; then
9477 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9478 echo "$as_me:$LINENO: result: yes" >&5
9479echo "${ECHO_T}yes" >&6
2429c060
PB
9480 break
9481 else
c6b750e1
DJ
9482 echo "$as_me:$LINENO: result: no" >&5
9483echo "${ECHO_T}no" >&6
2429c060
PB
9484 fi
9485 done
9486fi
9487
9488if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9489 for ncn_progname in dlltool; do
9490 if test -n "$ncn_target_tool_prefix"; then
9491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9492set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9493echo "$as_me:$LINENO: checking for $ac_word" >&5
9494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9495if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9497else
9498 if test -n "$DLLTOOL_FOR_TARGET"; then
9499 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9500else
c6b750e1
DJ
9501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502for as_dir in $PATH
9503do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9508 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9511 fi
9512done
9513done
9514
2429c060
PB
9515fi
9516fi
c6b750e1 9517DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9518if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9519 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9520echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9521else
c6b750e1
DJ
9522 echo "$as_me:$LINENO: result: no" >&5
9523echo "${ECHO_T}no" >&6
2429c060
PB
9524fi
9525
9526 fi
9527 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9529set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9530echo "$as_me:$LINENO: checking for $ac_word" >&5
9531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9532if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9534else
9535 if test -n "$DLLTOOL_FOR_TARGET"; then
9536 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9537else
c6b750e1
DJ
9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539for as_dir in $PATH
9540do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9545 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9548 fi
9549done
9550done
9551
2429c060
PB
9552fi
9553fi
c6b750e1 9554DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9555if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9556 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9557echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9558else
c6b750e1
DJ
9559 echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
2429c060 9561fi
c6b750e1 9562
2429c060
PB
9563 fi
9564 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9565 done
9566fi
c6b750e1 9567
2429c060
PB
9568if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9569 set dummy dlltool
9570 if test $build = $target ; then
9571 DLLTOOL_FOR_TARGET="$2"
9572 else
9573 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9574 fi
d3f5afc4
MS
9575else
9576 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9577fi
9578
3a35eeb3
PB
9579else
9580 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9581fi
9582
9583
9584
9585
9586if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9587 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9588 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9589echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9590 if test -x $with_build_time_tools/ld; then
9591 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9592 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9593 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9594echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9595 else
c6b750e1
DJ
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
3a35eeb3 9598 fi
2429c060
PB
9599 elif test $build != $host && test $have_gcc_for_target = yes; then
9600 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9601 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9602 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9603 fi
9604fi
c6b750e1 9605if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9606 # Extract the first word of "ld", so it can be a program name with args.
9607set dummy ld; ac_word=$2
c6b750e1
DJ
9608echo "$as_me:$LINENO: checking for $ac_word" >&5
9609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9610if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9612else
c6b750e1
DJ
9613 case $LD_FOR_TARGET in
9614 [\\/]* | ?:[\\/]*)
2429c060
PB
9615 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9616 ;;
2429c060 9617 *)
c6b750e1
DJ
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619for as_dir in $gcc_cv_tool_dirs
9620do
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9625 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9628 fi
9629done
9630done
9631
2429c060
PB
9632 ;;
9633esac
9634fi
c6b750e1
DJ
9635LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9636
2429c060 9637if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9638 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9639echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9640else
c6b750e1
DJ
9641 echo "$as_me:$LINENO: result: no" >&5
9642echo "${ECHO_T}no" >&6
2429c060
PB
9643fi
9644
9645fi
9646if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9647
9648
9649if test -n "$LD_FOR_TARGET"; then
9650 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9651elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9652 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9653fi
9654
9655if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9656 for ncn_progname in ld; do
9657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9658set dummy ${ncn_progname}; ac_word=$2
9659echo "$as_me:$LINENO: checking for $ac_word" >&5
9660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9661if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663else
9664 if test -n "$LD_FOR_TARGET"; then
9665 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9666else
9667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668for as_dir in $PATH
9669do
9670 IFS=$as_save_IFS
9671 test -z "$as_dir" && as_dir=.
9672 for ac_exec_ext in '' $ac_executable_extensions; do
9673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9674 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9676 break 2
9677 fi
9678done
9679done
9680
9681fi
9682fi
9683LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9684if test -n "$LD_FOR_TARGET"; then
9685 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9686echo "${ECHO_T}$LD_FOR_TARGET" >&6
9687else
9688 echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6
9690fi
9691
9692 done
9693fi
9694
9695if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9696 for ncn_progname in ld; do
c6b750e1
DJ
9697 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9698echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9699 if test -x $with_build_time_tools/${ncn_progname}; then
9700 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9701 echo "$as_me:$LINENO: result: yes" >&5
9702echo "${ECHO_T}yes" >&6
2429c060
PB
9703 break
9704 else
c6b750e1
DJ
9705 echo "$as_me:$LINENO: result: no" >&5
9706echo "${ECHO_T}no" >&6
2429c060
PB
9707 fi
9708 done
9709fi
9710
9711if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9712 for ncn_progname in ld; do
9713 if test -n "$ncn_target_tool_prefix"; then
9714 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9715set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9716echo "$as_me:$LINENO: checking for $ac_word" >&5
9717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9718if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9720else
9721 if test -n "$LD_FOR_TARGET"; then
9722 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9723else
c6b750e1
DJ
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9731 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9734 fi
9735done
9736done
9737
2429c060
PB
9738fi
9739fi
c6b750e1 9740LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9741if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9742 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9743echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9744else
c6b750e1
DJ
9745 echo "$as_me:$LINENO: result: no" >&5
9746echo "${ECHO_T}no" >&6
2429c060
PB
9747fi
9748
9749 fi
9750 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9752set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9753echo "$as_me:$LINENO: checking for $ac_word" >&5
9754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9755if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9757else
9758 if test -n "$LD_FOR_TARGET"; then
9759 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9760else
c6b750e1
DJ
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772done
9773done
9774
2429c060
PB
9775fi
9776fi
c6b750e1 9777LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9778if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9779 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9780echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9781else
c6b750e1
DJ
9782 echo "$as_me:$LINENO: result: no" >&5
9783echo "${ECHO_T}no" >&6
2429c060 9784fi
c6b750e1 9785
2429c060
PB
9786 fi
9787 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9788 done
9789fi
c6b750e1 9790
2429c060
PB
9791if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9792 set dummy ld
9793 if test $build = $target ; then
9794 LD_FOR_TARGET="$2"
9795 else
9796 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9797 fi
d3f5afc4
MS
9798else
9799 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9800fi
9801
3a35eeb3
PB
9802else
9803 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9804fi
9805
9806
9807
9808
9809if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9810 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9811 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9812echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9813 if test -x $with_build_time_tools/lipo; then
9814 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9815 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9816 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9817echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9818 else
c6b750e1
DJ
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
3a35eeb3 9821 fi
2429c060
PB
9822 elif test $build != $host && test $have_gcc_for_target = yes; then
9823 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9824 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9825 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9826 fi
9827fi
9a819804
AO
9828if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9829 # Extract the first word of "lipo", so it can be a program name with args.
9830set dummy lipo; ac_word=$2
9831echo "$as_me:$LINENO: checking for $ac_word" >&5
9832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9833if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835else
9836 case $LIPO_FOR_TARGET in
9837 [\\/]* | ?:[\\/]*)
9838 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9839 ;;
9840 *)
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $gcc_cv_tool_dirs
9843do
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9851 fi
9852done
9853done
9854
9855 ;;
9856esac
9857fi
9858LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9859
9860if test -n "$LIPO_FOR_TARGET"; then
9861 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9862echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9863else
9864 echo "$as_me:$LINENO: result: no" >&5
9865echo "${ECHO_T}no" >&6
9866fi
9867
9868fi
9869if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9870
9871
9872if test -n "$LIPO_FOR_TARGET"; then
9873 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9874elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9875 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9876fi
9877
9878if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9879 for ncn_progname in lipo; do
9880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9881set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9882echo "$as_me:$LINENO: checking for $ac_word" >&5
9883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9884if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9885 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9886else
9a819804
AO
9887 if test -n "$LIPO_FOR_TARGET"; then
9888 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9889else
9890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891for as_dir in $PATH
c6b750e1
DJ
9892do
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9897 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 break 2
9900 fi
9901done
9902done
9903
2429c060 9904fi
9a819804
AO
9905fi
9906LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9907if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9908 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9909echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9910else
c6b750e1
DJ
9911 echo "$as_me:$LINENO: result: no" >&5
9912echo "${ECHO_T}no" >&6
2429c060
PB
9913fi
9914
9a819804 9915 done
2429c060 9916fi
9a819804
AO
9917
9918if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9919 for ncn_progname in lipo; do
c6b750e1
DJ
9920 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9921echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9922 if test -x $with_build_time_tools/${ncn_progname}; then
9923 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9924 echo "$as_me:$LINENO: result: yes" >&5
9925echo "${ECHO_T}yes" >&6
2429c060
PB
9926 break
9927 else
c6b750e1
DJ
9928 echo "$as_me:$LINENO: result: no" >&5
9929echo "${ECHO_T}no" >&6
2429c060
PB
9930 fi
9931 done
9932fi
9933
9934if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9935 for ncn_progname in lipo; do
9936 if test -n "$ncn_target_tool_prefix"; then
9937 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9938set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9939echo "$as_me:$LINENO: checking for $ac_word" >&5
9940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9941if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9943else
9944 if test -n "$LIPO_FOR_TARGET"; then
9945 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9946else
c6b750e1
DJ
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9957 fi
9958done
9959done
9960
2429c060
PB
9961fi
9962fi
c6b750e1 9963LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9964if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9965 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9966echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9967else
c6b750e1
DJ
9968 echo "$as_me:$LINENO: result: no" >&5
9969echo "${ECHO_T}no" >&6
2429c060
PB
9970fi
9971
9972 fi
9973 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9975set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9976echo "$as_me:$LINENO: checking for $ac_word" >&5
9977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9978if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9980else
9981 if test -n "$LIPO_FOR_TARGET"; then
9982 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9983else
c6b750e1
DJ
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9994 fi
9995done
9996done
9997
2429c060
PB
9998fi
9999fi
c6b750e1 10000LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10001if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
10002 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10003echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 10004else
c6b750e1
DJ
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
2429c060 10007fi
c6b750e1 10008
2429c060
PB
10009 fi
10010 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10011 done
10012fi
c6b750e1 10013
2429c060
PB
10014if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10015 set dummy lipo
10016 if test $build = $target ; then
10017 LIPO_FOR_TARGET="$2"
10018 else
10019 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10020 fi
d3f5afc4
MS
10021else
10022 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10023fi
10024
3a35eeb3
PB
10025else
10026 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10027fi
10028
10029
10030
10031
10032if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10033 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10034 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10035echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10036 if test -x $with_build_time_tools/nm; then
10037 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10038 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
10039 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10040echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 10041 else
c6b750e1
DJ
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
3a35eeb3 10044 fi
2429c060
PB
10045 elif test $build != $host && test $have_gcc_for_target = yes; then
10046 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10047 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10048 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10049 fi
10050fi
c6b750e1 10051if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10052 # Extract the first word of "nm", so it can be a program name with args.
10053set dummy nm; ac_word=$2
c6b750e1
DJ
10054echo "$as_me:$LINENO: checking for $ac_word" >&5
10055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10056if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10058else
c6b750e1
DJ
10059 case $NM_FOR_TARGET in
10060 [\\/]* | ?:[\\/]*)
2429c060
PB
10061 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10062 ;;
2429c060 10063 *)
c6b750e1
DJ
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in $gcc_cv_tool_dirs
10066do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075done
10076done
10077
2429c060
PB
10078 ;;
10079esac
10080fi
c6b750e1
DJ
10081NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10082
2429c060 10083if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10084 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10085echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 10086else
c6b750e1
DJ
10087 echo "$as_me:$LINENO: result: no" >&5
10088echo "${ECHO_T}no" >&6
2429c060
PB
10089fi
10090
10091fi
10092if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
10093
10094
10095if test -n "$NM_FOR_TARGET"; then
10096 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10097elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10098 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10099fi
10100
10101if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10102 for ncn_progname in nm; do
10103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10104set dummy ${ncn_progname}; ac_word=$2
10105echo "$as_me:$LINENO: checking for $ac_word" >&5
10106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10107if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110 if test -n "$NM_FOR_TARGET"; then
10111 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10112else
10113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114for as_dir in $PATH
10115do
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10123 fi
10124done
10125done
10126
10127fi
10128fi
10129NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10130if test -n "$NM_FOR_TARGET"; then
10131 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10132echo "${ECHO_T}$NM_FOR_TARGET" >&6
10133else
10134 echo "$as_me:$LINENO: result: no" >&5
10135echo "${ECHO_T}no" >&6
10136fi
10137
10138 done
10139fi
10140
10141if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10142 for ncn_progname in nm; do
c6b750e1
DJ
10143 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10144echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10145 if test -x $with_build_time_tools/${ncn_progname}; then
10146 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10147 echo "$as_me:$LINENO: result: yes" >&5
10148echo "${ECHO_T}yes" >&6
2429c060
PB
10149 break
10150 else
c6b750e1
DJ
10151 echo "$as_me:$LINENO: result: no" >&5
10152echo "${ECHO_T}no" >&6
2429c060
PB
10153 fi
10154 done
10155fi
10156
10157if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10158 for ncn_progname in nm; do
10159 if test -n "$ncn_target_tool_prefix"; then
10160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10161set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10162echo "$as_me:$LINENO: checking for $ac_word" >&5
10163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10164if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10166else
55db4b87
PB
10167 if test -n "$NM_FOR_TARGET"; then
10168 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10169else
c6b750e1
DJ
10170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171for as_dir in $PATH
10172do
10173 IFS=$as_save_IFS
10174 test -z "$as_dir" && as_dir=.
10175 for ac_exec_ext in '' $ac_executable_extensions; do
10176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10177 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 break 2
10180 fi
10181done
10182done
10183
859789af
AC
10184fi
10185fi
c6b750e1 10186NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 10187if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10188 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10189echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10190else
c6b750e1
DJ
10191 echo "$as_me:$LINENO: result: no" >&5
10192echo "${ECHO_T}no" >&6
859789af
AC
10193fi
10194
2429c060
PB
10195 fi
10196 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10198set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10199echo "$as_me:$LINENO: checking for $ac_word" >&5
10200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10201if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10203else
05cbd757
PB
10204 if test -n "$NM_FOR_TARGET"; then
10205 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 10206else
c6b750e1
DJ
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218done
10219done
10220
859789af
AC
10221fi
10222fi
c6b750e1 10223NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 10224if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
10225 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10226echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10227else
c6b750e1
DJ
10228 echo "$as_me:$LINENO: result: no" >&5
10229echo "${ECHO_T}no" >&6
859789af 10230fi
c6b750e1 10231
2429c060
PB
10232 fi
10233 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10234 done
10235fi
c6b750e1 10236
05cbd757
PB
10237if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10238 set dummy nm
10239 if test $build = $target ; then
10240 NM_FOR_TARGET="$2"
859789af 10241 else
05cbd757 10242 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10243 fi
d3f5afc4
MS
10244else
10245 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10246fi
10247
3a35eeb3
PB
10248else
10249 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10250fi
10251
10252
10253
10254
10255if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10256 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10257 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10258echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10259 if test -x $with_build_time_tools/objdump; then
10260 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10261 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10262 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10263echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10264 else
c6b750e1
DJ
10265 echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
3a35eeb3 10267 fi
2429c060
PB
10268 elif test $build != $host && test $have_gcc_for_target = yes; then
10269 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10270 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10271 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10272 fi
10273fi
c6b750e1 10274if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10275 # Extract the first word of "objdump", so it can be a program name with args.
10276set dummy objdump; ac_word=$2
c6b750e1
DJ
10277echo "$as_me:$LINENO: checking for $ac_word" >&5
10278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10279if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10281else
c6b750e1
DJ
10282 case $OBJDUMP_FOR_TARGET in
10283 [\\/]* | ?:[\\/]*)
2429c060
PB
10284 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10285 ;;
2429c060 10286 *)
c6b750e1
DJ
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288for as_dir in $gcc_cv_tool_dirs
10289do
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 break 2
10297 fi
10298done
10299done
10300
2429c060
PB
10301 ;;
10302esac
10303fi
c6b750e1
DJ
10304OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10305
2429c060 10306if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10307 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10308echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10309else
c6b750e1
DJ
10310 echo "$as_me:$LINENO: result: no" >&5
10311echo "${ECHO_T}no" >&6
2429c060
PB
10312fi
10313
10314fi
10315if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10316
10317
10318if test -n "$OBJDUMP_FOR_TARGET"; then
10319 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10320elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10321 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10322fi
10323
10324if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10325 for ncn_progname in objdump; do
10326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10327set dummy ${ncn_progname}; ac_word=$2
10328echo "$as_me:$LINENO: checking for $ac_word" >&5
10329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10330if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10332else
10333 if test -n "$OBJDUMP_FOR_TARGET"; then
10334 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10335else
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10343 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10346 fi
10347done
10348done
10349
10350fi
10351fi
10352OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10353if test -n "$OBJDUMP_FOR_TARGET"; then
10354 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10355echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10356else
10357 echo "$as_me:$LINENO: result: no" >&5
10358echo "${ECHO_T}no" >&6
10359fi
10360
10361 done
10362fi
10363
10364if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10365 for ncn_progname in objdump; do
c6b750e1
DJ
10366 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10367echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10368 if test -x $with_build_time_tools/${ncn_progname}; then
10369 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10370 echo "$as_me:$LINENO: result: yes" >&5
10371echo "${ECHO_T}yes" >&6
2429c060
PB
10372 break
10373 else
c6b750e1
DJ
10374 echo "$as_me:$LINENO: result: no" >&5
10375echo "${ECHO_T}no" >&6
2429c060
PB
10376 fi
10377 done
10378fi
10379
10380if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10381 for ncn_progname in objdump; do
10382 if test -n "$ncn_target_tool_prefix"; then
10383 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10384set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10385echo "$as_me:$LINENO: checking for $ac_word" >&5
10386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10387if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10389else
10390 if test -n "$OBJDUMP_FOR_TARGET"; then
10391 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10392else
c6b750e1
DJ
10393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394for as_dir in $PATH
10395do
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10400 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10403 fi
10404done
10405done
10406
5ae72758
DJ
10407fi
10408fi
c6b750e1 10409OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10410if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10411 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10412echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10413else
c6b750e1
DJ
10414 echo "$as_me:$LINENO: result: no" >&5
10415echo "${ECHO_T}no" >&6
5ae72758
DJ
10416fi
10417
2429c060
PB
10418 fi
10419 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10421set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10422echo "$as_me:$LINENO: checking for $ac_word" >&5
10423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10424if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10426else
10427 if test -n "$OBJDUMP_FOR_TARGET"; then
10428 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10429else
c6b750e1
DJ
10430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431for as_dir in $PATH
10432do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10437 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10440 fi
10441done
10442done
10443
5ae72758
DJ
10444fi
10445fi
c6b750e1 10446OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10447if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10448 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10449echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10450else
c6b750e1
DJ
10451 echo "$as_me:$LINENO: result: no" >&5
10452echo "${ECHO_T}no" >&6
5ae72758 10453fi
c6b750e1 10454
2429c060
PB
10455 fi
10456 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10457 done
10458fi
c6b750e1 10459
5ae72758
DJ
10460if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10461 set dummy objdump
10462 if test $build = $target ; then
10463 OBJDUMP_FOR_TARGET="$2"
10464 else
10465 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10466 fi
d3f5afc4
MS
10467else
10468 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10469fi
10470
3a35eeb3
PB
10471else
10472 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10473fi
10474
10475
10476
10477
10478if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10479 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10480 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10481echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10482 if test -x $with_build_time_tools/ranlib; then
10483 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10484 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10485 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10486echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10487 else
c6b750e1
DJ
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
3a35eeb3 10490 fi
2429c060
PB
10491 elif test $build != $host && test $have_gcc_for_target = yes; then
10492 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10493 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10494 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10495 fi
10496fi
c6b750e1 10497if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10498 # Extract the first word of "ranlib", so it can be a program name with args.
10499set dummy ranlib; ac_word=$2
c6b750e1
DJ
10500echo "$as_me:$LINENO: checking for $ac_word" >&5
10501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10502if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10504else
c6b750e1
DJ
10505 case $RANLIB_FOR_TARGET in
10506 [\\/]* | ?:[\\/]*)
2429c060
PB
10507 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10508 ;;
2429c060 10509 *)
c6b750e1
DJ
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $gcc_cv_tool_dirs
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10517 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10520 fi
10521done
10522done
10523
2429c060
PB
10524 ;;
10525esac
10526fi
c6b750e1
DJ
10527RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10528
2429c060 10529if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10530 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10531echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10532else
c6b750e1
DJ
10533 echo "$as_me:$LINENO: result: no" >&5
10534echo "${ECHO_T}no" >&6
2429c060
PB
10535fi
10536
10537fi
10538if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10539
10540
10541if test -n "$RANLIB_FOR_TARGET"; then
10542 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10543elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10544 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10545fi
10546
10547if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10548 for ncn_progname in ranlib; do
10549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10550set dummy ${ncn_progname}; ac_word=$2
10551echo "$as_me:$LINENO: checking for $ac_word" >&5
10552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10553if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555else
10556 if test -n "$RANLIB_FOR_TARGET"; then
10557 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10558else
10559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560for as_dir in $PATH
10561do
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10569 fi
10570done
10571done
10572
10573fi
10574fi
10575RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10576if test -n "$RANLIB_FOR_TARGET"; then
10577 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10578echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10579else
10580 echo "$as_me:$LINENO: result: no" >&5
10581echo "${ECHO_T}no" >&6
10582fi
10583
10584 done
10585fi
10586
10587if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10588 for ncn_progname in ranlib; do
c6b750e1
DJ
10589 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10590echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10591 if test -x $with_build_time_tools/${ncn_progname}; then
10592 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10593 echo "$as_me:$LINENO: result: yes" >&5
10594echo "${ECHO_T}yes" >&6
2429c060
PB
10595 break
10596 else
c6b750e1
DJ
10597 echo "$as_me:$LINENO: result: no" >&5
10598echo "${ECHO_T}no" >&6
2429c060
PB
10599 fi
10600 done
10601fi
10602
10603if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10604 for ncn_progname in ranlib; do
10605 if test -n "$ncn_target_tool_prefix"; then
10606 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10607set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10608echo "$as_me:$LINENO: checking for $ac_word" >&5
10609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10610if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10612else
55db4b87
PB
10613 if test -n "$RANLIB_FOR_TARGET"; then
10614 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10615else
c6b750e1
DJ
10616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617for as_dir in $PATH
10618do
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10623 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10625 break 2
10626 fi
10627done
10628done
10629
859789af
AC
10630fi
10631fi
c6b750e1 10632RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10633if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10634 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10635echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10636else
c6b750e1
DJ
10637 echo "$as_me:$LINENO: result: no" >&5
10638echo "${ECHO_T}no" >&6
859789af
AC
10639fi
10640
2429c060
PB
10641 fi
10642 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10644set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10645echo "$as_me:$LINENO: checking for $ac_word" >&5
10646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10647if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10649else
05cbd757
PB
10650 if test -n "$RANLIB_FOR_TARGET"; then
10651 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10652else
c6b750e1
DJ
10653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654for as_dir in $PATH
10655do
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10660 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10663 fi
10664done
10665done
10666
859789af
AC
10667fi
10668fi
c6b750e1 10669RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10670if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10671 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10672echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10673else
c6b750e1
DJ
10674 echo "$as_me:$LINENO: result: no" >&5
10675echo "${ECHO_T}no" >&6
859789af 10676fi
c6b750e1 10677
2429c060
PB
10678 fi
10679 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10680 done
10681fi
c6b750e1 10682
2429c060
PB
10683if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10684 set dummy ranlib
10685 if test $build = $target ; then
10686 RANLIB_FOR_TARGET="$2"
10687 else
10688 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10689 fi
d3f5afc4
MS
10690else
10691 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10692fi
05cbd757 10693
3a35eeb3
PB
10694else
10695 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10696fi
10697
2429c060
PB
10698
10699
10700
10701if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10702 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10703 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10704echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10705 if test -x $with_build_time_tools/strip; then
10706 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10707 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10708 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10709echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10710 else
c6b750e1
DJ
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
3a35eeb3 10713 fi
2429c060
PB
10714 elif test $build != $host && test $have_gcc_for_target = yes; then
10715 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10716 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10717 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10718 fi
10719fi
c6b750e1 10720if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10721 # Extract the first word of "strip", so it can be a program name with args.
10722set dummy strip; ac_word=$2
c6b750e1
DJ
10723echo "$as_me:$LINENO: checking for $ac_word" >&5
10724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10725if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10727else
c6b750e1
DJ
10728 case $STRIP_FOR_TARGET in
10729 [\\/]* | ?:[\\/]*)
2429c060
PB
10730 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10731 ;;
2429c060 10732 *)
c6b750e1
DJ
10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734for as_dir in $gcc_cv_tool_dirs
10735do
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10740 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10743 fi
10744done
10745done
10746
2429c060
PB
10747 ;;
10748esac
10749fi
c6b750e1
DJ
10750STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10751
2429c060 10752if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10753 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10754echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10755else
c6b750e1
DJ
10756 echo "$as_me:$LINENO: result: no" >&5
10757echo "${ECHO_T}no" >&6
2429c060
PB
10758fi
10759
10760fi
10761if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10762
10763
10764if test -n "$STRIP_FOR_TARGET"; then
10765 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10766elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10767 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10768fi
10769
10770if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10771 for ncn_progname in strip; do
10772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10773set dummy ${ncn_progname}; ac_word=$2
10774echo "$as_me:$LINENO: checking for $ac_word" >&5
10775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10776if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779 if test -n "$STRIP_FOR_TARGET"; then
10780 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10781else
10782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10783for as_dir in $PATH
10784do
10785 IFS=$as_save_IFS
10786 test -z "$as_dir" && as_dir=.
10787 for ac_exec_ext in '' $ac_executable_extensions; do
10788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10789 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 break 2
10792 fi
10793done
10794done
10795
10796fi
10797fi
10798STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10799if test -n "$STRIP_FOR_TARGET"; then
10800 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10801echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10802else
10803 echo "$as_me:$LINENO: result: no" >&5
10804echo "${ECHO_T}no" >&6
10805fi
10806
10807 done
10808fi
10809
10810if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10811 for ncn_progname in strip; do
c6b750e1
DJ
10812 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10813echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10814 if test -x $with_build_time_tools/${ncn_progname}; then
10815 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10816 echo "$as_me:$LINENO: result: yes" >&5
10817echo "${ECHO_T}yes" >&6
2429c060
PB
10818 break
10819 else
c6b750e1
DJ
10820 echo "$as_me:$LINENO: result: no" >&5
10821echo "${ECHO_T}no" >&6
2429c060
PB
10822 fi
10823 done
10824fi
10825
10826if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10827 for ncn_progname in strip; do
10828 if test -n "$ncn_target_tool_prefix"; then
10829 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10830set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10831echo "$as_me:$LINENO: checking for $ac_word" >&5
10832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10833if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10835else
10836 if test -n "$STRIP_FOR_TARGET"; then
10837 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
10852
7e0f7140
GK
10853fi
10854fi
c6b750e1 10855STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10856if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10857 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10858echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10859else
c6b750e1
DJ
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
7e0f7140
GK
10862fi
10863
2429c060
PB
10864 fi
10865 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10867set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10868echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10870if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10872else
10873 if test -n "$STRIP_FOR_TARGET"; then
10874 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10875else
c6b750e1
DJ
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10886 fi
10887done
10888done
10889
7e0f7140
GK
10890fi
10891fi
c6b750e1 10892STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10893if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10894 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10895echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10896else
c6b750e1
DJ
10897 echo "$as_me:$LINENO: result: no" >&5
10898echo "${ECHO_T}no" >&6
7e0f7140 10899fi
c6b750e1 10900
2429c060
PB
10901 fi
10902 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10903 done
10904fi
c6b750e1 10905
7e0f7140
GK
10906if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10907 set dummy strip
10908 if test $build = $target ; then
10909 STRIP_FOR_TARGET="$2"
10910 else
10911 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10912 fi
d3f5afc4
MS
10913else
10914 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10915fi
10916
3a35eeb3
PB
10917else
10918 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10919fi
10920
10921
10922
10923
10924if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10925 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10926 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10927echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10928 if test -x $with_build_time_tools/windres; then
10929 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10930 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10931 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10932echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10933 else
c6b750e1
DJ
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
3a35eeb3 10936 fi
2429c060
PB
10937 elif test $build != $host && test $have_gcc_for_target = yes; then
10938 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10939 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10940 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10941 fi
10942fi
c6b750e1 10943if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10944 # Extract the first word of "windres", so it can be a program name with args.
10945set dummy windres; ac_word=$2
c6b750e1
DJ
10946echo "$as_me:$LINENO: checking for $ac_word" >&5
10947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10950else
c6b750e1
DJ
10951 case $WINDRES_FOR_TARGET in
10952 [\\/]* | ?:[\\/]*)
2429c060
PB
10953 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10954 ;;
2429c060 10955 *)
c6b750e1
DJ
10956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $gcc_cv_tool_dirs
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
10969
2429c060
PB
10970 ;;
10971esac
10972fi
c6b750e1
DJ
10973WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10974
2429c060 10975if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10976 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10977echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10978else
c6b750e1
DJ
10979 echo "$as_me:$LINENO: result: no" >&5
10980echo "${ECHO_T}no" >&6
2429c060
PB
10981fi
10982
10983fi
10984if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10985
10986
10987if test -n "$WINDRES_FOR_TARGET"; then
10988 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10989elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10990 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10991fi
10992
10993if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10994 for ncn_progname in windres; do
10995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10996set dummy ${ncn_progname}; ac_word=$2
10997echo "$as_me:$LINENO: checking for $ac_word" >&5
10998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10999if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001else
11002 if test -n "$WINDRES_FOR_TARGET"; then
11003 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11004else
11005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006for as_dir in $PATH
11007do
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11012 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11015 fi
11016done
11017done
11018
11019fi
11020fi
11021WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11022if test -n "$WINDRES_FOR_TARGET"; then
11023 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11024echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11025else
11026 echo "$as_me:$LINENO: result: no" >&5
11027echo "${ECHO_T}no" >&6
11028fi
11029
11030 done
11031fi
11032
11033if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11034 for ncn_progname in windres; do
c6b750e1
DJ
11035 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11036echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
11037 if test -x $with_build_time_tools/${ncn_progname}; then
11038 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
11039 echo "$as_me:$LINENO: result: yes" >&5
11040echo "${ECHO_T}yes" >&6
2429c060
PB
11041 break
11042 else
c6b750e1
DJ
11043 echo "$as_me:$LINENO: result: no" >&5
11044echo "${ECHO_T}no" >&6
2429c060
PB
11045 fi
11046 done
11047fi
11048
11049if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11050 for ncn_progname in windres; do
11051 if test -n "$ncn_target_tool_prefix"; then
11052 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11053set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
11054echo "$as_me:$LINENO: checking for $ac_word" >&5
11055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11056if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11058else
55db4b87
PB
11059 if test -n "$WINDRES_FOR_TARGET"; then
11060 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11061else
c6b750e1
DJ
11062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $PATH
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11072 fi
11073done
11074done
11075
859789af
AC
11076fi
11077fi
c6b750e1 11078WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 11079if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11080 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11081echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11082else
c6b750e1
DJ
11083 echo "$as_me:$LINENO: result: no" >&5
11084echo "${ECHO_T}no" >&6
859789af
AC
11085fi
11086
2429c060
PB
11087 fi
11088 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11090set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
11091echo "$as_me:$LINENO: checking for $ac_word" >&5
11092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11093if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 11095else
05cbd757
PB
11096 if test -n "$WINDRES_FOR_TARGET"; then
11097 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 11098else
c6b750e1
DJ
11099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110done
11111done
11112
859789af
AC
11113fi
11114fi
c6b750e1 11115WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 11116if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
11117 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11118echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 11119else
c6b750e1
DJ
11120 echo "$as_me:$LINENO: result: no" >&5
11121echo "${ECHO_T}no" >&6
859789af 11122fi
c6b750e1 11123
2429c060
PB
11124 fi
11125 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11126 done
11127fi
c6b750e1 11128
05cbd757
PB
11129if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11130 set dummy windres
11131 if test $build = $target ; then
11132 WINDRES_FOR_TARGET="$2"
859789af 11133 else
05cbd757 11134 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11135 fi
d3f5afc4
MS
11136else
11137 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
11138fi
11139
3a35eeb3
PB
11140else
11141 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
11142fi
11143
852e5f18 11144
0c24b341
NC
11145
11146
11147if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11148 if test -n "$with_build_time_tools"; then
11149 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11150echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11151 if test -x $with_build_time_tools/windmc; then
11152 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11153 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11154 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11155echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11156 else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159 fi
11160 elif test $build != $host && test $have_gcc_for_target = yes; then
11161 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11162 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11163 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11164 fi
11165fi
11166if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11167 # Extract the first word of "windmc", so it can be a program name with args.
11168set dummy windmc; ac_word=$2
11169echo "$as_me:$LINENO: checking for $ac_word" >&5
11170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11171if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11173else
11174 case $WINDMC_FOR_TARGET in
11175 [\\/]* | ?:[\\/]*)
11176 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11177 ;;
11178 *)
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180for as_dir in $gcc_cv_tool_dirs
11181do
11182 IFS=$as_save_IFS
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11186 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 break 2
11189 fi
11190done
11191done
11192
11193 ;;
11194esac
11195fi
11196WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11197
11198if test -n "$WINDMC_FOR_TARGET"; then
11199 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11200echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11201else
11202 echo "$as_me:$LINENO: result: no" >&5
11203echo "${ECHO_T}no" >&6
11204fi
11205
11206fi
11207if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11208
11209
11210if test -n "$WINDMC_FOR_TARGET"; then
11211 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11212elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11213 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11214fi
11215
11216if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11217 for ncn_progname in windmc; do
11218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11219set dummy ${ncn_progname}; ac_word=$2
11220echo "$as_me:$LINENO: checking for $ac_word" >&5
11221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11222if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 if test -n "$WINDMC_FOR_TARGET"; then
11226 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11227else
11228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11238 fi
11239done
11240done
11241
11242fi
11243fi
11244WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11245if test -n "$WINDMC_FOR_TARGET"; then
11246 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11247echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11248else
11249 echo "$as_me:$LINENO: result: no" >&5
11250echo "${ECHO_T}no" >&6
11251fi
11252
11253 done
11254fi
11255
11256if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11257 for ncn_progname in windmc; do
11258 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11259echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11260 if test -x $with_build_time_tools/${ncn_progname}; then
11261 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11262 echo "$as_me:$LINENO: result: yes" >&5
11263echo "${ECHO_T}yes" >&6
11264 break
11265 else
11266 echo "$as_me:$LINENO: result: no" >&5
11267echo "${ECHO_T}no" >&6
11268 fi
11269 done
11270fi
11271
11272if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11273 for ncn_progname in windmc; do
11274 if test -n "$ncn_target_tool_prefix"; then
11275 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11276set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11277echo "$as_me:$LINENO: checking for $ac_word" >&5
11278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11279if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 if test -n "$WINDMC_FOR_TARGET"; then
11283 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11284else
11285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286for as_dir in $PATH
11287do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11294 break 2
11295 fi
11296done
11297done
11298
11299fi
11300fi
11301WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11302if test -n "$WINDMC_FOR_TARGET"; then
11303 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11304echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11305else
11306 echo "$as_me:$LINENO: result: no" >&5
11307echo "${ECHO_T}no" >&6
11308fi
11309
11310 fi
11311 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11313set dummy ${ncn_progname}; ac_word=$2
11314echo "$as_me:$LINENO: checking for $ac_word" >&5
11315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11316if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318else
11319 if test -n "$WINDMC_FOR_TARGET"; then
11320 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11321else
11322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $PATH
11324do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11329 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 break 2
11332 fi
11333done
11334done
11335
11336fi
11337fi
11338WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11339if test -n "$WINDMC_FOR_TARGET"; then
11340 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11341echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11342else
11343 echo "$as_me:$LINENO: result: no" >&5
11344echo "${ECHO_T}no" >&6
11345fi
11346
11347 fi
11348 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11349 done
11350fi
11351
11352if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11353 set dummy windmc
11354 if test $build = $target ; then
11355 WINDMC_FOR_TARGET="$2"
11356 else
11357 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11358 fi
11359else
11360 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11361fi
11362
11363else
11364 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11365fi
11366
11367
be01d343
PB
11368RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11369
c6b750e1
DJ
11370echo "$as_me:$LINENO: checking where to find the target ar" >&5
11371echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11372if test "x${build}" != "x${host}" ; then
2429c060
PB
11373 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11374 # We already found the complete path
b8025f34
AS
11375 ac_dir=`dirname $AR_FOR_TARGET`
11376 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11377echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11378 else
11379 # Canadian cross, just use what we found
c6b750e1
DJ
11380 echo "$as_me:$LINENO: result: pre-installed" >&5
11381echo "${ECHO_T}pre-installed" >&6
2429c060 11382 fi
be01d343
PB
11383else
11384 ok=yes
11385 case " ${configdirs} " in
11386 *" binutils "*) ;;
11387 *) ok=no ;;
11388 esac
c6b750e1 11389
be01d343
PB
11390 if test $ok = yes; then
11391 # An in-tree tool is available and we can use it
11392 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11393 echo "$as_me:$LINENO: result: just compiled" >&5
11394echo "${ECHO_T}just compiled" >&6
2429c060
PB
11395 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11396 # We already found the complete path
b8025f34
AS
11397 ac_dir=`dirname $AR_FOR_TARGET`
11398 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11399echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11400 elif test "x$target" = "x$host"; then
11401 # We can use an host tool
11402 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11403 echo "$as_me:$LINENO: result: host tool" >&5
11404echo "${ECHO_T}host tool" >&6
be01d343
PB
11405 else
11406 # We need a cross tool
c6b750e1
DJ
11407 echo "$as_me:$LINENO: result: pre-installed" >&5
11408echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11409 fi
11410fi
4b900473 11411
c6b750e1
DJ
11412echo "$as_me:$LINENO: checking where to find the target as" >&5
11413echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11414if test "x${build}" != "x${host}" ; then
2429c060
PB
11415 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11416 # We already found the complete path
b8025f34
AS
11417 ac_dir=`dirname $AS_FOR_TARGET`
11418 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11419echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11420 else
11421 # Canadian cross, just use what we found
c6b750e1
DJ
11422 echo "$as_me:$LINENO: result: pre-installed" >&5
11423echo "${ECHO_T}pre-installed" >&6
2429c060 11424 fi
be01d343
PB
11425else
11426 ok=yes
11427 case " ${configdirs} " in
11428 *" gas "*) ;;
11429 *) ok=no ;;
11430 esac
c6b750e1 11431
be01d343
PB
11432 if test $ok = yes; then
11433 # An in-tree tool is available and we can use it
11434 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11435 echo "$as_me:$LINENO: result: just compiled" >&5
11436echo "${ECHO_T}just compiled" >&6
2429c060
PB
11437 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11438 # We already found the complete path
b8025f34
AS
11439 ac_dir=`dirname $AS_FOR_TARGET`
11440 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11441echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11442 elif test "x$target" = "x$host"; then
11443 # We can use an host tool
11444 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11445 echo "$as_me:$LINENO: result: host tool" >&5
11446echo "${ECHO_T}host tool" >&6
be01d343
PB
11447 else
11448 # We need a cross tool
c6b750e1
DJ
11449 echo "$as_me:$LINENO: result: pre-installed" >&5
11450echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11451 fi
11452fi
4b900473 11453
c6b750e1
DJ
11454echo "$as_me:$LINENO: checking where to find the target cc" >&5
11455echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11456if test "x${build}" != "x${host}" ; then
2429c060
PB
11457 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11458 # We already found the complete path
b8025f34
AS
11459 ac_dir=`dirname $CC_FOR_TARGET`
11460 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11461echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11462 else
11463 # Canadian cross, just use what we found
c6b750e1
DJ
11464 echo "$as_me:$LINENO: result: pre-installed" >&5
11465echo "${ECHO_T}pre-installed" >&6
2429c060 11466 fi
be01d343
PB
11467else
11468 ok=yes
11469 case " ${configdirs} " in
11470 *" gcc "*) ;;
11471 *) ok=no ;;
11472 esac
c6b750e1 11473
be01d343
PB
11474 if test $ok = yes; then
11475 # An in-tree tool is available and we can use it
11476 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11477 echo "$as_me:$LINENO: result: just compiled" >&5
11478echo "${ECHO_T}just compiled" >&6
2429c060
PB
11479 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11480 # We already found the complete path
b8025f34
AS
11481 ac_dir=`dirname $CC_FOR_TARGET`
11482 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11483echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11484 elif test "x$target" = "x$host"; then
11485 # We can use an host tool
11486 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11487 echo "$as_me:$LINENO: result: host tool" >&5
11488echo "${ECHO_T}host tool" >&6
be01d343
PB
11489 else
11490 # We need a cross tool
c6b750e1
DJ
11491 echo "$as_me:$LINENO: result: pre-installed" >&5
11492echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11493 fi
11494fi
4b900473 11495
c6b750e1
DJ
11496echo "$as_me:$LINENO: checking where to find the target c++" >&5
11497echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11498if test "x${build}" != "x${host}" ; then
2429c060
PB
11499 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11500 # We already found the complete path
b8025f34
AS
11501 ac_dir=`dirname $CXX_FOR_TARGET`
11502 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11503echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11504 else
11505 # Canadian cross, just use what we found
c6b750e1
DJ
11506 echo "$as_me:$LINENO: result: pre-installed" >&5
11507echo "${ECHO_T}pre-installed" >&6
2429c060 11508 fi
be01d343
PB
11509else
11510 ok=yes
11511 case " ${configdirs} " in
11512 *" gcc "*) ;;
11513 *) ok=no ;;
11514 esac
11515 case ,${enable_languages}, in
11516 *,c++,*) ;;
11517 *) ok=no ;;
11518 esac
11519 if test $ok = yes; then
11520 # An in-tree tool is available and we can use it
11521 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
11522 echo "$as_me:$LINENO: result: just compiled" >&5
11523echo "${ECHO_T}just compiled" >&6
2429c060
PB
11524 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11525 # We already found the complete path
b8025f34
AS
11526 ac_dir=`dirname $CXX_FOR_TARGET`
11527 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11528echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11529 elif test "x$target" = "x$host"; then
11530 # We can use an host tool
11531 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11532 echo "$as_me:$LINENO: result: host tool" >&5
11533echo "${ECHO_T}host tool" >&6
be01d343
PB
11534 else
11535 # We need a cross tool
c6b750e1
DJ
11536 echo "$as_me:$LINENO: result: pre-installed" >&5
11537echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11538 fi
11539fi
4b900473 11540
c6b750e1
DJ
11541echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11542echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11543if test "x${build}" != "x${host}" ; then
2429c060
PB
11544 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11545 # We already found the complete path
b8025f34
AS
11546 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11547 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11548echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11549 else
11550 # Canadian cross, just use what we found
c6b750e1
DJ
11551 echo "$as_me:$LINENO: result: pre-installed" >&5
11552echo "${ECHO_T}pre-installed" >&6
2429c060 11553 fi
be01d343
PB
11554else
11555 ok=yes
11556 case " ${configdirs} " in
11557 *" gcc "*) ;;
11558 *) ok=no ;;
11559 esac
11560 case ,${enable_languages}, in
11561 *,c++,*) ;;
11562 *) ok=no ;;
11563 esac
11564 if test $ok = yes; then
11565 # An in-tree tool is available and we can use it
11566 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
11567 echo "$as_me:$LINENO: result: just compiled" >&5
11568echo "${ECHO_T}just compiled" >&6
2429c060
PB
11569 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
b8025f34
AS
11571 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11574 elif test "x$target" = "x$host"; then
11575 # We can use an host tool
11576 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11577 echo "$as_me:$LINENO: result: host tool" >&5
11578echo "${ECHO_T}host tool" >&6
be01d343
PB
11579 else
11580 # We need a cross tool
c6b750e1
DJ
11581 echo "$as_me:$LINENO: result: pre-installed" >&5
11582echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11583 fi
11584fi
4b900473 11585
c6b750e1
DJ
11586echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11587echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11588if test "x${build}" != "x${host}" ; then
2429c060
PB
11589 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11590 # We already found the complete path
b8025f34
AS
11591 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11592 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11593echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11594 else
11595 # Canadian cross, just use what we found
c6b750e1
DJ
11596 echo "$as_me:$LINENO: result: pre-installed" >&5
11597echo "${ECHO_T}pre-installed" >&6
2429c060 11598 fi
be01d343
PB
11599else
11600 ok=yes
11601 case " ${configdirs} " in
11602 *" binutils "*) ;;
11603 *) ok=no ;;
11604 esac
c6b750e1 11605
be01d343
PB
11606 if test $ok = yes; then
11607 # An in-tree tool is available and we can use it
11608 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11609 echo "$as_me:$LINENO: result: just compiled" >&5
11610echo "${ECHO_T}just compiled" >&6
2429c060
PB
11611 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
b8025f34
AS
11613 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11616 elif test "x$target" = "x$host"; then
11617 # We can use an host tool
11618 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11619 echo "$as_me:$LINENO: result: host tool" >&5
11620echo "${ECHO_T}host tool" >&6
be01d343
PB
11621 else
11622 # We need a cross tool
c6b750e1
DJ
11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11625 fi
11626fi
4b900473 11627
c6b750e1
DJ
11628echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11629echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11630if test "x${build}" != "x${host}" ; then
2429c060
PB
11631 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11632 # We already found the complete path
b8025f34
AS
11633 ac_dir=`dirname $GCC_FOR_TARGET`
11634 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11635echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11636 else
11637 # Canadian cross, just use what we found
c6b750e1
DJ
11638 echo "$as_me:$LINENO: result: pre-installed" >&5
11639echo "${ECHO_T}pre-installed" >&6
2429c060 11640 fi
be01d343
PB
11641else
11642 ok=yes
11643 case " ${configdirs} " in
11644 *" gcc "*) ;;
11645 *) ok=no ;;
11646 esac
c6b750e1 11647
be01d343
PB
11648 if test $ok = yes; then
11649 # An in-tree tool is available and we can use it
11650 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11651 echo "$as_me:$LINENO: result: just compiled" >&5
11652echo "${ECHO_T}just compiled" >&6
2429c060
PB
11653 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11654 # We already found the complete path
b8025f34
AS
11655 ac_dir=`dirname $GCC_FOR_TARGET`
11656 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11657echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11658 elif test "x$target" = "x$host"; then
11659 # We can use an host tool
11660 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11661 echo "$as_me:$LINENO: result: host tool" >&5
11662echo "${ECHO_T}host tool" >&6
be01d343
PB
11663 else
11664 # We need a cross tool
c6b750e1
DJ
11665 echo "$as_me:$LINENO: result: pre-installed" >&5
11666echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11667 fi
11668fi
4b900473 11669
c6b750e1
DJ
11670echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11671echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11672if test "x${build}" != "x${host}" ; then
2429c060
PB
11673 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11674 # We already found the complete path
b8025f34
AS
11675 ac_dir=`dirname $GCJ_FOR_TARGET`
11676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11677echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11678 else
11679 # Canadian cross, just use what we found
c6b750e1
DJ
11680 echo "$as_me:$LINENO: result: pre-installed" >&5
11681echo "${ECHO_T}pre-installed" >&6
2429c060 11682 fi
be01d343
PB
11683else
11684 ok=yes
11685 case " ${configdirs} " in
11686 *" gcc "*) ;;
11687 *) ok=no ;;
11688 esac
11689 case ,${enable_languages}, in
11690 *,java,*) ;;
11691 *) ok=no ;;
11692 esac
11693 if test $ok = yes; then
11694 # An in-tree tool is available and we can use it
11695 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11696 echo "$as_me:$LINENO: result: just compiled" >&5
11697echo "${ECHO_T}just compiled" >&6
2429c060
PB
11698 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11699 # We already found the complete path
b8025f34
AS
11700 ac_dir=`dirname $GCJ_FOR_TARGET`
11701 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11702echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11703 elif test "x$target" = "x$host"; then
11704 # We can use an host tool
11705 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11706 echo "$as_me:$LINENO: result: host tool" >&5
11707echo "${ECHO_T}host tool" >&6
be01d343
PB
11708 else
11709 # We need a cross tool
c6b750e1
DJ
11710 echo "$as_me:$LINENO: result: pre-installed" >&5
11711echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11712 fi
11713fi
4b900473 11714
c6b750e1
DJ
11715echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11716echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11717if test "x${build}" != "x${host}" ; then
2429c060
PB
11718 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11719 # We already found the complete path
b8025f34
AS
11720 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11721 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11722echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11723 else
11724 # Canadian cross, just use what we found
c6b750e1
DJ
11725 echo "$as_me:$LINENO: result: pre-installed" >&5
11726echo "${ECHO_T}pre-installed" >&6
2429c060 11727 fi
be01d343
PB
11728else
11729 ok=yes
11730 case " ${configdirs} " in
11731 *" gcc "*) ;;
11732 *) ok=no ;;
11733 esac
11734 case ,${enable_languages}, in
11735 *,fortran,*) ;;
11736 *) ok=no ;;
11737 esac
11738 if test $ok = yes; then
11739 # An in-tree tool is available and we can use it
11740 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11741 echo "$as_me:$LINENO: result: just compiled" >&5
11742echo "${ECHO_T}just compiled" >&6
2429c060
PB
11743 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11744 # We already found the complete path
b8025f34
AS
11745 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11746 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11747echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11748 elif test "x$target" = "x$host"; then
11749 # We can use an host tool
11750 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11751 echo "$as_me:$LINENO: result: host tool" >&5
11752echo "${ECHO_T}host tool" >&6
be01d343
PB
11753 else
11754 # We need a cross tool
c6b750e1
DJ
11755 echo "$as_me:$LINENO: result: pre-installed" >&5
11756echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11757 fi
11758fi
4b900473 11759
c6b750e1
DJ
11760echo "$as_me:$LINENO: checking where to find the target ld" >&5
11761echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11762if test "x${build}" != "x${host}" ; then
2429c060
PB
11763 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11764 # We already found the complete path
b8025f34
AS
11765 ac_dir=`dirname $LD_FOR_TARGET`
11766 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11767echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11768 else
11769 # Canadian cross, just use what we found
c6b750e1
DJ
11770 echo "$as_me:$LINENO: result: pre-installed" >&5
11771echo "${ECHO_T}pre-installed" >&6
2429c060 11772 fi
be01d343
PB
11773else
11774 ok=yes
11775 case " ${configdirs} " in
11776 *" ld "*) ;;
11777 *) ok=no ;;
11778 esac
c6b750e1 11779
be01d343
PB
11780 if test $ok = yes; then
11781 # An in-tree tool is available and we can use it
11782 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11783 echo "$as_me:$LINENO: result: just compiled" >&5
11784echo "${ECHO_T}just compiled" >&6
2429c060
PB
11785 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11786 # We already found the complete path
b8025f34
AS
11787 ac_dir=`dirname $LD_FOR_TARGET`
11788 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11789echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11790 elif test "x$target" = "x$host"; then
11791 # We can use an host tool
11792 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11793 echo "$as_me:$LINENO: result: host tool" >&5
11794echo "${ECHO_T}host tool" >&6
be01d343
PB
11795 else
11796 # We need a cross tool
c6b750e1
DJ
11797 echo "$as_me:$LINENO: result: pre-installed" >&5
11798echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11799 fi
11800fi
4b900473 11801
c6b750e1
DJ
11802echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11803echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11804if test "x${build}" != "x${host}" ; then
2429c060
PB
11805 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11806 # We already found the complete path
b8025f34
AS
11807 ac_dir=`dirname $LIPO_FOR_TARGET`
11808 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11809echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11810 else
11811 # Canadian cross, just use what we found
c6b750e1
DJ
11812 echo "$as_me:$LINENO: result: pre-installed" >&5
11813echo "${ECHO_T}pre-installed" >&6
2429c060 11814 fi
be01d343 11815else
2429c060
PB
11816 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11817 # We already found the complete path
b8025f34
AS
11818 ac_dir=`dirname $LIPO_FOR_TARGET`
11819 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11820echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11821 elif test "x$target" = "x$host"; then
be01d343
PB
11822 # We can use an host tool
11823 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11824 echo "$as_me:$LINENO: result: host tool" >&5
11825echo "${ECHO_T}host tool" >&6
be01d343
PB
11826 else
11827 # We need a cross tool
c6b750e1
DJ
11828 echo "$as_me:$LINENO: result: pre-installed" >&5
11829echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11830 fi
11831fi
4b900473 11832
c6b750e1
DJ
11833echo "$as_me:$LINENO: checking where to find the target nm" >&5
11834echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11835if test "x${build}" != "x${host}" ; then
2429c060
PB
11836 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11837 # We already found the complete path
b8025f34
AS
11838 ac_dir=`dirname $NM_FOR_TARGET`
11839 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11840echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11841 else
11842 # Canadian cross, just use what we found
c6b750e1
DJ
11843 echo "$as_me:$LINENO: result: pre-installed" >&5
11844echo "${ECHO_T}pre-installed" >&6
2429c060 11845 fi
be01d343
PB
11846else
11847 ok=yes
11848 case " ${configdirs} " in
11849 *" binutils "*) ;;
11850 *) ok=no ;;
11851 esac
c6b750e1 11852
be01d343
PB
11853 if test $ok = yes; then
11854 # An in-tree tool is available and we can use it
11855 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11856 echo "$as_me:$LINENO: result: just compiled" >&5
11857echo "${ECHO_T}just compiled" >&6
2429c060
PB
11858 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11859 # We already found the complete path
b8025f34
AS
11860 ac_dir=`dirname $NM_FOR_TARGET`
11861 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11862echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11863 elif test "x$target" = "x$host"; then
11864 # We can use an host tool
11865 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11866 echo "$as_me:$LINENO: result: host tool" >&5
11867echo "${ECHO_T}host tool" >&6
be01d343
PB
11868 else
11869 # We need a cross tool
c6b750e1
DJ
11870 echo "$as_me:$LINENO: result: pre-installed" >&5
11871echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11872 fi
11873fi
4b900473 11874
c6b750e1
DJ
11875echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11876echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11877if test "x${build}" != "x${host}" ; then
2429c060
PB
11878 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11879 # We already found the complete path
b8025f34
AS
11880 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11881 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11882echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11883 else
11884 # Canadian cross, just use what we found
c6b750e1
DJ
11885 echo "$as_me:$LINENO: result: pre-installed" >&5
11886echo "${ECHO_T}pre-installed" >&6
2429c060 11887 fi
be01d343
PB
11888else
11889 ok=yes
11890 case " ${configdirs} " in
11891 *" binutils "*) ;;
11892 *) ok=no ;;
11893 esac
c6b750e1 11894
be01d343
PB
11895 if test $ok = yes; then
11896 # An in-tree tool is available and we can use it
11897 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11898 echo "$as_me:$LINENO: result: just compiled" >&5
11899echo "${ECHO_T}just compiled" >&6
2429c060
PB
11900 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11901 # We already found the complete path
b8025f34
AS
11902 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11903 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11904echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11905 elif test "x$target" = "x$host"; then
11906 # We can use an host tool
11907 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11908 echo "$as_me:$LINENO: result: host tool" >&5
11909echo "${ECHO_T}host tool" >&6
be01d343
PB
11910 else
11911 # We need a cross tool
c6b750e1
DJ
11912 echo "$as_me:$LINENO: result: pre-installed" >&5
11913echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11914 fi
11915fi
4b900473 11916
c6b750e1
DJ
11917echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11918echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11919if test "x${build}" != "x${host}" ; then
2429c060
PB
11920 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11921 # We already found the complete path
b8025f34
AS
11922 ac_dir=`dirname $RANLIB_FOR_TARGET`
11923 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11924echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11925 else
11926 # Canadian cross, just use what we found
c6b750e1
DJ
11927 echo "$as_me:$LINENO: result: pre-installed" >&5
11928echo "${ECHO_T}pre-installed" >&6
2429c060 11929 fi
be01d343
PB
11930else
11931 ok=yes
11932 case " ${configdirs} " in
11933 *" binutils "*) ;;
11934 *) ok=no ;;
11935 esac
c6b750e1 11936
be01d343
PB
11937 if test $ok = yes; then
11938 # An in-tree tool is available and we can use it
11939 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11940 echo "$as_me:$LINENO: result: just compiled" >&5
11941echo "${ECHO_T}just compiled" >&6
2429c060
PB
11942 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11943 # We already found the complete path
b8025f34
AS
11944 ac_dir=`dirname $RANLIB_FOR_TARGET`
11945 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11946echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11947 elif test "x$target" = "x$host"; then
11948 # We can use an host tool
11949 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11950 echo "$as_me:$LINENO: result: host tool" >&5
11951echo "${ECHO_T}host tool" >&6
be01d343
PB
11952 else
11953 # We need a cross tool
c6b750e1
DJ
11954 echo "$as_me:$LINENO: result: pre-installed" >&5
11955echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11956 fi
11957fi
4b900473 11958
c6b750e1
DJ
11959echo "$as_me:$LINENO: checking where to find the target strip" >&5
11960echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11961if test "x${build}" != "x${host}" ; then
2429c060
PB
11962 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11963 # We already found the complete path
b8025f34
AS
11964 ac_dir=`dirname $STRIP_FOR_TARGET`
11965 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11966echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11967 else
11968 # Canadian cross, just use what we found
c6b750e1
DJ
11969 echo "$as_me:$LINENO: result: pre-installed" >&5
11970echo "${ECHO_T}pre-installed" >&6
2429c060 11971 fi
be01d343
PB
11972else
11973 ok=yes
11974 case " ${configdirs} " in
11975 *" binutils "*) ;;
11976 *) ok=no ;;
11977 esac
c6b750e1 11978
be01d343
PB
11979 if test $ok = yes; then
11980 # An in-tree tool is available and we can use it
11981 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11982 echo "$as_me:$LINENO: result: just compiled" >&5
11983echo "${ECHO_T}just compiled" >&6
2429c060
PB
11984 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11985 # We already found the complete path
b8025f34
AS
11986 ac_dir=`dirname $STRIP_FOR_TARGET`
11987 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11988echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11989 elif test "x$target" = "x$host"; then
11990 # We can use an host tool
11991 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11992 echo "$as_me:$LINENO: result: host tool" >&5
11993echo "${ECHO_T}host tool" >&6
be01d343
PB
11994 else
11995 # We need a cross tool
c6b750e1
DJ
11996 echo "$as_me:$LINENO: result: pre-installed" >&5
11997echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11998 fi
11999fi
4b900473 12000
c6b750e1
DJ
12001echo "$as_me:$LINENO: checking where to find the target windres" >&5
12002echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 12003if test "x${build}" != "x${host}" ; then
2429c060
PB
12004 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12005 # We already found the complete path
b8025f34
AS
12006 ac_dir=`dirname $WINDRES_FOR_TARGET`
12007 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12008echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
12009 else
12010 # Canadian cross, just use what we found
c6b750e1
DJ
12011 echo "$as_me:$LINENO: result: pre-installed" >&5
12012echo "${ECHO_T}pre-installed" >&6
2429c060 12013 fi
be01d343
PB
12014else
12015 ok=yes
12016 case " ${configdirs} " in
12017 *" binutils "*) ;;
12018 *) ok=no ;;
12019 esac
c6b750e1 12020
be01d343
PB
12021 if test $ok = yes; then
12022 # An in-tree tool is available and we can use it
12023 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
12024 echo "$as_me:$LINENO: result: just compiled" >&5
12025echo "${ECHO_T}just compiled" >&6
2429c060
PB
12026 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12027 # We already found the complete path
b8025f34
AS
12028 ac_dir=`dirname $WINDRES_FOR_TARGET`
12029 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12030echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
12031 elif test "x$target" = "x$host"; then
12032 # We can use an host tool
12033 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
12034 echo "$as_me:$LINENO: result: host tool" >&5
12035echo "${ECHO_T}host tool" >&6
be01d343
PB
12036 else
12037 # We need a cross tool
c6b750e1
DJ
12038 echo "$as_me:$LINENO: result: pre-installed" >&5
12039echo "${ECHO_T}pre-installed" >&6
be01d343 12040 fi
a0da8069 12041fi
54752a6b 12042
0c24b341
NC
12043echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12044echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12045if test "x${build}" != "x${host}" ; then
12046 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12047 # We already found the complete path
12048 ac_dir=`dirname $WINDMC_FOR_TARGET`
12049 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12050echo "${ECHO_T}pre-installed in $ac_dir" >&6
12051 else
12052 # Canadian cross, just use what we found
12053 echo "$as_me:$LINENO: result: pre-installed" >&5
12054echo "${ECHO_T}pre-installed" >&6
12055 fi
12056else
12057 ok=yes
12058 case " ${configdirs} " in
12059 *" binutils "*) ;;
12060 *) ok=no ;;
12061 esac
12062
12063 if test $ok = yes; then
12064 # An in-tree tool is available and we can use it
12065 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12066 echo "$as_me:$LINENO: result: just compiled" >&5
12067echo "${ECHO_T}just compiled" >&6
12068 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12069 # We already found the complete path
12070 ac_dir=`dirname $WINDMC_FOR_TARGET`
12071 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12072echo "${ECHO_T}pre-installed in $ac_dir" >&6
12073 elif test "x$target" = "x$host"; then
12074 # We can use an host tool
12075 WINDMC_FOR_TARGET='$(WINDMC)'
12076 echo "$as_me:$LINENO: result: host tool" >&5
12077echo "${ECHO_T}host tool" >&6
12078 else
12079 # We need a cross tool
12080 echo "$as_me:$LINENO: result: pre-installed" >&5
12081echo "${ECHO_T}pre-installed" >&6
12082 fi
12083fi
12084
54752a6b
NN
12085
12086
be01d343 12087
4b900473 12088
a0da8069
NN
12089# Certain tools may need extra flags.
12090AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12091RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12092NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12093
be01d343
PB
12094# When building target libraries, except in a Canadian cross, we use
12095# the same toolchain as the compiler we just built.
12096COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12097COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12098COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12099if test $host = $build; then
12100 case " $configdirs " in
12101 *" gcc "*)
12102 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12103 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12104 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12105 ;;
12106 esac
12107fi
12108
12109
12110
12111
12112
c6b750e1
DJ
12113echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12114echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
12115# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12116if test "${enable_maintainer_mode+set}" = set; then
12117 enableval="$enable_maintainer_mode"
12118 USE_MAINTAINER_MODE=$enableval
12119else
12120 USE_MAINTAINER_MODE=no
c6b750e1
DJ
12121fi;
12122echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12123echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
12124
12125
12126if test "$USE_MAINTAINER_MODE" = yes; then
12127 MAINTAINER_MODE_TRUE=
12128 MAINTAINER_MODE_FALSE='#'
12129else
12130 MAINTAINER_MODE_TRUE='#'
12131 MAINTAINER_MODE_FALSE=
c6b750e1 12132fi
3d5e36ae
AO
12133MAINT=$MAINTAINER_MODE_TRUE
12134
1d39f329
NN
12135# ---------------------
12136# GCC bootstrap support
12137# ---------------------
12138
12139# Stage specific cflags for build.
12140stage1_cflags="-g"
12141case $build in
12142 vax-*-*)
12143 case ${GCC} in
12144 yes) stage1_cflags="-g -Wa,-J" ;;
12145 *) stage1_cflags="-g -J" ;;
12146 esac ;;
1d39f329
NN
12147esac
12148
1d89b610
PB
12149# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12150if test "$GCC" = yes; then
12151 saved_CFLAGS="$CFLAGS"
12152
12153 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12154 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
12155 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12156echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12157 cat >conftest.$ac_ext <<_ACEOF
12158/* confdefs.h. */
12159_ACEOF
12160cat confdefs.h >>conftest.$ac_ext
12161cat >>conftest.$ac_ext <<_ACEOF
12162/* end confdefs.h. */
12163
2038f525
PB
12164#if (__GNUC__ < 3) \
12165 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12166 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12167#error http://gcc.gnu.org/PR29382
12168#endif
12169
c6b750e1
DJ
12170int
12171main ()
12172{
12173
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 echo "$as_me:$LINENO: result: yes" >&5
12201echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206echo "$as_me:$LINENO: result: no" >&5
12207echo "${ECHO_T}no" >&6
12208fi
12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
12210
12211 CFLAGS="$saved_CFLAGS"
12212fi
12213
12214
1d39f329 12215
8a0d8a5c
PB
12216# Enable --enable-checking in stage1 of the compiler.
12217# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12218if test "${enable_stage1_checking+set}" = set; then
12219 enableval="$enable_stage1_checking"
12220 stage1_checking=--enable-checking=${enable_stage1_checking}
12221else
5566c1fa 12222 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 12223 stage1_checking=--enable-checking=yes,types
8a0d8a5c 12224else
5566c1fa 12225 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 12226fi
c6b750e1 12227fi;
8a0d8a5c
PB
12228
12229
1d39f329 12230# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12231# Check whether --enable-werror or --disable-werror was given.
12232if test "${enable_werror+set}" = set; then
12233 enableval="$enable_werror"
c6b750e1 12234
1d39f329 12235else
a0323144 12236 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12237 enable_werror=yes
79fcd0ec
PB
12238else
12239 enable_werror=no
12240fi
c6b750e1 12241fi;
1a6f2dc7
NN
12242case ${enable_werror} in
12243 yes) stage2_werror_flag="--enable-werror-always" ;;
12244 *) stage2_werror_flag="" ;;
1d39f329
NN
12245esac
12246
12247
108a6f8e 12248# Flags needed to enable html installing and building
c6b750e1 12249
108a6f8e
CD
12250# Check whether --with-datarootdir or --without-datarootdir was given.
12251if test "${with_datarootdir+set}" = set; then
12252 withval="$with_datarootdir"
12253 datarootdir="\${prefix}/${withval}"
12254else
12255 datarootdir="\${prefix}/share"
c6b750e1 12256fi;
108a6f8e
CD
12257
12258
12259# Check whether --with-docdir or --without-docdir was given.
12260if test "${with_docdir+set}" = set; then
12261 withval="$with_docdir"
12262 docdir="\${prefix}/${withval}"
12263else
12264 docdir="\${datarootdir}/doc"
c6b750e1 12265fi;
108a6f8e
CD
12266
12267
a3ca38d2
DD
12268# Check whether --with-pdfdir or --without-pdfdir was given.
12269if test "${with_pdfdir+set}" = set; then
12270 withval="$with_pdfdir"
12271 pdfdir="\${prefix}/${withval}"
12272else
12273 pdfdir="\${docdir}"
12274fi;
12275
12276
108a6f8e
CD
12277# Check whether --with-htmldir or --without-htmldir was given.
12278if test "${with_htmldir+set}" = set; then
12279 withval="$with_htmldir"
12280 htmldir="\${prefix}/${withval}"
12281else
12282 htmldir="\${docdir}"
c6b750e1 12283fi;
108a6f8e
CD
12284
12285
12286
12287
12288
b8025f34 12289
c6b750e1
DJ
12290 ac_config_files="$ac_config_files Makefile"
12291cat >confcache <<\_ACEOF
a0da8069
NN
12292# This file is a shell script that caches the results of configure
12293# tests run on this system so they can be shared between configure
c6b750e1
DJ
12294# scripts and configure runs, see configure's option --config-cache.
12295# It is not useful on other systems. If it contains results you don't
12296# want to keep, you may remove or edit it.
a0da8069 12297#
c6b750e1
DJ
12298# config.status only pays attention to the cache file if you give it
12299# the --recheck option to rerun configure.
a0da8069 12300#
c6b750e1
DJ
12301# `ac_cv_env_foo' variables (set or unset) will be overridden when
12302# loading this file, other *unset* `ac_cv_foo' will be assigned the
12303# following values.
12304
12305_ACEOF
12306
a0da8069
NN
12307# The following way of writing the cache mishandles newlines in values,
12308# but we know of no workaround that is simple, portable, and efficient.
12309# So, don't put newlines in cache variables' values.
12310# Ultrix sh set writes to stderr and can't be redirected directly,
12311# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12312{
12313 (set) 2>&1 |
12314 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12315 *ac_space=\ *)
12316 # `set' does not quote correctly, so add quotes (double-quote
12317 # substitution turns \\\\ into \\, and sed turns \\ into \).
12318 sed -n \
12319 "s/'/'\\\\''/g;
12320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12321 ;;
12322 *)
12323 # `set' quotes correctly as required by POSIX, so do not add quotes.
12324 sed -n \
12325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12326 ;;
12327 esac;
12328} |
12329 sed '
12330 t clear
12331 : clear
12332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12333 t end
12334 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12335 : end' >>confcache
12336if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12337 if test -w $cache_file; then
c6b750e1
DJ
12338 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12339 cat confcache >$cache_file
a0da8069
NN
12340 else
12341 echo "not updating unwritable cache $cache_file"
12342 fi
852e5f18 12343fi
a0da8069 12344rm -f confcache
852e5f18 12345
a0da8069
NN
12346test "x$prefix" = xNONE && prefix=$ac_default_prefix
12347# Let make expand exec_prefix.
12348test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12349
c6b750e1
DJ
12350# VPATH may cause trouble with some makes, so we remove $(srcdir),
12351# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12352# trailing colons and then remove the whole line if VPATH becomes empty
12353# (actually we leave an empty line to preserve line numbers).
a0da8069 12354if test "x$srcdir" = x.; then
c6b750e1
DJ
12355 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12356s/:*\$(srcdir):*/:/;
12357s/:*\${srcdir}:*/:/;
12358s/:*@srcdir@:*/:/;
12359s/^\([^=]*=[ ]*\):*/\1/;
12360s/:*$//;
12361s/^[^=]*=[ ]*$//;
12362}'
a0da8069 12363fi
252b5132 12364
a0da8069
NN
12365# Transform confdefs.h into DEFS.
12366# Protect against shell expansion while executing Makefile rules.
12367# Protect against Makefile macro expansion.
c6b750e1
DJ
12368#
12369# If the first sed substitution is executed (which looks for macros that
12370# take arguments), then we branch to the quote section. Otherwise,
12371# look for a macro that doesn't take arguments.
12372cat >confdef2opt.sed <<\_ACEOF
12373t clear
12374: clear
12375s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12376t quote
12377s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12378t quote
12379d
12380: quote
12381s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12382s,\[,\\&,g
12383s,\],\\&,g
12384s,\$,$$,g
12385p
12386_ACEOF
12387# We use echo to avoid assuming a particular line-breaking character.
12388# The extra dot is to prevent the shell from consuming trailing
12389# line-breaks from the sub-command output. A line-break within
12390# single-quotes doesn't work because, if this script is created in a
12391# platform that uses two characters for line-breaks (e.g., DOS), tr
12392# would break.
12393ac_LF_and_DOT=`echo; echo .`
12394DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12395rm -f confdef2opt.sed
12396
12397
12398ac_libobjs=
12399ac_ltlibobjs=
12400for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12401 # 1. Remove the extension, and $U if already installed.
12402 ac_i=`echo "$ac_i" |
12403 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12404 # 2. Add them.
12405 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12406 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12407done
12408LIBOBJS=$ac_libobjs
852e5f18 12409
c6b750e1 12410LTLIBOBJS=$ac_ltlibobjs
376a0e54 12411
cac3d6c4 12412
c6b750e1
DJ
12413
12414: ${CONFIG_STATUS=./config.status}
12415ac_clean_files_save=$ac_clean_files
12416ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12417{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12418echo "$as_me: creating $CONFIG_STATUS" >&6;}
12419cat >$CONFIG_STATUS <<_ACEOF
12420#! $SHELL
12421# Generated by $as_me.
a0da8069 12422# Run this file to recreate the current configuration.
a0da8069 12423# Compiler output produced by configure, useful for debugging
c6b750e1 12424# configure, is in config.log if it exists.
376a0e54 12425
c6b750e1
DJ
12426debug=false
12427ac_cs_recheck=false
12428ac_cs_silent=false
12429SHELL=\${CONFIG_SHELL-$SHELL}
12430_ACEOF
12431
12432cat >>$CONFIG_STATUS <<\_ACEOF
12433## --------------------- ##
12434## M4sh Initialization. ##
12435## --------------------- ##
12436
12437# Be Bourne compatible
12438if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12439 emulate sh
12440 NULLCMD=:
12441 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12442 # is contrary to our usage. Disable this feature.
12443 alias -g '${1+"$@"}'='"$@"'
12444elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12445 set -o posix
12446fi
12447DUALCASE=1; export DUALCASE # for MKS sh
12448
12449# Support unset when possible.
12450if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12451 as_unset=unset
12452else
12453 as_unset=false
12454fi
12455
12456
12457# Work around bugs in pre-3.0 UWIN ksh.
12458$as_unset ENV MAIL MAILPATH
12459PS1='$ '
12460PS2='> '
12461PS4='+ '
12462
12463# NLS nuisances.
12464for as_var in \
12465 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12466 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12467 LC_TELEPHONE LC_TIME
12468do
12469 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12470 eval $as_var=C; export $as_var
12471 else
12472 $as_unset $as_var
12473 fi
12474done
12475
12476# Required to use basename.
12477if expr a : '\(a\)' >/dev/null 2>&1; then
12478 as_expr=expr
12479else
12480 as_expr=false
12481fi
12482
12483if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12484 as_basename=basename
12485else
12486 as_basename=false
12487fi
12488
12489
12490# Name of the executable.
12491as_me=`$as_basename "$0" ||
12492$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12493 X"$0" : 'X\(//\)$' \| \
12494 X"$0" : 'X\(/\)$' \| \
12495 . : '\(.\)' 2>/dev/null ||
12496echo X/"$0" |
12497 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12498 /^X\/\(\/\/\)$/{ s//\1/; q; }
12499 /^X\/\(\/\).*/{ s//\1/; q; }
12500 s/.*/./; q'`
12501
12502
12503# PATH needs CR, and LINENO needs CR and PATH.
12504# Avoid depending upon Character Ranges.
12505as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12506as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12507as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12508as_cr_digits='0123456789'
12509as_cr_alnum=$as_cr_Letters$as_cr_digits
12510
12511# The user is always right.
12512if test "${PATH_SEPARATOR+set}" != set; then
12513 echo "#! /bin/sh" >conf$$.sh
12514 echo "exit 0" >>conf$$.sh
12515 chmod +x conf$$.sh
12516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12517 PATH_SEPARATOR=';'
12518 else
12519 PATH_SEPARATOR=:
12520 fi
12521 rm -f conf$$.sh
12522fi
12523
12524
12525 as_lineno_1=$LINENO
12526 as_lineno_2=$LINENO
12527 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12528 test "x$as_lineno_1" != "x$as_lineno_2" &&
12529 test "x$as_lineno_3" = "x$as_lineno_2" || {
12530 # Find who we are. Look in the path if we contain no path at all
12531 # relative or not.
12532 case $0 in
12533 *[\\/]* ) as_myself=$0 ;;
12534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535for as_dir in $PATH
12536do
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12540done
12541
12542 ;;
12543 esac
12544 # We did not find ourselves, most probably we were run as `sh COMMAND'
12545 # in which case we are not to be found in the path.
12546 if test "x$as_myself" = x; then
12547 as_myself=$0
12548 fi
12549 if test ! -f "$as_myself"; then
12550 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12551echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12552 { (exit 1); exit 1; }; }
12553 fi
12554 case $CONFIG_SHELL in
12555 '')
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12558do
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for as_base in sh bash ksh sh5; do
12562 case $as_dir in
12563 /*)
12564 if ("$as_dir/$as_base" -c '
12565 as_lineno_1=$LINENO
12566 as_lineno_2=$LINENO
12567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12568 test "x$as_lineno_1" != "x$as_lineno_2" &&
12569 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12570 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12571 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12572 CONFIG_SHELL=$as_dir/$as_base
12573 export CONFIG_SHELL
12574 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12575 fi;;
12576 esac
12577 done
12578done
12579;;
12580 esac
12581
12582 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12583 # uniformly replaced by the line number. The first 'sed' inserts a
12584 # line-number line before each line; the second 'sed' does the real
12585 # work. The second script uses 'N' to pair each line-number line
12586 # with the numbered line, and appends trailing '-' during
12587 # substitution so that $LINENO is not a special case at line end.
12588 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12589 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12590 sed '=' <$as_myself |
12591 sed '
12592 N
12593 s,$,-,
12594 : loop
12595 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12596 t loop
12597 s,-$,,
12598 s,^['$as_cr_digits']*\n,,
12599 ' >$as_me.lineno &&
12600 chmod +x $as_me.lineno ||
12601 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12602echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12603 { (exit 1); exit 1; }; }
12604
12605 # Don't try to exec as it changes $[0], causing all sort of problems
12606 # (the dirname of $[0] is not the place where we might find the
12607 # original and so on. Autoconf is especially sensible to this).
12608 . ./$as_me.lineno
12609 # Exit status is that of the last command.
12610 exit
12611}
12612
12613
12614case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12615 *c*,-n*) ECHO_N= ECHO_C='
12616' ECHO_T=' ' ;;
12617 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12618 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12619esac
12620
12621if expr a : '\(a\)' >/dev/null 2>&1; then
12622 as_expr=expr
12623else
12624 as_expr=false
12625fi
12626
12627rm -f conf$$ conf$$.exe conf$$.file
12628echo >conf$$.file
12629if ln -s conf$$.file conf$$ 2>/dev/null; then
12630 # We could just check for DJGPP; but this test a) works b) is more generic
12631 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12632 if test -f conf$$.exe; then
12633 # Don't use ln at all; we don't have any links
12634 as_ln_s='cp -p'
12635 else
12636 as_ln_s='ln -s'
12637 fi
12638elif ln conf$$.file conf$$ 2>/dev/null; then
12639 as_ln_s=ln
12640else
12641 as_ln_s='cp -p'
12642fi
12643rm -f conf$$ conf$$.exe conf$$.file
12644
12645if mkdir -p . 2>/dev/null; then
12646 as_mkdir_p=:
12647else
12648 test -d ./-p && rmdir ./-p
12649 as_mkdir_p=false
12650fi
12651
12652as_executable_p="test -f"
12653
12654# Sed expression to map a string onto a valid CPP name.
12655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12656
12657# Sed expression to map a string onto a valid variable name.
12658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12659
12660
12661# IFS
12662# We need space, tab and new line, in precisely that order.
12663as_nl='
12664'
12665IFS=" $as_nl"
12666
12667# CDPATH.
12668$as_unset CDPATH
12669
12670exec 6>&1
12671
12672# Open the log real soon, to keep \$[0] and so on meaningful, and to
12673# report actual input values of CONFIG_FILES etc. instead of their
12674# values after options handling. Logging --version etc. is OK.
12675exec 5>>config.log
12676{
12677 echo
12678 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12679## Running $as_me. ##
12680_ASBOX
12681} >&5
12682cat >&5 <<_CSEOF
12683
12684This file was extended by $as_me, which was
12685generated by GNU Autoconf 2.59. Invocation command line was
12686
12687 CONFIG_FILES = $CONFIG_FILES
12688 CONFIG_HEADERS = $CONFIG_HEADERS
12689 CONFIG_LINKS = $CONFIG_LINKS
12690 CONFIG_COMMANDS = $CONFIG_COMMANDS
12691 $ $0 $@
12692
12693_CSEOF
12694echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12695echo >&5
12696_ACEOF
12697
12698# Files that config.status was made for.
12699if test -n "$ac_config_files"; then
12700 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12701fi
12702
12703if test -n "$ac_config_headers"; then
12704 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12705fi
12706
12707if test -n "$ac_config_links"; then
12708 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12709fi
12710
12711if test -n "$ac_config_commands"; then
12712 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12713fi
12714
12715cat >>$CONFIG_STATUS <<\_ACEOF
12716
12717ac_cs_usage="\
12718\`$as_me' instantiates files from templates according to the
12719current configuration.
12720
12721Usage: $0 [OPTIONS] [FILE]...
12722
12723 -h, --help print this help, then exit
12724 -V, --version print version number, then exit
12725 -q, --quiet do not print progress messages
12726 -d, --debug don't remove temporary files
12727 --recheck update $as_me by reconfiguring in the same conditions
12728 --file=FILE[:TEMPLATE]
12729 instantiate the configuration file FILE
12730
12731Configuration files:
12732$config_files
12733
12734Report bugs to <bug-autoconf@gnu.org>."
12735_ACEOF
12736
12737cat >>$CONFIG_STATUS <<_ACEOF
12738ac_cs_version="\\
12739config.status
12740configured by $0, generated by GNU Autoconf 2.59,
12741 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12742
12743Copyright (C) 2003 Free Software Foundation, Inc.
12744This config.status script is free software; the Free Software Foundation
12745gives unlimited permission to copy, distribute and modify it."
12746srcdir=$srcdir
12747INSTALL="$INSTALL"
12748_ACEOF
12749
12750cat >>$CONFIG_STATUS <<\_ACEOF
12751# If no file are specified by the user, then we need to provide default
12752# value. By we need to know if files were specified by the user.
12753ac_need_defaults=:
12754while test $# != 0
a0da8069 12755do
c6b750e1
DJ
12756 case $1 in
12757 --*=*)
12758 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12759 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12760 ac_shift=:
12761 ;;
12762 -*)
12763 ac_option=$1
12764 ac_optarg=$2
12765 ac_shift=shift
12766 ;;
12767 *) # This is not an option, so the user has probably given explicit
12768 # arguments.
12769 ac_option=$1
12770 ac_need_defaults=false;;
12771 esac
12772
12773 case $ac_option in
12774 # Handling of the options.
12775_ACEOF
12776cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12778 ac_cs_recheck=: ;;
12779 --version | --vers* | -V )
12780 echo "$ac_cs_version"; exit 0 ;;
12781 --he | --h)
12782 # Conflict between --help and --header
12783 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12784Try \`$0 --help' for more information." >&5
12785echo "$as_me: error: ambiguous option: $1
12786Try \`$0 --help' for more information." >&2;}
12787 { (exit 1); exit 1; }; };;
12788 --help | --hel | -h )
12789 echo "$ac_cs_usage"; exit 0 ;;
12790 --debug | --d* | -d )
12791 debug=: ;;
12792 --file | --fil | --fi | --f )
12793 $ac_shift
12794 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12795 ac_need_defaults=false;;
12796 --header | --heade | --head | --hea )
12797 $ac_shift
12798 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12799 ac_need_defaults=false;;
12800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12801 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12802 ac_cs_silent=: ;;
12803
12804 # This is an error.
12805 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12806Try \`$0 --help' for more information." >&5
12807echo "$as_me: error: unrecognized option: $1
12808Try \`$0 --help' for more information." >&2;}
12809 { (exit 1); exit 1; }; } ;;
12810
12811 *) ac_config_targets="$ac_config_targets $1" ;;
12812
376a0e54 12813 esac
c6b750e1 12814 shift
376a0e54
CM
12815done
12816
c6b750e1 12817ac_configure_extra_args=
376a0e54 12818
c6b750e1
DJ
12819if $ac_cs_silent; then
12820 exec 6>/dev/null
12821 ac_configure_extra_args="$ac_configure_extra_args --silent"
12822fi
376a0e54 12823
c6b750e1
DJ
12824_ACEOF
12825cat >>$CONFIG_STATUS <<_ACEOF
12826if \$ac_cs_recheck; then
12827 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12828 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12829fi
12830
12831_ACEOF
12832
12833
12834
12835
12836
12837cat >>$CONFIG_STATUS <<\_ACEOF
12838for ac_config_target in $ac_config_targets
12839do
12840 case "$ac_config_target" in
12841 # Handling of arguments.
12842 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12843 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12844echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12845 { (exit 1); exit 1; }; };;
12846 esac
12847done
12848
12849# If the user did not use the arguments to specify the items to instantiate,
12850# then the envvar interface is used. Set only those that are not.
12851# We use the long form for the default assignment because of an extremely
12852# bizarre bug on SunOS 4.1.3.
12853if $ac_need_defaults; then
12854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12855fi
12856
12857# Have a temporary directory for convenience. Make it in the build tree
12858# simply because there is no reason to put it here, and in addition,
12859# creating and moving files from /tmp can sometimes cause problems.
12860# Create a temporary directory, and hook for its removal unless debugging.
12861$debug ||
12862{
12863 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12864 trap '{ (exit 1); exit 1; }' 1 2 13 15
12865}
12866
12867# Create a (secure) tmp directory for tmp files.
12868
12869{
12870 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12871 test -n "$tmp" && test -d "$tmp"
12872} ||
12873{
12874 tmp=./confstat$$-$RANDOM
12875 (umask 077 && mkdir $tmp)
12876} ||
12877{
12878 echo "$me: cannot create a temporary directory in ." >&2
12879 { (exit 1); exit 1; }
12880}
12881
12882_ACEOF
12883
12884cat >>$CONFIG_STATUS <<_ACEOF
12885
12886#
12887# CONFIG_FILES section.
12888#
12889
12890# No need to generate the scripts if there are no CONFIG_FILES.
12891# This happens for instance when ./config.status config.h
12892if test -n "\$CONFIG_FILES"; then
12893 # Protect against being on the right side of a sed subst in config.status.
12894 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12895 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12896s,@SHELL@,$SHELL,;t t
12897s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12898s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12899s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12900s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12901s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12902s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12903s,@exec_prefix@,$exec_prefix,;t t
12904s,@prefix@,$prefix,;t t
12905s,@program_transform_name@,$program_transform_name,;t t
12906s,@bindir@,$bindir,;t t
12907s,@sbindir@,$sbindir,;t t
12908s,@libexecdir@,$libexecdir,;t t
12909s,@datadir@,$datadir,;t t
12910s,@sysconfdir@,$sysconfdir,;t t
12911s,@sharedstatedir@,$sharedstatedir,;t t
12912s,@localstatedir@,$localstatedir,;t t
12913s,@libdir@,$libdir,;t t
12914s,@includedir@,$includedir,;t t
12915s,@oldincludedir@,$oldincludedir,;t t
12916s,@infodir@,$infodir,;t t
12917s,@mandir@,$mandir,;t t
12918s,@build_alias@,$build_alias,;t t
12919s,@host_alias@,$host_alias,;t t
12920s,@target_alias@,$target_alias,;t t
12921s,@DEFS@,$DEFS,;t t
12922s,@ECHO_C@,$ECHO_C,;t t
12923s,@ECHO_N@,$ECHO_N,;t t
12924s,@ECHO_T@,$ECHO_T,;t t
12925s,@LIBS@,$LIBS,;t t
5b553f7e 12926s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
c6b750e1
DJ
12927s,@build@,$build,;t t
12928s,@build_cpu@,$build_cpu,;t t
12929s,@build_vendor@,$build_vendor,;t t
12930s,@build_os@,$build_os,;t t
12931s,@build_noncanonical@,$build_noncanonical,;t t
12932s,@host_noncanonical@,$host_noncanonical,;t t
12933s,@target_noncanonical@,$target_noncanonical,;t t
12934s,@host@,$host,;t t
12935s,@host_cpu@,$host_cpu,;t t
12936s,@host_vendor@,$host_vendor,;t t
12937s,@host_os@,$host_os,;t t
12938s,@target@,$target,;t t
12939s,@target_cpu@,$target_cpu,;t t
12940s,@target_vendor@,$target_vendor,;t t
12941s,@target_os@,$target_os,;t t
12942s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12943s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12944s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12945s,@LN@,$LN,;t t
12946s,@LN_S@,$LN_S,;t t
c6b750e1
DJ
12947s,@build_libsubdir@,$build_libsubdir,;t t
12948s,@build_subdir@,$build_subdir,;t t
12949s,@host_subdir@,$host_subdir,;t t
12950s,@target_subdir@,$target_subdir,;t t
12951s,@CC@,$CC,;t t
12952s,@CFLAGS@,$CFLAGS,;t t
12953s,@LDFLAGS@,$LDFLAGS,;t t
12954s,@CPPFLAGS@,$CPPFLAGS,;t t
12955s,@ac_ct_CC@,$ac_ct_CC,;t t
12956s,@EXEEXT@,$EXEEXT,;t t
12957s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12958s,@CXX@,$CXX,;t t
12959s,@CXXFLAGS@,$CXXFLAGS,;t t
12960s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12961s,@GNATBIND@,$GNATBIND,;t t
12962s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12963s,@GNATMAKE@,$GNATMAKE,;t t
12964s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12965s,@do_compare@,$do_compare,;t t
12966s,@gmplibs@,$gmplibs,;t t
12967s,@gmpinc@,$gmpinc,;t t
12968s,@stage1_languages@,$stage1_languages,;t t
12969s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12970s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
7f6ef0c0
PB
12971s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12972s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12973s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12974s,@tooldir@,$tooldir,;t t
12975s,@build_tooldir@,$build_tooldir,;t t
12976s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12977s,@GDB_TK@,$GDB_TK,;t t
12978s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12979s,@build_configargs@,$build_configargs,;t t
12980s,@build_configdirs@,$build_configdirs,;t t
12981s,@host_configargs@,$host_configargs,;t t
12982s,@configdirs@,$configdirs,;t t
12983s,@target_configargs@,$target_configargs,;t t
1576798e
PB
12984s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12985s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
c6b750e1 12986s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
1576798e
PB
12987s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12988s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12989s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12990s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12991s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12992s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12993s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12994s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12995s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12996s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12997s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12998s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
c6b750e1
DJ
12999s,@config_shell@,$config_shell,;t t
13000s,@YACC@,$YACC,;t t
13001s,@BISON@,$BISON,;t t
13002s,@M4@,$M4,;t t
13003s,@LEX@,$LEX,;t t
13004s,@FLEX@,$FLEX,;t t
13005s,@MAKEINFO@,$MAKEINFO,;t t
13006s,@EXPECT@,$EXPECT,;t t
13007s,@RUNTEST@,$RUNTEST,;t t
13008s,@AR@,$AR,;t t
13009s,@AS@,$AS,;t t
13010s,@DLLTOOL@,$DLLTOOL,;t t
13011s,@LD@,$LD,;t t
13012s,@LIPO@,$LIPO,;t t
13013s,@NM@,$NM,;t t
13014s,@RANLIB@,$RANLIB,;t t
13015s,@STRIP@,$STRIP,;t t
13016s,@WINDRES@,$WINDRES,;t t
0c24b341 13017s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
13018s,@OBJCOPY@,$OBJCOPY,;t t
13019s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1
DJ
13020s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13021s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13022s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13023s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13024s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13025s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13026s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13027s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13028s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13029s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13030s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13031s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13032s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13033s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13034s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 13035s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
13036s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13037s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13038s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13039s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13040s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13041s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13042s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13043s,@MAINT@,$MAINT,;t t
13044s,@stage1_cflags@,$stage1_cflags,;t t
13045s,@stage1_checking@,$stage1_checking,;t t
13046s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13047s,@datarootdir@,$datarootdir,;t t
13048s,@docdir@,$docdir,;t t
a3ca38d2 13049s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
13050s,@htmldir@,$htmldir,;t t
13051s,@LIBOBJS@,$LIBOBJS,;t t
13052s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 13053/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 13054s,@serialization_dependencies@,,;t t
a0da8069 13055/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 13056s,@host_makefile_frag@,,;t t
a0da8069 13057/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 13058s,@target_makefile_frag@,,;t t
a0da8069 13059/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 13060s,@alphaieee_frag@,,;t t
a0da8069 13061/@ospace_frag@/r $ospace_frag
c6b750e1 13062s,@ospace_frag@,,;t t
a0da8069 13063CEOF
252b5132 13064
c6b750e1
DJ
13065_ACEOF
13066
13067 cat >>$CONFIG_STATUS <<\_ACEOF
13068 # Split the substitutions into bite-sized pieces for seds with
13069 # small command number limits, like on Digital OSF/1 and HP-UX.
13070 ac_max_sed_lines=48
13071 ac_sed_frag=1 # Number of current file.
13072 ac_beg=1 # First line for current file.
13073 ac_end=$ac_max_sed_lines # Line after last line for current file.
13074 ac_more_lines=:
13075 ac_sed_cmds=
13076 while $ac_more_lines; do
13077 if test $ac_beg -gt 1; then
13078 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13079 else
13080 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13081 fi
13082 if test ! -s $tmp/subs.frag; then
13083 ac_more_lines=false
a0da8069 13084 else
c6b750e1
DJ
13085 # The purpose of the label and of the branching condition is to
13086 # speed up the sed processing (if there are no `@' at all, there
13087 # is no need to browse any of the substitutions).
13088 # These are the two extra sed commands mentioned above.
13089 (echo ':t
13090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13091 if test -z "$ac_sed_cmds"; then
13092 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13093 else
13094 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13095 fi
13096 ac_sed_frag=`expr $ac_sed_frag + 1`
13097 ac_beg=$ac_end
13098 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 13099 fi
c6b750e1
DJ
13100 done
13101 if test -z "$ac_sed_cmds"; then
13102 ac_sed_cmds=cat
852e5f18 13103 fi
c6b750e1 13104fi # test -n "$CONFIG_FILES"
cac3d6c4 13105
c6b750e1
DJ
13106_ACEOF
13107cat >>$CONFIG_STATUS <<\_ACEOF
13108for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 13109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
13110 case $ac_file in
13111 - | *:- | *:-:* ) # input from stdin
13112 cat >$tmp/stdin
13113 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13114 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13115 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13116 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13117 * ) ac_file_in=$ac_file.in ;;
a0da8069 13118 esac
252b5132 13119
c6b750e1
DJ
13120 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13121 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13122$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13123 X"$ac_file" : 'X\(//\)[^/]' \| \
13124 X"$ac_file" : 'X\(//\)$' \| \
13125 X"$ac_file" : 'X\(/\)' \| \
13126 . : '\(.\)' 2>/dev/null ||
13127echo X"$ac_file" |
13128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13130 /^X\(\/\/\)$/{ s//\1/; q; }
13131 /^X\(\/\).*/{ s//\1/; q; }
13132 s/.*/./; q'`
13133 { if $as_mkdir_p; then
13134 mkdir -p "$ac_dir"
cac3d6c4 13135 else
c6b750e1
DJ
13136 as_dir="$ac_dir"
13137 as_dirs=
13138 while test ! -d "$as_dir"; do
13139 as_dirs="$as_dir $as_dirs"
13140 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13141$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13142 X"$as_dir" : 'X\(//\)[^/]' \| \
13143 X"$as_dir" : 'X\(//\)$' \| \
13144 X"$as_dir" : 'X\(/\)' \| \
13145 . : '\(.\)' 2>/dev/null ||
13146echo X"$as_dir" |
13147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13149 /^X\(\/\/\)$/{ s//\1/; q; }
13150 /^X\(\/\).*/{ s//\1/; q; }
13151 s/.*/./; q'`
13152 done
13153 test ! -n "$as_dirs" || mkdir $as_dirs
13154 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13155echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13156 { (exit 1); exit 1; }; }; }
13157
13158 ac_builddir=.
252b5132 13159
c6b750e1
DJ
13160if test "$ac_dir" != .; then
13161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13162 # A "../" for each directory in $ac_dir_suffix.
13163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13164else
13165 ac_dir_suffix= ac_top_builddir=
13166fi
13167
13168case $srcdir in
13169 .) # No --srcdir option. We are building in place.
13170 ac_srcdir=.
13171 if test -z "$ac_top_builddir"; then
13172 ac_top_srcdir=.
13173 else
13174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13175 fi ;;
13176 [\\/]* | ?:[\\/]* ) # Absolute path.
13177 ac_srcdir=$srcdir$ac_dir_suffix;
13178 ac_top_srcdir=$srcdir ;;
a0da8069 13179 *) # Relative path.
c6b750e1
DJ
13180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13182esac
252b5132 13183
c6b750e1
DJ
13184# Do not use `cd foo && pwd` to compute absolute paths, because
13185# the directories may not exist.
13186case `pwd` in
13187.) ac_abs_builddir="$ac_dir";;
13188*)
13189 case "$ac_dir" in
13190 .) ac_abs_builddir=`pwd`;;
13191 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13192 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13193 esac;;
13194esac
13195case $ac_abs_builddir in
13196.) ac_abs_top_builddir=${ac_top_builddir}.;;
13197*)
13198 case ${ac_top_builddir}. in
13199 .) ac_abs_top_builddir=$ac_abs_builddir;;
13200 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13201 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13202 esac;;
13203esac
13204case $ac_abs_builddir in
13205.) ac_abs_srcdir=$ac_srcdir;;
13206*)
13207 case $ac_srcdir in
13208 .) ac_abs_srcdir=$ac_abs_builddir;;
13209 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13210 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13211 esac;;
13212esac
13213case $ac_abs_builddir in
13214.) ac_abs_top_srcdir=$ac_top_srcdir;;
13215*)
13216 case $ac_top_srcdir in
13217 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13218 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13219 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13220 esac;;
13221esac
252b5132 13222
c6b750e1
DJ
13223
13224 case $INSTALL in
13225 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13226 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 13227 esac
252b5132 13228
c6b750e1
DJ
13229 if test x"$ac_file" != x-; then
13230 { echo "$as_me:$LINENO: creating $ac_file" >&5
13231echo "$as_me: creating $ac_file" >&6;}
13232 rm -f "$ac_file"
13233 fi
13234 # Let's still pretend it is `configure' which instantiates (i.e., don't
13235 # use $as_me), people would be surprised to read:
13236 # /* config.h. Generated by config.status. */
13237 if test x"$ac_file" = x-; then
13238 configure_input=
13239 else
13240 configure_input="$ac_file. "
13241 fi
13242 configure_input=$configure_input"Generated from `echo $ac_file_in |
13243 sed 's,.*/,,'` by configure."
13244
13245 # First look for the input files in the build tree, otherwise in the
13246 # src tree.
13247 ac_file_inputs=`IFS=:
13248 for f in $ac_file_in; do
13249 case $f in
13250 -) echo $tmp/stdin ;;
13251 [\\/$]*)
13252 # Absolute (can't be DOS-style, as IFS=:)
13253 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13254echo "$as_me: error: cannot find input file: $f" >&2;}
13255 { (exit 1); exit 1; }; }
13256 echo "$f";;
13257 *) # Relative
13258 if test -f "$f"; then
13259 # Build tree
13260 echo "$f"
13261 elif test -f "$srcdir/$f"; then
13262 # Source tree
13263 echo "$srcdir/$f"
13264 else
13265 # /dev/null tree
13266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13267echo "$as_me: error: cannot find input file: $f" >&2;}
13268 { (exit 1); exit 1; }; }
13269 fi;;
13270 esac
13271 done` || { (exit 1); exit 1; }
13272_ACEOF
13273cat >>$CONFIG_STATUS <<_ACEOF
13274 sed "$ac_vpsub
13275$extrasub
13276_ACEOF
13277cat >>$CONFIG_STATUS <<\_ACEOF
13278:t
13279/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13280s,@configure_input@,$configure_input,;t t
13281s,@srcdir@,$ac_srcdir,;t t
13282s,@abs_srcdir@,$ac_abs_srcdir,;t t
13283s,@top_srcdir@,$ac_top_srcdir,;t t
13284s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13285s,@builddir@,$ac_builddir,;t t
13286s,@abs_builddir@,$ac_abs_builddir,;t t
13287s,@top_builddir@,$ac_top_builddir,;t t
13288s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13289s,@INSTALL@,$ac_INSTALL,;t t
13290" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13291 rm -f $tmp/stdin
13292 if test x"$ac_file" != x-; then
13293 mv $tmp/out $ac_file
13294 else
13295 cat $tmp/out
13296 rm -f $tmp/out
13297 fi
c148b4cb 13298
c6b750e1
DJ
13299done
13300_ACEOF
c148b4cb 13301
c6b750e1 13302cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13303
c6b750e1
DJ
13304{ (exit 0); exit 0; }
13305_ACEOF
c148b4cb 13306chmod +x $CONFIG_STATUS
c6b750e1
DJ
13307ac_clean_files=$ac_clean_files_save
13308
13309
13310# configure is writing to config.log, and then calls config.status.
13311# config.status does its own redirection, appending to config.log.
13312# Unfortunately, on DOS this fails, as config.log is still kept open
13313# by configure, so config.status won't be able to write to it; its
13314# output is simply discarded. So we exec the FD to /dev/null,
13315# effectively closing config.log, so it can be properly (re)opened and
13316# appended to by config.status. When coming back to configure, we
13317# need to make the FD available again.
13318if test "$no_create" != yes; then
13319 ac_cs_success=:
13320 ac_config_status_args=
13321 test "$silent" = yes &&
13322 ac_config_status_args="$ac_config_status_args --quiet"
13323 exec 5>/dev/null
13324 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13325 exec 5>>config.log
13326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13327 # would make configure fail if this is the last instruction.
13328 $ac_cs_success || { (exit 1); exit 1; }
13329fi
c148b4cb 13330
This page took 1.154928 seconds and 4 git commands to generate.