gdb/
[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 ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
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 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
940 --enable-stage1-languages[=all] choose additional languages to build during
941 stage1. Mostly useful for compiler development.
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
947 sub-packages for the host, target or build
948 machine, or all sub-packages
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
972 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
973 when linking with PPL
974 --with-ppl=PATH Specify prefix directory for the installed PPL package
975 Equivalent to --with-ppl-include=PATH/include
976 plus --with-ppl-lib=PATH/lib
977 --with-ppl-include=PATH Specify directory for installed PPL include files
978 --with-ppl-lib=PATH Specify the directory for the installed PPL library
979 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
980 Equivalent to --with-cloog-include=PATH/include
981 plus --with-cloog-lib=PATH/lib
982 --with-cloog-include=PATH Specify directory for installed CLooG include files
983 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
984 --with-build-sysroot=SYSROOT
985 use sysroot as the system root during the build
986 --with-debug-prefix-map='A=B C=D ...'
987 map A to B, C to D ... in debug information
988 --with-build-time-tools=PATH
989 use given path to find target tools during the build
990 --with-datarootdir use datarootdir as the data root directory.
991 --with-docdir install documentation in this directory.
992 --with-pdfdir install pdf in this directory.
993 --with-htmldir install html in this directory.
994
995Some influential environment variables:
996 CC C compiler command
997 CFLAGS C compiler flags
998 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
999 nonstandard directory <lib dir>
1000 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1001 headers in a nonstandard directory <include dir>
1002 CXX C++ compiler command
1003 CXXFLAGS C++ compiler flags
1004 AR AR for the host
1005 AS AS for the host
1006 DLLTOOL DLLTOOL for the host
1007 LD LD for the host
1008 LIPO LIPO for the host
1009 NM NM for the host
1010 RANLIB RANLIB for the host
1011 STRIP STRIP for the host
1012 WINDRES WINDRES for the host
1013 WINDMC WINDMC for the host
1014 OBJCOPY OBJCOPY for the host
1015 OBJDUMP OBJDUMP for the host
1016 CC_FOR_TARGET
1017 CC for the target
1018 CXX_FOR_TARGET
1019 CXX for the target
1020 GCC_FOR_TARGET
1021 GCC for the target
1022 GCJ_FOR_TARGET
1023 GCJ for the target
1024 GFORTRAN_FOR_TARGET
1025 GFORTRAN for the target
1026 AR_FOR_TARGET
1027 AR for the target
1028 AS_FOR_TARGET
1029 AS for the target
1030 DLLTOOL_FOR_TARGET
1031 DLLTOOL for the target
1032 LD_FOR_TARGET
1033 LD for the target
1034 LIPO_FOR_TARGET
1035 LIPO for the target
1036 NM_FOR_TARGET
1037 NM for the target
1038 OBJDUMP_FOR_TARGET
1039 OBJDUMP for the target
1040 RANLIB_FOR_TARGET
1041 RANLIB for the target
1042 STRIP_FOR_TARGET
1043 STRIP for the target
1044 WINDRES_FOR_TARGET
1045 WINDRES for the target
1046 WINDMC_FOR_TARGET
1047 WINDMC for the target
1048
1049Use these variables to override the choices made by `configure' or to help
1050it to find libraries and programs with nonstandard names/locations.
1051
1052_ACEOF
1053fi
1054
1055if test "$ac_init_help" = "recursive"; then
1056 # If there are subdirs, report their specific --help.
1057 ac_popdir=`pwd`
1058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059 test -d $ac_dir || continue
1060 ac_builddir=.
1061
1062if test "$ac_dir" != .; then
1063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064 # A "../" for each directory in $ac_dir_suffix.
1065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066else
1067 ac_dir_suffix= ac_top_builddir=
1068fi
1069
1070case $srcdir in
1071 .) # No --srcdir option. We are building in place.
1072 ac_srcdir=.
1073 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=.
1075 else
1076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 fi ;;
1078 [\\/]* | ?:[\\/]* ) # Absolute path.
1079 ac_srcdir=$srcdir$ac_dir_suffix;
1080 ac_top_srcdir=$srcdir ;;
1081 *) # Relative path.
1082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084esac
1085
1086# Do not use `cd foo && pwd` to compute absolute paths, because
1087# the directories may not exist.
1088case `pwd` in
1089.) ac_abs_builddir="$ac_dir";;
1090*)
1091 case "$ac_dir" in
1092 .) ac_abs_builddir=`pwd`;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_builddir=${ac_top_builddir}.;;
1099*)
1100 case ${ac_top_builddir}. in
1101 .) ac_abs_top_builddir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_srcdir=$ac_srcdir;;
1108*)
1109 case $ac_srcdir in
1110 .) ac_abs_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_srcdir=$ac_top_srcdir;;
1117*)
1118 case $ac_top_srcdir in
1119 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122 esac;;
1123esac
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
1134 test -f $ac_srcdir/configure.in; then
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142fi
1143
1144test -n "$ac_init_help" && exit 0
1145if $ac_init_version; then
1146 cat <<\_ACEOF
1147
1148Copyright (C) 2003 Free Software Foundation, Inc.
1149This configure script is free software; the Free Software Foundation
1150gives unlimited permission to copy, distribute and modify it.
1151_ACEOF
1152 exit 0
1153fi
1154exec 5>config.log
1155cat >&5 <<_ACEOF
1156This file contains any messages produced by compilers while
1157running configure, to aid debugging if configure makes a mistake.
1158
1159It was created by $as_me, which was
1160generated by GNU Autoconf 2.59. Invocation command line was
1161
1162 $ $0 $@
1163
1164_ACEOF
1165{
1166cat <<_ASUNAME
1167## --------- ##
1168## Platform. ##
1169## --------- ##
1170
1171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179
1180/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1184/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187
1188_ASUNAME
1189
1190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191for as_dir in $PATH
1192do
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196done
1197
1198} >&5
1199
1200cat >&5 <<_ACEOF
1201
1202
1203## ----------- ##
1204## Core tests. ##
1205## ----------- ##
1206
1207_ACEOF
1208
1209
1210# Keep a trace of the command line.
1211# Strip out --no-create and --no-recursion so they do not pile up.
1212# Strip out --silent because we don't want to record it for future runs.
1213# Also quote any args containing shell meta-characters.
1214# Make two passes to allow for proper duplicate-argument suppression.
1215ac_configure_args=
1216ac_configure_args0=
1217ac_configure_args1=
1218ac_sep=
1219ac_must_keep_next=false
1220for ac_pass in 1 2
1221do
1222 for ac_arg
1223 do
1224 case $ac_arg in
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 continue ;;
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 esac
1232 case $ac_pass in
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 2)
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1238 else
1239 case $ac_arg in
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 esac
1247 ;;
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1250 fi
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1254 ;;
1255 esac
1256 done
1257done
1258$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261# When interrupted or exit'd, cleanup temporary files, and complete
1262# config.log. We remove comments because anyway the quotes in there
1263# would cause problems or look ugly.
1264# WARNING: Be sure not to use single quotes in there, as some shells,
1265# such as our DU 5.0 friend, will then `close' the trap.
1266trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1268 {
1269 echo
1270
1271 cat <<\_ASBOX
1272## ---------------- ##
1273## Cache variables. ##
1274## ---------------- ##
1275_ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
1278{
1279 (set) 2>&1 |
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 *ac_space=\ *)
1282 sed -n \
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 ;;
1286 *)
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 ;;
1290 esac;
1291}
1292 echo
1293
1294 cat <<\_ASBOX
1295## ----------------- ##
1296## Output variables. ##
1297## ----------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306
1307 if test -n "$ac_subst_files"; then
1308 cat <<\_ASBOX
1309## ------------- ##
1310## Output files. ##
1311## ------------- ##
1312_ASBOX
1313 echo
1314 for ac_var in $ac_subst_files
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1320 fi
1321
1322 if test -s confdefs.h; then
1323 cat <<\_ASBOX
1324## ----------- ##
1325## confdefs.h. ##
1326## ----------- ##
1327_ASBOX
1328 echo
1329 sed "/^$/d" confdefs.h | sort
1330 echo
1331 fi
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1335 } >&5
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 exit $exit_status
1339 ' 0
1340for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342done
1343ac_signal=0
1344
1345# confdefs.h avoids OS command line length limits that DEFS can exceed.
1346rm -rf conftest* confdefs.h
1347# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348echo >confdefs.h
1349
1350# Predefined preprocessor variables.
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_NAME "$PACKAGE_NAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_VERSION "$PACKAGE_VERSION"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_STRING "$PACKAGE_STRING"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374_ACEOF
1375
1376
1377# Let the site file select an alternate cache file if it wants to.
1378# Prefer explicitly selected file to automatically selected ones.
1379if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 else
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 fi
1385fi
1386for ac_site_file in $CONFIG_SITE; do
1387 if test -r "$ac_site_file"; then
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
1391 . "$ac_site_file"
1392 fi
1393done
1394
1395if test -r "$cache_file"; then
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1404 esac
1405 fi
1406else
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1410fi
1411
1412# Check that the precious variables saved in the cache have kept the same
1413# value.
1414ac_cache_corrupted=false
1415for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1421 case $ac_old_set,$ac_new_set in
1422 set,)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,set)
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1431 *)
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1444 fi
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448echo "$as_me: current value: \`$ac_new_val'" >&2;}
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1462 fi
1463done
1464if $ac_cache_corrupted; then
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1472fi
1473
1474ac_ext=c
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503progname=$0
1504# if PWD already has a value, it is probably wrong.
1505if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1506
1507# Export original configure arguments for use by sub-configures.
1508# Quote arguments with shell meta charatcers.
1509TOPLEVEL_CONFIGURE_ARGUMENTS=
1510set -- "$progname" "$@"
1511for ac_arg
1512do
1513 case "$ac_arg" in
1514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1515 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1516 # if the argument is of the form -foo=baz, quote the baz part only
1517 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1518 *) ;;
1519 esac
1520 # Add the quoted argument to the list.
1521 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1522done
1523if test "$silent" = yes; then
1524 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1525fi
1526# Remove the initial space we just introduced and, as these will be
1527# expanded by make, quote '$'.
1528TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1529
1530
1531# Find the build, host, and target systems.
1532ac_aux_dir=
1533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
1538 elif test -f $ac_dir/install.sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
1546 fi
1547done
1548if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1552fi
1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557# Make sure we can run config.sub.
1558$ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563echo "$as_me:$LINENO: checking build system type" >&5
1564echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_build_alias=$build_alias
1569test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582echo "${ECHO_T}$ac_cv_build" >&6
1583build=$ac_cv_build
1584build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 case ${build_alias} in
1590 "") build_noncanonical=${build} ;;
1591 *) build_noncanonical=${build_alias} ;;
1592esac
1593
1594
1595
1596 case ${host_alias} in
1597 "") host_noncanonical=${build_noncanonical} ;;
1598 *) host_noncanonical=${host_alias} ;;
1599esac
1600
1601
1602
1603 case ${target_alias} in
1604 "") target_noncanonical=${host_noncanonical} ;;
1605 *) target_noncanonical=${target_alias} ;;
1606esac
1607
1608
1609
1610
1611test "$host_noncanonical" = "$target_noncanonical" &&
1612 test "$program_prefix$program_suffix$program_transform_name" = \
1613 NONENONEs,x,x, &&
1614 program_transform_name=s,y,y,
1615
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1632host=$ac_cv_host
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1649 { (exit 1); exit 1; }; }
1650
1651fi
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1654target=$ac_cv_target
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
1666test "$program_prefix" != NONE &&
1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668# Use a double $ so make ignores it.
1669test "$program_suffix" != NONE &&
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671# Double any \ or $. echo might interpret backslashes.
1672# By default was `s,x,x', remove it if useless.
1673cat <<\_ACEOF >conftest.sed
1674s/[\\$]/&&/g;s/;s,x,x,$//
1675_ACEOF
1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677rm conftest.sed
1678
1679
1680
1681# Get 'install' or 'install-sh' and its variants.
1682# Find a good install program. We prefer a C program (faster),
1683# so one script is as good as another. But avoid the broken or
1684# incompatible versions:
1685# SysV /etc/install, /usr/sbin/install
1686# SunOS /usr/etc/install
1687# IRIX /sbin/install
1688# AIX /bin/install
1689# AmigaOS /C/install, which installs bootblocks on floppy discs
1690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1693# OS/2's system install, which has a completely different semantic
1694# ./install, which can be erroneously created by make from ./install.sh.
1695# Reject install programs that cannot install multiple files.
1696echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1697echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1698if test -z "$INSTALL"; then
1699if test "${ac_cv_path_install+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 # Account for people who put trailing slashes in PATH elements.
1708case $as_dir/ in
1709 ./ | .// | /cC/* | \
1710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1712 /usr/ucb/* ) ;;
1713 *)
1714 # OSF1 and SCO ODT 3.0 have their own names for install.
1715 # Don't use installbsd from OSF since it installs stuff as root
1716 # by default.
1717 for ac_prog in ginstall scoinst install; do
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1720 if test $ac_prog = install &&
1721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722 # AIX install. It has an incompatible calling convention.
1723 :
1724 elif test $ac_prog = install &&
1725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # program-specific install script used by HP pwplus--don't use.
1727 :
1728 else
1729 rm -rf conftest.one conftest.two conftest.dir
1730 echo one > conftest.one
1731 echo two > conftest.two
1732 mkdir conftest.dir
1733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1734 test -s conftest.one && test -s conftest.two &&
1735 test -s conftest.dir/conftest.one &&
1736 test -s conftest.dir/conftest.two
1737 then
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739 break 3
1740 fi
1741 fi
1742 fi
1743 done
1744 done
1745 ;;
1746esac
1747done
1748
1749rm -rf conftest.one conftest.two conftest.dir
1750
1751fi
1752 if test "${ac_cv_path_install+set}" = set; then
1753 INSTALL=$ac_cv_path_install
1754 else
1755 # As a last resort, use the slow shell script. Don't cache a
1756 # value for INSTALL within a source directory, because that will
1757 # break other packages using the cache if that directory is
1758 # removed, or if the value is a relative name.
1759 INSTALL=$ac_install_sh
1760 fi
1761fi
1762echo "$as_me:$LINENO: result: $INSTALL" >&5
1763echo "${ECHO_T}$INSTALL" >&6
1764
1765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766# It thinks the first close brace ends the variable substitution.
1767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
1769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770
1771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
1773echo "$as_me:$LINENO: checking whether ln works" >&5
1774echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1775if test "${acx_cv_prog_LN+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778 rm -f conftestdata_t
1779echo >conftestdata_f
1780if ln conftestdata_f conftestdata_t 2>/dev/null
1781then
1782 acx_cv_prog_LN=ln
1783else
1784 acx_cv_prog_LN=no
1785fi
1786rm -f conftestdata_f conftestdata_t
1787
1788fi
1789if test $acx_cv_prog_LN = no; then
1790 LN="cp"
1791 echo "$as_me:$LINENO: result: no, using $LN" >&5
1792echo "${ECHO_T}no, using $LN" >&6
1793else
1794 LN="$acx_cv_prog_LN"
1795 echo "$as_me:$LINENO: result: yes" >&5
1796echo "${ECHO_T}yes" >&6
1797fi
1798
1799echo "$as_me:$LINENO: checking whether ln -s works" >&5
1800echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1801LN_S=$as_ln_s
1802if test "$LN_S" = "ln -s"; then
1803 echo "$as_me:$LINENO: result: yes" >&5
1804echo "${ECHO_T}yes" >&6
1805else
1806 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1807echo "${ECHO_T}no, using $LN_S" >&6
1808fi
1809
1810
1811### we might need to use some other shell than /bin/sh for running subshells
1812### If we are on Windows, search for the shell. This will permit people
1813### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1814### without also having to set CONFIG_SHELL. This code will work when
1815### using bash, which sets OSTYPE.
1816case "${OSTYPE}" in
1817*win32*)
1818 if test x${CONFIG_SHELL} = x ; then
1819 if test ! -f /bin/sh ; then
1820 if test x${SHELL} != x && test -f ${SHELL} ; then
1821 CONFIG_SHELL=${SHELL}
1822 export CONFIG_SHELL
1823 else
1824 for prog in sh sh.exe bash bash.exe; do
1825 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1826 for dir in $PATH; do
1827 test -z "$dir" && dir=.
1828 if test -f $dir/$prog; then
1829 CONFIG_SHELL=$dir/$prog
1830 export CONFIG_SHELL
1831 break
1832 fi
1833 done
1834 IFS="$save_ifs"
1835 test -n "${CONFIG_SHELL}" && break
1836 done
1837 fi
1838 fi
1839 fi
1840 ;;
1841esac
1842
1843config_shell=${CONFIG_SHELL-/bin/sh}
1844
1845moveifchange=${srcdir}/move-if-change
1846
1847srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1848
1849# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1850# a relative path.
1851if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1852 INSTALL="${srcpwd}/install-sh -c"
1853fi
1854
1855# Set srcdir to "." if that's what it is.
1856# This is important for multilib support.
1857pwd=`${PWDCMD-pwd}`
1858if test "${pwd}" = "${srcpwd}" ; then
1859 srcdir=.
1860fi
1861
1862topsrcdir=$srcpwd
1863
1864extra_host_args=
1865
1866### To add a new directory to the tree, first choose whether it is a target
1867### or a host dependent tool. Then put it into the appropriate list
1868### (library or tools, host or target), doing a dependency sort.
1869
1870# Subdirs will be configured in the order listed in build_configdirs,
1871# configdirs, or target_configdirs; see the serialization section below.
1872
1873# Dependency sorting is only needed when *configuration* must be done in
1874# a particular order. In all cases a dependency should be specified in
1875# the Makefile, whether or not it's implicitly specified here.
1876
1877# Double entries in build_configdirs, configdirs, or target_configdirs may
1878# cause circular dependencies and break everything horribly.
1879
1880# these library is used by various programs built for the build
1881# environment
1882#
1883build_libs="build-libiberty"
1884
1885# these tools are built for the build environment
1886build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1887
1888# these libraries are used by various programs built for the host environment
1889#
1890host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv"
1891
1892# these tools are built for the host environment
1893# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1894# know that we are building the simulator.
1895# binutils, gas and ld appear in that order because it makes sense to run
1896# "make check" in that particular order.
1897# If --enable-gold is used, "gold" will replace "ld".
1898host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1899
1900# libgcj represents the runtime libraries only used by gcj.
1901libgcj="target-libffi \
1902 target-zlib \
1903 target-qthreads \
1904 target-libjava"
1905
1906# these libraries are built for the target environment, and are built after
1907# the host libraries and the host tools (which may be a cross compiler)
1908#
1909target_libraries="target-libgcc \
1910 target-libiberty \
1911 target-libgloss \
1912 target-newlib \
1913 target-libgomp \
1914 target-libstdc++-v3 \
1915 target-libmudflap \
1916 target-libssp \
1917 target-libgfortran \
1918 target-boehm-gc \
1919 ${libgcj} \
1920 target-libobjc \
1921 target-libada"
1922
1923# these tools are built using the target libraries, and are intended to
1924# run only in the target environment
1925#
1926# note: any program that *uses* libraries that are in the "target_libraries"
1927# list belongs in this list. those programs are also very likely
1928# candidates for the "native_only" list which follows
1929#
1930target_tools="target-examples target-groff target-gperf target-rda"
1931
1932################################################################################
1933
1934## All tools belong in one of the four categories, and are assigned above
1935## We assign ${configdirs} this way to remove all embedded newlines. This
1936## is important because configure will choke if they ever get through.
1937## ${configdirs} is directories we build using the host tools.
1938## ${target_configdirs} is directories we build using the target tools.
1939configdirs=`echo ${host_libs} ${host_tools}`
1940target_configdirs=`echo ${target_libraries} ${target_tools}`
1941build_configdirs=`echo ${build_libs} ${build_tools}`
1942
1943
1944
1945################################################################################
1946
1947srcname="gnu development package"
1948
1949# This gets set non-empty for some net releases of packages.
1950appdirs=""
1951
1952# Define is_cross_compiler to save on calls to 'test'.
1953is_cross_compiler=
1954if test x"${host}" = x"${target}" ; then
1955 is_cross_compiler=no
1956else
1957 is_cross_compiler=yes
1958fi
1959
1960# Find the build and target subdir names.
1961
1962# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1963# have matching libraries, they should use host libraries: Makefile.tpl
1964# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1965# However, they still use the build modules, because the corresponding
1966# host modules (e.g. bison) are only built for the host when bootstrap
1967# finishes. So:
1968# - build_subdir is where we find build modules, and never changes.
1969# - build_libsubdir is where we find build libraries, and can be overridden.
1970
1971# Prefix 'build-' so this never conflicts with target_subdir.
1972build_subdir="build-${build_noncanonical}"
1973
1974# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1975if test "${with_build_libsubdir+set}" = set; then
1976 withval="$with_build_libsubdir"
1977 build_libsubdir="$withval"
1978else
1979 build_libsubdir="$build_subdir"
1980fi;
1981# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1982if ( test $srcdir = . && test -d gcc ) \
1983 || test -d $srcdir/../host-${host_noncanonical}; then
1984 host_subdir="host-${host_noncanonical}"
1985else
1986 host_subdir=.
1987fi
1988# No prefix.
1989target_subdir=${target_noncanonical}
1990
1991
1992# Skipdirs are removed silently.
1993skipdirs=
1994# Noconfigdirs are removed loudly.
1995noconfigdirs=""
1996
1997use_gnu_ld=
1998# Make sure we don't let GNU ld be added if we didn't want it.
1999if test x$with_gnu_ld = xno ; then
2000 use_gnu_ld=no
2001 noconfigdirs="$noconfigdirs ld gold"
2002fi
2003
2004use_gnu_as=
2005# Make sure we don't let GNU as be added if we didn't want it.
2006if test x$with_gnu_as = xno ; then
2007 use_gnu_as=no
2008 noconfigdirs="$noconfigdirs gas"
2009fi
2010
2011# some tools are so dependent upon X11 that if we're not building with X,
2012# it's not even worth trying to configure, much less build, that tool.
2013
2014case ${with_x} in
2015 yes | "") ;; # the default value for this tree is that X11 is available
2016 no)
2017 skipdirs="${skipdirs} tk itcl libgui"
2018 # We won't be able to build gdbtk without X.
2019 enable_gdbtk=no
2020 ;;
2021 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2022esac
2023
2024# Some tools are only suitable for building in a "native" situation.
2025# Remove these if host!=target.
2026native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2027
2028# Similarly, some are only suitable for cross toolchains.
2029# Remove these if host=target.
2030cross_only="target-libgloss target-newlib target-opcodes"
2031
2032case $is_cross_compiler in
2033 no) skipdirs="${skipdirs} ${cross_only}" ;;
2034 yes) skipdirs="${skipdirs} ${native_only}" ;;
2035esac
2036
2037# If both --with-headers and --with-libs are specified, default to
2038# --without-newlib.
2039if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2040 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2041 if test x"${with_newlib}" = x ; then
2042 with_newlib=no
2043 fi
2044fi
2045
2046# Recognize --with-newlib/--without-newlib.
2047case ${with_newlib} in
2048 no) skipdirs="${skipdirs} target-newlib" ;;
2049 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2050esac
2051
2052# Handle --enable-gold.
2053
2054# Check whether --enable-gold or --disable-gold was given.
2055if test "${enable_gold+set}" = set; then
2056 enableval="$enable_gold"
2057 ENABLE_GOLD=$enableval
2058else
2059 ENABLE_GOLD=no
2060fi;
2061if test "${ENABLE_GOLD}" = "yes"; then
2062 # Check for ELF target.
2063 is_elf=no
2064 case "${target}" in
2065 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2066 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2067 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2068 case "${target}" in
2069 *-*-linux*aout* | *-*-linux*oldld*)
2070 ;;
2071 *)
2072 is_elf=yes
2073 ;;
2074 esac
2075 esac
2076
2077 if test "$is_elf" = "yes"; then
2078 # Check for target supported by gold.
2079 case "${target}" in
2080 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2081 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2082 ;;
2083 esac
2084 fi
2085fi
2086
2087# Configure extra directories which are host specific
2088
2089case "${host}" in
2090 *-cygwin*)
2091 configdirs="$configdirs libtermcap" ;;
2092esac
2093
2094# A target can indicate whether a language isn't supported for some reason.
2095# Only spaces may be used in this macro; not newlines or tabs.
2096unsupported_languages=
2097
2098# Remove more programs from consideration, based on the host or
2099# target this usually means that a port of the program doesn't
2100# exist yet.
2101
2102case "${host}" in
2103 hppa*64*-*-*)
2104 noconfigdirs="$noconfigdirs byacc"
2105 ;;
2106 i[3456789]86-*-vsta)
2107 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2108 ;;
2109 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2110 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2111 ;;
2112 x86_64-*-mingw*)
2113 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2114 ;;
2115 i[3456789]86-*-mingw32*)
2116 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2117 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2118 ;;
2119 i[3456789]86-*-beos*)
2120 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2121 ;;
2122 *-*-cygwin*)
2123 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2124 ;;
2125 *-*-netbsd*)
2126 noconfigdirs="$noconfigdirs rcs"
2127 ;;
2128 ppc*-*-pe)
2129 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2130 ;;
2131 powerpc-*-beos*)
2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2133 ;;
2134esac
2135
2136
2137# Check whether --enable-libada or --disable-libada was given.
2138if test "${enable_libada+set}" = set; then
2139 enableval="$enable_libada"
2140 ENABLE_LIBADA=$enableval
2141else
2142 ENABLE_LIBADA=yes
2143fi;
2144if test "${ENABLE_LIBADA}" != "yes" ; then
2145 noconfigdirs="$noconfigdirs gnattools"
2146fi
2147
2148# Check whether --enable-libssp or --disable-libssp was given.
2149if test "${enable_libssp+set}" = set; then
2150 enableval="$enable_libssp"
2151 ENABLE_LIBSSP=$enableval
2152else
2153 ENABLE_LIBSSP=yes
2154fi;
2155
2156# Save it here so that, even in case of --enable-libgcj, if the Java
2157# front-end isn't enabled, we still get libgcj disabled.
2158libgcj_saved=$libgcj
2159case $enable_libgcj in
2160yes)
2161 # If we reset it here, it won't get added to noconfigdirs in the
2162 # target-specific build rules, so it will be forcibly enabled
2163 # (unless the Java language itself isn't enabled).
2164 libgcj=
2165 ;;
2166no)
2167 # Make sure we get it printed in the list of not supported target libs.
2168 noconfigdirs="$noconfigdirs ${libgcj}"
2169 ;;
2170esac
2171
2172
2173# Disable libmudflap on some systems.
2174if test x$enable_libmudflap = x ; then
2175 case "${target}" in
2176 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2177 # Enable libmudflap by default in GNU and friends.
2178 ;;
2179 *-*-freebsd*)
2180 # Enable libmudflap by default in FreeBSD.
2181 ;;
2182 *)
2183 # Disable it by default everywhere else.
2184 noconfigdirs="$noconfigdirs target-libmudflap"
2185 ;;
2186 esac
2187fi
2188
2189# Disable libgomp on non POSIX hosted systems.
2190if test x$enable_libgomp = x ; then
2191 # Enable libgomp by default on hosted POSIX systems.
2192 case "${target}" in
2193 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2194 ;;
2195 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2196 ;;
2197 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2198 ;;
2199 *-*-darwin* | *-*-aix*)
2200 ;;
2201 *)
2202 noconfigdirs="$noconfigdirs target-libgomp"
2203 ;;
2204 esac
2205fi
2206
2207# Default libgloss CPU subdirectory.
2208libgloss_dir="$target_cpu"
2209
2210case "${target}" in
2211 *-*-chorusos)
2212 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2213 ;;
2214 powerpc-*-darwin*)
2215 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2216 noconfigdirs="$noconfigdirs sim target-rda"
2217 ;;
2218 i[3456789]86-*-darwin*)
2219 noconfigdirs="$noconfigdirs ld gprof"
2220 noconfigdirs="$noconfigdirs sim target-rda"
2221 ;;
2222 x86_64-*-darwin9*)
2223 noconfigdirs="$noconfigdirs ld gas gprof"
2224 noconfigdirs="$noconfigdirs sim target-rda"
2225 ;;
2226 *-*-darwin*)
2227 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2228 noconfigdirs="$noconfigdirs sim target-rda"
2229 noconfigdirs="$noconfigdirs ${libgcj}"
2230 ;;
2231 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2232 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2233 ;;
2234 *-*-freebsd*)
2235 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2236 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2237 && test -f /usr/local/include/gmp.h; then
2238 with_gmp=/usr/local
2239 fi
2240
2241 # Skip some stuff that's unsupported on some FreeBSD configurations.
2242 case "${target}" in
2243 i*86-*-*) ;;
2244 alpha*-*-*) ;;
2245 *)
2246 noconfigdirs="$noconfigdirs ${libgcj}"
2247 ;;
2248 esac
2249 ;;
2250 *-*-kaos*)
2251 # Remove unsupported stuff on all kaOS configurations.
2252 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2253 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2254 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2255 noconfigdirs="$noconfigdirs target-libgloss"
2256 ;;
2257 *-*-netbsd*)
2258 # Skip some stuff on all NetBSD configurations.
2259 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2260
2261 # Skip some stuff that's unsupported on some NetBSD configurations.
2262 case "${target}" in
2263 i*86-*-netbsdelf*) ;;
2264 arm*-*-netbsdelf*) ;;
2265 *)
2266 noconfigdirs="$noconfigdirs ${libgcj}"
2267 ;;
2268 esac
2269 ;;
2270 *-*-netware*)
2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2272 ;;
2273 *-*-rtems*)
2274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2275 ;;
2276 # The tpf target doesn't support gdb yet.
2277 *-*-tpf*)
2278 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2279 ;;
2280 *-*-uclinux*)
2281 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2282 ;;
2283 *-*-vxworks*)
2284 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2285 ;;
2286 alpha*-dec-osf*)
2287 # ld works, but does not support shared libraries.
2288 # newlib is not 64 bit ready. I'm not sure about fileutils.
2289 # gas doesn't generate exception information.
2290 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2291 ;;
2292 alpha*-*-*vms*)
2293 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2294 ;;
2295 alpha*-*-linux*)
2296 # newlib is not 64 bit ready
2297 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2298 ;;
2299 alpha*-*-*)
2300 # newlib is not 64 bit ready
2301 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2302 ;;
2303 am33_2.0-*-linux*)
2304 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2305 ;;
2306 sh-*-linux*)
2307 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2308 ;;
2309 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2310 noconfigdirs="$noconfigdirs ${libgcj}"
2311 noconfigdirs="$noconfigdirs target-examples"
2312 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2313 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2314 noconfigdirs="$noconfigdirs expect dejagnu"
2315 # the C++ libraries don't build on top of CE's C libraries
2316 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2317 noconfigdirs="$noconfigdirs target-newlib"
2318 case "${host}" in
2319 *-*-cygwin*) ;; # keep gdb and readline
2320 *) noconfigdirs="$noconfigdirs gdb readline"
2321 ;;
2322 esac
2323 libgloss_dir=wince
2324 ;;
2325 arc-*-*)
2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2327 ;;
2328 arm-semi-aof )
2329 ;;
2330 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2331 noconfigdirs="$noconfigdirs ${libgcj}"
2332 libgloss_dir=arm
2333 ;;
2334 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2335 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2336 libgloss_dir=arm
2337 ;;
2338 arm*-*-linux-gnueabi)
2339 noconfigdirs="$noconfigdirs target-qthreads"
2340 case ${with_newlib} in
2341 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2342 esac
2343 libgloss_dir=arm
2344 ;;
2345 arm*-*-symbianelf*)
2346 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2347 libgloss_dir=arm
2348 ;;
2349 arm-*-pe*)
2350 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2351 ;;
2352 thumb-*-coff)
2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2354 ;;
2355 thumb-*-elf)
2356 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2357 ;;
2358 thumb-*-pe)
2359 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2360 ;;
2361 arm-*-riscix*)
2362 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2363 ;;
2364 avr-*-*)
2365 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2366 ;;
2367 bfin-*-*)
2368 noconfigdirs="$noconfigdirs gdb"
2369 if test x${is_cross_compiler} != xno ; then
2370 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2371 fi
2372 ;;
2373 c4x-*-* | tic4x-*-*)
2374 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2375 ;;
2376 c54x*-*-* | tic54x-*-*)
2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2378 ;;
2379 cr16-*-*)
2380 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2381 ;;
2382 cris-*-* | crisv32-*-*)
2383 unsupported_languages="$unsupported_languages java"
2384 case "${target}" in
2385 *-*-aout)
2386 unsupported_languages="$unsupported_languages fortran"
2387 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2388 *-*-elf)
2389 noconfigdirs="$noconfigdirs target-boehm-gc";;
2390 *-*-linux*)
2391 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2392 *)
2393 unsupported_languages="$unsupported_languages fortran"
2394 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2395 esac
2396 libgloss_dir=cris
2397 ;;
2398 crx-*-*)
2399 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2400 ;;
2401 d10v-*-*)
2402 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2403 ;;
2404 d30v-*-*)
2405 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2406 ;;
2407 ep9312-*-elf | ep9312-*-coff)
2408 libgloss_dir=arm
2409 ;;
2410 fr30-*-elf*)
2411 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2412 ;;
2413 frv-*-*)
2414 noconfigdirs="$noconfigdirs ${libgcj}"
2415 ;;
2416 moxie-*-*)
2417 noconfigdirs="$noconfigdirs ${libgcj}"
2418 noconfigdirs="$noconfigdirs gprof"
2419 ;;
2420 h8300*-*-*)
2421 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2422 ;;
2423 h8500-*-*)
2424 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2425 ;;
2426 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2427 ;;
2428 hppa*64*-*-linux* | parisc*64*-*-linux*)
2429 # In this case, it's because the hppa64-linux target is for
2430 # the kernel only at this point and has no libc, and thus no
2431 # headers, crt*.o, etc., all of which are needed by these.
2432 noconfigdirs="$noconfigdirs target-zlib"
2433 ;;
2434 parisc*-*-linux* | hppa*-*-linux*)
2435 ;;
2436 hppa*-*-*elf* | \
2437 hppa*-*-lites* | \
2438 hppa*-*-openbsd* | \
2439 hppa*64*-*-*)
2440 noconfigdirs="$noconfigdirs ${libgcj}"
2441 ;;
2442 hppa*-hp-hpux11*)
2443 noconfigdirs="$noconfigdirs ld shellutils"
2444 ;;
2445 hppa*-*-pro*)
2446 libgloss_dir=pa
2447 ;;
2448 hppa*-*-*)
2449 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2450 # build on HP-UX 10.20.
2451 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2452 ;;
2453 i960-*-*)
2454 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2455 ;;
2456 ia64*-*-elf*)
2457 # No gdb support yet.
2458 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2459 ;;
2460 ia64*-**-hpux*)
2461 # No gdb or ld support yet.
2462 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2463 ;;
2464 ia64*-*-*vms*)
2465 # No gdb or ld support yet.
2466 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2467 ;;
2468 i370-*-opened*)
2469 ;;
2470 i[3456789]86-*-coff | i[3456789]86-*-elf)
2471 noconfigdirs="$noconfigdirs ${libgcj}"
2472 libgloss_dir=i386
2473 ;;
2474 i[3456789]86-*-linux*)
2475 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2476 # not build java stuff by default.
2477 case "${target}" in
2478 *-*-*libc1*)
2479 noconfigdirs="$noconfigdirs ${libgcj}";;
2480 esac
2481
2482 # This section makes it possible to build newlib natively on linux.
2483 # If we are using a cross compiler then don't configure newlib.
2484 if test x${is_cross_compiler} != xno ; then
2485 noconfigdirs="$noconfigdirs target-newlib"
2486 fi
2487 noconfigdirs="$noconfigdirs target-libgloss"
2488 # If we are not using a cross compiler, do configure newlib.
2489 # Note however, that newlib will only be configured in this situation
2490 # if the --with-newlib option has been given, because otherwise
2491 # 'target-newlib' will appear in skipdirs.
2492 ;;
2493 i[3456789]86-*-mingw32*)
2494 target_configdirs="$target_configdirs target-winsup"
2495 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2496 ;;
2497 x86_64-*-mingw*)
2498 target_configdirs="$target_configdirs target-winsup"
2499 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2500 ;;
2501 *-*-cygwin*)
2502 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2503 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2504 # always build newlib if winsup directory is present.
2505 if test -d "$srcdir/winsup/cygwin"; then
2506 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2507 elif test -d "$srcdir/newlib"; then
2508 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2509 fi
2510 ;;
2511 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2512 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2513 ;;
2514 i[3456789]86-*-pe)
2515 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2516 ;;
2517 i[3456789]86-*-sco3.2v5*)
2518 # The linker does not yet know about weak symbols in COFF,
2519 # and is not configured to handle mixed ELF and COFF.
2520 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2521 ;;
2522 i[3456789]86-*-sco*)
2523 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2524 ;;
2525 i[3456789]86-*-solaris2*)
2526 noconfigdirs="$noconfigdirs target-libgloss"
2527 ;;
2528 i[3456789]86-*-sysv4*)
2529 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2530 ;;
2531 i[3456789]86-*-beos*)
2532 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2533 ;;
2534 i[3456789]86-*-rdos*)
2535 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2536 ;;
2537 m32r-*-*)
2538 noconfigdirs="$noconfigdirs ${libgcj}"
2539 ;;
2540 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2541 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2542 libgloss_dir=m68hc11
2543 ;;
2544 m68k-*-elf*)
2545 noconfigdirs="$noconfigdirs ${libgcj}"
2546 ;;
2547 m68k-*-coff*)
2548 noconfigdirs="$noconfigdirs ${libgcj}"
2549 ;;
2550 m68*-*-* | fido-*-*)
2551 libgloss_dir=m68k
2552 ;;
2553 mcore-*-pe*)
2554 # The EPOC C++ environment does not support exceptions or rtti,
2555 # and so building libstdc++-v3 tends not to always work.
2556 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2557 ;;
2558 mmix-*-*)
2559 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2560 unsupported_languages="$unsupported_languages fortran java"
2561 ;;
2562 mn10200-*-*)
2563 noconfigdirs="$noconfigdirs ${libgcj}"
2564 ;;
2565 mn10300-*-*)
2566 noconfigdirs="$noconfigdirs ${libgcj}"
2567 ;;
2568 mt-*-*)
2569 noconfigdirs="$noconfigdirs sim"
2570 ;;
2571 powerpc-*-aix*)
2572 # copied from rs6000-*-* entry
2573 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2574 ;;
2575 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2576 target_configdirs="$target_configdirs target-winsup"
2577 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2578 # always build newlib.
2579 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2580 ;;
2581 # This is temporary until we can link against shared libraries
2582 powerpcle-*-solaris*)
2583 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2584 libgloss_dir=rs6000
2585 ;;
2586 powerpc-*-beos*)
2587 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2588 ;;
2589 powerpc-*-eabi)
2590 noconfigdirs="$noconfigdirs ${libgcj}"
2591 libgloss_dir=rs6000
2592 ;;
2593 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2594 libgloss_dir=rs6000
2595 ;;
2596 rs6000-*-lynxos*)
2597 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2598 ;;
2599 rs6000-*-aix*)
2600 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2601 ;;
2602 rs6000-*-*)
2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2604 ;;
2605 m68k-apollo-*)
2606 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2607 ;;
2608 mips*-sde-elf*)
2609 skipdirs="$skipdirs target-libiberty"
2610 noconfigdirs="$noconfigdirs ${libgcj}"
2611 if test x$with_newlib = xyes; then
2612 noconfigdirs="$noconfigdirs gprof"
2613 fi
2614 libgloss_dir=mips
2615 ;;
2616 mips*-*-irix5*)
2617 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2618 ;;
2619 mips*-*-irix6*)
2620 # Linking libjava exceeds command-line length limits on at least
2621 # IRIX 6.2, but not on IRIX 6.5.
2622 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2623 # <oldham@codesourcery.com>
2624 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2625 ;;
2626 mips*-*-bsd*)
2627 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2628 ;;
2629 mips*-*-linux*)
2630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2631 ;;
2632 mips*-*-*)
2633 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2634 libgloss_dir=mips
2635 ;;
2636 romp-*-*)
2637 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2638 ;;
2639 sh-*-* | sh64-*-*)
2640 case "${host}" in
2641 i[3456789]86-*-vsta) ;; # don't add gprof back in
2642 i[3456789]86-*-go32*) ;; # don't add gprof back in
2643 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2644 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2645 esac
2646 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2647 ;;
2648 sparclet-*-aout* | sparc86x-*-*)
2649 libgloss_dir=sparc
2650 ;;
2651 sparc-*-elf*)
2652 noconfigdirs="$noconfigdirs ${libgcj}"
2653 ;;
2654 sparc64-*-elf*)
2655 noconfigdirs="$noconfigdirs ${libgcj}"
2656 libgloss_dir=sparc
2657 ;;
2658 sparclite-*-*)
2659 noconfigdirs="$noconfigdirs ${libgcj}"
2660 libgloss_dir=sparc
2661 ;;
2662 sparc-*-sunos4*)
2663 noconfigdirs="$noconfigdirs ${libgcj}"
2664 if test x${is_cross_compiler} != xno ; then
2665 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2666 else
2667 use_gnu_ld=no
2668 fi
2669 ;;
2670 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2671 noconfigdirs="$noconfigdirs ${libgcj}"
2672 ;;
2673 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2674 ;;
2675 v810-*-*)
2676 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2677 ;;
2678 v850-*-*)
2679 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2680 ;;
2681 v850e-*-*)
2682 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2683 ;;
2684 v850ea-*-*)
2685 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2686 ;;
2687 vax-*-vms)
2688 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2689 ;;
2690 vax-*-*)
2691 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2692 ;;
2693 xtensa*-*-*)
2694 noconfigdirs="$noconfigdirs ${libgcj}"
2695 ;;
2696 ip2k-*-*)
2697 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2698 ;;
2699 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2701 ;;
2702 *-*-lynxos*)
2703 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2704 ;;
2705 *-*-*)
2706 noconfigdirs="$noconfigdirs ${libgcj}"
2707 ;;
2708esac
2709
2710# If we aren't building newlib, then don't build libgloss, since libgloss
2711# depends upon some newlib header files.
2712case "${noconfigdirs}" in
2713 *target-libgloss*) ;;
2714 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2715esac
2716
2717# Work in distributions that contain no compiler tools, like Autoconf.
2718tentative_cc=""
2719host_makefile_frag=/dev/null
2720if test -d ${srcdir}/config ; then
2721case "${host}" in
2722 m68k-hp-hpux*)
2723 # Avoid "too much defining" errors from HPUX compiler.
2724 tentative_cc="cc -Wp,-H256000"
2725 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2726 # If it's HP/UX ar, this should be harmless.
2727 RANLIB="ar ts"
2728 ;;
2729 m68k-apollo-sysv*)
2730 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2731 ;;
2732 m68k-apollo-bsd*)
2733 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2734 # chokes on bfd, the compiler won't let you assign integers to enums, and
2735 # other problems. Defining CC to gcc is a questionable way to say "don't use
2736 # the apollo compiler" (the preferred version of GCC could be called cc,
2737 # or whatever), but I'm not sure leaving CC as cc is any better...
2738 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2739 # Used to have BISON=yacc.
2740 tentative_cc=gcc
2741 ;;
2742 m88k-dg-dgux*)
2743 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2744 ;;
2745 m88k-harris-cxux*)
2746 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2747 tentative_cc="cc -Xa"
2748 host_makefile_frag="config/mh-cxux"
2749 ;;
2750 m88k-motorola-sysv*)
2751 ;;
2752 mips*-dec-ultrix*)
2753 tentative_cc="cc -Wf,-XNg1000"
2754 host_makefile_frag="config/mh-decstation"
2755 ;;
2756 mips*-nec-sysv4*)
2757 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2758 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2759 host_makefile_frag="config/mh-necv4"
2760 ;;
2761 mips*-sgi-irix4*)
2762 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2763 # environment. Also bump switch table size so that cp-parse will
2764 # compile. Bump string length limit so linker builds.
2765 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2766 ;;
2767 mips*-*-sysv4*)
2768 host_makefile_frag="config/mh-sysv4"
2769 ;;
2770 mips*-*-sysv*)
2771 # This is for a MIPS running RISC/os 4.52C.
2772
2773 # This is needed for GDB, but needs to be in the top-level make because
2774 # if a library is compiled with the bsd headers and gets linked with the
2775 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2776 # a different size).
2777 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2778 # known except to select the sysv environment. Could we use /proc instead?
2779 # These "sysv environments" and "bsd environments" often end up being a pain.
2780 #
2781 # This is not part of CFLAGS because perhaps not all C compilers have this
2782 # option.
2783 tentative_cc="cc -systype sysv"
2784 ;;
2785 i370-ibm-opened*)
2786 tentative_cc="c89"
2787 ;;
2788 i[3456789]86-*-sysv5*)
2789 host_makefile_frag="config/mh-sysv5"
2790 ;;
2791 i[3456789]86-*-dgux*)
2792 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2793 host_makefile_frag="config/mh-dgux386"
2794 ;;
2795 i[3456789]86-ncr-sysv4.3*)
2796 # The MetaWare compiler will generate a copyright message unless you
2797 # turn it off by adding the -Hnocopyr flag.
2798 tentative_cc="cc -Hnocopyr"
2799 ;;
2800 i[3456789]86-ncr-sysv4*)
2801 # for an NCR 3000 (i486/SVR4) system.
2802 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2803 # This compiler not only emits obnoxious copyright messages every time
2804 # you run it, but it chokes and dies on a whole bunch of GNU source
2805 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2806 tentative_cc="/usr/ccs/ATT/cc"
2807 host_makefile_frag="config/mh-ncr3000"
2808 ;;
2809 i[3456789]86-*-sco3.2v5*)
2810 ;;
2811 i[3456789]86-*-sco*)
2812 # The native C compiler botches some simple uses of const. Unfortunately,
2813 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2814 tentative_cc="cc -Dconst="
2815 host_makefile_frag="config/mh-sco"
2816 ;;
2817 i[3456789]86-*-udk*)
2818 host_makefile_frag="config/mh-sysv5"
2819 ;;
2820 i[3456789]86-*-solaris2*)
2821 host_makefile_frag="config/mh-sysv4"
2822 ;;
2823 i[3456789]86-*-msdosdjgpp*)
2824 host_makefile_frag="config/mh-djgpp"
2825 ;;
2826 *-cygwin*)
2827
2828echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2829echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2830echo a >cygwin-cat-check
2831if test `cat cygwin-cat-check` == a ; then
2832 rm cygwin-cat-check
2833 echo "$as_me:$LINENO: result: yes" >&5
2834echo "${ECHO_T}yes" >&6
2835else
2836 rm cygwin-cat-check
2837 echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
2839 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2840 Please either mount the build directory in binary mode or run the following
2841 commands before running any configure script:
2842set -o igncr
2843export SHELLOPTS
2844 " >&5
2845echo "$as_me: error: The cat command does not ignore carriage return characters.
2846 Please either mount the build directory in binary mode or run the following
2847 commands before running any configure script:
2848set -o igncr
2849export SHELLOPTS
2850 " >&2;}
2851 { (exit 1); exit 1; }; }
2852fi
2853
2854 host_makefile_frag="config/mh-cygwin"
2855 ;;
2856 *-mingw*)
2857 host_makefile_frag="config/mh-mingw"
2858 ;;
2859 *-interix*)
2860 host_makefile_frag="config/mh-interix"
2861 ;;
2862 vax-*-ultrix2*)
2863 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2864 tentative_cc=gcc
2865 ;;
2866 *-*-solaris2*)
2867 host_makefile_frag="config/mh-solaris"
2868 ;;
2869 m68k-sun-sunos*)
2870 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2871 # without overflowing the jump tables (-J says to use a 32 bit table)
2872 tentative_cc="cc -J"
2873 ;;
2874 hppa*-hp-hpux10*)
2875 tentative_cc="cc -Wp,-H256000"
2876 host_makefile_frag="config/mh-pa-hpux10"
2877 ;;
2878 hppa*-hp-hpux* | hppa*-*-hiux*)
2879 tentative_cc="cc -Wp,-H256000"
2880 host_makefile_frag="config/mh-pa"
2881 ;;
2882 hppa*-*)
2883 host_makefile_frag="config/mh-pa"
2884 ;;
2885 *-hp-hpux* | *-*-hiux*)
2886 tentative_cc="cc -Wp,-H256000"
2887 ;;
2888 rs6000-*-lynxos*)
2889 # /bin/cc is less than useful for our purposes. Always use GCC
2890 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2891 host_makefile_frag="config/mh-lynxrs6k"
2892 ;;
2893 powerpc-*-darwin*)
2894 host_makefile_frag="config/mh-ppc-darwin"
2895 ;;
2896 powerpc-*-aix*)
2897 host_makefile_frag="config/mh-ppc-aix"
2898 ;;
2899 rs6000-*-aix*)
2900 host_makefile_frag="config/mh-ppc-aix"
2901 ;;
2902 *-*-lynxos*)
2903 # /bin/cc is less than useful for our purposes. Always use GCC
2904 tentative_cc="/bin/gcc"
2905 ;;
2906 *-*-sysv4*)
2907 host_makefile_frag="config/mh-sysv4"
2908 ;;
2909 # This is placed last to prevent interfering with the cases above.
2910 i[3456789]86-*-*)
2911 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2912 host_makefile_frag="config/mh-x86omitfp"
2913 ;;
2914esac
2915fi
2916
2917# If we aren't going to be using gcc, see if we can extract a definition
2918# of CC from the fragment.
2919# Actually, use the 'pre-extracted' version above.
2920if test -z "${CC}" && test "${build}" = "${host}" ; then
2921 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2922 found=
2923 for dir in $PATH; do
2924 test -z "$dir" && dir=.
2925 if test -f $dir/gcc; then
2926 found=yes
2927 break
2928 fi
2929 done
2930 IFS="$save_ifs"
2931 if test -z "${found}" && test -n "${tentative_cc}" ; then
2932 CC=$tentative_cc
2933 fi
2934fi
2935
2936if test "${build}" != "${host}" ; then
2937 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2938 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2939 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2940 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2941 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2942 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2943 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2944 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2945 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2946 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2947 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2948 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2949else
2950 AR_FOR_BUILD="\$(AR)"
2951 AS_FOR_BUILD="\$(AS)"
2952 CC_FOR_BUILD="\$(CC)"
2953 CXX_FOR_BUILD="\$(CXX)"
2954 GCJ_FOR_BUILD="\$(GCJ)"
2955 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2956 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2957 LD_FOR_BUILD="\$(LD)"
2958 NM_FOR_BUILD="\$(NM)"
2959 RANLIB_FOR_BUILD="\$(RANLIB)"
2960 WINDRES_FOR_BUILD="\$(WINDRES)"
2961 WINDMC_FOR_BUILD="\$(WINDMC)"
2962fi
2963
2964ac_ext=c
2965ac_cpp='$CPP $CPPFLAGS'
2966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969if test -n "$ac_tool_prefix"; then
2970 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2971set dummy ${ac_tool_prefix}gcc; ac_word=$2
2972echo "$as_me:$LINENO: checking for $ac_word" >&5
2973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974if test "${ac_cv_prog_CC+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991done
2992done
2993
2994fi
2995fi
2996CC=$ac_cv_prog_CC
2997if test -n "$CC"; then
2998 echo "$as_me:$LINENO: result: $CC" >&5
2999echo "${ECHO_T}$CC" >&6
3000else
3001 echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6
3003fi
3004
3005fi
3006if test -z "$ac_cv_prog_CC"; then
3007 ac_ct_CC=$CC
3008 # Extract the first word of "gcc", so it can be a program name with args.
3009set dummy gcc; ac_word=$2
3010echo "$as_me:$LINENO: checking for $ac_word" >&5
3011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_ac_ct_CC="gcc"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029done
3030done
3031
3032fi
3033fi
3034ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035if test -n "$ac_ct_CC"; then
3036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3037echo "${ECHO_T}$ac_ct_CC" >&6
3038else
3039 echo "$as_me:$LINENO: result: no" >&5
3040echo "${ECHO_T}no" >&6
3041fi
3042
3043 CC=$ac_ct_CC
3044else
3045 CC="$ac_cv_prog_CC"
3046fi
3047
3048if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3051set dummy ${ac_tool_prefix}cc; ac_word=$2
3052echo "$as_me:$LINENO: checking for $ac_word" >&5
3053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3054if test "${ac_cv_prog_CC+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_CC="${ac_tool_prefix}cc"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3070 fi
3071done
3072done
3073
3074fi
3075fi
3076CC=$ac_cv_prog_CC
3077if test -n "$CC"; then
3078 echo "$as_me:$LINENO: result: $CC" >&5
3079echo "${ECHO_T}$CC" >&6
3080else
3081 echo "$as_me:$LINENO: result: no" >&5
3082echo "${ECHO_T}no" >&6
3083fi
3084
3085fi
3086if test -z "$ac_cv_prog_CC"; then
3087 ac_ct_CC=$CC
3088 # Extract the first word of "cc", so it can be a program name with args.
3089set dummy cc; ac_word=$2
3090echo "$as_me:$LINENO: checking for $ac_word" >&5
3091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_CC="cc"
3106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109done
3110done
3111
3112fi
3113fi
3114ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115if test -n "$ac_ct_CC"; then
3116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3117echo "${ECHO_T}$ac_ct_CC" >&6
3118else
3119 echo "$as_me:$LINENO: result: no" >&5
3120echo "${ECHO_T}no" >&6
3121fi
3122
3123 CC=$ac_ct_CC
3124else
3125 CC="$ac_cv_prog_CC"
3126fi
3127
3128fi
3129if test -z "$CC"; then
3130 # Extract the first word of "cc", so it can be a program name with args.
3131set dummy cc; ac_word=$2
3132echo "$as_me:$LINENO: checking for $ac_word" >&5
3133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3134if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139else
3140 ac_prog_rejected=no
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3149 ac_prog_rejected=yes
3150 continue
3151 fi
3152 ac_cv_prog_CC="cc"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156done
3157done
3158
3159if test $ac_prog_rejected = yes; then
3160 # We found a bogon in the path, so make sure we never use it.
3161 set dummy $ac_cv_prog_CC
3162 shift
3163 if test $# != 0; then
3164 # We chose a different compiler from the bogus one.
3165 # However, it has the same basename, so the bogon will be chosen
3166 # first if we set CC to just the basename; use the full file name.
3167 shift
3168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3169 fi
3170fi
3171fi
3172fi
3173CC=$ac_cv_prog_CC
3174if test -n "$CC"; then
3175 echo "$as_me:$LINENO: result: $CC" >&5
3176echo "${ECHO_T}$CC" >&6
3177else
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
3180fi
3181
3182fi
3183if test -z "$CC"; then
3184 if test -n "$ac_tool_prefix"; then
3185 for ac_prog in cl
3186 do
3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189echo "$as_me:$LINENO: checking for $ac_word" >&5
3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191if test "${ac_cv_prog_CC+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208done
3209done
3210
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215 echo "$as_me:$LINENO: result: $CC" >&5
3216echo "${ECHO_T}$CC" >&6
3217else
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220fi
3221
3222 test -n "$CC" && break
3223 done
3224fi
3225if test -z "$CC"; then
3226 ac_ct_CC=$CC
3227 for ac_prog in cl
3228do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230set dummy $ac_prog; ac_word=$2
3231echo "$as_me:$LINENO: checking for $ac_word" >&5
3232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3233if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 if test -n "$ac_ct_CC"; then
3237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_ac_ct_CC="$ac_prog"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250done
3251done
3252
3253fi
3254fi
3255ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256if test -n "$ac_ct_CC"; then
3257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3258echo "${ECHO_T}$ac_ct_CC" >&6
3259else
3260 echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
3262fi
3263
3264 test -n "$ac_ct_CC" && break
3265done
3266
3267 CC=$ac_ct_CC
3268fi
3269
3270fi
3271
3272
3273test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3274echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3276See \`config.log' for more details." >&5
3277echo "$as_me: error: no acceptable C compiler found in \$PATH
3278See \`config.log' for more details." >&2;}
3279 { (exit 1); exit 1; }; }; }
3280
3281# Provide some information about the compiler.
3282echo "$as_me:$LINENO:" \
3283 "checking for C compiler version" >&5
3284ac_compiler=`set X $ac_compile; echo $2`
3285{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3286 (eval $ac_compiler --version </dev/null >&5) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }
3290{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3291 (eval $ac_compiler -v </dev/null >&5) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }
3295{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3296 (eval $ac_compiler -V </dev/null >&5) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }
3300
3301cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
3316ac_clean_files_save=$ac_clean_files
3317ac_clean_files="$ac_clean_files a.out a.exe b.out"
3318# Try to create an executable without -o first, disregard a.out.
3319# It will help us diagnose broken compilers, and finding out an intuition
3320# of exeext.
3321echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3322echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3323ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3325 (eval $ac_link_default) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; then
3329 # Find the output, starting from the most likely. This scheme is
3330# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3331# resort.
3332
3333# Be careful to initialize this variable, since it used to be cached.
3334# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3335ac_cv_exeext=
3336# b.out is created by i960 compilers.
3337for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3338do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3342 ;;
3343 conftest.$ac_ext )
3344 # This is the source file.
3345 ;;
3346 [ab].out )
3347 # We found the default executable, but exeext='' is most
3348 # certainly right.
3349 break;;
3350 *.* )
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 # FIXME: I believe we export ac_cv_exeext for Libtool,
3353 # but it would be cool to find out if it's true. Does anybody
3354 # maintain Libtool? --akim.
3355 export ac_cv_exeext
3356 break;;
3357 * )
3358 break;;
3359 esac
3360done
3361else
3362 echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3368See \`config.log' for more details." >&5
3369echo "$as_me: error: C compiler cannot create executables
3370See \`config.log' for more details." >&2;}
3371 { (exit 77); exit 77; }; }; }
3372fi
3373
3374ac_exeext=$ac_cv_exeext
3375echo "$as_me:$LINENO: result: $ac_file" >&5
3376echo "${ECHO_T}$ac_file" >&6
3377
3378# Check the compiler produces executables we can run. If not, either
3379# the compiler is broken, or we cross compile.
3380echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3382# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383# If not cross compiling, check that we can run a simple program.
3384if test "$cross_compiling" != yes; then
3385 if { ac_try='./$ac_file'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 cross_compiling=no
3392 else
3393 if test "$cross_compiling" = maybe; then
3394 cross_compiling=yes
3395 else
3396 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3397echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3399If you meant to cross compile, use \`--host'.
3400See \`config.log' for more details." >&5
3401echo "$as_me: error: cannot run C compiled programs.
3402If you meant to cross compile, use \`--host'.
3403See \`config.log' for more details." >&2;}
3404 { (exit 1); exit 1; }; }; }
3405 fi
3406 fi
3407fi
3408echo "$as_me:$LINENO: result: yes" >&5
3409echo "${ECHO_T}yes" >&6
3410
3411rm -f a.out a.exe conftest$ac_cv_exeext b.out
3412ac_clean_files=$ac_clean_files_save
3413# Check the compiler produces executables we can run. If not, either
3414# the compiler is broken, or we cross compile.
3415echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3416echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3417echo "$as_me:$LINENO: result: $cross_compiling" >&5
3418echo "${ECHO_T}$cross_compiling" >&6
3419
3420echo "$as_me:$LINENO: checking for suffix of executables" >&5
3421echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423 (eval $ac_link) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; then
3427 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3428# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3429# work properly (i.e., refer to `conftest.exe'), while it won't with
3430# `rm'.
3431for ac_file in conftest.exe conftest conftest.*; do
3432 test -f "$ac_file" || continue
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3435 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 export ac_cv_exeext
3437 break;;
3438 * ) break;;
3439 esac
3440done
3441else
3442 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3445See \`config.log' for more details." >&5
3446echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3447See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }; }
3449fi
3450
3451rm -f conftest$ac_cv_exeext
3452echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3453echo "${ECHO_T}$ac_cv_exeext" >&6
3454
3455rm -f conftest.$ac_ext
3456EXEEXT=$ac_cv_exeext
3457ac_exeext=$EXEEXT
3458echo "$as_me:$LINENO: checking for suffix of object files" >&5
3459echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3460if test "${ac_cv_objext+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
3478rm -f conftest.o conftest.obj
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; then
3484 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 break;;
3489 esac
3490done
3491else
3492 echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3496echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3498See \`config.log' for more details." >&5
3499echo "$as_me: error: cannot compute suffix of object files: cannot compile
3500See \`config.log' for more details." >&2;}
3501 { (exit 1); exit 1; }; }; }
3502fi
3503
3504rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505fi
3506echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3507echo "${ECHO_T}$ac_cv_objext" >&6
3508OBJEXT=$ac_cv_objext
3509ac_objext=$OBJEXT
3510echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3511echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3512if test "${ac_cv_c_compiler_gnu+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
3521
3522int
3523main ()
3524{
3525#ifndef __GNUC__
3526 choke me
3527#endif
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_compiler_gnu=yes
3556else
3557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560ac_compiler_gnu=no
3561fi
3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565fi
3566echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3568GCC=`test $ac_compiler_gnu = yes && echo yes`
3569ac_test_CFLAGS=${CFLAGS+set}
3570ac_save_CFLAGS=$CFLAGS
3571CFLAGS="-g"
3572echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3573echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3574if test "${ac_cv_prog_cc_g+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h. */
3583
3584int
3585main ()
3586{
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_prog_cc_g=yes
3615else
3616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
3619ac_cv_prog_cc_g=no
3620fi
3621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3625if test "$ac_test_CFLAGS" = set; then
3626 CFLAGS=$ac_save_CFLAGS
3627elif test $ac_cv_prog_cc_g = yes; then
3628 if test "$GCC" = yes; then
3629 CFLAGS="-g -O2"
3630 else
3631 CFLAGS="-g"
3632 fi
3633else
3634 if test "$GCC" = yes; then
3635 CFLAGS="-O2"
3636 else
3637 CFLAGS=
3638 fi
3639fi
3640echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3641echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3642if test "${ac_cv_prog_cc_stdc+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 ac_cv_prog_cc_stdc=no
3646ac_save_CC=$CC
3647cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h. */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h. */
3653#include <stdarg.h>
3654#include <stdio.h>
3655#include <sys/types.h>
3656#include <sys/stat.h>
3657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3658struct buf { int x; };
3659FILE * (*rcsopen) (struct buf *, struct stat *, int);
3660static char *e (p, i)
3661 char **p;
3662 int i;
3663{
3664 return p[i];
3665}
3666static char *f (char * (*g) (char **, int), char **p, ...)
3667{
3668 char *s;
3669 va_list v;
3670 va_start (v,p);
3671 s = g (p, va_arg (v,int));
3672 va_end (v);
3673 return s;
3674}
3675
3676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3677 function prototypes and stuff, but not '\xHH' hex character constants.
3678 These don't provoke an error unfortunately, instead are silently treated
3679 as 'x'. The following induces an error, until -std1 is added to get
3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3681 array size at least. It's necessary to write '\x00'==0 to get something
3682 that's true only with -std1. */
3683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684
3685int test (int i, double x);
3686struct s1 {int (*f) (int a);};
3687struct s2 {int (*f) (double a);};
3688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3689int argc;
3690char **argv;
3691int
3692main ()
3693{
3694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699# Don't try gcc -ansi; that turns off useful extensions and
3700# breaks some systems' header files.
3701# AIX -qlanglvl=ansi
3702# Ultrix and OSF/1 -std1
3703# HP-UX 10.20 and later -Ae
3704# HP-UX older versions -Aa -D_HPUX_SOURCE
3705# SVR4 -Xc -D__EXTENSIONS__
3706for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707do
3708 CC="$ac_save_CC $ac_arg"
3709 rm -f conftest.$ac_objext
3710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -z "$ac_c_werror_flag"
3719 || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_prog_cc_stdc=$ac_arg
3732break
3733else
3734 echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737fi
3738rm -f conftest.err conftest.$ac_objext
3739done
3740rm -f conftest.$ac_ext conftest.$ac_objext
3741CC=$ac_save_CC
3742
3743fi
3744
3745case "x$ac_cv_prog_cc_stdc" in
3746 x|xno)
3747 echo "$as_me:$LINENO: result: none needed" >&5
3748echo "${ECHO_T}none needed" >&6 ;;
3749 *)
3750 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3751echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3752 CC="$CC $ac_cv_prog_cc_stdc" ;;
3753esac
3754
3755# Some people use a C++ compiler to compile C. Since we use `exit',
3756# in C++ we need to declare it. In case someone uses the same compiler
3757# for both compiling C and C++ we need to have the C++ compiler decide
3758# the declaration of exit, since it's the most demanding environment.
3759cat >conftest.$ac_ext <<_ACEOF
3760#ifndef __cplusplus
3761 choke me
3762#endif
3763_ACEOF
3764rm -f conftest.$ac_objext
3765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 for ac_declaration in \
3787 '' \
3788 'extern "C" void std::exit (int) throw (); using std::exit;' \
3789 'extern "C" void std::exit (int); using std::exit;' \
3790 'extern "C" void exit (int) throw ();' \
3791 'extern "C" void exit (int);' \
3792 'void exit (int);'
3793do
3794 cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800$ac_declaration
3801#include <stdlib.h>
3802int
3803main ()
3804{
3805exit (42);
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext
3811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 :
3833else
3834 echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837continue
3838fi
3839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
3846$ac_declaration
3847int
3848main ()
3849{
3850exit (42);
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext
3856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 break
3878else
3879 echo "$as_me: failed program was:" >&5
3880sed 's/^/| /' conftest.$ac_ext >&5
3881
3882fi
3883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884done
3885rm -f conftest*
3886if test -n "$ac_declaration"; then
3887 echo '#ifdef __cplusplus' >>confdefs.h
3888 echo $ac_declaration >>confdefs.h
3889 echo '#endif' >>confdefs.h
3890fi
3891
3892else
3893 echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896fi
3897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
3904ac_ext=cc
3905ac_cpp='$CXXCPP $CPPFLAGS'
3906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909if test -n "$ac_tool_prefix"; then
3910 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3911 do
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914echo "$as_me:$LINENO: checking for $ac_word" >&5
3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916if test "${ac_cv_prog_CXX+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919 if test -n "$CXX"; then
3920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3921else
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933done
3934done
3935
3936fi
3937fi
3938CXX=$ac_cv_prog_CXX
3939if test -n "$CXX"; then
3940 echo "$as_me:$LINENO: result: $CXX" >&5
3941echo "${ECHO_T}$CXX" >&6
3942else
3943 echo "$as_me:$LINENO: result: no" >&5
3944echo "${ECHO_T}no" >&6
3945fi
3946
3947 test -n "$CXX" && break
3948 done
3949fi
3950if test -z "$CXX"; then
3951 ac_ct_CXX=$CXX
3952 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3953do
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955set dummy $ac_prog; ac_word=$2
3956echo "$as_me:$LINENO: checking for $ac_word" >&5
3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 if test -n "$ac_ct_CXX"; then
3962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CXX="$ac_prog"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976done
3977
3978fi
3979fi
3980ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3981if test -n "$ac_ct_CXX"; then
3982 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3983echo "${ECHO_T}$ac_ct_CXX" >&6
3984else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987fi
3988
3989 test -n "$ac_ct_CXX" && break
3990done
3991test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3992
3993 CXX=$ac_ct_CXX
3994fi
3995
3996
3997# Provide some information about the compiler.
3998echo "$as_me:$LINENO:" \
3999 "checking for C++ compiler version" >&5
4000ac_compiler=`set X $ac_compile; echo $2`
4001{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4002 (eval $ac_compiler --version </dev/null >&5) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }
4006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4007 (eval $ac_compiler -v </dev/null >&5) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }
4011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4012 (eval $ac_compiler -V </dev/null >&5) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }
4016
4017echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4018echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4019if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 cat >conftest.$ac_ext <<_ACEOF
4023/* confdefs.h. */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032#ifndef __GNUC__
4033 choke me
4034#endif
4035
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_compiler_gnu=yes
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067ac_compiler_gnu=no
4068fi
4069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4071
4072fi
4073echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4074echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4075GXX=`test $ac_compiler_gnu = yes && echo yes`
4076ac_test_CXXFLAGS=${CXXFLAGS+set}
4077ac_save_CXXFLAGS=$CXXFLAGS
4078CXXFLAGS="-g"
4079echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4080echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4081if test "${ac_cv_prog_cxx_g+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
4090
4091int
4092main ()
4093{
4094
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_cxx_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_prog_cxx_g=yes
4122else
4123 echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126ac_cv_prog_cxx_g=no
4127fi
4128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129fi
4130echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4131echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4132if test "$ac_test_CXXFLAGS" = set; then
4133 CXXFLAGS=$ac_save_CXXFLAGS
4134elif test $ac_cv_prog_cxx_g = yes; then
4135 if test "$GXX" = yes; then
4136 CXXFLAGS="-g -O2"
4137 else
4138 CXXFLAGS="-g"
4139 fi
4140else
4141 if test "$GXX" = yes; then
4142 CXXFLAGS="-O2"
4143 else
4144 CXXFLAGS=
4145 fi
4146fi
4147for ac_declaration in \
4148 '' \
4149 'extern "C" void std::exit (int) throw (); using std::exit;' \
4150 'extern "C" void std::exit (int); using std::exit;' \
4151 'extern "C" void exit (int) throw ();' \
4152 'extern "C" void exit (int);' \
4153 'void exit (int);'
4154do
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161$ac_declaration
4162#include <stdlib.h>
4163int
4164main ()
4165{
4166exit (42);
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_cxx_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 :
4194else
4195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198continue
4199fi
4200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207$ac_declaration
4208int
4209main ()
4210{
4211exit (42);
4212 ;
4213 return 0;
4214}
4215_ACEOF
4216rm -f conftest.$ac_objext
4217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_cxx_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 break
4239else
4240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243fi
4244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245done
4246rm -f conftest*
4247if test -n "$ac_declaration"; then
4248 echo '#ifdef __cplusplus' >>confdefs.h
4249 echo $ac_declaration >>confdefs.h
4250 echo '#endif' >>confdefs.h
4251fi
4252
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259
4260# We must set the default linker to the linker used by gcc for the correct
4261# operation of libtool. If LD is not defined and we are using gcc, try to
4262# set the LD default to the ld used by gcc.
4263if test -z "$LD"; then
4264 if test "$GCC" = yes; then
4265 case $build in
4266 *-*-mingw*)
4267 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4268 *)
4269 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4270 esac
4271 case $gcc_prog_ld in
4272 # Accept absolute paths.
4273 [\\/]* | [A-Za-z]:[\\/]*)
4274 LD="$gcc_prog_ld" ;;
4275 esac
4276 fi
4277fi
4278
4279
4280
4281
4282if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4284set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4285echo "$as_me:$LINENO: checking for $ac_word" >&5
4286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287if test "${ac_cv_prog_GNATBIND+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289else
4290 if test -n "$GNATBIND"; then
4291 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4292else
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4303 fi
4304done
4305done
4306
4307fi
4308fi
4309GNATBIND=$ac_cv_prog_GNATBIND
4310if test -n "$GNATBIND"; then
4311 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4312echo "${ECHO_T}$GNATBIND" >&6
4313else
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316fi
4317
4318fi
4319if test -z "$ac_cv_prog_GNATBIND"; then
4320 ac_ct_GNATBIND=$GNATBIND
4321 # Extract the first word of "gnatbind", so it can be a program name with args.
4322set dummy gnatbind; ac_word=$2
4323echo "$as_me:$LINENO: checking for $ac_word" >&5
4324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327else
4328 if test -n "$ac_ct_GNATBIND"; then
4329 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342done
4343done
4344
4345 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4346fi
4347fi
4348ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4349if test -n "$ac_ct_GNATBIND"; then
4350 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4351echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4352else
4353 echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
4355fi
4356
4357 GNATBIND=$ac_ct_GNATBIND
4358else
4359 GNATBIND="$ac_cv_prog_GNATBIND"
4360fi
4361
4362if test -n "$ac_tool_prefix"; then
4363 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4364set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4365echo "$as_me:$LINENO: checking for $ac_word" >&5
4366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370 if test -n "$GNATMAKE"; then
4371 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4372else
4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385done
4386
4387fi
4388fi
4389GNATMAKE=$ac_cv_prog_GNATMAKE
4390if test -n "$GNATMAKE"; then
4391 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4392echo "${ECHO_T}$GNATMAKE" >&6
4393else
4394 echo "$as_me:$LINENO: result: no" >&5
4395echo "${ECHO_T}no" >&6
4396fi
4397
4398fi
4399if test -z "$ac_cv_prog_GNATMAKE"; then
4400 ac_ct_GNATMAKE=$GNATMAKE
4401 # Extract the first word of "gnatmake", so it can be a program name with args.
4402set dummy gnatmake; ac_word=$2
4403echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4405if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 if test -n "$ac_ct_GNATMAKE"; then
4409 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423done
4424
4425 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4426fi
4427fi
4428ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4429if test -n "$ac_ct_GNATMAKE"; then
4430 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4431echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4432else
4433 echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6
4435fi
4436
4437 GNATMAKE=$ac_ct_GNATMAKE
4438else
4439 GNATMAKE="$ac_cv_prog_GNATMAKE"
4440fi
4441
4442echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4443echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4444if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 cat >conftest.adb <<EOF
4448procedure conftest is begin null; end conftest;
4449EOF
4450acx_cv_cc_gcc_supports_ada=no
4451# There is a bug in old released versions of GCC which causes the
4452# driver to exit successfully when the appropriate language module
4453# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4454# Therefore we must check for the error message as well as an
4455# unsuccessful exit.
4456# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4457# given a .adb file, but produce no object file. So we must check
4458# if an object file was really produced to guard against this.
4459errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4460if test x"$errors" = x && test -f conftest.$ac_objext; then
4461 acx_cv_cc_gcc_supports_ada=yes
4462fi
4463rm -f conftest.*
4464fi
4465echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4466echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4467
4468if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4469 have_gnat=yes
4470else
4471 have_gnat=no
4472fi
4473
4474echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4475echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4476if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 echo abfoo >t1
4480 echo cdfoo >t2
4481 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4482 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4483 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4484 :
4485 else
4486 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4487 fi
4488 fi
4489 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4490 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4491 :
4492 else
4493 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4494 fi
4495 fi
4496 rm t1 t2
4497
4498fi
4499echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4500echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4501do_compare="$gcc_cv_prog_cmp_skip"
4502
4503
4504
4505# Check for GMP and MPFR
4506gmplibs="-lmpfr -lgmp"
4507gmpinc=
4508have_gmp=no
4509
4510# Specify a location for mpfr
4511# check for this first so it ends up on the link line before gmp.
4512
4513# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4514if test "${with_mpfr_dir+set}" = set; then
4515 withval="$with_mpfr_dir"
4516 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4517Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4518echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4519Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4520 { (exit 1); exit 1; }; }
4521fi;
4522
4523
4524# Check whether --with-mpfr or --without-mpfr was given.
4525if test "${with_mpfr+set}" = set; then
4526 withval="$with_mpfr"
4527
4528fi;
4529
4530# Check whether --with-mpfr_include or --without-mpfr_include was given.
4531if test "${with_mpfr_include+set}" = set; then
4532 withval="$with_mpfr_include"
4533
4534fi;
4535
4536# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4537if test "${with_mpfr_lib+set}" = set; then
4538 withval="$with_mpfr_lib"
4539
4540fi;
4541
4542if test "x$with_mpfr" != x; then
4543 gmplibs="-L$with_mpfr/lib $gmplibs"
4544 gmpinc="-I$with_mpfr/include"
4545fi
4546if test "x$with_mpfr_include" != x; then
4547 gmpinc="-I$with_mpfr_include"
4548fi
4549if test "x$with_mpfr_lib" != x; then
4550 gmplibs="-L$with_mpfr_lib $gmplibs"
4551fi
4552if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4553 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4554 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4555 # Do not test the mpfr version. Assume that it is sufficient, since
4556 # it is in the source tree, and the library has not been built yet
4557 # but it would be included on the link line in the version check below
4558 # hence making the test fail.
4559 have_gmp=yes
4560fi
4561
4562# Specify a location for gmp
4563
4564# Check whether --with-gmp-dir or --without-gmp-dir was given.
4565if test "${with_gmp_dir+set}" = set; then
4566 withval="$with_gmp_dir"
4567 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4568Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4569echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4570Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4571 { (exit 1); exit 1; }; }
4572fi;
4573
4574
4575# Check whether --with-gmp or --without-gmp was given.
4576if test "${with_gmp+set}" = set; then
4577 withval="$with_gmp"
4578
4579fi;
4580
4581# Check whether --with-gmp_include or --without-gmp_include was given.
4582if test "${with_gmp_include+set}" = set; then
4583 withval="$with_gmp_include"
4584
4585fi;
4586
4587# Check whether --with-gmp_lib or --without-gmp_lib was given.
4588if test "${with_gmp_lib+set}" = set; then
4589 withval="$with_gmp_lib"
4590
4591fi;
4592
4593
4594if test "x$with_gmp" != x; then
4595 gmplibs="-L$with_gmp/lib $gmplibs"
4596 gmpinc="-I$with_gmp/include $gmpinc"
4597fi
4598if test "x$with_gmp_include" != x; then
4599 gmpinc="-I$with_gmp_include $gmpinc"
4600fi
4601if test "x$with_gmp_lib" != x; then
4602 gmplibs="-L$with_gmp_lib $gmplibs"
4603fi
4604if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4605 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4606 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4607 # Do not test the gmp version. Assume that it is sufficient, since
4608 # it is in the source tree, and the library has not been built yet
4609 # but it would be included on the link line in the version check below
4610 # hence making the test fail.
4611 have_gmp=yes
4612fi
4613
4614if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4615 have_gmp=yes
4616 saved_CFLAGS="$CFLAGS"
4617 CFLAGS="$CFLAGS $gmpinc"
4618 # Check GMP actually works
4619 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4620echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4621
4622cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
4628#include "gmp.h"
4629int
4630main ()
4631{
4632
4633 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4634 choke me
4635 #endif
4636
4637 ;
4638 return 0;
4639}
4640_ACEOF
4641rm -f conftest.$ac_objext
4642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 echo "$as_me:$LINENO: result: yes" >&5
4664echo "${ECHO_T}yes" >&6
4665else
4666 echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6; have_gmp=no
4671fi
4672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673
4674 if test x"$have_gmp" = xyes; then
4675 saved_LIBS="$LIBS"
4676 LIBS="$LIBS $gmplibs"
4677 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4678echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4679 cat >conftest.$ac_ext <<_ACEOF
4680/* confdefs.h. */
4681_ACEOF
4682cat confdefs.h >>conftest.$ac_ext
4683cat >>conftest.$ac_ext <<_ACEOF
4684/* end confdefs.h. */
4685#include <gmp.h>
4686 #include <mpfr.h>
4687int
4688main ()
4689{
4690
4691 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4692 choke me
4693 #endif
4694 mpfr_t n;
4695 mpfr_t x;
4696 int t;
4697 mpfr_init (n);
4698 mpfr_init (x);
4699 mpfr_atan2 (n, n, x, GMP_RNDN);
4700 mpfr_erfc (n, x, GMP_RNDN);
4701 mpfr_subnormalize (x, t, GMP_RNDN);
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707rm -f conftest.$ac_objext conftest$ac_exeext
4708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest$ac_exeext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 cat >conftest.$ac_ext <<_ACEOF
4730/* confdefs.h. */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h. */
4735#include <gmp.h>
4736 #include <mpfr.h>
4737int
4738main ()
4739{
4740
4741 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4742 choke me
4743 #endif
4744 mpfr_t n; mpfr_init(n);
4745
4746 ;
4747 return 0;
4748}
4749_ACEOF
4750rm -f conftest.$ac_objext conftest$ac_exeext
4751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752 (eval $ac_link) 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest$ac_exeext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
4774else
4775 echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4779echo "${ECHO_T}buggy but acceptable" >&6
4780fi
4781rm -f conftest.err conftest.$ac_objext \
4782 conftest$ac_exeext conftest.$ac_ext
4783else
4784 echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6; have_gmp=no
4789fi
4790rm -f conftest.err conftest.$ac_objext \
4791 conftest$ac_exeext conftest.$ac_ext
4792 LIBS="$saved_LIBS"
4793 fi
4794 CFLAGS="$saved_CFLAGS"
4795
4796 if test x$have_gmp != xyes; then
4797 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
4798Try the --with-gmp and/or --with-mpfr options to specify their locations.
4799Copies of these libraries' source code can be found at their respective
4800hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4801See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4802If you obtained GMP and/or MPFR from a vendor distribution package, make
4803sure that you have installed both the libraries and the header files.
4804They may be located in separate packages." >&5
4805echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
4806Try the --with-gmp and/or --with-mpfr options to specify their locations.
4807Copies of these libraries' source code can be found at their respective
4808hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4809See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4810If you obtained GMP and/or MPFR from a vendor distribution package, make
4811sure that you have installed both the libraries and the header files.
4812They may be located in separate packages." >&2;}
4813 { (exit 1); exit 1; }; }
4814 fi
4815fi
4816
4817# Flags needed for both GMP and/or MPFR
4818
4819
4820
4821# Allow host libstdc++ to be specified for static linking with PPL.
4822
4823# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
4824if test "${with_host_libstdcxx+set}" = set; then
4825 withval="$with_host_libstdcxx"
4826
4827fi;
4828
4829case $with_host_libstdcxx in
4830 no|yes)
4831 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
4832echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
4833 { (exit 1); exit 1; }; }
4834 ;;
4835esac
4836
4837# Check for PPL
4838ppl_major_version=0
4839ppl_minor_version=10
4840ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
4841pplinc=
4842
4843
4844# Check whether --with-ppl or --without-ppl was given.
4845if test "${with_ppl+set}" = set; then
4846 withval="$with_ppl"
4847
4848fi;
4849
4850# Check whether --with-ppl_include or --without-ppl_include was given.
4851if test "${with_ppl_include+set}" = set; then
4852 withval="$with_ppl_include"
4853
4854fi;
4855
4856# Check whether --with-ppl_lib or --without-ppl_lib was given.
4857if test "${with_ppl_lib+set}" = set; then
4858 withval="$with_ppl_lib"
4859
4860fi;
4861
4862case $with_ppl in
4863 no)
4864 ppllibs=
4865 ;;
4866 *)
4867 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4868 pplinc="-I$with_ppl/include $pplinc"
4869 LIBS="$ppllibs $LIBS"
4870 ;;
4871esac
4872if test "x$with_ppl_include" != x; then
4873 pplinc="-I$with_ppl_include $pplinc"
4874fi
4875if test "x$with_ppl_lib" != x; then
4876 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4877 LIBS="$ppllibs $LIBS"
4878fi
4879if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4880 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
4881 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4882 LIBS="$ppllibs $LIBS"
4883fi
4884
4885# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4886if test "${enable_ppl_version_check+set}" = set; then
4887 enableval="$enable_ppl_version_check"
4888 ENABLE_PPL_CHECK=$enableval
4889else
4890 ENABLE_PPL_CHECK=yes
4891fi;
4892
4893if test "${ENABLE_PPL_CHECK}" = "yes"; then
4894 saved_CFLAGS="$CFLAGS"
4895 CFLAGS="$CFLAGS $pplinc $gmpinc"
4896 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4897echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include "ppl_c.h"
4905int
4906main ()
4907{
4908
4909 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4910 choke me
4911 #endif
4912
4913 ;
4914 return 0;
4915}
4916_ACEOF
4917rm -f conftest.$ac_objext
4918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -z "$ac_c_werror_flag"
4927 || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941else
4942 echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945echo "$as_me:$LINENO: result: no" >&5
4946echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4947fi
4948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949 CFLAGS="$saved_CFLAGS"
4950fi
4951
4952# Flags needed for PPL
4953
4954
4955
4956
4957# Check for CLOOG
4958clooglibs=" -lcloog "
4959clooginc=" -DCLOOG_PPL_BACKEND "
4960
4961
4962# Check whether --with-cloog or --without-cloog was given.
4963if test "${with_cloog+set}" = set; then
4964 withval="$with_cloog"
4965
4966fi;
4967
4968# Check whether --with-cloog_include or --without-cloog_include was given.
4969if test "${with_cloog_include+set}" = set; then
4970 withval="$with_cloog_include"
4971
4972fi;
4973
4974# Check whether --with-cloog_lib or --without-cloog_lib was given.
4975if test "${with_cloog_lib+set}" = set; then
4976 withval="$with_cloog_lib"
4977
4978fi;
4979
4980case $with_cloog in
4981 no)
4982 clooglibs=
4983 clooginc=
4984 ;;
4985 *)
4986 clooglibs="-L$with_cloog/lib -lcloog"
4987 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4988 LIBS="$clooglibs $LIBS"
4989 ;;
4990esac
4991if test "x$with_cloog_include" != x; then
4992 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4993fi
4994if test "x$with_cloog_lib" != x; then
4995 clooglibs="-L$with_cloog_lib -lcloog"
4996 LIBS="$clooglibs $LIBS"
4997fi
4998if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4999 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5000 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5001 LIBS="$clooglibs $LIBS"
5002fi
5003
5004# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5005if test "${enable_cloog_version_check+set}" = set; then
5006 enableval="$enable_cloog_version_check"
5007 ENABLE_CLOOG_CHECK=$enableval
5008else
5009 ENABLE_CLOOG_CHECK=yes
5010fi;
5011
5012if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5013 saved_CFLAGS="$CFLAGS"
5014 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5015 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5016echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
5023#include "cloog/cloog.h"
5024int
5025main ()
5026{
5027
5028 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5029 choke me
5030 #endif
5031
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036rm -f conftest.$ac_objext
5037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 echo "$as_me:$LINENO: result: yes" >&5
5059echo "${ECHO_T}yes" >&6
5060else
5061 echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5066fi
5067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 CFLAGS="$saved_CFLAGS"
5069fi
5070
5071# Flags needed for CLOOG
5072
5073
5074
5075
5076# By default, C is the only stage 1 language.
5077stage1_languages=,c,
5078
5079# Figure out what language subdirectories are present.
5080# Look if the user specified --enable-languages="..."; if not, use
5081# the environment variable $LANGUAGES if defined. $LANGUAGES might
5082# go away some day.
5083# NB: embedded tabs in this IF block -- do not untabify
5084if test -d ${srcdir}/gcc; then
5085 if test x"${enable_languages+set}" != xset; then
5086 if test x"${LANGUAGES+set}" = xset; then
5087 enable_languages="${LANGUAGES}"
5088 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5089 else
5090 enable_languages=all
5091 fi
5092 else
5093 if test x"${enable_languages}" = x ||
5094 test x"${enable_languages}" = xyes;
5095 then
5096 echo configure.in: --enable-languages needs at least one language argument 1>&2
5097 exit 1
5098 fi
5099 fi
5100 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5101
5102 # 'f95' is the old name for the 'fortran' language. We issue a warning
5103 # and make the substitution.
5104 case ,${enable_languages}, in
5105 *,f95,*)
5106 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5107 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5108 ;;
5109 esac
5110
5111 # First scan to see if an enabled language requires some other language.
5112 # We assume that a given config-lang.in will list all the language
5113 # front ends it requires, even if some are required indirectly.
5114 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5115 case ${lang_frag} in
5116 ..) ;;
5117 # The odd quoting in the next line works around
5118 # an apparent bug in bash 1.12 on linux.
5119 ${srcdir}/gcc/[*]/config-lang.in) ;;
5120 *)
5121 # From the config-lang.in, get $language, $lang_requires
5122 language=
5123 lang_requires=
5124 . ${lang_frag}
5125 for other in ${lang_requires} ; do
5126 case ,${enable_languages}, in
5127 *,$other,*) ;;
5128 *,all,*) ;;
5129 *,$language,*)
5130 echo " \`$other' language required by \`$language'; enabling" 1>&2
5131 enable_languages="${enable_languages},${other}"
5132 ;;
5133 esac
5134 done
5135 ;;
5136 esac
5137 done
5138
5139 new_enable_languages=,c,
5140 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5141 potential_languages=,c,
5142
5143 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5144 case ${lang_frag} in
5145 ..) ;;
5146 # The odd quoting in the next line works around
5147 # an apparent bug in bash 1.12 on linux.
5148 ${srcdir}/gcc/[*]/config-lang.in) ;;
5149 *)
5150 # From the config-lang.in, get $language, $target_libs,
5151 # $lang_dirs, $boot_language, and $build_by_default
5152 language=
5153 target_libs=
5154 lang_dirs=
5155 subdir_requires=
5156 boot_language=no
5157 build_by_default=yes
5158 . ${lang_frag}
5159 if test x${language} = x; then
5160 echo "${lang_frag} doesn't set \$language." 1>&2
5161 exit 1
5162 fi
5163
5164 case ,${enable_languages}, in
5165 *,${language},*)
5166 # Language was explicitly selected; include it.
5167 add_this_lang=yes
5168 ;;
5169 *,all,*)
5170 # 'all' was selected, select it if it is a default language
5171 add_this_lang=${build_by_default}
5172 ;;
5173 *)
5174 add_this_lang=no
5175 ;;
5176 esac
5177
5178 # Disable languages that need other directories if these aren't available.
5179 for i in $subdir_requires; do
5180 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5181 case ,${enable_languages}, in
5182 *,${language},*)
5183 # Specifically requested language; tell them.
5184 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5185echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5186 { (exit 1); exit 1; }; }
5187 ;;
5188 *)
5189 # Silently disable.
5190 add_this_lang=unsupported
5191 ;;
5192 esac
5193 done
5194
5195 # Disable Ada if no preexisting GNAT is available.
5196 case ,${enable_languages},:${language}:${have_gnat} in
5197 *,${language},*:ada:no)
5198 # Specifically requested language; tell them.
5199 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5200echo "$as_me: error: GNAT is required to build $language" >&2;}
5201 { (exit 1); exit 1; }; }
5202 ;;
5203 *:ada:no)
5204 # Silently disable.
5205 add_this_lang=unsupported
5206 ;;
5207 esac
5208
5209 # Disable a language that is unsupported by the target.
5210 case " $unsupported_languages " in
5211 *" $language "*)
5212 add_this_lang=unsupported
5213 ;;
5214 esac
5215
5216 case $add_this_lang in
5217 unsupported)
5218 # Remove language-dependent dirs.
5219 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5220 ;;
5221 no)
5222 # Remove language-dependent dirs; still show language as supported.
5223 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5224 potential_languages="${potential_languages}${language},"
5225 ;;
5226 yes)
5227 new_enable_languages="${new_enable_languages}${language},"
5228 potential_languages="${potential_languages}${language},"
5229 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5230 case ${boot_language} in
5231 yes)
5232 # Add to (comma-separated) list of stage 1 languages.
5233 stage1_languages="${stage1_languages}${language},"
5234 ;;
5235 esac
5236 ;;
5237 esac
5238 ;;
5239 esac
5240 done
5241
5242 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5243if test "${enable_stage1_languages+set}" = set; then
5244 enableval="$enable_stage1_languages"
5245 case ,${enable_stage1_languages}, in
5246 ,no,|,,)
5247 # Set it to something that will have no effect in the loop below
5248 enable_stage1_languages=c ;;
5249 ,yes,)
5250 enable_stage1_languages=`echo $new_enable_languages | \
5251 sed -e "s/^,//" -e "s/,$//" ` ;;
5252 *,all,*)
5253 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5254 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5255 esac
5256
5257 # Add "good" languages from enable_stage1_languages to stage1_languages,
5258 # while "bad" languages go in missing_languages. Leave no duplicates.
5259 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5260 case $potential_languages in
5261 *,$i,*)
5262 case $stage1_languages in
5263 *,$i,*) ;;
5264 *) stage1_languages="$stage1_languages$i," ;;
5265 esac ;;
5266 *)
5267 case $missing_languages in
5268 *,$i,*) ;;
5269 *) missing_languages="$missing_languages$i," ;;
5270 esac ;;
5271 esac
5272 done
5273fi;
5274
5275 # Remove leading/trailing commas that were added for simplicity
5276 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5277 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5278 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5279 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5280
5281 if test "x$missing_languages" != x; then
5282 { { echo "$as_me:$LINENO: error:
5283The following requested languages could not be built: ${missing_languages}
5284Supported languages are: ${potential_languages}" >&5
5285echo "$as_me: error:
5286The following requested languages could not be built: ${missing_languages}
5287Supported languages are: ${potential_languages}" >&2;}
5288 { (exit 1); exit 1; }; }
5289 fi
5290 if test "x$new_enable_languages" != "x$enable_languages"; then
5291 echo The following languages will be built: ${new_enable_languages}
5292 enable_languages="$new_enable_languages"
5293 fi
5294
5295
5296 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5297fi
5298
5299# Handle --disable-<component> generically.
5300for dir in $configdirs $build_configdirs $target_configdirs ; do
5301 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5302 varname=`echo $dirname | sed -e s/+/_/g`
5303 if eval test x\${enable_${varname}} "=" xno ; then
5304 noconfigdirs="$noconfigdirs $dir"
5305 fi
5306done
5307
5308# Check for Boehm's garbage collector
5309# Check whether --enable-objc-gc or --disable-objc-gc was given.
5310if test "${enable_objc_gc+set}" = set; then
5311 enableval="$enable_objc_gc"
5312 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5313 *,objc,*:*:yes:*target-boehm-gc*)
5314 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5315echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5316 { (exit 1); exit 1; }; }
5317 ;;
5318esac
5319fi;
5320
5321# Make sure we only build Boehm's garbage collector if required.
5322case ,${enable_languages},:${enable_objc_gc} in
5323 *,objc,*:yes)
5324 # Keep target-boehm-gc if requested for Objective-C.
5325 ;;
5326 *)
5327 # Otherwise remove target-boehm-gc depending on target-libjava.
5328 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5329 noconfigdirs="$noconfigdirs target-boehm-gc"
5330 fi
5331 ;;
5332esac
5333
5334# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5335# $build_configdirs and $target_configdirs.
5336# If we have the source for $noconfigdirs entries, add them to $notsupp.
5337
5338notsupp=""
5339for dir in . $skipdirs $noconfigdirs ; do
5340 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5341 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5342 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5343 if test -r $srcdir/$dirname/configure ; then
5344 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5345 true
5346 else
5347 notsupp="$notsupp $dir"
5348 fi
5349 fi
5350 fi
5351 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5352 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5353 if test -r $srcdir/$dirname/configure ; then
5354 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5355 true
5356 else
5357 notsupp="$notsupp $dir"
5358 fi
5359 fi
5360 fi
5361 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5362 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5363 if test -r $srcdir/$dirname/configure ; then
5364 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5365 true
5366 else
5367 notsupp="$notsupp $dir"
5368 fi
5369 fi
5370 fi
5371done
5372
5373# Sometimes the tools are distributed with libiberty but with no other
5374# libraries. In that case, we don't want to build target-libiberty.
5375# Don't let libgcc imply libiberty either.
5376if test -n "${target_configdirs}" ; then
5377 libgcc=
5378 others=
5379 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5380 if test "$i" = "libgcc"; then
5381 libgcc=target-libgcc
5382 elif test "$i" != "libiberty" ; then
5383 if test -r $srcdir/$i/configure ; then
5384 others=yes;
5385 break;
5386 fi
5387 fi
5388 done
5389 if test -z "${others}" ; then
5390 target_configdirs=$libgcc
5391 fi
5392fi
5393
5394# Quietly strip out all directories which aren't configurable in this tree.
5395# This relies on all configurable subdirectories being autoconfiscated, which
5396# is now the case.
5397build_configdirs_all="$build_configdirs"
5398build_configdirs=
5399for i in ${build_configdirs_all} ; do
5400 j=`echo $i | sed -e s/build-//g`
5401 if test -f ${srcdir}/$j/configure ; then
5402 build_configdirs="${build_configdirs} $i"
5403 fi
5404done
5405
5406configdirs_all="$configdirs"
5407configdirs=
5408for i in ${configdirs_all} ; do
5409 if test -f ${srcdir}/$i/configure ; then
5410 configdirs="${configdirs} $i"
5411 fi
5412done
5413
5414target_configdirs_all="$target_configdirs"
5415target_configdirs=
5416for i in ${target_configdirs_all} ; do
5417 j=`echo $i | sed -e s/target-//g`
5418 if test -f ${srcdir}/$j/configure ; then
5419 target_configdirs="${target_configdirs} $i"
5420 fi
5421done
5422
5423# Produce a warning message for the subdirs we can't configure.
5424# This isn't especially interesting in the Cygnus tree, but in the individual
5425# FSF releases, it's important to let people know when their machine isn't
5426# supported by the one or two programs in a package.
5427
5428if test -n "${notsupp}" && test -z "${norecursion}" ; then
5429 # If $appdirs is non-empty, at least one of those directories must still
5430 # be configured, or we error out. (E.g., if the gas release supports a
5431 # specified target in some subdirs but not the gas subdir, we shouldn't
5432 # pretend that all is well.)
5433 if test -n "$appdirs" ; then
5434 for dir in $appdirs ; do
5435 if test -r $dir/Makefile.in ; then
5436 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5437 appdirs=""
5438 break
5439 fi
5440 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5441 appdirs=""
5442 break
5443 fi
5444 fi
5445 done
5446 if test -n "$appdirs" ; then
5447 echo "*** This configuration is not supported by this package." 1>&2
5448 exit 1
5449 fi
5450 fi
5451 # Okay, some application will build, or we don't care to check. Still
5452 # notify of subdirs not getting built.
5453 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5454 echo " ${notsupp}" 1>&2
5455 echo " (Any other directories should still work fine.)" 1>&2
5456fi
5457
5458case "$host" in
5459 *msdosdjgpp*)
5460 enable_gdbtk=no ;;
5461esac
5462
5463# To find our prefix, in gcc_cv_tool_prefix.
5464
5465# The user is always right.
5466if test "${PATH_SEPARATOR+set}" != set; then
5467 echo "#! /bin/sh" >conf$$.sh
5468 echo "exit 0" >>conf$$.sh
5469 chmod +x conf$$.sh
5470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5471 PATH_SEPARATOR=';'
5472 else
5473 PATH_SEPARATOR=:
5474 fi
5475 rm -f conf$$.sh
5476fi
5477
5478
5479
5480if test "x$exec_prefix" = xNONE; then
5481 if test "x$prefix" = xNONE; then
5482 gcc_cv_tool_prefix=$ac_default_prefix
5483 else
5484 gcc_cv_tool_prefix=$prefix
5485 fi
5486else
5487 gcc_cv_tool_prefix=$exec_prefix
5488fi
5489
5490# If there is no compiler in the tree, use the PATH only. In any
5491# case, if there is no compiler in the tree nobody should use
5492# AS_FOR_TARGET and LD_FOR_TARGET.
5493if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5494 gcc_version=`cat $srcdir/gcc/BASE-VER`
5495 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5496 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5497 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5499 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5501else
5502 gcc_cv_tool_dirs=
5503fi
5504
5505if test x$build = x$target && test -n "$md_exec_prefix"; then
5506 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5507fi
5508
5509
5510
5511copy_dirs=
5512
5513
5514# Check whether --with-build-sysroot or --without-build-sysroot was given.
5515if test "${with_build_sysroot+set}" = set; then
5516 withval="$with_build_sysroot"
5517 if test x"$withval" != x ; then
5518 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5519 fi
5520else
5521 SYSROOT_CFLAGS_FOR_TARGET=
5522fi;
5523
5524
5525
5526# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5527if test "${with_debug_prefix_map+set}" = set; then
5528 withval="$with_debug_prefix_map"
5529 if test x"$withval" != x; then
5530 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5531 for debug_map in $withval; do
5532 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5533 done
5534 fi
5535else
5536 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5537fi;
5538
5539
5540# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5541# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5542# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5543# We want to ensure that TARGET libraries (which we know are built with
5544# gcc) are built with "-O2 -g", so include those options when setting
5545# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5546if test "x$CFLAGS_FOR_TARGET" = x; then
5547 CFLAGS_FOR_TARGET=$CFLAGS
5548 case " $CFLAGS " in
5549 *" -O2 "*) ;;
5550 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5551 esac
5552 case " $CFLAGS " in
5553 *" -g "* | *" -g3 "*) ;;
5554 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5555 esac
5556fi
5557
5558
5559if test "x$CXXFLAGS_FOR_TARGET" = x; then
5560 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5561 case " $CXXFLAGS " in
5562 *" -O2 "*) ;;
5563 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5564 esac
5565 case " $CXXFLAGS " in
5566 *" -g "* | *" -g3 "*) ;;
5567 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5568 esac
5569fi
5570
5571
5572# Handle --with-headers=XXX. If the value is not "yes", the contents of
5573# the named directory are copied to $(tooldir)/sys-include.
5574if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5575 if test x${is_cross_compiler} = xno ; then
5576 echo 1>&2 '***' --with-headers is only supported when cross compiling
5577 exit 1
5578 fi
5579 if test x"${with_headers}" != xyes ; then
5580 x=${gcc_cv_tool_prefix}
5581 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5582 fi
5583fi
5584
5585# Handle --with-libs=XXX. If the value is not "yes", the contents of
5586# the name directories are copied to $(tooldir)/lib. Multiple directories
5587# are permitted.
5588if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5589 if test x${is_cross_compiler} = xno ; then
5590 echo 1>&2 '***' --with-libs is only supported when cross compiling
5591 exit 1
5592 fi
5593 if test x"${with_libs}" != xyes ; then
5594 # Copy the libraries in reverse order, so that files in the first named
5595 # library override files in subsequent libraries.
5596 x=${gcc_cv_tool_prefix}
5597 for l in ${with_libs}; do
5598 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5599 done
5600 fi
5601fi
5602
5603# Set with_gnu_as and with_gnu_ld as appropriate.
5604#
5605# This is done by determining whether or not the appropriate directory
5606# is available, and by checking whether or not specific configurations
5607# have requested that this magic not happen.
5608#
5609# The command line options always override the explicit settings in
5610# configure.in, and the settings in configure.in override this magic.
5611#
5612# If the default for a toolchain is to use GNU as and ld, and you don't
5613# want to do that, then you should use the --without-gnu-as and
5614# --without-gnu-ld options for the configure script.
5615
5616if test x${use_gnu_as} = x &&
5617 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5618 with_gnu_as=yes
5619 extra_host_args="$extra_host_args --with-gnu-as"
5620fi
5621
5622if test x${use_gnu_ld} = x &&
5623 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5624 with_gnu_ld=yes
5625 extra_host_args="$extra_host_args --with-gnu-ld"
5626fi
5627
5628# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5629# can detect this case.
5630
5631if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5632 with_newlib=yes
5633 extra_host_args="$extra_host_args --with-newlib"
5634fi
5635
5636# Handle ${copy_dirs}
5637set fnord ${copy_dirs}
5638shift
5639while test $# != 0 ; do
5640 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5641 :
5642 else
5643 echo Copying $1 to $2
5644
5645 # Use the install script to create the directory and all required
5646 # parent directories.
5647 if test -d $2 ; then
5648 :
5649 else
5650 echo >config.temp
5651 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5652 fi
5653
5654 # Copy the directory, assuming we have tar.
5655 # FIXME: Should we use B in the second tar? Not all systems support it.
5656 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5657
5658 # It is the responsibility of the user to correctly adjust all
5659 # symlinks. If somebody can figure out how to handle them correctly
5660 # here, feel free to add the code.
5661
5662 echo $1 > $2/COPIED
5663 fi
5664 shift; shift
5665done
5666
5667# Determine a target-dependent exec_prefix that the installed
5668# gcc will search in. Keep this list sorted by triplet, with
5669# the *-*-osname triplets last.
5670md_exec_prefix=
5671case "${target}" in
5672 alpha*-*-*vms*)
5673 md_exec_prefix=/gnu/lib/gcc-lib
5674 ;;
5675 i[34567]86-pc-msdosdjgpp*)
5676 md_exec_prefix=/dev/env/DJDIR/bin
5677 ;;
5678 i[34567]86-*-sco3.2v5*)
5679 if test $with_gnu_as = yes; then
5680 md_exec_prefix=/usr/gnu/bin
5681 else
5682 md_exec_prefix=/usr/ccs/bin/elf
5683 fi
5684 ;;
5685
5686 mn10300-*-* | \
5687 powerpc-*-chorusos* | \
5688 powerpc*-*-eabi* | \
5689 powerpc*-*-sysv* | \
5690 powerpc*-*-kaos* | \
5691 s390x-ibm-tpf*)
5692 md_exec_prefix=/usr/ccs/bin
5693 ;;
5694 sparc64-*-elf*)
5695 ;;
5696 v850*-*-*)
5697 md_exec_prefix=/usr/ccs/bin
5698 ;;
5699 xtensa*-*-elf*)
5700 ;;
5701
5702 *-*-beos* | \
5703 *-*-elf* | \
5704 *-*-hpux* | \
5705 *-*-netware* | \
5706 *-*-nto-qnx* | \
5707 *-*-rtems* | \
5708 *-*-solaris2* | \
5709 *-*-sysv[45]* | \
5710 *-*-vxworks* | \
5711 *-wrs-windiss)
5712 md_exec_prefix=/usr/ccs/bin
5713 ;;
5714esac
5715
5716extra_arflags_for_target=
5717extra_nmflags_for_target=
5718extra_ranlibflags_for_target=
5719target_makefile_frag=/dev/null
5720case "${target}" in
5721 mep*-*-*)
5722 target_makefile_frag="config/mt-mep"
5723 ;;
5724 spu-*-*)
5725 target_makefile_frag="config/mt-spu"
5726 ;;
5727 mips*-sde-elf*)
5728 target_makefile_frag="config/mt-sde"
5729 ;;
5730 mipsisa*-*-elfoabi*)
5731 target_makefile_frag="config/mt-mips-elfoabi"
5732 ;;
5733 mips*-*-*linux* | mips*-*-gnu*)
5734 target_makefile_frag="config/mt-mips-gnu"
5735 ;;
5736 *-*-netware*)
5737 target_makefile_frag="config/mt-netware"
5738 ;;
5739 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
5740 target_makefile_frag="config/mt-gnu"
5741 ;;
5742 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5743 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5744 # commands to handle both 32-bit and 64-bit objects. These flags are
5745 # harmless if we're using GNU nm or ar.
5746 extra_arflags_for_target=" -X32_64"
5747 extra_nmflags_for_target=" -B -X32_64"
5748 ;;
5749 *-*-darwin*)
5750 # ranlib from Darwin requires the -c flag to look at common symbols.
5751 extra_ranlibflags_for_target=" -c"
5752 ;;
5753 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5754 target_makefile_frag="config/mt-wince"
5755 ;;
5756esac
5757
5758alphaieee_frag=/dev/null
5759case $target in
5760 alpha*-*-*)
5761 # This just makes sure to use the -mieee option to build target libs.
5762 # This should probably be set individually by each library.
5763 alphaieee_frag="config/mt-alphaieee"
5764 ;;
5765esac
5766
5767# If --enable-target-optspace always use -Os instead of -O2 to build
5768# the target libraries, similarly if it is not specified, use -Os
5769# on selected platforms.
5770ospace_frag=/dev/null
5771case "${enable_target_optspace}:${target}" in
5772 yes:*)
5773 ospace_frag="config/mt-ospace"
5774 ;;
5775 :d30v-*)
5776 ospace_frag="config/mt-d30v"
5777 ;;
5778 :m32r-* | :d10v-* | :fr30-*)
5779 ospace_frag="config/mt-ospace"
5780 ;;
5781 no:* | :*)
5782 ;;
5783 *)
5784 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5785 ;;
5786esac
5787
5788# Default to using --with-stabs for certain targets.
5789if test x${with_stabs} = x ; then
5790 case "${target}" in
5791 mips*-*-irix[56]*)
5792 ;;
5793 mips*-*-* | alpha*-*-osf*)
5794 with_stabs=yes;
5795 extra_host_args="${extra_host_args} --with-stabs"
5796 ;;
5797 esac
5798fi
5799
5800# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5801# them automatically.
5802case "${host}" in
5803 hppa*64*-*-hpux11*)
5804 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5805 ;;
5806esac
5807
5808# Some systems (e.g., one of the i386-aix systems the gas testers are
5809# using) don't handle "\$" correctly, so don't use it here.
5810tooldir='${exec_prefix}'/${target_noncanonical}
5811build_tooldir=${tooldir}
5812
5813# Create a .gdbinit file which runs the one in srcdir
5814# and tells GDB to look there for source files.
5815
5816if test -r ${srcdir}/.gdbinit ; then
5817 case ${srcdir} in
5818 .) ;;
5819 *) cat > ./.gdbinit <<EOF
5820# ${NO_EDIT}
5821dir ${srcdir}
5822dir .
5823source ${srcdir}/.gdbinit
5824EOF
5825 ;;
5826 esac
5827fi
5828
5829# Make sure that the compiler is able to generate an executable. If it
5830# can't, we are probably in trouble. We don't care whether we can run the
5831# executable--we might be using a cross compiler--we only care whether it
5832# can be created. At this point the main configure script has set CC.
5833we_are_ok=no
5834echo "int main () { return 0; }" > conftest.c
5835${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5836if test $? = 0 ; then
5837 if test -s conftest || test -s conftest.exe ; then
5838 we_are_ok=yes
5839 fi
5840fi
5841case $we_are_ok in
5842 no)
5843 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5844 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5845 rm -f conftest*
5846 exit 1
5847 ;;
5848esac
5849rm -f conftest*
5850
5851# The Solaris /usr/ucb/cc compiler does not appear to work.
5852case "${host}" in
5853 sparc-sun-solaris2*)
5854 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5855 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5856 could_use=
5857 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5858 if test -d /opt/cygnus/bin ; then
5859 if test "$could_use" = "" ; then
5860 could_use="/opt/cygnus/bin"
5861 else
5862 could_use="$could_use or /opt/cygnus/bin"
5863 fi
5864 fi
5865 if test "$could_use" = "" ; then
5866 echo "Warning: compilation may fail because you're using"
5867 echo "/usr/ucb/cc. You should change your PATH or CC "
5868 echo "variable and rerun configure."
5869 else
5870 echo "Warning: compilation may fail because you're using"
5871 echo "/usr/ucb/cc, when you should use the C compiler from"
5872 echo "$could_use. You should change your"
5873 echo "PATH or CC variable and rerun configure."
5874 fi
5875 fi
5876 ;;
5877esac
5878
5879# Decide which environment variable is used to find dynamic libraries.
5880case "${host}" in
5881 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5882 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5883 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5884 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5885esac
5886
5887# On systems where the dynamic library environment variable is PATH,
5888# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5889# built executables to PATH.
5890if test "$RPATH_ENVVAR" = PATH; then
5891 GCC_SHLIB_SUBDIR=/shlib
5892else
5893 GCC_SHLIB_SUBDIR=
5894fi
5895
5896# Record target_configdirs and the configure arguments for target and
5897# build configuration in Makefile.
5898target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5899build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5900
5901# Determine whether gdb needs tk/tcl or not.
5902# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5903# and in that case we want gdb to be built without tk. Ugh!
5904# In fact I believe gdb is the *only* package directly dependent on tk,
5905# so we should be able to put the 'maybe's in unconditionally and
5906# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5907# 100% sure that that's safe though.
5908
5909gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5910case "$enable_gdbtk" in
5911 no)
5912 GDB_TK="" ;;
5913 yes)
5914 GDB_TK="${gdb_tk}" ;;
5915 *)
5916 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5917 # distro. Eventually someone will fix this and move Insight, nee
5918 # gdbtk to a separate directory.
5919 if test -d ${srcdir}/gdb/gdbtk ; then
5920 GDB_TK="${gdb_tk}"
5921 else
5922 GDB_TK=""
5923 fi
5924 ;;
5925esac
5926CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5927INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5928
5929# Strip out unwanted targets.
5930
5931# While at that, we remove Makefiles if we were started for recursive
5932# configuration, so that the top-level Makefile reconfigures them,
5933# like we used to do when configure itself was recursive.
5934
5935# Loop over modules. $extrasub must be used with care, limiting as
5936# much as possible the usage of range addresses. That's because autoconf
5937# splits the sed script to overcome limits in the number of commands,
5938# and relying on carefully-timed sed passes may turn out to be very hard
5939# to maintain later. In this particular case, you just have to be careful
5940# not to nest @if/@endif pairs, because configure will not warn you at all.
5941
5942# Check whether --enable-bootstrap or --disable-bootstrap was given.
5943if test "${enable_bootstrap+set}" = set; then
5944 enableval="$enable_bootstrap"
5945
5946else
5947 enable_bootstrap=default
5948fi;
5949
5950# Issue errors and warnings for invalid/strange bootstrap combinations.
5951case "$configdirs" in
5952 *gcc*) have_compiler=yes ;;
5953 *) have_compiler=no ;;
5954esac
5955
5956case "$have_compiler:$host:$target:$enable_bootstrap" in
5957 *:*:*:no) ;;
5958
5959 # Default behavior. Enable bootstrap if we have a compiler
5960 # and we are in a native configuration.
5961 yes:$build:$build:default)
5962 enable_bootstrap=yes ;;
5963
5964 *:*:*:default)
5965 enable_bootstrap=no ;;
5966
5967 # We have a compiler and we are in a native configuration, bootstrap is ok
5968 yes:$build:$build:yes)
5969 ;;
5970
5971 # Other configurations, but we have a compiler. Assume the user knows
5972 # what he's doing.
5973 yes:*:*:yes)
5974 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5975echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5976 ;;
5977
5978 # No compiler: if they passed --enable-bootstrap explicitly, fail
5979 no:*:*:yes)
5980 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5981echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5982 { (exit 1); exit 1; }; } ;;
5983
5984 # Fail if wrong command line
5985 *)
5986 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5987echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5988 { (exit 1); exit 1; }; }
5989 ;;
5990esac
5991
5992# Adjust the toplevel makefile according to whether bootstrap was selected.
5993case "$enable_bootstrap" in
5994 yes)
5995 bootstrap_suffix=bootstrap ;;
5996 no)
5997 bootstrap_suffix=no-bootstrap ;;
5998esac
5999
6000for module in ${build_configdirs} ; do
6001 if test -z "${no_recursion}" \
6002 && test -f ${build_subdir}/${module}/Makefile; then
6003 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6004 rm -f ${build_subdir}/${module}/Makefile
6005 fi
6006 extrasub="$extrasub
6007/^@if build-$module\$/d
6008/^@endif build-$module\$/d
6009/^@if build-$module-$bootstrap_suffix\$/d
6010/^@endif build-$module-$bootstrap_suffix\$/d"
6011done
6012for module in ${configdirs} ; do
6013 if test -z "${no_recursion}"; then
6014 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6015 if test -f ${file}; then
6016 echo 1>&2 "*** removing ${file} to force reconfigure"
6017 rm -f ${file}
6018 fi
6019 done
6020 fi
6021 extrasub="$extrasub
6022/^@if $module\$/d
6023/^@endif $module\$/d
6024/^@if $module-$bootstrap_suffix\$/d
6025/^@endif $module-$bootstrap_suffix\$/d"
6026done
6027for module in ${target_configdirs} ; do
6028 if test -z "${no_recursion}" \
6029 && test -f ${target_subdir}/${module}/Makefile; then
6030 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6031 rm -f ${target_subdir}/${module}/Makefile
6032 fi
6033 extrasub="$extrasub
6034/^@if target-$module\$/d
6035/^@endif target-$module\$/d
6036/^@if target-$module-$bootstrap_suffix\$/d
6037/^@endif target-$module-$bootstrap_suffix\$/d"
6038done
6039
6040extrasub="$extrasub
6041/^@if /,/^@endif /d"
6042
6043# Create the serialization dependencies. This uses a temporary file.
6044
6045# Check whether --enable-serial-configure or --disable-serial-configure was given.
6046if test "${enable_serial_configure+set}" = set; then
6047 enableval="$enable_serial_configure"
6048
6049fi;
6050
6051case ${enable_serial_configure} in
6052 yes)
6053 enable_serial_build_configure=yes
6054 enable_serial_host_configure=yes
6055 enable_serial_target_configure=yes
6056 ;;
6057esac
6058
6059# These force 'configure's to be done one at a time, to avoid problems
6060# with contention over a shared config.cache.
6061rm -f serdep.tmp
6062echo '# serdep.tmp' > serdep.tmp
6063olditem=
6064test "x${enable_serial_build_configure}" = xyes &&
6065for item in ${build_configdirs} ; do
6066 case ${olditem} in
6067 "") ;;
6068 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6069 esac
6070 olditem=${item}
6071done
6072olditem=
6073test "x${enable_serial_host_configure}" = xyes &&
6074for item in ${configdirs} ; do
6075 case ${olditem} in
6076 "") ;;
6077 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6078 esac
6079 olditem=${item}
6080done
6081olditem=
6082test "x${enable_serial_target_configure}" = xyes &&
6083for item in ${target_configdirs} ; do
6084 case ${olditem} in
6085 "") ;;
6086 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6087 esac
6088 olditem=${item}
6089done
6090serialization_dependencies=serdep.tmp
6091
6092
6093# Base args. Strip norecursion, cache-file, srcdir, host, build,
6094# target, nonopt, and variable assignments. These are the ones we
6095# might not want to pass down to subconfigures. Also strip
6096# program-prefix, program-suffix, and program-transform-name, so that
6097# we can pass down a consistent program-transform-name.
6098baseargs=
6099keep_next=no
6100skip_next=no
6101eval "set -- $ac_configure_args"
6102for ac_arg
6103do
6104 if test X"$skip_next" = X"yes"; then
6105 skip_next=no
6106 continue
6107 fi
6108 if test X"$keep_next" = X"yes"; then
6109 case $ac_arg in
6110 *\'*)
6111 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6112 esac
6113 baseargs="$baseargs '$ac_arg'"
6114 keep_next=no
6115 continue
6116 fi
6117
6118 # Handle separated arguments. Based on the logic generated by
6119 # autoconf 2.59.
6120 case $ac_arg in
6121 *=* | --config-cache | -C | -disable-* | --disable-* \
6122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6124 | -with-* | --with-* | -without-* | --without-* | --x)
6125 separate_arg=no
6126 ;;
6127 -*)
6128 separate_arg=yes
6129 ;;
6130 *)
6131 separate_arg=no
6132 ;;
6133 esac
6134
6135 case "$ac_arg" in
6136 --no*)
6137 continue
6138 ;;
6139 --c* | \
6140 --sr* | \
6141 --ho* | \
6142 --bu* | \
6143 --t* | \
6144 --program-* | \
6145 -cache_file* | \
6146 -srcdir* | \
6147 -host* | \
6148 -build* | \
6149 -target* | \
6150 -program-prefix* | \
6151 -program-suffix* | \
6152 -program-transform-name* )
6153 skip_next=$separate_arg
6154 continue
6155 ;;
6156 -*)
6157 # An option. Add it.
6158 case $ac_arg in
6159 *\'*)
6160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6161 esac
6162 baseargs="$baseargs '$ac_arg'"
6163 keep_next=$separate_arg
6164 ;;
6165 *)
6166 # Either a variable assignment, or a nonopt (triplet). Don't
6167 # pass it down; let the Makefile handle this.
6168 continue
6169 ;;
6170 esac
6171done
6172# Remove the initial space we just introduced and, as these will be
6173# expanded by make, quote '$'.
6174baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6175
6176# Add in --program-transform-name, after --program-prefix and
6177# --program-suffix have been applied to it. Autoconf has already
6178# doubled dollar signs and backslashes in program_transform_name; we want
6179# the backslashes un-doubled, and then the entire thing wrapped in single
6180# quotes, because this will be expanded first by make and then by the shell.
6181# Also, because we want to override the logic in subdir configure scripts to
6182# choose program_transform_name, replace any s,x,x, with s,y,y,.
6183sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6184${program_transform_name}
6185EOF_SED
6186gcc_transform_name=`cat conftestsed.out`
6187rm -f conftestsed.out
6188baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6189if test "$silent" = yes; then
6190 baseargs="$baseargs --silent"
6191fi
6192
6193# For the build-side libraries, we just need to pretend we're native,
6194# and not use the same cache file. Multilibs are neither needed nor
6195# desired.
6196build_configargs="--cache-file=../config.cache ${baseargs}"
6197
6198# For host modules, accept cache file option, or specification as blank.
6199case "${cache_file}" in
6200"") # empty
6201 cache_file_option="" ;;
6202/* | [A-Za-z]:[\\/]* ) # absolute path
6203 cache_file_option="--cache-file=${cache_file}" ;;
6204*) # relative path
6205 cache_file_option="--cache-file=../${cache_file}" ;;
6206esac
6207
6208# Host dirs don't like to share a cache file either, horribly enough.
6209# This seems to be due to autoconf 2.5x stupidity.
6210host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6211
6212target_configargs=${baseargs}
6213
6214# Passing a --with-cross-host argument lets the target libraries know
6215# whether they are being built with a cross-compiler or being built
6216# native. However, it would be better to use other mechanisms to make the
6217# sorts of decisions they want to make on this basis. Please consider
6218# this option to be deprecated. FIXME.
6219if test x${is_cross_compiler} = xyes ; then
6220 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6221fi
6222
6223# Default to --enable-multilib.
6224if test x${enable_multilib} = x ; then
6225 target_configargs="--enable-multilib ${target_configargs}"
6226fi
6227
6228# Pass --with-newlib if appropriate. Note that target_configdirs has
6229# changed from the earlier setting of with_newlib.
6230if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6231 target_configargs="--with-newlib ${target_configargs}"
6232fi
6233
6234# Different target subdirs use different values of certain variables
6235# (notably CXX). Worse, multilibs use *lots* of different values.
6236# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6237# it doesn't automatically accept command-line overrides of them.
6238# This means it's not safe for target subdirs to share a cache file,
6239# which is disgusting, but there you have it. Hopefully this can be
6240# fixed in future. It's still worthwhile to use a cache file for each
6241# directory. I think.
6242
6243# Pass the appropriate --build, --host, --target and --cache-file arguments.
6244# We need to pass --target, as newer autoconf's requires consistency
6245# for target_alias and gcc doesn't manage it consistently.
6246target_configargs="--cache-file=./config.cache ${target_configargs}"
6247
6248FLAGS_FOR_TARGET=
6249case " $target_configdirs " in
6250 *" newlib "*)
6251 case " $target_configargs " in
6252 *" --with-newlib "*)
6253 case "$target" in
6254 *-cygwin*)
6255 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' ;;
6256 esac
6257
6258 # If we're not building GCC, don't discard standard headers.
6259 if test -d ${srcdir}/gcc; then
6260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6261
6262 if test "${build}" != "${host}"; then
6263 # On Canadian crosses, CC_FOR_TARGET will have already been set
6264 # by `configure', so we won't have an opportunity to add -Bgcc/
6265 # to it. This is right: we don't want to search that directory
6266 # for binaries, but we want the header files in there, so add
6267 # them explicitly.
6268 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6269
6270 # Someone might think of using the pre-installed headers on
6271 # Canadian crosses, in case the installed compiler is not fully
6272 # compatible with the compiler being built. In this case, it
6273 # would be better to flag an error than risking having
6274 # incompatible object files being constructed. We can't
6275 # guarantee that an error will be flagged, but let's hope the
6276 # compiler will do it, when presented with incompatible header
6277 # files.
6278 fi
6279 fi
6280
6281 case "${target}-${is_cross_compiler}" in
6282 i[3456789]86-*-linux*-no)
6283 # Here host == target, so we don't need to build gcc,
6284 # so we don't want to discard standard headers.
6285 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6286 ;;
6287 *)
6288 # If we're building newlib, use its generic headers last, but search
6289 # for any libc-related directories first (so make it the last -B
6290 # switch).
6291 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6292
6293 # If we're building libgloss, find the startup file, simulator library
6294 # and linker script.
6295 case " $target_configdirs " in
6296 *" libgloss "*)
6297 # Look for startup file, simulator library and maybe linker script.
6298 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6299 # Look for libnosys.a in case the target needs it.
6300 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6301 # Most targets have the linker script in the source directory.
6302 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6303 ;;
6304 esac
6305 ;;
6306 esac
6307 ;;
6308 esac
6309 ;;
6310esac
6311case "$target" in
6312*-mingw*)
6313 # Can't be handled as Cygwin above since Mingw does not use newlib.
6314 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' ;;
6315esac
6316
6317# Allow the user to override the flags for
6318# our build compiler if desired.
6319if test x"${build}" = x"${host}" ; then
6320 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6321 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6322 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6323fi
6324
6325# On Canadian crosses, we'll be searching the right directories for
6326# the previously-installed cross compiler, so don't bother to add
6327# flags for directories within the install tree of the compiler
6328# being built; programs in there won't even run.
6329if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6330 # Search for pre-installed headers if nothing else fits.
6331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6332fi
6333
6334if test "x${use_gnu_ld}" = x &&
6335 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6336 # Arrange for us to find uninstalled linker scripts.
6337 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6338fi
6339
6340# Search for other target-specific linker scripts and such.
6341case "${target}" in
6342 mep*)
6343 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6344 ;;
6345esac
6346
6347# Makefile fragments.
6348for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6349do
6350 eval fragval=\$$frag
6351 if test $fragval != /dev/null; then
6352 eval $frag=${srcdir}/$fragval
6353 fi
6354done
6355
6356
6357
6358
6359
6360# Miscellanea: directories, flags, etc.
6361
6362
6363
6364
6365
6366
6367
6368
6369# Build module lists & subconfigure args.
6370
6371
6372
6373# Host module lists & subconfigure args.
6374
6375
6376
6377# Target module lists & subconfigure args.
6378
6379
6380
6381# Build tools.
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399# Generate default definitions for YACC, M4, LEX and other programs that run
6400# on the build machine. These are used if the Makefile can't locate these
6401# programs in objdir.
6402MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6403
6404for ac_prog in 'bison -y' byacc yacc
6405do
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407set dummy $ac_prog; ac_word=$2
6408echo "$as_me:$LINENO: checking for $ac_word" >&5
6409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410if test "${ac_cv_prog_YACC+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
6413 if test -n "$YACC"; then
6414 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_YACC="$ac_prog"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428done
6429
6430fi
6431fi
6432YACC=$ac_cv_prog_YACC
6433if test -n "$YACC"; then
6434 echo "$as_me:$LINENO: result: $YACC" >&5
6435echo "${ECHO_T}$YACC" >&6
6436else
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
6439fi
6440
6441 test -n "$YACC" && break
6442done
6443test -n "$YACC" || YACC="$MISSING bison -y"
6444
6445case " $build_configdirs " in
6446 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6447 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6448esac
6449
6450for ac_prog in bison
6451do
6452 # Extract the first word of "$ac_prog", so it can be a program name with args.
6453set dummy $ac_prog; ac_word=$2
6454echo "$as_me:$LINENO: checking for $ac_word" >&5
6455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6456if test "${ac_cv_prog_BISON+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459 if test -n "$BISON"; then
6460 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_BISON="$ac_prog"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473done
6474done
6475
6476fi
6477fi
6478BISON=$ac_cv_prog_BISON
6479if test -n "$BISON"; then
6480 echo "$as_me:$LINENO: result: $BISON" >&5
6481echo "${ECHO_T}$BISON" >&6
6482else
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
6485fi
6486
6487 test -n "$BISON" && break
6488done
6489test -n "$BISON" || BISON="$MISSING bison"
6490
6491case " $build_configdirs " in
6492 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6493esac
6494
6495for ac_prog in gm4 gnum4 m4
6496do
6497 # Extract the first word of "$ac_prog", so it can be a program name with args.
6498set dummy $ac_prog; ac_word=$2
6499echo "$as_me:$LINENO: checking for $ac_word" >&5
6500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501if test "${ac_cv_prog_M4+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504 if test -n "$M4"; then
6505 ac_cv_prog_M4="$M4" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_M4="$ac_prog"
6515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518done
6519done
6520
6521fi
6522fi
6523M4=$ac_cv_prog_M4
6524if test -n "$M4"; then
6525 echo "$as_me:$LINENO: result: $M4" >&5
6526echo "${ECHO_T}$M4" >&6
6527else
6528 echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6
6530fi
6531
6532 test -n "$M4" && break
6533done
6534test -n "$M4" || M4="$MISSING m4"
6535
6536case " $build_configdirs " in
6537 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6538esac
6539
6540for ac_prog in flex lex
6541do
6542 # Extract the first word of "$ac_prog", so it can be a program name with args.
6543set dummy $ac_prog; ac_word=$2
6544echo "$as_me:$LINENO: checking for $ac_word" >&5
6545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6546if test "${ac_cv_prog_LEX+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549 if test -n "$LEX"; then
6550 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6551else
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_LEX="$ac_prog"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565
6566fi
6567fi
6568LEX=$ac_cv_prog_LEX
6569if test -n "$LEX"; then
6570 echo "$as_me:$LINENO: result: $LEX" >&5
6571echo "${ECHO_T}$LEX" >&6
6572else
6573 echo "$as_me:$LINENO: result: no" >&5
6574echo "${ECHO_T}no" >&6
6575fi
6576
6577 test -n "$LEX" && break
6578done
6579test -n "$LEX" || LEX="$MISSING flex"
6580
6581case " $build_configdirs " in
6582 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6583 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6584esac
6585
6586for ac_prog in flex
6587do
6588 # Extract the first word of "$ac_prog", so it can be a program name with args.
6589set dummy $ac_prog; ac_word=$2
6590echo "$as_me:$LINENO: checking for $ac_word" >&5
6591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6592if test "${ac_cv_prog_FLEX+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594else
6595 if test -n "$FLEX"; then
6596 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_FLEX="$ac_prog"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609done
6610done
6611
6612fi
6613fi
6614FLEX=$ac_cv_prog_FLEX
6615if test -n "$FLEX"; then
6616 echo "$as_me:$LINENO: result: $FLEX" >&5
6617echo "${ECHO_T}$FLEX" >&6
6618else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621fi
6622
6623 test -n "$FLEX" && break
6624done
6625test -n "$FLEX" || FLEX="$MISSING flex"
6626
6627case " $build_configdirs " in
6628 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6629esac
6630
6631for ac_prog in makeinfo
6632do
6633 # Extract the first word of "$ac_prog", so it can be a program name with args.
6634set dummy $ac_prog; ac_word=$2
6635echo "$as_me:$LINENO: checking for $ac_word" >&5
6636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640 if test -n "$MAKEINFO"; then
6641 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_MAKEINFO="$ac_prog"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654done
6655done
6656
6657fi
6658fi
6659MAKEINFO=$ac_cv_prog_MAKEINFO
6660if test -n "$MAKEINFO"; then
6661 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6662echo "${ECHO_T}$MAKEINFO" >&6
6663else
6664 echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6
6666fi
6667
6668 test -n "$MAKEINFO" && break
6669done
6670test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6671
6672case " $build_configdirs " in
6673 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6674 *)
6675
6676 # For an installed makeinfo, we require it to be from texinfo 4.7 or
6677 # higher, else we use the "missing" dummy.
6678 if ${MAKEINFO} --version \
6679 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6680 :
6681 else
6682 MAKEINFO="$MISSING makeinfo"
6683 fi
6684 ;;
6685
6686esac
6687
6688# FIXME: expect and dejagnu may become build tools?
6689
6690for ac_prog in expect
6691do
6692 # Extract the first word of "$ac_prog", so it can be a program name with args.
6693set dummy $ac_prog; ac_word=$2
6694echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6696if test "${ac_cv_prog_EXPECT+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699 if test -n "$EXPECT"; then
6700 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_EXPECT="$ac_prog"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714done
6715
6716fi
6717fi
6718EXPECT=$ac_cv_prog_EXPECT
6719if test -n "$EXPECT"; then
6720 echo "$as_me:$LINENO: result: $EXPECT" >&5
6721echo "${ECHO_T}$EXPECT" >&6
6722else
6723 echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6
6725fi
6726
6727 test -n "$EXPECT" && break
6728done
6729test -n "$EXPECT" || EXPECT="expect"
6730
6731case " $configdirs " in
6732 *" expect "*)
6733 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6734 ;;
6735esac
6736
6737for ac_prog in runtest
6738do
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740set dummy $ac_prog; ac_word=$2
6741echo "$as_me:$LINENO: checking for $ac_word" >&5
6742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6743if test "${ac_cv_prog_RUNTEST+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745else
6746 if test -n "$RUNTEST"; then
6747 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_RUNTEST="$ac_prog"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761done
6762
6763fi
6764fi
6765RUNTEST=$ac_cv_prog_RUNTEST
6766if test -n "$RUNTEST"; then
6767 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6768echo "${ECHO_T}$RUNTEST" >&6
6769else
6770 echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6
6772fi
6773
6774 test -n "$RUNTEST" && break
6775done
6776test -n "$RUNTEST" || RUNTEST="runtest"
6777
6778case " $configdirs " in
6779 *" dejagnu "*)
6780 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6781 ;;
6782esac
6783
6784
6785# Host tools.
6786ncn_tool_prefix=
6787test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6788ncn_target_tool_prefix=
6789test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6790
6791
6792
6793if test -n "$AR"; then
6794 ac_cv_prog_AR=$AR
6795elif test -n "$ac_cv_prog_AR"; then
6796 AR=$ac_cv_prog_AR
6797fi
6798
6799if test -n "$ac_cv_prog_AR"; then
6800 for ncn_progname in ar; do
6801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6802set dummy ${ncn_progname}; ac_word=$2
6803echo "$as_me:$LINENO: checking for $ac_word" >&5
6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6805if test "${ac_cv_prog_AR+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808 if test -n "$AR"; then
6809 ac_cv_prog_AR="$AR" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_AR="${ncn_progname}"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822done
6823done
6824
6825fi
6826fi
6827AR=$ac_cv_prog_AR
6828if test -n "$AR"; then
6829 echo "$as_me:$LINENO: result: $AR" >&5
6830echo "${ECHO_T}$AR" >&6
6831else
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
6834fi
6835
6836 done
6837fi
6838
6839for ncn_progname in ar; do
6840 if test -n "$ncn_tool_prefix"; then
6841 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6842set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6843echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6845if test "${ac_cv_prog_AR+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 if test -n "$AR"; then
6849 ac_cv_prog_AR="$AR" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864
6865fi
6866fi
6867AR=$ac_cv_prog_AR
6868if test -n "$AR"; then
6869 echo "$as_me:$LINENO: result: $AR" >&5
6870echo "${ECHO_T}$AR" >&6
6871else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874fi
6875
6876 fi
6877 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6879set dummy ${ncn_progname}; ac_word=$2
6880echo "$as_me:$LINENO: checking for $ac_word" >&5
6881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6882if test "${ac_cv_prog_AR+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885 if test -n "$AR"; then
6886 ac_cv_prog_AR="$AR" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_AR="${ncn_progname}"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
6901
6902fi
6903fi
6904AR=$ac_cv_prog_AR
6905if test -n "$AR"; then
6906 echo "$as_me:$LINENO: result: $AR" >&5
6907echo "${ECHO_T}$AR" >&6
6908else
6909 echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6
6911fi
6912
6913 fi
6914 test -n "$ac_cv_prog_AR" && break
6915done
6916
6917if test -z "$ac_cv_prog_AR" ; then
6918 set dummy ar
6919 if test $build = $host ; then
6920 AR="$2"
6921 else
6922 AR="${ncn_tool_prefix}$2"
6923 fi
6924fi
6925
6926
6927
6928if test -n "$AS"; then
6929 ac_cv_prog_AS=$AS
6930elif test -n "$ac_cv_prog_AS"; then
6931 AS=$ac_cv_prog_AS
6932fi
6933
6934if test -n "$ac_cv_prog_AS"; then
6935 for ncn_progname in as; do
6936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6937set dummy ${ncn_progname}; ac_word=$2
6938echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6940if test "${ac_cv_prog_AS+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 if test -n "$AS"; then
6944 ac_cv_prog_AS="$AS" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_AS="${ncn_progname}"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958done
6959
6960fi
6961fi
6962AS=$ac_cv_prog_AS
6963if test -n "$AS"; then
6964 echo "$as_me:$LINENO: result: $AS" >&5
6965echo "${ECHO_T}$AS" >&6
6966else
6967 echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6
6969fi
6970
6971 done
6972fi
6973
6974for ncn_progname in as; do
6975 if test -n "$ncn_tool_prefix"; then
6976 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6977set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6978echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6980if test "${ac_cv_prog_AS+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983 if test -n "$AS"; then
6984 ac_cv_prog_AS="$AS" # Let the user override the test.
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997done
6998done
6999
7000fi
7001fi
7002AS=$ac_cv_prog_AS
7003if test -n "$AS"; then
7004 echo "$as_me:$LINENO: result: $AS" >&5
7005echo "${ECHO_T}$AS" >&6
7006else
7007 echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6
7009fi
7010
7011 fi
7012 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7014set dummy ${ncn_progname}; ac_word=$2
7015echo "$as_me:$LINENO: checking for $ac_word" >&5
7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7017if test "${ac_cv_prog_AS+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020 if test -n "$AS"; then
7021 ac_cv_prog_AS="$AS" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_AS="${ncn_progname}"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035done
7036
7037fi
7038fi
7039AS=$ac_cv_prog_AS
7040if test -n "$AS"; then
7041 echo "$as_me:$LINENO: result: $AS" >&5
7042echo "${ECHO_T}$AS" >&6
7043else
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
7046fi
7047
7048 fi
7049 test -n "$ac_cv_prog_AS" && break
7050done
7051
7052if test -z "$ac_cv_prog_AS" ; then
7053 set dummy as
7054 if test $build = $host ; then
7055 AS="$2"
7056 else
7057 AS="${ncn_tool_prefix}$2"
7058 fi
7059fi
7060
7061
7062
7063if test -n "$DLLTOOL"; then
7064 ac_cv_prog_DLLTOOL=$DLLTOOL
7065elif test -n "$ac_cv_prog_DLLTOOL"; then
7066 DLLTOOL=$ac_cv_prog_DLLTOOL
7067fi
7068
7069if test -n "$ac_cv_prog_DLLTOOL"; then
7070 for ncn_progname in dlltool; do
7071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7072set dummy ${ncn_progname}; ac_word=$2
7073echo "$as_me:$LINENO: checking for $ac_word" >&5
7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7075if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078 if test -n "$DLLTOOL"; then
7079 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7080else
7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_DLLTOOL="${ncn_progname}"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094
7095fi
7096fi
7097DLLTOOL=$ac_cv_prog_DLLTOOL
7098if test -n "$DLLTOOL"; then
7099 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7100echo "${ECHO_T}$DLLTOOL" >&6
7101else
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104fi
7105
7106 done
7107fi
7108
7109for ncn_progname in dlltool; do
7110 if test -n "$ncn_tool_prefix"; then
7111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7112set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7113echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7115if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118 if test -n "$DLLTOOL"; then
7119 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7120else
7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122for as_dir in $PATH
7123do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132done
7133done
7134
7135fi
7136fi
7137DLLTOOL=$ac_cv_prog_DLLTOOL
7138if test -n "$DLLTOOL"; then
7139 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7140echo "${ECHO_T}$DLLTOOL" >&6
7141else
7142 echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6
7144fi
7145
7146 fi
7147 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7149set dummy ${ncn_progname}; ac_word=$2
7150echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7152if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 if test -n "$DLLTOOL"; then
7156 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_DLLTOOL="${ncn_progname}"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170done
7171
7172fi
7173fi
7174DLLTOOL=$ac_cv_prog_DLLTOOL
7175if test -n "$DLLTOOL"; then
7176 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7177echo "${ECHO_T}$DLLTOOL" >&6
7178else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181fi
7182
7183 fi
7184 test -n "$ac_cv_prog_DLLTOOL" && break
7185done
7186
7187if test -z "$ac_cv_prog_DLLTOOL" ; then
7188 set dummy dlltool
7189 if test $build = $host ; then
7190 DLLTOOL="$2"
7191 else
7192 DLLTOOL="${ncn_tool_prefix}$2"
7193 fi
7194fi
7195
7196
7197
7198if test -n "$LD"; then
7199 ac_cv_prog_LD=$LD
7200elif test -n "$ac_cv_prog_LD"; then
7201 LD=$ac_cv_prog_LD
7202fi
7203
7204if test -n "$ac_cv_prog_LD"; then
7205 for ncn_progname in ld; do
7206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7207set dummy ${ncn_progname}; ac_word=$2
7208echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7210if test "${ac_cv_prog_LD+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 if test -n "$LD"; then
7214 ac_cv_prog_LD="$LD" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_LD="${ncn_progname}"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227done
7228done
7229
7230fi
7231fi
7232LD=$ac_cv_prog_LD
7233if test -n "$LD"; then
7234 echo "$as_me:$LINENO: result: $LD" >&5
7235echo "${ECHO_T}$LD" >&6
7236else
7237 echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6
7239fi
7240
7241 done
7242fi
7243
7244for ncn_progname in ld; do
7245 if test -n "$ncn_tool_prefix"; then
7246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7247set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7248echo "$as_me:$LINENO: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250if test "${ac_cv_prog_LD+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253 if test -n "$LD"; then
7254 ac_cv_prog_LD="$LD" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267done
7268done
7269
7270fi
7271fi
7272LD=$ac_cv_prog_LD
7273if test -n "$LD"; then
7274 echo "$as_me:$LINENO: result: $LD" >&5
7275echo "${ECHO_T}$LD" >&6
7276else
7277 echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6
7279fi
7280
7281 fi
7282 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7284set dummy ${ncn_progname}; ac_word=$2
7285echo "$as_me:$LINENO: checking for $ac_word" >&5
7286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7287if test "${ac_cv_prog_LD+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289else
7290 if test -n "$LD"; then
7291 ac_cv_prog_LD="$LD" # Let the user override the test.
7292else
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_LD="${ncn_progname}"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305done
7306
7307fi
7308fi
7309LD=$ac_cv_prog_LD
7310if test -n "$LD"; then
7311 echo "$as_me:$LINENO: result: $LD" >&5
7312echo "${ECHO_T}$LD" >&6
7313else
7314 echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
7316fi
7317
7318 fi
7319 test -n "$ac_cv_prog_LD" && break
7320done
7321
7322if test -z "$ac_cv_prog_LD" ; then
7323 set dummy ld
7324 if test $build = $host ; then
7325 LD="$2"
7326 else
7327 LD="${ncn_tool_prefix}$2"
7328 fi
7329fi
7330
7331
7332
7333if test -n "$LIPO"; then
7334 ac_cv_prog_LIPO=$LIPO
7335elif test -n "$ac_cv_prog_LIPO"; then
7336 LIPO=$ac_cv_prog_LIPO
7337fi
7338
7339if test -n "$ac_cv_prog_LIPO"; then
7340 for ncn_progname in lipo; do
7341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7342set dummy ${ncn_progname}; ac_word=$2
7343echo "$as_me:$LINENO: checking for $ac_word" >&5
7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345if test "${ac_cv_prog_LIPO+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348 if test -n "$LIPO"; then
7349 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_LIPO="${ncn_progname}"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363done
7364
7365fi
7366fi
7367LIPO=$ac_cv_prog_LIPO
7368if test -n "$LIPO"; then
7369 echo "$as_me:$LINENO: result: $LIPO" >&5
7370echo "${ECHO_T}$LIPO" >&6
7371else
7372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374fi
7375
7376 done
7377fi
7378
7379for ncn_progname in lipo; do
7380 if test -n "$ncn_tool_prefix"; then
7381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7382set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7383echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7385if test "${ac_cv_prog_LIPO+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387else
7388 if test -n "$LIPO"; then
7389 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7390else
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403done
7404
7405fi
7406fi
7407LIPO=$ac_cv_prog_LIPO
7408if test -n "$LIPO"; then
7409 echo "$as_me:$LINENO: result: $LIPO" >&5
7410echo "${ECHO_T}$LIPO" >&6
7411else
7412 echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6
7414fi
7415
7416 fi
7417 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7419set dummy ${ncn_progname}; ac_word=$2
7420echo "$as_me:$LINENO: checking for $ac_word" >&5
7421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422if test "${ac_cv_prog_LIPO+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425 if test -n "$LIPO"; then
7426 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7427else
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_LIPO="${ncn_progname}"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439done
7440done
7441
7442fi
7443fi
7444LIPO=$ac_cv_prog_LIPO
7445if test -n "$LIPO"; then
7446 echo "$as_me:$LINENO: result: $LIPO" >&5
7447echo "${ECHO_T}$LIPO" >&6
7448else
7449 echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
7451fi
7452
7453 fi
7454 test -n "$ac_cv_prog_LIPO" && break
7455done
7456
7457if test -z "$ac_cv_prog_LIPO" ; then
7458 set dummy lipo
7459 if test $build = $host ; then
7460 LIPO="$2"
7461 else
7462 LIPO="${ncn_tool_prefix}$2"
7463 fi
7464fi
7465
7466
7467
7468if test -n "$NM"; then
7469 ac_cv_prog_NM=$NM
7470elif test -n "$ac_cv_prog_NM"; then
7471 NM=$ac_cv_prog_NM
7472fi
7473
7474if test -n "$ac_cv_prog_NM"; then
7475 for ncn_progname in nm; do
7476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7477set dummy ${ncn_progname}; ac_word=$2
7478echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480if test "${ac_cv_prog_NM+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 if test -n "$NM"; then
7484 ac_cv_prog_NM="$NM" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_NM="${ncn_progname}"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497done
7498done
7499
7500fi
7501fi
7502NM=$ac_cv_prog_NM
7503if test -n "$NM"; then
7504 echo "$as_me:$LINENO: result: $NM" >&5
7505echo "${ECHO_T}$NM" >&6
7506else
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
7509fi
7510
7511 done
7512fi
7513
7514for ncn_progname in nm; do
7515 if test -n "$ncn_tool_prefix"; then
7516 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7517set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7518echo "$as_me:$LINENO: checking for $ac_word" >&5
7519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7520if test "${ac_cv_prog_NM+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523 if test -n "$NM"; then
7524 ac_cv_prog_NM="$NM" # Let the user override the test.
7525else
7526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537done
7538done
7539
7540fi
7541fi
7542NM=$ac_cv_prog_NM
7543if test -n "$NM"; then
7544 echo "$as_me:$LINENO: result: $NM" >&5
7545echo "${ECHO_T}$NM" >&6
7546else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549fi
7550
7551 fi
7552 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7554set dummy ${ncn_progname}; ac_word=$2
7555echo "$as_me:$LINENO: checking for $ac_word" >&5
7556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557if test "${ac_cv_prog_NM+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 if test -n "$NM"; then
7561 ac_cv_prog_NM="$NM" # Let the user override the test.
7562else
7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_NM="${ncn_progname}"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574done
7575done
7576
7577fi
7578fi
7579NM=$ac_cv_prog_NM
7580if test -n "$NM"; then
7581 echo "$as_me:$LINENO: result: $NM" >&5
7582echo "${ECHO_T}$NM" >&6
7583else
7584 echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6
7586fi
7587
7588 fi
7589 test -n "$ac_cv_prog_NM" && break
7590done
7591
7592if test -z "$ac_cv_prog_NM" ; then
7593 set dummy nm
7594 if test $build = $host ; then
7595 NM="$2"
7596 else
7597 NM="${ncn_tool_prefix}$2"
7598 fi
7599fi
7600
7601
7602
7603if test -n "$RANLIB"; then
7604 ac_cv_prog_RANLIB=$RANLIB
7605elif test -n "$ac_cv_prog_RANLIB"; then
7606 RANLIB=$ac_cv_prog_RANLIB
7607fi
7608
7609if test -n "$ac_cv_prog_RANLIB"; then
7610 for ncn_progname in ranlib; do
7611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7612set dummy ${ncn_progname}; ac_word=$2
7613echo "$as_me:$LINENO: checking for $ac_word" >&5
7614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7615if test "${ac_cv_prog_RANLIB+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
7618 if test -n "$RANLIB"; then
7619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7620else
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_RANLIB="${ncn_progname}"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632done
7633done
7634
7635fi
7636fi
7637RANLIB=$ac_cv_prog_RANLIB
7638if test -n "$RANLIB"; then
7639 echo "$as_me:$LINENO: result: $RANLIB" >&5
7640echo "${ECHO_T}$RANLIB" >&6
7641else
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
7644fi
7645
7646 done
7647fi
7648
7649for ncn_progname in ranlib; do
7650 if test -n "$ncn_tool_prefix"; then
7651 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7652set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7653echo "$as_me:$LINENO: checking for $ac_word" >&5
7654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7655if test "${ac_cv_prog_RANLIB+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 if test -n "$RANLIB"; then
7659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7660else
7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672done
7673done
7674
7675fi
7676fi
7677RANLIB=$ac_cv_prog_RANLIB
7678if test -n "$RANLIB"; then
7679 echo "$as_me:$LINENO: result: $RANLIB" >&5
7680echo "${ECHO_T}$RANLIB" >&6
7681else
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
7684fi
7685
7686 fi
7687 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7689set dummy ${ncn_progname}; ac_word=$2
7690echo "$as_me:$LINENO: checking for $ac_word" >&5
7691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692if test "${ac_cv_prog_RANLIB+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695 if test -n "$RANLIB"; then
7696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_RANLIB="${ncn_progname}"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709done
7710done
7711
7712fi
7713fi
7714RANLIB=$ac_cv_prog_RANLIB
7715if test -n "$RANLIB"; then
7716 echo "$as_me:$LINENO: result: $RANLIB" >&5
7717echo "${ECHO_T}$RANLIB" >&6
7718else
7719 echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6
7721fi
7722
7723 fi
7724 test -n "$ac_cv_prog_RANLIB" && break
7725done
7726
7727if test -z "$ac_cv_prog_RANLIB" ; then
7728 RANLIB=":"
7729fi
7730
7731
7732
7733if test -n "$STRIP"; then
7734 ac_cv_prog_STRIP=$STRIP
7735elif test -n "$ac_cv_prog_STRIP"; then
7736 STRIP=$ac_cv_prog_STRIP
7737fi
7738
7739if test -n "$ac_cv_prog_STRIP"; then
7740 for ncn_progname in strip; do
7741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7742set dummy ${ncn_progname}; ac_word=$2
7743echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745if test "${ac_cv_prog_STRIP+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 if test -n "$STRIP"; then
7749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_STRIP="${ncn_progname}"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762done
7763done
7764
7765fi
7766fi
7767STRIP=$ac_cv_prog_STRIP
7768if test -n "$STRIP"; then
7769 echo "$as_me:$LINENO: result: $STRIP" >&5
7770echo "${ECHO_T}$STRIP" >&6
7771else
7772 echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6
7774fi
7775
7776 done
7777fi
7778
7779for ncn_progname in strip; do
7780 if test -n "$ncn_tool_prefix"; then
7781 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7782set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7783echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785if test "${ac_cv_prog_STRIP+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 if test -n "$STRIP"; then
7789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7790else
7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802done
7803done
7804
7805fi
7806fi
7807STRIP=$ac_cv_prog_STRIP
7808if test -n "$STRIP"; then
7809 echo "$as_me:$LINENO: result: $STRIP" >&5
7810echo "${ECHO_T}$STRIP" >&6
7811else
7812 echo "$as_me:$LINENO: result: no" >&5
7813echo "${ECHO_T}no" >&6
7814fi
7815
7816 fi
7817 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7819set dummy ${ncn_progname}; ac_word=$2
7820echo "$as_me:$LINENO: checking for $ac_word" >&5
7821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7822if test "${ac_cv_prog_STRIP+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824else
7825 if test -n "$STRIP"; then
7826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7827else
7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH
7830do
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835 ac_cv_prog_STRIP="${ncn_progname}"
7836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7838 fi
7839done
7840done
7841
7842fi
7843fi
7844STRIP=$ac_cv_prog_STRIP
7845if test -n "$STRIP"; then
7846 echo "$as_me:$LINENO: result: $STRIP" >&5
7847echo "${ECHO_T}$STRIP" >&6
7848else
7849 echo "$as_me:$LINENO: result: no" >&5
7850echo "${ECHO_T}no" >&6
7851fi
7852
7853 fi
7854 test -n "$ac_cv_prog_STRIP" && break
7855done
7856
7857if test -z "$ac_cv_prog_STRIP" ; then
7858 STRIP=":"
7859fi
7860
7861
7862
7863if test -n "$WINDRES"; then
7864 ac_cv_prog_WINDRES=$WINDRES
7865elif test -n "$ac_cv_prog_WINDRES"; then
7866 WINDRES=$ac_cv_prog_WINDRES
7867fi
7868
7869if test -n "$ac_cv_prog_WINDRES"; then
7870 for ncn_progname in windres; do
7871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7872set dummy ${ncn_progname}; ac_word=$2
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_prog_WINDRES+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878 if test -n "$WINDRES"; then
7879 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_WINDRES="${ncn_progname}"
7889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892done
7893done
7894
7895fi
7896fi
7897WINDRES=$ac_cv_prog_WINDRES
7898if test -n "$WINDRES"; then
7899 echo "$as_me:$LINENO: result: $WINDRES" >&5
7900echo "${ECHO_T}$WINDRES" >&6
7901else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906 done
7907fi
7908
7909for ncn_progname in windres; do
7910 if test -n "$ncn_tool_prefix"; then
7911 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7912set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7913echo "$as_me:$LINENO: checking for $ac_word" >&5
7914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915if test "${ac_cv_prog_WINDRES+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 if test -n "$WINDRES"; then
7919 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7920else
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932done
7933done
7934
7935fi
7936fi
7937WINDRES=$ac_cv_prog_WINDRES
7938if test -n "$WINDRES"; then
7939 echo "$as_me:$LINENO: result: $WINDRES" >&5
7940echo "${ECHO_T}$WINDRES" >&6
7941else
7942 echo "$as_me:$LINENO: result: no" >&5
7943echo "${ECHO_T}no" >&6
7944fi
7945
7946 fi
7947 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7949set dummy ${ncn_progname}; ac_word=$2
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_prog_WINDRES+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955 if test -n "$WINDRES"; then
7956 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_WINDRES="${ncn_progname}"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970done
7971
7972fi
7973fi
7974WINDRES=$ac_cv_prog_WINDRES
7975if test -n "$WINDRES"; then
7976 echo "$as_me:$LINENO: result: $WINDRES" >&5
7977echo "${ECHO_T}$WINDRES" >&6
7978else
7979 echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
7981fi
7982
7983 fi
7984 test -n "$ac_cv_prog_WINDRES" && break
7985done
7986
7987if test -z "$ac_cv_prog_WINDRES" ; then
7988 set dummy windres
7989 if test $build = $host ; then
7990 WINDRES="$2"
7991 else
7992 WINDRES="${ncn_tool_prefix}$2"
7993 fi
7994fi
7995
7996
7997
7998if test -n "$WINDMC"; then
7999 ac_cv_prog_WINDMC=$WINDMC
8000elif test -n "$ac_cv_prog_WINDMC"; then
8001 WINDMC=$ac_cv_prog_WINDMC
8002fi
8003
8004if test -n "$ac_cv_prog_WINDMC"; then
8005 for ncn_progname in windmc; do
8006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8007set dummy ${ncn_progname}; ac_word=$2
8008echo "$as_me:$LINENO: checking for $ac_word" >&5
8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010if test "${ac_cv_prog_WINDMC+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 if test -n "$WINDMC"; then
8014 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_WINDMC="${ncn_progname}"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028done
8029
8030fi
8031fi
8032WINDMC=$ac_cv_prog_WINDMC
8033if test -n "$WINDMC"; then
8034 echo "$as_me:$LINENO: result: $WINDMC" >&5
8035echo "${ECHO_T}$WINDMC" >&6
8036else
8037 echo "$as_me:$LINENO: result: no" >&5
8038echo "${ECHO_T}no" >&6
8039fi
8040
8041 done
8042fi
8043
8044for ncn_progname in windmc; do
8045 if test -n "$ncn_tool_prefix"; then
8046 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8047set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8048echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8050if test "${ac_cv_prog_WINDMC+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 if test -n "$WINDMC"; then
8054 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067done
8068done
8069
8070fi
8071fi
8072WINDMC=$ac_cv_prog_WINDMC
8073if test -n "$WINDMC"; then
8074 echo "$as_me:$LINENO: result: $WINDMC" >&5
8075echo "${ECHO_T}$WINDMC" >&6
8076else
8077 echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
8079fi
8080
8081 fi
8082 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8084set dummy ${ncn_progname}; ac_word=$2
8085echo "$as_me:$LINENO: checking for $ac_word" >&5
8086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8087if test "${ac_cv_prog_WINDMC+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 if test -n "$WINDMC"; then
8091 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_WINDMC="${ncn_progname}"
8101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104done
8105done
8106
8107fi
8108fi
8109WINDMC=$ac_cv_prog_WINDMC
8110if test -n "$WINDMC"; then
8111 echo "$as_me:$LINENO: result: $WINDMC" >&5
8112echo "${ECHO_T}$WINDMC" >&6
8113else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116fi
8117
8118 fi
8119 test -n "$ac_cv_prog_WINDMC" && break
8120done
8121
8122if test -z "$ac_cv_prog_WINDMC" ; then
8123 set dummy windmc
8124 if test $build = $host ; then
8125 WINDMC="$2"
8126 else
8127 WINDMC="${ncn_tool_prefix}$2"
8128 fi
8129fi
8130
8131
8132
8133if test -n "$OBJCOPY"; then
8134 ac_cv_prog_OBJCOPY=$OBJCOPY
8135elif test -n "$ac_cv_prog_OBJCOPY"; then
8136 OBJCOPY=$ac_cv_prog_OBJCOPY
8137fi
8138
8139if test -n "$ac_cv_prog_OBJCOPY"; then
8140 for ncn_progname in objcopy; do
8141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8142set dummy ${ncn_progname}; ac_word=$2
8143echo "$as_me:$LINENO: checking for $ac_word" >&5
8144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8145if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147else
8148 if test -n "$OBJCOPY"; then
8149 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8150else
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_OBJCOPY="${ncn_progname}"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162done
8163done
8164
8165fi
8166fi
8167OBJCOPY=$ac_cv_prog_OBJCOPY
8168if test -n "$OBJCOPY"; then
8169 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8170echo "${ECHO_T}$OBJCOPY" >&6
8171else
8172 echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6
8174fi
8175
8176 done
8177fi
8178
8179for ncn_progname in objcopy; do
8180 if test -n "$ncn_tool_prefix"; then
8181 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8182set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8183echo "$as_me:$LINENO: checking for $ac_word" >&5
8184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188 if test -n "$OBJCOPY"; then
8189 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8190else
8191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202done
8203done
8204
8205fi
8206fi
8207OBJCOPY=$ac_cv_prog_OBJCOPY
8208if test -n "$OBJCOPY"; then
8209 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8210echo "${ECHO_T}$OBJCOPY" >&6
8211else
8212 echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6
8214fi
8215
8216 fi
8217 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8219set dummy ${ncn_progname}; ac_word=$2
8220echo "$as_me:$LINENO: checking for $ac_word" >&5
8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8222if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225 if test -n "$OBJCOPY"; then
8226 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8227else
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_OBJCOPY="${ncn_progname}"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239done
8240done
8241
8242fi
8243fi
8244OBJCOPY=$ac_cv_prog_OBJCOPY
8245if test -n "$OBJCOPY"; then
8246 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8247echo "${ECHO_T}$OBJCOPY" >&6
8248else
8249 echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6
8251fi
8252
8253 fi
8254 test -n "$ac_cv_prog_OBJCOPY" && break
8255done
8256
8257if test -z "$ac_cv_prog_OBJCOPY" ; then
8258 set dummy objcopy
8259 if test $build = $host ; then
8260 OBJCOPY="$2"
8261 else
8262 OBJCOPY="${ncn_tool_prefix}$2"
8263 fi
8264fi
8265
8266
8267
8268if test -n "$OBJDUMP"; then
8269 ac_cv_prog_OBJDUMP=$OBJDUMP
8270elif test -n "$ac_cv_prog_OBJDUMP"; then
8271 OBJDUMP=$ac_cv_prog_OBJDUMP
8272fi
8273
8274if test -n "$ac_cv_prog_OBJDUMP"; then
8275 for ncn_progname in objdump; do
8276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8277set dummy ${ncn_progname}; ac_word=$2
8278echo "$as_me:$LINENO: checking for $ac_word" >&5
8279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 if test -n "$OBJDUMP"; then
8284 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_OBJDUMP="${ncn_progname}"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297done
8298done
8299
8300fi
8301fi
8302OBJDUMP=$ac_cv_prog_OBJDUMP
8303if test -n "$OBJDUMP"; then
8304 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8305echo "${ECHO_T}$OBJDUMP" >&6
8306else
8307 echo "$as_me:$LINENO: result: no" >&5
8308echo "${ECHO_T}no" >&6
8309fi
8310
8311 done
8312fi
8313
8314for ncn_progname in objdump; do
8315 if test -n "$ncn_tool_prefix"; then
8316 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8317set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8318echo "$as_me:$LINENO: checking for $ac_word" >&5
8319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8320if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323 if test -n "$OBJDUMP"; then
8324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8325else
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338done
8339
8340fi
8341fi
8342OBJDUMP=$ac_cv_prog_OBJDUMP
8343if test -n "$OBJDUMP"; then
8344 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8345echo "${ECHO_T}$OBJDUMP" >&6
8346else
8347 echo "$as_me:$LINENO: result: no" >&5
8348echo "${ECHO_T}no" >&6
8349fi
8350
8351 fi
8352 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354set dummy ${ncn_progname}; ac_word=$2
8355echo "$as_me:$LINENO: checking for $ac_word" >&5
8356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8357if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360 if test -n "$OBJDUMP"; then
8361 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8362else
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_OBJDUMP="${ncn_progname}"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374done
8375done
8376
8377fi
8378fi
8379OBJDUMP=$ac_cv_prog_OBJDUMP
8380if test -n "$OBJDUMP"; then
8381 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8382echo "${ECHO_T}$OBJDUMP" >&6
8383else
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
8386fi
8387
8388 fi
8389 test -n "$ac_cv_prog_OBJDUMP" && break
8390done
8391
8392if test -z "$ac_cv_prog_OBJDUMP" ; then
8393 set dummy objdump
8394 if test $build = $host ; then
8395 OBJDUMP="$2"
8396 else
8397 OBJDUMP="${ncn_tool_prefix}$2"
8398 fi
8399fi
8400
8401
8402
8403
8404
8405
8406# Target tools.
8407
8408# Check whether --with-build-time-tools or --without-build-time-tools was given.
8409if test "${with_build_time_tools+set}" = set; then
8410 withval="$with_build_time_tools"
8411 case x"$withval" in
8412 x/*) ;;
8413 *)
8414 with_build_time_tools=
8415 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8416echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8417 ;;
8418 esac
8419else
8420 with_build_time_tools=
8421fi;
8422
8423
8424
8425if test -n "$CC_FOR_TARGET"; then
8426 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8427elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8428 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8429fi
8430
8431if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8432 for ncn_progname in cc gcc; do
8433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8434set dummy ${ncn_progname}; ac_word=$2
8435echo "$as_me:$LINENO: checking for $ac_word" >&5
8436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8437if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439else
8440 if test -n "$CC_FOR_TARGET"; then
8441 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8442else
8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8453 fi
8454done
8455done
8456
8457fi
8458fi
8459CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8460if test -n "$CC_FOR_TARGET"; then
8461 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8462echo "${ECHO_T}$CC_FOR_TARGET" >&6
8463else
8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
8466fi
8467
8468 done
8469fi
8470
8471if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8472 for ncn_progname in cc gcc; do
8473 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8474echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8475 if test -x $with_build_time_tools/${ncn_progname}; then
8476 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 break
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484 done
8485fi
8486
8487if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8488 for ncn_progname in cc gcc; do
8489 if test -n "$ncn_target_tool_prefix"; then
8490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8491set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8492echo "$as_me:$LINENO: checking for $ac_word" >&5
8493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497 if test -n "$CC_FOR_TARGET"; then
8498 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8499else
8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511done
8512done
8513
8514fi
8515fi
8516CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8517if test -n "$CC_FOR_TARGET"; then
8518 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8519echo "${ECHO_T}$CC_FOR_TARGET" >&6
8520else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523fi
8524
8525 fi
8526 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8528set dummy ${ncn_progname}; ac_word=$2
8529echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8531if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534 if test -n "$CC_FOR_TARGET"; then
8535 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8536else
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548done
8549done
8550
8551fi
8552fi
8553CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8554if test -n "$CC_FOR_TARGET"; then
8555 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8556echo "${ECHO_T}$CC_FOR_TARGET" >&6
8557else
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
8560fi
8561
8562 fi
8563 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8564 done
8565fi
8566
8567if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8568 set dummy cc gcc
8569 if test $build = $target ; then
8570 CC_FOR_TARGET="$2"
8571 else
8572 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8573 fi
8574else
8575 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8576fi
8577
8578
8579
8580if test -n "$CXX_FOR_TARGET"; then
8581 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8582elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8583 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8584fi
8585
8586if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8587 for ncn_progname in c++ g++ cxx gxx; do
8588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8589set dummy ${ncn_progname}; ac_word=$2
8590echo "$as_me:$LINENO: checking for $ac_word" >&5
8591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8592if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595 if test -n "$CXX_FOR_TARGET"; then
8596 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609done
8610done
8611
8612fi
8613fi
8614CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8615if test -n "$CXX_FOR_TARGET"; then
8616 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8617echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8618else
8619 echo "$as_me:$LINENO: result: no" >&5
8620echo "${ECHO_T}no" >&6
8621fi
8622
8623 done
8624fi
8625
8626if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8627 for ncn_progname in c++ g++ cxx gxx; do
8628 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8629echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8630 if test -x $with_build_time_tools/${ncn_progname}; then
8631 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8632 echo "$as_me:$LINENO: result: yes" >&5
8633echo "${ECHO_T}yes" >&6
8634 break
8635 else
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
8638 fi
8639 done
8640fi
8641
8642if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8643 for ncn_progname in c++ g++ cxx gxx; do
8644 if test -n "$ncn_target_tool_prefix"; then
8645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8647echo "$as_me:$LINENO: checking for $ac_word" >&5
8648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8649if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
8652 if test -n "$CXX_FOR_TARGET"; then
8653 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8654else
8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656for as_dir in $PATH
8657do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666done
8667done
8668
8669fi
8670fi
8671CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8672if test -n "$CXX_FOR_TARGET"; then
8673 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8674echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8675else
8676 echo "$as_me:$LINENO: result: no" >&5
8677echo "${ECHO_T}no" >&6
8678fi
8679
8680 fi
8681 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683set dummy ${ncn_progname}; ac_word=$2
8684echo "$as_me:$LINENO: checking for $ac_word" >&5
8685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8686if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 if test -n "$CXX_FOR_TARGET"; then
8690 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703done
8704done
8705
8706fi
8707fi
8708CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8709if test -n "$CXX_FOR_TARGET"; then
8710 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8711echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8712else
8713 echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6
8715fi
8716
8717 fi
8718 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8719 done
8720fi
8721
8722if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8723 set dummy c++ g++ cxx gxx
8724 if test $build = $target ; then
8725 CXX_FOR_TARGET="$2"
8726 else
8727 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8728 fi
8729else
8730 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8731fi
8732
8733
8734
8735if test -n "$GCC_FOR_TARGET"; then
8736 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8737elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8738 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8739fi
8740
8741if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8742 for ncn_progname in gcc; do
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8744set dummy ${ncn_progname}; ac_word=$2
8745echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 if test -n "$GCC_FOR_TARGET"; then
8751 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8752else
8753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $PATH
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764done
8765done
8766
8767fi
8768fi
8769GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8770if test -n "$GCC_FOR_TARGET"; then
8771 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8772echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8773else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776fi
8777
8778 done
8779fi
8780
8781if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8782 for ncn_progname in gcc; do
8783 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8784echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8785 if test -x $with_build_time_tools/${ncn_progname}; then
8786 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
8789 break
8790 else
8791 echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
8793 fi
8794 done
8795fi
8796
8797if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8798 for ncn_progname in gcc; do
8799 if test -n "$ncn_target_tool_prefix"; then
8800 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8801set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8802echo "$as_me:$LINENO: checking for $ac_word" >&5
8803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8804if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807 if test -n "$GCC_FOR_TARGET"; then
8808 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8809else
8810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811for as_dir in $PATH
8812do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8820 fi
8821done
8822done
8823
8824fi
8825fi
8826GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8827if test -n "$GCC_FOR_TARGET"; then
8828 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8829echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8830else
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
8833fi
8834
8835 fi
8836 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8838set dummy ${ncn_progname}; ac_word=$2
8839echo "$as_me:$LINENO: checking for $ac_word" >&5
8840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8841if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843else
8844 if test -n "$GCC_FOR_TARGET"; then
8845 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8846else
8847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848for as_dir in $PATH
8849do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8854 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858done
8859done
8860
8861fi
8862fi
8863GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8864if test -n "$GCC_FOR_TARGET"; then
8865 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8866echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8867else
8868 echo "$as_me:$LINENO: result: no" >&5
8869echo "${ECHO_T}no" >&6
8870fi
8871
8872 fi
8873 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8874 done
8875fi
8876
8877if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8878 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8879else
8880 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8881fi
8882
8883
8884
8885if test -n "$GCJ_FOR_TARGET"; then
8886 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8887elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8888 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8889fi
8890
8891if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8892 for ncn_progname in gcj; do
8893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8894set dummy ${ncn_progname}; ac_word=$2
8895echo "$as_me:$LINENO: checking for $ac_word" >&5
8896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899else
8900 if test -n "$GCJ_FOR_TARGET"; then
8901 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8902else
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
8917fi
8918fi
8919GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8920if test -n "$GCJ_FOR_TARGET"; then
8921 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8922echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8923else
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
8926fi
8927
8928 done
8929fi
8930
8931if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8932 for ncn_progname in gcj; do
8933 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8934echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8935 if test -x $with_build_time_tools/${ncn_progname}; then
8936 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8937 echo "$as_me:$LINENO: result: yes" >&5
8938echo "${ECHO_T}yes" >&6
8939 break
8940 else
8941 echo "$as_me:$LINENO: result: no" >&5
8942echo "${ECHO_T}no" >&6
8943 fi
8944 done
8945fi
8946
8947if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8948 for ncn_progname in gcj; do
8949 if test -n "$ncn_target_tool_prefix"; then
8950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8951set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8952echo "$as_me:$LINENO: checking for $ac_word" >&5
8953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8954if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956else
8957 if test -n "$GCJ_FOR_TARGET"; then
8958 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8959else
8960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961for as_dir in $PATH
8962do
8963 IFS=$as_save_IFS
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8967 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8969 break 2
8970 fi
8971done
8972done
8973
8974fi
8975fi
8976GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8977if test -n "$GCJ_FOR_TARGET"; then
8978 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8979echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8980else
8981 echo "$as_me:$LINENO: result: no" >&5
8982echo "${ECHO_T}no" >&6
8983fi
8984
8985 fi
8986 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8988set dummy ${ncn_progname}; ac_word=$2
8989echo "$as_me:$LINENO: checking for $ac_word" >&5
8990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8991if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993else
8994 if test -n "$GCJ_FOR_TARGET"; then
8995 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008done
9009done
9010
9011fi
9012fi
9013GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9014if test -n "$GCJ_FOR_TARGET"; then
9015 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9016echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9017else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020fi
9021
9022 fi
9023 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9024 done
9025fi
9026
9027if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9028 set dummy gcj
9029 if test $build = $target ; then
9030 GCJ_FOR_TARGET="$2"
9031 else
9032 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9033 fi
9034else
9035 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9036fi
9037
9038
9039
9040if test -n "$GFORTRAN_FOR_TARGET"; then
9041 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9042elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9043 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9044fi
9045
9046if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9047 for ncn_progname in gfortran; do
9048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9049set dummy ${ncn_progname}; ac_word=$2
9050echo "$as_me:$LINENO: checking for $ac_word" >&5
9051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9052if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054else
9055 if test -n "$GFORTRAN_FOR_TARGET"; then
9056 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9057else
9058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059for as_dir in $PATH
9060do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9065 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9068 fi
9069done
9070done
9071
9072fi
9073fi
9074GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9075if test -n "$GFORTRAN_FOR_TARGET"; then
9076 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9077echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9078else
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
9081fi
9082
9083 done
9084fi
9085
9086if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9087 for ncn_progname in gfortran; do
9088 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9089echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9090 if test -x $with_build_time_tools/${ncn_progname}; then
9091 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9092 echo "$as_me:$LINENO: result: yes" >&5
9093echo "${ECHO_T}yes" >&6
9094 break
9095 else
9096 echo "$as_me:$LINENO: result: no" >&5
9097echo "${ECHO_T}no" >&6
9098 fi
9099 done
9100fi
9101
9102if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9103 for ncn_progname in gfortran; do
9104 if test -n "$ncn_target_tool_prefix"; then
9105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9106set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9107echo "$as_me:$LINENO: checking for $ac_word" >&5
9108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9109if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111else
9112 if test -n "$GFORTRAN_FOR_TARGET"; then
9113 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9114else
9115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116for as_dir in $PATH
9117do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9122 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9125 fi
9126done
9127done
9128
9129fi
9130fi
9131GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9132if test -n "$GFORTRAN_FOR_TARGET"; then
9133 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9134echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9135else
9136 echo "$as_me:$LINENO: result: no" >&5
9137echo "${ECHO_T}no" >&6
9138fi
9139
9140 fi
9141 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9143set dummy ${ncn_progname}; ac_word=$2
9144echo "$as_me:$LINENO: checking for $ac_word" >&5
9145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9146if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148else
9149 if test -n "$GFORTRAN_FOR_TARGET"; then
9150 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9151else
9152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153for as_dir in $PATH
9154do
9155 IFS=$as_save_IFS
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9159 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 break 2
9162 fi
9163done
9164done
9165
9166fi
9167fi
9168GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9169if test -n "$GFORTRAN_FOR_TARGET"; then
9170 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9171echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9172else
9173 echo "$as_me:$LINENO: result: no" >&5
9174echo "${ECHO_T}no" >&6
9175fi
9176
9177 fi
9178 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9179 done
9180fi
9181
9182if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9183 set dummy gfortran
9184 if test $build = $target ; then
9185 GFORTRAN_FOR_TARGET="$2"
9186 else
9187 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9188 fi
9189else
9190 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9191fi
9192
9193
9194
9195cat > conftest.c << \EOF
9196#ifdef __GNUC__
9197 gcc_yay;
9198#endif
9199EOF
9200if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9201 have_gcc_for_target=yes
9202else
9203 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9204 have_gcc_for_target=no
9205fi
9206rm conftest.c
9207
9208
9209
9210
9211if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9212 if test -n "$with_build_time_tools"; then
9213 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9214echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
9215 if test -x $with_build_time_tools/ar; then
9216 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9217 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9218 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9219echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224 elif test $build != $host && test $have_gcc_for_target = yes; then
9225 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9226 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9227 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9228 fi
9229fi
9230if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9231 # Extract the first word of "ar", so it can be a program name with args.
9232set dummy ar; ac_word=$2
9233echo "$as_me:$LINENO: checking for $ac_word" >&5
9234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9235if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238 case $AR_FOR_TARGET in
9239 [\\/]* | ?:[\\/]*)
9240 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9241 ;;
9242 *)
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244for as_dir in $gcc_cv_tool_dirs
9245do
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9250 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9253 fi
9254done
9255done
9256
9257 ;;
9258esac
9259fi
9260AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9261
9262if test -n "$AR_FOR_TARGET"; then
9263 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9264echo "${ECHO_T}$AR_FOR_TARGET" >&6
9265else
9266 echo "$as_me:$LINENO: result: no" >&5
9267echo "${ECHO_T}no" >&6
9268fi
9269
9270fi
9271if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9272
9273
9274if test -n "$AR_FOR_TARGET"; then
9275 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9276elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9277 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9278fi
9279
9280if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9281 for ncn_progname in ar; do
9282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9283set dummy ${ncn_progname}; ac_word=$2
9284echo "$as_me:$LINENO: checking for $ac_word" >&5
9285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9286if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 if test -n "$AR_FOR_TARGET"; then
9290 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9291else
9292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293for as_dir in $PATH
9294do
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9302 fi
9303done
9304done
9305
9306fi
9307fi
9308AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9309if test -n "$AR_FOR_TARGET"; then
9310 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9311echo "${ECHO_T}$AR_FOR_TARGET" >&6
9312else
9313 echo "$as_me:$LINENO: result: no" >&5
9314echo "${ECHO_T}no" >&6
9315fi
9316
9317 done
9318fi
9319
9320if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9321 for ncn_progname in ar; do
9322 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9323echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9324 if test -x $with_build_time_tools/${ncn_progname}; then
9325 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9326 echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
9328 break
9329 else
9330 echo "$as_me:$LINENO: result: no" >&5
9331echo "${ECHO_T}no" >&6
9332 fi
9333 done
9334fi
9335
9336if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9337 for ncn_progname in ar; do
9338 if test -n "$ncn_target_tool_prefix"; then
9339 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9340set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9341echo "$as_me:$LINENO: checking for $ac_word" >&5
9342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9343if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345else
9346 if test -n "$AR_FOR_TARGET"; then
9347 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9348else
9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9356 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9359 fi
9360done
9361done
9362
9363fi
9364fi
9365AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9366if test -n "$AR_FOR_TARGET"; then
9367 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9368echo "${ECHO_T}$AR_FOR_TARGET" >&6
9369else
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
9372fi
9373
9374 fi
9375 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9377set dummy ${ncn_progname}; ac_word=$2
9378echo "$as_me:$LINENO: checking for $ac_word" >&5
9379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9380if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9382else
9383 if test -n "$AR_FOR_TARGET"; then
9384 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9385else
9386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387for as_dir in $PATH
9388do
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9393 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 break 2
9396 fi
9397done
9398done
9399
9400fi
9401fi
9402AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9403if test -n "$AR_FOR_TARGET"; then
9404 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9405echo "${ECHO_T}$AR_FOR_TARGET" >&6
9406else
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
9409fi
9410
9411 fi
9412 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9413 done
9414fi
9415
9416if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9417 set dummy ar
9418 if test $build = $target ; then
9419 AR_FOR_TARGET="$2"
9420 else
9421 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9422 fi
9423else
9424 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9425fi
9426
9427else
9428 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9429fi
9430
9431
9432
9433
9434if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9435 if test -n "$with_build_time_tools"; then
9436 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9437echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9438 if test -x $with_build_time_tools/as; then
9439 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9440 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9441 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9442echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9443 else
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
9446 fi
9447 elif test $build != $host && test $have_gcc_for_target = yes; then
9448 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9449 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9450 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9451 fi
9452fi
9453if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9454 # Extract the first word of "as", so it can be a program name with args.
9455set dummy as; ac_word=$2
9456echo "$as_me:$LINENO: checking for $ac_word" >&5
9457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9458if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461 case $AS_FOR_TARGET in
9462 [\\/]* | ?:[\\/]*)
9463 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9464 ;;
9465 *)
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467for as_dir in $gcc_cv_tool_dirs
9468do
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9473 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9476 fi
9477done
9478done
9479
9480 ;;
9481esac
9482fi
9483AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9484
9485if test -n "$AS_FOR_TARGET"; then
9486 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9487echo "${ECHO_T}$AS_FOR_TARGET" >&6
9488else
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
9491fi
9492
9493fi
9494if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9495
9496
9497if test -n "$AS_FOR_TARGET"; then
9498 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9499elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9500 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9501fi
9502
9503if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9504 for ncn_progname in as; do
9505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9506set dummy ${ncn_progname}; ac_word=$2
9507echo "$as_me:$LINENO: checking for $ac_word" >&5
9508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9509if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511else
9512 if test -n "$AS_FOR_TARGET"; then
9513 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9514else
9515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516for as_dir in $PATH
9517do
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9522 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 break 2
9525 fi
9526done
9527done
9528
9529fi
9530fi
9531AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9532if test -n "$AS_FOR_TARGET"; then
9533 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9534echo "${ECHO_T}$AS_FOR_TARGET" >&6
9535else
9536 echo "$as_me:$LINENO: result: no" >&5
9537echo "${ECHO_T}no" >&6
9538fi
9539
9540 done
9541fi
9542
9543if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9544 for ncn_progname in as; do
9545 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9546echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9547 if test -x $with_build_time_tools/${ncn_progname}; then
9548 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9549 echo "$as_me:$LINENO: result: yes" >&5
9550echo "${ECHO_T}yes" >&6
9551 break
9552 else
9553 echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
9555 fi
9556 done
9557fi
9558
9559if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9560 for ncn_progname in as; do
9561 if test -n "$ncn_target_tool_prefix"; then
9562 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9564echo "$as_me:$LINENO: checking for $ac_word" >&5
9565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9566if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568else
9569 if test -n "$AS_FOR_TARGET"; then
9570 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9571else
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
9578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9579 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9582 fi
9583done
9584done
9585
9586fi
9587fi
9588AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9589if test -n "$AS_FOR_TARGET"; then
9590 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9591echo "${ECHO_T}$AS_FOR_TARGET" >&6
9592else
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
9595fi
9596
9597 fi
9598 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9600set dummy ${ncn_progname}; ac_word=$2
9601echo "$as_me:$LINENO: checking for $ac_word" >&5
9602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9603if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605else
9606 if test -n "$AS_FOR_TARGET"; then
9607 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9608else
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9616 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9619 fi
9620done
9621done
9622
9623fi
9624fi
9625AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9626if test -n "$AS_FOR_TARGET"; then
9627 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9628echo "${ECHO_T}$AS_FOR_TARGET" >&6
9629else
9630 echo "$as_me:$LINENO: result: no" >&5
9631echo "${ECHO_T}no" >&6
9632fi
9633
9634 fi
9635 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9636 done
9637fi
9638
9639if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9640 set dummy as
9641 if test $build = $target ; then
9642 AS_FOR_TARGET="$2"
9643 else
9644 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9645 fi
9646else
9647 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9648fi
9649
9650else
9651 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9652fi
9653
9654
9655
9656
9657if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9658 if test -n "$with_build_time_tools"; then
9659 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9660echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9661 if test -x $with_build_time_tools/dlltool; then
9662 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9663 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9664 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9665echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9666 else
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
9669 fi
9670 elif test $build != $host && test $have_gcc_for_target = yes; then
9671 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9672 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9673 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9674 fi
9675fi
9676if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9677 # Extract the first word of "dlltool", so it can be a program name with args.
9678set dummy dlltool; ac_word=$2
9679echo "$as_me:$LINENO: checking for $ac_word" >&5
9680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9681if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683else
9684 case $DLLTOOL_FOR_TARGET in
9685 [\\/]* | ?:[\\/]*)
9686 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9687 ;;
9688 *)
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690for as_dir in $gcc_cv_tool_dirs
9691do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9696 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9699 fi
9700done
9701done
9702
9703 ;;
9704esac
9705fi
9706DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9707
9708if test -n "$DLLTOOL_FOR_TARGET"; then
9709 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9710echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9711else
9712 echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6
9714fi
9715
9716fi
9717if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9718
9719
9720if test -n "$DLLTOOL_FOR_TARGET"; then
9721 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9722elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9723 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9724fi
9725
9726if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9727 for ncn_progname in dlltool; do
9728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9729set dummy ${ncn_progname}; ac_word=$2
9730echo "$as_me:$LINENO: checking for $ac_word" >&5
9731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9732if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734else
9735 if test -n "$DLLTOOL_FOR_TARGET"; then
9736 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9745 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749done
9750done
9751
9752fi
9753fi
9754DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9755if test -n "$DLLTOOL_FOR_TARGET"; then
9756 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9757echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9758else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761fi
9762
9763 done
9764fi
9765
9766if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9767 for ncn_progname in dlltool; do
9768 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9769echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9770 if test -x $with_build_time_tools/${ncn_progname}; then
9771 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9772 echo "$as_me:$LINENO: result: yes" >&5
9773echo "${ECHO_T}yes" >&6
9774 break
9775 else
9776 echo "$as_me:$LINENO: result: no" >&5
9777echo "${ECHO_T}no" >&6
9778 fi
9779 done
9780fi
9781
9782if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9783 for ncn_progname in dlltool; do
9784 if test -n "$ncn_target_tool_prefix"; then
9785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9786set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9787echo "$as_me:$LINENO: checking for $ac_word" >&5
9788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9789if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792 if test -n "$DLLTOOL_FOR_TARGET"; then
9793 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9794else
9795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
9801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9802 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806done
9807done
9808
9809fi
9810fi
9811DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9812if test -n "$DLLTOOL_FOR_TARGET"; then
9813 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9814echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9815else
9816 echo "$as_me:$LINENO: result: no" >&5
9817echo "${ECHO_T}no" >&6
9818fi
9819
9820 fi
9821 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9823set dummy ${ncn_progname}; ac_word=$2
9824echo "$as_me:$LINENO: checking for $ac_word" >&5
9825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9826if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829 if test -n "$DLLTOOL_FOR_TARGET"; then
9830 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9831else
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9842 fi
9843done
9844done
9845
9846fi
9847fi
9848DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9849if test -n "$DLLTOOL_FOR_TARGET"; then
9850 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9851echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9852else
9853 echo "$as_me:$LINENO: result: no" >&5
9854echo "${ECHO_T}no" >&6
9855fi
9856
9857 fi
9858 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9859 done
9860fi
9861
9862if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9863 set dummy dlltool
9864 if test $build = $target ; then
9865 DLLTOOL_FOR_TARGET="$2"
9866 else
9867 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9868 fi
9869else
9870 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9871fi
9872
9873else
9874 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9875fi
9876
9877
9878
9879
9880if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9881 if test -n "$with_build_time_tools"; then
9882 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9883echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9884 if test -x $with_build_time_tools/ld; then
9885 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9886 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9887 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9888echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893 elif test $build != $host && test $have_gcc_for_target = yes; then
9894 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9895 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9896 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9897 fi
9898fi
9899if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9900 # Extract the first word of "ld", so it can be a program name with args.
9901set dummy ld; ac_word=$2
9902echo "$as_me:$LINENO: checking for $ac_word" >&5
9903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9904if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907 case $LD_FOR_TARGET in
9908 [\\/]* | ?:[\\/]*)
9909 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9910 ;;
9911 *)
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $gcc_cv_tool_dirs
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923done
9924done
9925
9926 ;;
9927esac
9928fi
9929LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9930
9931if test -n "$LD_FOR_TARGET"; then
9932 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9933echo "${ECHO_T}$LD_FOR_TARGET" >&6
9934else
9935 echo "$as_me:$LINENO: result: no" >&5
9936echo "${ECHO_T}no" >&6
9937fi
9938
9939fi
9940if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9941
9942
9943if test -n "$LD_FOR_TARGET"; then
9944 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9945elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9946 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9947fi
9948
9949if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9950 for ncn_progname in ld; do
9951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9952set dummy ${ncn_progname}; ac_word=$2
9953echo "$as_me:$LINENO: checking for $ac_word" >&5
9954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9955if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957else
9958 if test -n "$LD_FOR_TARGET"; then
9959 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9960else
9961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962for as_dir in $PATH
9963do
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9971 fi
9972done
9973done
9974
9975fi
9976fi
9977LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9978if test -n "$LD_FOR_TARGET"; then
9979 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9980echo "${ECHO_T}$LD_FOR_TARGET" >&6
9981else
9982 echo "$as_me:$LINENO: result: no" >&5
9983echo "${ECHO_T}no" >&6
9984fi
9985
9986 done
9987fi
9988
9989if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9990 for ncn_progname in ld; do
9991 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9992echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9993 if test -x $with_build_time_tools/${ncn_progname}; then
9994 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9995 echo "$as_me:$LINENO: result: yes" >&5
9996echo "${ECHO_T}yes" >&6
9997 break
9998 else
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
10001 fi
10002 done
10003fi
10004
10005if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10006 for ncn_progname in ld; do
10007 if test -n "$ncn_target_tool_prefix"; then
10008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10009set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10010echo "$as_me:$LINENO: checking for $ac_word" >&5
10011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10012if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015 if test -n "$LD_FOR_TARGET"; then
10016 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10017else
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029done
10030done
10031
10032fi
10033fi
10034LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10035if test -n "$LD_FOR_TARGET"; then
10036 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10037echo "${ECHO_T}$LD_FOR_TARGET" >&6
10038else
10039 echo "$as_me:$LINENO: result: no" >&5
10040echo "${ECHO_T}no" >&6
10041fi
10042
10043 fi
10044 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10046set dummy ${ncn_progname}; ac_word=$2
10047echo "$as_me:$LINENO: checking for $ac_word" >&5
10048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10049if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051else
10052 if test -n "$LD_FOR_TARGET"; then
10053 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10054else
10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10065 fi
10066done
10067done
10068
10069fi
10070fi
10071LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10072if test -n "$LD_FOR_TARGET"; then
10073 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10074echo "${ECHO_T}$LD_FOR_TARGET" >&6
10075else
10076 echo "$as_me:$LINENO: result: no" >&5
10077echo "${ECHO_T}no" >&6
10078fi
10079
10080 fi
10081 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10082 done
10083fi
10084
10085if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10086 set dummy ld
10087 if test $build = $target ; then
10088 LD_FOR_TARGET="$2"
10089 else
10090 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10091 fi
10092else
10093 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10094fi
10095
10096else
10097 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10098fi
10099
10100
10101
10102
10103if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10104 if test -n "$with_build_time_tools"; then
10105 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10106echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
10107 if test -x $with_build_time_tools/lipo; then
10108 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10109 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10110 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10111echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
10112 else
10113 echo "$as_me:$LINENO: result: no" >&5
10114echo "${ECHO_T}no" >&6
10115 fi
10116 elif test $build != $host && test $have_gcc_for_target = yes; then
10117 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10118 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10119 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10120 fi
10121fi
10122if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10123 # Extract the first word of "lipo", so it can be a program name with args.
10124set dummy lipo; ac_word=$2
10125echo "$as_me:$LINENO: checking for $ac_word" >&5
10126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10127if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129else
10130 case $LIPO_FOR_TARGET in
10131 [\\/]* | ?:[\\/]*)
10132 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10133 ;;
10134 *)
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $gcc_cv_tool_dirs
10137do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146done
10147done
10148
10149 ;;
10150esac
10151fi
10152LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10153
10154if test -n "$LIPO_FOR_TARGET"; then
10155 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10156echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10157else
10158 echo "$as_me:$LINENO: result: no" >&5
10159echo "${ECHO_T}no" >&6
10160fi
10161
10162fi
10163if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10164
10165
10166if test -n "$LIPO_FOR_TARGET"; then
10167 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10168elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10169 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10170fi
10171
10172if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10173 for ncn_progname in lipo; do
10174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10175set dummy ${ncn_progname}; ac_word=$2
10176echo "$as_me:$LINENO: checking for $ac_word" >&5
10177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10178if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180else
10181 if test -n "$LIPO_FOR_TARGET"; then
10182 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10183else
10184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185for as_dir in $PATH
10186do
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195done
10196done
10197
10198fi
10199fi
10200LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10201if test -n "$LIPO_FOR_TARGET"; then
10202 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10203echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10204else
10205 echo "$as_me:$LINENO: result: no" >&5
10206echo "${ECHO_T}no" >&6
10207fi
10208
10209 done
10210fi
10211
10212if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10213 for ncn_progname in lipo; do
10214 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10215echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10216 if test -x $with_build_time_tools/${ncn_progname}; then
10217 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10218 echo "$as_me:$LINENO: result: yes" >&5
10219echo "${ECHO_T}yes" >&6
10220 break
10221 else
10222 echo "$as_me:$LINENO: result: no" >&5
10223echo "${ECHO_T}no" >&6
10224 fi
10225 done
10226fi
10227
10228if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10229 for ncn_progname in lipo; do
10230 if test -n "$ncn_target_tool_prefix"; then
10231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10232set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10233echo "$as_me:$LINENO: checking for $ac_word" >&5
10234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10235if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238 if test -n "$LIPO_FOR_TARGET"; then
10239 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10240else
10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252done
10253done
10254
10255fi
10256fi
10257LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10258if test -n "$LIPO_FOR_TARGET"; then
10259 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10260echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10261else
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
10264fi
10265
10266 fi
10267 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10269set dummy ${ncn_progname}; ac_word=$2
10270echo "$as_me:$LINENO: checking for $ac_word" >&5
10271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10272if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
10275 if test -n "$LIPO_FOR_TARGET"; then
10276 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10277else
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10288 fi
10289done
10290done
10291
10292fi
10293fi
10294LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10295if test -n "$LIPO_FOR_TARGET"; then
10296 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10297echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10298else
10299 echo "$as_me:$LINENO: result: no" >&5
10300echo "${ECHO_T}no" >&6
10301fi
10302
10303 fi
10304 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10305 done
10306fi
10307
10308if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10309 set dummy lipo
10310 if test $build = $target ; then
10311 LIPO_FOR_TARGET="$2"
10312 else
10313 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10314 fi
10315else
10316 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10317fi
10318
10319else
10320 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10321fi
10322
10323
10324
10325
10326if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10327 if test -n "$with_build_time_tools"; then
10328 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10329echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10330 if test -x $with_build_time_tools/nm; then
10331 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10332 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10333 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10334echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10335 else
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
10338 fi
10339 elif test $build != $host && test $have_gcc_for_target = yes; then
10340 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10341 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10342 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10343 fi
10344fi
10345if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10346 # Extract the first word of "nm", so it can be a program name with args.
10347set dummy nm; ac_word=$2
10348echo "$as_me:$LINENO: checking for $ac_word" >&5
10349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10350if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 case $NM_FOR_TARGET in
10354 [\\/]* | ?:[\\/]*)
10355 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10356 ;;
10357 *)
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359for as_dir in $gcc_cv_tool_dirs
10360do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10368 fi
10369done
10370done
10371
10372 ;;
10373esac
10374fi
10375NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10376
10377if test -n "$NM_FOR_TARGET"; then
10378 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10379echo "${ECHO_T}$NM_FOR_TARGET" >&6
10380else
10381 echo "$as_me:$LINENO: result: no" >&5
10382echo "${ECHO_T}no" >&6
10383fi
10384
10385fi
10386if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10387
10388
10389if test -n "$NM_FOR_TARGET"; then
10390 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10391elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10392 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10393fi
10394
10395if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10396 for ncn_progname in nm; do
10397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10398set dummy ${ncn_progname}; ac_word=$2
10399echo "$as_me:$LINENO: checking for $ac_word" >&5
10400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10401if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 if test -n "$NM_FOR_TARGET"; then
10405 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10417 fi
10418done
10419done
10420
10421fi
10422fi
10423NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10424if test -n "$NM_FOR_TARGET"; then
10425 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10426echo "${ECHO_T}$NM_FOR_TARGET" >&6
10427else
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
10430fi
10431
10432 done
10433fi
10434
10435if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10436 for ncn_progname in nm; do
10437 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10438echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10439 if test -x $with_build_time_tools/${ncn_progname}; then
10440 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10441 echo "$as_me:$LINENO: result: yes" >&5
10442echo "${ECHO_T}yes" >&6
10443 break
10444 else
10445 echo "$as_me:$LINENO: result: no" >&5
10446echo "${ECHO_T}no" >&6
10447 fi
10448 done
10449fi
10450
10451if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10452 for ncn_progname in nm; do
10453 if test -n "$ncn_target_tool_prefix"; then
10454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10456echo "$as_me:$LINENO: checking for $ac_word" >&5
10457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10458if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460else
10461 if test -n "$NM_FOR_TARGET"; then
10462 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10463else
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10471 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476done
10477
10478fi
10479fi
10480NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10481if test -n "$NM_FOR_TARGET"; then
10482 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10483echo "${ECHO_T}$NM_FOR_TARGET" >&6
10484else
10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
10487fi
10488
10489 fi
10490 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10492set dummy ${ncn_progname}; ac_word=$2
10493echo "$as_me:$LINENO: checking for $ac_word" >&5
10494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10495if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497else
10498 if test -n "$NM_FOR_TARGET"; then
10499 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513done
10514
10515fi
10516fi
10517NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10518if test -n "$NM_FOR_TARGET"; then
10519 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10520echo "${ECHO_T}$NM_FOR_TARGET" >&6
10521else
10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
10524fi
10525
10526 fi
10527 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10528 done
10529fi
10530
10531if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10532 set dummy nm
10533 if test $build = $target ; then
10534 NM_FOR_TARGET="$2"
10535 else
10536 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10537 fi
10538else
10539 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10540fi
10541
10542else
10543 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10544fi
10545
10546
10547
10548
10549if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10550 if test -n "$with_build_time_tools"; then
10551 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10552echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10553 if test -x $with_build_time_tools/objdump; then
10554 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10555 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10556 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10557echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10558 else
10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
10561 fi
10562 elif test $build != $host && test $have_gcc_for_target = yes; then
10563 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10564 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10565 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10566 fi
10567fi
10568if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10569 # Extract the first word of "objdump", so it can be a program name with args.
10570set dummy objdump; ac_word=$2
10571echo "$as_me:$LINENO: checking for $ac_word" >&5
10572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10573if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 case $OBJDUMP_FOR_TARGET in
10577 [\\/]* | ?:[\\/]*)
10578 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10579 ;;
10580 *)
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $gcc_cv_tool_dirs
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592done
10593done
10594
10595 ;;
10596esac
10597fi
10598OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10599
10600if test -n "$OBJDUMP_FOR_TARGET"; then
10601 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10602echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10603else
10604 echo "$as_me:$LINENO: result: no" >&5
10605echo "${ECHO_T}no" >&6
10606fi
10607
10608fi
10609if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10610
10611
10612if test -n "$OBJDUMP_FOR_TARGET"; then
10613 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10614elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10615 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10616fi
10617
10618if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10619 for ncn_progname in objdump; do
10620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10621set dummy ${ncn_progname}; ac_word=$2
10622echo "$as_me:$LINENO: checking for $ac_word" >&5
10623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10624if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 if test -n "$OBJDUMP_FOR_TARGET"; then
10628 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641done
10642done
10643
10644fi
10645fi
10646OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10647if test -n "$OBJDUMP_FOR_TARGET"; then
10648 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10649echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10650else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655 done
10656fi
10657
10658if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10659 for ncn_progname in objdump; do
10660 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10661echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10662 if test -x $with_build_time_tools/${ncn_progname}; then
10663 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10664 echo "$as_me:$LINENO: result: yes" >&5
10665echo "${ECHO_T}yes" >&6
10666 break
10667 else
10668 echo "$as_me:$LINENO: result: no" >&5
10669echo "${ECHO_T}no" >&6
10670 fi
10671 done
10672fi
10673
10674if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10675 for ncn_progname in objdump; do
10676 if test -n "$ncn_target_tool_prefix"; then
10677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10678set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10679echo "$as_me:$LINENO: checking for $ac_word" >&5
10680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10681if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683else
10684 if test -n "$OBJDUMP_FOR_TARGET"; then
10685 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10686else
10687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688for as_dir in $PATH
10689do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698done
10699done
10700
10701fi
10702fi
10703OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10704if test -n "$OBJDUMP_FOR_TARGET"; then
10705 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10706echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10707else
10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
10710fi
10711
10712 fi
10713 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10715set dummy ${ncn_progname}; ac_word=$2
10716echo "$as_me:$LINENO: checking for $ac_word" >&5
10717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10718if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720else
10721 if test -n "$OBJDUMP_FOR_TARGET"; then
10722 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10723else
10724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725for as_dir in $PATH
10726do
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10731 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10734 fi
10735done
10736done
10737
10738fi
10739fi
10740OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10741if test -n "$OBJDUMP_FOR_TARGET"; then
10742 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10743echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10744else
10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
10747fi
10748
10749 fi
10750 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10751 done
10752fi
10753
10754if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10755 set dummy objdump
10756 if test $build = $target ; then
10757 OBJDUMP_FOR_TARGET="$2"
10758 else
10759 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10760 fi
10761else
10762 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10763fi
10764
10765else
10766 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10767fi
10768
10769
10770
10771
10772if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10773 if test -n "$with_build_time_tools"; then
10774 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10775echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10776 if test -x $with_build_time_tools/ranlib; then
10777 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10778 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10779 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10780echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10781 else
10782 echo "$as_me:$LINENO: result: no" >&5
10783echo "${ECHO_T}no" >&6
10784 fi
10785 elif test $build != $host && test $have_gcc_for_target = yes; then
10786 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10787 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10788 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10789 fi
10790fi
10791if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10792 # Extract the first word of "ranlib", so it can be a program name with args.
10793set dummy ranlib; ac_word=$2
10794echo "$as_me:$LINENO: checking for $ac_word" >&5
10795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 case $RANLIB_FOR_TARGET in
10800 [\\/]* | ?:[\\/]*)
10801 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10802 ;;
10803 *)
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805for as_dir in $gcc_cv_tool_dirs
10806do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815done
10816done
10817
10818 ;;
10819esac
10820fi
10821RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10822
10823if test -n "$RANLIB_FOR_TARGET"; then
10824 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10825echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10826else
10827 echo "$as_me:$LINENO: result: no" >&5
10828echo "${ECHO_T}no" >&6
10829fi
10830
10831fi
10832if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10833
10834
10835if test -n "$RANLIB_FOR_TARGET"; then
10836 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10837elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10838 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10839fi
10840
10841if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10842 for ncn_progname in ranlib; do
10843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10844set dummy ${ncn_progname}; ac_word=$2
10845echo "$as_me:$LINENO: checking for $ac_word" >&5
10846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10847if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 if test -n "$RANLIB_FOR_TARGET"; then
10851 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10852else
10853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $PATH
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10860 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864done
10865done
10866
10867fi
10868fi
10869RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10870if test -n "$RANLIB_FOR_TARGET"; then
10871 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10872echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10873else
10874 echo "$as_me:$LINENO: result: no" >&5
10875echo "${ECHO_T}no" >&6
10876fi
10877
10878 done
10879fi
10880
10881if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10882 for ncn_progname in ranlib; do
10883 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10884echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10885 if test -x $with_build_time_tools/${ncn_progname}; then
10886 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10887 echo "$as_me:$LINENO: result: yes" >&5
10888echo "${ECHO_T}yes" >&6
10889 break
10890 else
10891 echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6
10893 fi
10894 done
10895fi
10896
10897if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10898 for ncn_progname in ranlib; do
10899 if test -n "$ncn_target_tool_prefix"; then
10900 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10901set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10902echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906else
10907 if test -n "$RANLIB_FOR_TARGET"; then
10908 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10909else
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921done
10922done
10923
10924fi
10925fi
10926RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10927if test -n "$RANLIB_FOR_TARGET"; then
10928 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10929echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10930else
10931 echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6
10933fi
10934
10935 fi
10936 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10938set dummy ${ncn_progname}; ac_word=$2
10939echo "$as_me:$LINENO: checking for $ac_word" >&5
10940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10941if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943else
10944 if test -n "$RANLIB_FOR_TARGET"; then
10945 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10946else
10947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10954 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10957 fi
10958done
10959done
10960
10961fi
10962fi
10963RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10964if test -n "$RANLIB_FOR_TARGET"; then
10965 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10966echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10967else
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
10970fi
10971
10972 fi
10973 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10974 done
10975fi
10976
10977if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10978 set dummy ranlib
10979 if test $build = $target ; then
10980 RANLIB_FOR_TARGET="$2"
10981 else
10982 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10983 fi
10984else
10985 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10986fi
10987
10988else
10989 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10990fi
10991
10992
10993
10994
10995if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10996 if test -n "$with_build_time_tools"; then
10997 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10998echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10999 if test -x $with_build_time_tools/strip; then
11000 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11001 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11002 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11003echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
11004 else
11005 echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6
11007 fi
11008 elif test $build != $host && test $have_gcc_for_target = yes; then
11009 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11010 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11011 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11012 fi
11013fi
11014if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11015 # Extract the first word of "strip", so it can be a program name with args.
11016set dummy strip; ac_word=$2
11017echo "$as_me:$LINENO: checking for $ac_word" >&5
11018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11019if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022 case $STRIP_FOR_TARGET in
11023 [\\/]* | ?:[\\/]*)
11024 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11025 ;;
11026 *)
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $gcc_cv_tool_dirs
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11037 fi
11038done
11039done
11040
11041 ;;
11042esac
11043fi
11044STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11045
11046if test -n "$STRIP_FOR_TARGET"; then
11047 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11048echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11049else
11050 echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6
11052fi
11053
11054fi
11055if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11056
11057
11058if test -n "$STRIP_FOR_TARGET"; then
11059 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11060elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11061 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11062fi
11063
11064if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11065 for ncn_progname in strip; do
11066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11067set dummy ${ncn_progname}; ac_word=$2
11068echo "$as_me:$LINENO: checking for $ac_word" >&5
11069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11070if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 if test -n "$STRIP_FOR_TARGET"; then
11074 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087done
11088done
11089
11090fi
11091fi
11092STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11093if test -n "$STRIP_FOR_TARGET"; then
11094 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11095echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11096else
11097 echo "$as_me:$LINENO: result: no" >&5
11098echo "${ECHO_T}no" >&6
11099fi
11100
11101 done
11102fi
11103
11104if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11105 for ncn_progname in strip; do
11106 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11107echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11108 if test -x $with_build_time_tools/${ncn_progname}; then
11109 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112 break
11113 else
11114 echo "$as_me:$LINENO: result: no" >&5
11115echo "${ECHO_T}no" >&6
11116 fi
11117 done
11118fi
11119
11120if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11121 for ncn_progname in strip; do
11122 if test -n "$ncn_target_tool_prefix"; then
11123 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11124set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11125echo "$as_me:$LINENO: checking for $ac_word" >&5
11126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11127if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 if test -n "$STRIP_FOR_TARGET"; then
11131 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11143 fi
11144done
11145done
11146
11147fi
11148fi
11149STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11150if test -n "$STRIP_FOR_TARGET"; then
11151 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11152echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11153else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156fi
11157
11158 fi
11159 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11161set dummy ${ncn_progname}; ac_word=$2
11162echo "$as_me:$LINENO: checking for $ac_word" >&5
11163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11164if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166else
11167 if test -n "$STRIP_FOR_TARGET"; then
11168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11169else
11170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171for as_dir in $PATH
11172do
11173 IFS=$as_save_IFS
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11177 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 break 2
11180 fi
11181done
11182done
11183
11184fi
11185fi
11186STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11187if test -n "$STRIP_FOR_TARGET"; then
11188 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11189echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11190else
11191 echo "$as_me:$LINENO: result: no" >&5
11192echo "${ECHO_T}no" >&6
11193fi
11194
11195 fi
11196 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11197 done
11198fi
11199
11200if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11201 set dummy strip
11202 if test $build = $target ; then
11203 STRIP_FOR_TARGET="$2"
11204 else
11205 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11206 fi
11207else
11208 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11209fi
11210
11211else
11212 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11213fi
11214
11215
11216
11217
11218if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11219 if test -n "$with_build_time_tools"; then
11220 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11221echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
11222 if test -x $with_build_time_tools/windres; then
11223 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11224 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11225 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11226echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
11227 else
11228 echo "$as_me:$LINENO: result: no" >&5
11229echo "${ECHO_T}no" >&6
11230 fi
11231 elif test $build != $host && test $have_gcc_for_target = yes; then
11232 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11233 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11234 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11235 fi
11236fi
11237if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11238 # Extract the first word of "windres", so it can be a program name with args.
11239set dummy windres; ac_word=$2
11240echo "$as_me:$LINENO: checking for $ac_word" >&5
11241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11242if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244else
11245 case $WINDRES_FOR_TARGET in
11246 [\\/]* | ?:[\\/]*)
11247 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11248 ;;
11249 *)
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $gcc_cv_tool_dirs
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11259 break 2
11260 fi
11261done
11262done
11263
11264 ;;
11265esac
11266fi
11267WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11268
11269if test -n "$WINDRES_FOR_TARGET"; then
11270 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11271echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11272else
11273 echo "$as_me:$LINENO: result: no" >&5
11274echo "${ECHO_T}no" >&6
11275fi
11276
11277fi
11278if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11279
11280
11281if test -n "$WINDRES_FOR_TARGET"; then
11282 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11283elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11284 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11285fi
11286
11287if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11288 for ncn_progname in windres; do
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290set dummy ${ncn_progname}; ac_word=$2
11291echo "$as_me:$LINENO: checking for $ac_word" >&5
11292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11293if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295else
11296 if test -n "$WINDRES_FOR_TARGET"; then
11297 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11309 fi
11310done
11311done
11312
11313fi
11314fi
11315WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11316if test -n "$WINDRES_FOR_TARGET"; then
11317 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11318echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11319else
11320 echo "$as_me:$LINENO: result: no" >&5
11321echo "${ECHO_T}no" >&6
11322fi
11323
11324 done
11325fi
11326
11327if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11328 for ncn_progname in windres; do
11329 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11330echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11331 if test -x $with_build_time_tools/${ncn_progname}; then
11332 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11333 echo "$as_me:$LINENO: result: yes" >&5
11334echo "${ECHO_T}yes" >&6
11335 break
11336 else
11337 echo "$as_me:$LINENO: result: no" >&5
11338echo "${ECHO_T}no" >&6
11339 fi
11340 done
11341fi
11342
11343if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11344 for ncn_progname in windres; do
11345 if test -n "$ncn_target_tool_prefix"; then
11346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11347set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11348echo "$as_me:$LINENO: checking for $ac_word" >&5
11349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11350if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11352else
11353 if test -n "$WINDRES_FOR_TARGET"; then
11354 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11355else
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11366 fi
11367done
11368done
11369
11370fi
11371fi
11372WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11373if test -n "$WINDRES_FOR_TARGET"; then
11374 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11375echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11376else
11377 echo "$as_me:$LINENO: result: no" >&5
11378echo "${ECHO_T}no" >&6
11379fi
11380
11381 fi
11382 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11384set dummy ${ncn_progname}; ac_word=$2
11385echo "$as_me:$LINENO: checking for $ac_word" >&5
11386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11387if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389else
11390 if test -n "$WINDRES_FOR_TARGET"; then
11391 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11392else
11393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404done
11405done
11406
11407fi
11408fi
11409WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11410if test -n "$WINDRES_FOR_TARGET"; then
11411 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11412echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11413else
11414 echo "$as_me:$LINENO: result: no" >&5
11415echo "${ECHO_T}no" >&6
11416fi
11417
11418 fi
11419 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11420 done
11421fi
11422
11423if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11424 set dummy windres
11425 if test $build = $target ; then
11426 WINDRES_FOR_TARGET="$2"
11427 else
11428 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11429 fi
11430else
11431 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11432fi
11433
11434else
11435 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11436fi
11437
11438
11439
11440
11441if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11442 if test -n "$with_build_time_tools"; then
11443 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11444echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11445 if test -x $with_build_time_tools/windmc; then
11446 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11447 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11448 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11449echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11450 else
11451 echo "$as_me:$LINENO: result: no" >&5
11452echo "${ECHO_T}no" >&6
11453 fi
11454 elif test $build != $host && test $have_gcc_for_target = yes; then
11455 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11456 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11457 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11458 fi
11459fi
11460if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11461 # Extract the first word of "windmc", so it can be a program name with args.
11462set dummy windmc; ac_word=$2
11463echo "$as_me:$LINENO: checking for $ac_word" >&5
11464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11465if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467else
11468 case $WINDMC_FOR_TARGET in
11469 [\\/]* | ?:[\\/]*)
11470 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11471 ;;
11472 *)
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $gcc_cv_tool_dirs
11475do
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11483 fi
11484done
11485done
11486
11487 ;;
11488esac
11489fi
11490WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11491
11492if test -n "$WINDMC_FOR_TARGET"; then
11493 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11494echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11495else
11496 echo "$as_me:$LINENO: result: no" >&5
11497echo "${ECHO_T}no" >&6
11498fi
11499
11500fi
11501if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11502
11503
11504if test -n "$WINDMC_FOR_TARGET"; then
11505 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11506elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11507 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11508fi
11509
11510if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11511 for ncn_progname in windmc; do
11512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11513set dummy ${ncn_progname}; ac_word=$2
11514echo "$as_me:$LINENO: checking for $ac_word" >&5
11515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11516if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 if test -n "$WINDMC_FOR_TARGET"; then
11520 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11521else
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11529 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11532 fi
11533done
11534done
11535
11536fi
11537fi
11538WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11539if test -n "$WINDMC_FOR_TARGET"; then
11540 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11541echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11542else
11543 echo "$as_me:$LINENO: result: no" >&5
11544echo "${ECHO_T}no" >&6
11545fi
11546
11547 done
11548fi
11549
11550if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11551 for ncn_progname in windmc; do
11552 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11553echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11554 if test -x $with_build_time_tools/${ncn_progname}; then
11555 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11556 echo "$as_me:$LINENO: result: yes" >&5
11557echo "${ECHO_T}yes" >&6
11558 break
11559 else
11560 echo "$as_me:$LINENO: result: no" >&5
11561echo "${ECHO_T}no" >&6
11562 fi
11563 done
11564fi
11565
11566if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11567 for ncn_progname in windmc; do
11568 if test -n "$ncn_target_tool_prefix"; then
11569 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11570set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11571echo "$as_me:$LINENO: checking for $ac_word" >&5
11572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 if test -n "$WINDMC_FOR_TARGET"; then
11577 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11578else
11579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591done
11592
11593fi
11594fi
11595WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11596if test -n "$WINDMC_FOR_TARGET"; then
11597 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11598echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11599else
11600 echo "$as_me:$LINENO: result: no" >&5
11601echo "${ECHO_T}no" >&6
11602fi
11603
11604 fi
11605 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11607set dummy ${ncn_progname}; ac_word=$2
11608echo "$as_me:$LINENO: checking for $ac_word" >&5
11609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11610if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612else
11613 if test -n "$WINDMC_FOR_TARGET"; then
11614 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11615else
11616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617for as_dir in $PATH
11618do
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11626 fi
11627done
11628done
11629
11630fi
11631fi
11632WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11633if test -n "$WINDMC_FOR_TARGET"; then
11634 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11635echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11636else
11637 echo "$as_me:$LINENO: result: no" >&5
11638echo "${ECHO_T}no" >&6
11639fi
11640
11641 fi
11642 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11643 done
11644fi
11645
11646if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11647 set dummy windmc
11648 if test $build = $target ; then
11649 WINDMC_FOR_TARGET="$2"
11650 else
11651 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11652 fi
11653else
11654 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11655fi
11656
11657else
11658 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11659fi
11660
11661
11662RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11663
11664echo "$as_me:$LINENO: checking where to find the target ar" >&5
11665echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11666if test "x${build}" != "x${host}" ; then
11667 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11668 # We already found the complete path
11669 ac_dir=`dirname $AR_FOR_TARGET`
11670 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11671echo "${ECHO_T}pre-installed in $ac_dir" >&6
11672 else
11673 # Canadian cross, just use what we found
11674 echo "$as_me:$LINENO: result: pre-installed" >&5
11675echo "${ECHO_T}pre-installed" >&6
11676 fi
11677else
11678 ok=yes
11679 case " ${configdirs} " in
11680 *" binutils "*) ;;
11681 *) ok=no ;;
11682 esac
11683
11684 if test $ok = yes; then
11685 # An in-tree tool is available and we can use it
11686 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11687 echo "$as_me:$LINENO: result: just compiled" >&5
11688echo "${ECHO_T}just compiled" >&6
11689 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
11691 ac_dir=`dirname $AR_FOR_TARGET`
11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
11694 elif test "x$target" = "x$host"; then
11695 # We can use an host tool
11696 AR_FOR_TARGET='$(AR)'
11697 echo "$as_me:$LINENO: result: host tool" >&5
11698echo "${ECHO_T}host tool" >&6
11699 else
11700 # We need a cross tool
11701 echo "$as_me:$LINENO: result: pre-installed" >&5
11702echo "${ECHO_T}pre-installed" >&6
11703 fi
11704fi
11705
11706echo "$as_me:$LINENO: checking where to find the target as" >&5
11707echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11708if test "x${build}" != "x${host}" ; then
11709 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11710 # We already found the complete path
11711 ac_dir=`dirname $AS_FOR_TARGET`
11712 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11713echo "${ECHO_T}pre-installed in $ac_dir" >&6
11714 else
11715 # Canadian cross, just use what we found
11716 echo "$as_me:$LINENO: result: pre-installed" >&5
11717echo "${ECHO_T}pre-installed" >&6
11718 fi
11719else
11720 ok=yes
11721 case " ${configdirs} " in
11722 *" gas "*) ;;
11723 *) ok=no ;;
11724 esac
11725
11726 if test $ok = yes; then
11727 # An in-tree tool is available and we can use it
11728 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11729 echo "$as_me:$LINENO: result: just compiled" >&5
11730echo "${ECHO_T}just compiled" >&6
11731 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
11733 ac_dir=`dirname $AS_FOR_TARGET`
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
11736 elif test "x$target" = "x$host"; then
11737 # We can use an host tool
11738 AS_FOR_TARGET='$(AS)'
11739 echo "$as_me:$LINENO: result: host tool" >&5
11740echo "${ECHO_T}host tool" >&6
11741 else
11742 # We need a cross tool
11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
11745 fi
11746fi
11747
11748echo "$as_me:$LINENO: checking where to find the target cc" >&5
11749echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11750if test "x${build}" != "x${host}" ; then
11751 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11752 # We already found the complete path
11753 ac_dir=`dirname $CC_FOR_TARGET`
11754 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11755echo "${ECHO_T}pre-installed in $ac_dir" >&6
11756 else
11757 # Canadian cross, just use what we found
11758 echo "$as_me:$LINENO: result: pre-installed" >&5
11759echo "${ECHO_T}pre-installed" >&6
11760 fi
11761else
11762 ok=yes
11763 case " ${configdirs} " in
11764 *" gcc "*) ;;
11765 *) ok=no ;;
11766 esac
11767
11768 if test $ok = yes; then
11769 # An in-tree tool is available and we can use it
11770 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11771 echo "$as_me:$LINENO: result: just compiled" >&5
11772echo "${ECHO_T}just compiled" >&6
11773 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
11775 ac_dir=`dirname $CC_FOR_TARGET`
11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
11778 elif test "x$target" = "x$host"; then
11779 # We can use an host tool
11780 CC_FOR_TARGET='$(CC)'
11781 echo "$as_me:$LINENO: result: host tool" >&5
11782echo "${ECHO_T}host tool" >&6
11783 else
11784 # We need a cross tool
11785 echo "$as_me:$LINENO: result: pre-installed" >&5
11786echo "${ECHO_T}pre-installed" >&6
11787 fi
11788fi
11789
11790echo "$as_me:$LINENO: checking where to find the target c++" >&5
11791echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11792if test "x${build}" != "x${host}" ; then
11793 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
11795 ac_dir=`dirname $CXX_FOR_TARGET`
11796 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11797echo "${ECHO_T}pre-installed in $ac_dir" >&6
11798 else
11799 # Canadian cross, just use what we found
11800 echo "$as_me:$LINENO: result: pre-installed" >&5
11801echo "${ECHO_T}pre-installed" >&6
11802 fi
11803else
11804 ok=yes
11805 case " ${configdirs} " in
11806 *" gcc "*) ;;
11807 *) ok=no ;;
11808 esac
11809 case ,${enable_languages}, in
11810 *,c++,*) ;;
11811 *) ok=no ;;
11812 esac
11813 if test $ok = yes; then
11814 # An in-tree tool is available and we can use it
11815 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'
11816 echo "$as_me:$LINENO: result: just compiled" >&5
11817echo "${ECHO_T}just compiled" >&6
11818 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11819 # We already found the complete path
11820 ac_dir=`dirname $CXX_FOR_TARGET`
11821 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11822echo "${ECHO_T}pre-installed in $ac_dir" >&6
11823 elif test "x$target" = "x$host"; then
11824 # We can use an host tool
11825 CXX_FOR_TARGET='$(CXX)'
11826 echo "$as_me:$LINENO: result: host tool" >&5
11827echo "${ECHO_T}host tool" >&6
11828 else
11829 # We need a cross tool
11830 echo "$as_me:$LINENO: result: pre-installed" >&5
11831echo "${ECHO_T}pre-installed" >&6
11832 fi
11833fi
11834
11835echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11836echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11837if test "x${build}" != "x${host}" ; then
11838 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11839 # We already found the complete path
11840 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11841 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11842echo "${ECHO_T}pre-installed in $ac_dir" >&6
11843 else
11844 # Canadian cross, just use what we found
11845 echo "$as_me:$LINENO: result: pre-installed" >&5
11846echo "${ECHO_T}pre-installed" >&6
11847 fi
11848else
11849 ok=yes
11850 case " ${configdirs} " in
11851 *" gcc "*) ;;
11852 *) ok=no ;;
11853 esac
11854 case ,${enable_languages}, in
11855 *,c++,*) ;;
11856 *) ok=no ;;
11857 esac
11858 if test $ok = yes; then
11859 # An in-tree tool is available and we can use it
11860 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'
11861 echo "$as_me:$LINENO: result: just compiled" >&5
11862echo "${ECHO_T}just compiled" >&6
11863 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11864 # We already found the complete path
11865 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11866 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11867echo "${ECHO_T}pre-installed in $ac_dir" >&6
11868 elif test "x$target" = "x$host"; then
11869 # We can use an host tool
11870 RAW_CXX_FOR_TARGET='$(CXX)'
11871 echo "$as_me:$LINENO: result: host tool" >&5
11872echo "${ECHO_T}host tool" >&6
11873 else
11874 # We need a cross tool
11875 echo "$as_me:$LINENO: result: pre-installed" >&5
11876echo "${ECHO_T}pre-installed" >&6
11877 fi
11878fi
11879
11880echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11881echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11882if test "x${build}" != "x${host}" ; then
11883 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11884 # We already found the complete path
11885 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11886 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11887echo "${ECHO_T}pre-installed in $ac_dir" >&6
11888 else
11889 # Canadian cross, just use what we found
11890 echo "$as_me:$LINENO: result: pre-installed" >&5
11891echo "${ECHO_T}pre-installed" >&6
11892 fi
11893else
11894 ok=yes
11895 case " ${configdirs} " in
11896 *" binutils "*) ;;
11897 *) ok=no ;;
11898 esac
11899
11900 if test $ok = yes; then
11901 # An in-tree tool is available and we can use it
11902 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11903 echo "$as_me:$LINENO: result: just compiled" >&5
11904echo "${ECHO_T}just compiled" >&6
11905 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11906 # We already found the complete path
11907 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11908 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11909echo "${ECHO_T}pre-installed in $ac_dir" >&6
11910 elif test "x$target" = "x$host"; then
11911 # We can use an host tool
11912 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11913 echo "$as_me:$LINENO: result: host tool" >&5
11914echo "${ECHO_T}host tool" >&6
11915 else
11916 # We need a cross tool
11917 echo "$as_me:$LINENO: result: pre-installed" >&5
11918echo "${ECHO_T}pre-installed" >&6
11919 fi
11920fi
11921
11922echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11923echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11924if test "x${build}" != "x${host}" ; then
11925 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11926 # We already found the complete path
11927 ac_dir=`dirname $GCC_FOR_TARGET`
11928 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11929echo "${ECHO_T}pre-installed in $ac_dir" >&6
11930 else
11931 # Canadian cross, just use what we found
11932 echo "$as_me:$LINENO: result: pre-installed" >&5
11933echo "${ECHO_T}pre-installed" >&6
11934 fi
11935else
11936 ok=yes
11937 case " ${configdirs} " in
11938 *" gcc "*) ;;
11939 *) ok=no ;;
11940 esac
11941
11942 if test $ok = yes; then
11943 # An in-tree tool is available and we can use it
11944 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11945 echo "$as_me:$LINENO: result: just compiled" >&5
11946echo "${ECHO_T}just compiled" >&6
11947 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11948 # We already found the complete path
11949 ac_dir=`dirname $GCC_FOR_TARGET`
11950 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11951echo "${ECHO_T}pre-installed in $ac_dir" >&6
11952 elif test "x$target" = "x$host"; then
11953 # We can use an host tool
11954 GCC_FOR_TARGET='$()'
11955 echo "$as_me:$LINENO: result: host tool" >&5
11956echo "${ECHO_T}host tool" >&6
11957 else
11958 # We need a cross tool
11959 echo "$as_me:$LINENO: result: pre-installed" >&5
11960echo "${ECHO_T}pre-installed" >&6
11961 fi
11962fi
11963
11964echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11965echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11966if test "x${build}" != "x${host}" ; then
11967 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11968 # We already found the complete path
11969 ac_dir=`dirname $GCJ_FOR_TARGET`
11970 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11971echo "${ECHO_T}pre-installed in $ac_dir" >&6
11972 else
11973 # Canadian cross, just use what we found
11974 echo "$as_me:$LINENO: result: pre-installed" >&5
11975echo "${ECHO_T}pre-installed" >&6
11976 fi
11977else
11978 ok=yes
11979 case " ${configdirs} " in
11980 *" gcc "*) ;;
11981 *) ok=no ;;
11982 esac
11983 case ,${enable_languages}, in
11984 *,java,*) ;;
11985 *) ok=no ;;
11986 esac
11987 if test $ok = yes; then
11988 # An in-tree tool is available and we can use it
11989 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11990 echo "$as_me:$LINENO: result: just compiled" >&5
11991echo "${ECHO_T}just compiled" >&6
11992 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11993 # We already found the complete path
11994 ac_dir=`dirname $GCJ_FOR_TARGET`
11995 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11996echo "${ECHO_T}pre-installed in $ac_dir" >&6
11997 elif test "x$target" = "x$host"; then
11998 # We can use an host tool
11999 GCJ_FOR_TARGET='$(GCJ)'
12000 echo "$as_me:$LINENO: result: host tool" >&5
12001echo "${ECHO_T}host tool" >&6
12002 else
12003 # We need a cross tool
12004 echo "$as_me:$LINENO: result: pre-installed" >&5
12005echo "${ECHO_T}pre-installed" >&6
12006 fi
12007fi
12008
12009echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12010echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
12011if test "x${build}" != "x${host}" ; then
12012 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12013 # We already found the complete path
12014 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12015 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12016echo "${ECHO_T}pre-installed in $ac_dir" >&6
12017 else
12018 # Canadian cross, just use what we found
12019 echo "$as_me:$LINENO: result: pre-installed" >&5
12020echo "${ECHO_T}pre-installed" >&6
12021 fi
12022else
12023 ok=yes
12024 case " ${configdirs} " in
12025 *" gcc "*) ;;
12026 *) ok=no ;;
12027 esac
12028 case ,${enable_languages}, in
12029 *,fortran,*) ;;
12030 *) ok=no ;;
12031 esac
12032 if test $ok = yes; then
12033 # An in-tree tool is available and we can use it
12034 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12035 echo "$as_me:$LINENO: result: just compiled" >&5
12036echo "${ECHO_T}just compiled" >&6
12037 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12038 # We already found the complete path
12039 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12040 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12041echo "${ECHO_T}pre-installed in $ac_dir" >&6
12042 elif test "x$target" = "x$host"; then
12043 # We can use an host tool
12044 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12045 echo "$as_me:$LINENO: result: host tool" >&5
12046echo "${ECHO_T}host tool" >&6
12047 else
12048 # We need a cross tool
12049 echo "$as_me:$LINENO: result: pre-installed" >&5
12050echo "${ECHO_T}pre-installed" >&6
12051 fi
12052fi
12053
12054echo "$as_me:$LINENO: checking where to find the target ld" >&5
12055echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
12056if test "x${build}" != "x${host}" ; then
12057 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12058 # We already found the complete path
12059 ac_dir=`dirname $LD_FOR_TARGET`
12060 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12061echo "${ECHO_T}pre-installed in $ac_dir" >&6
12062 else
12063 # Canadian cross, just use what we found
12064 echo "$as_me:$LINENO: result: pre-installed" >&5
12065echo "${ECHO_T}pre-installed" >&6
12066 fi
12067else
12068 ok=yes
12069 case " ${configdirs} " in
12070 *" ld "*) ;;
12071 *) ok=no ;;
12072 esac
12073
12074 if test $ok = yes; then
12075 # An in-tree tool is available and we can use it
12076 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12077 echo "$as_me:$LINENO: result: just compiled" >&5
12078echo "${ECHO_T}just compiled" >&6
12079 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12080 # We already found the complete path
12081 ac_dir=`dirname $LD_FOR_TARGET`
12082 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12083echo "${ECHO_T}pre-installed in $ac_dir" >&6
12084 elif test "x$target" = "x$host"; then
12085 # We can use an host tool
12086 LD_FOR_TARGET='$(LD)'
12087 echo "$as_me:$LINENO: result: host tool" >&5
12088echo "${ECHO_T}host tool" >&6
12089 else
12090 # We need a cross tool
12091 echo "$as_me:$LINENO: result: pre-installed" >&5
12092echo "${ECHO_T}pre-installed" >&6
12093 fi
12094fi
12095
12096echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12097echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
12098if test "x${build}" != "x${host}" ; then
12099 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12100 # We already found the complete path
12101 ac_dir=`dirname $LIPO_FOR_TARGET`
12102 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12103echo "${ECHO_T}pre-installed in $ac_dir" >&6
12104 else
12105 # Canadian cross, just use what we found
12106 echo "$as_me:$LINENO: result: pre-installed" >&5
12107echo "${ECHO_T}pre-installed" >&6
12108 fi
12109else
12110 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12111 # We already found the complete path
12112 ac_dir=`dirname $LIPO_FOR_TARGET`
12113 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12114echo "${ECHO_T}pre-installed in $ac_dir" >&6
12115 elif test "x$target" = "x$host"; then
12116 # We can use an host tool
12117 LIPO_FOR_TARGET='$(LIPO)'
12118 echo "$as_me:$LINENO: result: host tool" >&5
12119echo "${ECHO_T}host tool" >&6
12120 else
12121 # We need a cross tool
12122 echo "$as_me:$LINENO: result: pre-installed" >&5
12123echo "${ECHO_T}pre-installed" >&6
12124 fi
12125fi
12126
12127echo "$as_me:$LINENO: checking where to find the target nm" >&5
12128echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
12129if test "x${build}" != "x${host}" ; then
12130 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12131 # We already found the complete path
12132 ac_dir=`dirname $NM_FOR_TARGET`
12133 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12134echo "${ECHO_T}pre-installed in $ac_dir" >&6
12135 else
12136 # Canadian cross, just use what we found
12137 echo "$as_me:$LINENO: result: pre-installed" >&5
12138echo "${ECHO_T}pre-installed" >&6
12139 fi
12140else
12141 ok=yes
12142 case " ${configdirs} " in
12143 *" binutils "*) ;;
12144 *) ok=no ;;
12145 esac
12146
12147 if test $ok = yes; then
12148 # An in-tree tool is available and we can use it
12149 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12150 echo "$as_me:$LINENO: result: just compiled" >&5
12151echo "${ECHO_T}just compiled" >&6
12152 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12153 # We already found the complete path
12154 ac_dir=`dirname $NM_FOR_TARGET`
12155 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12156echo "${ECHO_T}pre-installed in $ac_dir" >&6
12157 elif test "x$target" = "x$host"; then
12158 # We can use an host tool
12159 NM_FOR_TARGET='$(NM)'
12160 echo "$as_me:$LINENO: result: host tool" >&5
12161echo "${ECHO_T}host tool" >&6
12162 else
12163 # We need a cross tool
12164 echo "$as_me:$LINENO: result: pre-installed" >&5
12165echo "${ECHO_T}pre-installed" >&6
12166 fi
12167fi
12168
12169echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12170echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
12171if test "x${build}" != "x${host}" ; then
12172 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12173 # We already found the complete path
12174 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12175 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12176echo "${ECHO_T}pre-installed in $ac_dir" >&6
12177 else
12178 # Canadian cross, just use what we found
12179 echo "$as_me:$LINENO: result: pre-installed" >&5
12180echo "${ECHO_T}pre-installed" >&6
12181 fi
12182else
12183 ok=yes
12184 case " ${configdirs} " in
12185 *" binutils "*) ;;
12186 *) ok=no ;;
12187 esac
12188
12189 if test $ok = yes; then
12190 # An in-tree tool is available and we can use it
12191 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12192 echo "$as_me:$LINENO: result: just compiled" >&5
12193echo "${ECHO_T}just compiled" >&6
12194 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12195 # We already found the complete path
12196 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12197 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12198echo "${ECHO_T}pre-installed in $ac_dir" >&6
12199 elif test "x$target" = "x$host"; then
12200 # We can use an host tool
12201 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12202 echo "$as_me:$LINENO: result: host tool" >&5
12203echo "${ECHO_T}host tool" >&6
12204 else
12205 # We need a cross tool
12206 echo "$as_me:$LINENO: result: pre-installed" >&5
12207echo "${ECHO_T}pre-installed" >&6
12208 fi
12209fi
12210
12211echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12212echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
12213if test "x${build}" != "x${host}" ; then
12214 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12215 # We already found the complete path
12216 ac_dir=`dirname $RANLIB_FOR_TARGET`
12217 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12218echo "${ECHO_T}pre-installed in $ac_dir" >&6
12219 else
12220 # Canadian cross, just use what we found
12221 echo "$as_me:$LINENO: result: pre-installed" >&5
12222echo "${ECHO_T}pre-installed" >&6
12223 fi
12224else
12225 ok=yes
12226 case " ${configdirs} " in
12227 *" binutils "*) ;;
12228 *) ok=no ;;
12229 esac
12230
12231 if test $ok = yes; then
12232 # An in-tree tool is available and we can use it
12233 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12234 echo "$as_me:$LINENO: result: just compiled" >&5
12235echo "${ECHO_T}just compiled" >&6
12236 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12237 # We already found the complete path
12238 ac_dir=`dirname $RANLIB_FOR_TARGET`
12239 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12240echo "${ECHO_T}pre-installed in $ac_dir" >&6
12241 elif test "x$target" = "x$host"; then
12242 # We can use an host tool
12243 RANLIB_FOR_TARGET='$(RANLIB)'
12244 echo "$as_me:$LINENO: result: host tool" >&5
12245echo "${ECHO_T}host tool" >&6
12246 else
12247 # We need a cross tool
12248 echo "$as_me:$LINENO: result: pre-installed" >&5
12249echo "${ECHO_T}pre-installed" >&6
12250 fi
12251fi
12252
12253echo "$as_me:$LINENO: checking where to find the target strip" >&5
12254echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
12255if test "x${build}" != "x${host}" ; then
12256 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12257 # We already found the complete path
12258 ac_dir=`dirname $STRIP_FOR_TARGET`
12259 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12260echo "${ECHO_T}pre-installed in $ac_dir" >&6
12261 else
12262 # Canadian cross, just use what we found
12263 echo "$as_me:$LINENO: result: pre-installed" >&5
12264echo "${ECHO_T}pre-installed" >&6
12265 fi
12266else
12267 ok=yes
12268 case " ${configdirs} " in
12269 *" binutils "*) ;;
12270 *) ok=no ;;
12271 esac
12272
12273 if test $ok = yes; then
12274 # An in-tree tool is available and we can use it
12275 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12276 echo "$as_me:$LINENO: result: just compiled" >&5
12277echo "${ECHO_T}just compiled" >&6
12278 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12279 # We already found the complete path
12280 ac_dir=`dirname $STRIP_FOR_TARGET`
12281 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12282echo "${ECHO_T}pre-installed in $ac_dir" >&6
12283 elif test "x$target" = "x$host"; then
12284 # We can use an host tool
12285 STRIP_FOR_TARGET='$(STRIP)'
12286 echo "$as_me:$LINENO: result: host tool" >&5
12287echo "${ECHO_T}host tool" >&6
12288 else
12289 # We need a cross tool
12290 echo "$as_me:$LINENO: result: pre-installed" >&5
12291echo "${ECHO_T}pre-installed" >&6
12292 fi
12293fi
12294
12295echo "$as_me:$LINENO: checking where to find the target windres" >&5
12296echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12297if test "x${build}" != "x${host}" ; then
12298 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12299 # We already found the complete path
12300 ac_dir=`dirname $WINDRES_FOR_TARGET`
12301 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12302echo "${ECHO_T}pre-installed in $ac_dir" >&6
12303 else
12304 # Canadian cross, just use what we found
12305 echo "$as_me:$LINENO: result: pre-installed" >&5
12306echo "${ECHO_T}pre-installed" >&6
12307 fi
12308else
12309 ok=yes
12310 case " ${configdirs} " in
12311 *" binutils "*) ;;
12312 *) ok=no ;;
12313 esac
12314
12315 if test $ok = yes; then
12316 # An in-tree tool is available and we can use it
12317 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12318 echo "$as_me:$LINENO: result: just compiled" >&5
12319echo "${ECHO_T}just compiled" >&6
12320 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12321 # We already found the complete path
12322 ac_dir=`dirname $WINDRES_FOR_TARGET`
12323 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12324echo "${ECHO_T}pre-installed in $ac_dir" >&6
12325 elif test "x$target" = "x$host"; then
12326 # We can use an host tool
12327 WINDRES_FOR_TARGET='$(WINDRES)'
12328 echo "$as_me:$LINENO: result: host tool" >&5
12329echo "${ECHO_T}host tool" >&6
12330 else
12331 # We need a cross tool
12332 echo "$as_me:$LINENO: result: pre-installed" >&5
12333echo "${ECHO_T}pre-installed" >&6
12334 fi
12335fi
12336
12337echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12338echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12339if test "x${build}" != "x${host}" ; then
12340 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12341 # We already found the complete path
12342 ac_dir=`dirname $WINDMC_FOR_TARGET`
12343 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12344echo "${ECHO_T}pre-installed in $ac_dir" >&6
12345 else
12346 # Canadian cross, just use what we found
12347 echo "$as_me:$LINENO: result: pre-installed" >&5
12348echo "${ECHO_T}pre-installed" >&6
12349 fi
12350else
12351 ok=yes
12352 case " ${configdirs} " in
12353 *" binutils "*) ;;
12354 *) ok=no ;;
12355 esac
12356
12357 if test $ok = yes; then
12358 # An in-tree tool is available and we can use it
12359 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12360 echo "$as_me:$LINENO: result: just compiled" >&5
12361echo "${ECHO_T}just compiled" >&6
12362 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12363 # We already found the complete path
12364 ac_dir=`dirname $WINDMC_FOR_TARGET`
12365 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12366echo "${ECHO_T}pre-installed in $ac_dir" >&6
12367 elif test "x$target" = "x$host"; then
12368 # We can use an host tool
12369 WINDMC_FOR_TARGET='$(WINDMC)'
12370 echo "$as_me:$LINENO: result: host tool" >&5
12371echo "${ECHO_T}host tool" >&6
12372 else
12373 # We need a cross tool
12374 echo "$as_me:$LINENO: result: pre-installed" >&5
12375echo "${ECHO_T}pre-installed" >&6
12376 fi
12377fi
12378
12379
12380
12381
12382
12383# Certain tools may need extra flags.
12384AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12385RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12386NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12387
12388# When building target libraries, except in a Canadian cross, we use
12389# the same toolchain as the compiler we just built.
12390COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12391COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12392COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12393if test $host = $build; then
12394 case " $configdirs " in
12395 *" gcc "*)
12396 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12397 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12398 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12399 ;;
12400 esac
12401fi
12402
12403
12404
12405
12406
12407echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12408echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12409# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12410if test "${enable_maintainer_mode+set}" = set; then
12411 enableval="$enable_maintainer_mode"
12412 USE_MAINTAINER_MODE=$enableval
12413else
12414 USE_MAINTAINER_MODE=no
12415fi;
12416echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12417echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12418
12419
12420if test "$USE_MAINTAINER_MODE" = yes; then
12421 MAINTAINER_MODE_TRUE=
12422 MAINTAINER_MODE_FALSE='#'
12423else
12424 MAINTAINER_MODE_TRUE='#'
12425 MAINTAINER_MODE_FALSE=
12426fi
12427MAINT=$MAINTAINER_MODE_TRUE
12428
12429# ---------------------
12430# GCC bootstrap support
12431# ---------------------
12432
12433# Stage specific cflags for build.
12434stage1_cflags="-g"
12435case $build in
12436 vax-*-*)
12437 case ${GCC} in
12438 yes) stage1_cflags="-g -Wa,-J" ;;
12439 *) stage1_cflags="-g -J" ;;
12440 esac ;;
12441esac
12442
12443# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12444if test "$GCC" = yes; then
12445 saved_CFLAGS="$CFLAGS"
12446
12447 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12448 CFLAGS="$CFLAGS -fkeep-inline-functions"
12449 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12450echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457
12458#if (__GNUC__ < 3) \
12459 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12460 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12461#error http://gcc.gnu.org/PR29382
12462#endif
12463
12464int
12465main ()
12466{
12467
12468 ;
12469 return 0;
12470}
12471_ACEOF
12472rm -f conftest.$ac_objext
12473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 echo "$as_me:$LINENO: result: yes" >&5
12495echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12496else
12497 echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500echo "$as_me:$LINENO: result: no" >&5
12501echo "${ECHO_T}no" >&6
12502fi
12503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12504
12505 CFLAGS="$saved_CFLAGS"
12506fi
12507
12508
12509
12510# Enable --enable-checking in stage1 of the compiler.
12511# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12512if test "${enable_stage1_checking+set}" = set; then
12513 enableval="$enable_stage1_checking"
12514 stage1_checking=--enable-checking=${enable_stage1_checking}
12515else
12516 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12517 stage1_checking=--enable-checking=yes,types
12518else
12519 stage1_checking=--enable-checking=$enable_checking,types
12520fi
12521fi;
12522
12523
12524# Enable -Werror in bootstrap stage2 and later.
12525# Check whether --enable-werror or --disable-werror was given.
12526if test "${enable_werror+set}" = set; then
12527 enableval="$enable_werror"
12528
12529else
12530 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12531 enable_werror=yes
12532else
12533 enable_werror=no
12534fi
12535fi;
12536case ${enable_werror} in
12537 yes) stage2_werror_flag="--enable-werror-always" ;;
12538 *) stage2_werror_flag="" ;;
12539esac
12540
12541
12542# Flags needed to enable html installing and building
12543
12544# Check whether --with-datarootdir or --without-datarootdir was given.
12545if test "${with_datarootdir+set}" = set; then
12546 withval="$with_datarootdir"
12547 datarootdir="\${prefix}/${withval}"
12548else
12549 datarootdir="\${prefix}/share"
12550fi;
12551
12552
12553# Check whether --with-docdir or --without-docdir was given.
12554if test "${with_docdir+set}" = set; then
12555 withval="$with_docdir"
12556 docdir="\${prefix}/${withval}"
12557else
12558 docdir="\${datarootdir}/doc"
12559fi;
12560
12561
12562# Check whether --with-pdfdir or --without-pdfdir was given.
12563if test "${with_pdfdir+set}" = set; then
12564 withval="$with_pdfdir"
12565 pdfdir="\${prefix}/${withval}"
12566else
12567 pdfdir="\${docdir}"
12568fi;
12569
12570
12571# Check whether --with-htmldir or --without-htmldir was given.
12572if test "${with_htmldir+set}" = set; then
12573 withval="$with_htmldir"
12574 htmldir="\${prefix}/${withval}"
12575else
12576 htmldir="\${docdir}"
12577fi;
12578
12579
12580
12581
12582
12583
12584 ac_config_files="$ac_config_files Makefile"
12585cat >confcache <<\_ACEOF
12586# This file is a shell script that caches the results of configure
12587# tests run on this system so they can be shared between configure
12588# scripts and configure runs, see configure's option --config-cache.
12589# It is not useful on other systems. If it contains results you don't
12590# want to keep, you may remove or edit it.
12591#
12592# config.status only pays attention to the cache file if you give it
12593# the --recheck option to rerun configure.
12594#
12595# `ac_cv_env_foo' variables (set or unset) will be overridden when
12596# loading this file, other *unset* `ac_cv_foo' will be assigned the
12597# following values.
12598
12599_ACEOF
12600
12601# The following way of writing the cache mishandles newlines in values,
12602# but we know of no workaround that is simple, portable, and efficient.
12603# So, don't put newlines in cache variables' values.
12604# Ultrix sh set writes to stderr and can't be redirected directly,
12605# and sets the high bit in the cache file unless we assign to the vars.
12606{
12607 (set) 2>&1 |
12608 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12609 *ac_space=\ *)
12610 # `set' does not quote correctly, so add quotes (double-quote
12611 # substitution turns \\\\ into \\, and sed turns \\ into \).
12612 sed -n \
12613 "s/'/'\\\\''/g;
12614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12615 ;;
12616 *)
12617 # `set' quotes correctly as required by POSIX, so do not add quotes.
12618 sed -n \
12619 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12620 ;;
12621 esac;
12622} |
12623 sed '
12624 t clear
12625 : clear
12626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12627 t end
12628 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12629 : end' >>confcache
12630if diff $cache_file confcache >/dev/null 2>&1; then :; else
12631 if test -w $cache_file; then
12632 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12633 cat confcache >$cache_file
12634 else
12635 echo "not updating unwritable cache $cache_file"
12636 fi
12637fi
12638rm -f confcache
12639
12640test "x$prefix" = xNONE && prefix=$ac_default_prefix
12641# Let make expand exec_prefix.
12642test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12643
12644# VPATH may cause trouble with some makes, so we remove $(srcdir),
12645# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12646# trailing colons and then remove the whole line if VPATH becomes empty
12647# (actually we leave an empty line to preserve line numbers).
12648if test "x$srcdir" = x.; then
12649 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12650s/:*\$(srcdir):*/:/;
12651s/:*\${srcdir}:*/:/;
12652s/:*@srcdir@:*/:/;
12653s/^\([^=]*=[ ]*\):*/\1/;
12654s/:*$//;
12655s/^[^=]*=[ ]*$//;
12656}'
12657fi
12658
12659# Transform confdefs.h into DEFS.
12660# Protect against shell expansion while executing Makefile rules.
12661# Protect against Makefile macro expansion.
12662#
12663# If the first sed substitution is executed (which looks for macros that
12664# take arguments), then we branch to the quote section. Otherwise,
12665# look for a macro that doesn't take arguments.
12666cat >confdef2opt.sed <<\_ACEOF
12667t clear
12668: clear
12669s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12670t quote
12671s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12672t quote
12673d
12674: quote
12675s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12676s,\[,\\&,g
12677s,\],\\&,g
12678s,\$,$$,g
12679p
12680_ACEOF
12681# We use echo to avoid assuming a particular line-breaking character.
12682# The extra dot is to prevent the shell from consuming trailing
12683# line-breaks from the sub-command output. A line-break within
12684# single-quotes doesn't work because, if this script is created in a
12685# platform that uses two characters for line-breaks (e.g., DOS), tr
12686# would break.
12687ac_LF_and_DOT=`echo; echo .`
12688DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12689rm -f confdef2opt.sed
12690
12691
12692ac_libobjs=
12693ac_ltlibobjs=
12694for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12695 # 1. Remove the extension, and $U if already installed.
12696 ac_i=`echo "$ac_i" |
12697 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12698 # 2. Add them.
12699 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12700 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12701done
12702LIBOBJS=$ac_libobjs
12703
12704LTLIBOBJS=$ac_ltlibobjs
12705
12706
12707
12708: ${CONFIG_STATUS=./config.status}
12709ac_clean_files_save=$ac_clean_files
12710ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12711{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12712echo "$as_me: creating $CONFIG_STATUS" >&6;}
12713cat >$CONFIG_STATUS <<_ACEOF
12714#! $SHELL
12715# Generated by $as_me.
12716# Run this file to recreate the current configuration.
12717# Compiler output produced by configure, useful for debugging
12718# configure, is in config.log if it exists.
12719
12720debug=false
12721ac_cs_recheck=false
12722ac_cs_silent=false
12723SHELL=\${CONFIG_SHELL-$SHELL}
12724_ACEOF
12725
12726cat >>$CONFIG_STATUS <<\_ACEOF
12727## --------------------- ##
12728## M4sh Initialization. ##
12729## --------------------- ##
12730
12731# Be Bourne compatible
12732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12733 emulate sh
12734 NULLCMD=:
12735 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12736 # is contrary to our usage. Disable this feature.
12737 alias -g '${1+"$@"}'='"$@"'
12738elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12739 set -o posix
12740fi
12741DUALCASE=1; export DUALCASE # for MKS sh
12742
12743# Support unset when possible.
12744if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12745 as_unset=unset
12746else
12747 as_unset=false
12748fi
12749
12750
12751# Work around bugs in pre-3.0 UWIN ksh.
12752$as_unset ENV MAIL MAILPATH
12753PS1='$ '
12754PS2='> '
12755PS4='+ '
12756
12757# NLS nuisances.
12758for as_var in \
12759 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12760 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12761 LC_TELEPHONE LC_TIME
12762do
12763 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12764 eval $as_var=C; export $as_var
12765 else
12766 $as_unset $as_var
12767 fi
12768done
12769
12770# Required to use basename.
12771if expr a : '\(a\)' >/dev/null 2>&1; then
12772 as_expr=expr
12773else
12774 as_expr=false
12775fi
12776
12777if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12778 as_basename=basename
12779else
12780 as_basename=false
12781fi
12782
12783
12784# Name of the executable.
12785as_me=`$as_basename "$0" ||
12786$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12787 X"$0" : 'X\(//\)$' \| \
12788 X"$0" : 'X\(/\)$' \| \
12789 . : '\(.\)' 2>/dev/null ||
12790echo X/"$0" |
12791 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12792 /^X\/\(\/\/\)$/{ s//\1/; q; }
12793 /^X\/\(\/\).*/{ s//\1/; q; }
12794 s/.*/./; q'`
12795
12796
12797# PATH needs CR, and LINENO needs CR and PATH.
12798# Avoid depending upon Character Ranges.
12799as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12800as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12801as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12802as_cr_digits='0123456789'
12803as_cr_alnum=$as_cr_Letters$as_cr_digits
12804
12805# The user is always right.
12806if test "${PATH_SEPARATOR+set}" != set; then
12807 echo "#! /bin/sh" >conf$$.sh
12808 echo "exit 0" >>conf$$.sh
12809 chmod +x conf$$.sh
12810 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12811 PATH_SEPARATOR=';'
12812 else
12813 PATH_SEPARATOR=:
12814 fi
12815 rm -f conf$$.sh
12816fi
12817
12818
12819 as_lineno_1=$LINENO
12820 as_lineno_2=$LINENO
12821 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12822 test "x$as_lineno_1" != "x$as_lineno_2" &&
12823 test "x$as_lineno_3" = "x$as_lineno_2" || {
12824 # Find who we are. Look in the path if we contain no path at all
12825 # relative or not.
12826 case $0 in
12827 *[\\/]* ) as_myself=$0 ;;
12828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829for as_dir in $PATH
12830do
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12834done
12835
12836 ;;
12837 esac
12838 # We did not find ourselves, most probably we were run as `sh COMMAND'
12839 # in which case we are not to be found in the path.
12840 if test "x$as_myself" = x; then
12841 as_myself=$0
12842 fi
12843 if test ! -f "$as_myself"; then
12844 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12845echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12846 { (exit 1); exit 1; }; }
12847 fi
12848 case $CONFIG_SHELL in
12849 '')
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12852do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for as_base in sh bash ksh sh5; do
12856 case $as_dir in
12857 /*)
12858 if ("$as_dir/$as_base" -c '
12859 as_lineno_1=$LINENO
12860 as_lineno_2=$LINENO
12861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12862 test "x$as_lineno_1" != "x$as_lineno_2" &&
12863 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12864 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12865 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12866 CONFIG_SHELL=$as_dir/$as_base
12867 export CONFIG_SHELL
12868 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12869 fi;;
12870 esac
12871 done
12872done
12873;;
12874 esac
12875
12876 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12877 # uniformly replaced by the line number. The first 'sed' inserts a
12878 # line-number line before each line; the second 'sed' does the real
12879 # work. The second script uses 'N' to pair each line-number line
12880 # with the numbered line, and appends trailing '-' during
12881 # substitution so that $LINENO is not a special case at line end.
12882 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12883 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12884 sed '=' <$as_myself |
12885 sed '
12886 N
12887 s,$,-,
12888 : loop
12889 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12890 t loop
12891 s,-$,,
12892 s,^['$as_cr_digits']*\n,,
12893 ' >$as_me.lineno &&
12894 chmod +x $as_me.lineno ||
12895 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12896echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12897 { (exit 1); exit 1; }; }
12898
12899 # Don't try to exec as it changes $[0], causing all sort of problems
12900 # (the dirname of $[0] is not the place where we might find the
12901 # original and so on. Autoconf is especially sensible to this).
12902 . ./$as_me.lineno
12903 # Exit status is that of the last command.
12904 exit
12905}
12906
12907
12908case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12909 *c*,-n*) ECHO_N= ECHO_C='
12910' ECHO_T=' ' ;;
12911 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12912 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12913esac
12914
12915if expr a : '\(a\)' >/dev/null 2>&1; then
12916 as_expr=expr
12917else
12918 as_expr=false
12919fi
12920
12921rm -f conf$$ conf$$.exe conf$$.file
12922echo >conf$$.file
12923if ln -s conf$$.file conf$$ 2>/dev/null; then
12924 # We could just check for DJGPP; but this test a) works b) is more generic
12925 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12926 if test -f conf$$.exe; then
12927 # Don't use ln at all; we don't have any links
12928 as_ln_s='cp -p'
12929 else
12930 as_ln_s='ln -s'
12931 fi
12932elif ln conf$$.file conf$$ 2>/dev/null; then
12933 as_ln_s=ln
12934else
12935 as_ln_s='cp -p'
12936fi
12937rm -f conf$$ conf$$.exe conf$$.file
12938
12939if mkdir -p . 2>/dev/null; then
12940 as_mkdir_p=:
12941else
12942 test -d ./-p && rmdir ./-p
12943 as_mkdir_p=false
12944fi
12945
12946as_executable_p="test -f"
12947
12948# Sed expression to map a string onto a valid CPP name.
12949as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12950
12951# Sed expression to map a string onto a valid variable name.
12952as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12953
12954
12955# IFS
12956# We need space, tab and new line, in precisely that order.
12957as_nl='
12958'
12959IFS=" $as_nl"
12960
12961# CDPATH.
12962$as_unset CDPATH
12963
12964exec 6>&1
12965
12966# Open the log real soon, to keep \$[0] and so on meaningful, and to
12967# report actual input values of CONFIG_FILES etc. instead of their
12968# values after options handling. Logging --version etc. is OK.
12969exec 5>>config.log
12970{
12971 echo
12972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12973## Running $as_me. ##
12974_ASBOX
12975} >&5
12976cat >&5 <<_CSEOF
12977
12978This file was extended by $as_me, which was
12979generated by GNU Autoconf 2.59. Invocation command line was
12980
12981 CONFIG_FILES = $CONFIG_FILES
12982 CONFIG_HEADERS = $CONFIG_HEADERS
12983 CONFIG_LINKS = $CONFIG_LINKS
12984 CONFIG_COMMANDS = $CONFIG_COMMANDS
12985 $ $0 $@
12986
12987_CSEOF
12988echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12989echo >&5
12990_ACEOF
12991
12992# Files that config.status was made for.
12993if test -n "$ac_config_files"; then
12994 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12995fi
12996
12997if test -n "$ac_config_headers"; then
12998 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12999fi
13000
13001if test -n "$ac_config_links"; then
13002 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13003fi
13004
13005if test -n "$ac_config_commands"; then
13006 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13007fi
13008
13009cat >>$CONFIG_STATUS <<\_ACEOF
13010
13011ac_cs_usage="\
13012\`$as_me' instantiates files from templates according to the
13013current configuration.
13014
13015Usage: $0 [OPTIONS] [FILE]...
13016
13017 -h, --help print this help, then exit
13018 -V, --version print version number, then exit
13019 -q, --quiet do not print progress messages
13020 -d, --debug don't remove temporary files
13021 --recheck update $as_me by reconfiguring in the same conditions
13022 --file=FILE[:TEMPLATE]
13023 instantiate the configuration file FILE
13024
13025Configuration files:
13026$config_files
13027
13028Report bugs to <bug-autoconf@gnu.org>."
13029_ACEOF
13030
13031cat >>$CONFIG_STATUS <<_ACEOF
13032ac_cs_version="\\
13033config.status
13034configured by $0, generated by GNU Autoconf 2.59,
13035 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13036
13037Copyright (C) 2003 Free Software Foundation, Inc.
13038This config.status script is free software; the Free Software Foundation
13039gives unlimited permission to copy, distribute and modify it."
13040srcdir=$srcdir
13041INSTALL="$INSTALL"
13042_ACEOF
13043
13044cat >>$CONFIG_STATUS <<\_ACEOF
13045# If no file are specified by the user, then we need to provide default
13046# value. By we need to know if files were specified by the user.
13047ac_need_defaults=:
13048while test $# != 0
13049do
13050 case $1 in
13051 --*=*)
13052 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13053 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13054 ac_shift=:
13055 ;;
13056 -*)
13057 ac_option=$1
13058 ac_optarg=$2
13059 ac_shift=shift
13060 ;;
13061 *) # This is not an option, so the user has probably given explicit
13062 # arguments.
13063 ac_option=$1
13064 ac_need_defaults=false;;
13065 esac
13066
13067 case $ac_option in
13068 # Handling of the options.
13069_ACEOF
13070cat >>$CONFIG_STATUS <<\_ACEOF
13071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13072 ac_cs_recheck=: ;;
13073 --version | --vers* | -V )
13074 echo "$ac_cs_version"; exit 0 ;;
13075 --he | --h)
13076 # Conflict between --help and --header
13077 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13078Try \`$0 --help' for more information." >&5
13079echo "$as_me: error: ambiguous option: $1
13080Try \`$0 --help' for more information." >&2;}
13081 { (exit 1); exit 1; }; };;
13082 --help | --hel | -h )
13083 echo "$ac_cs_usage"; exit 0 ;;
13084 --debug | --d* | -d )
13085 debug=: ;;
13086 --file | --fil | --fi | --f )
13087 $ac_shift
13088 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13089 ac_need_defaults=false;;
13090 --header | --heade | --head | --hea )
13091 $ac_shift
13092 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13093 ac_need_defaults=false;;
13094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13096 ac_cs_silent=: ;;
13097
13098 # This is an error.
13099 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13100Try \`$0 --help' for more information." >&5
13101echo "$as_me: error: unrecognized option: $1
13102Try \`$0 --help' for more information." >&2;}
13103 { (exit 1); exit 1; }; } ;;
13104
13105 *) ac_config_targets="$ac_config_targets $1" ;;
13106
13107 esac
13108 shift
13109done
13110
13111ac_configure_extra_args=
13112
13113if $ac_cs_silent; then
13114 exec 6>/dev/null
13115 ac_configure_extra_args="$ac_configure_extra_args --silent"
13116fi
13117
13118_ACEOF
13119cat >>$CONFIG_STATUS <<_ACEOF
13120if \$ac_cs_recheck; then
13121 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13122 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13123fi
13124
13125_ACEOF
13126
13127
13128
13129
13130
13131cat >>$CONFIG_STATUS <<\_ACEOF
13132for ac_config_target in $ac_config_targets
13133do
13134 case "$ac_config_target" in
13135 # Handling of arguments.
13136 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13137 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13138echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13139 { (exit 1); exit 1; }; };;
13140 esac
13141done
13142
13143# If the user did not use the arguments to specify the items to instantiate,
13144# then the envvar interface is used. Set only those that are not.
13145# We use the long form for the default assignment because of an extremely
13146# bizarre bug on SunOS 4.1.3.
13147if $ac_need_defaults; then
13148 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13149fi
13150
13151# Have a temporary directory for convenience. Make it in the build tree
13152# simply because there is no reason to put it here, and in addition,
13153# creating and moving files from /tmp can sometimes cause problems.
13154# Create a temporary directory, and hook for its removal unless debugging.
13155$debug ||
13156{
13157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13158 trap '{ (exit 1); exit 1; }' 1 2 13 15
13159}
13160
13161# Create a (secure) tmp directory for tmp files.
13162
13163{
13164 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13165 test -n "$tmp" && test -d "$tmp"
13166} ||
13167{
13168 tmp=./confstat$$-$RANDOM
13169 (umask 077 && mkdir $tmp)
13170} ||
13171{
13172 echo "$me: cannot create a temporary directory in ." >&2
13173 { (exit 1); exit 1; }
13174}
13175
13176_ACEOF
13177
13178cat >>$CONFIG_STATUS <<_ACEOF
13179
13180#
13181# CONFIG_FILES section.
13182#
13183
13184# No need to generate the scripts if there are no CONFIG_FILES.
13185# This happens for instance when ./config.status config.h
13186if test -n "\$CONFIG_FILES"; then
13187 # Protect against being on the right side of a sed subst in config.status.
13188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13190s,@SHELL@,$SHELL,;t t
13191s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13192s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13193s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13194s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13195s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13196s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13197s,@exec_prefix@,$exec_prefix,;t t
13198s,@prefix@,$prefix,;t t
13199s,@program_transform_name@,$program_transform_name,;t t
13200s,@bindir@,$bindir,;t t
13201s,@sbindir@,$sbindir,;t t
13202s,@libexecdir@,$libexecdir,;t t
13203s,@datadir@,$datadir,;t t
13204s,@sysconfdir@,$sysconfdir,;t t
13205s,@sharedstatedir@,$sharedstatedir,;t t
13206s,@localstatedir@,$localstatedir,;t t
13207s,@libdir@,$libdir,;t t
13208s,@includedir@,$includedir,;t t
13209s,@oldincludedir@,$oldincludedir,;t t
13210s,@infodir@,$infodir,;t t
13211s,@mandir@,$mandir,;t t
13212s,@build_alias@,$build_alias,;t t
13213s,@host_alias@,$host_alias,;t t
13214s,@target_alias@,$target_alias,;t t
13215s,@DEFS@,$DEFS,;t t
13216s,@ECHO_C@,$ECHO_C,;t t
13217s,@ECHO_N@,$ECHO_N,;t t
13218s,@ECHO_T@,$ECHO_T,;t t
13219s,@LIBS@,$LIBS,;t t
13220s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
13221s,@build@,$build,;t t
13222s,@build_cpu@,$build_cpu,;t t
13223s,@build_vendor@,$build_vendor,;t t
13224s,@build_os@,$build_os,;t t
13225s,@build_noncanonical@,$build_noncanonical,;t t
13226s,@host_noncanonical@,$host_noncanonical,;t t
13227s,@target_noncanonical@,$target_noncanonical,;t t
13228s,@host@,$host,;t t
13229s,@host_cpu@,$host_cpu,;t t
13230s,@host_vendor@,$host_vendor,;t t
13231s,@host_os@,$host_os,;t t
13232s,@target@,$target,;t t
13233s,@target_cpu@,$target_cpu,;t t
13234s,@target_vendor@,$target_vendor,;t t
13235s,@target_os@,$target_os,;t t
13236s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13237s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13238s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13239s,@LN@,$LN,;t t
13240s,@LN_S@,$LN_S,;t t
13241s,@build_libsubdir@,$build_libsubdir,;t t
13242s,@build_subdir@,$build_subdir,;t t
13243s,@host_subdir@,$host_subdir,;t t
13244s,@target_subdir@,$target_subdir,;t t
13245s,@CC@,$CC,;t t
13246s,@CFLAGS@,$CFLAGS,;t t
13247s,@LDFLAGS@,$LDFLAGS,;t t
13248s,@CPPFLAGS@,$CPPFLAGS,;t t
13249s,@ac_ct_CC@,$ac_ct_CC,;t t
13250s,@EXEEXT@,$EXEEXT,;t t
13251s,@OBJEXT@,$OBJEXT,;t t
13252s,@CXX@,$CXX,;t t
13253s,@CXXFLAGS@,$CXXFLAGS,;t t
13254s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13255s,@GNATBIND@,$GNATBIND,;t t
13256s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13257s,@GNATMAKE@,$GNATMAKE,;t t
13258s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13259s,@do_compare@,$do_compare,;t t
13260s,@gmplibs@,$gmplibs,;t t
13261s,@gmpinc@,$gmpinc,;t t
13262s,@ppllibs@,$ppllibs,;t t
13263s,@pplinc@,$pplinc,;t t
13264s,@clooglibs@,$clooglibs,;t t
13265s,@clooginc@,$clooginc,;t t
13266s,@stage1_languages@,$stage1_languages,;t t
13267s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
13268s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
13269s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13270s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
13271s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
13272s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
13273s,@tooldir@,$tooldir,;t t
13274s,@build_tooldir@,$build_tooldir,;t t
13275s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13276s,@GDB_TK@,$GDB_TK,;t t
13277s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13278s,@build_configargs@,$build_configargs,;t t
13279s,@build_configdirs@,$build_configdirs,;t t
13280s,@host_configargs@,$host_configargs,;t t
13281s,@configdirs@,$configdirs,;t t
13282s,@target_configargs@,$target_configargs,;t t
13283s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13284s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13285s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13286s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13287s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13288s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13289s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13290s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13291s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13292s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13293s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13294s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13295s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13296s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13297s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13298s,@config_shell@,$config_shell,;t t
13299s,@YACC@,$YACC,;t t
13300s,@BISON@,$BISON,;t t
13301s,@M4@,$M4,;t t
13302s,@LEX@,$LEX,;t t
13303s,@FLEX@,$FLEX,;t t
13304s,@MAKEINFO@,$MAKEINFO,;t t
13305s,@EXPECT@,$EXPECT,;t t
13306s,@RUNTEST@,$RUNTEST,;t t
13307s,@AR@,$AR,;t t
13308s,@AS@,$AS,;t t
13309s,@DLLTOOL@,$DLLTOOL,;t t
13310s,@LD@,$LD,;t t
13311s,@LIPO@,$LIPO,;t t
13312s,@NM@,$NM,;t t
13313s,@RANLIB@,$RANLIB,;t t
13314s,@STRIP@,$STRIP,;t t
13315s,@WINDRES@,$WINDRES,;t t
13316s,@WINDMC@,$WINDMC,;t t
13317s,@OBJCOPY@,$OBJCOPY,;t t
13318s,@OBJDUMP@,$OBJDUMP,;t t
13319s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13320s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13321s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13322s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13323s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13324s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13325s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13326s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13327s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13328s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13329s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13330s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13331s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13332s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13333s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13334s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13335s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13336s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13337s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13338s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13339s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13340s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13341s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13342s,@MAINT@,$MAINT,;t t
13343s,@stage1_cflags@,$stage1_cflags,;t t
13344s,@stage1_checking@,$stage1_checking,;t t
13345s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13346s,@datarootdir@,$datarootdir,;t t
13347s,@docdir@,$docdir,;t t
13348s,@pdfdir@,$pdfdir,;t t
13349s,@htmldir@,$htmldir,;t t
13350s,@LIBOBJS@,$LIBOBJS,;t t
13351s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13352/@serialization_dependencies@/r $serialization_dependencies
13353s,@serialization_dependencies@,,;t t
13354/@host_makefile_frag@/r $host_makefile_frag
13355s,@host_makefile_frag@,,;t t
13356/@target_makefile_frag@/r $target_makefile_frag
13357s,@target_makefile_frag@,,;t t
13358/@alphaieee_frag@/r $alphaieee_frag
13359s,@alphaieee_frag@,,;t t
13360/@ospace_frag@/r $ospace_frag
13361s,@ospace_frag@,,;t t
13362CEOF
13363
13364_ACEOF
13365
13366 cat >>$CONFIG_STATUS <<\_ACEOF
13367 # Split the substitutions into bite-sized pieces for seds with
13368 # small command number limits, like on Digital OSF/1 and HP-UX.
13369 ac_max_sed_lines=48
13370 ac_sed_frag=1 # Number of current file.
13371 ac_beg=1 # First line for current file.
13372 ac_end=$ac_max_sed_lines # Line after last line for current file.
13373 ac_more_lines=:
13374 ac_sed_cmds=
13375 while $ac_more_lines; do
13376 if test $ac_beg -gt 1; then
13377 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13378 else
13379 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13380 fi
13381 if test ! -s $tmp/subs.frag; then
13382 ac_more_lines=false
13383 else
13384 # The purpose of the label and of the branching condition is to
13385 # speed up the sed processing (if there are no `@' at all, there
13386 # is no need to browse any of the substitutions).
13387 # These are the two extra sed commands mentioned above.
13388 (echo ':t
13389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13390 if test -z "$ac_sed_cmds"; then
13391 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13392 else
13393 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13394 fi
13395 ac_sed_frag=`expr $ac_sed_frag + 1`
13396 ac_beg=$ac_end
13397 ac_end=`expr $ac_end + $ac_max_sed_lines`
13398 fi
13399 done
13400 if test -z "$ac_sed_cmds"; then
13401 ac_sed_cmds=cat
13402 fi
13403fi # test -n "$CONFIG_FILES"
13404
13405_ACEOF
13406cat >>$CONFIG_STATUS <<\_ACEOF
13407for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13409 case $ac_file in
13410 - | *:- | *:-:* ) # input from stdin
13411 cat >$tmp/stdin
13412 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13414 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13416 * ) ac_file_in=$ac_file.in ;;
13417 esac
13418
13419 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13420 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13421$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13422 X"$ac_file" : 'X\(//\)[^/]' \| \
13423 X"$ac_file" : 'X\(//\)$' \| \
13424 X"$ac_file" : 'X\(/\)' \| \
13425 . : '\(.\)' 2>/dev/null ||
13426echo X"$ac_file" |
13427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13429 /^X\(\/\/\)$/{ s//\1/; q; }
13430 /^X\(\/\).*/{ s//\1/; q; }
13431 s/.*/./; q'`
13432 { if $as_mkdir_p; then
13433 mkdir -p "$ac_dir"
13434 else
13435 as_dir="$ac_dir"
13436 as_dirs=
13437 while test ! -d "$as_dir"; do
13438 as_dirs="$as_dir $as_dirs"
13439 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13441 X"$as_dir" : 'X\(//\)[^/]' \| \
13442 X"$as_dir" : 'X\(//\)$' \| \
13443 X"$as_dir" : 'X\(/\)' \| \
13444 . : '\(.\)' 2>/dev/null ||
13445echo X"$as_dir" |
13446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13448 /^X\(\/\/\)$/{ s//\1/; q; }
13449 /^X\(\/\).*/{ s//\1/; q; }
13450 s/.*/./; q'`
13451 done
13452 test ! -n "$as_dirs" || mkdir $as_dirs
13453 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13454echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13455 { (exit 1); exit 1; }; }; }
13456
13457 ac_builddir=.
13458
13459if test "$ac_dir" != .; then
13460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13461 # A "../" for each directory in $ac_dir_suffix.
13462 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13463else
13464 ac_dir_suffix= ac_top_builddir=
13465fi
13466
13467case $srcdir in
13468 .) # No --srcdir option. We are building in place.
13469 ac_srcdir=.
13470 if test -z "$ac_top_builddir"; then
13471 ac_top_srcdir=.
13472 else
13473 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13474 fi ;;
13475 [\\/]* | ?:[\\/]* ) # Absolute path.
13476 ac_srcdir=$srcdir$ac_dir_suffix;
13477 ac_top_srcdir=$srcdir ;;
13478 *) # Relative path.
13479 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13480 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13481esac
13482
13483# Do not use `cd foo && pwd` to compute absolute paths, because
13484# the directories may not exist.
13485case `pwd` in
13486.) ac_abs_builddir="$ac_dir";;
13487*)
13488 case "$ac_dir" in
13489 .) ac_abs_builddir=`pwd`;;
13490 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13491 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13492 esac;;
13493esac
13494case $ac_abs_builddir in
13495.) ac_abs_top_builddir=${ac_top_builddir}.;;
13496*)
13497 case ${ac_top_builddir}. in
13498 .) ac_abs_top_builddir=$ac_abs_builddir;;
13499 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13500 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13501 esac;;
13502esac
13503case $ac_abs_builddir in
13504.) ac_abs_srcdir=$ac_srcdir;;
13505*)
13506 case $ac_srcdir in
13507 .) ac_abs_srcdir=$ac_abs_builddir;;
13508 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13509 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13510 esac;;
13511esac
13512case $ac_abs_builddir in
13513.) ac_abs_top_srcdir=$ac_top_srcdir;;
13514*)
13515 case $ac_top_srcdir in
13516 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13517 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13518 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13519 esac;;
13520esac
13521
13522
13523 case $INSTALL in
13524 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13525 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13526 esac
13527
13528 if test x"$ac_file" != x-; then
13529 { echo "$as_me:$LINENO: creating $ac_file" >&5
13530echo "$as_me: creating $ac_file" >&6;}
13531 rm -f "$ac_file"
13532 fi
13533 # Let's still pretend it is `configure' which instantiates (i.e., don't
13534 # use $as_me), people would be surprised to read:
13535 # /* config.h. Generated by config.status. */
13536 if test x"$ac_file" = x-; then
13537 configure_input=
13538 else
13539 configure_input="$ac_file. "
13540 fi
13541 configure_input=$configure_input"Generated from `echo $ac_file_in |
13542 sed 's,.*/,,'` by configure."
13543
13544 # First look for the input files in the build tree, otherwise in the
13545 # src tree.
13546 ac_file_inputs=`IFS=:
13547 for f in $ac_file_in; do
13548 case $f in
13549 -) echo $tmp/stdin ;;
13550 [\\/$]*)
13551 # Absolute (can't be DOS-style, as IFS=:)
13552 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13553echo "$as_me: error: cannot find input file: $f" >&2;}
13554 { (exit 1); exit 1; }; }
13555 echo "$f";;
13556 *) # Relative
13557 if test -f "$f"; then
13558 # Build tree
13559 echo "$f"
13560 elif test -f "$srcdir/$f"; then
13561 # Source tree
13562 echo "$srcdir/$f"
13563 else
13564 # /dev/null tree
13565 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13566echo "$as_me: error: cannot find input file: $f" >&2;}
13567 { (exit 1); exit 1; }; }
13568 fi;;
13569 esac
13570 done` || { (exit 1); exit 1; }
13571_ACEOF
13572cat >>$CONFIG_STATUS <<_ACEOF
13573 sed "$ac_vpsub
13574$extrasub
13575_ACEOF
13576cat >>$CONFIG_STATUS <<\_ACEOF
13577:t
13578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13579s,@configure_input@,$configure_input,;t t
13580s,@srcdir@,$ac_srcdir,;t t
13581s,@abs_srcdir@,$ac_abs_srcdir,;t t
13582s,@top_srcdir@,$ac_top_srcdir,;t t
13583s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13584s,@builddir@,$ac_builddir,;t t
13585s,@abs_builddir@,$ac_abs_builddir,;t t
13586s,@top_builddir@,$ac_top_builddir,;t t
13587s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13588s,@INSTALL@,$ac_INSTALL,;t t
13589" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13590 rm -f $tmp/stdin
13591 if test x"$ac_file" != x-; then
13592 mv $tmp/out $ac_file
13593 else
13594 cat $tmp/out
13595 rm -f $tmp/out
13596 fi
13597
13598done
13599_ACEOF
13600
13601cat >>$CONFIG_STATUS <<\_ACEOF
13602
13603{ (exit 0); exit 0; }
13604_ACEOF
13605chmod +x $CONFIG_STATUS
13606ac_clean_files=$ac_clean_files_save
13607
13608
13609# configure is writing to config.log, and then calls config.status.
13610# config.status does its own redirection, appending to config.log.
13611# Unfortunately, on DOS this fails, as config.log is still kept open
13612# by configure, so config.status won't be able to write to it; its
13613# output is simply discarded. So we exec the FD to /dev/null,
13614# effectively closing config.log, so it can be properly (re)opened and
13615# appended to by config.status. When coming back to configure, we
13616# need to make the FD available again.
13617if test "$no_create" != yes; then
13618 ac_cs_success=:
13619 ac_config_status_args=
13620 test "$silent" = yes &&
13621 ac_config_status_args="$ac_config_status_args --quiet"
13622 exec 5>/dev/null
13623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13624 exec 5>>config.log
13625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13626 # would make configure fail if this is the last instruction.
13627 $ac_cs_success || { (exit 1); exit 1; }
13628fi
13629
This page took 0.073147 seconds and 4 git commands to generate.