new file
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
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
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
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"
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 CPPFLAGS_FOR_TARGET LDFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CPPFLAGS_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'
276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277ac_pwd=`pwd`
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
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.
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'
316
317ac_prev=
318for ac_option
319do
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
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
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=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
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" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
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"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
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 ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
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=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
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=*)
428 libexecdir=$ac_optarg ;;
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=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
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 \
449 | --no-cr | --no-c | -n)
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=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
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=*)
475 program_prefix=$ac_optarg ;;
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=*)
482 program_suffix=$ac_optarg ;;
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=*)
499 program_transform_name=$ac_optarg ;;
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=*)
509 sbindir=$ac_optarg ;;
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=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
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=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
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; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
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" ;;
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=*)
581 x_includes=$ac_optarg ;;
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=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
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
605 *)
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}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
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; }; }
620fi
621
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
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
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
651
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
667
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.
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'`
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
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
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
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
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
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
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
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
935 --enable-gold use gold instead of ld
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-stage1-languages[=all] choose additional languages to build during
939 stage1. Mostly useful for compiler development.
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
945 sub-packages for the host, target or build
946 machine, or all sub-packages
947 --enable-maintainer-mode enable make rules and dependencies not useful
948 (and sometimes confusing) to the casual installer
949 --enable-stage1-checking[=all] choose additional checking for stage1
950 of the compiler
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
957 --with-mpfr-dir=PATH this option has been REMOVED
958 --with-mpfr=PATH specify prefix directory for installed MPFR package.
959 Equivalent to --with-mpfr-include=PATH/include
960 plus --with-mpfr-lib=PATH/lib
961 --with-mpfr-include=PATH
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.
966 Equivalent to --with-gmp-include=PATH/include
967 plus --with-gmp-lib=PATH/lib
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
971 use sysroot as the system root during the build
972 --with-debug-prefix-map='A=B C=D ...'
973 map A to B, C to D ... in debug information
974 --with-build-time-tools=PATH
975 use given path to find target tools during the build
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.
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>
988 CXX C++ compiler command
989 CXXFLAGS C++ compiler flags
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
999 WINDMC WINDMC for the host
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
1032 WINDMC_FOR_TARGET
1033 WINDMC for the target
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.
1364# Prefer explicitly selected file to automatically selected ones.
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"
1370 fi
1371fi
1372for ac_site_file in $CONFIG_SITE; do
1373 if test -r "$ac_site_file"; then
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
1377 . "$ac_site_file"
1378 fi
1379done
1380
1381if test -r "$cache_file"; then
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
1392else
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
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
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
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;}
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
1451 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1452echo "$as_me: error: in \`$ac_pwd':" >&2;}
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; }; }
1458fi
1459
1460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
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
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
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
1516
1517# Find the build, host, and target systems.
1518ac_aux_dir=
1519for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
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
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
1532 fi
1533done
1534if test -z "$ac_aux_dir"; then
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; }; }
1538fi
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.
1542
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/'`
1573
1574
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
1578esac
1579
1580
1581
1582 case ${host_alias} in
1583 "") host_noncanonical=${build_noncanonical} ;;
1584 *) host_noncanonical=${host_alias} ;;
1585esac
1586
1587
1588
1589 case ${target_alias} in
1590 "") target_noncanonical=${host_noncanonical} ;;
1591 *) target_noncanonical=${target_alias} ;;
1592esac
1593
1594
1595
1596
1597test "$host_noncanonical" = "$target_noncanonical" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_transform_name=s,y,y,
1601
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
1606else
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
1637fi
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}-
1652test "$program_prefix" != NONE &&
1653 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1654# Use a double $ so make ignores it.
1655test "$program_suffix" != NONE &&
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
1664
1665
1666
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
1675# AmigaOS /C/install, which installs bootblocks on floppy discs
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"
1679# OS/2's system install, which has a completely different semantic
1680# ./install, which can be erroneously created by make from ./install.sh.
1681# Reject install programs that cannot install multiple files.
1682echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1683echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1684if test -z "$INSTALL"; then
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
1706 if test $ac_prog = install &&
1707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1708 # AIX install. It has an incompatible calling convention.
1709 :
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 :
1714 else
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
1727 fi
1728 fi
1729 done
1730 done
1731 ;;
1732esac
1733done
1734
1735rm -rf conftest.one conftest.two conftest.dir
1736
1737fi
1738 if test "${ac_cv_path_install+set}" = set; then
1739 INSTALL=$ac_cv_path_install
1740 else
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
1743 # break other packages using the cache if that directory is
1744 # removed, or if the value is a relative name.
1745 INSTALL=$ac_install_sh
1746 fi
1747fi
1748echo "$as_me:$LINENO: result: $INSTALL" >&5
1749echo "${ECHO_T}$INSTALL" >&6
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
1755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1756
1757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
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
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"
1777 echo "$as_me:$LINENO: result: no, using $LN" >&5
1778echo "${ECHO_T}no, using $LN" >&6
1779else
1780 LN="$acx_cv_prog_LN"
1781 echo "$as_me:$LINENO: result: yes" >&5
1782echo "${ECHO_T}yes" >&6
1783fi
1784
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
1791else
1792 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1793echo "${ECHO_T}no, using $LN_S" >&6
1794fi
1795
1796
1797### we might need to use some other shell than /bin/sh for running subshells
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*)
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
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
1831moveifchange=${srcdir}/move-if-change
1832
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
1841# Set srcdir to "." if that's what it is.
1842# This is important for multilib support.
1843pwd=`${PWDCMD-pwd}`
1844if test "${pwd}" = "${srcpwd}" ; then
1845 srcdir=.
1846fi
1847
1848topsrcdir=$srcpwd
1849
1850extra_host_args=
1851
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.
1855
1856# Subdirs will be configured in the order listed in build_configdirs,
1857# configdirs, or target_configdirs; see the serialization section below.
1858
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
1861# the Makefile, whether or not it's implicitly specified here.
1862
1863# Double entries in build_configdirs, configdirs, or target_configdirs may
1864# cause circular dependencies and break everything horribly.
1865
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
1872build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1873
1874# these libraries are used by various programs built for the host environment
1875#
1876host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1877
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.
1883# If --enable-gold is used, "gold" will replace "ld".
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"
1885
1886# libgcj represents the runtime libraries only used by gcj.
1887libgcj="target-libffi \
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#
1895target_libraries="target-libgcc \
1896 target-libiberty \
1897 target-libgloss \
1898 target-newlib \
1899 target-libgomp \
1900 target-libstdc++-v3 \
1901 target-libmudflap \
1902 target-libssp \
1903 target-libgfortran \
1904 target-boehm-gc \
1905 ${libgcj} \
1906 target-libobjc \
1907 target-libada"
1908
1909# these tools are built using the target libraries, and are intended to
1910# run only in the target environment
1911#
1912# note: any program that *uses* libraries that are in the "target_libraries"
1913# list belongs in this list. those programs are also very likely
1914# candidates for the "native_only" list which follows
1915#
1916target_tools="target-examples target-groff target-gperf target-rda"
1917
1918################################################################################
1919
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.
1925configdirs=`echo ${host_libs} ${host_tools}`
1926target_configdirs=`echo ${target_libraries} ${target_tools}`
1927build_configdirs=`echo ${build_libs} ${build_tools}`
1928
1929
1930
1931################################################################################
1932
1933srcname="gnu development package"
1934
1935# This gets set non-empty for some net releases of packages.
1936appdirs=""
1937
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
1942else
1943 is_cross_compiler=yes
1944fi
1945
1946# Find the build and target subdir names.
1947
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.
1958build_subdir="build-${build_noncanonical}"
1959
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"
1966fi;
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
1974# No prefix.
1975target_subdir=${target_noncanonical}
1976
1977
1978# Skipdirs are removed silently.
1979skipdirs=
1980# Noconfigdirs are removed loudly.
1981noconfigdirs=""
1982
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
1987 noconfigdirs="$noconfigdirs ld gold"
1988fi
1989
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"
1995fi
1996
1997# some tools are so dependent upon X11 that if we're not building with X,
1998# it's not even worth trying to configure, much less build, that tool.
1999
2000case ${with_x} in
2001 yes | "") ;; # the default value for this tree is that X11 is available
2002 no)
2003 skipdirs="${skipdirs} tk itcl libgui"
2004 # We won't be able to build gdbtk without X.
2005 enable_gdbtk=no
2006 ;;
2007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2008esac
2009
2010# Some tools are only suitable for building in a "native" situation.
2011# Remove these if host!=target.
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"
2013
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
2022
2023# If both --with-headers and --with-libs are specified, default to
2024# --without-newlib.
2025if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2027 if test x"${with_newlib}" = x ; then
2028 with_newlib=no
2029 fi
2030fi
2031
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
2037
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
2066 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
2067 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2068 ;;
2069 esac
2070 fi
2071fi
2072
2073# Configure extra directories which are host specific
2074
2075case "${host}" in
2076 *-cygwin*)
2077 configdirs="$configdirs libtermcap" ;;
2078esac
2079
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
2084# Remove more programs from consideration, based on the host or
2085# target this usually means that a port of the program doesn't
2086# exist yet.
2087
2088case "${host}" in
2089 hppa*64*-*-*)
2090 noconfigdirs="$noconfigdirs byacc"
2091 ;;
2092 i[3456789]86-*-vsta)
2093 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2094 ;;
2095 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2096 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2097 ;;
2098 x86_64-*-mingw*)
2099 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2100 ;;
2101 i[3456789]86-*-mingw32*)
2102 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2103 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2104 ;;
2105 i[3456789]86-*-beos*)
2106 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2107 ;;
2108 *-*-cygwin*)
2109 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2110 ;;
2111 *-*-netbsd*)
2112 noconfigdirs="$noconfigdirs rcs"
2113 ;;
2114 ppc*-*-pe)
2115 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2116 ;;
2117 powerpc-*-beos*)
2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2119 ;;
2120esac
2121
2122
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
2129fi;
2130if test "${ENABLE_LIBADA}" != "yes" ; then
2131 noconfigdirs="$noconfigdirs gnattools"
2132fi
2133
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
2140fi;
2141
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
2157
2158
2159# Disable libmudflap on some systems.
2160if test x$enable_libmudflap = x ; then
2161 case "${target}" in
2162 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2163 # Enable libmudflap by default in GNU and friends.
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
2173fi
2174
2175# Disable libgomp on non POSIX hosted systems.
2176if test x$enable_libgomp = x ; then
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 ;;
2183 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2184 ;;
2185 *-*-darwin* | *-*-aix*)
2186 ;;
2187 *)
2188 noconfigdirs="$noconfigdirs target-libgomp"
2189 ;;
2190 esac
2191fi
2192
2193# Default libgloss CPU subdirectory.
2194libgloss_dir="$target_cpu"
2195
2196case "${target}" in
2197 *-*-chorusos)
2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2199 ;;
2200 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
2201 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2202 noconfigdirs="$noconfigdirs sim target-rda"
2203 ;;
2204 *-*-darwin*)
2205 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2206 noconfigdirs="$noconfigdirs sim target-rda"
2207 noconfigdirs="$noconfigdirs ${libgcj}"
2208 ;;
2209 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2211 ;;
2212 *-*-freebsd*)
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 *)
2224 noconfigdirs="$noconfigdirs ${libgcj}"
2225 ;;
2226 esac
2227 ;;
2228 *-*-kaos*)
2229 # Remove unsupported stuff on all kaOS configurations.
2230 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
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 ;;
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*) ;;
2242 arm*-*-netbsdelf*) ;;
2243 *)
2244 noconfigdirs="$noconfigdirs ${libgcj}"
2245 ;;
2246 esac
2247 ;;
2248 *-*-netware*)
2249 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2250 ;;
2251 *-*-rtems*)
2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2253 ;;
2254 # The tpf target doesn't support gdb yet.
2255 *-*-tpf*)
2256 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2257 ;;
2258 *-*-uclinux*)
2259 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2260 ;;
2261 *-*-vxworks*)
2262 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
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*)
2271 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2272 ;;
2273 alpha*-*-linux*)
2274 # newlib is not 64 bit ready
2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2276 ;;
2277 alpha*-*-*)
2278 # newlib is not 64 bit ready
2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2280 ;;
2281 am33_2.0-*-linux*)
2282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2283 ;;
2284 sh-*-linux*)
2285 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2286 ;;
2287 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2288 noconfigdirs="$noconfigdirs ${libgcj}"
2289 noconfigdirs="$noconfigdirs target-examples"
2290 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2291 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2292 noconfigdirs="$noconfigdirs expect dejagnu"
2293 # the C++ libraries don't build on top of CE's C libraries
2294 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2295 noconfigdirs="$noconfigdirs target-newlib"
2296 case "${host}" in
2297 *-*-cygwin*) ;; # keep gdb and readline
2298 *) noconfigdirs="$noconfigdirs gdb readline"
2299 ;;
2300 esac
2301 libgloss_dir=wince
2302 ;;
2303 arc-*-*)
2304 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2305 ;;
2306 arm-semi-aof )
2307 ;;
2308 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2309 noconfigdirs="$noconfigdirs ${libgcj}"
2310 libgloss_dir=arm
2311 ;;
2312 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2313 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2314 libgloss_dir=arm
2315 ;;
2316 arm*-*-linux-gnueabi)
2317 noconfigdirs="$noconfigdirs target-qthreads"
2318 case ${with_newlib} in
2319 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2320 esac
2321 libgloss_dir=arm
2322 ;;
2323 arm*-*-symbianelf*)
2324 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2325 libgloss_dir=arm
2326 ;;
2327 arm-*-pe*)
2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2329 ;;
2330 thumb-*-coff)
2331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2332 ;;
2333 thumb-*-elf)
2334 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2335 ;;
2336 thumb-*-pe)
2337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2338 ;;
2339 arm-*-riscix*)
2340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2341 ;;
2342 avr-*-*)
2343 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2344 ;;
2345 bfin-*-*)
2346 noconfigdirs="$noconfigdirs gdb"
2347 if test x${is_cross_compiler} != xno ; then
2348 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2349 fi
2350 ;;
2351 c4x-*-* | tic4x-*-*)
2352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2353 ;;
2354 c54x*-*-* | tic54x-*-*)
2355 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2356 ;;
2357 cr16-*-*)
2358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2359 ;;
2360 cris-*-* | crisv32-*-*)
2361 unsupported_languages="$unsupported_languages java"
2362 case "${target}" in
2363 *-*-aout)
2364 unsupported_languages="$unsupported_languages fortran"
2365 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2366 *-*-elf)
2367 noconfigdirs="$noconfigdirs target-boehm-gc";;
2368 *-*-linux*)
2369 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2370 *)
2371 unsupported_languages="$unsupported_languages fortran"
2372 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2373 esac
2374 libgloss_dir=cris
2375 ;;
2376 crx-*-*)
2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2378 ;;
2379 d10v-*-*)
2380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2381 ;;
2382 d30v-*-*)
2383 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2384 ;;
2385 ep9312-*-elf | ep9312-*-coff)
2386 libgloss_dir=arm
2387 ;;
2388 fr30-*-elf*)
2389 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2390 ;;
2391 frv-*-*)
2392 noconfigdirs="$noconfigdirs ${libgcj}"
2393 ;;
2394 h8300*-*-*)
2395 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2396 ;;
2397 h8500-*-*)
2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2399 ;;
2400 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2401 ;;
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 ;;
2408 parisc*-*-linux* | hppa*-*-linux*)
2409 ;;
2410 hppa*-*-*elf* | \
2411 hppa*-*-lites* | \
2412 hppa*-*-openbsd* | \
2413 hppa*64*-*-*)
2414 noconfigdirs="$noconfigdirs ${libgcj}"
2415 ;;
2416 hppa*-hp-hpux11*)
2417 noconfigdirs="$noconfigdirs ld shellutils"
2418 ;;
2419 hppa*-*-pro*)
2420 libgloss_dir=pa
2421 ;;
2422 hppa*-*-*)
2423 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2424 # build on HP-UX 10.20.
2425 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2426 ;;
2427 i960-*-*)
2428 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2429 ;;
2430 ia64*-*-elf*)
2431 # No gdb support yet.
2432 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2433 ;;
2434 ia64*-**-hpux*)
2435 # No gdb or ld support yet.
2436 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2437 ;;
2438 i370-*-opened*)
2439 ;;
2440 i[3456789]86-*-coff | i[3456789]86-*-elf)
2441 noconfigdirs="$noconfigdirs ${libgcj}"
2442 libgloss_dir=i386
2443 ;;
2444 i[3456789]86-*-linux*)
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*)
2449 noconfigdirs="$noconfigdirs ${libgcj}";;
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
2455 noconfigdirs="$noconfigdirs target-newlib"
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 ;;
2463 i[3456789]86-*-mingw32*)
2464 target_configdirs="$target_configdirs target-winsup"
2465 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2466 ;;
2467 x86_64-*-mingw*)
2468 target_configdirs="$target_configdirs target-winsup"
2469 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2470 ;;
2471 *-*-cygwin*)
2472 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2473 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2474 # always build newlib if winsup directory is present.
2475 if test -d "$srcdir/winsup/cygwin"; then
2476 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2477 elif test -d "$srcdir/newlib"; then
2478 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2479 fi
2480 ;;
2481 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2482 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2483 ;;
2484 i[3456789]86-*-pe)
2485 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2486 ;;
2487 i[3456789]86-*-sco3.2v5*)
2488 # The linker does not yet know about weak symbols in COFF,
2489 # and is not configured to handle mixed ELF and COFF.
2490 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2491 ;;
2492 i[3456789]86-*-sco*)
2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2494 ;;
2495 i[3456789]86-*-solaris2*)
2496 noconfigdirs="$noconfigdirs target-libgloss"
2497 ;;
2498 i[3456789]86-*-sysv4*)
2499 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2500 ;;
2501 i[3456789]86-*-beos*)
2502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2503 ;;
2504 i[3456789]86-*-rdos*)
2505 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2506 ;;
2507 m32r-*-*)
2508 noconfigdirs="$noconfigdirs ${libgcj}"
2509 ;;
2510 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2511 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2512 libgloss_dir=m68hc11
2513 ;;
2514 m68k-*-elf*)
2515 noconfigdirs="$noconfigdirs ${libgcj}"
2516 ;;
2517 m68k-*-coff*)
2518 noconfigdirs="$noconfigdirs ${libgcj}"
2519 ;;
2520 m68*-*-* | fido-*-*)
2521 libgloss_dir=m68k
2522 ;;
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-*-*)
2529 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2530 unsupported_languages="$unsupported_languages fortran java"
2531 ;;
2532 mn10200-*-*)
2533 noconfigdirs="$noconfigdirs ${libgcj}"
2534 ;;
2535 mn10300-*-*)
2536 noconfigdirs="$noconfigdirs ${libgcj}"
2537 ;;
2538 mt-*-*)
2539 noconfigdirs="$noconfigdirs sim"
2540 ;;
2541 powerpc-*-aix*)
2542 # copied from rs6000-*-* entry
2543 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2544 ;;
2545 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2546 target_configdirs="$target_configdirs target-winsup"
2547 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
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*)
2553 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2554 libgloss_dir=rs6000
2555 ;;
2556 powerpc-*-beos*)
2557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2558 ;;
2559 powerpc-*-eabi)
2560 noconfigdirs="$noconfigdirs ${libgcj}"
2561 libgloss_dir=rs6000
2562 ;;
2563 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2564 libgloss_dir=rs6000
2565 ;;
2566 rs6000-*-lynxos*)
2567 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2568 ;;
2569 rs6000-*-aix*)
2570 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2571 ;;
2572 rs6000-*-*)
2573 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2574 ;;
2575 m68k-apollo-*)
2576 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2577 ;;
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 ;;
2586 mips*-*-irix5*)
2587 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2588 ;;
2589 mips*-*-irix6*)
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>
2594 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2595 ;;
2596 mips*-*-bsd*)
2597 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2598 ;;
2599 mips*-*-linux*)
2600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2601 ;;
2602 mips*-*-*)
2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2604 libgloss_dir=mips
2605 ;;
2606 romp-*-*)
2607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2608 ;;
2609 sh-*-* | sh64-*-*)
2610 case "${host}" in
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
2614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2615 esac
2616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2617 ;;
2618 sparclet-*-aout* | sparc86x-*-*)
2619 libgloss_dir=sparc
2620 ;;
2621 sparc-*-elf*)
2622 noconfigdirs="$noconfigdirs ${libgcj}"
2623 ;;
2624 sparc64-*-elf*)
2625 noconfigdirs="$noconfigdirs ${libgcj}"
2626 libgloss_dir=sparc
2627 ;;
2628 sparclite-*-*)
2629 noconfigdirs="$noconfigdirs ${libgcj}"
2630 libgloss_dir=sparc
2631 ;;
2632 sparc-*-sunos4*)
2633 noconfigdirs="$noconfigdirs ${libgcj}"
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 ;;
2640 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2641 noconfigdirs="$noconfigdirs ${libgcj}"
2642 ;;
2643 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2644 ;;
2645 spu-*-*)
2646 ;;
2647 v810-*-*)
2648 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2649 ;;
2650 v850-*-*)
2651 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2652 ;;
2653 v850e-*-*)
2654 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2655 ;;
2656 v850ea-*-*)
2657 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2658 ;;
2659 vax-*-vms)
2660 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2661 ;;
2662 vax-*-*)
2663 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2664 ;;
2665 xtensa*-*-*)
2666 noconfigdirs="$noconfigdirs ${libgcj}"
2667 ;;
2668 ip2k-*-*)
2669 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2670 ;;
2671 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2673 ;;
2674 *-*-lynxos*)
2675 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2676 ;;
2677 *-*-*)
2678 noconfigdirs="$noconfigdirs ${libgcj}"
2679 ;;
2680esac
2681
2682# If we aren't building newlib, then don't build libgloss, since libgloss
2683# depends upon some newlib header files.
2684case "${noconfigdirs}" in
2685 *target-libgloss*) ;;
2686 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2687esac
2688
2689# Work in distributions that contain no compiler tools, like Autoconf.
2690tentative_cc=""
2691host_makefile_frag=/dev/null
2692if test -d ${srcdir}/config ; then
2693case "${host}" in
2694 m68k-hp-hpux*)
2695 # Avoid "too much defining" errors from HPUX compiler.
2696 tentative_cc="cc -Wp,-H256000"
2697 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2698 # If it's HP/UX ar, this should be harmless.
2699 RANLIB="ar ts"
2700 ;;
2701 m68k-apollo-sysv*)
2702 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2703 ;;
2704 m68k-apollo-bsd*)
2705 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2706 # chokes on bfd, the compiler won't let you assign integers to enums, and
2707 # other problems. Defining CC to gcc is a questionable way to say "don't use
2708 # the apollo compiler" (the preferred version of GCC could be called cc,
2709 # or whatever), but I'm not sure leaving CC as cc is any better...
2710 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2711 # Used to have BISON=yacc.
2712 tentative_cc=gcc
2713 ;;
2714 m88k-dg-dgux*)
2715 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2716 ;;
2717 m88k-harris-cxux*)
2718 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2719 tentative_cc="cc -Xa"
2720 host_makefile_frag="config/mh-cxux"
2721 ;;
2722 m88k-motorola-sysv*)
2723 ;;
2724 mips*-dec-ultrix*)
2725 tentative_cc="cc -Wf,-XNg1000"
2726 host_makefile_frag="config/mh-decstation"
2727 ;;
2728 mips*-nec-sysv4*)
2729 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2730 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2731 host_makefile_frag="config/mh-necv4"
2732 ;;
2733 mips*-sgi-irix4*)
2734 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2735 # environment. Also bump switch table size so that cp-parse will
2736 # compile. Bump string length limit so linker builds.
2737 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2738 ;;
2739 mips*-*-sysv4*)
2740 host_makefile_frag="config/mh-sysv4"
2741 ;;
2742 mips*-*-sysv*)
2743 # This is for a MIPS running RISC/os 4.52C.
2744
2745 # This is needed for GDB, but needs to be in the top-level make because
2746 # if a library is compiled with the bsd headers and gets linked with the
2747 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2748 # a different size).
2749 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2750 # known except to select the sysv environment. Could we use /proc instead?
2751 # These "sysv environments" and "bsd environments" often end up being a pain.
2752 #
2753 # This is not part of CFLAGS because perhaps not all C compilers have this
2754 # option.
2755 tentative_cc="cc -systype sysv"
2756 ;;
2757 i370-ibm-opened*)
2758 tentative_cc="c89"
2759 ;;
2760 i[3456789]86-*-sysv5*)
2761 host_makefile_frag="config/mh-sysv5"
2762 ;;
2763 i[3456789]86-*-dgux*)
2764 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2765 host_makefile_frag="config/mh-dgux386"
2766 ;;
2767 i[3456789]86-ncr-sysv4.3*)
2768 # The MetaWare compiler will generate a copyright message unless you
2769 # turn it off by adding the -Hnocopyr flag.
2770 tentative_cc="cc -Hnocopyr"
2771 ;;
2772 i[3456789]86-ncr-sysv4*)
2773 # for an NCR 3000 (i486/SVR4) system.
2774 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2775 # This compiler not only emits obnoxious copyright messages every time
2776 # you run it, but it chokes and dies on a whole bunch of GNU source
2777 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2778 tentative_cc="/usr/ccs/ATT/cc"
2779 host_makefile_frag="config/mh-ncr3000"
2780 ;;
2781 i[3456789]86-*-sco3.2v5*)
2782 ;;
2783 i[3456789]86-*-sco*)
2784 # The native C compiler botches some simple uses of const. Unfortunately,
2785 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2786 tentative_cc="cc -Dconst="
2787 host_makefile_frag="config/mh-sco"
2788 ;;
2789 i[3456789]86-*-udk*)
2790 host_makefile_frag="config/mh-sysv5"
2791 ;;
2792 i[3456789]86-*-solaris2*)
2793 host_makefile_frag="config/mh-sysv4"
2794 ;;
2795 i[3456789]86-*-msdosdjgpp*)
2796 host_makefile_frag="config/mh-djgpp"
2797 ;;
2798 *-cygwin*)
2799
2800echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2801echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2802echo a >cygwin-cat-check
2803if test `cat cygwin-cat-check` == a ; then
2804 rm cygwin-cat-check
2805 echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807else
2808 rm cygwin-cat-check
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2812 Please either mount the build directory in binary mode or run the following
2813 commands before running any configure script:
2814set -o igncr
2815export SHELLOPTS
2816 " >&5
2817echo "$as_me: error: The cat command does not ignore carriage return characters.
2818 Please either mount the build directory in binary mode or run the following
2819 commands before running any configure script:
2820set -o igncr
2821export SHELLOPTS
2822 " >&2;}
2823 { (exit 1); exit 1; }; }
2824fi
2825
2826 host_makefile_frag="config/mh-cygwin"
2827 ;;
2828 *-mingw*)
2829 host_makefile_frag="config/mh-mingw"
2830 ;;
2831 *-interix*)
2832 host_makefile_frag="config/mh-interix"
2833 ;;
2834 vax-*-ultrix2*)
2835 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2836 tentative_cc=gcc
2837 ;;
2838 *-*-solaris2*)
2839 host_makefile_frag="config/mh-solaris"
2840 ;;
2841 m68k-sun-sunos*)
2842 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2843 # without overflowing the jump tables (-J says to use a 32 bit table)
2844 tentative_cc="cc -J"
2845 ;;
2846 hppa*-hp-hpux10*)
2847 tentative_cc="cc -Wp,-H256000"
2848 host_makefile_frag="config/mh-pa-hpux10"
2849 ;;
2850 hppa*-hp-hpux* | hppa*-*-hiux*)
2851 tentative_cc="cc -Wp,-H256000"
2852 host_makefile_frag="config/mh-pa"
2853 ;;
2854 hppa*-*)
2855 host_makefile_frag="config/mh-pa"
2856 ;;
2857 *-hp-hpux* | *-*-hiux*)
2858 tentative_cc="cc -Wp,-H256000"
2859 ;;
2860 rs6000-*-lynxos*)
2861 # /bin/cc is less than useful for our purposes. Always use GCC
2862 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2863 host_makefile_frag="config/mh-lynxrs6k"
2864 ;;
2865 powerpc-*-darwin*)
2866 host_makefile_frag="config/mh-ppc-darwin"
2867 ;;
2868 powerpc-*-aix*)
2869 host_makefile_frag="config/mh-ppc-aix"
2870 ;;
2871 rs6000-*-aix*)
2872 host_makefile_frag="config/mh-ppc-aix"
2873 ;;
2874 *-*-lynxos*)
2875 # /bin/cc is less than useful for our purposes. Always use GCC
2876 tentative_cc="/bin/gcc"
2877 ;;
2878 *-*-sysv4*)
2879 host_makefile_frag="config/mh-sysv4"
2880 ;;
2881 # This is placed last to prevent interfering with the cases above.
2882 i[3456789]86-*-*)
2883 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2884 host_makefile_frag="config/mh-x86omitfp"
2885 ;;
2886esac
2887fi
2888
2889# If we aren't going to be using gcc, see if we can extract a definition
2890# of CC from the fragment.
2891# Actually, use the 'pre-extracted' version above.
2892if test -z "${CC}" && test "${build}" = "${host}" ; then
2893 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2894 found=
2895 for dir in $PATH; do
2896 test -z "$dir" && dir=.
2897 if test -f $dir/gcc; then
2898 found=yes
2899 break
2900 fi
2901 done
2902 IFS="$save_ifs"
2903 if test -z "${found}" && test -n "${tentative_cc}" ; then
2904 CC=$tentative_cc
2905 fi
2906fi
2907
2908if test "${build}" != "${host}" ; then
2909 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2910 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2911 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2912 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2913 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2914 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2915 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2916 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2917 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2918 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2919 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2920 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2921else
2922 AR_FOR_BUILD="\$(AR)"
2923 AS_FOR_BUILD="\$(AS)"
2924 CC_FOR_BUILD="\$(CC)"
2925 CXX_FOR_BUILD="\$(CXX)"
2926 GCJ_FOR_BUILD="\$(GCJ)"
2927 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2928 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2929 LD_FOR_BUILD="\$(LD)"
2930 NM_FOR_BUILD="\$(NM)"
2931 RANLIB_FOR_BUILD="\$(RANLIB)"
2932 WINDRES_FOR_BUILD="\$(WINDRES)"
2933 WINDMC_FOR_BUILD="\$(WINDMC)"
2934fi
2935
2936ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}gcc; ac_word=$2
2944echo "$as_me:$LINENO: checking for $ac_word" >&5
2945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2946if test "${ac_cv_prog_CC+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963done
2964done
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970 echo "$as_me:$LINENO: result: $CC" >&5
2971echo "${ECHO_T}$CC" >&6
2972else
2973 echo "$as_me:$LINENO: result: no" >&5
2974echo "${ECHO_T}no" >&6
2975fi
2976
2977fi
2978if test -z "$ac_cv_prog_CC"; then
2979 ac_ct_CC=$CC
2980 # Extract the first word of "gcc", so it can be a program name with args.
2981set dummy gcc; ac_word=$2
2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_CC="gcc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001done
3002done
3003
3004fi
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
3008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009echo "${ECHO_T}$ac_ct_CC" >&6
3010else
3011 echo "$as_me:$LINENO: result: no" >&5
3012echo "${ECHO_T}no" >&6
3013fi
3014
3015 CC=$ac_ct_CC
3016else
3017 CC="$ac_cv_prog_CC"
3018fi
3019
3020if test -z "$CC"; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023set dummy ${ac_tool_prefix}cc; ac_word=$2
3024echo "$as_me:$LINENO: checking for $ac_word" >&5
3025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026if test "${ac_cv_prog_CC+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028else
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_CC="${ac_tool_prefix}cc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043done
3044done
3045
3046fi
3047fi
3048CC=$ac_cv_prog_CC
3049if test -n "$CC"; then
3050 echo "$as_me:$LINENO: result: $CC" >&5
3051echo "${ECHO_T}$CC" >&6
3052else
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3055fi
3056
3057fi
3058if test -z "$ac_cv_prog_CC"; then
3059 ac_ct_CC=$CC
3060 # Extract the first word of "cc", so it can be a program name with args.
3061set dummy cc; ac_word=$2
3062echo "$as_me:$LINENO: checking for $ac_word" >&5
3063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_ac_ct_CC="cc"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081done
3082done
3083
3084fi
3085fi
3086ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087if test -n "$ac_ct_CC"; then
3088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3089echo "${ECHO_T}$ac_ct_CC" >&6
3090else
3091 echo "$as_me:$LINENO: result: no" >&5
3092echo "${ECHO_T}no" >&6
3093fi
3094
3095 CC=$ac_ct_CC
3096else
3097 CC="$ac_cv_prog_CC"
3098fi
3099
3100fi
3101if test -z "$CC"; then
3102 # Extract the first word of "cc", so it can be a program name with args.
3103set dummy cc; ac_word=$2
3104echo "$as_me:$LINENO: checking for $ac_word" >&5
3105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106if test "${ac_cv_prog_CC+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111else
3112 ac_prog_rejected=no
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3121 ac_prog_rejected=yes
3122 continue
3123 fi
3124 ac_cv_prog_CC="cc"
3125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128done
3129done
3130
3131if test $ac_prog_rejected = yes; then
3132 # We found a bogon in the path, so make sure we never use it.
3133 set dummy $ac_cv_prog_CC
3134 shift
3135 if test $# != 0; then
3136 # We chose a different compiler from the bogus one.
3137 # However, it has the same basename, so the bogon will be chosen
3138 # first if we set CC to just the basename; use the full file name.
3139 shift
3140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 fi
3142fi
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147 echo "$as_me:$LINENO: result: $CC" >&5
3148echo "${ECHO_T}$CC" >&6
3149else
3150 echo "$as_me:$LINENO: result: no" >&5
3151echo "${ECHO_T}no" >&6
3152fi
3153
3154fi
3155if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl
3158 do
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_CC+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181done
3182
3183fi
3184fi
3185CC=$ac_cv_prog_CC
3186if test -n "$CC"; then
3187 echo "$as_me:$LINENO: result: $CC" >&5
3188echo "${ECHO_T}$CC" >&6
3189else
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194 test -n "$CC" && break
3195 done
3196fi
3197if test -z "$CC"; then
3198 ac_ct_CC=$CC
3199 for ac_prog in cl
3200do
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202set dummy $ac_prog; ac_word=$2
3203echo "$as_me:$LINENO: checking for $ac_word" >&5
3204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210else
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_ac_ct_CC="$ac_prog"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222done
3223done
3224
3225fi
3226fi
3227ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228if test -n "$ac_ct_CC"; then
3229 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3230echo "${ECHO_T}$ac_ct_CC" >&6
3231else
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
3234fi
3235
3236 test -n "$ac_ct_CC" && break
3237done
3238
3239 CC=$ac_ct_CC
3240fi
3241
3242fi
3243
3244
3245test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3246echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3248See \`config.log' for more details." >&5
3249echo "$as_me: error: no acceptable C compiler found in \$PATH
3250See \`config.log' for more details." >&2;}
3251 { (exit 1); exit 1; }; }; }
3252
3253# Provide some information about the compiler.
3254echo "$as_me:$LINENO:" \
3255 "checking for C compiler version" >&5
3256ac_compiler=`set X $ac_compile; echo $2`
3257{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3258 (eval $ac_compiler --version </dev/null >&5) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3263 (eval $ac_compiler -v </dev/null >&5) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }
3267{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3268 (eval $ac_compiler -V </dev/null >&5) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3272
3273cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h. */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
3288ac_clean_files_save=$ac_clean_files
3289ac_clean_files="$ac_clean_files a.out a.exe b.out"
3290# Try to create an executable without -o first, disregard a.out.
3291# It will help us diagnose broken compilers, and finding out an intuition
3292# of exeext.
3293echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3294echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3295ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3297 (eval $ac_link_default) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; then
3301 # Find the output, starting from the most likely. This scheme is
3302# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3303# resort.
3304
3305# Be careful to initialize this variable, since it used to be cached.
3306# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3307ac_cv_exeext=
3308# b.out is created by i960 compilers.
3309for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3310do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3314 ;;
3315 conftest.$ac_ext )
3316 # This is the source file.
3317 ;;
3318 [ab].out )
3319 # We found the default executable, but exeext='' is most
3320 # certainly right.
3321 break;;
3322 *.* )
3323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 # FIXME: I believe we export ac_cv_exeext for Libtool,
3325 # but it would be cool to find out if it's true. Does anybody
3326 # maintain Libtool? --akim.
3327 export ac_cv_exeext
3328 break;;
3329 * )
3330 break;;
3331 esac
3332done
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3338echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3340See \`config.log' for more details." >&5
3341echo "$as_me: error: C compiler cannot create executables
3342See \`config.log' for more details." >&2;}
3343 { (exit 77); exit 77; }; }; }
3344fi
3345
3346ac_exeext=$ac_cv_exeext
3347echo "$as_me:$LINENO: result: $ac_file" >&5
3348echo "${ECHO_T}$ac_file" >&6
3349
3350# Check the compiler produces executables we can run. If not, either
3351# the compiler is broken, or we cross compile.
3352echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3353echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3354# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3355# If not cross compiling, check that we can run a simple program.
3356if test "$cross_compiling" != yes; then
3357 if { ac_try='./$ac_file'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 cross_compiling=no
3364 else
3365 if test "$cross_compiling" = maybe; then
3366 cross_compiling=yes
3367 else
3368 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3369echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3371If you meant to cross compile, use \`--host'.
3372See \`config.log' for more details." >&5
3373echo "$as_me: error: cannot run C compiled programs.
3374If you meant to cross compile, use \`--host'.
3375See \`config.log' for more details." >&2;}
3376 { (exit 1); exit 1; }; }; }
3377 fi
3378 fi
3379fi
3380echo "$as_me:$LINENO: result: yes" >&5
3381echo "${ECHO_T}yes" >&6
3382
3383rm -f a.out a.exe conftest$ac_cv_exeext b.out
3384ac_clean_files=$ac_clean_files_save
3385# Check the compiler produces executables we can run. If not, either
3386# the compiler is broken, or we cross compile.
3387echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3388echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3389echo "$as_me:$LINENO: result: $cross_compiling" >&5
3390echo "${ECHO_T}$cross_compiling" >&6
3391
3392echo "$as_me:$LINENO: checking for suffix of executables" >&5
3393echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3395 (eval $ac_link) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; then
3399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401# work properly (i.e., refer to `conftest.exe'), while it won't with
3402# `rm'.
3403for ac_file in conftest.exe conftest conftest.*; do
3404 test -f "$ac_file" || continue
3405 case $ac_file in
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 export ac_cv_exeext
3409 break;;
3410 * ) break;;
3411 esac
3412done
3413else
3414 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3415echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3417See \`config.log' for more details." >&5
3418echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3419See \`config.log' for more details." >&2;}
3420 { (exit 1); exit 1; }; }; }
3421fi
3422
3423rm -f conftest$ac_cv_exeext
3424echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3425echo "${ECHO_T}$ac_cv_exeext" >&6
3426
3427rm -f conftest.$ac_ext
3428EXEEXT=$ac_cv_exeext
3429ac_exeext=$EXEEXT
3430echo "$as_me:$LINENO: checking for suffix of object files" >&5
3431echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3432if test "${ac_cv_objext+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441
3442int
3443main ()
3444{
3445
3446 ;
3447 return 0;
3448}
3449_ACEOF
3450rm -f conftest.o conftest.obj
3451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452 (eval $ac_compile) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; then
3456 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3460 break;;
3461 esac
3462done
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3468echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3470See \`config.log' for more details." >&5
3471echo "$as_me: error: cannot compute suffix of object files: cannot compile
3472See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }; }
3474fi
3475
3476rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477fi
3478echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3479echo "${ECHO_T}$ac_cv_objext" >&6
3480OBJEXT=$ac_cv_objext
3481ac_objext=$OBJEXT
3482echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3483echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3484if test "${ac_cv_c_compiler_gnu+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493
3494int
3495main ()
3496{
3497#ifndef __GNUC__
3498 choke me
3499#endif
3500
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.$ac_objext
3506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_compiler_gnu=yes
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532ac_compiler_gnu=no
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536
3537fi
3538echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3540GCC=`test $ac_compiler_gnu = yes && echo yes`
3541ac_test_CFLAGS=${CFLAGS+set}
3542ac_save_CFLAGS=$CFLAGS
3543CFLAGS="-g"
3544echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3546if test "${ac_cv_prog_cc_g+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_prog_cc_g=yes
3587else
3588 echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591ac_cv_prog_cc_g=no
3592fi
3593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3596echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3597if test "$ac_test_CFLAGS" = set; then
3598 CFLAGS=$ac_save_CFLAGS
3599elif test $ac_cv_prog_cc_g = yes; then
3600 if test "$GCC" = yes; then
3601 CFLAGS="-g -O2"
3602 else
3603 CFLAGS="-g"
3604 fi
3605else
3606 if test "$GCC" = yes; then
3607 CFLAGS="-O2"
3608 else
3609 CFLAGS=
3610 fi
3611fi
3612echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3613echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3614if test "${ac_cv_prog_cc_stdc+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617 ac_cv_prog_cc_stdc=no
3618ac_save_CC=$CC
3619cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h. */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h. */
3625#include <stdarg.h>
3626#include <stdio.h>
3627#include <sys/types.h>
3628#include <sys/stat.h>
3629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3630struct buf { int x; };
3631FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632static char *e (p, i)
3633 char **p;
3634 int i;
3635{
3636 return p[i];
3637}
3638static char *f (char * (*g) (char **, int), char **p, ...)
3639{
3640 char *s;
3641 va_list v;
3642 va_start (v,p);
3643 s = g (p, va_arg (v,int));
3644 va_end (v);
3645 return s;
3646}
3647
3648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3649 function prototypes and stuff, but not '\xHH' hex character constants.
3650 These don't provoke an error unfortunately, instead are silently treated
3651 as 'x'. The following induces an error, until -std1 is added to get
3652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3653 array size at least. It's necessary to write '\x00'==0 to get something
3654 that's true only with -std1. */
3655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656
3657int test (int i, double x);
3658struct s1 {int (*f) (int a);};
3659struct s2 {int (*f) (double a);};
3660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661int argc;
3662char **argv;
3663int
3664main ()
3665{
3666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 ;
3668 return 0;
3669}
3670_ACEOF
3671# Don't try gcc -ansi; that turns off useful extensions and
3672# breaks some systems' header files.
3673# AIX -qlanglvl=ansi
3674# Ultrix and OSF/1 -std1
3675# HP-UX 10.20 and later -Ae
3676# HP-UX older versions -Aa -D_HPUX_SOURCE
3677# SVR4 -Xc -D__EXTENSIONS__
3678for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679do
3680 CC="$ac_save_CC $ac_arg"
3681 rm -f conftest.$ac_objext
3682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_prog_cc_stdc=$ac_arg
3704break
3705else
3706 echo "$as_me: failed program was:" >&5
3707sed 's/^/| /' conftest.$ac_ext >&5
3708
3709fi
3710rm -f conftest.err conftest.$ac_objext
3711done
3712rm -f conftest.$ac_ext conftest.$ac_objext
3713CC=$ac_save_CC
3714
3715fi
3716
3717case "x$ac_cv_prog_cc_stdc" in
3718 x|xno)
3719 echo "$as_me:$LINENO: result: none needed" >&5
3720echo "${ECHO_T}none needed" >&6 ;;
3721 *)
3722 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3723echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3724 CC="$CC $ac_cv_prog_cc_stdc" ;;
3725esac
3726
3727# Some people use a C++ compiler to compile C. Since we use `exit',
3728# in C++ we need to declare it. In case someone uses the same compiler
3729# for both compiling C and C++ we need to have the C++ compiler decide
3730# the declaration of exit, since it's the most demanding environment.
3731cat >conftest.$ac_ext <<_ACEOF
3732#ifndef __cplusplus
3733 choke me
3734#endif
3735_ACEOF
3736rm -f conftest.$ac_objext
3737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_c_werror_flag"
3746 || test ! -s conftest.err'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 for ac_declaration in \
3759 '' \
3760 'extern "C" void std::exit (int) throw (); using std::exit;' \
3761 'extern "C" void std::exit (int); using std::exit;' \
3762 'extern "C" void exit (int) throw ();' \
3763 'extern "C" void exit (int);' \
3764 'void exit (int);'
3765do
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772$ac_declaration
3773#include <stdlib.h>
3774int
3775main ()
3776{
3777exit (42);
3778 ;
3779 return 0;
3780}
3781_ACEOF
3782rm -f conftest.$ac_objext
3783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 :
3805else
3806 echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809continue
3810fi
3811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h. */
3818$ac_declaration
3819int
3820main ()
3821{
3822exit (42);
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 break
3850else
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854fi
3855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856done
3857rm -f conftest*
3858if test -n "$ac_declaration"; then
3859 echo '#ifdef __cplusplus' >>confdefs.h
3860 echo $ac_declaration >>confdefs.h
3861 echo '#endif' >>confdefs.h
3862fi
3863
3864else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868fi
3869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3870ac_ext=c
3871ac_cpp='$CPP $CPPFLAGS'
3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876ac_ext=cc
3877ac_cpp='$CXXCPP $CPPFLAGS'
3878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3881if test -n "$ac_tool_prefix"; then
3882 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3883 do
3884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3886echo "$as_me:$LINENO: checking for $ac_word" >&5
3887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3888if test "${ac_cv_prog_CXX+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 if test -n "$CXX"; then
3892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3893else
3894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3904 fi
3905done
3906done
3907
3908fi
3909fi
3910CXX=$ac_cv_prog_CXX
3911if test -n "$CXX"; then
3912 echo "$as_me:$LINENO: result: $CXX" >&5
3913echo "${ECHO_T}$CXX" >&6
3914else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917fi
3918
3919 test -n "$CXX" && break
3920 done
3921fi
3922if test -z "$CXX"; then
3923 ac_ct_CXX=$CXX
3924 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3925do
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927set dummy $ac_prog; ac_word=$2
3928echo "$as_me:$LINENO: checking for $ac_word" >&5
3929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 if test -n "$ac_ct_CXX"; then
3934 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_CXX="$ac_prog"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947done
3948done
3949
3950fi
3951fi
3952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3953if test -n "$ac_ct_CXX"; then
3954 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3955echo "${ECHO_T}$ac_ct_CXX" >&6
3956else
3957 echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6
3959fi
3960
3961 test -n "$ac_ct_CXX" && break
3962done
3963test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3964
3965 CXX=$ac_ct_CXX
3966fi
3967
3968
3969# Provide some information about the compiler.
3970echo "$as_me:$LINENO:" \
3971 "checking for C++ compiler version" >&5
3972ac_compiler=`set X $ac_compile; echo $2`
3973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3974 (eval $ac_compiler --version </dev/null >&5) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }
3978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3979 (eval $ac_compiler -v </dev/null >&5) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }
3983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3984 (eval $ac_compiler -V </dev/null >&5) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }
3988
3989echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3990echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3991if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
3994 cat >conftest.$ac_ext <<_ACEOF
3995/* confdefs.h. */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h. */
4000
4001int
4002main ()
4003{
4004#ifndef __GNUC__
4005 choke me
4006#endif
4007
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_cxx_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 ac_compiler_gnu=yes
4035else
4036 echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039ac_compiler_gnu=no
4040fi
4041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4043
4044fi
4045echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4046echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4047GXX=`test $ac_compiler_gnu = yes && echo yes`
4048ac_test_CXXFLAGS=${CXXFLAGS+set}
4049ac_save_CXXFLAGS=$CXXFLAGS
4050CXXFLAGS="-g"
4051echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4052echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4053if test "${ac_cv_prog_cxx_g+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056 cat >conftest.$ac_ext <<_ACEOF
4057/* confdefs.h. */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h. */
4062
4063int
4064main ()
4065{
4066
4067 ;
4068 return 0;
4069}
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_cxx_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_cv_prog_cxx_g=yes
4094else
4095 echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098ac_cv_prog_cxx_g=no
4099fi
4100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101fi
4102echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4103echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4104if test "$ac_test_CXXFLAGS" = set; then
4105 CXXFLAGS=$ac_save_CXXFLAGS
4106elif test $ac_cv_prog_cxx_g = yes; then
4107 if test "$GXX" = yes; then
4108 CXXFLAGS="-g -O2"
4109 else
4110 CXXFLAGS="-g"
4111 fi
4112else
4113 if test "$GXX" = yes; then
4114 CXXFLAGS="-O2"
4115 else
4116 CXXFLAGS=
4117 fi
4118fi
4119for ac_declaration in \
4120 '' \
4121 'extern "C" void std::exit (int) throw (); using std::exit;' \
4122 'extern "C" void std::exit (int); using std::exit;' \
4123 'extern "C" void exit (int) throw ();' \
4124 'extern "C" void exit (int);' \
4125 'void exit (int);'
4126do
4127 cat >conftest.$ac_ext <<_ACEOF
4128/* confdefs.h. */
4129_ACEOF
4130cat confdefs.h >>conftest.$ac_ext
4131cat >>conftest.$ac_ext <<_ACEOF
4132/* end confdefs.h. */
4133$ac_declaration
4134#include <stdlib.h>
4135int
4136main ()
4137{
4138exit (42);
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143rm -f conftest.$ac_objext
4144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_cxx_werror_flag"
4153 || test ! -s conftest.err'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 :
4166else
4167 echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170continue
4171fi
4172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4173 cat >conftest.$ac_ext <<_ACEOF
4174/* confdefs.h. */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
4178/* end confdefs.h. */
4179$ac_declaration
4180int
4181main ()
4182{
4183exit (42);
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext
4189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_cxx_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 break
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215fi
4216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217done
4218rm -f conftest*
4219if test -n "$ac_declaration"; then
4220 echo '#ifdef __cplusplus' >>confdefs.h
4221 echo $ac_declaration >>confdefs.h
4222 echo '#endif' >>confdefs.h
4223fi
4224
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232# We must set the default linker to the linker used by gcc for the correct
4233# operation of libtool. If LD is not defined and we are using gcc, try to
4234# set the LD default to the ld used by gcc.
4235if test -z "$LD"; then
4236 if test "$GCC" = yes; then
4237 case $build in
4238 *-*-mingw*)
4239 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4240 *)
4241 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4242 esac
4243 case $gcc_prog_ld in
4244 # Accept absolute paths.
4245 [\\/]* | [A-Za-z]:[\\/]*)
4246 LD="$gcc_prog_ld" ;;
4247 esac
4248 fi
4249fi
4250
4251
4252
4253
4254if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4256set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4257echo "$as_me:$LINENO: checking for $ac_word" >&5
4258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259if test "${ac_cv_prog_GNATBIND+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261else
4262 if test -n "$GNATBIND"; then
4263 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4264else
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276done
4277done
4278
4279fi
4280fi
4281GNATBIND=$ac_cv_prog_GNATBIND
4282if test -n "$GNATBIND"; then
4283 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4284echo "${ECHO_T}$GNATBIND" >&6
4285else
4286 echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288fi
4289
4290fi
4291if test -z "$ac_cv_prog_GNATBIND"; then
4292 ac_ct_GNATBIND=$GNATBIND
4293 # Extract the first word of "gnatbind", so it can be a program name with args.
4294set dummy gnatbind; ac_word=$2
4295echo "$as_me:$LINENO: checking for $ac_word" >&5
4296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 if test -n "$ac_ct_GNATBIND"; then
4301 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314done
4315done
4316
4317 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4318fi
4319fi
4320ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4321if test -n "$ac_ct_GNATBIND"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4323echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4324else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327fi
4328
4329 GNATBIND=$ac_ct_GNATBIND
4330else
4331 GNATBIND="$ac_cv_prog_GNATBIND"
4332fi
4333
4334if test -n "$ac_tool_prefix"; then
4335 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4336set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4337echo "$as_me:$LINENO: checking for $ac_word" >&5
4338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341else
4342 if test -n "$GNATMAKE"; then
4343 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356done
4357done
4358
4359fi
4360fi
4361GNATMAKE=$ac_cv_prog_GNATMAKE
4362if test -n "$GNATMAKE"; then
4363 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4364echo "${ECHO_T}$GNATMAKE" >&6
4365else
4366 echo "$as_me:$LINENO: result: no" >&5
4367echo "${ECHO_T}no" >&6
4368fi
4369
4370fi
4371if test -z "$ac_cv_prog_GNATMAKE"; then
4372 ac_ct_GNATMAKE=$GNATMAKE
4373 # Extract the first word of "gnatmake", so it can be a program name with args.
4374set dummy gnatmake; ac_word=$2
4375echo "$as_me:$LINENO: checking for $ac_word" >&5
4376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4377if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380 if test -n "$ac_ct_GNATMAKE"; then
4381 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394done
4395done
4396
4397 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4398fi
4399fi
4400ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4401if test -n "$ac_ct_GNATMAKE"; then
4402 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4403echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4404else
4405 echo "$as_me:$LINENO: result: no" >&5
4406echo "${ECHO_T}no" >&6
4407fi
4408
4409 GNATMAKE=$ac_ct_GNATMAKE
4410else
4411 GNATMAKE="$ac_cv_prog_GNATMAKE"
4412fi
4413
4414echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4415echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4416if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419 cat >conftest.adb <<EOF
4420procedure conftest is begin null; end conftest;
4421EOF
4422acx_cv_cc_gcc_supports_ada=no
4423# There is a bug in old released versions of GCC which causes the
4424# driver to exit successfully when the appropriate language module
4425# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4426# Therefore we must check for the error message as well as an
4427# unsuccessful exit.
4428# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4429# given a .adb file, but produce no object file. So we must check
4430# if an object file was really produced to guard against this.
4431errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4432if test x"$errors" = x && test -f conftest.$ac_objext; then
4433 acx_cv_cc_gcc_supports_ada=yes
4434fi
4435rm -f conftest.*
4436fi
4437echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4438echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4439
4440if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4441 have_gnat=yes
4442else
4443 have_gnat=no
4444fi
4445
4446echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4447echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4448if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451 echo abfoo >t1
4452 echo cdfoo >t2
4453 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4454 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4455 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4456 :
4457 else
4458 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4459 fi
4460 fi
4461 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4462 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4463 :
4464 else
4465 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4466 fi
4467 fi
4468 rm t1 t2
4469
4470fi
4471echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4472echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4473do_compare="$gcc_cv_prog_cmp_skip"
4474
4475
4476
4477# Check for GMP and MPFR
4478gmplibs="-lmpfr -lgmp"
4479gmpinc=
4480have_gmp=no
4481
4482# Specify a location for mpfr
4483# check for this first so it ends up on the link line before gmp.
4484
4485# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4486if test "${with_mpfr_dir+set}" = set; then
4487 withval="$with_mpfr_dir"
4488 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4489Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4490echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4491Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4492 { (exit 1); exit 1; }; }
4493fi;
4494
4495
4496# Check whether --with-mpfr or --without-mpfr was given.
4497if test "${with_mpfr+set}" = set; then
4498 withval="$with_mpfr"
4499
4500fi;
4501
4502# Check whether --with-mpfr_include or --without-mpfr_include was given.
4503if test "${with_mpfr_include+set}" = set; then
4504 withval="$with_mpfr_include"
4505
4506fi;
4507
4508# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4509if test "${with_mpfr_lib+set}" = set; then
4510 withval="$with_mpfr_lib"
4511
4512fi;
4513
4514if test "x$with_mpfr" != x; then
4515 gmplibs="-L$with_mpfr/lib $gmplibs"
4516 gmpinc="-I$with_mpfr/include"
4517fi
4518if test "x$with_mpfr_include" != x; then
4519 gmpinc="-I$with_mpfr_include"
4520fi
4521if test "x$with_mpfr_lib" != x; then
4522 gmplibs="-L$with_mpfr_lib $gmplibs"
4523fi
4524if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4525 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4526 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4527 # Do not test the mpfr version. Assume that it is sufficient, since
4528 # it is in the source tree, and the library has not been built yet
4529 # but it would be included on the link line in the version check below
4530 # hence making the test fail.
4531 have_gmp=yes
4532fi
4533
4534# Specify a location for gmp
4535
4536# Check whether --with-gmp-dir or --without-gmp-dir was given.
4537if test "${with_gmp_dir+set}" = set; then
4538 withval="$with_gmp_dir"
4539 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4540Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4541echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4542Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4543 { (exit 1); exit 1; }; }
4544fi;
4545
4546
4547# Check whether --with-gmp or --without-gmp was given.
4548if test "${with_gmp+set}" = set; then
4549 withval="$with_gmp"
4550
4551fi;
4552
4553# Check whether --with-gmp_include or --without-gmp_include was given.
4554if test "${with_gmp_include+set}" = set; then
4555 withval="$with_gmp_include"
4556
4557fi;
4558
4559# Check whether --with-gmp_lib or --without-gmp_lib was given.
4560if test "${with_gmp_lib+set}" = set; then
4561 withval="$with_gmp_lib"
4562
4563fi;
4564
4565
4566if test "x$with_gmp" != x; then
4567 gmplibs="-L$with_gmp/lib $gmplibs"
4568 gmpinc="-I$with_gmp/include $gmpinc"
4569fi
4570if test "x$with_gmp_include" != x; then
4571 gmpinc="-I$with_gmp_include $gmpinc"
4572fi
4573if test "x$with_gmp_lib" != x; then
4574 gmplibs="-L$with_gmp_lib $gmplibs"
4575fi
4576if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4577 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4578 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4579 # Do not test the gmp version. Assume that it is sufficient, since
4580 # it is in the source tree, and the library has not been built yet
4581 # but it would be included on the link line in the version check below
4582 # hence making the test fail.
4583 have_gmp=yes
4584fi
4585
4586if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4587 have_gmp=yes
4588 saved_CFLAGS="$CFLAGS"
4589 CFLAGS="$CFLAGS $gmpinc"
4590 # Check GMP actually works
4591 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4592echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4593
4594cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
4600#include "gmp.h"
4601int
4602main ()
4603{
4604
4605 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4606 choke me
4607 #endif
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613rm -f conftest.$ac_objext
4614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 echo "$as_me:$LINENO: result: yes" >&5
4636echo "${ECHO_T}yes" >&6
4637else
4638 echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6; have_gmp=no
4643fi
4644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645
4646 if test x"$have_gmp" = xyes; then
4647 saved_LIBS="$LIBS"
4648 LIBS="$LIBS $gmplibs"
4649 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4650echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4651 cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
4657#include <gmp.h>
4658 #include <mpfr.h>
4659int
4660main ()
4661{
4662
4663 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4664 choke me
4665 #endif
4666 mpfr_t n;
4667 mpfr_t x;
4668 int t;
4669 mpfr_init (n);
4670 mpfr_init (x);
4671 mpfr_atan2 (n, n, x, GMP_RNDN);
4672 mpfr_erfc (n, x, GMP_RNDN);
4673 mpfr_subnormalize (x, t, GMP_RNDN);
4674
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679rm -f conftest.$ac_objext conftest$ac_exeext
4680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_c_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest$ac_exeext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
4707#include <gmp.h>
4708 #include <mpfr.h>
4709int
4710main ()
4711{
4712
4713 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4714 choke me
4715 #endif
4716 mpfr_t n; mpfr_init(n);
4717
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext conftest$ac_exeext
4723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -z "$ac_c_werror_flag"
4732 || test ! -s conftest.err'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; } &&
4738 { ac_try='test -s conftest$ac_exeext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 echo "$as_me:$LINENO: result: yes" >&5
4745echo "${ECHO_T}yes" >&6
4746else
4747 echo "$as_me: failed program was:" >&5
4748sed 's/^/| /' conftest.$ac_ext >&5
4749
4750echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4751echo "${ECHO_T}buggy but acceptable" >&6
4752fi
4753rm -f conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6; have_gmp=no
4761fi
4762rm -f conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
4764 LIBS="$saved_LIBS"
4765 fi
4766 CFLAGS="$saved_CFLAGS"
4767
4768 if test x$have_gmp != xyes; then
4769 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4770Try the --with-gmp and/or --with-mpfr options to specify their locations.
4771Copies of these libraries' source code can be found at their respective
4772hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4773See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4774If you obtained GMP and/or MPFR from a vendor distribution package, make
4775sure that you have installed both the libraries and the header files.
4776They may be located in separate packages." >&5
4777echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4778Try the --with-gmp and/or --with-mpfr options to specify their locations.
4779Copies of these libraries' source code can be found at their respective
4780hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4781See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4782If you obtained GMP and/or MPFR from a vendor distribution package, make
4783sure that you have installed both the libraries and the header files.
4784They may be located in separate packages." >&2;}
4785 { (exit 1); exit 1; }; }
4786 fi
4787fi
4788
4789# Flags needed for both GMP and/or MPFR
4790
4791
4792
4793# By default, C is the only stage 1 language.
4794stage1_languages=,c,
4795
4796# Figure out what language subdirectories are present.
4797# Look if the user specified --enable-languages="..."; if not, use
4798# the environment variable $LANGUAGES if defined. $LANGUAGES might
4799# go away some day.
4800# NB: embedded tabs in this IF block -- do not untabify
4801if test -d ${srcdir}/gcc; then
4802 if test x"${enable_languages+set}" != xset; then
4803 if test x"${LANGUAGES+set}" = xset; then
4804 enable_languages="${LANGUAGES}"
4805 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4806 else
4807 enable_languages=all
4808 fi
4809 else
4810 if test x"${enable_languages}" = x ||
4811 test x"${enable_languages}" = xyes;
4812 then
4813 echo configure.in: --enable-languages needs at least one language argument 1>&2
4814 exit 1
4815 fi
4816 fi
4817 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4818
4819 # 'f95' is the old name for the 'fortran' language. We issue a warning
4820 # and make the substitution.
4821 case ,${enable_languages}, in
4822 *,f95,*)
4823 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4824 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4825 ;;
4826 esac
4827
4828 # First scan to see if an enabled language requires some other language.
4829 # We assume that a given config-lang.in will list all the language
4830 # front ends it requires, even if some are required indirectly.
4831 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4832 case ${lang_frag} in
4833 ..) ;;
4834 # The odd quoting in the next line works around
4835 # an apparent bug in bash 1.12 on linux.
4836 ${srcdir}/gcc/[*]/config-lang.in) ;;
4837 *)
4838 # From the config-lang.in, get $language, $lang_requires
4839 language=
4840 lang_requires=
4841 . ${lang_frag}
4842 for other in ${lang_requires} ; do
4843 case ,${enable_languages}, in
4844 *,$other,*) ;;
4845 *,all,*) ;;
4846 *,$language,*)
4847 echo " \`$other' language required by \`$language'; enabling" 1>&2
4848 enable_languages="${enable_languages},${other}"
4849 ;;
4850 esac
4851 done
4852 ;;
4853 esac
4854 done
4855
4856 new_enable_languages=,c,
4857 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4858 potential_languages=,c,
4859
4860 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4861 case ${lang_frag} in
4862 ..) ;;
4863 # The odd quoting in the next line works around
4864 # an apparent bug in bash 1.12 on linux.
4865 ${srcdir}/gcc/[*]/config-lang.in) ;;
4866 *)
4867 # From the config-lang.in, get $language, $target_libs,
4868 # $lang_dirs, $boot_language, and $build_by_default
4869 language=
4870 target_libs=
4871 lang_dirs=
4872 subdir_requires=
4873 boot_language=no
4874 build_by_default=yes
4875 . ${lang_frag}
4876 if test x${language} = x; then
4877 echo "${lang_frag} doesn't set \$language." 1>&2
4878 exit 1
4879 fi
4880
4881 case ,${enable_languages}, in
4882 *,${language},*)
4883 # Language was explicitly selected; include it.
4884 add_this_lang=yes
4885 ;;
4886 *,all,*)
4887 # 'all' was selected, select it if it is a default language
4888 add_this_lang=${build_by_default}
4889 ;;
4890 *)
4891 add_this_lang=no
4892 ;;
4893 esac
4894
4895 # Disable languages that need other directories if these aren't available.
4896 for i in $subdir_requires; do
4897 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4898 case ,${enable_languages}, in
4899 *,${language},*)
4900 # Specifically requested language; tell them.
4901 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4902echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4903 { (exit 1); exit 1; }; }
4904 ;;
4905 *)
4906 # Silently disable.
4907 add_this_lang=unsupported
4908 ;;
4909 esac
4910 done
4911
4912 # Disable Ada if no preexisting GNAT is available.
4913 case ,${enable_languages},:${language}:${have_gnat} in
4914 *,${language},*:ada:no)
4915 # Specifically requested language; tell them.
4916 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4917echo "$as_me: error: GNAT is required to build $language" >&2;}
4918 { (exit 1); exit 1; }; }
4919 ;;
4920 *:ada:no)
4921 # Silently disable.
4922 add_this_lang=unsupported
4923 ;;
4924 esac
4925
4926 # Disable a language that is unsupported by the target.
4927 case " $unsupported_languages " in
4928 *" $language "*)
4929 add_this_lang=unsupported
4930 ;;
4931 esac
4932
4933 case $add_this_lang in
4934 unsupported)
4935 # Remove language-dependent dirs.
4936 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4937 ;;
4938 no)
4939 # Remove language-dependent dirs; still show language as supported.
4940 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4941 potential_languages="${potential_languages}${language},"
4942 ;;
4943 yes)
4944 new_enable_languages="${new_enable_languages}${language},"
4945 potential_languages="${potential_languages}${language},"
4946 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4947 case ${boot_language} in
4948 yes)
4949 # Add to (comma-separated) list of stage 1 languages.
4950 stage1_languages="${stage1_languages}${language},"
4951 ;;
4952 esac
4953 ;;
4954 esac
4955 ;;
4956 esac
4957 done
4958
4959 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4960if test "${enable_stage1_languages+set}" = set; then
4961 enableval="$enable_stage1_languages"
4962 case ,${enable_stage1_languages}, in
4963 ,no,|,,)
4964 # Set it to something that will have no effect in the loop below
4965 enable_stage1_languages=c ;;
4966 ,yes,)
4967 enable_stage1_languages=`echo $new_enable_languages | \
4968 sed -e "s/^,//" -e "s/,$//" ` ;;
4969 *,all,*)
4970 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4971 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4972 esac
4973
4974 # Add "good" languages from enable_stage1_languages to stage1_languages,
4975 # while "bad" languages go in missing_languages. Leave no duplicates.
4976 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4977 case $potential_languages in
4978 *,$i,*)
4979 case $stage1_languages in
4980 *,$i,*) ;;
4981 *) stage1_languages="$stage1_languages$i," ;;
4982 esac ;;
4983 *)
4984 case $missing_languages in
4985 *,$i,*) ;;
4986 *) missing_languages="$missing_languages$i," ;;
4987 esac ;;
4988 esac
4989 done
4990fi;
4991
4992 # Remove leading/trailing commas that were added for simplicity
4993 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4994 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4995 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4996 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4997
4998 if test "x$missing_languages" != x; then
4999 { { echo "$as_me:$LINENO: error:
5000The following requested languages could not be built: ${missing_languages}
5001Supported languages are: ${potential_languages}" >&5
5002echo "$as_me: error:
5003The following requested languages could not be built: ${missing_languages}
5004Supported languages are: ${potential_languages}" >&2;}
5005 { (exit 1); exit 1; }; }
5006 fi
5007 if test "x$new_enable_languages" != "x$enable_languages"; then
5008 echo The following languages will be built: ${new_enable_languages}
5009 enable_languages="$new_enable_languages"
5010 fi
5011
5012
5013 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5014fi
5015
5016# Handle --disable-<component> generically.
5017for dir in $configdirs $build_configdirs $target_configdirs ; do
5018 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5019 varname=`echo $dirname | sed -e s/+/_/g`
5020 if eval test x\${enable_${varname}} "=" xno ; then
5021 noconfigdirs="$noconfigdirs $dir"
5022 fi
5023done
5024
5025# Check for Boehm's garbage collector
5026# Check whether --enable-objc-gc or --disable-objc-gc was given.
5027if test "${enable_objc_gc+set}" = set; then
5028 enableval="$enable_objc_gc"
5029 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5030 *,objc,*:*:yes:*target-boehm-gc*)
5031 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5032echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5033 { (exit 1); exit 1; }; }
5034 ;;
5035esac
5036fi;
5037
5038# Make sure we only build Boehm's garbage collector if required.
5039case ,${enable_languages},:${enable_objc_gc} in
5040 *,objc,*:yes)
5041 # Keep target-boehm-gc if requested for Objective-C.
5042 ;;
5043 *)
5044 # Otherwise remove target-boehm-gc depending on target-libjava.
5045 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5046 noconfigdirs="$noconfigdirs target-boehm-gc"
5047 fi
5048 ;;
5049esac
5050
5051# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5052# $build_configdirs and $target_configdirs.
5053# If we have the source for $noconfigdirs entries, add them to $notsupp.
5054
5055notsupp=""
5056for dir in . $skipdirs $noconfigdirs ; do
5057 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5058 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5059 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5060 if test -r $srcdir/$dirname/configure ; then
5061 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5062 true
5063 else
5064 notsupp="$notsupp $dir"
5065 fi
5066 fi
5067 fi
5068 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5069 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5070 if test -r $srcdir/$dirname/configure ; then
5071 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5072 true
5073 else
5074 notsupp="$notsupp $dir"
5075 fi
5076 fi
5077 fi
5078 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5079 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5080 if test -r $srcdir/$dirname/configure ; then
5081 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5082 true
5083 else
5084 notsupp="$notsupp $dir"
5085 fi
5086 fi
5087 fi
5088done
5089
5090# Sometimes the tools are distributed with libiberty but with no other
5091# libraries. In that case, we don't want to build target-libiberty.
5092# Don't let libgcc imply libiberty either.
5093if test -n "${target_configdirs}" ; then
5094 libgcc=
5095 others=
5096 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5097 if test "$i" = "libgcc"; then
5098 libgcc=target-libgcc
5099 elif test "$i" != "libiberty" ; then
5100 if test -r $srcdir/$i/configure ; then
5101 others=yes;
5102 break;
5103 fi
5104 fi
5105 done
5106 if test -z "${others}" ; then
5107 target_configdirs=$libgcc
5108 fi
5109fi
5110
5111# Quietly strip out all directories which aren't configurable in this tree.
5112# This relies on all configurable subdirectories being autoconfiscated, which
5113# is now the case.
5114build_configdirs_all="$build_configdirs"
5115build_configdirs=
5116for i in ${build_configdirs_all} ; do
5117 j=`echo $i | sed -e s/build-//g`
5118 if test -f ${srcdir}/$j/configure ; then
5119 build_configdirs="${build_configdirs} $i"
5120 fi
5121done
5122
5123configdirs_all="$configdirs"
5124configdirs=
5125for i in ${configdirs_all} ; do
5126 if test -f ${srcdir}/$i/configure ; then
5127 configdirs="${configdirs} $i"
5128 fi
5129done
5130
5131target_configdirs_all="$target_configdirs"
5132target_configdirs=
5133for i in ${target_configdirs_all} ; do
5134 j=`echo $i | sed -e s/target-//g`
5135 if test -f ${srcdir}/$j/configure ; then
5136 target_configdirs="${target_configdirs} $i"
5137 fi
5138done
5139
5140# Produce a warning message for the subdirs we can't configure.
5141# This isn't especially interesting in the Cygnus tree, but in the individual
5142# FSF releases, it's important to let people know when their machine isn't
5143# supported by the one or two programs in a package.
5144
5145if test -n "${notsupp}" && test -z "${norecursion}" ; then
5146 # If $appdirs is non-empty, at least one of those directories must still
5147 # be configured, or we error out. (E.g., if the gas release supports a
5148 # specified target in some subdirs but not the gas subdir, we shouldn't
5149 # pretend that all is well.)
5150 if test -n "$appdirs" ; then
5151 for dir in $appdirs ; do
5152 if test -r $dir/Makefile.in ; then
5153 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5154 appdirs=""
5155 break
5156 fi
5157 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5158 appdirs=""
5159 break
5160 fi
5161 fi
5162 done
5163 if test -n "$appdirs" ; then
5164 echo "*** This configuration is not supported by this package." 1>&2
5165 exit 1
5166 fi
5167 fi
5168 # Okay, some application will build, or we don't care to check. Still
5169 # notify of subdirs not getting built.
5170 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5171 echo " ${notsupp}" 1>&2
5172 echo " (Any other directories should still work fine.)" 1>&2
5173fi
5174
5175case "$host" in
5176 *msdosdjgpp*)
5177 enable_gdbtk=no ;;
5178esac
5179
5180# To find our prefix, in gcc_cv_tool_prefix.
5181
5182# The user is always right.
5183if test "${PATH_SEPARATOR+set}" != set; then
5184 echo "#! /bin/sh" >conf$$.sh
5185 echo "exit 0" >>conf$$.sh
5186 chmod +x conf$$.sh
5187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5188 PATH_SEPARATOR=';'
5189 else
5190 PATH_SEPARATOR=:
5191 fi
5192 rm -f conf$$.sh
5193fi
5194
5195
5196
5197if test "x$exec_prefix" = xNONE; then
5198 if test "x$prefix" = xNONE; then
5199 gcc_cv_tool_prefix=$ac_default_prefix
5200 else
5201 gcc_cv_tool_prefix=$prefix
5202 fi
5203else
5204 gcc_cv_tool_prefix=$exec_prefix
5205fi
5206
5207# If there is no compiler in the tree, use the PATH only. In any
5208# case, if there is no compiler in the tree nobody should use
5209# AS_FOR_TARGET and LD_FOR_TARGET.
5210if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5211 gcc_version=`cat $srcdir/gcc/BASE-VER`
5212 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5213 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5214 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5215 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5216 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5218else
5219 gcc_cv_tool_dirs=
5220fi
5221
5222if test x$build = x$target && test -n "$md_exec_prefix"; then
5223 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5224fi
5225
5226
5227
5228copy_dirs=
5229
5230
5231# Check whether --with-build-sysroot or --without-build-sysroot was given.
5232if test "${with_build_sysroot+set}" = set; then
5233 withval="$with_build_sysroot"
5234 if test x"$withval" != x ; then
5235 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5236 fi
5237else
5238 SYSROOT_CFLAGS_FOR_TARGET=
5239fi;
5240
5241
5242
5243# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5244if test "${with_debug_prefix_map+set}" = set; then
5245 withval="$with_debug_prefix_map"
5246 if test x"$withval" != x; then
5247 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5248 for debug_map in $withval; do
5249 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5250 done
5251 fi
5252else
5253 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5254fi;
5255
5256
5257# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5258# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5259# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5260# We want to ensure that TARGET libraries (which we know are built with
5261# gcc) are built with "-O2 -g", so include those options when setting
5262# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5263if test "x$CFLAGS_FOR_TARGET" = x; then
5264 CFLAGS_FOR_TARGET=$CFLAGS
5265 case " $CFLAGS " in
5266 *" -O2 "*) ;;
5267 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5268 esac
5269 case " $CFLAGS " in
5270 *" -g "* | *" -g3 "*) ;;
5271 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5272 esac
5273fi
5274
5275
5276if test "x$CXXFLAGS_FOR_TARGET" = x; then
5277 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5278 case " $CXXFLAGS " in
5279 *" -O2 "*) ;;
5280 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5281 esac
5282 case " $CXXFLAGS " in
5283 *" -g "* | *" -g3 "*) ;;
5284 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5285 esac
5286fi
5287
5288
5289# Other target tools.
5290CPPFLAGS_FOR_TARGET=${CPPFLAGS_FOR_TARGET-${CPPFLAGS}}
5291
5292LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET-${LDFLAGS}}
5293
5294
5295# Handle --with-headers=XXX. If the value is not "yes", the contents of
5296# the named directory are copied to $(tooldir)/sys-include.
5297if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5298 if test x${is_cross_compiler} = xno ; then
5299 echo 1>&2 '***' --with-headers is only supported when cross compiling
5300 exit 1
5301 fi
5302 if test x"${with_headers}" != xyes ; then
5303 x=${gcc_cv_tool_prefix}
5304 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5305 fi
5306fi
5307
5308# Handle --with-libs=XXX. If the value is not "yes", the contents of
5309# the name directories are copied to $(tooldir)/lib. Multiple directories
5310# are permitted.
5311if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5312 if test x${is_cross_compiler} = xno ; then
5313 echo 1>&2 '***' --with-libs is only supported when cross compiling
5314 exit 1
5315 fi
5316 if test x"${with_libs}" != xyes ; then
5317 # Copy the libraries in reverse order, so that files in the first named
5318 # library override files in subsequent libraries.
5319 x=${gcc_cv_tool_prefix}
5320 for l in ${with_libs}; do
5321 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5322 done
5323 fi
5324fi
5325
5326# Set with_gnu_as and with_gnu_ld as appropriate.
5327#
5328# This is done by determining whether or not the appropriate directory
5329# is available, and by checking whether or not specific configurations
5330# have requested that this magic not happen.
5331#
5332# The command line options always override the explicit settings in
5333# configure.in, and the settings in configure.in override this magic.
5334#
5335# If the default for a toolchain is to use GNU as and ld, and you don't
5336# want to do that, then you should use the --without-gnu-as and
5337# --without-gnu-ld options for the configure script.
5338
5339if test x${use_gnu_as} = x &&
5340 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5341 with_gnu_as=yes
5342 extra_host_args="$extra_host_args --with-gnu-as"
5343fi
5344
5345if test x${use_gnu_ld} = x &&
5346 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5347 with_gnu_ld=yes
5348 extra_host_args="$extra_host_args --with-gnu-ld"
5349fi
5350
5351# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5352# can detect this case.
5353
5354if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5355 with_newlib=yes
5356 extra_host_args="$extra_host_args --with-newlib"
5357fi
5358
5359# Handle ${copy_dirs}
5360set fnord ${copy_dirs}
5361shift
5362while test $# != 0 ; do
5363 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5364 :
5365 else
5366 echo Copying $1 to $2
5367
5368 # Use the install script to create the directory and all required
5369 # parent directories.
5370 if test -d $2 ; then
5371 :
5372 else
5373 echo >config.temp
5374 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5375 fi
5376
5377 # Copy the directory, assuming we have tar.
5378 # FIXME: Should we use B in the second tar? Not all systems support it.
5379 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5380
5381 # It is the responsibility of the user to correctly adjust all
5382 # symlinks. If somebody can figure out how to handle them correctly
5383 # here, feel free to add the code.
5384
5385 echo $1 > $2/COPIED
5386 fi
5387 shift; shift
5388done
5389
5390# Determine a target-dependent exec_prefix that the installed
5391# gcc will search in. Keep this list sorted by triplet, with
5392# the *-*-osname triplets last.
5393md_exec_prefix=
5394case "${target}" in
5395 alpha*-*-*vms*)
5396 md_exec_prefix=/gnu/lib/gcc-lib
5397 ;;
5398 i[34567]86-pc-msdosdjgpp*)
5399 md_exec_prefix=/dev/env/DJDIR/bin
5400 ;;
5401 i[34567]86-*-sco3.2v5*)
5402 if test $with_gnu_as = yes; then
5403 md_exec_prefix=/usr/gnu/bin
5404 else
5405 md_exec_prefix=/usr/ccs/bin/elf
5406 fi
5407 ;;
5408
5409 mn10300-*-* | \
5410 powerpc-*-chorusos* | \
5411 powerpc*-*-eabi* | \
5412 powerpc*-*-sysv* | \
5413 powerpc*-*-kaos* | \
5414 s390x-ibm-tpf*)
5415 md_exec_prefix=/usr/ccs/bin
5416 ;;
5417 sparc64-*-elf*)
5418 ;;
5419 v850*-*-*)
5420 md_exec_prefix=/usr/ccs/bin
5421 ;;
5422 xtensa*-*-elf*)
5423 ;;
5424
5425 *-*-beos* | \
5426 *-*-elf* | \
5427 *-*-hpux* | \
5428 *-*-netware* | \
5429 *-*-nto-qnx* | \
5430 *-*-rtems* | \
5431 *-*-solaris2* | \
5432 *-*-sysv[45]* | \
5433 *-*-vxworks* | \
5434 *-wrs-windiss)
5435 md_exec_prefix=/usr/ccs/bin
5436 ;;
5437esac
5438
5439extra_arflags_for_target=
5440extra_nmflags_for_target=
5441extra_ranlibflags_for_target=
5442target_makefile_frag=/dev/null
5443case "${target}" in
5444 mep*-*-*)
5445 target_makefile_frag="config/mt-mep"
5446 ;;
5447 spu-*-*)
5448 target_makefile_frag="config/mt-spu"
5449 ;;
5450 mips*-sde-elf*)
5451 target_makefile_frag="config/mt-sde"
5452 ;;
5453 mipsisa*-*-elfoabi*)
5454 target_makefile_frag="config/mt-mips-elfoabi"
5455 ;;
5456 mips*-*-*linux* | mips*-*-gnu*)
5457 target_makefile_frag="config/mt-mips-gnu"
5458 ;;
5459 *-*-netware*)
5460 target_makefile_frag="config/mt-netware"
5461 ;;
5462 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5463 target_makefile_frag="config/mt-gnu"
5464 ;;
5465 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5466 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5467 # commands to handle both 32-bit and 64-bit objects. These flags are
5468 # harmless if we're using GNU nm or ar.
5469 extra_arflags_for_target=" -X32_64"
5470 extra_nmflags_for_target=" -B -X32_64"
5471 ;;
5472 *-*-darwin*)
5473 # ranlib from Darwin requires the -c flag to look at common symbols.
5474 extra_ranlibflags_for_target=" -c"
5475 ;;
5476 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5477 target_makefile_frag="config/mt-wince"
5478 ;;
5479esac
5480
5481alphaieee_frag=/dev/null
5482case $target in
5483 alpha*-*-*)
5484 # This just makes sure to use the -mieee option to build target libs.
5485 # This should probably be set individually by each library.
5486 alphaieee_frag="config/mt-alphaieee"
5487 ;;
5488esac
5489
5490# If --enable-target-optspace always use -Os instead of -O2 to build
5491# the target libraries, similarly if it is not specified, use -Os
5492# on selected platforms.
5493ospace_frag=/dev/null
5494case "${enable_target_optspace}:${target}" in
5495 yes:*)
5496 ospace_frag="config/mt-ospace"
5497 ;;
5498 :d30v-*)
5499 ospace_frag="config/mt-d30v"
5500 ;;
5501 :m32r-* | :d10v-* | :fr30-*)
5502 ospace_frag="config/mt-ospace"
5503 ;;
5504 no:* | :*)
5505 ;;
5506 *)
5507 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5508 ;;
5509esac
5510
5511# Default to using --with-stabs for certain targets.
5512if test x${with_stabs} = x ; then
5513 case "${target}" in
5514 mips*-*-irix[56]*)
5515 ;;
5516 mips*-*-* | alpha*-*-osf*)
5517 with_stabs=yes;
5518 extra_host_args="${extra_host_args} --with-stabs"
5519 ;;
5520 esac
5521fi
5522
5523# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5524# them automatically.
5525case "${host}" in
5526 hppa*64*-*-hpux11*)
5527 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5528 ;;
5529esac
5530
5531# Some systems (e.g., one of the i386-aix systems the gas testers are
5532# using) don't handle "\$" correctly, so don't use it here.
5533tooldir='${exec_prefix}'/${target_noncanonical}
5534build_tooldir=${tooldir}
5535
5536# Create a .gdbinit file which runs the one in srcdir
5537# and tells GDB to look there for source files.
5538
5539if test -r ${srcdir}/.gdbinit ; then
5540 case ${srcdir} in
5541 .) ;;
5542 *) cat > ./.gdbinit <<EOF
5543# ${NO_EDIT}
5544dir ${srcdir}
5545dir .
5546source ${srcdir}/.gdbinit
5547EOF
5548 ;;
5549 esac
5550fi
5551
5552# Make sure that the compiler is able to generate an executable. If it
5553# can't, we are probably in trouble. We don't care whether we can run the
5554# executable--we might be using a cross compiler--we only care whether it
5555# can be created. At this point the main configure script has set CC.
5556we_are_ok=no
5557echo "int main () { return 0; }" > conftest.c
5558${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5559if test $? = 0 ; then
5560 if test -s conftest || test -s conftest.exe ; then
5561 we_are_ok=yes
5562 fi
5563fi
5564case $we_are_ok in
5565 no)
5566 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5567 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5568 rm -f conftest*
5569 exit 1
5570 ;;
5571esac
5572rm -f conftest*
5573
5574# The Solaris /usr/ucb/cc compiler does not appear to work.
5575case "${host}" in
5576 sparc-sun-solaris2*)
5577 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5578 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5579 could_use=
5580 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5581 if test -d /opt/cygnus/bin ; then
5582 if test "$could_use" = "" ; then
5583 could_use="/opt/cygnus/bin"
5584 else
5585 could_use="$could_use or /opt/cygnus/bin"
5586 fi
5587 fi
5588 if test "$could_use" = "" ; then
5589 echo "Warning: compilation may fail because you're using"
5590 echo "/usr/ucb/cc. You should change your PATH or CC "
5591 echo "variable and rerun configure."
5592 else
5593 echo "Warning: compilation may fail because you're using"
5594 echo "/usr/ucb/cc, when you should use the C compiler from"
5595 echo "$could_use. You should change your"
5596 echo "PATH or CC variable and rerun configure."
5597 fi
5598 fi
5599 ;;
5600esac
5601
5602# Decide which environment variable is used to find dynamic libraries.
5603case "${host}" in
5604 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5605 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5606 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5607 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5608esac
5609
5610# On systems where the dynamic library environment variable is PATH,
5611if test "$RPATH_ENVVAR" = PATH; then
5612 GCC_SHLIB_SUBDIR=/shlib
5613else
5614 GCC_SHLIB_SUBDIR=
5615fi
5616
5617# Record target_configdirs and the configure arguments for target and
5618# build configuration in Makefile.
5619target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5620build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5621
5622# Determine whether gdb needs tk/tcl or not.
5623# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5624# and in that case we want gdb to be built without tk. Ugh!
5625# In fact I believe gdb is the *only* package directly dependent on tk,
5626# so we should be able to put the 'maybe's in unconditionally and
5627# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5628# 100% sure that that's safe though.
5629
5630gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5631case "$enable_gdbtk" in
5632 no)
5633 GDB_TK="" ;;
5634 yes)
5635 GDB_TK="${gdb_tk}" ;;
5636 *)
5637 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5638 # distro. Eventually someone will fix this and move Insight, nee
5639 # gdbtk to a separate directory.
5640 if test -d ${srcdir}/gdb/gdbtk ; then
5641 GDB_TK="${gdb_tk}"
5642 else
5643 GDB_TK=""
5644 fi
5645 ;;
5646esac
5647CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5648INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5649
5650# Strip out unwanted targets.
5651
5652# While at that, we remove Makefiles if we were started for recursive
5653# configuration, so that the top-level Makefile reconfigures them,
5654# like we used to do when configure itself was recursive.
5655
5656# Loop over modules. $extrasub must be used with care, limiting as
5657# much as possible the usage of range addresses. That's because autoconf
5658# splits the sed script to overcome limits in the number of commands,
5659# and relying on carefully-timed sed passes may turn out to be very hard
5660# to maintain later. In this particular case, you just have to be careful
5661# not to nest @if/@endif pairs, because configure will not warn you at all.
5662
5663# Check whether --enable-bootstrap or --disable-bootstrap was given.
5664if test "${enable_bootstrap+set}" = set; then
5665 enableval="$enable_bootstrap"
5666
5667else
5668 enable_bootstrap=default
5669fi;
5670
5671# Issue errors and warnings for invalid/strange bootstrap combinations.
5672case "$configdirs" in
5673 *gcc*) have_compiler=yes ;;
5674 *) have_compiler=no ;;
5675esac
5676
5677case "$have_compiler:$host:$target:$enable_bootstrap" in
5678 *:*:*:no) ;;
5679
5680 # Default behavior. Enable bootstrap if we have a compiler
5681 # and we are in a native configuration.
5682 yes:$build:$build:default)
5683 enable_bootstrap=yes ;;
5684
5685 *:*:*:default)
5686 enable_bootstrap=no ;;
5687
5688 # We have a compiler and we are in a native configuration, bootstrap is ok
5689 yes:$build:$build:yes)
5690 ;;
5691
5692 # Other configurations, but we have a compiler. Assume the user knows
5693 # what he's doing.
5694 yes:*:*:yes)
5695 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5696echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5697 ;;
5698
5699 # No compiler: if they passed --enable-bootstrap explicitly, fail
5700 no:*:*:yes)
5701 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5702echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5703 { (exit 1); exit 1; }; } ;;
5704
5705 # Fail if wrong command line
5706 *)
5707 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5708echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5709 { (exit 1); exit 1; }; }
5710 ;;
5711esac
5712
5713# Adjust the toplevel makefile according to whether bootstrap was selected.
5714case "$enable_bootstrap" in
5715 yes)
5716 bootstrap_suffix=bootstrap ;;
5717 no)
5718 bootstrap_suffix=no-bootstrap ;;
5719esac
5720
5721for module in ${build_configdirs} ; do
5722 if test -z "${no_recursion}" \
5723 && test -f ${build_subdir}/${module}/Makefile; then
5724 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5725 rm -f ${build_subdir}/${module}/Makefile
5726 fi
5727 extrasub="$extrasub
5728/^@if build-$module\$/d
5729/^@endif build-$module\$/d
5730/^@if build-$module-$bootstrap_suffix\$/d
5731/^@endif build-$module-$bootstrap_suffix\$/d"
5732done
5733for module in ${configdirs} ; do
5734 if test -z "${no_recursion}"; then
5735 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5736 if test -f ${file}; then
5737 echo 1>&2 "*** removing ${file} to force reconfigure"
5738 rm -f ${file}
5739 fi
5740 done
5741 fi
5742 extrasub="$extrasub
5743/^@if $module\$/d
5744/^@endif $module\$/d
5745/^@if $module-$bootstrap_suffix\$/d
5746/^@endif $module-$bootstrap_suffix\$/d"
5747done
5748for module in ${target_configdirs} ; do
5749 if test -z "${no_recursion}" \
5750 && test -f ${target_subdir}/${module}/Makefile; then
5751 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5752 rm -f ${target_subdir}/${module}/Makefile
5753 fi
5754 extrasub="$extrasub
5755/^@if target-$module\$/d
5756/^@endif target-$module\$/d
5757/^@if target-$module-$bootstrap_suffix\$/d
5758/^@endif target-$module-$bootstrap_suffix\$/d"
5759done
5760
5761extrasub="$extrasub
5762/^@if /,/^@endif /d"
5763
5764# Create the serialization dependencies. This uses a temporary file.
5765
5766# Check whether --enable-serial-configure or --disable-serial-configure was given.
5767if test "${enable_serial_configure+set}" = set; then
5768 enableval="$enable_serial_configure"
5769
5770fi;
5771
5772case ${enable_serial_configure} in
5773 yes)
5774 enable_serial_build_configure=yes
5775 enable_serial_host_configure=yes
5776 enable_serial_target_configure=yes
5777 ;;
5778esac
5779
5780# These force 'configure's to be done one at a time, to avoid problems
5781# with contention over a shared config.cache.
5782rm -f serdep.tmp
5783echo '# serdep.tmp' > serdep.tmp
5784olditem=
5785test "x${enable_serial_build_configure}" = xyes &&
5786for item in ${build_configdirs} ; do
5787 case ${olditem} in
5788 "") ;;
5789 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5790 esac
5791 olditem=${item}
5792done
5793olditem=
5794test "x${enable_serial_host_configure}" = xyes &&
5795for item in ${configdirs} ; do
5796 case ${olditem} in
5797 "") ;;
5798 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5799 esac
5800 olditem=${item}
5801done
5802olditem=
5803test "x${enable_serial_target_configure}" = xyes &&
5804for item in ${target_configdirs} ; do
5805 case ${olditem} in
5806 "") ;;
5807 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5808 esac
5809 olditem=${item}
5810done
5811serialization_dependencies=serdep.tmp
5812
5813
5814# Base args. Strip norecursion, cache-file, srcdir, host, build,
5815# target, nonopt, and variable assignments. These are the ones we
5816# might not want to pass down to subconfigures. Also strip
5817# program-prefix, program-suffix, and program-transform-name, so that
5818# we can pass down a consistent program-transform-name.
5819baseargs=
5820keep_next=no
5821skip_next=no
5822eval "set -- $ac_configure_args"
5823for ac_arg
5824do
5825 if test X"$skip_next" = X"yes"; then
5826 skip_next=no
5827 continue
5828 fi
5829 if test X"$keep_next" = X"yes"; then
5830 case $ac_arg in
5831 *\'*)
5832 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5833 esac
5834 baseargs="$baseargs '$ac_arg'"
5835 keep_next=no
5836 continue
5837 fi
5838
5839 # Handle separated arguments. Based on the logic generated by
5840 # autoconf 2.59.
5841 case $ac_arg in
5842 *=* | --config-cache | -C | -disable-* | --disable-* \
5843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5845 | -with-* | --with-* | -without-* | --without-* | --x)
5846 separate_arg=no
5847 ;;
5848 -*)
5849 separate_arg=yes
5850 ;;
5851 *)
5852 separate_arg=no
5853 ;;
5854 esac
5855
5856 case "$ac_arg" in
5857 --no*)
5858 continue
5859 ;;
5860 --c* | \
5861 --sr* | \
5862 --ho* | \
5863 --bu* | \
5864 --t* | \
5865 --program-* | \
5866 -cache_file* | \
5867 -srcdir* | \
5868 -host* | \
5869 -build* | \
5870 -target* | \
5871 -program-prefix* | \
5872 -program-suffix* | \
5873 -program-transform-name* )
5874 skip_next=$separate_arg
5875 continue
5876 ;;
5877 -*)
5878 # An option. Add it.
5879 case $ac_arg in
5880 *\'*)
5881 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5882 esac
5883 baseargs="$baseargs '$ac_arg'"
5884 keep_next=$separate_arg
5885 ;;
5886 *)
5887 # Either a variable assignment, or a nonopt (triplet). Don't
5888 # pass it down; let the Makefile handle this.
5889 continue
5890 ;;
5891 esac
5892done
5893# Remove the initial space we just introduced and, as these will be
5894# expanded by make, quote '$'.
5895baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5896
5897# Add in --program-transform-name, after --program-prefix and
5898# --program-suffix have been applied to it. Autoconf has already
5899# doubled dollar signs and backslashes in program_transform_name; we want
5900# the backslashes un-doubled, and then the entire thing wrapped in single
5901# quotes, because this will be expanded first by make and then by the shell.
5902# Also, because we want to override the logic in subdir configure scripts to
5903# choose program_transform_name, replace any s,x,x, with s,y,y,.
5904sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5905${program_transform_name}
5906EOF_SED
5907gcc_transform_name=`cat conftestsed.out`
5908rm -f conftestsed.out
5909baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5910if test "$silent" = yes; then
5911 baseargs="$baseargs --silent"
5912fi
5913
5914# For the build-side libraries, we just need to pretend we're native,
5915# and not use the same cache file. Multilibs are neither needed nor
5916# desired.
5917build_configargs="--cache-file=../config.cache ${baseargs}"
5918
5919# For host modules, accept cache file option, or specification as blank.
5920case "${cache_file}" in
5921"") # empty
5922 cache_file_option="" ;;
5923/* | [A-Za-z]:[\\/]* ) # absolute path
5924 cache_file_option="--cache-file=${cache_file}" ;;
5925*) # relative path
5926 cache_file_option="--cache-file=../${cache_file}" ;;
5927esac
5928
5929# Host dirs don't like to share a cache file either, horribly enough.
5930# This seems to be due to autoconf 2.5x stupidity.
5931host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5932
5933target_configargs=${baseargs}
5934
5935# Passing a --with-cross-host argument lets the target libraries know
5936# whether they are being built with a cross-compiler or being built
5937# native. However, it would be better to use other mechanisms to make the
5938# sorts of decisions they want to make on this basis. Please consider
5939# this option to be deprecated. FIXME.
5940if test x${is_cross_compiler} = xyes ; then
5941 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5942fi
5943
5944# Default to --enable-multilib.
5945if test x${enable_multilib} = x ; then
5946 target_configargs="--enable-multilib ${target_configargs}"
5947fi
5948
5949# Pass --with-newlib if appropriate. Note that target_configdirs has
5950# changed from the earlier setting of with_newlib.
5951if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5952 target_configargs="--with-newlib ${target_configargs}"
5953fi
5954
5955# Different target subdirs use different values of certain variables
5956# (notably CXX). Worse, multilibs use *lots* of different values.
5957# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5958# it doesn't automatically accept command-line overrides of them.
5959# This means it's not safe for target subdirs to share a cache file,
5960# which is disgusting, but there you have it. Hopefully this can be
5961# fixed in future. It's still worthwhile to use a cache file for each
5962# directory. I think.
5963
5964# Pass the appropriate --build, --host, --target and --cache-file arguments.
5965# We need to pass --target, as newer autoconf's requires consistency
5966# for target_alias and gcc doesn't manage it consistently.
5967target_configargs="--cache-file=./config.cache ${target_configargs}"
5968
5969FLAGS_FOR_TARGET=
5970case " $target_configdirs " in
5971 *" newlib "*)
5972 case " $target_configargs " in
5973 *" --with-newlib "*)
5974 case "$target" in
5975 *-cygwin*)
5976 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' ;;
5977 esac
5978
5979 # If we're not building GCC, don't discard standard headers.
5980 if test -d ${srcdir}/gcc; then
5981 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5982
5983 if test "${build}" != "${host}"; then
5984 # On Canadian crosses, CC_FOR_TARGET will have already been set
5985 # by `configure', so we won't have an opportunity to add -Bgcc/
5986 # to it. This is right: we don't want to search that directory
5987 # for binaries, but we want the header files in there, so add
5988 # them explicitly.
5989 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5990
5991 # Someone might think of using the pre-installed headers on
5992 # Canadian crosses, in case the installed compiler is not fully
5993 # compatible with the compiler being built. In this case, it
5994 # would be better to flag an error than risking having
5995 # incompatible object files being constructed. We can't
5996 # guarantee that an error will be flagged, but let's hope the
5997 # compiler will do it, when presented with incompatible header
5998 # files.
5999 fi
6000 fi
6001
6002 case "${target}-${is_cross_compiler}" in
6003 i[3456789]86-*-linux*-no)
6004 # Here host == target, so we don't need to build gcc,
6005 # so we don't want to discard standard headers.
6006 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6007 ;;
6008 *)
6009 # If we're building newlib, use its generic headers last, but search
6010 # for any libc-related directories first (so make it the last -B
6011 # switch).
6012 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6013
6014 # If we're building libgloss, find the startup file, simulator library
6015 # and linker script.
6016 case " $target_configdirs " in
6017 *" libgloss "*)
6018 # Look for startup file, simulator library and maybe linker script.
6019 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6020 # Look for libnosys.a in case the target needs it.
6021 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6022 # Most targets have the linker script in the source directory.
6023 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6024 ;;
6025 esac
6026 ;;
6027 esac
6028 ;;
6029 esac
6030 ;;
6031esac
6032case "$target" in
6033*-mingw*)
6034 # Can't be handled as Cygwin above since Mingw does not use newlib.
6035 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' ;;
6036esac
6037
6038# Allow the user to override the flags for
6039# our build compiler if desired.
6040if test x"${build}" = x"${host}" ; then
6041 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6042 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
6043 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6044 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6045fi
6046
6047# On Canadian crosses, we'll be searching the right directories for
6048# the previously-installed cross compiler, so don't bother to add
6049# flags for directories within the install tree of the compiler
6050# being built; programs in there won't even run.
6051if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6052 # Search for pre-installed headers if nothing else fits.
6053 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6054fi
6055
6056if test "x${use_gnu_ld}" = x &&
6057 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6058 # Arrange for us to find uninstalled linker scripts.
6059 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6060fi
6061
6062# Search for other target-specific linker scripts and such.
6063case "${target}" in
6064 mep*)
6065 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6066 ;;
6067esac
6068
6069# Makefile fragments.
6070for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6071do
6072 eval fragval=\$$frag
6073 if test $fragval != /dev/null; then
6074 eval $frag=${srcdir}/$fragval
6075 fi
6076done
6077
6078
6079
6080
6081
6082# Miscellanea: directories, flags, etc.
6083
6084
6085
6086
6087
6088
6089
6090
6091# Build module lists & subconfigure args.
6092
6093
6094
6095# Host module lists & subconfigure args.
6096
6097
6098
6099# Target module lists & subconfigure args.
6100
6101
6102
6103# Build tools.
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122# Generate default definitions for YACC, M4, LEX and other programs that run
6123# on the build machine. These are used if the Makefile can't locate these
6124# programs in objdir.
6125MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6126
6127for ac_prog in 'bison -y' byacc yacc
6128do
6129 # Extract the first word of "$ac_prog", so it can be a program name with args.
6130set dummy $ac_prog; ac_word=$2
6131echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133if test "${ac_cv_prog_YACC+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136 if test -n "$YACC"; then
6137 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_YACC="$ac_prog"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150done
6151done
6152
6153fi
6154fi
6155YACC=$ac_cv_prog_YACC
6156if test -n "$YACC"; then
6157 echo "$as_me:$LINENO: result: $YACC" >&5
6158echo "${ECHO_T}$YACC" >&6
6159else
6160 echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6
6162fi
6163
6164 test -n "$YACC" && break
6165done
6166test -n "$YACC" || YACC="$MISSING bison -y"
6167
6168case " $build_configdirs " in
6169 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6170 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6171esac
6172
6173for ac_prog in bison
6174do
6175 # Extract the first word of "$ac_prog", so it can be a program name with args.
6176set dummy $ac_prog; ac_word=$2
6177echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6179if test "${ac_cv_prog_BISON+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182 if test -n "$BISON"; then
6183 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_BISON="$ac_prog"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196done
6197done
6198
6199fi
6200fi
6201BISON=$ac_cv_prog_BISON
6202if test -n "$BISON"; then
6203 echo "$as_me:$LINENO: result: $BISON" >&5
6204echo "${ECHO_T}$BISON" >&6
6205else
6206 echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6
6208fi
6209
6210 test -n "$BISON" && break
6211done
6212test -n "$BISON" || BISON="$MISSING bison"
6213
6214case " $build_configdirs " in
6215 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6216esac
6217
6218for ac_prog in gm4 gnum4 m4
6219do
6220 # Extract the first word of "$ac_prog", so it can be a program name with args.
6221set dummy $ac_prog; ac_word=$2
6222echo "$as_me:$LINENO: checking for $ac_word" >&5
6223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6224if test "${ac_cv_prog_M4+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 if test -n "$M4"; then
6228 ac_cv_prog_M4="$M4" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237 ac_cv_prog_M4="$ac_prog"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241done
6242done
6243
6244fi
6245fi
6246M4=$ac_cv_prog_M4
6247if test -n "$M4"; then
6248 echo "$as_me:$LINENO: result: $M4" >&5
6249echo "${ECHO_T}$M4" >&6
6250else
6251 echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6
6253fi
6254
6255 test -n "$M4" && break
6256done
6257test -n "$M4" || M4="$MISSING m4"
6258
6259case " $build_configdirs " in
6260 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6261esac
6262
6263for ac_prog in flex lex
6264do
6265 # Extract the first word of "$ac_prog", so it can be a program name with args.
6266set dummy $ac_prog; ac_word=$2
6267echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6269if test "${ac_cv_prog_LEX+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272 if test -n "$LEX"; then
6273 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282 ac_cv_prog_LEX="$ac_prog"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286done
6287done
6288
6289fi
6290fi
6291LEX=$ac_cv_prog_LEX
6292if test -n "$LEX"; then
6293 echo "$as_me:$LINENO: result: $LEX" >&5
6294echo "${ECHO_T}$LEX" >&6
6295else
6296 echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298fi
6299
6300 test -n "$LEX" && break
6301done
6302test -n "$LEX" || LEX="$MISSING flex"
6303
6304case " $build_configdirs " in
6305 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6306 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6307esac
6308
6309for ac_prog in flex
6310do
6311 # Extract the first word of "$ac_prog", so it can be a program name with args.
6312set dummy $ac_prog; ac_word=$2
6313echo "$as_me:$LINENO: checking for $ac_word" >&5
6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315if test "${ac_cv_prog_FLEX+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317else
6318 if test -n "$FLEX"; then
6319 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_FLEX="$ac_prog"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333done
6334
6335fi
6336fi
6337FLEX=$ac_cv_prog_FLEX
6338if test -n "$FLEX"; then
6339 echo "$as_me:$LINENO: result: $FLEX" >&5
6340echo "${ECHO_T}$FLEX" >&6
6341else
6342 echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6
6344fi
6345
6346 test -n "$FLEX" && break
6347done
6348test -n "$FLEX" || FLEX="$MISSING flex"
6349
6350case " $build_configdirs " in
6351 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6352esac
6353
6354for ac_prog in makeinfo
6355do
6356 # Extract the first word of "$ac_prog", so it can be a program name with args.
6357set dummy $ac_prog; ac_word=$2
6358echo "$as_me:$LINENO: checking for $ac_word" >&5
6359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6360if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363 if test -n "$MAKEINFO"; then
6364 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6365else
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373 ac_cv_prog_MAKEINFO="$ac_prog"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378done
6379
6380fi
6381fi
6382MAKEINFO=$ac_cv_prog_MAKEINFO
6383if test -n "$MAKEINFO"; then
6384 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6385echo "${ECHO_T}$MAKEINFO" >&6
6386else
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389fi
6390
6391 test -n "$MAKEINFO" && break
6392done
6393test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6394
6395case " $build_configdirs " in
6396 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6397 *)
6398
6399 # For an installed makeinfo, we require it to be from texinfo 4.6 or
6400 # higher, else we use the "missing" dummy.
6401 if ${MAKEINFO} --version \
6402 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6403 :
6404 else
6405 MAKEINFO="$MISSING makeinfo"
6406 fi
6407 ;;
6408
6409esac
6410
6411# FIXME: expect and dejagnu may become build tools?
6412
6413for ac_prog in expect
6414do
6415 # Extract the first word of "$ac_prog", so it can be a program name with args.
6416set dummy $ac_prog; ac_word=$2
6417echo "$as_me:$LINENO: checking for $ac_word" >&5
6418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6419if test "${ac_cv_prog_EXPECT+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422 if test -n "$EXPECT"; then
6423 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6424else
6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_EXPECT="$ac_prog"
6433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436done
6437done
6438
6439fi
6440fi
6441EXPECT=$ac_cv_prog_EXPECT
6442if test -n "$EXPECT"; then
6443 echo "$as_me:$LINENO: result: $EXPECT" >&5
6444echo "${ECHO_T}$EXPECT" >&6
6445else
6446 echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6
6448fi
6449
6450 test -n "$EXPECT" && break
6451done
6452test -n "$EXPECT" || EXPECT="expect"
6453
6454case " $configdirs " in
6455 *" expect "*)
6456 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6457 ;;
6458esac
6459
6460for ac_prog in runtest
6461do
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463set dummy $ac_prog; ac_word=$2
6464echo "$as_me:$LINENO: checking for $ac_word" >&5
6465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6466if test "${ac_cv_prog_RUNTEST+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469 if test -n "$RUNTEST"; then
6470 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_RUNTEST="$ac_prog"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483done
6484done
6485
6486fi
6487fi
6488RUNTEST=$ac_cv_prog_RUNTEST
6489if test -n "$RUNTEST"; then
6490 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6491echo "${ECHO_T}$RUNTEST" >&6
6492else
6493 echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6
6495fi
6496
6497 test -n "$RUNTEST" && break
6498done
6499test -n "$RUNTEST" || RUNTEST="runtest"
6500
6501case " $configdirs " in
6502 *" dejagnu "*)
6503 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6504 ;;
6505esac
6506
6507
6508# Host tools.
6509ncn_tool_prefix=
6510test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6511ncn_target_tool_prefix=
6512test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6513
6514
6515
6516if test -n "$AR"; then
6517 ac_cv_prog_AR=$AR
6518elif test -n "$ac_cv_prog_AR"; then
6519 AR=$ac_cv_prog_AR
6520fi
6521
6522if test -n "$ac_cv_prog_AR"; then
6523 for ncn_progname in ar; do
6524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6525set dummy ${ncn_progname}; ac_word=$2
6526echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528if test "${ac_cv_prog_AR+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 if test -n "$AR"; then
6532 ac_cv_prog_AR="$AR" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_AR="${ncn_progname}"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547
6548fi
6549fi
6550AR=$ac_cv_prog_AR
6551if test -n "$AR"; then
6552 echo "$as_me:$LINENO: result: $AR" >&5
6553echo "${ECHO_T}$AR" >&6
6554else
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557fi
6558
6559 done
6560fi
6561
6562for ncn_progname in ar; do
6563 if test -n "$ncn_tool_prefix"; then
6564 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6565set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6566echo "$as_me:$LINENO: checking for $ac_word" >&5
6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6568if test "${ac_cv_prog_AR+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586done
6587
6588fi
6589fi
6590AR=$ac_cv_prog_AR
6591if test -n "$AR"; then
6592 echo "$as_me:$LINENO: result: $AR" >&5
6593echo "${ECHO_T}$AR" >&6
6594else
6595 echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6
6597fi
6598
6599 fi
6600 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6602set dummy ${ncn_progname}; ac_word=$2
6603echo "$as_me:$LINENO: checking for $ac_word" >&5
6604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6605if test "${ac_cv_prog_AR+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608 if test -n "$AR"; then
6609 ac_cv_prog_AR="$AR" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_AR="${ncn_progname}"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622done
6623done
6624
6625fi
6626fi
6627AR=$ac_cv_prog_AR
6628if test -n "$AR"; then
6629 echo "$as_me:$LINENO: result: $AR" >&5
6630echo "${ECHO_T}$AR" >&6
6631else
6632 echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6
6634fi
6635
6636 fi
6637 test -n "$ac_cv_prog_AR" && break
6638done
6639
6640if test -z "$ac_cv_prog_AR" ; then
6641 set dummy ar
6642 if test $build = $host ; then
6643 AR="$2"
6644 else
6645 AR="${ncn_tool_prefix}$2"
6646 fi
6647fi
6648
6649
6650
6651if test -n "$AS"; then
6652 ac_cv_prog_AS=$AS
6653elif test -n "$ac_cv_prog_AS"; then
6654 AS=$ac_cv_prog_AS
6655fi
6656
6657if test -n "$ac_cv_prog_AS"; then
6658 for ncn_progname in as; do
6659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6660set dummy ${ncn_progname}; ac_word=$2
6661echo "$as_me:$LINENO: checking for $ac_word" >&5
6662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6663if test "${ac_cv_prog_AS+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 if test -n "$AS"; then
6667 ac_cv_prog_AS="$AS" # Let the user override the test.
6668else
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_AS="${ncn_progname}"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6679 fi
6680done
6681done
6682
6683fi
6684fi
6685AS=$ac_cv_prog_AS
6686if test -n "$AS"; then
6687 echo "$as_me:$LINENO: result: $AS" >&5
6688echo "${ECHO_T}$AS" >&6
6689else
6690 echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6
6692fi
6693
6694 done
6695fi
6696
6697for ncn_progname in as; do
6698 if test -n "$ncn_tool_prefix"; then
6699 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6700set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6701echo "$as_me:$LINENO: checking for $ac_word" >&5
6702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6703if test "${ac_cv_prog_AS+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706 if test -n "$AS"; then
6707 ac_cv_prog_AS="$AS" # Let the user override the test.
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720done
6721done
6722
6723fi
6724fi
6725AS=$ac_cv_prog_AS
6726if test -n "$AS"; then
6727 echo "$as_me:$LINENO: result: $AS" >&5
6728echo "${ECHO_T}$AS" >&6
6729else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732fi
6733
6734 fi
6735 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6737set dummy ${ncn_progname}; ac_word=$2
6738echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6740if test "${ac_cv_prog_AS+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 if test -n "$AS"; then
6744 ac_cv_prog_AS="$AS" # Let the user override the test.
6745else
6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_AS="${ncn_progname}"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757done
6758done
6759
6760fi
6761fi
6762AS=$ac_cv_prog_AS
6763if test -n "$AS"; then
6764 echo "$as_me:$LINENO: result: $AS" >&5
6765echo "${ECHO_T}$AS" >&6
6766else
6767 echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6
6769fi
6770
6771 fi
6772 test -n "$ac_cv_prog_AS" && break
6773done
6774
6775if test -z "$ac_cv_prog_AS" ; then
6776 set dummy as
6777 if test $build = $host ; then
6778 AS="$2"
6779 else
6780 AS="${ncn_tool_prefix}$2"
6781 fi
6782fi
6783
6784
6785
6786if test -n "$DLLTOOL"; then
6787 ac_cv_prog_DLLTOOL=$DLLTOOL
6788elif test -n "$ac_cv_prog_DLLTOOL"; then
6789 DLLTOOL=$ac_cv_prog_DLLTOOL
6790fi
6791
6792if test -n "$ac_cv_prog_DLLTOOL"; then
6793 for ncn_progname in dlltool; do
6794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6795set dummy ${ncn_progname}; ac_word=$2
6796echo "$as_me:$LINENO: checking for $ac_word" >&5
6797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6798if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801 if test -n "$DLLTOOL"; then
6802 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_DLLTOOL="${ncn_progname}"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815done
6816done
6817
6818fi
6819fi
6820DLLTOOL=$ac_cv_prog_DLLTOOL
6821if test -n "$DLLTOOL"; then
6822 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6823echo "${ECHO_T}$DLLTOOL" >&6
6824else
6825 echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6
6827fi
6828
6829 done
6830fi
6831
6832for ncn_progname in dlltool; do
6833 if test -n "$ncn_tool_prefix"; then
6834 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6835set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6836echo "$as_me:$LINENO: checking for $ac_word" >&5
6837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6838if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840else
6841 if test -n "$DLLTOOL"; then
6842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855done
6856done
6857
6858fi
6859fi
6860DLLTOOL=$ac_cv_prog_DLLTOOL
6861if test -n "$DLLTOOL"; then
6862 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6863echo "${ECHO_T}$DLLTOOL" >&6
6864else
6865 echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6
6867fi
6868
6869 fi
6870 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6872set dummy ${ncn_progname}; ac_word=$2
6873echo "$as_me:$LINENO: checking for $ac_word" >&5
6874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6875if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878 if test -n "$DLLTOOL"; then
6879 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_DLLTOOL="${ncn_progname}"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892done
6893done
6894
6895fi
6896fi
6897DLLTOOL=$ac_cv_prog_DLLTOOL
6898if test -n "$DLLTOOL"; then
6899 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6900echo "${ECHO_T}$DLLTOOL" >&6
6901else
6902 echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6
6904fi
6905
6906 fi
6907 test -n "$ac_cv_prog_DLLTOOL" && break
6908done
6909
6910if test -z "$ac_cv_prog_DLLTOOL" ; then
6911 set dummy dlltool
6912 if test $build = $host ; then
6913 DLLTOOL="$2"
6914 else
6915 DLLTOOL="${ncn_tool_prefix}$2"
6916 fi
6917fi
6918
6919
6920
6921if test -n "$LD"; then
6922 ac_cv_prog_LD=$LD
6923elif test -n "$ac_cv_prog_LD"; then
6924 LD=$ac_cv_prog_LD
6925fi
6926
6927if test -n "$ac_cv_prog_LD"; then
6928 for ncn_progname in ld; do
6929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6930set dummy ${ncn_progname}; ac_word=$2
6931echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6933if test "${ac_cv_prog_LD+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936 if test -n "$LD"; then
6937 ac_cv_prog_LD="$LD" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_LD="${ncn_progname}"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950done
6951done
6952
6953fi
6954fi
6955LD=$ac_cv_prog_LD
6956if test -n "$LD"; then
6957 echo "$as_me:$LINENO: result: $LD" >&5
6958echo "${ECHO_T}$LD" >&6
6959else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962fi
6963
6964 done
6965fi
6966
6967for ncn_progname in ld; do
6968 if test -n "$ncn_tool_prefix"; then
6969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6970set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6971echo "$as_me:$LINENO: checking for $ac_word" >&5
6972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6973if test "${ac_cv_prog_LD+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976 if test -n "$LD"; then
6977 ac_cv_prog_LD="$LD" # Let the user override the test.
6978else
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990done
6991done
6992
6993fi
6994fi
6995LD=$ac_cv_prog_LD
6996if test -n "$LD"; then
6997 echo "$as_me:$LINENO: result: $LD" >&5
6998echo "${ECHO_T}$LD" >&6
6999else
7000 echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6
7002fi
7003
7004 fi
7005 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7007set dummy ${ncn_progname}; ac_word=$2
7008echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7010if test "${ac_cv_prog_LD+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013 if test -n "$LD"; then
7014 ac_cv_prog_LD="$LD" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_LD="${ncn_progname}"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028done
7029
7030fi
7031fi
7032LD=$ac_cv_prog_LD
7033if test -n "$LD"; then
7034 echo "$as_me:$LINENO: result: $LD" >&5
7035echo "${ECHO_T}$LD" >&6
7036else
7037 echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6
7039fi
7040
7041 fi
7042 test -n "$ac_cv_prog_LD" && break
7043done
7044
7045if test -z "$ac_cv_prog_LD" ; then
7046 set dummy ld
7047 if test $build = $host ; then
7048 LD="$2"
7049 else
7050 LD="${ncn_tool_prefix}$2"
7051 fi
7052fi
7053
7054
7055
7056if test -n "$LIPO"; then
7057 ac_cv_prog_LIPO=$LIPO
7058elif test -n "$ac_cv_prog_LIPO"; then
7059 LIPO=$ac_cv_prog_LIPO
7060fi
7061
7062if test -n "$ac_cv_prog_LIPO"; then
7063 for ncn_progname in lipo; do
7064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7065set dummy ${ncn_progname}; ac_word=$2
7066echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068if test "${ac_cv_prog_LIPO+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 if test -n "$LIPO"; then
7072 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_LIPO="${ncn_progname}"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086done
7087
7088fi
7089fi
7090LIPO=$ac_cv_prog_LIPO
7091if test -n "$LIPO"; then
7092 echo "$as_me:$LINENO: result: $LIPO" >&5
7093echo "${ECHO_T}$LIPO" >&6
7094else
7095 echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6
7097fi
7098
7099 done
7100fi
7101
7102for ncn_progname in lipo; do
7103 if test -n "$ncn_tool_prefix"; then
7104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7105set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7106echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108if test "${ac_cv_prog_LIPO+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 if test -n "$LIPO"; then
7112 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126done
7127
7128fi
7129fi
7130LIPO=$ac_cv_prog_LIPO
7131if test -n "$LIPO"; then
7132 echo "$as_me:$LINENO: result: $LIPO" >&5
7133echo "${ECHO_T}$LIPO" >&6
7134else
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
7137fi
7138
7139 fi
7140 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7142set dummy ${ncn_progname}; ac_word=$2
7143echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145if test "${ac_cv_prog_LIPO+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 if test -n "$LIPO"; then
7149 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_LIPO="${ncn_progname}"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7161 fi
7162done
7163done
7164
7165fi
7166fi
7167LIPO=$ac_cv_prog_LIPO
7168if test -n "$LIPO"; then
7169 echo "$as_me:$LINENO: result: $LIPO" >&5
7170echo "${ECHO_T}$LIPO" >&6
7171else
7172 echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6
7174fi
7175
7176 fi
7177 test -n "$ac_cv_prog_LIPO" && break
7178done
7179
7180if test -z "$ac_cv_prog_LIPO" ; then
7181 set dummy lipo
7182 if test $build = $host ; then
7183 LIPO="$2"
7184 else
7185 LIPO="${ncn_tool_prefix}$2"
7186 fi
7187fi
7188
7189
7190
7191if test -n "$NM"; then
7192 ac_cv_prog_NM=$NM
7193elif test -n "$ac_cv_prog_NM"; then
7194 NM=$ac_cv_prog_NM
7195fi
7196
7197if test -n "$ac_cv_prog_NM"; then
7198 for ncn_progname in nm; do
7199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7200set dummy ${ncn_progname}; ac_word=$2
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203if test "${ac_cv_prog_NM+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206 if test -n "$NM"; then
7207 ac_cv_prog_NM="$NM" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_NM="${ncn_progname}"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221done
7222
7223fi
7224fi
7225NM=$ac_cv_prog_NM
7226if test -n "$NM"; then
7227 echo "$as_me:$LINENO: result: $NM" >&5
7228echo "${ECHO_T}$NM" >&6
7229else
7230 echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
7232fi
7233
7234 done
7235fi
7236
7237for ncn_progname in nm; do
7238 if test -n "$ncn_tool_prefix"; then
7239 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7240set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7241echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7243if test "${ac_cv_prog_NM+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246 if test -n "$NM"; then
7247 ac_cv_prog_NM="$NM" # Let the user override the test.
7248else
7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262
7263fi
7264fi
7265NM=$ac_cv_prog_NM
7266if test -n "$NM"; then
7267 echo "$as_me:$LINENO: result: $NM" >&5
7268echo "${ECHO_T}$NM" >&6
7269else
7270 echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6
7272fi
7273
7274 fi
7275 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7277set dummy ${ncn_progname}; ac_word=$2
7278echo "$as_me:$LINENO: checking for $ac_word" >&5
7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7280if test "${ac_cv_prog_NM+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282else
7283 if test -n "$NM"; then
7284 ac_cv_prog_NM="$NM" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_NM="${ncn_progname}"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297done
7298done
7299
7300fi
7301fi
7302NM=$ac_cv_prog_NM
7303if test -n "$NM"; then
7304 echo "$as_me:$LINENO: result: $NM" >&5
7305echo "${ECHO_T}$NM" >&6
7306else
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
7309fi
7310
7311 fi
7312 test -n "$ac_cv_prog_NM" && break
7313done
7314
7315if test -z "$ac_cv_prog_NM" ; then
7316 set dummy nm
7317 if test $build = $host ; then
7318 NM="$2"
7319 else
7320 NM="${ncn_tool_prefix}$2"
7321 fi
7322fi
7323
7324
7325
7326if test -n "$RANLIB"; then
7327 ac_cv_prog_RANLIB=$RANLIB
7328elif test -n "$ac_cv_prog_RANLIB"; then
7329 RANLIB=$ac_cv_prog_RANLIB
7330fi
7331
7332if test -n "$ac_cv_prog_RANLIB"; then
7333 for ncn_progname in ranlib; do
7334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7335set dummy ${ncn_progname}; ac_word=$2
7336echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338if test "${ac_cv_prog_RANLIB+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341 if test -n "$RANLIB"; then
7342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_RANLIB="${ncn_progname}"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356done
7357
7358fi
7359fi
7360RANLIB=$ac_cv_prog_RANLIB
7361if test -n "$RANLIB"; then
7362 echo "$as_me:$LINENO: result: $RANLIB" >&5
7363echo "${ECHO_T}$RANLIB" >&6
7364else
7365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
7367fi
7368
7369 done
7370fi
7371
7372for ncn_progname in ranlib; do
7373 if test -n "$ncn_tool_prefix"; then
7374 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7375set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7376echo "$as_me:$LINENO: checking for $ac_word" >&5
7377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7378if test "${ac_cv_prog_RANLIB+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 if test -n "$RANLIB"; then
7382 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7383else
7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385for as_dir in $PATH
7386do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395done
7396done
7397
7398fi
7399fi
7400RANLIB=$ac_cv_prog_RANLIB
7401if test -n "$RANLIB"; then
7402 echo "$as_me:$LINENO: result: $RANLIB" >&5
7403echo "${ECHO_T}$RANLIB" >&6
7404else
7405 echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6
7407fi
7408
7409 fi
7410 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7412set dummy ${ncn_progname}; ac_word=$2
7413echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415if test "${ac_cv_prog_RANLIB+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418 if test -n "$RANLIB"; then
7419 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7420else
7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_RANLIB="${ncn_progname}"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432done
7433done
7434
7435fi
7436fi
7437RANLIB=$ac_cv_prog_RANLIB
7438if test -n "$RANLIB"; then
7439 echo "$as_me:$LINENO: result: $RANLIB" >&5
7440echo "${ECHO_T}$RANLIB" >&6
7441else
7442 echo "$as_me:$LINENO: result: no" >&5
7443echo "${ECHO_T}no" >&6
7444fi
7445
7446 fi
7447 test -n "$ac_cv_prog_RANLIB" && break
7448done
7449
7450if test -z "$ac_cv_prog_RANLIB" ; then
7451 RANLIB=":"
7452fi
7453
7454
7455
7456if test -n "$STRIP"; then
7457 ac_cv_prog_STRIP=$STRIP
7458elif test -n "$ac_cv_prog_STRIP"; then
7459 STRIP=$ac_cv_prog_STRIP
7460fi
7461
7462if test -n "$ac_cv_prog_STRIP"; then
7463 for ncn_progname in strip; do
7464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7465set dummy ${ncn_progname}; ac_word=$2
7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468if test "${ac_cv_prog_STRIP+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 if test -n "$STRIP"; then
7472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_STRIP="${ncn_progname}"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487
7488fi
7489fi
7490STRIP=$ac_cv_prog_STRIP
7491if test -n "$STRIP"; then
7492 echo "$as_me:$LINENO: result: $STRIP" >&5
7493echo "${ECHO_T}$STRIP" >&6
7494else
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
7497fi
7498
7499 done
7500fi
7501
7502for ncn_progname in strip; do
7503 if test -n "$ncn_tool_prefix"; then
7504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7506echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508if test "${ac_cv_prog_STRIP+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 if test -n "$STRIP"; then
7512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525done
7526done
7527
7528fi
7529fi
7530STRIP=$ac_cv_prog_STRIP
7531if test -n "$STRIP"; then
7532 echo "$as_me:$LINENO: result: $STRIP" >&5
7533echo "${ECHO_T}$STRIP" >&6
7534else
7535 echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6
7537fi
7538
7539 fi
7540 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7542set dummy ${ncn_progname}; ac_word=$2
7543echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545if test "${ac_cv_prog_STRIP+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 if test -n "$STRIP"; then
7549 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_STRIP="${ncn_progname}"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
7563done
7564
7565fi
7566fi
7567STRIP=$ac_cv_prog_STRIP
7568if test -n "$STRIP"; then
7569 echo "$as_me:$LINENO: result: $STRIP" >&5
7570echo "${ECHO_T}$STRIP" >&6
7571else
7572 echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574fi
7575
7576 fi
7577 test -n "$ac_cv_prog_STRIP" && break
7578done
7579
7580if test -z "$ac_cv_prog_STRIP" ; then
7581 STRIP=":"
7582fi
7583
7584
7585
7586if test -n "$WINDRES"; then
7587 ac_cv_prog_WINDRES=$WINDRES
7588elif test -n "$ac_cv_prog_WINDRES"; then
7589 WINDRES=$ac_cv_prog_WINDRES
7590fi
7591
7592if test -n "$ac_cv_prog_WINDRES"; then
7593 for ncn_progname in windres; do
7594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7595set dummy ${ncn_progname}; ac_word=$2
7596echo "$as_me:$LINENO: checking for $ac_word" >&5
7597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7598if test "${ac_cv_prog_WINDRES+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600else
7601 if test -n "$WINDRES"; then
7602 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7603else
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611 ac_cv_prog_WINDRES="${ncn_progname}"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616done
7617
7618fi
7619fi
7620WINDRES=$ac_cv_prog_WINDRES
7621if test -n "$WINDRES"; then
7622 echo "$as_me:$LINENO: result: $WINDRES" >&5
7623echo "${ECHO_T}$WINDRES" >&6
7624else
7625 echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6
7627fi
7628
7629 done
7630fi
7631
7632for ncn_progname in windres; do
7633 if test -n "$ncn_tool_prefix"; then
7634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7635set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7636echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7638if test "${ac_cv_prog_WINDRES+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641 if test -n "$WINDRES"; then
7642 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655done
7656done
7657
7658fi
7659fi
7660WINDRES=$ac_cv_prog_WINDRES
7661if test -n "$WINDRES"; then
7662 echo "$as_me:$LINENO: result: $WINDRES" >&5
7663echo "${ECHO_T}$WINDRES" >&6
7664else
7665 echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667fi
7668
7669 fi
7670 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7672set dummy ${ncn_progname}; ac_word=$2
7673echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7675if test "${ac_cv_prog_WINDRES+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 if test -n "$WINDRES"; then
7679 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688 ac_cv_prog_WINDRES="${ncn_progname}"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692done
7693done
7694
7695fi
7696fi
7697WINDRES=$ac_cv_prog_WINDRES
7698if test -n "$WINDRES"; then
7699 echo "$as_me:$LINENO: result: $WINDRES" >&5
7700echo "${ECHO_T}$WINDRES" >&6
7701else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704fi
7705
7706 fi
7707 test -n "$ac_cv_prog_WINDRES" && break
7708done
7709
7710if test -z "$ac_cv_prog_WINDRES" ; then
7711 set dummy windres
7712 if test $build = $host ; then
7713 WINDRES="$2"
7714 else
7715 WINDRES="${ncn_tool_prefix}$2"
7716 fi
7717fi
7718
7719
7720
7721if test -n "$WINDMC"; then
7722 ac_cv_prog_WINDMC=$WINDMC
7723elif test -n "$ac_cv_prog_WINDMC"; then
7724 WINDMC=$ac_cv_prog_WINDMC
7725fi
7726
7727if test -n "$ac_cv_prog_WINDMC"; then
7728 for ncn_progname in windmc; do
7729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7730set dummy ${ncn_progname}; ac_word=$2
7731echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7733if test "${ac_cv_prog_WINDMC+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736 if test -n "$WINDMC"; then
7737 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_WINDMC="${ncn_progname}"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751done
7752
7753fi
7754fi
7755WINDMC=$ac_cv_prog_WINDMC
7756if test -n "$WINDMC"; then
7757 echo "$as_me:$LINENO: result: $WINDMC" >&5
7758echo "${ECHO_T}$WINDMC" >&6
7759else
7760 echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6
7762fi
7763
7764 done
7765fi
7766
7767for ncn_progname in windmc; do
7768 if test -n "$ncn_tool_prefix"; then
7769 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7770set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7771echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7773if test "${ac_cv_prog_WINDMC+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 if test -n "$WINDMC"; then
7777 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790done
7791done
7792
7793fi
7794fi
7795WINDMC=$ac_cv_prog_WINDMC
7796if test -n "$WINDMC"; then
7797 echo "$as_me:$LINENO: result: $WINDMC" >&5
7798echo "${ECHO_T}$WINDMC" >&6
7799else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802fi
7803
7804 fi
7805 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7807set dummy ${ncn_progname}; ac_word=$2
7808echo "$as_me:$LINENO: checking for $ac_word" >&5
7809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7810if test "${ac_cv_prog_WINDMC+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 if test -n "$WINDMC"; then
7814 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823 ac_cv_prog_WINDMC="${ncn_progname}"
7824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7826 fi
7827done
7828done
7829
7830fi
7831fi
7832WINDMC=$ac_cv_prog_WINDMC
7833if test -n "$WINDMC"; then
7834 echo "$as_me:$LINENO: result: $WINDMC" >&5
7835echo "${ECHO_T}$WINDMC" >&6
7836else
7837 echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6
7839fi
7840
7841 fi
7842 test -n "$ac_cv_prog_WINDMC" && break
7843done
7844
7845if test -z "$ac_cv_prog_WINDMC" ; then
7846 set dummy windmc
7847 if test $build = $host ; then
7848 WINDMC="$2"
7849 else
7850 WINDMC="${ncn_tool_prefix}$2"
7851 fi
7852fi
7853
7854
7855
7856if test -n "$OBJCOPY"; then
7857 ac_cv_prog_OBJCOPY=$OBJCOPY
7858elif test -n "$ac_cv_prog_OBJCOPY"; then
7859 OBJCOPY=$ac_cv_prog_OBJCOPY
7860fi
7861
7862if test -n "$ac_cv_prog_OBJCOPY"; then
7863 for ncn_progname in objcopy; do
7864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7865set dummy ${ncn_progname}; ac_word=$2
7866echo "$as_me:$LINENO: checking for $ac_word" >&5
7867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871 if test -n "$OBJCOPY"; then
7872 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_prog_OBJCOPY="${ncn_progname}"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885done
7886done
7887
7888fi
7889fi
7890OBJCOPY=$ac_cv_prog_OBJCOPY
7891if test -n "$OBJCOPY"; then
7892 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7893echo "${ECHO_T}$OBJCOPY" >&6
7894else
7895 echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6
7897fi
7898
7899 done
7900fi
7901
7902for ncn_progname in objcopy; do
7903 if test -n "$ncn_tool_prefix"; then
7904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7906echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7908if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 if test -n "$OBJCOPY"; then
7912 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7913else
7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7924 fi
7925done
7926done
7927
7928fi
7929fi
7930OBJCOPY=$ac_cv_prog_OBJCOPY
7931if test -n "$OBJCOPY"; then
7932 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7933echo "${ECHO_T}$OBJCOPY" >&6
7934else
7935 echo "$as_me:$LINENO: result: no" >&5
7936echo "${ECHO_T}no" >&6
7937fi
7938
7939 fi
7940 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7942set dummy ${ncn_progname}; ac_word=$2
7943echo "$as_me:$LINENO: checking for $ac_word" >&5
7944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7945if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947else
7948 if test -n "$OBJCOPY"; then
7949 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_OBJCOPY="${ncn_progname}"
7959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962done
7963done
7964
7965fi
7966fi
7967OBJCOPY=$ac_cv_prog_OBJCOPY
7968if test -n "$OBJCOPY"; then
7969 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7970echo "${ECHO_T}$OBJCOPY" >&6
7971else
7972 echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6
7974fi
7975
7976 fi
7977 test -n "$ac_cv_prog_OBJCOPY" && break
7978done
7979
7980if test -z "$ac_cv_prog_OBJCOPY" ; then
7981 set dummy objcopy
7982 if test $build = $host ; then
7983 OBJCOPY="$2"
7984 else
7985 OBJCOPY="${ncn_tool_prefix}$2"
7986 fi
7987fi
7988
7989
7990
7991if test -n "$OBJDUMP"; then
7992 ac_cv_prog_OBJDUMP=$OBJDUMP
7993elif test -n "$ac_cv_prog_OBJDUMP"; then
7994 OBJDUMP=$ac_cv_prog_OBJDUMP
7995fi
7996
7997if test -n "$ac_cv_prog_OBJDUMP"; then
7998 for ncn_progname in objdump; do
7999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8000set dummy ${ncn_progname}; ac_word=$2
8001echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006 if test -n "$OBJDUMP"; then
8007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8008else
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_prog_OBJDUMP="${ncn_progname}"
8017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020done
8021done
8022
8023fi
8024fi
8025OBJDUMP=$ac_cv_prog_OBJDUMP
8026if test -n "$OBJDUMP"; then
8027 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8028echo "${ECHO_T}$OBJDUMP" >&6
8029else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032fi
8033
8034 done
8035fi
8036
8037for ncn_progname in objdump; do
8038 if test -n "$ncn_tool_prefix"; then
8039 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8040set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8041echo "$as_me:$LINENO: checking for $ac_word" >&5
8042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8043if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 if test -n "$OBJDUMP"; then
8047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8048else
8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060done
8061done
8062
8063fi
8064fi
8065OBJDUMP=$ac_cv_prog_OBJDUMP
8066if test -n "$OBJDUMP"; then
8067 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8068echo "${ECHO_T}$OBJDUMP" >&6
8069else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072fi
8073
8074 fi
8075 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8077set dummy ${ncn_progname}; ac_word=$2
8078echo "$as_me:$LINENO: checking for $ac_word" >&5
8079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8080if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082else
8083 if test -n "$OBJDUMP"; then
8084 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8085else
8086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087for as_dir in $PATH
8088do
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_OBJDUMP="${ncn_progname}"
8094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8096 fi
8097done
8098done
8099
8100fi
8101fi
8102OBJDUMP=$ac_cv_prog_OBJDUMP
8103if test -n "$OBJDUMP"; then
8104 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8105echo "${ECHO_T}$OBJDUMP" >&6
8106else
8107 echo "$as_me:$LINENO: result: no" >&5
8108echo "${ECHO_T}no" >&6
8109fi
8110
8111 fi
8112 test -n "$ac_cv_prog_OBJDUMP" && break
8113done
8114
8115if test -z "$ac_cv_prog_OBJDUMP" ; then
8116 set dummy objdump
8117 if test $build = $host ; then
8118 OBJDUMP="$2"
8119 else
8120 OBJDUMP="${ncn_tool_prefix}$2"
8121 fi
8122fi
8123
8124
8125
8126
8127
8128
8129# Target tools.
8130
8131# Check whether --with-build-time-tools or --without-build-time-tools was given.
8132if test "${with_build_time_tools+set}" = set; then
8133 withval="$with_build_time_tools"
8134 case x"$withval" in
8135 x/*) ;;
8136 *)
8137 with_build_time_tools=
8138 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8139echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8140 ;;
8141 esac
8142else
8143 with_build_time_tools=
8144fi;
8145
8146
8147
8148if test -n "$CC_FOR_TARGET"; then
8149 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8150elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8151 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8152fi
8153
8154if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8155 for ncn_progname in cc gcc; do
8156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8157set dummy ${ncn_progname}; ac_word=$2
8158echo "$as_me:$LINENO: checking for $ac_word" >&5
8159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8160if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
8163 if test -n "$CC_FOR_TARGET"; then
8164 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8165else
8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8173 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 break 2
8176 fi
8177done
8178done
8179
8180fi
8181fi
8182CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8183if test -n "$CC_FOR_TARGET"; then
8184 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8185echo "${ECHO_T}$CC_FOR_TARGET" >&6
8186else
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
8189fi
8190
8191 done
8192fi
8193
8194if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8195 for ncn_progname in cc gcc; do
8196 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8197echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8198 if test -x $with_build_time_tools/${ncn_progname}; then
8199 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8200 echo "$as_me:$LINENO: result: yes" >&5
8201echo "${ECHO_T}yes" >&6
8202 break
8203 else
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
8206 fi
8207 done
8208fi
8209
8210if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8211 for ncn_progname in cc gcc; do
8212 if test -n "$ncn_target_tool_prefix"; then
8213 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8214set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8215echo "$as_me:$LINENO: checking for $ac_word" >&5
8216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8217if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220 if test -n "$CC_FOR_TARGET"; then
8221 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8222else
8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224for as_dir in $PATH
8225do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234done
8235done
8236
8237fi
8238fi
8239CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8240if test -n "$CC_FOR_TARGET"; then
8241 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8242echo "${ECHO_T}$CC_FOR_TARGET" >&6
8243else
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246fi
8247
8248 fi
8249 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8251set dummy ${ncn_progname}; ac_word=$2
8252echo "$as_me:$LINENO: checking for $ac_word" >&5
8253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8254if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256else
8257 if test -n "$CC_FOR_TARGET"; then
8258 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271done
8272done
8273
8274fi
8275fi
8276CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8277if test -n "$CC_FOR_TARGET"; then
8278 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8279echo "${ECHO_T}$CC_FOR_TARGET" >&6
8280else
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283fi
8284
8285 fi
8286 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8287 done
8288fi
8289
8290if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8291 set dummy cc gcc
8292 if test $build = $target ; then
8293 CC_FOR_TARGET="$2"
8294 else
8295 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8296 fi
8297else
8298 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8299fi
8300
8301
8302
8303if test -n "$CXX_FOR_TARGET"; then
8304 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8305elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8306 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8307fi
8308
8309if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8310 for ncn_progname in c++ g++ cxx gxx; do
8311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8312set dummy ${ncn_progname}; ac_word=$2
8313echo "$as_me:$LINENO: checking for $ac_word" >&5
8314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8315if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318 if test -n "$CXX_FOR_TARGET"; then
8319 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332done
8333done
8334
8335fi
8336fi
8337CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8338if test -n "$CXX_FOR_TARGET"; then
8339 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8340echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8341else
8342 echo "$as_me:$LINENO: result: no" >&5
8343echo "${ECHO_T}no" >&6
8344fi
8345
8346 done
8347fi
8348
8349if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8350 for ncn_progname in c++ g++ cxx gxx; do
8351 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8352echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8353 if test -x $with_build_time_tools/${ncn_progname}; then
8354 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 break
8358 else
8359 echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
8361 fi
8362 done
8363fi
8364
8365if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8366 for ncn_progname in c++ g++ cxx gxx; do
8367 if test -n "$ncn_target_tool_prefix"; then
8368 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8369set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8370echo "$as_me:$LINENO: checking for $ac_word" >&5
8371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8372if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375 if test -n "$CXX_FOR_TARGET"; then
8376 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389done
8390done
8391
8392fi
8393fi
8394CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8395if test -n "$CXX_FOR_TARGET"; then
8396 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8397echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8398else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401fi
8402
8403 fi
8404 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
8407echo "$as_me:$LINENO: checking for $ac_word" >&5
8408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8409if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 if test -n "$CXX_FOR_TARGET"; then
8413 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426done
8427done
8428
8429fi
8430fi
8431CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8432if test -n "$CXX_FOR_TARGET"; then
8433 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8434echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8435else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438fi
8439
8440 fi
8441 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8442 done
8443fi
8444
8445if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8446 set dummy c++ g++ cxx gxx
8447 if test $build = $target ; then
8448 CXX_FOR_TARGET="$2"
8449 else
8450 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8451 fi
8452else
8453 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8454fi
8455
8456
8457
8458if test -n "$GCC_FOR_TARGET"; then
8459 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8460elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8461 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8462fi
8463
8464if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8465 for ncn_progname in gcc; do
8466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8467set dummy ${ncn_progname}; ac_word=$2
8468echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8470if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473 if test -n "$GCC_FOR_TARGET"; then
8474 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8475else
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8483 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487done
8488done
8489
8490fi
8491fi
8492GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8493if test -n "$GCC_FOR_TARGET"; then
8494 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8495echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8496else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499fi
8500
8501 done
8502fi
8503
8504if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8505 for ncn_progname in gcc; do
8506 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8507echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8508 if test -x $with_build_time_tools/${ncn_progname}; then
8509 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8510 echo "$as_me:$LINENO: result: yes" >&5
8511echo "${ECHO_T}yes" >&6
8512 break
8513 else
8514 echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6
8516 fi
8517 done
8518fi
8519
8520if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8521 for ncn_progname in gcc; do
8522 if test -n "$ncn_target_tool_prefix"; then
8523 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8524set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8525echo "$as_me:$LINENO: checking for $ac_word" >&5
8526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8527if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529else
8530 if test -n "$GCC_FOR_TARGET"; then
8531 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8532else
8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8543 fi
8544done
8545done
8546
8547fi
8548fi
8549GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8550if test -n "$GCC_FOR_TARGET"; then
8551 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8552echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8553else
8554 echo "$as_me:$LINENO: result: no" >&5
8555echo "${ECHO_T}no" >&6
8556fi
8557
8558 fi
8559 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8561set dummy ${ncn_progname}; ac_word=$2
8562echo "$as_me:$LINENO: checking for $ac_word" >&5
8563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8564if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567 if test -n "$GCC_FOR_TARGET"; then
8568 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581done
8582done
8583
8584fi
8585fi
8586GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8587if test -n "$GCC_FOR_TARGET"; then
8588 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8589echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8590else
8591 echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6
8593fi
8594
8595 fi
8596 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8597 done
8598fi
8599
8600if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8601 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8602else
8603 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8604fi
8605
8606
8607
8608if test -n "$GCJ_FOR_TARGET"; then
8609 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8610elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8611 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8612fi
8613
8614if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8615 for ncn_progname in gcj; do
8616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8617set dummy ${ncn_progname}; ac_word=$2
8618echo "$as_me:$LINENO: checking for $ac_word" >&5
8619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8620if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623 if test -n "$GCJ_FOR_TARGET"; then
8624 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8625else
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8636 fi
8637done
8638done
8639
8640fi
8641fi
8642GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8643if test -n "$GCJ_FOR_TARGET"; then
8644 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8645echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8646else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649fi
8650
8651 done
8652fi
8653
8654if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8655 for ncn_progname in gcj; do
8656 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8657echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8658 if test -x $with_build_time_tools/${ncn_progname}; then
8659 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8660 echo "$as_me:$LINENO: result: yes" >&5
8661echo "${ECHO_T}yes" >&6
8662 break
8663 else
8664 echo "$as_me:$LINENO: result: no" >&5
8665echo "${ECHO_T}no" >&6
8666 fi
8667 done
8668fi
8669
8670if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8671 for ncn_progname in gcj; do
8672 if test -n "$ncn_target_tool_prefix"; then
8673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8674set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8675echo "$as_me:$LINENO: checking for $ac_word" >&5
8676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8677if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680 if test -n "$GCJ_FOR_TARGET"; then
8681 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8682else
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694done
8695done
8696
8697fi
8698fi
8699GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8700if test -n "$GCJ_FOR_TARGET"; then
8701 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8702echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8703else
8704 echo "$as_me:$LINENO: result: no" >&5
8705echo "${ECHO_T}no" >&6
8706fi
8707
8708 fi
8709 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8711set dummy ${ncn_progname}; ac_word=$2
8712echo "$as_me:$LINENO: checking for $ac_word" >&5
8713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8714if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716else
8717 if test -n "$GCJ_FOR_TARGET"; then
8718 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8719else
8720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721for as_dir in $PATH
8722do
8723 IFS=$as_save_IFS
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 break 2
8730 fi
8731done
8732done
8733
8734fi
8735fi
8736GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8737if test -n "$GCJ_FOR_TARGET"; then
8738 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8739echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8740else
8741 echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
8743fi
8744
8745 fi
8746 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8747 done
8748fi
8749
8750if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8751 set dummy gcj
8752 if test $build = $target ; then
8753 GCJ_FOR_TARGET="$2"
8754 else
8755 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8756 fi
8757else
8758 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8759fi
8760
8761
8762
8763if test -n "$GFORTRAN_FOR_TARGET"; then
8764 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8765elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8766 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8767fi
8768
8769if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8770 for ncn_progname in gfortran; do
8771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8772set dummy ${ncn_progname}; ac_word=$2
8773echo "$as_me:$LINENO: checking for $ac_word" >&5
8774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8775if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8777else
8778 if test -n "$GFORTRAN_FOR_TARGET"; then
8779 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8780else
8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8788 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 break 2
8791 fi
8792done
8793done
8794
8795fi
8796fi
8797GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8798if test -n "$GFORTRAN_FOR_TARGET"; then
8799 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8800echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8801else
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
8804fi
8805
8806 done
8807fi
8808
8809if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8810 for ncn_progname in gfortran; do
8811 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8812echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8813 if test -x $with_build_time_tools/${ncn_progname}; then
8814 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8815 echo "$as_me:$LINENO: result: yes" >&5
8816echo "${ECHO_T}yes" >&6
8817 break
8818 else
8819 echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6
8821 fi
8822 done
8823fi
8824
8825if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8826 for ncn_progname in gfortran; do
8827 if test -n "$ncn_target_tool_prefix"; then
8828 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8830echo "$as_me:$LINENO: checking for $ac_word" >&5
8831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8832if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
8835 if test -n "$GFORTRAN_FOR_TARGET"; then
8836 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8837else
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8848 fi
8849done
8850done
8851
8852fi
8853fi
8854GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8855if test -n "$GFORTRAN_FOR_TARGET"; then
8856 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8857echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8858else
8859 echo "$as_me:$LINENO: result: no" >&5
8860echo "${ECHO_T}no" >&6
8861fi
8862
8863 fi
8864 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8866set dummy ${ncn_progname}; ac_word=$2
8867echo "$as_me:$LINENO: checking for $ac_word" >&5
8868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8869if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872 if test -n "$GFORTRAN_FOR_TARGET"; then
8873 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8874else
8875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876for as_dir in $PATH
8877do
8878 IFS=$as_save_IFS
8879 test -z "$as_dir" && as_dir=.
8880 for ac_exec_ext in '' $ac_executable_extensions; do
8881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8882 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8884 break 2
8885 fi
8886done
8887done
8888
8889fi
8890fi
8891GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8892if test -n "$GFORTRAN_FOR_TARGET"; then
8893 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8894echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8895else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898fi
8899
8900 fi
8901 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8902 done
8903fi
8904
8905if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8906 set dummy gfortran
8907 if test $build = $target ; then
8908 GFORTRAN_FOR_TARGET="$2"
8909 else
8910 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8911 fi
8912else
8913 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8914fi
8915
8916
8917
8918cat > conftest.c << \EOF
8919#ifdef __GNUC__
8920 gcc_yay;
8921#endif
8922EOF
8923if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8924 have_gcc_for_target=yes
8925else
8926 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8927 have_gcc_for_target=no
8928fi
8929rm conftest.c
8930
8931
8932
8933
8934if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8935 if test -n "$with_build_time_tools"; then
8936 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8937echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8938 if test -x $with_build_time_tools/ar; then
8939 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8940 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8941 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8942echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8943 else
8944 echo "$as_me:$LINENO: result: no" >&5
8945echo "${ECHO_T}no" >&6
8946 fi
8947 elif test $build != $host && test $have_gcc_for_target = yes; then
8948 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8949 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8950 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8951 fi
8952fi
8953if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8954 # Extract the first word of "ar", so it can be a program name with args.
8955set dummy ar; ac_word=$2
8956echo "$as_me:$LINENO: checking for $ac_word" >&5
8957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8958if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961 case $AR_FOR_TARGET in
8962 [\\/]* | ?:[\\/]*)
8963 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8964 ;;
8965 *)
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967for as_dir in $gcc_cv_tool_dirs
8968do
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8973 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8976 fi
8977done
8978done
8979
8980 ;;
8981esac
8982fi
8983AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8984
8985if test -n "$AR_FOR_TARGET"; then
8986 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8987echo "${ECHO_T}$AR_FOR_TARGET" >&6
8988else
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
8991fi
8992
8993fi
8994if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8995
8996
8997if test -n "$AR_FOR_TARGET"; then
8998 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8999elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9000 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9001fi
9002
9003if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9004 for ncn_progname in ar; do
9005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9006set dummy ${ncn_progname}; ac_word=$2
9007echo "$as_me:$LINENO: checking for $ac_word" >&5
9008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012 if test -n "$AR_FOR_TARGET"; then
9013 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9014else
9015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016for as_dir in $PATH
9017do
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9025 fi
9026done
9027done
9028
9029fi
9030fi
9031AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9032if test -n "$AR_FOR_TARGET"; then
9033 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9034echo "${ECHO_T}$AR_FOR_TARGET" >&6
9035else
9036 echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
9038fi
9039
9040 done
9041fi
9042
9043if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9044 for ncn_progname in ar; do
9045 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9046echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9047 if test -x $with_build_time_tools/${ncn_progname}; then
9048 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9049 echo "$as_me:$LINENO: result: yes" >&5
9050echo "${ECHO_T}yes" >&6
9051 break
9052 else
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055 fi
9056 done
9057fi
9058
9059if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9060 for ncn_progname in ar; do
9061 if test -n "$ncn_target_tool_prefix"; then
9062 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9063set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9064echo "$as_me:$LINENO: checking for $ac_word" >&5
9065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9066if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069 if test -n "$AR_FOR_TARGET"; then
9070 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9071else
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083done
9084done
9085
9086fi
9087fi
9088AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9089if test -n "$AR_FOR_TARGET"; then
9090 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9091echo "${ECHO_T}$AR_FOR_TARGET" >&6
9092else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095fi
9096
9097 fi
9098 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100set dummy ${ncn_progname}; ac_word=$2
9101echo "$as_me:$LINENO: checking for $ac_word" >&5
9102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9103if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106 if test -n "$AR_FOR_TARGET"; then
9107 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9108else
9109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110for as_dir in $PATH
9111do
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9116 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9118 break 2
9119 fi
9120done
9121done
9122
9123fi
9124fi
9125AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9126if test -n "$AR_FOR_TARGET"; then
9127 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9128echo "${ECHO_T}$AR_FOR_TARGET" >&6
9129else
9130 echo "$as_me:$LINENO: result: no" >&5
9131echo "${ECHO_T}no" >&6
9132fi
9133
9134 fi
9135 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9136 done
9137fi
9138
9139if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9140 set dummy ar
9141 if test $build = $target ; then
9142 AR_FOR_TARGET="$2"
9143 else
9144 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9145 fi
9146else
9147 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9148fi
9149
9150else
9151 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9152fi
9153
9154
9155
9156
9157if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9158 if test -n "$with_build_time_tools"; then
9159 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9160echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9161 if test -x $with_build_time_tools/as; then
9162 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9163 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9164 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9165echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9166 else
9167 echo "$as_me:$LINENO: result: no" >&5
9168echo "${ECHO_T}no" >&6
9169 fi
9170 elif test $build != $host && test $have_gcc_for_target = yes; then
9171 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9172 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9173 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9174 fi
9175fi
9176if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9177 # Extract the first word of "as", so it can be a program name with args.
9178set dummy as; ac_word=$2
9179echo "$as_me:$LINENO: checking for $ac_word" >&5
9180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9181if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183else
9184 case $AS_FOR_TARGET in
9185 [\\/]* | ?:[\\/]*)
9186 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9187 ;;
9188 *)
9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190for as_dir in $gcc_cv_tool_dirs
9191do
9192 IFS=$as_save_IFS
9193 test -z "$as_dir" && as_dir=.
9194 for ac_exec_ext in '' $ac_executable_extensions; do
9195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9196 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 break 2
9199 fi
9200done
9201done
9202
9203 ;;
9204esac
9205fi
9206AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9207
9208if test -n "$AS_FOR_TARGET"; then
9209 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9210echo "${ECHO_T}$AS_FOR_TARGET" >&6
9211else
9212 echo "$as_me:$LINENO: result: no" >&5
9213echo "${ECHO_T}no" >&6
9214fi
9215
9216fi
9217if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9218
9219
9220if test -n "$AS_FOR_TARGET"; then
9221 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9222elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9223 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9224fi
9225
9226if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9227 for ncn_progname in as; do
9228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9229set dummy ${ncn_progname}; ac_word=$2
9230echo "$as_me:$LINENO: checking for $ac_word" >&5
9231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9232if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235 if test -n "$AS_FOR_TARGET"; then
9236 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9237else
9238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239for as_dir in $PATH
9240do
9241 IFS=$as_save_IFS
9242 test -z "$as_dir" && as_dir=.
9243 for ac_exec_ext in '' $ac_executable_extensions; do
9244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9245 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 break 2
9248 fi
9249done
9250done
9251
9252fi
9253fi
9254AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9255if test -n "$AS_FOR_TARGET"; then
9256 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9257echo "${ECHO_T}$AS_FOR_TARGET" >&6
9258else
9259 echo "$as_me:$LINENO: result: no" >&5
9260echo "${ECHO_T}no" >&6
9261fi
9262
9263 done
9264fi
9265
9266if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9267 for ncn_progname in as; do
9268 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9269echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9270 if test -x $with_build_time_tools/${ncn_progname}; then
9271 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9272 echo "$as_me:$LINENO: result: yes" >&5
9273echo "${ECHO_T}yes" >&6
9274 break
9275 else
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
9278 fi
9279 done
9280fi
9281
9282if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9283 for ncn_progname in as; do
9284 if test -n "$ncn_target_tool_prefix"; then
9285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9287echo "$as_me:$LINENO: checking for $ac_word" >&5
9288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9289if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292 if test -n "$AS_FOR_TARGET"; then
9293 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9294else
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306done
9307done
9308
9309fi
9310fi
9311AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9312if test -n "$AS_FOR_TARGET"; then
9313 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9314echo "${ECHO_T}$AS_FOR_TARGET" >&6
9315else
9316 echo "$as_me:$LINENO: result: no" >&5
9317echo "${ECHO_T}no" >&6
9318fi
9319
9320 fi
9321 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9323set dummy ${ncn_progname}; ac_word=$2
9324echo "$as_me:$LINENO: checking for $ac_word" >&5
9325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9326if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9328else
9329 if test -n "$AS_FOR_TARGET"; then
9330 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9331else
9332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333for as_dir in $PATH
9334do
9335 IFS=$as_save_IFS
9336 test -z "$as_dir" && as_dir=.
9337 for ac_exec_ext in '' $ac_executable_extensions; do
9338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9339 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9341 break 2
9342 fi
9343done
9344done
9345
9346fi
9347fi
9348AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9349if test -n "$AS_FOR_TARGET"; then
9350 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9351echo "${ECHO_T}$AS_FOR_TARGET" >&6
9352else
9353 echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6
9355fi
9356
9357 fi
9358 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9359 done
9360fi
9361
9362if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9363 set dummy as
9364 if test $build = $target ; then
9365 AS_FOR_TARGET="$2"
9366 else
9367 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9368 fi
9369else
9370 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9371fi
9372
9373else
9374 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9375fi
9376
9377
9378
9379
9380if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9381 if test -n "$with_build_time_tools"; then
9382 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9383echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9384 if test -x $with_build_time_tools/dlltool; then
9385 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9386 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9387 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9388echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9389 else
9390 echo "$as_me:$LINENO: result: no" >&5
9391echo "${ECHO_T}no" >&6
9392 fi
9393 elif test $build != $host && test $have_gcc_for_target = yes; then
9394 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9395 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9396 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9397 fi
9398fi
9399if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9400 # Extract the first word of "dlltool", so it can be a program name with args.
9401set dummy dlltool; ac_word=$2
9402echo "$as_me:$LINENO: checking for $ac_word" >&5
9403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9404if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406else
9407 case $DLLTOOL_FOR_TARGET in
9408 [\\/]* | ?:[\\/]*)
9409 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9410 ;;
9411 *)
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413for as_dir in $gcc_cv_tool_dirs
9414do
9415 IFS=$as_save_IFS
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9421 break 2
9422 fi
9423done
9424done
9425
9426 ;;
9427esac
9428fi
9429DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9430
9431if test -n "$DLLTOOL_FOR_TARGET"; then
9432 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9433echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9434else
9435 echo "$as_me:$LINENO: result: no" >&5
9436echo "${ECHO_T}no" >&6
9437fi
9438
9439fi
9440if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9441
9442
9443if test -n "$DLLTOOL_FOR_TARGET"; then
9444 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9445elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9446 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9447fi
9448
9449if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9450 for ncn_progname in dlltool; do
9451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9452set dummy ${ncn_progname}; ac_word=$2
9453echo "$as_me:$LINENO: checking for $ac_word" >&5
9454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9455if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458 if test -n "$DLLTOOL_FOR_TARGET"; then
9459 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9460else
9461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462for as_dir in $PATH
9463do
9464 IFS=$as_save_IFS
9465 test -z "$as_dir" && as_dir=.
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9468 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9470 break 2
9471 fi
9472done
9473done
9474
9475fi
9476fi
9477DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9478if test -n "$DLLTOOL_FOR_TARGET"; then
9479 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9480echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9481else
9482 echo "$as_me:$LINENO: result: no" >&5
9483echo "${ECHO_T}no" >&6
9484fi
9485
9486 done
9487fi
9488
9489if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9490 for ncn_progname in dlltool; do
9491 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9492echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9493 if test -x $with_build_time_tools/${ncn_progname}; then
9494 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9495 echo "$as_me:$LINENO: result: yes" >&5
9496echo "${ECHO_T}yes" >&6
9497 break
9498 else
9499 echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
9501 fi
9502 done
9503fi
9504
9505if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9506 for ncn_progname in dlltool; do
9507 if test -n "$ncn_target_tool_prefix"; then
9508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9509set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9510echo "$as_me:$LINENO: checking for $ac_word" >&5
9511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9512if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 if test -n "$DLLTOOL_FOR_TARGET"; then
9516 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9517else
9518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519for as_dir in $PATH
9520do
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9528 fi
9529done
9530done
9531
9532fi
9533fi
9534DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9535if test -n "$DLLTOOL_FOR_TARGET"; then
9536 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9537echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9538else
9539 echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
9541fi
9542
9543 fi
9544 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546set dummy ${ncn_progname}; ac_word=$2
9547echo "$as_me:$LINENO: checking for $ac_word" >&5
9548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9549if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551else
9552 if test -n "$DLLTOOL_FOR_TARGET"; then
9553 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9554else
9555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556for as_dir in $PATH
9557do
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9562 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9565 fi
9566done
9567done
9568
9569fi
9570fi
9571DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9572if test -n "$DLLTOOL_FOR_TARGET"; then
9573 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9574echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9575else
9576 echo "$as_me:$LINENO: result: no" >&5
9577echo "${ECHO_T}no" >&6
9578fi
9579
9580 fi
9581 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9582 done
9583fi
9584
9585if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9586 set dummy dlltool
9587 if test $build = $target ; then
9588 DLLTOOL_FOR_TARGET="$2"
9589 else
9590 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9591 fi
9592else
9593 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9594fi
9595
9596else
9597 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9598fi
9599
9600
9601
9602
9603if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9604 if test -n "$with_build_time_tools"; then
9605 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9606echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9607 if test -x $with_build_time_tools/ld; then
9608 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9609 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9610 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9611echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9612 else
9613 echo "$as_me:$LINENO: result: no" >&5
9614echo "${ECHO_T}no" >&6
9615 fi
9616 elif test $build != $host && test $have_gcc_for_target = yes; then
9617 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9618 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9619 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9620 fi
9621fi
9622if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9623 # Extract the first word of "ld", so it can be a program name with args.
9624set dummy ld; ac_word=$2
9625echo "$as_me:$LINENO: checking for $ac_word" >&5
9626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9627if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629else
9630 case $LD_FOR_TARGET in
9631 [\\/]* | ?:[\\/]*)
9632 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9633 ;;
9634 *)
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $gcc_cv_tool_dirs
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646done
9647done
9648
9649 ;;
9650esac
9651fi
9652LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9653
9654if test -n "$LD_FOR_TARGET"; then
9655 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9656echo "${ECHO_T}$LD_FOR_TARGET" >&6
9657else
9658 echo "$as_me:$LINENO: result: no" >&5
9659echo "${ECHO_T}no" >&6
9660fi
9661
9662fi
9663if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9664
9665
9666if test -n "$LD_FOR_TARGET"; then
9667 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9668elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9669 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9670fi
9671
9672if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9673 for ncn_progname in ld; do
9674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9675set dummy ${ncn_progname}; ac_word=$2
9676echo "$as_me:$LINENO: checking for $ac_word" >&5
9677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9678if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680else
9681 if test -n "$LD_FOR_TARGET"; then
9682 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9683else
9684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685for as_dir in $PATH
9686do
9687 IFS=$as_save_IFS
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 break 2
9694 fi
9695done
9696done
9697
9698fi
9699fi
9700LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9701if test -n "$LD_FOR_TARGET"; then
9702 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9703echo "${ECHO_T}$LD_FOR_TARGET" >&6
9704else
9705 echo "$as_me:$LINENO: result: no" >&5
9706echo "${ECHO_T}no" >&6
9707fi
9708
9709 done
9710fi
9711
9712if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9713 for ncn_progname in ld; do
9714 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9715echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9716 if test -x $with_build_time_tools/${ncn_progname}; then
9717 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9718 echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6
9720 break
9721 else
9722 echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
9724 fi
9725 done
9726fi
9727
9728if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9729 for ncn_progname in ld; do
9730 if test -n "$ncn_target_tool_prefix"; then
9731 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9733echo "$as_me:$LINENO: checking for $ac_word" >&5
9734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9735if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 if test -n "$LD_FOR_TARGET"; then
9739 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752done
9753done
9754
9755fi
9756fi
9757LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9758if test -n "$LD_FOR_TARGET"; then
9759 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9760echo "${ECHO_T}$LD_FOR_TARGET" >&6
9761else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764fi
9765
9766 fi
9767 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9769set dummy ${ncn_progname}; ac_word=$2
9770echo "$as_me:$LINENO: checking for $ac_word" >&5
9771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9772if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774else
9775 if test -n "$LD_FOR_TARGET"; then
9776 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9777else
9778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9788 fi
9789done
9790done
9791
9792fi
9793fi
9794LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9795if test -n "$LD_FOR_TARGET"; then
9796 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9797echo "${ECHO_T}$LD_FOR_TARGET" >&6
9798else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801fi
9802
9803 fi
9804 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9805 done
9806fi
9807
9808if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9809 set dummy ld
9810 if test $build = $target ; then
9811 LD_FOR_TARGET="$2"
9812 else
9813 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9814 fi
9815else
9816 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9817fi
9818
9819else
9820 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9821fi
9822
9823
9824
9825
9826if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9827 if test -n "$with_build_time_tools"; then
9828 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9829echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9830 if test -x $with_build_time_tools/lipo; then
9831 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9832 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9833 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9834echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9835 else
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
9838 fi
9839 elif test $build != $host && test $have_gcc_for_target = yes; then
9840 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9841 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9842 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9843 fi
9844fi
9845if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9846 # Extract the first word of "lipo", so it can be a program name with args.
9847set dummy lipo; ac_word=$2
9848echo "$as_me:$LINENO: checking for $ac_word" >&5
9849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9850if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852else
9853 case $LIPO_FOR_TARGET in
9854 [\\/]* | ?:[\\/]*)
9855 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9856 ;;
9857 *)
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859for as_dir in $gcc_cv_tool_dirs
9860do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9865 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 break 2
9868 fi
9869done
9870done
9871
9872 ;;
9873esac
9874fi
9875LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9876
9877if test -n "$LIPO_FOR_TARGET"; then
9878 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9879echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9880else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883fi
9884
9885fi
9886if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9887
9888
9889if test -n "$LIPO_FOR_TARGET"; then
9890 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9891elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9892 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9893fi
9894
9895if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9896 for ncn_progname in lipo; do
9897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9898set dummy ${ncn_progname}; ac_word=$2
9899echo "$as_me:$LINENO: checking for $ac_word" >&5
9900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9901if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903else
9904 if test -n "$LIPO_FOR_TARGET"; then
9905 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9906else
9907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908for as_dir in $PATH
9909do
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9916 break 2
9917 fi
9918done
9919done
9920
9921fi
9922fi
9923LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9924if test -n "$LIPO_FOR_TARGET"; then
9925 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9926echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9927else
9928 echo "$as_me:$LINENO: result: no" >&5
9929echo "${ECHO_T}no" >&6
9930fi
9931
9932 done
9933fi
9934
9935if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9936 for ncn_progname in lipo; do
9937 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9938echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9939 if test -x $with_build_time_tools/${ncn_progname}; then
9940 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9941 echo "$as_me:$LINENO: result: yes" >&5
9942echo "${ECHO_T}yes" >&6
9943 break
9944 else
9945 echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
9947 fi
9948 done
9949fi
9950
9951if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9952 for ncn_progname in lipo; do
9953 if test -n "$ncn_target_tool_prefix"; then
9954 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9955set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9956echo "$as_me:$LINENO: checking for $ac_word" >&5
9957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9958if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
9961 if test -n "$LIPO_FOR_TARGET"; then
9962 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
9976done
9977
9978fi
9979fi
9980LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9981if test -n "$LIPO_FOR_TARGET"; then
9982 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9983echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9984else
9985 echo "$as_me:$LINENO: result: no" >&5
9986echo "${ECHO_T}no" >&6
9987fi
9988
9989 fi
9990 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9992set dummy ${ncn_progname}; ac_word=$2
9993echo "$as_me:$LINENO: checking for $ac_word" >&5
9994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9995if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997else
9998 if test -n "$LIPO_FOR_TARGET"; then
9999 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10000else
10001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
10012done
10013done
10014
10015fi
10016fi
10017LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10018if test -n "$LIPO_FOR_TARGET"; then
10019 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10020echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10021else
10022 echo "$as_me:$LINENO: result: no" >&5
10023echo "${ECHO_T}no" >&6
10024fi
10025
10026 fi
10027 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10028 done
10029fi
10030
10031if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10032 set dummy lipo
10033 if test $build = $target ; then
10034 LIPO_FOR_TARGET="$2"
10035 else
10036 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10037 fi
10038else
10039 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10040fi
10041
10042else
10043 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10044fi
10045
10046
10047
10048
10049if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10050 if test -n "$with_build_time_tools"; then
10051 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10052echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10053 if test -x $with_build_time_tools/nm; then
10054 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10055 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10056 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10057echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10058 else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061 fi
10062 elif test $build != $host && test $have_gcc_for_target = yes; then
10063 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10064 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10065 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10066 fi
10067fi
10068if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10069 # Extract the first word of "nm", so it can be a program name with args.
10070set dummy nm; ac_word=$2
10071echo "$as_me:$LINENO: checking for $ac_word" >&5
10072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10073if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10075else
10076 case $NM_FOR_TARGET in
10077 [\\/]* | ?:[\\/]*)
10078 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10079 ;;
10080 *)
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082for as_dir in $gcc_cv_tool_dirs
10083do
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10090 break 2
10091 fi
10092done
10093done
10094
10095 ;;
10096esac
10097fi
10098NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10099
10100if test -n "$NM_FOR_TARGET"; then
10101 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10102echo "${ECHO_T}$NM_FOR_TARGET" >&6
10103else
10104 echo "$as_me:$LINENO: result: no" >&5
10105echo "${ECHO_T}no" >&6
10106fi
10107
10108fi
10109if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10110
10111
10112if test -n "$NM_FOR_TARGET"; then
10113 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10114elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10115 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10116fi
10117
10118if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10119 for ncn_progname in nm; do
10120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10121set dummy ${ncn_progname}; ac_word=$2
10122echo "$as_me:$LINENO: checking for $ac_word" >&5
10123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10124if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127 if test -n "$NM_FOR_TARGET"; then
10128 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10129else
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10140 fi
10141done
10142done
10143
10144fi
10145fi
10146NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10147if test -n "$NM_FOR_TARGET"; then
10148 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10149echo "${ECHO_T}$NM_FOR_TARGET" >&6
10150else
10151 echo "$as_me:$LINENO: result: no" >&5
10152echo "${ECHO_T}no" >&6
10153fi
10154
10155 done
10156fi
10157
10158if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10159 for ncn_progname in nm; do
10160 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10161echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10162 if test -x $with_build_time_tools/${ncn_progname}; then
10163 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10164 echo "$as_me:$LINENO: result: yes" >&5
10165echo "${ECHO_T}yes" >&6
10166 break
10167 else
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
10170 fi
10171 done
10172fi
10173
10174if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10175 for ncn_progname in nm; do
10176 if test -n "$ncn_target_tool_prefix"; then
10177 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10178set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 if test -n "$NM_FOR_TARGET"; then
10185 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
10201fi
10202fi
10203NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10204if test -n "$NM_FOR_TARGET"; then
10205 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10206echo "${ECHO_T}$NM_FOR_TARGET" >&6
10207else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210fi
10211
10212 fi
10213 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10215set dummy ${ncn_progname}; ac_word=$2
10216echo "$as_me:$LINENO: checking for $ac_word" >&5
10217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 if test -n "$NM_FOR_TARGET"; then
10222 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10223else
10224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225for as_dir in $PATH
10226do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235done
10236done
10237
10238fi
10239fi
10240NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10241if test -n "$NM_FOR_TARGET"; then
10242 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10243echo "${ECHO_T}$NM_FOR_TARGET" >&6
10244else
10245 echo "$as_me:$LINENO: result: no" >&5
10246echo "${ECHO_T}no" >&6
10247fi
10248
10249 fi
10250 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10251 done
10252fi
10253
10254if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10255 set dummy nm
10256 if test $build = $target ; then
10257 NM_FOR_TARGET="$2"
10258 else
10259 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10260 fi
10261else
10262 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10263fi
10264
10265else
10266 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10267fi
10268
10269
10270
10271
10272if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10273 if test -n "$with_build_time_tools"; then
10274 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10275echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10276 if test -x $with_build_time_tools/objdump; then
10277 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10278 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10279 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10280echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10281 else
10282 echo "$as_me:$LINENO: result: no" >&5
10283echo "${ECHO_T}no" >&6
10284 fi
10285 elif test $build != $host && test $have_gcc_for_target = yes; then
10286 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10287 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10288 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10289 fi
10290fi
10291if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10292 # Extract the first word of "objdump", so it can be a program name with args.
10293set dummy objdump; ac_word=$2
10294echo "$as_me:$LINENO: checking for $ac_word" >&5
10295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10296if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299 case $OBJDUMP_FOR_TARGET in
10300 [\\/]* | ?:[\\/]*)
10301 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10302 ;;
10303 *)
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305for as_dir in $gcc_cv_tool_dirs
10306do
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10311 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10314 fi
10315done
10316done
10317
10318 ;;
10319esac
10320fi
10321OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10322
10323if test -n "$OBJDUMP_FOR_TARGET"; then
10324 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10325echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10326else
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
10329fi
10330
10331fi
10332if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10333
10334
10335if test -n "$OBJDUMP_FOR_TARGET"; then
10336 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10337elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10338 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10339fi
10340
10341if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10342 for ncn_progname in objdump; do
10343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10344set dummy ${ncn_progname}; ac_word=$2
10345echo "$as_me:$LINENO: checking for $ac_word" >&5
10346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10347if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350 if test -n "$OBJDUMP_FOR_TARGET"; then
10351 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10352else
10353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354for as_dir in $PATH
10355do
10356 IFS=$as_save_IFS
10357 test -z "$as_dir" && as_dir=.
10358 for ac_exec_ext in '' $ac_executable_extensions; do
10359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10360 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10362 break 2
10363 fi
10364done
10365done
10366
10367fi
10368fi
10369OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10370if test -n "$OBJDUMP_FOR_TARGET"; then
10371 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10372echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10373else
10374 echo "$as_me:$LINENO: result: no" >&5
10375echo "${ECHO_T}no" >&6
10376fi
10377
10378 done
10379fi
10380
10381if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10382 for ncn_progname in objdump; do
10383 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10384echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10385 if test -x $with_build_time_tools/${ncn_progname}; then
10386 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10387 echo "$as_me:$LINENO: result: yes" >&5
10388echo "${ECHO_T}yes" >&6
10389 break
10390 else
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
10393 fi
10394 done
10395fi
10396
10397if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10398 for ncn_progname in objdump; do
10399 if test -n "$ncn_target_tool_prefix"; then
10400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10402echo "$as_me:$LINENO: checking for $ac_word" >&5
10403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10404if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 if test -n "$OBJDUMP_FOR_TARGET"; then
10408 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422done
10423
10424fi
10425fi
10426OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10427if test -n "$OBJDUMP_FOR_TARGET"; then
10428 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10429echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10430else
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
10433fi
10434
10435 fi
10436 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438set dummy ${ncn_progname}; ac_word=$2
10439echo "$as_me:$LINENO: checking for $ac_word" >&5
10440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10441if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 if test -n "$OBJDUMP_FOR_TARGET"; then
10445 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10457 fi
10458done
10459done
10460
10461fi
10462fi
10463OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10464if test -n "$OBJDUMP_FOR_TARGET"; then
10465 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10466echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10467else
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
10470fi
10471
10472 fi
10473 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10474 done
10475fi
10476
10477if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10478 set dummy objdump
10479 if test $build = $target ; then
10480 OBJDUMP_FOR_TARGET="$2"
10481 else
10482 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10483 fi
10484else
10485 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10486fi
10487
10488else
10489 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10490fi
10491
10492
10493
10494
10495if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10496 if test -n "$with_build_time_tools"; then
10497 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10498echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10499 if test -x $with_build_time_tools/ranlib; then
10500 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10501 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10502 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10503echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10504 else
10505 echo "$as_me:$LINENO: result: no" >&5
10506echo "${ECHO_T}no" >&6
10507 fi
10508 elif test $build != $host && test $have_gcc_for_target = yes; then
10509 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10510 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10511 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10512 fi
10513fi
10514if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10515 # Extract the first word of "ranlib", so it can be a program name with args.
10516set dummy ranlib; ac_word=$2
10517echo "$as_me:$LINENO: checking for $ac_word" >&5
10518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10519if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522 case $RANLIB_FOR_TARGET in
10523 [\\/]* | ?:[\\/]*)
10524 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10525 ;;
10526 *)
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $gcc_cv_tool_dirs
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538done
10539done
10540
10541 ;;
10542esac
10543fi
10544RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10545
10546if test -n "$RANLIB_FOR_TARGET"; then
10547 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10548echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10549else
10550 echo "$as_me:$LINENO: result: no" >&5
10551echo "${ECHO_T}no" >&6
10552fi
10553
10554fi
10555if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10556
10557
10558if test -n "$RANLIB_FOR_TARGET"; then
10559 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10560elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10561 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10562fi
10563
10564if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10565 for ncn_progname in ranlib; do
10566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10567set dummy ${ncn_progname}; ac_word=$2
10568echo "$as_me:$LINENO: checking for $ac_word" >&5
10569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10570if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572else
10573 if test -n "$RANLIB_FOR_TARGET"; then
10574 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10575else
10576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577for as_dir in $PATH
10578do
10579 IFS=$as_save_IFS
10580 test -z "$as_dir" && as_dir=.
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10583 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 break 2
10586 fi
10587done
10588done
10589
10590fi
10591fi
10592RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10593if test -n "$RANLIB_FOR_TARGET"; then
10594 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10595echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10596else
10597 echo "$as_me:$LINENO: result: no" >&5
10598echo "${ECHO_T}no" >&6
10599fi
10600
10601 done
10602fi
10603
10604if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10605 for ncn_progname in ranlib; do
10606 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10607echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10608 if test -x $with_build_time_tools/${ncn_progname}; then
10609 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10610 echo "$as_me:$LINENO: result: yes" >&5
10611echo "${ECHO_T}yes" >&6
10612 break
10613 else
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
10616 fi
10617 done
10618fi
10619
10620if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10621 for ncn_progname in ranlib; do
10622 if test -n "$ncn_target_tool_prefix"; then
10623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10624set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10625echo "$as_me:$LINENO: checking for $ac_word" >&5
10626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 if test -n "$RANLIB_FOR_TARGET"; then
10631 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
10646
10647fi
10648fi
10649RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10650if test -n "$RANLIB_FOR_TARGET"; then
10651 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10652echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10653else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657
10658 fi
10659 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10661set dummy ${ncn_progname}; ac_word=$2
10662echo "$as_me:$LINENO: checking for $ac_word" >&5
10663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10664if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 if test -n "$RANLIB_FOR_TARGET"; then
10668 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10669else
10670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671for as_dir in $PATH
10672do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681done
10682done
10683
10684fi
10685fi
10686RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10687if test -n "$RANLIB_FOR_TARGET"; then
10688 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10689echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10690else
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693fi
10694
10695 fi
10696 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10697 done
10698fi
10699
10700if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10701 set dummy ranlib
10702 if test $build = $target ; then
10703 RANLIB_FOR_TARGET="$2"
10704 else
10705 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10706 fi
10707else
10708 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10709fi
10710
10711else
10712 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10713fi
10714
10715
10716
10717
10718if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10719 if test -n "$with_build_time_tools"; then
10720 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10721echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10722 if test -x $with_build_time_tools/strip; then
10723 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10724 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10725 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10726echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10727 else
10728 echo "$as_me:$LINENO: result: no" >&5
10729echo "${ECHO_T}no" >&6
10730 fi
10731 elif test $build != $host && test $have_gcc_for_target = yes; then
10732 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10733 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10734 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10735 fi
10736fi
10737if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10738 # Extract the first word of "strip", so it can be a program name with args.
10739set dummy strip; ac_word=$2
10740echo "$as_me:$LINENO: checking for $ac_word" >&5
10741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10742if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744else
10745 case $STRIP_FOR_TARGET in
10746 [\\/]* | ?:[\\/]*)
10747 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10748 ;;
10749 *)
10750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751for as_dir in $gcc_cv_tool_dirs
10752do
10753 IFS=$as_save_IFS
10754 test -z "$as_dir" && as_dir=.
10755 for ac_exec_ext in '' $ac_executable_extensions; do
10756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10757 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10759 break 2
10760 fi
10761done
10762done
10763
10764 ;;
10765esac
10766fi
10767STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10768
10769if test -n "$STRIP_FOR_TARGET"; then
10770 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10771echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10772else
10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
10775fi
10776
10777fi
10778if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10779
10780
10781if test -n "$STRIP_FOR_TARGET"; then
10782 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10783elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10784 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10785fi
10786
10787if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10788 for ncn_progname in strip; do
10789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10790set dummy ${ncn_progname}; ac_word=$2
10791echo "$as_me:$LINENO: checking for $ac_word" >&5
10792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10793if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796 if test -n "$STRIP_FOR_TARGET"; then
10797 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10798else
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10806 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810done
10811done
10812
10813fi
10814fi
10815STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10816if test -n "$STRIP_FOR_TARGET"; then
10817 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10818echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10819else
10820 echo "$as_me:$LINENO: result: no" >&5
10821echo "${ECHO_T}no" >&6
10822fi
10823
10824 done
10825fi
10826
10827if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10828 for ncn_progname in strip; do
10829 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10830echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10831 if test -x $with_build_time_tools/${ncn_progname}; then
10832 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10833 echo "$as_me:$LINENO: result: yes" >&5
10834echo "${ECHO_T}yes" >&6
10835 break
10836 else
10837 echo "$as_me:$LINENO: result: no" >&5
10838echo "${ECHO_T}no" >&6
10839 fi
10840 done
10841fi
10842
10843if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10844 for ncn_progname in strip; do
10845 if test -n "$ncn_target_tool_prefix"; then
10846 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10847set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10848echo "$as_me:$LINENO: checking for $ac_word" >&5
10849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10850if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 if test -n "$STRIP_FOR_TARGET"; then
10854 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867done
10868done
10869
10870fi
10871fi
10872STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10873if test -n "$STRIP_FOR_TARGET"; then
10874 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10875echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10876else
10877 echo "$as_me:$LINENO: result: no" >&5
10878echo "${ECHO_T}no" >&6
10879fi
10880
10881 fi
10882 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884set dummy ${ncn_progname}; ac_word=$2
10885echo "$as_me:$LINENO: checking for $ac_word" >&5
10886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10887if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890 if test -n "$STRIP_FOR_TARGET"; then
10891 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10892else
10893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $PATH
10895do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904done
10905done
10906
10907fi
10908fi
10909STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10910if test -n "$STRIP_FOR_TARGET"; then
10911 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10912echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10913else
10914 echo "$as_me:$LINENO: result: no" >&5
10915echo "${ECHO_T}no" >&6
10916fi
10917
10918 fi
10919 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10920 done
10921fi
10922
10923if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10924 set dummy strip
10925 if test $build = $target ; then
10926 STRIP_FOR_TARGET="$2"
10927 else
10928 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10929 fi
10930else
10931 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10932fi
10933
10934else
10935 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10936fi
10937
10938
10939
10940
10941if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10942 if test -n "$with_build_time_tools"; then
10943 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10944echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10945 if test -x $with_build_time_tools/windres; then
10946 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10947 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10948 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10949echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10950 else
10951 echo "$as_me:$LINENO: result: no" >&5
10952echo "${ECHO_T}no" >&6
10953 fi
10954 elif test $build != $host && test $have_gcc_for_target = yes; then
10955 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10956 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10957 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10958 fi
10959fi
10960if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10961 # Extract the first word of "windres", so it can be a program name with args.
10962set dummy windres; ac_word=$2
10963echo "$as_me:$LINENO: checking for $ac_word" >&5
10964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10965if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968 case $WINDRES_FOR_TARGET in
10969 [\\/]* | ?:[\\/]*)
10970 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10971 ;;
10972 *)
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $gcc_cv_tool_dirs
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10980 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984done
10985done
10986
10987 ;;
10988esac
10989fi
10990WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10991
10992if test -n "$WINDRES_FOR_TARGET"; then
10993 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10994echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000fi
11001if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11002
11003
11004if test -n "$WINDRES_FOR_TARGET"; then
11005 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11006elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11007 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11008fi
11009
11010if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11011 for ncn_progname in windres; do
11012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11013set dummy ${ncn_progname}; ac_word=$2
11014echo "$as_me:$LINENO: checking for $ac_word" >&5
11015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11016if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018else
11019 if test -n "$WINDRES_FOR_TARGET"; then
11020 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11021else
11022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11029 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033done
11034done
11035
11036fi
11037fi
11038WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11039if test -n "$WINDRES_FOR_TARGET"; then
11040 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11041echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11042else
11043 echo "$as_me:$LINENO: result: no" >&5
11044echo "${ECHO_T}no" >&6
11045fi
11046
11047 done
11048fi
11049
11050if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11051 for ncn_progname in windres; do
11052 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11053echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11054 if test -x $with_build_time_tools/${ncn_progname}; then
11055 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11056 echo "$as_me:$LINENO: result: yes" >&5
11057echo "${ECHO_T}yes" >&6
11058 break
11059 else
11060 echo "$as_me:$LINENO: result: no" >&5
11061echo "${ECHO_T}no" >&6
11062 fi
11063 done
11064fi
11065
11066if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11067 for ncn_progname in windres; do
11068 if test -n "$ncn_target_tool_prefix"; then
11069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11071echo "$as_me:$LINENO: checking for $ac_word" >&5
11072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11073if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075else
11076 if test -n "$WINDRES_FOR_TARGET"; then
11077 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091done
11092
11093fi
11094fi
11095WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11096if test -n "$WINDRES_FOR_TARGET"; then
11097 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11098echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11099else
11100 echo "$as_me:$LINENO: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102fi
11103
11104 fi
11105 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11107set dummy ${ncn_progname}; ac_word=$2
11108echo "$as_me:$LINENO: checking for $ac_word" >&5
11109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11110if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113 if test -n "$WINDRES_FOR_TARGET"; then
11114 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11115else
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127done
11128done
11129
11130fi
11131fi
11132WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11133if test -n "$WINDRES_FOR_TARGET"; then
11134 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11135echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11136else
11137 echo "$as_me:$LINENO: result: no" >&5
11138echo "${ECHO_T}no" >&6
11139fi
11140
11141 fi
11142 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11143 done
11144fi
11145
11146if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11147 set dummy windres
11148 if test $build = $target ; then
11149 WINDRES_FOR_TARGET="$2"
11150 else
11151 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11152 fi
11153else
11154 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11155fi
11156
11157else
11158 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11159fi
11160
11161
11162
11163
11164if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11165 if test -n "$with_build_time_tools"; then
11166 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11167echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11168 if test -x $with_build_time_tools/windmc; then
11169 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11170 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11171 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11172echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11173 else
11174 echo "$as_me:$LINENO: result: no" >&5
11175echo "${ECHO_T}no" >&6
11176 fi
11177 elif test $build != $host && test $have_gcc_for_target = yes; then
11178 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11179 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11180 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11181 fi
11182fi
11183if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11184 # Extract the first word of "windmc", so it can be a program name with args.
11185set dummy windmc; ac_word=$2
11186echo "$as_me:$LINENO: checking for $ac_word" >&5
11187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11188if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 case $WINDMC_FOR_TARGET in
11192 [\\/]* | ?:[\\/]*)
11193 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11194 ;;
11195 *)
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197for as_dir in $gcc_cv_tool_dirs
11198do
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11203 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11206 fi
11207done
11208done
11209
11210 ;;
11211esac
11212fi
11213WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11214
11215if test -n "$WINDMC_FOR_TARGET"; then
11216 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11217echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11218else
11219 echo "$as_me:$LINENO: result: no" >&5
11220echo "${ECHO_T}no" >&6
11221fi
11222
11223fi
11224if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11225
11226
11227if test -n "$WINDMC_FOR_TARGET"; then
11228 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11229elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11230 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11231fi
11232
11233if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11234 for ncn_progname in windmc; do
11235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11236set dummy ${ncn_progname}; ac_word=$2
11237echo "$as_me:$LINENO: checking for $ac_word" >&5
11238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11239if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241else
11242 if test -n "$WINDMC_FOR_TARGET"; then
11243 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11244else
11245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246for as_dir in $PATH
11247do
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11255 fi
11256done
11257done
11258
11259fi
11260fi
11261WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11262if test -n "$WINDMC_FOR_TARGET"; then
11263 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11264echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11265else
11266 echo "$as_me:$LINENO: result: no" >&5
11267echo "${ECHO_T}no" >&6
11268fi
11269
11270 done
11271fi
11272
11273if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11274 for ncn_progname in windmc; do
11275 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11276echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11277 if test -x $with_build_time_tools/${ncn_progname}; then
11278 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11279 echo "$as_me:$LINENO: result: yes" >&5
11280echo "${ECHO_T}yes" >&6
11281 break
11282 else
11283 echo "$as_me:$LINENO: result: no" >&5
11284echo "${ECHO_T}no" >&6
11285 fi
11286 done
11287fi
11288
11289if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11290 for ncn_progname in windmc; do
11291 if test -n "$ncn_target_tool_prefix"; then
11292 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11293set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11294echo "$as_me:$LINENO: checking for $ac_word" >&5
11295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11296if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299 if test -n "$WINDMC_FOR_TARGET"; then
11300 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11301else
11302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303for as_dir in $PATH
11304do
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11312 fi
11313done
11314done
11315
11316fi
11317fi
11318WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11319if test -n "$WINDMC_FOR_TARGET"; then
11320 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11321echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11322else
11323 echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325fi
11326
11327 fi
11328 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11330set dummy ${ncn_progname}; ac_word=$2
11331echo "$as_me:$LINENO: checking for $ac_word" >&5
11332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11333if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335else
11336 if test -n "$WINDMC_FOR_TARGET"; then
11337 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11338else
11339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350done
11351done
11352
11353fi
11354fi
11355WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11356if test -n "$WINDMC_FOR_TARGET"; then
11357 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11358echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11359else
11360 echo "$as_me:$LINENO: result: no" >&5
11361echo "${ECHO_T}no" >&6
11362fi
11363
11364 fi
11365 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11366 done
11367fi
11368
11369if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11370 set dummy windmc
11371 if test $build = $target ; then
11372 WINDMC_FOR_TARGET="$2"
11373 else
11374 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11375 fi
11376else
11377 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11378fi
11379
11380else
11381 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11382fi
11383
11384
11385RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11386
11387echo "$as_me:$LINENO: checking where to find the target ar" >&5
11388echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11389if test "x${build}" != "x${host}" ; then
11390 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11391 # We already found the complete path
11392 ac_dir=`dirname $AR_FOR_TARGET`
11393 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11394echo "${ECHO_T}pre-installed in $ac_dir" >&6
11395 else
11396 # Canadian cross, just use what we found
11397 echo "$as_me:$LINENO: result: pre-installed" >&5
11398echo "${ECHO_T}pre-installed" >&6
11399 fi
11400else
11401 ok=yes
11402 case " ${configdirs} " in
11403 *" binutils "*) ;;
11404 *) ok=no ;;
11405 esac
11406
11407 if test $ok = yes; then
11408 # An in-tree tool is available and we can use it
11409 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11410 echo "$as_me:$LINENO: result: just compiled" >&5
11411echo "${ECHO_T}just compiled" >&6
11412 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11413 # We already found the complete path
11414 ac_dir=`dirname $AR_FOR_TARGET`
11415 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11416echo "${ECHO_T}pre-installed in $ac_dir" >&6
11417 elif test "x$target" = "x$host"; then
11418 # We can use an host tool
11419 AR_FOR_TARGET='$(AR)'
11420 echo "$as_me:$LINENO: result: host tool" >&5
11421echo "${ECHO_T}host tool" >&6
11422 else
11423 # We need a cross tool
11424 echo "$as_me:$LINENO: result: pre-installed" >&5
11425echo "${ECHO_T}pre-installed" >&6
11426 fi
11427fi
11428
11429echo "$as_me:$LINENO: checking where to find the target as" >&5
11430echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11431if test "x${build}" != "x${host}" ; then
11432 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11433 # We already found the complete path
11434 ac_dir=`dirname $AS_FOR_TARGET`
11435 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11436echo "${ECHO_T}pre-installed in $ac_dir" >&6
11437 else
11438 # Canadian cross, just use what we found
11439 echo "$as_me:$LINENO: result: pre-installed" >&5
11440echo "${ECHO_T}pre-installed" >&6
11441 fi
11442else
11443 ok=yes
11444 case " ${configdirs} " in
11445 *" gas "*) ;;
11446 *) ok=no ;;
11447 esac
11448
11449 if test $ok = yes; then
11450 # An in-tree tool is available and we can use it
11451 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11452 echo "$as_me:$LINENO: result: just compiled" >&5
11453echo "${ECHO_T}just compiled" >&6
11454 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11455 # We already found the complete path
11456 ac_dir=`dirname $AS_FOR_TARGET`
11457 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11458echo "${ECHO_T}pre-installed in $ac_dir" >&6
11459 elif test "x$target" = "x$host"; then
11460 # We can use an host tool
11461 AS_FOR_TARGET='$(AS)'
11462 echo "$as_me:$LINENO: result: host tool" >&5
11463echo "${ECHO_T}host tool" >&6
11464 else
11465 # We need a cross tool
11466 echo "$as_me:$LINENO: result: pre-installed" >&5
11467echo "${ECHO_T}pre-installed" >&6
11468 fi
11469fi
11470
11471echo "$as_me:$LINENO: checking where to find the target cc" >&5
11472echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11473if test "x${build}" != "x${host}" ; then
11474 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11475 # We already found the complete path
11476 ac_dir=`dirname $CC_FOR_TARGET`
11477 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11478echo "${ECHO_T}pre-installed in $ac_dir" >&6
11479 else
11480 # Canadian cross, just use what we found
11481 echo "$as_me:$LINENO: result: pre-installed" >&5
11482echo "${ECHO_T}pre-installed" >&6
11483 fi
11484else
11485 ok=yes
11486 case " ${configdirs} " in
11487 *" gcc "*) ;;
11488 *) ok=no ;;
11489 esac
11490
11491 if test $ok = yes; then
11492 # An in-tree tool is available and we can use it
11493 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11494 echo "$as_me:$LINENO: result: just compiled" >&5
11495echo "${ECHO_T}just compiled" >&6
11496 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11497 # We already found the complete path
11498 ac_dir=`dirname $CC_FOR_TARGET`
11499 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11500echo "${ECHO_T}pre-installed in $ac_dir" >&6
11501 elif test "x$target" = "x$host"; then
11502 # We can use an host tool
11503 CC_FOR_TARGET='$(CC)'
11504 echo "$as_me:$LINENO: result: host tool" >&5
11505echo "${ECHO_T}host tool" >&6
11506 else
11507 # We need a cross tool
11508 echo "$as_me:$LINENO: result: pre-installed" >&5
11509echo "${ECHO_T}pre-installed" >&6
11510 fi
11511fi
11512
11513echo "$as_me:$LINENO: checking where to find the target c++" >&5
11514echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11515if test "x${build}" != "x${host}" ; then
11516 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11517 # We already found the complete path
11518 ac_dir=`dirname $CXX_FOR_TARGET`
11519 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11520echo "${ECHO_T}pre-installed in $ac_dir" >&6
11521 else
11522 # Canadian cross, just use what we found
11523 echo "$as_me:$LINENO: result: pre-installed" >&5
11524echo "${ECHO_T}pre-installed" >&6
11525 fi
11526else
11527 ok=yes
11528 case " ${configdirs} " in
11529 *" gcc "*) ;;
11530 *) ok=no ;;
11531 esac
11532 case ,${enable_languages}, in
11533 *,c++,*) ;;
11534 *) ok=no ;;
11535 esac
11536 if test $ok = yes; then
11537 # An in-tree tool is available and we can use it
11538 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'
11539 echo "$as_me:$LINENO: result: just compiled" >&5
11540echo "${ECHO_T}just compiled" >&6
11541 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11542 # We already found the complete path
11543 ac_dir=`dirname $CXX_FOR_TARGET`
11544 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11545echo "${ECHO_T}pre-installed in $ac_dir" >&6
11546 elif test "x$target" = "x$host"; then
11547 # We can use an host tool
11548 CXX_FOR_TARGET='$(CXX)'
11549 echo "$as_me:$LINENO: result: host tool" >&5
11550echo "${ECHO_T}host tool" >&6
11551 else
11552 # We need a cross tool
11553 echo "$as_me:$LINENO: result: pre-installed" >&5
11554echo "${ECHO_T}pre-installed" >&6
11555 fi
11556fi
11557
11558echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11559echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11560if test "x${build}" != "x${host}" ; then
11561 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11562 # We already found the complete path
11563 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11564 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11565echo "${ECHO_T}pre-installed in $ac_dir" >&6
11566 else
11567 # Canadian cross, just use what we found
11568 echo "$as_me:$LINENO: result: pre-installed" >&5
11569echo "${ECHO_T}pre-installed" >&6
11570 fi
11571else
11572 ok=yes
11573 case " ${configdirs} " in
11574 *" gcc "*) ;;
11575 *) ok=no ;;
11576 esac
11577 case ,${enable_languages}, in
11578 *,c++,*) ;;
11579 *) ok=no ;;
11580 esac
11581 if test $ok = yes; then
11582 # An in-tree tool is available and we can use it
11583 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'
11584 echo "$as_me:$LINENO: result: just compiled" >&5
11585echo "${ECHO_T}just compiled" >&6
11586 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11587 # We already found the complete path
11588 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11589 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11590echo "${ECHO_T}pre-installed in $ac_dir" >&6
11591 elif test "x$target" = "x$host"; then
11592 # We can use an host tool
11593 RAW_CXX_FOR_TARGET='$(CXX)'
11594 echo "$as_me:$LINENO: result: host tool" >&5
11595echo "${ECHO_T}host tool" >&6
11596 else
11597 # We need a cross tool
11598 echo "$as_me:$LINENO: result: pre-installed" >&5
11599echo "${ECHO_T}pre-installed" >&6
11600 fi
11601fi
11602
11603echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11604echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11605if test "x${build}" != "x${host}" ; then
11606 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11607 # We already found the complete path
11608 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11609 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11610echo "${ECHO_T}pre-installed in $ac_dir" >&6
11611 else
11612 # Canadian cross, just use what we found
11613 echo "$as_me:$LINENO: result: pre-installed" >&5
11614echo "${ECHO_T}pre-installed" >&6
11615 fi
11616else
11617 ok=yes
11618 case " ${configdirs} " in
11619 *" binutils "*) ;;
11620 *) ok=no ;;
11621 esac
11622
11623 if test $ok = yes; then
11624 # An in-tree tool is available and we can use it
11625 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11626 echo "$as_me:$LINENO: result: just compiled" >&5
11627echo "${ECHO_T}just compiled" >&6
11628 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11629 # We already found the complete path
11630 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11631 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11632echo "${ECHO_T}pre-installed in $ac_dir" >&6
11633 elif test "x$target" = "x$host"; then
11634 # We can use an host tool
11635 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11636 echo "$as_me:$LINENO: result: host tool" >&5
11637echo "${ECHO_T}host tool" >&6
11638 else
11639 # We need a cross tool
11640 echo "$as_me:$LINENO: result: pre-installed" >&5
11641echo "${ECHO_T}pre-installed" >&6
11642 fi
11643fi
11644
11645echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11646echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11647if test "x${build}" != "x${host}" ; then
11648 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11649 # We already found the complete path
11650 ac_dir=`dirname $GCC_FOR_TARGET`
11651 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11652echo "${ECHO_T}pre-installed in $ac_dir" >&6
11653 else
11654 # Canadian cross, just use what we found
11655 echo "$as_me:$LINENO: result: pre-installed" >&5
11656echo "${ECHO_T}pre-installed" >&6
11657 fi
11658else
11659 ok=yes
11660 case " ${configdirs} " in
11661 *" gcc "*) ;;
11662 *) ok=no ;;
11663 esac
11664
11665 if test $ok = yes; then
11666 # An in-tree tool is available and we can use it
11667 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11668 echo "$as_me:$LINENO: result: just compiled" >&5
11669echo "${ECHO_T}just compiled" >&6
11670 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11671 # We already found the complete path
11672 ac_dir=`dirname $GCC_FOR_TARGET`
11673 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11674echo "${ECHO_T}pre-installed in $ac_dir" >&6
11675 elif test "x$target" = "x$host"; then
11676 # We can use an host tool
11677 GCC_FOR_TARGET='$()'
11678 echo "$as_me:$LINENO: result: host tool" >&5
11679echo "${ECHO_T}host tool" >&6
11680 else
11681 # We need a cross tool
11682 echo "$as_me:$LINENO: result: pre-installed" >&5
11683echo "${ECHO_T}pre-installed" >&6
11684 fi
11685fi
11686
11687echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11688echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11689if test "x${build}" != "x${host}" ; then
11690 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11691 # We already found the complete path
11692 ac_dir=`dirname $GCJ_FOR_TARGET`
11693 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11694echo "${ECHO_T}pre-installed in $ac_dir" >&6
11695 else
11696 # Canadian cross, just use what we found
11697 echo "$as_me:$LINENO: result: pre-installed" >&5
11698echo "${ECHO_T}pre-installed" >&6
11699 fi
11700else
11701 ok=yes
11702 case " ${configdirs} " in
11703 *" gcc "*) ;;
11704 *) ok=no ;;
11705 esac
11706 case ,${enable_languages}, in
11707 *,java,*) ;;
11708 *) ok=no ;;
11709 esac
11710 if test $ok = yes; then
11711 # An in-tree tool is available and we can use it
11712 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11713 echo "$as_me:$LINENO: result: just compiled" >&5
11714echo "${ECHO_T}just compiled" >&6
11715 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11716 # We already found the complete path
11717 ac_dir=`dirname $GCJ_FOR_TARGET`
11718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11719echo "${ECHO_T}pre-installed in $ac_dir" >&6
11720 elif test "x$target" = "x$host"; then
11721 # We can use an host tool
11722 GCJ_FOR_TARGET='$(GCJ)'
11723 echo "$as_me:$LINENO: result: host tool" >&5
11724echo "${ECHO_T}host tool" >&6
11725 else
11726 # We need a cross tool
11727 echo "$as_me:$LINENO: result: pre-installed" >&5
11728echo "${ECHO_T}pre-installed" >&6
11729 fi
11730fi
11731
11732echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11733echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11734if test "x${build}" != "x${host}" ; then
11735 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11736 # We already found the complete path
11737 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11738 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11739echo "${ECHO_T}pre-installed in $ac_dir" >&6
11740 else
11741 # Canadian cross, just use what we found
11742 echo "$as_me:$LINENO: result: pre-installed" >&5
11743echo "${ECHO_T}pre-installed" >&6
11744 fi
11745else
11746 ok=yes
11747 case " ${configdirs} " in
11748 *" gcc "*) ;;
11749 *) ok=no ;;
11750 esac
11751 case ,${enable_languages}, in
11752 *,fortran,*) ;;
11753 *) ok=no ;;
11754 esac
11755 if test $ok = yes; then
11756 # An in-tree tool is available and we can use it
11757 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11758 echo "$as_me:$LINENO: result: just compiled" >&5
11759echo "${ECHO_T}just compiled" >&6
11760 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11761 # We already found the complete path
11762 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11763 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11764echo "${ECHO_T}pre-installed in $ac_dir" >&6
11765 elif test "x$target" = "x$host"; then
11766 # We can use an host tool
11767 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11768 echo "$as_me:$LINENO: result: host tool" >&5
11769echo "${ECHO_T}host tool" >&6
11770 else
11771 # We need a cross tool
11772 echo "$as_me:$LINENO: result: pre-installed" >&5
11773echo "${ECHO_T}pre-installed" >&6
11774 fi
11775fi
11776
11777echo "$as_me:$LINENO: checking where to find the target ld" >&5
11778echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11779if test "x${build}" != "x${host}" ; then
11780 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11781 # We already found the complete path
11782 ac_dir=`dirname $LD_FOR_TARGET`
11783 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11784echo "${ECHO_T}pre-installed in $ac_dir" >&6
11785 else
11786 # Canadian cross, just use what we found
11787 echo "$as_me:$LINENO: result: pre-installed" >&5
11788echo "${ECHO_T}pre-installed" >&6
11789 fi
11790else
11791 ok=yes
11792 case " ${configdirs} " in
11793 *" ld "*) ;;
11794 *) ok=no ;;
11795 esac
11796
11797 if test $ok = yes; then
11798 # An in-tree tool is available and we can use it
11799 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11800 echo "$as_me:$LINENO: result: just compiled" >&5
11801echo "${ECHO_T}just compiled" >&6
11802 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11803 # We already found the complete path
11804 ac_dir=`dirname $LD_FOR_TARGET`
11805 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11806echo "${ECHO_T}pre-installed in $ac_dir" >&6
11807 elif test "x$target" = "x$host"; then
11808 # We can use an host tool
11809 LD_FOR_TARGET='$(LD)'
11810 echo "$as_me:$LINENO: result: host tool" >&5
11811echo "${ECHO_T}host tool" >&6
11812 else
11813 # We need a cross tool
11814 echo "$as_me:$LINENO: result: pre-installed" >&5
11815echo "${ECHO_T}pre-installed" >&6
11816 fi
11817fi
11818
11819echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11820echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11821if test "x${build}" != "x${host}" ; then
11822 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11823 # We already found the complete path
11824 ac_dir=`dirname $LIPO_FOR_TARGET`
11825 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11826echo "${ECHO_T}pre-installed in $ac_dir" >&6
11827 else
11828 # Canadian cross, just use what we found
11829 echo "$as_me:$LINENO: result: pre-installed" >&5
11830echo "${ECHO_T}pre-installed" >&6
11831 fi
11832else
11833 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11834 # We already found the complete path
11835 ac_dir=`dirname $LIPO_FOR_TARGET`
11836 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11837echo "${ECHO_T}pre-installed in $ac_dir" >&6
11838 elif test "x$target" = "x$host"; then
11839 # We can use an host tool
11840 LIPO_FOR_TARGET='$(LIPO)'
11841 echo "$as_me:$LINENO: result: host tool" >&5
11842echo "${ECHO_T}host tool" >&6
11843 else
11844 # We need a cross tool
11845 echo "$as_me:$LINENO: result: pre-installed" >&5
11846echo "${ECHO_T}pre-installed" >&6
11847 fi
11848fi
11849
11850echo "$as_me:$LINENO: checking where to find the target nm" >&5
11851echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11852if test "x${build}" != "x${host}" ; then
11853 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11854 # We already found the complete path
11855 ac_dir=`dirname $NM_FOR_TARGET`
11856 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11857echo "${ECHO_T}pre-installed in $ac_dir" >&6
11858 else
11859 # Canadian cross, just use what we found
11860 echo "$as_me:$LINENO: result: pre-installed" >&5
11861echo "${ECHO_T}pre-installed" >&6
11862 fi
11863else
11864 ok=yes
11865 case " ${configdirs} " in
11866 *" binutils "*) ;;
11867 *) ok=no ;;
11868 esac
11869
11870 if test $ok = yes; then
11871 # An in-tree tool is available and we can use it
11872 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11873 echo "$as_me:$LINENO: result: just compiled" >&5
11874echo "${ECHO_T}just compiled" >&6
11875 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11876 # We already found the complete path
11877 ac_dir=`dirname $NM_FOR_TARGET`
11878 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11879echo "${ECHO_T}pre-installed in $ac_dir" >&6
11880 elif test "x$target" = "x$host"; then
11881 # We can use an host tool
11882 NM_FOR_TARGET='$(NM)'
11883 echo "$as_me:$LINENO: result: host tool" >&5
11884echo "${ECHO_T}host tool" >&6
11885 else
11886 # We need a cross tool
11887 echo "$as_me:$LINENO: result: pre-installed" >&5
11888echo "${ECHO_T}pre-installed" >&6
11889 fi
11890fi
11891
11892echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11893echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11894if test "x${build}" != "x${host}" ; then
11895 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11896 # We already found the complete path
11897 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11898 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11899echo "${ECHO_T}pre-installed in $ac_dir" >&6
11900 else
11901 # Canadian cross, just use what we found
11902 echo "$as_me:$LINENO: result: pre-installed" >&5
11903echo "${ECHO_T}pre-installed" >&6
11904 fi
11905else
11906 ok=yes
11907 case " ${configdirs} " in
11908 *" binutils "*) ;;
11909 *) ok=no ;;
11910 esac
11911
11912 if test $ok = yes; then
11913 # An in-tree tool is available and we can use it
11914 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11915 echo "$as_me:$LINENO: result: just compiled" >&5
11916echo "${ECHO_T}just compiled" >&6
11917 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11918 # We already found the complete path
11919 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11920 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11921echo "${ECHO_T}pre-installed in $ac_dir" >&6
11922 elif test "x$target" = "x$host"; then
11923 # We can use an host tool
11924 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11925 echo "$as_me:$LINENO: result: host tool" >&5
11926echo "${ECHO_T}host tool" >&6
11927 else
11928 # We need a cross tool
11929 echo "$as_me:$LINENO: result: pre-installed" >&5
11930echo "${ECHO_T}pre-installed" >&6
11931 fi
11932fi
11933
11934echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11935echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11936if test "x${build}" != "x${host}" ; then
11937 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11938 # We already found the complete path
11939 ac_dir=`dirname $RANLIB_FOR_TARGET`
11940 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11941echo "${ECHO_T}pre-installed in $ac_dir" >&6
11942 else
11943 # Canadian cross, just use what we found
11944 echo "$as_me:$LINENO: result: pre-installed" >&5
11945echo "${ECHO_T}pre-installed" >&6
11946 fi
11947else
11948 ok=yes
11949 case " ${configdirs} " in
11950 *" binutils "*) ;;
11951 *) ok=no ;;
11952 esac
11953
11954 if test $ok = yes; then
11955 # An in-tree tool is available and we can use it
11956 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11957 echo "$as_me:$LINENO: result: just compiled" >&5
11958echo "${ECHO_T}just compiled" >&6
11959 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11960 # We already found the complete path
11961 ac_dir=`dirname $RANLIB_FOR_TARGET`
11962 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11963echo "${ECHO_T}pre-installed in $ac_dir" >&6
11964 elif test "x$target" = "x$host"; then
11965 # We can use an host tool
11966 RANLIB_FOR_TARGET='$(RANLIB)'
11967 echo "$as_me:$LINENO: result: host tool" >&5
11968echo "${ECHO_T}host tool" >&6
11969 else
11970 # We need a cross tool
11971 echo "$as_me:$LINENO: result: pre-installed" >&5
11972echo "${ECHO_T}pre-installed" >&6
11973 fi
11974fi
11975
11976echo "$as_me:$LINENO: checking where to find the target strip" >&5
11977echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11978if test "x${build}" != "x${host}" ; then
11979 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11980 # We already found the complete path
11981 ac_dir=`dirname $STRIP_FOR_TARGET`
11982 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11983echo "${ECHO_T}pre-installed in $ac_dir" >&6
11984 else
11985 # Canadian cross, just use what we found
11986 echo "$as_me:$LINENO: result: pre-installed" >&5
11987echo "${ECHO_T}pre-installed" >&6
11988 fi
11989else
11990 ok=yes
11991 case " ${configdirs} " in
11992 *" binutils "*) ;;
11993 *) ok=no ;;
11994 esac
11995
11996 if test $ok = yes; then
11997 # An in-tree tool is available and we can use it
11998 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11999 echo "$as_me:$LINENO: result: just compiled" >&5
12000echo "${ECHO_T}just compiled" >&6
12001 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12002 # We already found the complete path
12003 ac_dir=`dirname $STRIP_FOR_TARGET`
12004 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12005echo "${ECHO_T}pre-installed in $ac_dir" >&6
12006 elif test "x$target" = "x$host"; then
12007 # We can use an host tool
12008 STRIP_FOR_TARGET='$(STRIP)'
12009 echo "$as_me:$LINENO: result: host tool" >&5
12010echo "${ECHO_T}host tool" >&6
12011 else
12012 # We need a cross tool
12013 echo "$as_me:$LINENO: result: pre-installed" >&5
12014echo "${ECHO_T}pre-installed" >&6
12015 fi
12016fi
12017
12018echo "$as_me:$LINENO: checking where to find the target windres" >&5
12019echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12020if test "x${build}" != "x${host}" ; then
12021 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12022 # We already found the complete path
12023 ac_dir=`dirname $WINDRES_FOR_TARGET`
12024 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12025echo "${ECHO_T}pre-installed in $ac_dir" >&6
12026 else
12027 # Canadian cross, just use what we found
12028 echo "$as_me:$LINENO: result: pre-installed" >&5
12029echo "${ECHO_T}pre-installed" >&6
12030 fi
12031else
12032 ok=yes
12033 case " ${configdirs} " in
12034 *" binutils "*) ;;
12035 *) ok=no ;;
12036 esac
12037
12038 if test $ok = yes; then
12039 # An in-tree tool is available and we can use it
12040 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12041 echo "$as_me:$LINENO: result: just compiled" >&5
12042echo "${ECHO_T}just compiled" >&6
12043 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12044 # We already found the complete path
12045 ac_dir=`dirname $WINDRES_FOR_TARGET`
12046 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12047echo "${ECHO_T}pre-installed in $ac_dir" >&6
12048 elif test "x$target" = "x$host"; then
12049 # We can use an host tool
12050 WINDRES_FOR_TARGET='$(WINDRES)'
12051 echo "$as_me:$LINENO: result: host tool" >&5
12052echo "${ECHO_T}host tool" >&6
12053 else
12054 # We need a cross tool
12055 echo "$as_me:$LINENO: result: pre-installed" >&5
12056echo "${ECHO_T}pre-installed" >&6
12057 fi
12058fi
12059
12060echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12061echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12062if test "x${build}" != "x${host}" ; then
12063 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12064 # We already found the complete path
12065 ac_dir=`dirname $WINDMC_FOR_TARGET`
12066 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12067echo "${ECHO_T}pre-installed in $ac_dir" >&6
12068 else
12069 # Canadian cross, just use what we found
12070 echo "$as_me:$LINENO: result: pre-installed" >&5
12071echo "${ECHO_T}pre-installed" >&6
12072 fi
12073else
12074 ok=yes
12075 case " ${configdirs} " in
12076 *" binutils "*) ;;
12077 *) ok=no ;;
12078 esac
12079
12080 if test $ok = yes; then
12081 # An in-tree tool is available and we can use it
12082 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12083 echo "$as_me:$LINENO: result: just compiled" >&5
12084echo "${ECHO_T}just compiled" >&6
12085 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12086 # We already found the complete path
12087 ac_dir=`dirname $WINDMC_FOR_TARGET`
12088 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12089echo "${ECHO_T}pre-installed in $ac_dir" >&6
12090 elif test "x$target" = "x$host"; then
12091 # We can use an host tool
12092 WINDMC_FOR_TARGET='$(WINDMC)'
12093 echo "$as_me:$LINENO: result: host tool" >&5
12094echo "${ECHO_T}host tool" >&6
12095 else
12096 # We need a cross tool
12097 echo "$as_me:$LINENO: result: pre-installed" >&5
12098echo "${ECHO_T}pre-installed" >&6
12099 fi
12100fi
12101
12102
12103
12104
12105
12106# Certain tools may need extra flags.
12107AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12108RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12109NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12110
12111# When building target libraries, except in a Canadian cross, we use
12112# the same toolchain as the compiler we just built.
12113COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12114COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12115COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12116if test $host = $build; then
12117 case " $configdirs " in
12118 *" gcc "*)
12119 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12120 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12121 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12122 ;;
12123 esac
12124fi
12125
12126
12127
12128
12129
12130echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12131echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12132# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12133if test "${enable_maintainer_mode+set}" = set; then
12134 enableval="$enable_maintainer_mode"
12135 USE_MAINTAINER_MODE=$enableval
12136else
12137 USE_MAINTAINER_MODE=no
12138fi;
12139echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12140echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12141
12142
12143if test "$USE_MAINTAINER_MODE" = yes; then
12144 MAINTAINER_MODE_TRUE=
12145 MAINTAINER_MODE_FALSE='#'
12146else
12147 MAINTAINER_MODE_TRUE='#'
12148 MAINTAINER_MODE_FALSE=
12149fi
12150MAINT=$MAINTAINER_MODE_TRUE
12151
12152# ---------------------
12153# GCC bootstrap support
12154# ---------------------
12155
12156# Stage specific cflags for build.
12157stage1_cflags="-g"
12158case $build in
12159 vax-*-*)
12160 case ${GCC} in
12161 yes) stage1_cflags="-g -Wa,-J" ;;
12162 *) stage1_cflags="-g -J" ;;
12163 esac ;;
12164esac
12165
12166# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12167if test "$GCC" = yes; then
12168 saved_CFLAGS="$CFLAGS"
12169
12170 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12171 CFLAGS="$CFLAGS -fkeep-inline-functions"
12172 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12173echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12174 cat >conftest.$ac_ext <<_ACEOF
12175/* confdefs.h. */
12176_ACEOF
12177cat confdefs.h >>conftest.$ac_ext
12178cat >>conftest.$ac_ext <<_ACEOF
12179/* end confdefs.h. */
12180
12181#if (__GNUC__ < 3) \
12182 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12183 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12184#error http://gcc.gnu.org/PR29382
12185#endif
12186
12187int
12188main ()
12189{
12190
12191 ;
12192 return 0;
12193}
12194_ACEOF
12195rm -f conftest.$ac_objext
12196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag"
12205 || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest.$ac_objext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 echo "$as_me:$LINENO: result: yes" >&5
12218echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12219else
12220 echo "$as_me: failed program was:" >&5
12221sed 's/^/| /' conftest.$ac_ext >&5
12222
12223echo "$as_me:$LINENO: result: no" >&5
12224echo "${ECHO_T}no" >&6
12225fi
12226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12227
12228 CFLAGS="$saved_CFLAGS"
12229fi
12230
12231
12232
12233# Enable --enable-checking in stage1 of the compiler.
12234# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12235if test "${enable_stage1_checking+set}" = set; then
12236 enableval="$enable_stage1_checking"
12237 stage1_checking=--enable-checking=${enable_stage1_checking}
12238else
12239 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12240 stage1_checking=--enable-checking=yes,types
12241else
12242 stage1_checking=--enable-checking=$enable_checking,types
12243fi
12244fi;
12245
12246
12247# Enable -Werror in bootstrap stage2 and later.
12248# Check whether --enable-werror or --disable-werror was given.
12249if test "${enable_werror+set}" = set; then
12250 enableval="$enable_werror"
12251
12252else
12253 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12254 enable_werror=yes
12255else
12256 enable_werror=no
12257fi
12258fi;
12259case ${enable_werror} in
12260 yes) stage2_werror_flag="--enable-werror-always" ;;
12261 *) stage2_werror_flag="" ;;
12262esac
12263
12264
12265# Flags needed to enable html installing and building
12266
12267# Check whether --with-datarootdir or --without-datarootdir was given.
12268if test "${with_datarootdir+set}" = set; then
12269 withval="$with_datarootdir"
12270 datarootdir="\${prefix}/${withval}"
12271else
12272 datarootdir="\${prefix}/share"
12273fi;
12274
12275
12276# Check whether --with-docdir or --without-docdir was given.
12277if test "${with_docdir+set}" = set; then
12278 withval="$with_docdir"
12279 docdir="\${prefix}/${withval}"
12280else
12281 docdir="\${datarootdir}/doc"
12282fi;
12283
12284
12285# Check whether --with-pdfdir or --without-pdfdir was given.
12286if test "${with_pdfdir+set}" = set; then
12287 withval="$with_pdfdir"
12288 pdfdir="\${prefix}/${withval}"
12289else
12290 pdfdir="\${docdir}"
12291fi;
12292
12293
12294# Check whether --with-htmldir or --without-htmldir was given.
12295if test "${with_htmldir+set}" = set; then
12296 withval="$with_htmldir"
12297 htmldir="\${prefix}/${withval}"
12298else
12299 htmldir="\${docdir}"
12300fi;
12301
12302
12303
12304
12305
12306
12307 ac_config_files="$ac_config_files Makefile"
12308cat >confcache <<\_ACEOF
12309# This file is a shell script that caches the results of configure
12310# tests run on this system so they can be shared between configure
12311# scripts and configure runs, see configure's option --config-cache.
12312# It is not useful on other systems. If it contains results you don't
12313# want to keep, you may remove or edit it.
12314#
12315# config.status only pays attention to the cache file if you give it
12316# the --recheck option to rerun configure.
12317#
12318# `ac_cv_env_foo' variables (set or unset) will be overridden when
12319# loading this file, other *unset* `ac_cv_foo' will be assigned the
12320# following values.
12321
12322_ACEOF
12323
12324# The following way of writing the cache mishandles newlines in values,
12325# but we know of no workaround that is simple, portable, and efficient.
12326# So, don't put newlines in cache variables' values.
12327# Ultrix sh set writes to stderr and can't be redirected directly,
12328# and sets the high bit in the cache file unless we assign to the vars.
12329{
12330 (set) 2>&1 |
12331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12332 *ac_space=\ *)
12333 # `set' does not quote correctly, so add quotes (double-quote
12334 # substitution turns \\\\ into \\, and sed turns \\ into \).
12335 sed -n \
12336 "s/'/'\\\\''/g;
12337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12338 ;;
12339 *)
12340 # `set' quotes correctly as required by POSIX, so do not add quotes.
12341 sed -n \
12342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12343 ;;
12344 esac;
12345} |
12346 sed '
12347 t clear
12348 : clear
12349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12350 t end
12351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12352 : end' >>confcache
12353if diff $cache_file confcache >/dev/null 2>&1; then :; else
12354 if test -w $cache_file; then
12355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12356 cat confcache >$cache_file
12357 else
12358 echo "not updating unwritable cache $cache_file"
12359 fi
12360fi
12361rm -f confcache
12362
12363test "x$prefix" = xNONE && prefix=$ac_default_prefix
12364# Let make expand exec_prefix.
12365test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12366
12367# VPATH may cause trouble with some makes, so we remove $(srcdir),
12368# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12369# trailing colons and then remove the whole line if VPATH becomes empty
12370# (actually we leave an empty line to preserve line numbers).
12371if test "x$srcdir" = x.; then
12372 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12373s/:*\$(srcdir):*/:/;
12374s/:*\${srcdir}:*/:/;
12375s/:*@srcdir@:*/:/;
12376s/^\([^=]*=[ ]*\):*/\1/;
12377s/:*$//;
12378s/^[^=]*=[ ]*$//;
12379}'
12380fi
12381
12382# Transform confdefs.h into DEFS.
12383# Protect against shell expansion while executing Makefile rules.
12384# Protect against Makefile macro expansion.
12385#
12386# If the first sed substitution is executed (which looks for macros that
12387# take arguments), then we branch to the quote section. Otherwise,
12388# look for a macro that doesn't take arguments.
12389cat >confdef2opt.sed <<\_ACEOF
12390t clear
12391: clear
12392s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12393t quote
12394s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12395t quote
12396d
12397: quote
12398s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12399s,\[,\\&,g
12400s,\],\\&,g
12401s,\$,$$,g
12402p
12403_ACEOF
12404# We use echo to avoid assuming a particular line-breaking character.
12405# The extra dot is to prevent the shell from consuming trailing
12406# line-breaks from the sub-command output. A line-break within
12407# single-quotes doesn't work because, if this script is created in a
12408# platform that uses two characters for line-breaks (e.g., DOS), tr
12409# would break.
12410ac_LF_and_DOT=`echo; echo .`
12411DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12412rm -f confdef2opt.sed
12413
12414
12415ac_libobjs=
12416ac_ltlibobjs=
12417for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12418 # 1. Remove the extension, and $U if already installed.
12419 ac_i=`echo "$ac_i" |
12420 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12421 # 2. Add them.
12422 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12423 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12424done
12425LIBOBJS=$ac_libobjs
12426
12427LTLIBOBJS=$ac_ltlibobjs
12428
12429
12430
12431: ${CONFIG_STATUS=./config.status}
12432ac_clean_files_save=$ac_clean_files
12433ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12434{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12435echo "$as_me: creating $CONFIG_STATUS" >&6;}
12436cat >$CONFIG_STATUS <<_ACEOF
12437#! $SHELL
12438# Generated by $as_me.
12439# Run this file to recreate the current configuration.
12440# Compiler output produced by configure, useful for debugging
12441# configure, is in config.log if it exists.
12442
12443debug=false
12444ac_cs_recheck=false
12445ac_cs_silent=false
12446SHELL=\${CONFIG_SHELL-$SHELL}
12447_ACEOF
12448
12449cat >>$CONFIG_STATUS <<\_ACEOF
12450## --------------------- ##
12451## M4sh Initialization. ##
12452## --------------------- ##
12453
12454# Be Bourne compatible
12455if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12456 emulate sh
12457 NULLCMD=:
12458 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12459 # is contrary to our usage. Disable this feature.
12460 alias -g '${1+"$@"}'='"$@"'
12461elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12462 set -o posix
12463fi
12464DUALCASE=1; export DUALCASE # for MKS sh
12465
12466# Support unset when possible.
12467if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12468 as_unset=unset
12469else
12470 as_unset=false
12471fi
12472
12473
12474# Work around bugs in pre-3.0 UWIN ksh.
12475$as_unset ENV MAIL MAILPATH
12476PS1='$ '
12477PS2='> '
12478PS4='+ '
12479
12480# NLS nuisances.
12481for as_var in \
12482 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12483 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12484 LC_TELEPHONE LC_TIME
12485do
12486 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12487 eval $as_var=C; export $as_var
12488 else
12489 $as_unset $as_var
12490 fi
12491done
12492
12493# Required to use basename.
12494if expr a : '\(a\)' >/dev/null 2>&1; then
12495 as_expr=expr
12496else
12497 as_expr=false
12498fi
12499
12500if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12501 as_basename=basename
12502else
12503 as_basename=false
12504fi
12505
12506
12507# Name of the executable.
12508as_me=`$as_basename "$0" ||
12509$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12510 X"$0" : 'X\(//\)$' \| \
12511 X"$0" : 'X\(/\)$' \| \
12512 . : '\(.\)' 2>/dev/null ||
12513echo X/"$0" |
12514 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12515 /^X\/\(\/\/\)$/{ s//\1/; q; }
12516 /^X\/\(\/\).*/{ s//\1/; q; }
12517 s/.*/./; q'`
12518
12519
12520# PATH needs CR, and LINENO needs CR and PATH.
12521# Avoid depending upon Character Ranges.
12522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12525as_cr_digits='0123456789'
12526as_cr_alnum=$as_cr_Letters$as_cr_digits
12527
12528# The user is always right.
12529if test "${PATH_SEPARATOR+set}" != set; then
12530 echo "#! /bin/sh" >conf$$.sh
12531 echo "exit 0" >>conf$$.sh
12532 chmod +x conf$$.sh
12533 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12534 PATH_SEPARATOR=';'
12535 else
12536 PATH_SEPARATOR=:
12537 fi
12538 rm -f conf$$.sh
12539fi
12540
12541
12542 as_lineno_1=$LINENO
12543 as_lineno_2=$LINENO
12544 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12545 test "x$as_lineno_1" != "x$as_lineno_2" &&
12546 test "x$as_lineno_3" = "x$as_lineno_2" || {
12547 # Find who we are. Look in the path if we contain no path at all
12548 # relative or not.
12549 case $0 in
12550 *[\\/]* ) as_myself=$0 ;;
12551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12557done
12558
12559 ;;
12560 esac
12561 # We did not find ourselves, most probably we were run as `sh COMMAND'
12562 # in which case we are not to be found in the path.
12563 if test "x$as_myself" = x; then
12564 as_myself=$0
12565 fi
12566 if test ! -f "$as_myself"; then
12567 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12568echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12569 { (exit 1); exit 1; }; }
12570 fi
12571 case $CONFIG_SHELL in
12572 '')
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12575do
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for as_base in sh bash ksh sh5; do
12579 case $as_dir in
12580 /*)
12581 if ("$as_dir/$as_base" -c '
12582 as_lineno_1=$LINENO
12583 as_lineno_2=$LINENO
12584 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12585 test "x$as_lineno_1" != "x$as_lineno_2" &&
12586 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12587 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12588 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12589 CONFIG_SHELL=$as_dir/$as_base
12590 export CONFIG_SHELL
12591 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12592 fi;;
12593 esac
12594 done
12595done
12596;;
12597 esac
12598
12599 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12600 # uniformly replaced by the line number. The first 'sed' inserts a
12601 # line-number line before each line; the second 'sed' does the real
12602 # work. The second script uses 'N' to pair each line-number line
12603 # with the numbered line, and appends trailing '-' during
12604 # substitution so that $LINENO is not a special case at line end.
12605 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12606 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12607 sed '=' <$as_myself |
12608 sed '
12609 N
12610 s,$,-,
12611 : loop
12612 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12613 t loop
12614 s,-$,,
12615 s,^['$as_cr_digits']*\n,,
12616 ' >$as_me.lineno &&
12617 chmod +x $as_me.lineno ||
12618 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12619echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12620 { (exit 1); exit 1; }; }
12621
12622 # Don't try to exec as it changes $[0], causing all sort of problems
12623 # (the dirname of $[0] is not the place where we might find the
12624 # original and so on. Autoconf is especially sensible to this).
12625 . ./$as_me.lineno
12626 # Exit status is that of the last command.
12627 exit
12628}
12629
12630
12631case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12632 *c*,-n*) ECHO_N= ECHO_C='
12633' ECHO_T=' ' ;;
12634 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12635 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12636esac
12637
12638if expr a : '\(a\)' >/dev/null 2>&1; then
12639 as_expr=expr
12640else
12641 as_expr=false
12642fi
12643
12644rm -f conf$$ conf$$.exe conf$$.file
12645echo >conf$$.file
12646if ln -s conf$$.file conf$$ 2>/dev/null; then
12647 # We could just check for DJGPP; but this test a) works b) is more generic
12648 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12649 if test -f conf$$.exe; then
12650 # Don't use ln at all; we don't have any links
12651 as_ln_s='cp -p'
12652 else
12653 as_ln_s='ln -s'
12654 fi
12655elif ln conf$$.file conf$$ 2>/dev/null; then
12656 as_ln_s=ln
12657else
12658 as_ln_s='cp -p'
12659fi
12660rm -f conf$$ conf$$.exe conf$$.file
12661
12662if mkdir -p . 2>/dev/null; then
12663 as_mkdir_p=:
12664else
12665 test -d ./-p && rmdir ./-p
12666 as_mkdir_p=false
12667fi
12668
12669as_executable_p="test -f"
12670
12671# Sed expression to map a string onto a valid CPP name.
12672as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12673
12674# Sed expression to map a string onto a valid variable name.
12675as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12676
12677
12678# IFS
12679# We need space, tab and new line, in precisely that order.
12680as_nl='
12681'
12682IFS=" $as_nl"
12683
12684# CDPATH.
12685$as_unset CDPATH
12686
12687exec 6>&1
12688
12689# Open the log real soon, to keep \$[0] and so on meaningful, and to
12690# report actual input values of CONFIG_FILES etc. instead of their
12691# values after options handling. Logging --version etc. is OK.
12692exec 5>>config.log
12693{
12694 echo
12695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12696## Running $as_me. ##
12697_ASBOX
12698} >&5
12699cat >&5 <<_CSEOF
12700
12701This file was extended by $as_me, which was
12702generated by GNU Autoconf 2.59. Invocation command line was
12703
12704 CONFIG_FILES = $CONFIG_FILES
12705 CONFIG_HEADERS = $CONFIG_HEADERS
12706 CONFIG_LINKS = $CONFIG_LINKS
12707 CONFIG_COMMANDS = $CONFIG_COMMANDS
12708 $ $0 $@
12709
12710_CSEOF
12711echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12712echo >&5
12713_ACEOF
12714
12715# Files that config.status was made for.
12716if test -n "$ac_config_files"; then
12717 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12718fi
12719
12720if test -n "$ac_config_headers"; then
12721 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12722fi
12723
12724if test -n "$ac_config_links"; then
12725 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12726fi
12727
12728if test -n "$ac_config_commands"; then
12729 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12730fi
12731
12732cat >>$CONFIG_STATUS <<\_ACEOF
12733
12734ac_cs_usage="\
12735\`$as_me' instantiates files from templates according to the
12736current configuration.
12737
12738Usage: $0 [OPTIONS] [FILE]...
12739
12740 -h, --help print this help, then exit
12741 -V, --version print version number, then exit
12742 -q, --quiet do not print progress messages
12743 -d, --debug don't remove temporary files
12744 --recheck update $as_me by reconfiguring in the same conditions
12745 --file=FILE[:TEMPLATE]
12746 instantiate the configuration file FILE
12747
12748Configuration files:
12749$config_files
12750
12751Report bugs to <bug-autoconf@gnu.org>."
12752_ACEOF
12753
12754cat >>$CONFIG_STATUS <<_ACEOF
12755ac_cs_version="\\
12756config.status
12757configured by $0, generated by GNU Autoconf 2.59,
12758 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12759
12760Copyright (C) 2003 Free Software Foundation, Inc.
12761This config.status script is free software; the Free Software Foundation
12762gives unlimited permission to copy, distribute and modify it."
12763srcdir=$srcdir
12764INSTALL="$INSTALL"
12765_ACEOF
12766
12767cat >>$CONFIG_STATUS <<\_ACEOF
12768# If no file are specified by the user, then we need to provide default
12769# value. By we need to know if files were specified by the user.
12770ac_need_defaults=:
12771while test $# != 0
12772do
12773 case $1 in
12774 --*=*)
12775 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12776 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12777 ac_shift=:
12778 ;;
12779 -*)
12780 ac_option=$1
12781 ac_optarg=$2
12782 ac_shift=shift
12783 ;;
12784 *) # This is not an option, so the user has probably given explicit
12785 # arguments.
12786 ac_option=$1
12787 ac_need_defaults=false;;
12788 esac
12789
12790 case $ac_option in
12791 # Handling of the options.
12792_ACEOF
12793cat >>$CONFIG_STATUS <<\_ACEOF
12794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12795 ac_cs_recheck=: ;;
12796 --version | --vers* | -V )
12797 echo "$ac_cs_version"; exit 0 ;;
12798 --he | --h)
12799 # Conflict between --help and --header
12800 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12801Try \`$0 --help' for more information." >&5
12802echo "$as_me: error: ambiguous option: $1
12803Try \`$0 --help' for more information." >&2;}
12804 { (exit 1); exit 1; }; };;
12805 --help | --hel | -h )
12806 echo "$ac_cs_usage"; exit 0 ;;
12807 --debug | --d* | -d )
12808 debug=: ;;
12809 --file | --fil | --fi | --f )
12810 $ac_shift
12811 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12812 ac_need_defaults=false;;
12813 --header | --heade | --head | --hea )
12814 $ac_shift
12815 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12816 ac_need_defaults=false;;
12817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12819 ac_cs_silent=: ;;
12820
12821 # This is an error.
12822 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12823Try \`$0 --help' for more information." >&5
12824echo "$as_me: error: unrecognized option: $1
12825Try \`$0 --help' for more information." >&2;}
12826 { (exit 1); exit 1; }; } ;;
12827
12828 *) ac_config_targets="$ac_config_targets $1" ;;
12829
12830 esac
12831 shift
12832done
12833
12834ac_configure_extra_args=
12835
12836if $ac_cs_silent; then
12837 exec 6>/dev/null
12838 ac_configure_extra_args="$ac_configure_extra_args --silent"
12839fi
12840
12841_ACEOF
12842cat >>$CONFIG_STATUS <<_ACEOF
12843if \$ac_cs_recheck; then
12844 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12845 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12846fi
12847
12848_ACEOF
12849
12850
12851
12852
12853
12854cat >>$CONFIG_STATUS <<\_ACEOF
12855for ac_config_target in $ac_config_targets
12856do
12857 case "$ac_config_target" in
12858 # Handling of arguments.
12859 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12860 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12861echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12862 { (exit 1); exit 1; }; };;
12863 esac
12864done
12865
12866# If the user did not use the arguments to specify the items to instantiate,
12867# then the envvar interface is used. Set only those that are not.
12868# We use the long form for the default assignment because of an extremely
12869# bizarre bug on SunOS 4.1.3.
12870if $ac_need_defaults; then
12871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12872fi
12873
12874# Have a temporary directory for convenience. Make it in the build tree
12875# simply because there is no reason to put it here, and in addition,
12876# creating and moving files from /tmp can sometimes cause problems.
12877# Create a temporary directory, and hook for its removal unless debugging.
12878$debug ||
12879{
12880 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12881 trap '{ (exit 1); exit 1; }' 1 2 13 15
12882}
12883
12884# Create a (secure) tmp directory for tmp files.
12885
12886{
12887 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12888 test -n "$tmp" && test -d "$tmp"
12889} ||
12890{
12891 tmp=./confstat$$-$RANDOM
12892 (umask 077 && mkdir $tmp)
12893} ||
12894{
12895 echo "$me: cannot create a temporary directory in ." >&2
12896 { (exit 1); exit 1; }
12897}
12898
12899_ACEOF
12900
12901cat >>$CONFIG_STATUS <<_ACEOF
12902
12903#
12904# CONFIG_FILES section.
12905#
12906
12907# No need to generate the scripts if there are no CONFIG_FILES.
12908# This happens for instance when ./config.status config.h
12909if test -n "\$CONFIG_FILES"; then
12910 # Protect against being on the right side of a sed subst in config.status.
12911 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12912 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12913s,@SHELL@,$SHELL,;t t
12914s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12915s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12916s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12917s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12918s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12919s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12920s,@exec_prefix@,$exec_prefix,;t t
12921s,@prefix@,$prefix,;t t
12922s,@program_transform_name@,$program_transform_name,;t t
12923s,@bindir@,$bindir,;t t
12924s,@sbindir@,$sbindir,;t t
12925s,@libexecdir@,$libexecdir,;t t
12926s,@datadir@,$datadir,;t t
12927s,@sysconfdir@,$sysconfdir,;t t
12928s,@sharedstatedir@,$sharedstatedir,;t t
12929s,@localstatedir@,$localstatedir,;t t
12930s,@libdir@,$libdir,;t t
12931s,@includedir@,$includedir,;t t
12932s,@oldincludedir@,$oldincludedir,;t t
12933s,@infodir@,$infodir,;t t
12934s,@mandir@,$mandir,;t t
12935s,@build_alias@,$build_alias,;t t
12936s,@host_alias@,$host_alias,;t t
12937s,@target_alias@,$target_alias,;t t
12938s,@DEFS@,$DEFS,;t t
12939s,@ECHO_C@,$ECHO_C,;t t
12940s,@ECHO_N@,$ECHO_N,;t t
12941s,@ECHO_T@,$ECHO_T,;t t
12942s,@LIBS@,$LIBS,;t t
12943s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12944s,@build@,$build,;t t
12945s,@build_cpu@,$build_cpu,;t t
12946s,@build_vendor@,$build_vendor,;t t
12947s,@build_os@,$build_os,;t t
12948s,@build_noncanonical@,$build_noncanonical,;t t
12949s,@host_noncanonical@,$host_noncanonical,;t t
12950s,@target_noncanonical@,$target_noncanonical,;t t
12951s,@host@,$host,;t t
12952s,@host_cpu@,$host_cpu,;t t
12953s,@host_vendor@,$host_vendor,;t t
12954s,@host_os@,$host_os,;t t
12955s,@target@,$target,;t t
12956s,@target_cpu@,$target_cpu,;t t
12957s,@target_vendor@,$target_vendor,;t t
12958s,@target_os@,$target_os,;t t
12959s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12960s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12961s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12962s,@LN@,$LN,;t t
12963s,@LN_S@,$LN_S,;t t
12964s,@build_libsubdir@,$build_libsubdir,;t t
12965s,@build_subdir@,$build_subdir,;t t
12966s,@host_subdir@,$host_subdir,;t t
12967s,@target_subdir@,$target_subdir,;t t
12968s,@CC@,$CC,;t t
12969s,@CFLAGS@,$CFLAGS,;t t
12970s,@LDFLAGS@,$LDFLAGS,;t t
12971s,@CPPFLAGS@,$CPPFLAGS,;t t
12972s,@ac_ct_CC@,$ac_ct_CC,;t t
12973s,@EXEEXT@,$EXEEXT,;t t
12974s,@OBJEXT@,$OBJEXT,;t t
12975s,@CXX@,$CXX,;t t
12976s,@CXXFLAGS@,$CXXFLAGS,;t t
12977s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12978s,@GNATBIND@,$GNATBIND,;t t
12979s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12980s,@GNATMAKE@,$GNATMAKE,;t t
12981s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12982s,@do_compare@,$do_compare,;t t
12983s,@gmplibs@,$gmplibs,;t t
12984s,@gmpinc@,$gmpinc,;t t
12985s,@stage1_languages@,$stage1_languages,;t t
12986s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12987s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12988s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12989s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
12990s,@CPPFLAGS_FOR_TARGET@,$CPPFLAGS_FOR_TARGET,;t t
12991s,@LDFLAGS_FOR_TARGET@,$LDFLAGS_FOR_TARGET,;t t
12992s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12993s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
12994s,@tooldir@,$tooldir,;t t
12995s,@build_tooldir@,$build_tooldir,;t t
12996s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12997s,@GDB_TK@,$GDB_TK,;t t
12998s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12999s,@build_configargs@,$build_configargs,;t t
13000s,@build_configdirs@,$build_configdirs,;t t
13001s,@host_configargs@,$host_configargs,;t t
13002s,@configdirs@,$configdirs,;t t
13003s,@target_configargs@,$target_configargs,;t t
13004s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13005s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13006s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13007s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13008s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
13009s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13010s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13011s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13012s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13013s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13014s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13015s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13016s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13017s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13018s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13019s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13020s,@config_shell@,$config_shell,;t t
13021s,@YACC@,$YACC,;t t
13022s,@BISON@,$BISON,;t t
13023s,@M4@,$M4,;t t
13024s,@LEX@,$LEX,;t t
13025s,@FLEX@,$FLEX,;t t
13026s,@MAKEINFO@,$MAKEINFO,;t t
13027s,@EXPECT@,$EXPECT,;t t
13028s,@RUNTEST@,$RUNTEST,;t t
13029s,@AR@,$AR,;t t
13030s,@AS@,$AS,;t t
13031s,@DLLTOOL@,$DLLTOOL,;t t
13032s,@LD@,$LD,;t t
13033s,@LIPO@,$LIPO,;t t
13034s,@NM@,$NM,;t t
13035s,@RANLIB@,$RANLIB,;t t
13036s,@STRIP@,$STRIP,;t t
13037s,@WINDRES@,$WINDRES,;t t
13038s,@WINDMC@,$WINDMC,;t t
13039s,@OBJCOPY@,$OBJCOPY,;t t
13040s,@OBJDUMP@,$OBJDUMP,;t t
13041s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13042s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13043s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13044s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13045s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13046s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13047s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13048s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13049s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13050s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13051s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13052s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13053s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13054s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13055s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13056s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13057s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13058s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13059s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13060s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13061s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13062s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13063s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13064s,@MAINT@,$MAINT,;t t
13065s,@stage1_cflags@,$stage1_cflags,;t t
13066s,@stage1_checking@,$stage1_checking,;t t
13067s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13068s,@datarootdir@,$datarootdir,;t t
13069s,@docdir@,$docdir,;t t
13070s,@pdfdir@,$pdfdir,;t t
13071s,@htmldir@,$htmldir,;t t
13072s,@LIBOBJS@,$LIBOBJS,;t t
13073s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13074/@serialization_dependencies@/r $serialization_dependencies
13075s,@serialization_dependencies@,,;t t
13076/@host_makefile_frag@/r $host_makefile_frag
13077s,@host_makefile_frag@,,;t t
13078/@target_makefile_frag@/r $target_makefile_frag
13079s,@target_makefile_frag@,,;t t
13080/@alphaieee_frag@/r $alphaieee_frag
13081s,@alphaieee_frag@,,;t t
13082/@ospace_frag@/r $ospace_frag
13083s,@ospace_frag@,,;t t
13084CEOF
13085
13086_ACEOF
13087
13088 cat >>$CONFIG_STATUS <<\_ACEOF
13089 # Split the substitutions into bite-sized pieces for seds with
13090 # small command number limits, like on Digital OSF/1 and HP-UX.
13091 ac_max_sed_lines=48
13092 ac_sed_frag=1 # Number of current file.
13093 ac_beg=1 # First line for current file.
13094 ac_end=$ac_max_sed_lines # Line after last line for current file.
13095 ac_more_lines=:
13096 ac_sed_cmds=
13097 while $ac_more_lines; do
13098 if test $ac_beg -gt 1; then
13099 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13100 else
13101 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13102 fi
13103 if test ! -s $tmp/subs.frag; then
13104 ac_more_lines=false
13105 else
13106 # The purpose of the label and of the branching condition is to
13107 # speed up the sed processing (if there are no `@' at all, there
13108 # is no need to browse any of the substitutions).
13109 # These are the two extra sed commands mentioned above.
13110 (echo ':t
13111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13112 if test -z "$ac_sed_cmds"; then
13113 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13114 else
13115 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13116 fi
13117 ac_sed_frag=`expr $ac_sed_frag + 1`
13118 ac_beg=$ac_end
13119 ac_end=`expr $ac_end + $ac_max_sed_lines`
13120 fi
13121 done
13122 if test -z "$ac_sed_cmds"; then
13123 ac_sed_cmds=cat
13124 fi
13125fi # test -n "$CONFIG_FILES"
13126
13127_ACEOF
13128cat >>$CONFIG_STATUS <<\_ACEOF
13129for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13131 case $ac_file in
13132 - | *:- | *:-:* ) # input from stdin
13133 cat >$tmp/stdin
13134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13138 * ) ac_file_in=$ac_file.in ;;
13139 esac
13140
13141 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13142 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13143$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13144 X"$ac_file" : 'X\(//\)[^/]' \| \
13145 X"$ac_file" : 'X\(//\)$' \| \
13146 X"$ac_file" : 'X\(/\)' \| \
13147 . : '\(.\)' 2>/dev/null ||
13148echo X"$ac_file" |
13149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13151 /^X\(\/\/\)$/{ s//\1/; q; }
13152 /^X\(\/\).*/{ s//\1/; q; }
13153 s/.*/./; q'`
13154 { if $as_mkdir_p; then
13155 mkdir -p "$ac_dir"
13156 else
13157 as_dir="$ac_dir"
13158 as_dirs=
13159 while test ! -d "$as_dir"; do
13160 as_dirs="$as_dir $as_dirs"
13161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13163 X"$as_dir" : 'X\(//\)[^/]' \| \
13164 X"$as_dir" : 'X\(//\)$' \| \
13165 X"$as_dir" : 'X\(/\)' \| \
13166 . : '\(.\)' 2>/dev/null ||
13167echo X"$as_dir" |
13168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13170 /^X\(\/\/\)$/{ s//\1/; q; }
13171 /^X\(\/\).*/{ s//\1/; q; }
13172 s/.*/./; q'`
13173 done
13174 test ! -n "$as_dirs" || mkdir $as_dirs
13175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13176echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13177 { (exit 1); exit 1; }; }; }
13178
13179 ac_builddir=.
13180
13181if test "$ac_dir" != .; then
13182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13183 # A "../" for each directory in $ac_dir_suffix.
13184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13185else
13186 ac_dir_suffix= ac_top_builddir=
13187fi
13188
13189case $srcdir in
13190 .) # No --srcdir option. We are building in place.
13191 ac_srcdir=.
13192 if test -z "$ac_top_builddir"; then
13193 ac_top_srcdir=.
13194 else
13195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13196 fi ;;
13197 [\\/]* | ?:[\\/]* ) # Absolute path.
13198 ac_srcdir=$srcdir$ac_dir_suffix;
13199 ac_top_srcdir=$srcdir ;;
13200 *) # Relative path.
13201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13203esac
13204
13205# Do not use `cd foo && pwd` to compute absolute paths, because
13206# the directories may not exist.
13207case `pwd` in
13208.) ac_abs_builddir="$ac_dir";;
13209*)
13210 case "$ac_dir" in
13211 .) ac_abs_builddir=`pwd`;;
13212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13213 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13214 esac;;
13215esac
13216case $ac_abs_builddir in
13217.) ac_abs_top_builddir=${ac_top_builddir}.;;
13218*)
13219 case ${ac_top_builddir}. in
13220 .) ac_abs_top_builddir=$ac_abs_builddir;;
13221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13223 esac;;
13224esac
13225case $ac_abs_builddir in
13226.) ac_abs_srcdir=$ac_srcdir;;
13227*)
13228 case $ac_srcdir in
13229 .) ac_abs_srcdir=$ac_abs_builddir;;
13230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13232 esac;;
13233esac
13234case $ac_abs_builddir in
13235.) ac_abs_top_srcdir=$ac_top_srcdir;;
13236*)
13237 case $ac_top_srcdir in
13238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13241 esac;;
13242esac
13243
13244
13245 case $INSTALL in
13246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13247 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13248 esac
13249
13250 if test x"$ac_file" != x-; then
13251 { echo "$as_me:$LINENO: creating $ac_file" >&5
13252echo "$as_me: creating $ac_file" >&6;}
13253 rm -f "$ac_file"
13254 fi
13255 # Let's still pretend it is `configure' which instantiates (i.e., don't
13256 # use $as_me), people would be surprised to read:
13257 # /* config.h. Generated by config.status. */
13258 if test x"$ac_file" = x-; then
13259 configure_input=
13260 else
13261 configure_input="$ac_file. "
13262 fi
13263 configure_input=$configure_input"Generated from `echo $ac_file_in |
13264 sed 's,.*/,,'` by configure."
13265
13266 # First look for the input files in the build tree, otherwise in the
13267 # src tree.
13268 ac_file_inputs=`IFS=:
13269 for f in $ac_file_in; do
13270 case $f in
13271 -) echo $tmp/stdin ;;
13272 [\\/$]*)
13273 # Absolute (can't be DOS-style, as IFS=:)
13274 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13275echo "$as_me: error: cannot find input file: $f" >&2;}
13276 { (exit 1); exit 1; }; }
13277 echo "$f";;
13278 *) # Relative
13279 if test -f "$f"; then
13280 # Build tree
13281 echo "$f"
13282 elif test -f "$srcdir/$f"; then
13283 # Source tree
13284 echo "$srcdir/$f"
13285 else
13286 # /dev/null tree
13287 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13288echo "$as_me: error: cannot find input file: $f" >&2;}
13289 { (exit 1); exit 1; }; }
13290 fi;;
13291 esac
13292 done` || { (exit 1); exit 1; }
13293_ACEOF
13294cat >>$CONFIG_STATUS <<_ACEOF
13295 sed "$ac_vpsub
13296$extrasub
13297_ACEOF
13298cat >>$CONFIG_STATUS <<\_ACEOF
13299:t
13300/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13301s,@configure_input@,$configure_input,;t t
13302s,@srcdir@,$ac_srcdir,;t t
13303s,@abs_srcdir@,$ac_abs_srcdir,;t t
13304s,@top_srcdir@,$ac_top_srcdir,;t t
13305s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13306s,@builddir@,$ac_builddir,;t t
13307s,@abs_builddir@,$ac_abs_builddir,;t t
13308s,@top_builddir@,$ac_top_builddir,;t t
13309s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13310s,@INSTALL@,$ac_INSTALL,;t t
13311" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13312 rm -f $tmp/stdin
13313 if test x"$ac_file" != x-; then
13314 mv $tmp/out $ac_file
13315 else
13316 cat $tmp/out
13317 rm -f $tmp/out
13318 fi
13319
13320done
13321_ACEOF
13322
13323cat >>$CONFIG_STATUS <<\_ACEOF
13324
13325{ (exit 0); exit 0; }
13326_ACEOF
13327chmod +x $CONFIG_STATUS
13328ac_clean_files=$ac_clean_files_save
13329
13330
13331# configure is writing to config.log, and then calls config.status.
13332# config.status does its own redirection, appending to config.log.
13333# Unfortunately, on DOS this fails, as config.log is still kept open
13334# by configure, so config.status won't be able to write to it; its
13335# output is simply discarded. So we exec the FD to /dev/null,
13336# effectively closing config.log, so it can be properly (re)opened and
13337# appended to by config.status. When coming back to configure, we
13338# need to make the FD available again.
13339if test "$no_create" != yes; then
13340 ac_cs_success=:
13341 ac_config_status_args=
13342 test "$silent" = yes &&
13343 ac_config_status_args="$ac_config_status_args --quiet"
13344 exec 5>/dev/null
13345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13346 exec 5>>config.log
13347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13348 # would make configure fail if this is the last instruction.
13349 $ac_cs_success || { (exit 1); exit 1; }
13350fi
13351
This page took 0.078765 seconds and 4 git commands to generate.