* m68klinux-nat.c: Remove obsolete comment.
[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 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*)
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*-*-*)
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* | x86_64-*-darwin9*)
2219 noconfigdirs="$noconfigdirs ld gas gprof"
2220 noconfigdirs="$noconfigdirs sim target-rda"
2221 ;;
2222 *-*-darwin*)
2223 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2224 noconfigdirs="$noconfigdirs sim target-rda"
2225 noconfigdirs="$noconfigdirs ${libgcj}"
2226 ;;
2227 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2228 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2229 ;;
2230 *-*-freebsd*)
2231 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2232 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2233 && test -f /usr/local/include/gmp.h; then
2234 with_gmp=/usr/local
2235 fi
2236
2237 # Skip some stuff that's unsupported on some FreeBSD configurations.
2238 case "${target}" in
2239 i*86-*-*) ;;
2240 alpha*-*-*) ;;
2241 *)
2242 noconfigdirs="$noconfigdirs ${libgcj}"
2243 ;;
2244 esac
2245 ;;
2246 *-*-kaos*)
2247 # Remove unsupported stuff on all kaOS configurations.
2248 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2249 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2250 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2251 noconfigdirs="$noconfigdirs target-libgloss"
2252 ;;
2253 *-*-netbsd*)
2254 # Skip some stuff on all NetBSD configurations.
2255 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2256
2257 # Skip some stuff that's unsupported on some NetBSD configurations.
2258 case "${target}" in
2259 i*86-*-netbsdelf*) ;;
2260 arm*-*-netbsdelf*) ;;
2261 *)
2262 noconfigdirs="$noconfigdirs ${libgcj}"
2263 ;;
2264 esac
2265 ;;
2266 *-*-netware*)
2267 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2268 ;;
2269 *-*-rtems*)
2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2271 ;;
2272 # The tpf target doesn't support gdb yet.
2273 *-*-tpf*)
2274 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2275 ;;
2276 *-*-uclinux*)
2277 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2278 ;;
2279 *-*-vxworks*)
2280 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2281 ;;
2282 alpha*-dec-osf*)
2283 # ld works, but does not support shared libraries.
2284 # newlib is not 64 bit ready. I'm not sure about fileutils.
2285 # gas doesn't generate exception information.
2286 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2287 ;;
2288 alpha*-*-*vms*)
2289 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2290 ;;
2291 alpha*-*-linux*)
2292 # newlib is not 64 bit ready
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2294 ;;
2295 alpha*-*-*)
2296 # newlib is not 64 bit ready
2297 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2298 ;;
2299 am33_2.0-*-linux*)
2300 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2301 ;;
2302 sh-*-linux*)
2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2304 ;;
2305 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2306 noconfigdirs="$noconfigdirs ${libgcj}"
2307 noconfigdirs="$noconfigdirs target-examples"
2308 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2309 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2310 noconfigdirs="$noconfigdirs expect dejagnu"
2311 # the C++ libraries don't build on top of CE's C libraries
2312 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2313 noconfigdirs="$noconfigdirs target-newlib"
2314 case "${host}" in
2315 *-*-cygwin*) ;; # keep gdb and readline
2316 *) noconfigdirs="$noconfigdirs gdb readline"
2317 ;;
2318 esac
2319 libgloss_dir=wince
2320 ;;
2321 arc-*-*)
2322 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2323 ;;
2324 arm-semi-aof )
2325 ;;
2326 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2327 noconfigdirs="$noconfigdirs ${libgcj}"
2328 libgloss_dir=arm
2329 ;;
2330 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2331 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2332 libgloss_dir=arm
2333 ;;
2334 arm*-*-linux-gnueabi)
2335 noconfigdirs="$noconfigdirs target-qthreads"
2336 case ${with_newlib} in
2337 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2338 esac
2339 libgloss_dir=arm
2340 ;;
2341 arm*-*-symbianelf*)
2342 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2343 libgloss_dir=arm
2344 ;;
2345 arm-*-pe*)
2346 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2347 ;;
2348 thumb-*-coff)
2349 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2350 ;;
2351 thumb-*-elf)
2352 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2353 ;;
2354 thumb-*-pe)
2355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2356 ;;
2357 arm-*-riscix*)
2358 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2359 ;;
2360 avr-*-*)
2361 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2362 ;;
2363 bfin-*-*)
2364 noconfigdirs="$noconfigdirs gdb"
2365 if test x${is_cross_compiler} != xno ; then
2366 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2367 fi
2368 ;;
2369 c4x-*-* | tic4x-*-*)
2370 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2371 ;;
2372 c54x*-*-* | tic54x-*-*)
2373 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2374 ;;
2375 cr16-*-*)
2376 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2377 ;;
2378 cris-*-* | crisv32-*-*)
2379 unsupported_languages="$unsupported_languages java"
2380 case "${target}" in
2381 *-*-aout)
2382 unsupported_languages="$unsupported_languages fortran"
2383 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2384 *-*-elf)
2385 noconfigdirs="$noconfigdirs target-boehm-gc";;
2386 *-*-linux*)
2387 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2388 *)
2389 unsupported_languages="$unsupported_languages fortran"
2390 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2391 esac
2392 libgloss_dir=cris
2393 ;;
2394 crx-*-*)
2395 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2396 ;;
2397 d10v-*-*)
2398 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2399 ;;
2400 d30v-*-*)
2401 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2402 ;;
2403 ep9312-*-elf | ep9312-*-coff)
2404 libgloss_dir=arm
2405 ;;
2406 fr30-*-elf*)
2407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2408 ;;
2409 frv-*-*)
2410 noconfigdirs="$noconfigdirs ${libgcj}"
2411 ;;
2412 h8300*-*-*)
2413 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2414 ;;
2415 h8500-*-*)
2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2417 ;;
2418 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2419 ;;
2420 hppa*64*-*-linux* | parisc*64*-*-linux*)
2421 # In this case, it's because the hppa64-linux target is for
2422 # the kernel only at this point and has no libc, and thus no
2423 # headers, crt*.o, etc., all of which are needed by these.
2424 noconfigdirs="$noconfigdirs target-zlib"
2425 ;;
2426 parisc*-*-linux* | hppa*-*-linux*)
2427 ;;
2428 hppa*-*-*elf* | \
2429 hppa*-*-lites* | \
2430 hppa*-*-openbsd* | \
2431 hppa*64*-*-*)
2432 noconfigdirs="$noconfigdirs ${libgcj}"
2433 ;;
2434 hppa*-hp-hpux11*)
2435 noconfigdirs="$noconfigdirs ld shellutils"
2436 ;;
2437 hppa*-*-pro*)
2438 libgloss_dir=pa
2439 ;;
2440 hppa*-*-*)
2441 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2442 # build on HP-UX 10.20.
2443 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2444 ;;
2445 i960-*-*)
2446 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2447 ;;
2448 ia64*-*-elf*)
2449 # No gdb support yet.
2450 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2451 ;;
2452 ia64*-**-hpux*)
2453 # No gdb or ld support yet.
2454 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2455 ;;
2456 ia64*-*-*vms*)
2457 # No gdb or ld support yet.
2458 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2459 ;;
2460 i370-*-opened*)
2461 ;;
2462 i[3456789]86-*-coff | i[3456789]86-*-elf)
2463 noconfigdirs="$noconfigdirs ${libgcj}"
2464 libgloss_dir=i386
2465 ;;
2466 i[3456789]86-*-linux*)
2467 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2468 # not build java stuff by default.
2469 case "${target}" in
2470 *-*-*libc1*)
2471 noconfigdirs="$noconfigdirs ${libgcj}";;
2472 esac
2473
2474 # This section makes it possible to build newlib natively on linux.
2475 # If we are using a cross compiler then don't configure newlib.
2476 if test x${is_cross_compiler} != xno ; then
2477 noconfigdirs="$noconfigdirs target-newlib"
2478 fi
2479 noconfigdirs="$noconfigdirs target-libgloss"
2480 # If we are not using a cross compiler, do configure newlib.
2481 # Note however, that newlib will only be configured in this situation
2482 # if the --with-newlib option has been given, because otherwise
2483 # 'target-newlib' will appear in skipdirs.
2484 ;;
2485 i[3456789]86-*-mingw32*)
2486 target_configdirs="$target_configdirs target-winsup"
2487 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2488 ;;
2489 x86_64-*-mingw*)
2490 target_configdirs="$target_configdirs target-winsup"
2491 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2492 ;;
2493 *-*-cygwin*)
2494 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2495 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2496 # always build newlib if winsup directory is present.
2497 if test -d "$srcdir/winsup/cygwin"; then
2498 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2499 elif test -d "$srcdir/newlib"; then
2500 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2501 fi
2502 ;;
2503 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2504 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2505 ;;
2506 i[3456789]86-*-pe)
2507 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2508 ;;
2509 i[3456789]86-*-sco3.2v5*)
2510 # The linker does not yet know about weak symbols in COFF,
2511 # and is not configured to handle mixed ELF and COFF.
2512 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2513 ;;
2514 i[3456789]86-*-sco*)
2515 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2516 ;;
2517 i[3456789]86-*-solaris2*)
2518 noconfigdirs="$noconfigdirs target-libgloss"
2519 ;;
2520 i[3456789]86-*-sysv4*)
2521 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2522 ;;
2523 i[3456789]86-*-beos*)
2524 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2525 ;;
2526 i[3456789]86-*-rdos*)
2527 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2528 ;;
2529 m32r-*-*)
2530 noconfigdirs="$noconfigdirs ${libgcj}"
2531 ;;
2532 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2533 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2534 libgloss_dir=m68hc11
2535 ;;
2536 m68k-*-elf*)
2537 noconfigdirs="$noconfigdirs ${libgcj}"
2538 ;;
2539 m68k-*-coff*)
2540 noconfigdirs="$noconfigdirs ${libgcj}"
2541 ;;
2542 m68*-*-* | fido-*-*)
2543 libgloss_dir=m68k
2544 ;;
2545 mcore-*-pe*)
2546 # The EPOC C++ environment does not support exceptions or rtti,
2547 # and so building libstdc++-v3 tends not to always work.
2548 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2549 ;;
2550 mmix-*-*)
2551 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2552 unsupported_languages="$unsupported_languages fortran java"
2553 ;;
2554 mn10200-*-*)
2555 noconfigdirs="$noconfigdirs ${libgcj}"
2556 ;;
2557 mn10300-*-*)
2558 noconfigdirs="$noconfigdirs ${libgcj}"
2559 ;;
2560 mt-*-*)
2561 noconfigdirs="$noconfigdirs sim"
2562 ;;
2563 powerpc-*-aix*)
2564 # copied from rs6000-*-* entry
2565 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2566 ;;
2567 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2568 target_configdirs="$target_configdirs target-winsup"
2569 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2570 # always build newlib.
2571 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2572 ;;
2573 # This is temporary until we can link against shared libraries
2574 powerpcle-*-solaris*)
2575 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2576 libgloss_dir=rs6000
2577 ;;
2578 powerpc-*-beos*)
2579 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2580 ;;
2581 powerpc-*-eabi)
2582 noconfigdirs="$noconfigdirs ${libgcj}"
2583 libgloss_dir=rs6000
2584 ;;
2585 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2586 libgloss_dir=rs6000
2587 ;;
2588 rs6000-*-lynxos*)
2589 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2590 ;;
2591 rs6000-*-aix*)
2592 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2593 ;;
2594 rs6000-*-*)
2595 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2596 ;;
2597 m68k-apollo-*)
2598 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2599 ;;
2600 mips*-sde-elf*)
2601 skipdirs="$skipdirs target-libiberty"
2602 noconfigdirs="$noconfigdirs ${libgcj}"
2603 if test x$with_newlib = xyes; then
2604 noconfigdirs="$noconfigdirs gprof"
2605 fi
2606 libgloss_dir=mips
2607 ;;
2608 mips*-*-irix5*)
2609 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2610 ;;
2611 mips*-*-irix6*)
2612 # Linking libjava exceeds command-line length limits on at least
2613 # IRIX 6.2, but not on IRIX 6.5.
2614 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2615 # <oldham@codesourcery.com>
2616 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2617 ;;
2618 mips*-*-bsd*)
2619 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2620 ;;
2621 mips*-*-linux*)
2622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2623 ;;
2624 mips*-*-*)
2625 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2626 libgloss_dir=mips
2627 ;;
2628 romp-*-*)
2629 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2630 ;;
2631 sh-*-* | sh64-*-*)
2632 case "${host}" in
2633 i[3456789]86-*-vsta) ;; # don't add gprof back in
2634 i[3456789]86-*-go32*) ;; # don't add gprof back in
2635 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2636 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2637 esac
2638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2639 ;;
2640 sparclet-*-aout* | sparc86x-*-*)
2641 libgloss_dir=sparc
2642 ;;
2643 sparc-*-elf*)
2644 noconfigdirs="$noconfigdirs ${libgcj}"
2645 ;;
2646 sparc64-*-elf*)
2647 noconfigdirs="$noconfigdirs ${libgcj}"
2648 libgloss_dir=sparc
2649 ;;
2650 sparclite-*-*)
2651 noconfigdirs="$noconfigdirs ${libgcj}"
2652 libgloss_dir=sparc
2653 ;;
2654 sparc-*-sunos4*)
2655 noconfigdirs="$noconfigdirs ${libgcj}"
2656 if test x${is_cross_compiler} != xno ; then
2657 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2658 else
2659 use_gnu_ld=no
2660 fi
2661 ;;
2662 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2663 noconfigdirs="$noconfigdirs ${libgcj}"
2664 ;;
2665 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2666 ;;
2667 v810-*-*)
2668 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2669 ;;
2670 v850-*-*)
2671 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2672 ;;
2673 v850e-*-*)
2674 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2675 ;;
2676 v850ea-*-*)
2677 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2678 ;;
2679 vax-*-vms)
2680 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2681 ;;
2682 vax-*-*)
2683 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2684 ;;
2685 xtensa*-*-*)
2686 noconfigdirs="$noconfigdirs ${libgcj}"
2687 ;;
2688 ip2k-*-*)
2689 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2690 ;;
2691 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2693 ;;
2694 *-*-lynxos*)
2695 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2696 ;;
2697 *-*-*)
2698 noconfigdirs="$noconfigdirs ${libgcj}"
2699 ;;
2700esac
2701
2702# If we aren't building newlib, then don't build libgloss, since libgloss
2703# depends upon some newlib header files.
2704case "${noconfigdirs}" in
2705 *target-libgloss*) ;;
2706 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2707esac
2708
2709# Work in distributions that contain no compiler tools, like Autoconf.
2710tentative_cc=""
2711host_makefile_frag=/dev/null
2712if test -d ${srcdir}/config ; then
2713case "${host}" in
2714 m68k-hp-hpux*)
2715 # Avoid "too much defining" errors from HPUX compiler.
2716 tentative_cc="cc -Wp,-H256000"
2717 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2718 # If it's HP/UX ar, this should be harmless.
2719 RANLIB="ar ts"
2720 ;;
2721 m68k-apollo-sysv*)
2722 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2723 ;;
2724 m68k-apollo-bsd*)
2725 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2726 # chokes on bfd, the compiler won't let you assign integers to enums, and
2727 # other problems. Defining CC to gcc is a questionable way to say "don't use
2728 # the apollo compiler" (the preferred version of GCC could be called cc,
2729 # or whatever), but I'm not sure leaving CC as cc is any better...
2730 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2731 # Used to have BISON=yacc.
2732 tentative_cc=gcc
2733 ;;
2734 m88k-dg-dgux*)
2735 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2736 ;;
2737 m88k-harris-cxux*)
2738 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2739 tentative_cc="cc -Xa"
2740 host_makefile_frag="config/mh-cxux"
2741 ;;
2742 m88k-motorola-sysv*)
2743 ;;
2744 mips*-dec-ultrix*)
2745 tentative_cc="cc -Wf,-XNg1000"
2746 host_makefile_frag="config/mh-decstation"
2747 ;;
2748 mips*-nec-sysv4*)
2749 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2750 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2751 host_makefile_frag="config/mh-necv4"
2752 ;;
2753 mips*-sgi-irix4*)
2754 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2755 # environment. Also bump switch table size so that cp-parse will
2756 # compile. Bump string length limit so linker builds.
2757 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2758 ;;
2759 mips*-*-sysv4*)
2760 host_makefile_frag="config/mh-sysv4"
2761 ;;
2762 mips*-*-sysv*)
2763 # This is for a MIPS running RISC/os 4.52C.
2764
2765 # This is needed for GDB, but needs to be in the top-level make because
2766 # if a library is compiled with the bsd headers and gets linked with the
2767 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2768 # a different size).
2769 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2770 # known except to select the sysv environment. Could we use /proc instead?
2771 # These "sysv environments" and "bsd environments" often end up being a pain.
2772 #
2773 # This is not part of CFLAGS because perhaps not all C compilers have this
2774 # option.
2775 tentative_cc="cc -systype sysv"
2776 ;;
2777 i370-ibm-opened*)
2778 tentative_cc="c89"
2779 ;;
2780 i[3456789]86-*-sysv5*)
2781 host_makefile_frag="config/mh-sysv5"
2782 ;;
2783 i[3456789]86-*-dgux*)
2784 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2785 host_makefile_frag="config/mh-dgux386"
2786 ;;
2787 i[3456789]86-ncr-sysv4.3*)
2788 # The MetaWare compiler will generate a copyright message unless you
2789 # turn it off by adding the -Hnocopyr flag.
2790 tentative_cc="cc -Hnocopyr"
2791 ;;
2792 i[3456789]86-ncr-sysv4*)
2793 # for an NCR 3000 (i486/SVR4) system.
2794 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2795 # This compiler not only emits obnoxious copyright messages every time
2796 # you run it, but it chokes and dies on a whole bunch of GNU source
2797 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2798 tentative_cc="/usr/ccs/ATT/cc"
2799 host_makefile_frag="config/mh-ncr3000"
2800 ;;
2801 i[3456789]86-*-sco3.2v5*)
2802 ;;
2803 i[3456789]86-*-sco*)
2804 # The native C compiler botches some simple uses of const. Unfortunately,
2805 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2806 tentative_cc="cc -Dconst="
2807 host_makefile_frag="config/mh-sco"
2808 ;;
2809 i[3456789]86-*-udk*)
2810 host_makefile_frag="config/mh-sysv5"
2811 ;;
2812 i[3456789]86-*-solaris2*)
2813 host_makefile_frag="config/mh-sysv4"
2814 ;;
2815 i[3456789]86-*-msdosdjgpp*)
2816 host_makefile_frag="config/mh-djgpp"
2817 ;;
2818 *-cygwin*)
2819
2820echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2821echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2822echo a >cygwin-cat-check
2823if test `cat cygwin-cat-check` == a ; then
2824 rm cygwin-cat-check
2825 echo "$as_me:$LINENO: result: yes" >&5
2826echo "${ECHO_T}yes" >&6
2827else
2828 rm cygwin-cat-check
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2832 Please either mount the build directory in binary mode or run the following
2833 commands before running any configure script:
2834set -o igncr
2835export SHELLOPTS
2836 " >&5
2837echo "$as_me: error: The cat command does not ignore carriage return characters.
2838 Please either mount the build directory in binary mode or run the following
2839 commands before running any configure script:
2840set -o igncr
2841export SHELLOPTS
2842 " >&2;}
2843 { (exit 1); exit 1; }; }
2844fi
2845
2846 host_makefile_frag="config/mh-cygwin"
2847 ;;
2848 *-mingw*)
2849 host_makefile_frag="config/mh-mingw"
2850 ;;
2851 *-interix*)
2852 host_makefile_frag="config/mh-interix"
2853 ;;
2854 vax-*-ultrix2*)
2855 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2856 tentative_cc=gcc
2857 ;;
2858 *-*-solaris2*)
2859 host_makefile_frag="config/mh-solaris"
2860 ;;
2861 m68k-sun-sunos*)
2862 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2863 # without overflowing the jump tables (-J says to use a 32 bit table)
2864 tentative_cc="cc -J"
2865 ;;
2866 hppa*-hp-hpux10*)
2867 tentative_cc="cc -Wp,-H256000"
2868 host_makefile_frag="config/mh-pa-hpux10"
2869 ;;
2870 hppa*-hp-hpux* | hppa*-*-hiux*)
2871 tentative_cc="cc -Wp,-H256000"
2872 host_makefile_frag="config/mh-pa"
2873 ;;
2874 hppa*-*)
2875 host_makefile_frag="config/mh-pa"
2876 ;;
2877 *-hp-hpux* | *-*-hiux*)
2878 tentative_cc="cc -Wp,-H256000"
2879 ;;
2880 rs6000-*-lynxos*)
2881 # /bin/cc is less than useful for our purposes. Always use GCC
2882 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2883 host_makefile_frag="config/mh-lynxrs6k"
2884 ;;
2885 powerpc-*-darwin*)
2886 host_makefile_frag="config/mh-ppc-darwin"
2887 ;;
2888 powerpc-*-aix*)
2889 host_makefile_frag="config/mh-ppc-aix"
2890 ;;
2891 rs6000-*-aix*)
2892 host_makefile_frag="config/mh-ppc-aix"
2893 ;;
2894 *-*-lynxos*)
2895 # /bin/cc is less than useful for our purposes. Always use GCC
2896 tentative_cc="/bin/gcc"
2897 ;;
2898 *-*-sysv4*)
2899 host_makefile_frag="config/mh-sysv4"
2900 ;;
2901 # This is placed last to prevent interfering with the cases above.
2902 i[3456789]86-*-*)
2903 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2904 host_makefile_frag="config/mh-x86omitfp"
2905 ;;
2906esac
2907fi
2908
2909# If we aren't going to be using gcc, see if we can extract a definition
2910# of CC from the fragment.
2911# Actually, use the 'pre-extracted' version above.
2912if test -z "${CC}" && test "${build}" = "${host}" ; then
2913 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2914 found=
2915 for dir in $PATH; do
2916 test -z "$dir" && dir=.
2917 if test -f $dir/gcc; then
2918 found=yes
2919 break
2920 fi
2921 done
2922 IFS="$save_ifs"
2923 if test -z "${found}" && test -n "${tentative_cc}" ; then
2924 CC=$tentative_cc
2925 fi
2926fi
2927
2928if test "${build}" != "${host}" ; then
2929 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2930 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2931 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2932 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2933 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2934 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2935 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2936 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2937 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2938 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2939 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2940 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2941else
2942 AR_FOR_BUILD="\$(AR)"
2943 AS_FOR_BUILD="\$(AS)"
2944 CC_FOR_BUILD="\$(CC)"
2945 CXX_FOR_BUILD="\$(CXX)"
2946 GCJ_FOR_BUILD="\$(GCJ)"
2947 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2948 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2949 LD_FOR_BUILD="\$(LD)"
2950 NM_FOR_BUILD="\$(NM)"
2951 RANLIB_FOR_BUILD="\$(RANLIB)"
2952 WINDRES_FOR_BUILD="\$(WINDRES)"
2953 WINDMC_FOR_BUILD="\$(WINDMC)"
2954fi
2955
2956ac_ext=c
2957ac_cpp='$CPP $CPPFLAGS'
2958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964echo "$as_me:$LINENO: checking for $ac_word" >&5
2965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966if test "${ac_cv_prog_CC+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983done
2984done
2985
2986fi
2987fi
2988CC=$ac_cv_prog_CC
2989if test -n "$CC"; then
2990 echo "$as_me:$LINENO: result: $CC" >&5
2991echo "${ECHO_T}$CC" >&6
2992else
2993 echo "$as_me:$LINENO: result: no" >&5
2994echo "${ECHO_T}no" >&6
2995fi
2996
2997fi
2998if test -z "$ac_cv_prog_CC"; then
2999 ac_ct_CC=$CC
3000 # Extract the first word of "gcc", so it can be a program name with args.
3001set dummy gcc; ac_word=$2
3002echo "$as_me:$LINENO: checking for $ac_word" >&5
3003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CC="gcc"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
3022done
3023
3024fi
3025fi
3026ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027if test -n "$ac_ct_CC"; then
3028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3029echo "${ECHO_T}$ac_ct_CC" >&6
3030else
3031 echo "$as_me:$LINENO: result: no" >&5
3032echo "${ECHO_T}no" >&6
3033fi
3034
3035 CC=$ac_ct_CC
3036else
3037 CC="$ac_cv_prog_CC"
3038fi
3039
3040if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043set dummy ${ac_tool_prefix}cc; ac_word=$2
3044echo "$as_me:$LINENO: checking for $ac_word" >&5
3045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046if test "${ac_cv_prog_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_CC="${ac_tool_prefix}cc"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063done
3064done
3065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070 echo "$as_me:$LINENO: result: $CC" >&5
3071echo "${ECHO_T}$CC" >&6
3072else
3073 echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
3075fi
3076
3077fi
3078if test -z "$ac_cv_prog_CC"; then
3079 ac_ct_CC=$CC
3080 # Extract the first word of "cc", so it can be a program name with args.
3081set dummy cc; ac_word=$2
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_CC="cc"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102done
3103
3104fi
3105fi
3106ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107if test -n "$ac_ct_CC"; then
3108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3109echo "${ECHO_T}$ac_ct_CC" >&6
3110else
3111 echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
3115 CC=$ac_ct_CC
3116else
3117 CC="$ac_cv_prog_CC"
3118fi
3119
3120fi
3121if test -z "$CC"; then
3122 # Extract the first word of "cc", so it can be a program name with args.
3123set dummy cc; ac_word=$2
3124echo "$as_me:$LINENO: checking for $ac_word" >&5
3125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126if test "${ac_cv_prog_CC+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131else
3132 ac_prog_rejected=no
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3141 ac_prog_rejected=yes
3142 continue
3143 fi
3144 ac_cv_prog_CC="cc"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148done
3149done
3150
3151if test $ac_prog_rejected = yes; then
3152 # We found a bogon in the path, so make sure we never use it.
3153 set dummy $ac_cv_prog_CC
3154 shift
3155 if test $# != 0; then
3156 # We chose a different compiler from the bogus one.
3157 # However, it has the same basename, so the bogon will be chosen
3158 # first if we set CC to just the basename; use the full file name.
3159 shift
3160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3161 fi
3162fi
3163fi
3164fi
3165CC=$ac_cv_prog_CC
3166if test -n "$CC"; then
3167 echo "$as_me:$LINENO: result: $CC" >&5
3168echo "${ECHO_T}$CC" >&6
3169else
3170 echo "$as_me:$LINENO: result: no" >&5
3171echo "${ECHO_T}no" >&6
3172fi
3173
3174fi
3175if test -z "$CC"; then
3176 if test -n "$ac_tool_prefix"; then
3177 for ac_prog in cl
3178 do
3179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3181echo "$as_me:$LINENO: checking for $ac_word" >&5
3182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183if test "${ac_cv_prog_CC+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200done
3201done
3202
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
3207 echo "$as_me:$LINENO: result: $CC" >&5
3208echo "${ECHO_T}$CC" >&6
3209else
3210 echo "$as_me:$LINENO: result: no" >&5
3211echo "${ECHO_T}no" >&6
3212fi
3213
3214 test -n "$CC" && break
3215 done
3216fi
3217if test -z "$CC"; then
3218 ac_ct_CC=$CC
3219 for ac_prog in cl
3220do
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222set dummy $ac_prog; ac_word=$2
3223echo "$as_me:$LINENO: checking for $ac_word" >&5
3224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_CC="$ac_prog"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242done
3243done
3244
3245fi
3246fi
3247ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248if test -n "$ac_ct_CC"; then
3249 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3250echo "${ECHO_T}$ac_ct_CC" >&6
3251else
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254fi
3255
3256 test -n "$ac_ct_CC" && break
3257done
3258
3259 CC=$ac_ct_CC
3260fi
3261
3262fi
3263
3264
3265test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3266echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3268See \`config.log' for more details." >&5
3269echo "$as_me: error: no acceptable C compiler found in \$PATH
3270See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }; }
3272
3273# Provide some information about the compiler.
3274echo "$as_me:$LINENO:" \
3275 "checking for C compiler version" >&5
3276ac_compiler=`set X $ac_compile; echo $2`
3277{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3278 (eval $ac_compiler --version </dev/null >&5) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }
3282{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3283 (eval $ac_compiler -v </dev/null >&5) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3288 (eval $ac_compiler -V </dev/null >&5) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3292
3293cat >conftest.$ac_ext <<_ACEOF
3294/* confdefs.h. */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h. */
3299
3300int
3301main ()
3302{
3303
3304 ;
3305 return 0;
3306}
3307_ACEOF
3308ac_clean_files_save=$ac_clean_files
3309ac_clean_files="$ac_clean_files a.out a.exe b.out"
3310# Try to create an executable without -o first, disregard a.out.
3311# It will help us diagnose broken compilers, and finding out an intuition
3312# of exeext.
3313echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3314echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3315ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3316if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3317 (eval $ac_link_default) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 # Find the output, starting from the most likely. This scheme is
3322# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3323# resort.
3324
3325# Be careful to initialize this variable, since it used to be cached.
3326# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3327ac_cv_exeext=
3328# b.out is created by i960 compilers.
3329for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3330do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3334 ;;
3335 conftest.$ac_ext )
3336 # This is the source file.
3337 ;;
3338 [ab].out )
3339 # We found the default executable, but exeext='' is most
3340 # certainly right.
3341 break;;
3342 *.* )
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344 # FIXME: I believe we export ac_cv_exeext for Libtool,
3345 # but it would be cool to find out if it's true. Does anybody
3346 # maintain Libtool? --akim.
3347 export ac_cv_exeext
3348 break;;
3349 * )
3350 break;;
3351 esac
3352done
3353else
3354 echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3358echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3360See \`config.log' for more details." >&5
3361echo "$as_me: error: C compiler cannot create executables
3362See \`config.log' for more details." >&2;}
3363 { (exit 77); exit 77; }; }; }
3364fi
3365
3366ac_exeext=$ac_cv_exeext
3367echo "$as_me:$LINENO: result: $ac_file" >&5
3368echo "${ECHO_T}$ac_file" >&6
3369
3370# Check the compiler produces executables we can run. If not, either
3371# the compiler is broken, or we cross compile.
3372echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3375# If not cross compiling, check that we can run a simple program.
3376if test "$cross_compiling" != yes; then
3377 if { ac_try='./$ac_file'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 cross_compiling=no
3384 else
3385 if test "$cross_compiling" = maybe; then
3386 cross_compiling=yes
3387 else
3388 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3389echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3391If you meant to cross compile, use \`--host'.
3392See \`config.log' for more details." >&5
3393echo "$as_me: error: cannot run C compiled programs.
3394If you meant to cross compile, use \`--host'.
3395See \`config.log' for more details." >&2;}
3396 { (exit 1); exit 1; }; }; }
3397 fi
3398 fi
3399fi
3400echo "$as_me:$LINENO: result: yes" >&5
3401echo "${ECHO_T}yes" >&6
3402
3403rm -f a.out a.exe conftest$ac_cv_exeext b.out
3404ac_clean_files=$ac_clean_files_save
3405# Check the compiler produces executables we can run. If not, either
3406# the compiler is broken, or we cross compile.
3407echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3408echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3409echo "$as_me:$LINENO: result: $cross_compiling" >&5
3410echo "${ECHO_T}$cross_compiling" >&6
3411
3412echo "$as_me:$LINENO: checking for suffix of executables" >&5
3413echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3415 (eval $ac_link) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; then
3419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3421# work properly (i.e., refer to `conftest.exe'), while it won't with
3422# `rm'.
3423for ac_file in conftest.exe conftest conftest.*; do
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 export ac_cv_exeext
3429 break;;
3430 * ) break;;
3431 esac
3432done
3433else
3434 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3435echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3437See \`config.log' for more details." >&5
3438echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3439See \`config.log' for more details." >&2;}
3440 { (exit 1); exit 1; }; }; }
3441fi
3442
3443rm -f conftest$ac_cv_exeext
3444echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3445echo "${ECHO_T}$ac_cv_exeext" >&6
3446
3447rm -f conftest.$ac_ext
3448EXEEXT=$ac_cv_exeext
3449ac_exeext=$EXEEXT
3450echo "$as_me:$LINENO: checking for suffix of object files" >&5
3451echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3452if test "${ac_cv_objext+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461
3462int
3463main ()
3464{
3465
3466 ;
3467 return 0;
3468}
3469_ACEOF
3470rm -f conftest.o conftest.obj
3471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; then
3476 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 break;;
3481 esac
3482done
3483else
3484 echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3488echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3490See \`config.log' for more details." >&5
3491echo "$as_me: error: cannot compute suffix of object files: cannot compile
3492See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }; }
3494fi
3495
3496rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497fi
3498echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3499echo "${ECHO_T}$ac_cv_objext" >&6
3500OBJEXT=$ac_cv_objext
3501ac_objext=$OBJEXT
3502echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3503echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3504if test "${ac_cv_c_compiler_gnu+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h. */
3513
3514int
3515main ()
3516{
3517#ifndef __GNUC__
3518 choke me
3519#endif
3520
3521 ;
3522 return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_c_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_compiler_gnu=yes
3548else
3549 echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552ac_compiler_gnu=no
3553fi
3554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556
3557fi
3558echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3559echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3560GCC=`test $ac_compiler_gnu = yes && echo yes`
3561ac_test_CFLAGS=${CFLAGS+set}
3562ac_save_CFLAGS=$CFLAGS
3563CFLAGS="-g"
3564echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3565echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3566if test "${ac_cv_prog_cc_g+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
3575
3576int
3577main ()
3578{
3579
3580 ;
3581 return 0;
3582}
3583_ACEOF
3584rm -f conftest.$ac_objext
3585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586 (eval $ac_compile) 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag"
3594 || test ! -s conftest.err'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_prog_cc_g=yes
3607else
3608 echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611ac_cv_prog_cc_g=no
3612fi
3613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3614fi
3615echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3616echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3617if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3624 fi
3625else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3630 fi
3631fi
3632echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3633echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3634if test "${ac_cv_prog_cc_stdc+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637 ac_cv_prog_cc_stdc=no
3638ac_save_CC=$CC
3639cat >conftest.$ac_ext <<_ACEOF
3640/* confdefs.h. */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h. */
3645#include <stdarg.h>
3646#include <stdio.h>
3647#include <sys/types.h>
3648#include <sys/stat.h>
3649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3650struct buf { int x; };
3651FILE * (*rcsopen) (struct buf *, struct stat *, int);
3652static char *e (p, i)
3653 char **p;
3654 int i;
3655{
3656 return p[i];
3657}
3658static char *f (char * (*g) (char **, int), char **p, ...)
3659{
3660 char *s;
3661 va_list v;
3662 va_start (v,p);
3663 s = g (p, va_arg (v,int));
3664 va_end (v);
3665 return s;
3666}
3667
3668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3669 function prototypes and stuff, but not '\xHH' hex character constants.
3670 These don't provoke an error unfortunately, instead are silently treated
3671 as 'x'. The following induces an error, until -std1 is added to get
3672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3673 array size at least. It's necessary to write '\x00'==0 to get something
3674 that's true only with -std1. */
3675int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3676
3677int test (int i, double x);
3678struct s1 {int (*f) (int a);};
3679struct s2 {int (*f) (double a);};
3680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681int argc;
3682char **argv;
3683int
3684main ()
3685{
3686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691# Don't try gcc -ansi; that turns off useful extensions and
3692# breaks some systems' header files.
3693# AIX -qlanglvl=ansi
3694# Ultrix and OSF/1 -std1
3695# HP-UX 10.20 and later -Ae
3696# HP-UX older versions -Aa -D_HPUX_SOURCE
3697# SVR4 -Xc -D__EXTENSIONS__
3698for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699do
3700 CC="$ac_save_CC $ac_arg"
3701 rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_cv_prog_cc_stdc=$ac_arg
3724break
3725else
3726 echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729fi
3730rm -f conftest.err conftest.$ac_objext
3731done
3732rm -f conftest.$ac_ext conftest.$ac_objext
3733CC=$ac_save_CC
3734
3735fi
3736
3737case "x$ac_cv_prog_cc_stdc" in
3738 x|xno)
3739 echo "$as_me:$LINENO: result: none needed" >&5
3740echo "${ECHO_T}none needed" >&6 ;;
3741 *)
3742 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3743echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3744 CC="$CC $ac_cv_prog_cc_stdc" ;;
3745esac
3746
3747# Some people use a C++ compiler to compile C. Since we use `exit',
3748# in C++ we need to declare it. In case someone uses the same compiler
3749# for both compiling C and C++ we need to have the C++ compiler decide
3750# the declaration of exit, since it's the most demanding environment.
3751cat >conftest.$ac_ext <<_ACEOF
3752#ifndef __cplusplus
3753 choke me
3754#endif
3755_ACEOF
3756rm -f conftest.$ac_objext
3757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>conftest.er1
3759 ac_status=$?
3760 grep -v '^ *+' conftest.er1 >conftest.err
3761 rm -f conftest.er1
3762 cat conftest.err >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -z "$ac_c_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 for ac_declaration in \
3779 '' \
3780 'extern "C" void std::exit (int) throw (); using std::exit;' \
3781 'extern "C" void std::exit (int); using std::exit;' \
3782 'extern "C" void exit (int) throw ();' \
3783 'extern "C" void exit (int);' \
3784 'void exit (int);'
3785do
3786 cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h. */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h. */
3792$ac_declaration
3793#include <stdlib.h>
3794int
3795main ()
3796{
3797exit (42);
3798 ;
3799 return 0;
3800}
3801_ACEOF
3802rm -f conftest.$ac_objext
3803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 :
3825else
3826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829continue
3830fi
3831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3832 cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h. */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h. */
3838$ac_declaration
3839int
3840main ()
3841{
3842exit (42);
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847rm -f conftest.$ac_objext
3848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag"
3857 || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 break
3870else
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874fi
3875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3876done
3877rm -f conftest*
3878if test -n "$ac_declaration"; then
3879 echo '#ifdef __cplusplus' >>confdefs.h
3880 echo $ac_declaration >>confdefs.h
3881 echo '#endif' >>confdefs.h
3882fi
3883
3884else
3885 echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888fi
3889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3890ac_ext=c
3891ac_cpp='$CPP $CPPFLAGS'
3892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895
3896ac_ext=cc
3897ac_cpp='$CXXCPP $CPPFLAGS'
3898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3901if test -n "$ac_tool_prefix"; then
3902 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3903 do
3904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3905set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3906echo "$as_me:$LINENO: checking for $ac_word" >&5
3907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908if test "${ac_cv_prog_CXX+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 if test -n "$CXX"; then
3912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925done
3926done
3927
3928fi
3929fi
3930CXX=$ac_cv_prog_CXX
3931if test -n "$CXX"; then
3932 echo "$as_me:$LINENO: result: $CXX" >&5
3933echo "${ECHO_T}$CXX" >&6
3934else
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937fi
3938
3939 test -n "$CXX" && break
3940 done
3941fi
3942if test -z "$CXX"; then
3943 ac_ct_CXX=$CXX
3944 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3945do
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947set dummy $ac_prog; ac_word=$2
3948echo "$as_me:$LINENO: checking for $ac_word" >&5
3949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3950if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952else
3953 if test -n "$ac_ct_CXX"; then
3954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_ac_ct_CXX="$ac_prog"
3964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967done
3968done
3969
3970fi
3971fi
3972ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3973if test -n "$ac_ct_CXX"; then
3974 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3975echo "${ECHO_T}$ac_ct_CXX" >&6
3976else
3977 echo "$as_me:$LINENO: result: no" >&5
3978echo "${ECHO_T}no" >&6
3979fi
3980
3981 test -n "$ac_ct_CXX" && break
3982done
3983test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3984
3985 CXX=$ac_ct_CXX
3986fi
3987
3988
3989# Provide some information about the compiler.
3990echo "$as_me:$LINENO:" \
3991 "checking for C++ compiler version" >&5
3992ac_compiler=`set X $ac_compile; echo $2`
3993{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3994 (eval $ac_compiler --version </dev/null >&5) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }
3998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3999 (eval $ac_compiler -v </dev/null >&5) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }
4003{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4004 (eval $ac_compiler -V </dev/null >&5) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }
4008
4009echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4010echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4011if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014 cat >conftest.$ac_ext <<_ACEOF
4015/* confdefs.h. */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h. */
4020
4021int
4022main ()
4023{
4024#ifndef __GNUC__
4025 choke me
4026#endif
4027
4028 ;
4029 return 0;
4030}
4031_ACEOF
4032rm -f conftest.$ac_objext
4033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_cxx_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_compiler_gnu=yes
4055else
4056 echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059ac_compiler_gnu=no
4060fi
4061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4062ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4063
4064fi
4065echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4066echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4067GXX=`test $ac_compiler_gnu = yes && echo yes`
4068ac_test_CXXFLAGS=${CXXFLAGS+set}
4069ac_save_CXXFLAGS=$CXXFLAGS
4070CXXFLAGS="-g"
4071echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4072echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4073if test "${ac_cv_prog_cxx_g+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext
4092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try='test -z "$ac_cxx_werror_flag"
4101 || test ! -s conftest.err'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; } &&
4107 { ac_try='test -s conftest.$ac_objext'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 (eval $ac_try) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 ac_cv_prog_cxx_g=yes
4114else
4115 echo "$as_me: failed program was:" >&5
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
4118ac_cv_prog_cxx_g=no
4119fi
4120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4121fi
4122echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4123echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4124if test "$ac_test_CXXFLAGS" = set; then
4125 CXXFLAGS=$ac_save_CXXFLAGS
4126elif test $ac_cv_prog_cxx_g = yes; then
4127 if test "$GXX" = yes; then
4128 CXXFLAGS="-g -O2"
4129 else
4130 CXXFLAGS="-g"
4131 fi
4132else
4133 if test "$GXX" = yes; then
4134 CXXFLAGS="-O2"
4135 else
4136 CXXFLAGS=
4137 fi
4138fi
4139for ac_declaration in \
4140 '' \
4141 'extern "C" void std::exit (int) throw (); using std::exit;' \
4142 'extern "C" void std::exit (int); using std::exit;' \
4143 'extern "C" void exit (int) throw ();' \
4144 'extern "C" void exit (int);' \
4145 'void exit (int);'
4146do
4147 cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
4153$ac_declaration
4154#include <stdlib.h>
4155int
4156main ()
4157{
4158exit (42);
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext
4164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>conftest.er1
4166 ac_status=$?
4167 grep -v '^ *+' conftest.er1 >conftest.err
4168 rm -f conftest.er1
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_cxx_werror_flag"
4173 || test ! -s conftest.err'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
4185 :
4186else
4187 echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190continue
4191fi
4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199$ac_declaration
4200int
4201main ()
4202{
4203exit (42);
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext
4209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_cxx_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 break
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235fi
4236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4237done
4238rm -f conftest*
4239if test -n "$ac_declaration"; then
4240 echo '#ifdef __cplusplus' >>confdefs.h
4241 echo $ac_declaration >>confdefs.h
4242 echo '#endif' >>confdefs.h
4243fi
4244
4245ac_ext=c
4246ac_cpp='$CPP $CPPFLAGS'
4247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251
4252# We must set the default linker to the linker used by gcc for the correct
4253# operation of libtool. If LD is not defined and we are using gcc, try to
4254# set the LD default to the ld used by gcc.
4255if test -z "$LD"; then
4256 if test "$GCC" = yes; then
4257 case $build in
4258 *-*-mingw*)
4259 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4260 *)
4261 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4262 esac
4263 case $gcc_prog_ld in
4264 # Accept absolute paths.
4265 [\\/]* | [A-Za-z]:[\\/]*)
4266 LD="$gcc_prog_ld" ;;
4267 esac
4268 fi
4269fi
4270
4271
4272
4273
4274if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4276set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4277echo "$as_me:$LINENO: checking for $ac_word" >&5
4278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4279if test "${ac_cv_prog_GNATBIND+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282 if test -n "$GNATBIND"; then
4283 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4284else
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296done
4297done
4298
4299fi
4300fi
4301GNATBIND=$ac_cv_prog_GNATBIND
4302if test -n "$GNATBIND"; then
4303 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4304echo "${ECHO_T}$GNATBIND" >&6
4305else
4306 echo "$as_me:$LINENO: result: no" >&5
4307echo "${ECHO_T}no" >&6
4308fi
4309
4310fi
4311if test -z "$ac_cv_prog_GNATBIND"; then
4312 ac_ct_GNATBIND=$GNATBIND
4313 # Extract the first word of "gnatbind", so it can be a program name with args.
4314set dummy gnatbind; ac_word=$2
4315echo "$as_me:$LINENO: checking for $ac_word" >&5
4316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
4320 if test -n "$ac_ct_GNATBIND"; then
4321 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4322else
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334done
4335done
4336
4337 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4338fi
4339fi
4340ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4341if test -n "$ac_ct_GNATBIND"; then
4342 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4343echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4344else
4345 echo "$as_me:$LINENO: result: no" >&5
4346echo "${ECHO_T}no" >&6
4347fi
4348
4349 GNATBIND=$ac_ct_GNATBIND
4350else
4351 GNATBIND="$ac_cv_prog_GNATBIND"
4352fi
4353
4354if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4356set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4357echo "$as_me:$LINENO: checking for $ac_word" >&5
4358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362 if test -n "$GNATMAKE"; then
4363 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376done
4377done
4378
4379fi
4380fi
4381GNATMAKE=$ac_cv_prog_GNATMAKE
4382if test -n "$GNATMAKE"; then
4383 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4384echo "${ECHO_T}$GNATMAKE" >&6
4385else
4386 echo "$as_me:$LINENO: result: no" >&5
4387echo "${ECHO_T}no" >&6
4388fi
4389
4390fi
4391if test -z "$ac_cv_prog_GNATMAKE"; then
4392 ac_ct_GNATMAKE=$GNATMAKE
4393 # Extract the first word of "gnatmake", so it can be a program name with args.
4394set dummy gnatmake; ac_word=$2
4395echo "$as_me:$LINENO: checking for $ac_word" >&5
4396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399else
4400 if test -n "$ac_ct_GNATMAKE"; then
4401 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415done
4416
4417 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4418fi
4419fi
4420ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4421if test -n "$ac_ct_GNATMAKE"; then
4422 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4423echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4424else
4425 echo "$as_me:$LINENO: result: no" >&5
4426echo "${ECHO_T}no" >&6
4427fi
4428
4429 GNATMAKE=$ac_ct_GNATMAKE
4430else
4431 GNATMAKE="$ac_cv_prog_GNATMAKE"
4432fi
4433
4434echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4435echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4436if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439 cat >conftest.adb <<EOF
4440procedure conftest is begin null; end conftest;
4441EOF
4442acx_cv_cc_gcc_supports_ada=no
4443# There is a bug in old released versions of GCC which causes the
4444# driver to exit successfully when the appropriate language module
4445# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4446# Therefore we must check for the error message as well as an
4447# unsuccessful exit.
4448# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4449# given a .adb file, but produce no object file. So we must check
4450# if an object file was really produced to guard against this.
4451errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4452if test x"$errors" = x && test -f conftest.$ac_objext; then
4453 acx_cv_cc_gcc_supports_ada=yes
4454fi
4455rm -f conftest.*
4456fi
4457echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4458echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4459
4460if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4461 have_gnat=yes
4462else
4463 have_gnat=no
4464fi
4465
4466echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4467echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4468if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471 echo abfoo >t1
4472 echo cdfoo >t2
4473 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4474 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4475 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4476 :
4477 else
4478 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4479 fi
4480 fi
4481 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4482 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4483 :
4484 else
4485 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4486 fi
4487 fi
4488 rm t1 t2
4489
4490fi
4491echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4492echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4493do_compare="$gcc_cv_prog_cmp_skip"
4494
4495
4496
4497# Check for GMP and MPFR
4498gmplibs="-lmpfr -lgmp"
4499gmpinc=
4500have_gmp=no
4501
4502# Specify a location for mpfr
4503# check for this first so it ends up on the link line before gmp.
4504
4505# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4506if test "${with_mpfr_dir+set}" = set; then
4507 withval="$with_mpfr_dir"
4508 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4509Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4510echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4511Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4512 { (exit 1); exit 1; }; }
4513fi;
4514
4515
4516# Check whether --with-mpfr or --without-mpfr was given.
4517if test "${with_mpfr+set}" = set; then
4518 withval="$with_mpfr"
4519
4520fi;
4521
4522# Check whether --with-mpfr_include or --without-mpfr_include was given.
4523if test "${with_mpfr_include+set}" = set; then
4524 withval="$with_mpfr_include"
4525
4526fi;
4527
4528# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4529if test "${with_mpfr_lib+set}" = set; then
4530 withval="$with_mpfr_lib"
4531
4532fi;
4533
4534if test "x$with_mpfr" != x; then
4535 gmplibs="-L$with_mpfr/lib $gmplibs"
4536 gmpinc="-I$with_mpfr/include"
4537fi
4538if test "x$with_mpfr_include" != x; then
4539 gmpinc="-I$with_mpfr_include"
4540fi
4541if test "x$with_mpfr_lib" != x; then
4542 gmplibs="-L$with_mpfr_lib $gmplibs"
4543fi
4544if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4545 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4546 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4547 # Do not test the mpfr version. Assume that it is sufficient, since
4548 # it is in the source tree, and the library has not been built yet
4549 # but it would be included on the link line in the version check below
4550 # hence making the test fail.
4551 have_gmp=yes
4552fi
4553
4554# Specify a location for gmp
4555
4556# Check whether --with-gmp-dir or --without-gmp-dir was given.
4557if test "${with_gmp_dir+set}" = set; then
4558 withval="$with_gmp_dir"
4559 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4560Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4561echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4562Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4563 { (exit 1); exit 1; }; }
4564fi;
4565
4566
4567# Check whether --with-gmp or --without-gmp was given.
4568if test "${with_gmp+set}" = set; then
4569 withval="$with_gmp"
4570
4571fi;
4572
4573# Check whether --with-gmp_include or --without-gmp_include was given.
4574if test "${with_gmp_include+set}" = set; then
4575 withval="$with_gmp_include"
4576
4577fi;
4578
4579# Check whether --with-gmp_lib or --without-gmp_lib was given.
4580if test "${with_gmp_lib+set}" = set; then
4581 withval="$with_gmp_lib"
4582
4583fi;
4584
4585
4586if test "x$with_gmp" != x; then
4587 gmplibs="-L$with_gmp/lib $gmplibs"
4588 gmpinc="-I$with_gmp/include $gmpinc"
4589fi
4590if test "x$with_gmp_include" != x; then
4591 gmpinc="-I$with_gmp_include $gmpinc"
4592fi
4593if test "x$with_gmp_lib" != x; then
4594 gmplibs="-L$with_gmp_lib $gmplibs"
4595fi
4596if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4597 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4598 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4599 # Do not test the gmp version. Assume that it is sufficient, since
4600 # it is in the source tree, and the library has not been built yet
4601 # but it would be included on the link line in the version check below
4602 # hence making the test fail.
4603 have_gmp=yes
4604fi
4605
4606if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4607 have_gmp=yes
4608 saved_CFLAGS="$CFLAGS"
4609 CFLAGS="$CFLAGS $gmpinc"
4610 # Check GMP actually works
4611 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4612echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4613
4614cat >conftest.$ac_ext <<_ACEOF
4615/* confdefs.h. */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */
4620#include "gmp.h"
4621int
4622main ()
4623{
4624
4625 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4626 choke me
4627 #endif
4628
4629 ;
4630 return 0;
4631}
4632_ACEOF
4633rm -f conftest.$ac_objext
4634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -z "$ac_c_werror_flag"
4643 || test ! -s conftest.err'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 echo "$as_me:$LINENO: result: yes" >&5
4656echo "${ECHO_T}yes" >&6
4657else
4658 echo "$as_me: failed program was:" >&5
4659sed 's/^/| /' conftest.$ac_ext >&5
4660
4661echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6; have_gmp=no
4663fi
4664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665
4666 if test x"$have_gmp" = xyes; then
4667 saved_LIBS="$LIBS"
4668 LIBS="$LIBS $gmplibs"
4669 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4670echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4671 cat >conftest.$ac_ext <<_ACEOF
4672/* confdefs.h. */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h. */
4677#include <gmp.h>
4678 #include <mpfr.h>
4679int
4680main ()
4681{
4682
4683 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4684 choke me
4685 #endif
4686 mpfr_t n;
4687 mpfr_t x;
4688 int t;
4689 mpfr_init (n);
4690 mpfr_init (x);
4691 mpfr_atan2 (n, n, x, GMP_RNDN);
4692 mpfr_erfc (n, x, GMP_RNDN);
4693 mpfr_subnormalize (x, t, GMP_RNDN);
4694
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext conftest$ac_exeext
4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 cat >conftest.$ac_ext <<_ACEOF
4722/* confdefs.h. */
4723_ACEOF
4724cat confdefs.h >>conftest.$ac_ext
4725cat >>conftest.$ac_ext <<_ACEOF
4726/* end confdefs.h. */
4727#include <gmp.h>
4728 #include <mpfr.h>
4729int
4730main ()
4731{
4732
4733 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4734 choke me
4735 #endif
4736 mpfr_t n; mpfr_init(n);
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742rm -f conftest.$ac_objext conftest$ac_exeext
4743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -z "$ac_c_werror_flag"
4752 || test ! -s conftest.err'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest$ac_exeext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6
4766else
4767 echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4771echo "${ECHO_T}buggy but acceptable" >&6
4772fi
4773rm -f conftest.err conftest.$ac_objext \
4774 conftest$ac_exeext conftest.$ac_ext
4775else
4776 echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6; have_gmp=no
4781fi
4782rm -f conftest.err conftest.$ac_objext \
4783 conftest$ac_exeext conftest.$ac_ext
4784 LIBS="$saved_LIBS"
4785 fi
4786 CFLAGS="$saved_CFLAGS"
4787
4788 if test x$have_gmp != xyes; then
4789 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
4790Try the --with-gmp and/or --with-mpfr options to specify their locations.
4791Copies of these libraries' source code can be found at their respective
4792hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4793See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4794If you obtained GMP and/or MPFR from a vendor distribution package, make
4795sure that you have installed both the libraries and the header files.
4796They may be located in separate packages." >&5
4797echo "$as_me: 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." >&2;}
4805 { (exit 1); exit 1; }; }
4806 fi
4807fi
4808
4809# Flags needed for both GMP and/or MPFR
4810
4811
4812
4813# Allow host libstdc++ to be specified for static linking with PPL.
4814
4815# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
4816if test "${with_host_libstdcxx+set}" = set; then
4817 withval="$with_host_libstdcxx"
4818
4819fi;
4820
4821case $with_host_libstdcxx in
4822 no|yes)
4823 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
4824echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
4825 { (exit 1); exit 1; }; }
4826 ;;
4827esac
4828
4829# Check for PPL
4830ppl_major_version=0
4831ppl_minor_version=10
4832ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
4833pplinc=
4834
4835
4836# Check whether --with-ppl or --without-ppl was given.
4837if test "${with_ppl+set}" = set; then
4838 withval="$with_ppl"
4839
4840fi;
4841
4842# Check whether --with-ppl_include or --without-ppl_include was given.
4843if test "${with_ppl_include+set}" = set; then
4844 withval="$with_ppl_include"
4845
4846fi;
4847
4848# Check whether --with-ppl_lib or --without-ppl_lib was given.
4849if test "${with_ppl_lib+set}" = set; then
4850 withval="$with_ppl_lib"
4851
4852fi;
4853
4854case $with_ppl in
4855 no)
4856 ppllibs=
4857 ;;
4858 *)
4859 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4860 pplinc="-I$with_ppl/include $pplinc"
4861 LIBS="$ppllibs $LIBS"
4862 ;;
4863esac
4864if test "x$with_ppl_include" != x; then
4865 pplinc="-I$with_ppl_include $pplinc"
4866fi
4867if test "x$with_ppl_lib" != x; then
4868 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4869 LIBS="$ppllibs $LIBS"
4870fi
4871if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4872 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
4873 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4874 LIBS="$ppllibs $LIBS"
4875fi
4876
4877# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4878if test "${enable_ppl_version_check+set}" = set; then
4879 enableval="$enable_ppl_version_check"
4880 ENABLE_PPL_CHECK=$enableval
4881else
4882 ENABLE_PPL_CHECK=yes
4883fi;
4884
4885if test "${ENABLE_PPL_CHECK}" = "yes"; then
4886 saved_CFLAGS="$CFLAGS"
4887 CFLAGS="$CFLAGS $pplinc $gmpinc"
4888 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4889echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896#include "ppl_c.h"
4897int
4898main ()
4899{
4900
4901 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4902 choke me
4903 #endif
4904
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909rm -f conftest.$ac_objext
4910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -z "$ac_c_werror_flag"
4919 || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4933else
4934 echo "$as_me: failed program was:" >&5
4935sed 's/^/| /' conftest.$ac_ext >&5
4936
4937echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4939fi
4940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4941 CFLAGS="$saved_CFLAGS"
4942fi
4943
4944# Flags needed for PPL
4945
4946
4947
4948
4949# Check for CLOOG
4950clooglibs=" -lcloog "
4951clooginc=" -DCLOOG_PPL_BACKEND "
4952
4953
4954# Check whether --with-cloog or --without-cloog was given.
4955if test "${with_cloog+set}" = set; then
4956 withval="$with_cloog"
4957
4958fi;
4959
4960# Check whether --with-cloog_include or --without-cloog_include was given.
4961if test "${with_cloog_include+set}" = set; then
4962 withval="$with_cloog_include"
4963
4964fi;
4965
4966# Check whether --with-cloog_lib or --without-cloog_lib was given.
4967if test "${with_cloog_lib+set}" = set; then
4968 withval="$with_cloog_lib"
4969
4970fi;
4971
4972case $with_cloog in
4973 no)
4974 clooglibs=
4975 clooginc=
4976 ;;
4977 *)
4978 clooglibs="-L$with_cloog/lib -lcloog"
4979 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4980 LIBS="$clooglibs $LIBS"
4981 ;;
4982esac
4983if test "x$with_cloog_include" != x; then
4984 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4985fi
4986if test "x$with_cloog_lib" != x; then
4987 clooglibs="-L$with_cloog_lib -lcloog"
4988 LIBS="$clooglibs $LIBS"
4989fi
4990if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4991 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
4992 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
4993 LIBS="$clooglibs $LIBS"
4994fi
4995
4996# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
4997if test "${enable_cloog_version_check+set}" = set; then
4998 enableval="$enable_cloog_version_check"
4999 ENABLE_CLOOG_CHECK=$enableval
5000else
5001 ENABLE_CLOOG_CHECK=yes
5002fi;
5003
5004if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5005 saved_CFLAGS="$CFLAGS"
5006 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5007 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5008echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015#include "cloog/cloog.h"
5016int
5017main ()
5018{
5019
5020 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5021 choke me
5022 #endif
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028rm -f conftest.$ac_objext
5029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 echo "$as_me:$LINENO: result: yes" >&5
5051echo "${ECHO_T}yes" >&6
5052else
5053 echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5058fi
5059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060 CFLAGS="$saved_CFLAGS"
5061fi
5062
5063# Flags needed for CLOOG
5064
5065
5066
5067
5068# By default, C is the only stage 1 language.
5069stage1_languages=,c,
5070
5071# Figure out what language subdirectories are present.
5072# Look if the user specified --enable-languages="..."; if not, use
5073# the environment variable $LANGUAGES if defined. $LANGUAGES might
5074# go away some day.
5075# NB: embedded tabs in this IF block -- do not untabify
5076if test -d ${srcdir}/gcc; then
5077 if test x"${enable_languages+set}" != xset; then
5078 if test x"${LANGUAGES+set}" = xset; then
5079 enable_languages="${LANGUAGES}"
5080 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5081 else
5082 enable_languages=all
5083 fi
5084 else
5085 if test x"${enable_languages}" = x ||
5086 test x"${enable_languages}" = xyes;
5087 then
5088 echo configure.in: --enable-languages needs at least one language argument 1>&2
5089 exit 1
5090 fi
5091 fi
5092 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5093
5094 # 'f95' is the old name for the 'fortran' language. We issue a warning
5095 # and make the substitution.
5096 case ,${enable_languages}, in
5097 *,f95,*)
5098 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5099 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5100 ;;
5101 esac
5102
5103 # First scan to see if an enabled language requires some other language.
5104 # We assume that a given config-lang.in will list all the language
5105 # front ends it requires, even if some are required indirectly.
5106 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5107 case ${lang_frag} in
5108 ..) ;;
5109 # The odd quoting in the next line works around
5110 # an apparent bug in bash 1.12 on linux.
5111 ${srcdir}/gcc/[*]/config-lang.in) ;;
5112 *)
5113 # From the config-lang.in, get $language, $lang_requires
5114 language=
5115 lang_requires=
5116 . ${lang_frag}
5117 for other in ${lang_requires} ; do
5118 case ,${enable_languages}, in
5119 *,$other,*) ;;
5120 *,all,*) ;;
5121 *,$language,*)
5122 echo " \`$other' language required by \`$language'; enabling" 1>&2
5123 enable_languages="${enable_languages},${other}"
5124 ;;
5125 esac
5126 done
5127 ;;
5128 esac
5129 done
5130
5131 new_enable_languages=,c,
5132 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5133 potential_languages=,c,
5134
5135 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5136 case ${lang_frag} in
5137 ..) ;;
5138 # The odd quoting in the next line works around
5139 # an apparent bug in bash 1.12 on linux.
5140 ${srcdir}/gcc/[*]/config-lang.in) ;;
5141 *)
5142 # From the config-lang.in, get $language, $target_libs,
5143 # $lang_dirs, $boot_language, and $build_by_default
5144 language=
5145 target_libs=
5146 lang_dirs=
5147 subdir_requires=
5148 boot_language=no
5149 build_by_default=yes
5150 . ${lang_frag}
5151 if test x${language} = x; then
5152 echo "${lang_frag} doesn't set \$language." 1>&2
5153 exit 1
5154 fi
5155
5156 case ,${enable_languages}, in
5157 *,${language},*)
5158 # Language was explicitly selected; include it.
5159 add_this_lang=yes
5160 ;;
5161 *,all,*)
5162 # 'all' was selected, select it if it is a default language
5163 add_this_lang=${build_by_default}
5164 ;;
5165 *)
5166 add_this_lang=no
5167 ;;
5168 esac
5169
5170 # Disable languages that need other directories if these aren't available.
5171 for i in $subdir_requires; do
5172 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5173 case ,${enable_languages}, in
5174 *,${language},*)
5175 # Specifically requested language; tell them.
5176 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5177echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5178 { (exit 1); exit 1; }; }
5179 ;;
5180 *)
5181 # Silently disable.
5182 add_this_lang=unsupported
5183 ;;
5184 esac
5185 done
5186
5187 # Disable Ada if no preexisting GNAT is available.
5188 case ,${enable_languages},:${language}:${have_gnat} in
5189 *,${language},*:ada:no)
5190 # Specifically requested language; tell them.
5191 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5192echo "$as_me: error: GNAT is required to build $language" >&2;}
5193 { (exit 1); exit 1; }; }
5194 ;;
5195 *:ada:no)
5196 # Silently disable.
5197 add_this_lang=unsupported
5198 ;;
5199 esac
5200
5201 # Disable a language that is unsupported by the target.
5202 case " $unsupported_languages " in
5203 *" $language "*)
5204 add_this_lang=unsupported
5205 ;;
5206 esac
5207
5208 case $add_this_lang in
5209 unsupported)
5210 # Remove language-dependent dirs.
5211 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5212 ;;
5213 no)
5214 # Remove language-dependent dirs; still show language as supported.
5215 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5216 potential_languages="${potential_languages}${language},"
5217 ;;
5218 yes)
5219 new_enable_languages="${new_enable_languages}${language},"
5220 potential_languages="${potential_languages}${language},"
5221 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5222 case ${boot_language} in
5223 yes)
5224 # Add to (comma-separated) list of stage 1 languages.
5225 stage1_languages="${stage1_languages}${language},"
5226 ;;
5227 esac
5228 ;;
5229 esac
5230 ;;
5231 esac
5232 done
5233
5234 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5235if test "${enable_stage1_languages+set}" = set; then
5236 enableval="$enable_stage1_languages"
5237 case ,${enable_stage1_languages}, in
5238 ,no,|,,)
5239 # Set it to something that will have no effect in the loop below
5240 enable_stage1_languages=c ;;
5241 ,yes,)
5242 enable_stage1_languages=`echo $new_enable_languages | \
5243 sed -e "s/^,//" -e "s/,$//" ` ;;
5244 *,all,*)
5245 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5246 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5247 esac
5248
5249 # Add "good" languages from enable_stage1_languages to stage1_languages,
5250 # while "bad" languages go in missing_languages. Leave no duplicates.
5251 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5252 case $potential_languages in
5253 *,$i,*)
5254 case $stage1_languages in
5255 *,$i,*) ;;
5256 *) stage1_languages="$stage1_languages$i," ;;
5257 esac ;;
5258 *)
5259 case $missing_languages in
5260 *,$i,*) ;;
5261 *) missing_languages="$missing_languages$i," ;;
5262 esac ;;
5263 esac
5264 done
5265fi;
5266
5267 # Remove leading/trailing commas that were added for simplicity
5268 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5269 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5270 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5271 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5272
5273 if test "x$missing_languages" != x; then
5274 { { echo "$as_me:$LINENO: error:
5275The following requested languages could not be built: ${missing_languages}
5276Supported languages are: ${potential_languages}" >&5
5277echo "$as_me: error:
5278The following requested languages could not be built: ${missing_languages}
5279Supported languages are: ${potential_languages}" >&2;}
5280 { (exit 1); exit 1; }; }
5281 fi
5282 if test "x$new_enable_languages" != "x$enable_languages"; then
5283 echo The following languages will be built: ${new_enable_languages}
5284 enable_languages="$new_enable_languages"
5285 fi
5286
5287
5288 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5289fi
5290
5291# Handle --disable-<component> generically.
5292for dir in $configdirs $build_configdirs $target_configdirs ; do
5293 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5294 varname=`echo $dirname | sed -e s/+/_/g`
5295 if eval test x\${enable_${varname}} "=" xno ; then
5296 noconfigdirs="$noconfigdirs $dir"
5297 fi
5298done
5299
5300# Check for Boehm's garbage collector
5301# Check whether --enable-objc-gc or --disable-objc-gc was given.
5302if test "${enable_objc_gc+set}" = set; then
5303 enableval="$enable_objc_gc"
5304 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5305 *,objc,*:*:yes:*target-boehm-gc*)
5306 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5307echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5308 { (exit 1); exit 1; }; }
5309 ;;
5310esac
5311fi;
5312
5313# Make sure we only build Boehm's garbage collector if required.
5314case ,${enable_languages},:${enable_objc_gc} in
5315 *,objc,*:yes)
5316 # Keep target-boehm-gc if requested for Objective-C.
5317 ;;
5318 *)
5319 # Otherwise remove target-boehm-gc depending on target-libjava.
5320 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5321 noconfigdirs="$noconfigdirs target-boehm-gc"
5322 fi
5323 ;;
5324esac
5325
5326# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5327# $build_configdirs and $target_configdirs.
5328# If we have the source for $noconfigdirs entries, add them to $notsupp.
5329
5330notsupp=""
5331for dir in . $skipdirs $noconfigdirs ; do
5332 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5333 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5334 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5335 if test -r $srcdir/$dirname/configure ; then
5336 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5337 true
5338 else
5339 notsupp="$notsupp $dir"
5340 fi
5341 fi
5342 fi
5343 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5344 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5345 if test -r $srcdir/$dirname/configure ; then
5346 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5347 true
5348 else
5349 notsupp="$notsupp $dir"
5350 fi
5351 fi
5352 fi
5353 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5354 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5355 if test -r $srcdir/$dirname/configure ; then
5356 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5357 true
5358 else
5359 notsupp="$notsupp $dir"
5360 fi
5361 fi
5362 fi
5363done
5364
5365# Sometimes the tools are distributed with libiberty but with no other
5366# libraries. In that case, we don't want to build target-libiberty.
5367# Don't let libgcc imply libiberty either.
5368if test -n "${target_configdirs}" ; then
5369 libgcc=
5370 others=
5371 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5372 if test "$i" = "libgcc"; then
5373 libgcc=target-libgcc
5374 elif test "$i" != "libiberty" ; then
5375 if test -r $srcdir/$i/configure ; then
5376 others=yes;
5377 break;
5378 fi
5379 fi
5380 done
5381 if test -z "${others}" ; then
5382 target_configdirs=$libgcc
5383 fi
5384fi
5385
5386# Quietly strip out all directories which aren't configurable in this tree.
5387# This relies on all configurable subdirectories being autoconfiscated, which
5388# is now the case.
5389build_configdirs_all="$build_configdirs"
5390build_configdirs=
5391for i in ${build_configdirs_all} ; do
5392 j=`echo $i | sed -e s/build-//g`
5393 if test -f ${srcdir}/$j/configure ; then
5394 build_configdirs="${build_configdirs} $i"
5395 fi
5396done
5397
5398configdirs_all="$configdirs"
5399configdirs=
5400for i in ${configdirs_all} ; do
5401 if test -f ${srcdir}/$i/configure ; then
5402 configdirs="${configdirs} $i"
5403 fi
5404done
5405
5406target_configdirs_all="$target_configdirs"
5407target_configdirs=
5408for i in ${target_configdirs_all} ; do
5409 j=`echo $i | sed -e s/target-//g`
5410 if test -f ${srcdir}/$j/configure ; then
5411 target_configdirs="${target_configdirs} $i"
5412 fi
5413done
5414
5415# Produce a warning message for the subdirs we can't configure.
5416# This isn't especially interesting in the Cygnus tree, but in the individual
5417# FSF releases, it's important to let people know when their machine isn't
5418# supported by the one or two programs in a package.
5419
5420if test -n "${notsupp}" && test -z "${norecursion}" ; then
5421 # If $appdirs is non-empty, at least one of those directories must still
5422 # be configured, or we error out. (E.g., if the gas release supports a
5423 # specified target in some subdirs but not the gas subdir, we shouldn't
5424 # pretend that all is well.)
5425 if test -n "$appdirs" ; then
5426 for dir in $appdirs ; do
5427 if test -r $dir/Makefile.in ; then
5428 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5429 appdirs=""
5430 break
5431 fi
5432 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5433 appdirs=""
5434 break
5435 fi
5436 fi
5437 done
5438 if test -n "$appdirs" ; then
5439 echo "*** This configuration is not supported by this package." 1>&2
5440 exit 1
5441 fi
5442 fi
5443 # Okay, some application will build, or we don't care to check. Still
5444 # notify of subdirs not getting built.
5445 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5446 echo " ${notsupp}" 1>&2
5447 echo " (Any other directories should still work fine.)" 1>&2
5448fi
5449
5450case "$host" in
5451 *msdosdjgpp*)
5452 enable_gdbtk=no ;;
5453esac
5454
5455# To find our prefix, in gcc_cv_tool_prefix.
5456
5457# The user is always right.
5458if test "${PATH_SEPARATOR+set}" != set; then
5459 echo "#! /bin/sh" >conf$$.sh
5460 echo "exit 0" >>conf$$.sh
5461 chmod +x conf$$.sh
5462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5463 PATH_SEPARATOR=';'
5464 else
5465 PATH_SEPARATOR=:
5466 fi
5467 rm -f conf$$.sh
5468fi
5469
5470
5471
5472if test "x$exec_prefix" = xNONE; then
5473 if test "x$prefix" = xNONE; then
5474 gcc_cv_tool_prefix=$ac_default_prefix
5475 else
5476 gcc_cv_tool_prefix=$prefix
5477 fi
5478else
5479 gcc_cv_tool_prefix=$exec_prefix
5480fi
5481
5482# If there is no compiler in the tree, use the PATH only. In any
5483# case, if there is no compiler in the tree nobody should use
5484# AS_FOR_TARGET and LD_FOR_TARGET.
5485if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5486 gcc_version=`cat $srcdir/gcc/BASE-VER`
5487 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5488 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5489 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5490 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5491 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5492 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5493else
5494 gcc_cv_tool_dirs=
5495fi
5496
5497if test x$build = x$target && test -n "$md_exec_prefix"; then
5498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5499fi
5500
5501
5502
5503copy_dirs=
5504
5505
5506# Check whether --with-build-sysroot or --without-build-sysroot was given.
5507if test "${with_build_sysroot+set}" = set; then
5508 withval="$with_build_sysroot"
5509 if test x"$withval" != x ; then
5510 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5511 fi
5512else
5513 SYSROOT_CFLAGS_FOR_TARGET=
5514fi;
5515
5516
5517
5518# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5519if test "${with_debug_prefix_map+set}" = set; then
5520 withval="$with_debug_prefix_map"
5521 if test x"$withval" != x; then
5522 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5523 for debug_map in $withval; do
5524 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5525 done
5526 fi
5527else
5528 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5529fi;
5530
5531
5532# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5533# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5534# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5535# We want to ensure that TARGET libraries (which we know are built with
5536# gcc) are built with "-O2 -g", so include those options when setting
5537# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5538if test "x$CFLAGS_FOR_TARGET" = x; then
5539 CFLAGS_FOR_TARGET=$CFLAGS
5540 case " $CFLAGS " in
5541 *" -O2 "*) ;;
5542 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5543 esac
5544 case " $CFLAGS " in
5545 *" -g "* | *" -g3 "*) ;;
5546 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5547 esac
5548fi
5549
5550
5551if test "x$CXXFLAGS_FOR_TARGET" = x; then
5552 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5553 case " $CXXFLAGS " in
5554 *" -O2 "*) ;;
5555 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5556 esac
5557 case " $CXXFLAGS " in
5558 *" -g "* | *" -g3 "*) ;;
5559 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5560 esac
5561fi
5562
5563
5564# Handle --with-headers=XXX. If the value is not "yes", the contents of
5565# the named directory are copied to $(tooldir)/sys-include.
5566if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5567 if test x${is_cross_compiler} = xno ; then
5568 echo 1>&2 '***' --with-headers is only supported when cross compiling
5569 exit 1
5570 fi
5571 if test x"${with_headers}" != xyes ; then
5572 x=${gcc_cv_tool_prefix}
5573 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5574 fi
5575fi
5576
5577# Handle --with-libs=XXX. If the value is not "yes", the contents of
5578# the name directories are copied to $(tooldir)/lib. Multiple directories
5579# are permitted.
5580if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5581 if test x${is_cross_compiler} = xno ; then
5582 echo 1>&2 '***' --with-libs is only supported when cross compiling
5583 exit 1
5584 fi
5585 if test x"${with_libs}" != xyes ; then
5586 # Copy the libraries in reverse order, so that files in the first named
5587 # library override files in subsequent libraries.
5588 x=${gcc_cv_tool_prefix}
5589 for l in ${with_libs}; do
5590 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5591 done
5592 fi
5593fi
5594
5595# Set with_gnu_as and with_gnu_ld as appropriate.
5596#
5597# This is done by determining whether or not the appropriate directory
5598# is available, and by checking whether or not specific configurations
5599# have requested that this magic not happen.
5600#
5601# The command line options always override the explicit settings in
5602# configure.in, and the settings in configure.in override this magic.
5603#
5604# If the default for a toolchain is to use GNU as and ld, and you don't
5605# want to do that, then you should use the --without-gnu-as and
5606# --without-gnu-ld options for the configure script.
5607
5608if test x${use_gnu_as} = x &&
5609 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5610 with_gnu_as=yes
5611 extra_host_args="$extra_host_args --with-gnu-as"
5612fi
5613
5614if test x${use_gnu_ld} = x &&
5615 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5616 with_gnu_ld=yes
5617 extra_host_args="$extra_host_args --with-gnu-ld"
5618fi
5619
5620# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5621# can detect this case.
5622
5623if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5624 with_newlib=yes
5625 extra_host_args="$extra_host_args --with-newlib"
5626fi
5627
5628# Handle ${copy_dirs}
5629set fnord ${copy_dirs}
5630shift
5631while test $# != 0 ; do
5632 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5633 :
5634 else
5635 echo Copying $1 to $2
5636
5637 # Use the install script to create the directory and all required
5638 # parent directories.
5639 if test -d $2 ; then
5640 :
5641 else
5642 echo >config.temp
5643 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5644 fi
5645
5646 # Copy the directory, assuming we have tar.
5647 # FIXME: Should we use B in the second tar? Not all systems support it.
5648 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5649
5650 # It is the responsibility of the user to correctly adjust all
5651 # symlinks. If somebody can figure out how to handle them correctly
5652 # here, feel free to add the code.
5653
5654 echo $1 > $2/COPIED
5655 fi
5656 shift; shift
5657done
5658
5659# Determine a target-dependent exec_prefix that the installed
5660# gcc will search in. Keep this list sorted by triplet, with
5661# the *-*-osname triplets last.
5662md_exec_prefix=
5663case "${target}" in
5664 alpha*-*-*vms*)
5665 md_exec_prefix=/gnu/lib/gcc-lib
5666 ;;
5667 i[34567]86-pc-msdosdjgpp*)
5668 md_exec_prefix=/dev/env/DJDIR/bin
5669 ;;
5670 i[34567]86-*-sco3.2v5*)
5671 if test $with_gnu_as = yes; then
5672 md_exec_prefix=/usr/gnu/bin
5673 else
5674 md_exec_prefix=/usr/ccs/bin/elf
5675 fi
5676 ;;
5677
5678 mn10300-*-* | \
5679 powerpc-*-chorusos* | \
5680 powerpc*-*-eabi* | \
5681 powerpc*-*-sysv* | \
5682 powerpc*-*-kaos* | \
5683 s390x-ibm-tpf*)
5684 md_exec_prefix=/usr/ccs/bin
5685 ;;
5686 sparc64-*-elf*)
5687 ;;
5688 v850*-*-*)
5689 md_exec_prefix=/usr/ccs/bin
5690 ;;
5691 xtensa*-*-elf*)
5692 ;;
5693
5694 *-*-beos* | \
5695 *-*-elf* | \
5696 *-*-hpux* | \
5697 *-*-netware* | \
5698 *-*-nto-qnx* | \
5699 *-*-rtems* | \
5700 *-*-solaris2* | \
5701 *-*-sysv[45]* | \
5702 *-*-vxworks* | \
5703 *-wrs-windiss)
5704 md_exec_prefix=/usr/ccs/bin
5705 ;;
5706esac
5707
5708extra_arflags_for_target=
5709extra_nmflags_for_target=
5710extra_ranlibflags_for_target=
5711target_makefile_frag=/dev/null
5712case "${target}" in
5713 mep*-*-*)
5714 target_makefile_frag="config/mt-mep"
5715 ;;
5716 spu-*-*)
5717 target_makefile_frag="config/mt-spu"
5718 ;;
5719 mips*-sde-elf*)
5720 target_makefile_frag="config/mt-sde"
5721 ;;
5722 mipsisa*-*-elfoabi*)
5723 target_makefile_frag="config/mt-mips-elfoabi"
5724 ;;
5725 mips*-*-*linux* | mips*-*-gnu*)
5726 target_makefile_frag="config/mt-mips-gnu"
5727 ;;
5728 *-*-netware*)
5729 target_makefile_frag="config/mt-netware"
5730 ;;
5731 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
5732 target_makefile_frag="config/mt-gnu"
5733 ;;
5734 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5735 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5736 # commands to handle both 32-bit and 64-bit objects. These flags are
5737 # harmless if we're using GNU nm or ar.
5738 extra_arflags_for_target=" -X32_64"
5739 extra_nmflags_for_target=" -B -X32_64"
5740 ;;
5741 *-*-darwin*)
5742 # ranlib from Darwin requires the -c flag to look at common symbols.
5743 extra_ranlibflags_for_target=" -c"
5744 ;;
5745 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5746 target_makefile_frag="config/mt-wince"
5747 ;;
5748esac
5749
5750alphaieee_frag=/dev/null
5751case $target in
5752 alpha*-*-*)
5753 # This just makes sure to use the -mieee option to build target libs.
5754 # This should probably be set individually by each library.
5755 alphaieee_frag="config/mt-alphaieee"
5756 ;;
5757esac
5758
5759# If --enable-target-optspace always use -Os instead of -O2 to build
5760# the target libraries, similarly if it is not specified, use -Os
5761# on selected platforms.
5762ospace_frag=/dev/null
5763case "${enable_target_optspace}:${target}" in
5764 yes:*)
5765 ospace_frag="config/mt-ospace"
5766 ;;
5767 :d30v-*)
5768 ospace_frag="config/mt-d30v"
5769 ;;
5770 :m32r-* | :d10v-* | :fr30-*)
5771 ospace_frag="config/mt-ospace"
5772 ;;
5773 no:* | :*)
5774 ;;
5775 *)
5776 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5777 ;;
5778esac
5779
5780# Default to using --with-stabs for certain targets.
5781if test x${with_stabs} = x ; then
5782 case "${target}" in
5783 mips*-*-irix[56]*)
5784 ;;
5785 mips*-*-* | alpha*-*-osf*)
5786 with_stabs=yes;
5787 extra_host_args="${extra_host_args} --with-stabs"
5788 ;;
5789 esac
5790fi
5791
5792# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5793# them automatically.
5794case "${host}" in
5795 hppa*64*-*-hpux11*)
5796 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5797 ;;
5798esac
5799
5800# Some systems (e.g., one of the i386-aix systems the gas testers are
5801# using) don't handle "\$" correctly, so don't use it here.
5802tooldir='${exec_prefix}'/${target_noncanonical}
5803build_tooldir=${tooldir}
5804
5805# Create a .gdbinit file which runs the one in srcdir
5806# and tells GDB to look there for source files.
5807
5808if test -r ${srcdir}/.gdbinit ; then
5809 case ${srcdir} in
5810 .) ;;
5811 *) cat > ./.gdbinit <<EOF
5812# ${NO_EDIT}
5813dir ${srcdir}
5814dir .
5815source ${srcdir}/.gdbinit
5816EOF
5817 ;;
5818 esac
5819fi
5820
5821# Make sure that the compiler is able to generate an executable. If it
5822# can't, we are probably in trouble. We don't care whether we can run the
5823# executable--we might be using a cross compiler--we only care whether it
5824# can be created. At this point the main configure script has set CC.
5825we_are_ok=no
5826echo "int main () { return 0; }" > conftest.c
5827${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5828if test $? = 0 ; then
5829 if test -s conftest || test -s conftest.exe ; then
5830 we_are_ok=yes
5831 fi
5832fi
5833case $we_are_ok in
5834 no)
5835 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5836 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5837 rm -f conftest*
5838 exit 1
5839 ;;
5840esac
5841rm -f conftest*
5842
5843# The Solaris /usr/ucb/cc compiler does not appear to work.
5844case "${host}" in
5845 sparc-sun-solaris2*)
5846 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5847 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5848 could_use=
5849 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5850 if test -d /opt/cygnus/bin ; then
5851 if test "$could_use" = "" ; then
5852 could_use="/opt/cygnus/bin"
5853 else
5854 could_use="$could_use or /opt/cygnus/bin"
5855 fi
5856 fi
5857 if test "$could_use" = "" ; then
5858 echo "Warning: compilation may fail because you're using"
5859 echo "/usr/ucb/cc. You should change your PATH or CC "
5860 echo "variable and rerun configure."
5861 else
5862 echo "Warning: compilation may fail because you're using"
5863 echo "/usr/ucb/cc, when you should use the C compiler from"
5864 echo "$could_use. You should change your"
5865 echo "PATH or CC variable and rerun configure."
5866 fi
5867 fi
5868 ;;
5869esac
5870
5871# Decide which environment variable is used to find dynamic libraries.
5872case "${host}" in
5873 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5874 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5875 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5876 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5877esac
5878
5879# On systems where the dynamic library environment variable is PATH,
5880# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5881# built executables to PATH.
5882if test "$RPATH_ENVVAR" = PATH; then
5883 GCC_SHLIB_SUBDIR=/shlib
5884else
5885 GCC_SHLIB_SUBDIR=
5886fi
5887
5888# Record target_configdirs and the configure arguments for target and
5889# build configuration in Makefile.
5890target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5891build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5892
5893# Determine whether gdb needs tk/tcl or not.
5894# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5895# and in that case we want gdb to be built without tk. Ugh!
5896# In fact I believe gdb is the *only* package directly dependent on tk,
5897# so we should be able to put the 'maybe's in unconditionally and
5898# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5899# 100% sure that that's safe though.
5900
5901gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5902case "$enable_gdbtk" in
5903 no)
5904 GDB_TK="" ;;
5905 yes)
5906 GDB_TK="${gdb_tk}" ;;
5907 *)
5908 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5909 # distro. Eventually someone will fix this and move Insight, nee
5910 # gdbtk to a separate directory.
5911 if test -d ${srcdir}/gdb/gdbtk ; then
5912 GDB_TK="${gdb_tk}"
5913 else
5914 GDB_TK=""
5915 fi
5916 ;;
5917esac
5918CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5919INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5920
5921# Strip out unwanted targets.
5922
5923# While at that, we remove Makefiles if we were started for recursive
5924# configuration, so that the top-level Makefile reconfigures them,
5925# like we used to do when configure itself was recursive.
5926
5927# Loop over modules. $extrasub must be used with care, limiting as
5928# much as possible the usage of range addresses. That's because autoconf
5929# splits the sed script to overcome limits in the number of commands,
5930# and relying on carefully-timed sed passes may turn out to be very hard
5931# to maintain later. In this particular case, you just have to be careful
5932# not to nest @if/@endif pairs, because configure will not warn you at all.
5933
5934# Check whether --enable-bootstrap or --disable-bootstrap was given.
5935if test "${enable_bootstrap+set}" = set; then
5936 enableval="$enable_bootstrap"
5937
5938else
5939 enable_bootstrap=default
5940fi;
5941
5942# Issue errors and warnings for invalid/strange bootstrap combinations.
5943case "$configdirs" in
5944 *gcc*) have_compiler=yes ;;
5945 *) have_compiler=no ;;
5946esac
5947
5948case "$have_compiler:$host:$target:$enable_bootstrap" in
5949 *:*:*:no) ;;
5950
5951 # Default behavior. Enable bootstrap if we have a compiler
5952 # and we are in a native configuration.
5953 yes:$build:$build:default)
5954 enable_bootstrap=yes ;;
5955
5956 *:*:*:default)
5957 enable_bootstrap=no ;;
5958
5959 # We have a compiler and we are in a native configuration, bootstrap is ok
5960 yes:$build:$build:yes)
5961 ;;
5962
5963 # Other configurations, but we have a compiler. Assume the user knows
5964 # what he's doing.
5965 yes:*:*:yes)
5966 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5967echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5968 ;;
5969
5970 # No compiler: if they passed --enable-bootstrap explicitly, fail
5971 no:*:*:yes)
5972 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5973echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5974 { (exit 1); exit 1; }; } ;;
5975
5976 # Fail if wrong command line
5977 *)
5978 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5979echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5980 { (exit 1); exit 1; }; }
5981 ;;
5982esac
5983
5984# Adjust the toplevel makefile according to whether bootstrap was selected.
5985case "$enable_bootstrap" in
5986 yes)
5987 bootstrap_suffix=bootstrap ;;
5988 no)
5989 bootstrap_suffix=no-bootstrap ;;
5990esac
5991
5992for module in ${build_configdirs} ; do
5993 if test -z "${no_recursion}" \
5994 && test -f ${build_subdir}/${module}/Makefile; then
5995 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5996 rm -f ${build_subdir}/${module}/Makefile
5997 fi
5998 extrasub="$extrasub
5999/^@if build-$module\$/d
6000/^@endif build-$module\$/d
6001/^@if build-$module-$bootstrap_suffix\$/d
6002/^@endif build-$module-$bootstrap_suffix\$/d"
6003done
6004for module in ${configdirs} ; do
6005 if test -z "${no_recursion}"; then
6006 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6007 if test -f ${file}; then
6008 echo 1>&2 "*** removing ${file} to force reconfigure"
6009 rm -f ${file}
6010 fi
6011 done
6012 fi
6013 extrasub="$extrasub
6014/^@if $module\$/d
6015/^@endif $module\$/d
6016/^@if $module-$bootstrap_suffix\$/d
6017/^@endif $module-$bootstrap_suffix\$/d"
6018done
6019for module in ${target_configdirs} ; do
6020 if test -z "${no_recursion}" \
6021 && test -f ${target_subdir}/${module}/Makefile; then
6022 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6023 rm -f ${target_subdir}/${module}/Makefile
6024 fi
6025 extrasub="$extrasub
6026/^@if target-$module\$/d
6027/^@endif target-$module\$/d
6028/^@if target-$module-$bootstrap_suffix\$/d
6029/^@endif target-$module-$bootstrap_suffix\$/d"
6030done
6031
6032extrasub="$extrasub
6033/^@if /,/^@endif /d"
6034
6035# Create the serialization dependencies. This uses a temporary file.
6036
6037# Check whether --enable-serial-configure or --disable-serial-configure was given.
6038if test "${enable_serial_configure+set}" = set; then
6039 enableval="$enable_serial_configure"
6040
6041fi;
6042
6043case ${enable_serial_configure} in
6044 yes)
6045 enable_serial_build_configure=yes
6046 enable_serial_host_configure=yes
6047 enable_serial_target_configure=yes
6048 ;;
6049esac
6050
6051# These force 'configure's to be done one at a time, to avoid problems
6052# with contention over a shared config.cache.
6053rm -f serdep.tmp
6054echo '# serdep.tmp' > serdep.tmp
6055olditem=
6056test "x${enable_serial_build_configure}" = xyes &&
6057for item in ${build_configdirs} ; do
6058 case ${olditem} in
6059 "") ;;
6060 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6061 esac
6062 olditem=${item}
6063done
6064olditem=
6065test "x${enable_serial_host_configure}" = xyes &&
6066for item in ${configdirs} ; do
6067 case ${olditem} in
6068 "") ;;
6069 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6070 esac
6071 olditem=${item}
6072done
6073olditem=
6074test "x${enable_serial_target_configure}" = xyes &&
6075for item in ${target_configdirs} ; do
6076 case ${olditem} in
6077 "") ;;
6078 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6079 esac
6080 olditem=${item}
6081done
6082serialization_dependencies=serdep.tmp
6083
6084
6085# Base args. Strip norecursion, cache-file, srcdir, host, build,
6086# target, nonopt, and variable assignments. These are the ones we
6087# might not want to pass down to subconfigures. Also strip
6088# program-prefix, program-suffix, and program-transform-name, so that
6089# we can pass down a consistent program-transform-name.
6090baseargs=
6091keep_next=no
6092skip_next=no
6093eval "set -- $ac_configure_args"
6094for ac_arg
6095do
6096 if test X"$skip_next" = X"yes"; then
6097 skip_next=no
6098 continue
6099 fi
6100 if test X"$keep_next" = X"yes"; then
6101 case $ac_arg in
6102 *\'*)
6103 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6104 esac
6105 baseargs="$baseargs '$ac_arg'"
6106 keep_next=no
6107 continue
6108 fi
6109
6110 # Handle separated arguments. Based on the logic generated by
6111 # autoconf 2.59.
6112 case $ac_arg in
6113 *=* | --config-cache | -C | -disable-* | --disable-* \
6114 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6115 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6116 | -with-* | --with-* | -without-* | --without-* | --x)
6117 separate_arg=no
6118 ;;
6119 -*)
6120 separate_arg=yes
6121 ;;
6122 *)
6123 separate_arg=no
6124 ;;
6125 esac
6126
6127 case "$ac_arg" in
6128 --no*)
6129 continue
6130 ;;
6131 --c* | \
6132 --sr* | \
6133 --ho* | \
6134 --bu* | \
6135 --t* | \
6136 --program-* | \
6137 -cache_file* | \
6138 -srcdir* | \
6139 -host* | \
6140 -build* | \
6141 -target* | \
6142 -program-prefix* | \
6143 -program-suffix* | \
6144 -program-transform-name* )
6145 skip_next=$separate_arg
6146 continue
6147 ;;
6148 -*)
6149 # An option. Add it.
6150 case $ac_arg in
6151 *\'*)
6152 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6153 esac
6154 baseargs="$baseargs '$ac_arg'"
6155 keep_next=$separate_arg
6156 ;;
6157 *)
6158 # Either a variable assignment, or a nonopt (triplet). Don't
6159 # pass it down; let the Makefile handle this.
6160 continue
6161 ;;
6162 esac
6163done
6164# Remove the initial space we just introduced and, as these will be
6165# expanded by make, quote '$'.
6166baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6167
6168# Add in --program-transform-name, after --program-prefix and
6169# --program-suffix have been applied to it. Autoconf has already
6170# doubled dollar signs and backslashes in program_transform_name; we want
6171# the backslashes un-doubled, and then the entire thing wrapped in single
6172# quotes, because this will be expanded first by make and then by the shell.
6173# Also, because we want to override the logic in subdir configure scripts to
6174# choose program_transform_name, replace any s,x,x, with s,y,y,.
6175sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6176${program_transform_name}
6177EOF_SED
6178gcc_transform_name=`cat conftestsed.out`
6179rm -f conftestsed.out
6180baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6181if test "$silent" = yes; then
6182 baseargs="$baseargs --silent"
6183fi
6184
6185# For the build-side libraries, we just need to pretend we're native,
6186# and not use the same cache file. Multilibs are neither needed nor
6187# desired.
6188build_configargs="--cache-file=../config.cache ${baseargs}"
6189
6190# For host modules, accept cache file option, or specification as blank.
6191case "${cache_file}" in
6192"") # empty
6193 cache_file_option="" ;;
6194/* | [A-Za-z]:[\\/]* ) # absolute path
6195 cache_file_option="--cache-file=${cache_file}" ;;
6196*) # relative path
6197 cache_file_option="--cache-file=../${cache_file}" ;;
6198esac
6199
6200# Host dirs don't like to share a cache file either, horribly enough.
6201# This seems to be due to autoconf 2.5x stupidity.
6202host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6203
6204target_configargs=${baseargs}
6205
6206# Passing a --with-cross-host argument lets the target libraries know
6207# whether they are being built with a cross-compiler or being built
6208# native. However, it would be better to use other mechanisms to make the
6209# sorts of decisions they want to make on this basis. Please consider
6210# this option to be deprecated. FIXME.
6211if test x${is_cross_compiler} = xyes ; then
6212 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6213fi
6214
6215# Default to --enable-multilib.
6216if test x${enable_multilib} = x ; then
6217 target_configargs="--enable-multilib ${target_configargs}"
6218fi
6219
6220# Pass --with-newlib if appropriate. Note that target_configdirs has
6221# changed from the earlier setting of with_newlib.
6222if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6223 target_configargs="--with-newlib ${target_configargs}"
6224fi
6225
6226# Different target subdirs use different values of certain variables
6227# (notably CXX). Worse, multilibs use *lots* of different values.
6228# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6229# it doesn't automatically accept command-line overrides of them.
6230# This means it's not safe for target subdirs to share a cache file,
6231# which is disgusting, but there you have it. Hopefully this can be
6232# fixed in future. It's still worthwhile to use a cache file for each
6233# directory. I think.
6234
6235# Pass the appropriate --build, --host, --target and --cache-file arguments.
6236# We need to pass --target, as newer autoconf's requires consistency
6237# for target_alias and gcc doesn't manage it consistently.
6238target_configargs="--cache-file=./config.cache ${target_configargs}"
6239
6240FLAGS_FOR_TARGET=
6241case " $target_configdirs " in
6242 *" newlib "*)
6243 case " $target_configargs " in
6244 *" --with-newlib "*)
6245 case "$target" in
6246 *-cygwin*)
6247 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' ;;
6248 esac
6249
6250 # If we're not building GCC, don't discard standard headers.
6251 if test -d ${srcdir}/gcc; then
6252 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6253
6254 if test "${build}" != "${host}"; then
6255 # On Canadian crosses, CC_FOR_TARGET will have already been set
6256 # by `configure', so we won't have an opportunity to add -Bgcc/
6257 # to it. This is right: we don't want to search that directory
6258 # for binaries, but we want the header files in there, so add
6259 # them explicitly.
6260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6261
6262 # Someone might think of using the pre-installed headers on
6263 # Canadian crosses, in case the installed compiler is not fully
6264 # compatible with the compiler being built. In this case, it
6265 # would be better to flag an error than risking having
6266 # incompatible object files being constructed. We can't
6267 # guarantee that an error will be flagged, but let's hope the
6268 # compiler will do it, when presented with incompatible header
6269 # files.
6270 fi
6271 fi
6272
6273 case "${target}-${is_cross_compiler}" in
6274 i[3456789]86-*-linux*-no)
6275 # Here host == target, so we don't need to build gcc,
6276 # so we don't want to discard standard headers.
6277 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6278 ;;
6279 *)
6280 # If we're building newlib, use its generic headers last, but search
6281 # for any libc-related directories first (so make it the last -B
6282 # switch).
6283 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6284
6285 # If we're building libgloss, find the startup file, simulator library
6286 # and linker script.
6287 case " $target_configdirs " in
6288 *" libgloss "*)
6289 # Look for startup file, simulator library and maybe linker script.
6290 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6291 # Look for libnosys.a in case the target needs it.
6292 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6293 # Most targets have the linker script in the source directory.
6294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6295 ;;
6296 esac
6297 ;;
6298 esac
6299 ;;
6300 esac
6301 ;;
6302esac
6303case "$target" in
6304*-mingw*)
6305 # Can't be handled as Cygwin above since Mingw does not use newlib.
6306 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' ;;
6307esac
6308
6309# Allow the user to override the flags for
6310# our build compiler if desired.
6311if test x"${build}" = x"${host}" ; then
6312 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6313 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6314 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6315fi
6316
6317# On Canadian crosses, we'll be searching the right directories for
6318# the previously-installed cross compiler, so don't bother to add
6319# flags for directories within the install tree of the compiler
6320# being built; programs in there won't even run.
6321if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6322 # Search for pre-installed headers if nothing else fits.
6323 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6324fi
6325
6326if test "x${use_gnu_ld}" = x &&
6327 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6328 # Arrange for us to find uninstalled linker scripts.
6329 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6330fi
6331
6332# Search for other target-specific linker scripts and such.
6333case "${target}" in
6334 mep*)
6335 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6336 ;;
6337esac
6338
6339# Makefile fragments.
6340for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6341do
6342 eval fragval=\$$frag
6343 if test $fragval != /dev/null; then
6344 eval $frag=${srcdir}/$fragval
6345 fi
6346done
6347
6348
6349
6350
6351
6352# Miscellanea: directories, flags, etc.
6353
6354
6355
6356
6357
6358
6359
6360
6361# Build module lists & subconfigure args.
6362
6363
6364
6365# Host module lists & subconfigure args.
6366
6367
6368
6369# Target module lists & subconfigure args.
6370
6371
6372
6373# Build tools.
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391# Generate default definitions for YACC, M4, LEX and other programs that run
6392# on the build machine. These are used if the Makefile can't locate these
6393# programs in objdir.
6394MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6395
6396for ac_prog in 'bison -y' byacc yacc
6397do
6398 # Extract the first word of "$ac_prog", so it can be a program name with args.
6399set dummy $ac_prog; ac_word=$2
6400echo "$as_me:$LINENO: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402if test "${ac_cv_prog_YACC+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 if test -n "$YACC"; then
6406 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6407else
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_YACC="$ac_prog"
6416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419done
6420done
6421
6422fi
6423fi
6424YACC=$ac_cv_prog_YACC
6425if test -n "$YACC"; then
6426 echo "$as_me:$LINENO: result: $YACC" >&5
6427echo "${ECHO_T}$YACC" >&6
6428else
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
6431fi
6432
6433 test -n "$YACC" && break
6434done
6435test -n "$YACC" || YACC="$MISSING bison -y"
6436
6437case " $build_configdirs " in
6438 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6439 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6440esac
6441
6442for ac_prog in bison
6443do
6444 # Extract the first word of "$ac_prog", so it can be a program name with args.
6445set dummy $ac_prog; ac_word=$2
6446echo "$as_me:$LINENO: checking for $ac_word" >&5
6447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6448if test "${ac_cv_prog_BISON+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 if test -n "$BISON"; then
6452 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_BISON="$ac_prog"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466done
6467
6468fi
6469fi
6470BISON=$ac_cv_prog_BISON
6471if test -n "$BISON"; then
6472 echo "$as_me:$LINENO: result: $BISON" >&5
6473echo "${ECHO_T}$BISON" >&6
6474else
6475 echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
6477fi
6478
6479 test -n "$BISON" && break
6480done
6481test -n "$BISON" || BISON="$MISSING bison"
6482
6483case " $build_configdirs " in
6484 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6485esac
6486
6487for ac_prog in gm4 gnum4 m4
6488do
6489 # Extract the first word of "$ac_prog", so it can be a program name with args.
6490set dummy $ac_prog; ac_word=$2
6491echo "$as_me:$LINENO: checking for $ac_word" >&5
6492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6493if test "${ac_cv_prog_M4+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 if test -n "$M4"; then
6497 ac_cv_prog_M4="$M4" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506 ac_cv_prog_M4="$ac_prog"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510done
6511done
6512
6513fi
6514fi
6515M4=$ac_cv_prog_M4
6516if test -n "$M4"; then
6517 echo "$as_me:$LINENO: result: $M4" >&5
6518echo "${ECHO_T}$M4" >&6
6519else
6520 echo "$as_me:$LINENO: result: no" >&5
6521echo "${ECHO_T}no" >&6
6522fi
6523
6524 test -n "$M4" && break
6525done
6526test -n "$M4" || M4="$MISSING m4"
6527
6528case " $build_configdirs " in
6529 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6530esac
6531
6532for ac_prog in flex lex
6533do
6534 # Extract the first word of "$ac_prog", so it can be a program name with args.
6535set dummy $ac_prog; ac_word=$2
6536echo "$as_me:$LINENO: checking for $ac_word" >&5
6537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6538if test "${ac_cv_prog_LEX+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else
6541 if test -n "$LEX"; then
6542 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_LEX="$ac_prog"
6552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555done
6556done
6557
6558fi
6559fi
6560LEX=$ac_cv_prog_LEX
6561if test -n "$LEX"; then
6562 echo "$as_me:$LINENO: result: $LEX" >&5
6563echo "${ECHO_T}$LEX" >&6
6564else
6565 echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6
6567fi
6568
6569 test -n "$LEX" && break
6570done
6571test -n "$LEX" || LEX="$MISSING flex"
6572
6573case " $build_configdirs " in
6574 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6575 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6576esac
6577
6578for ac_prog in flex
6579do
6580 # Extract the first word of "$ac_prog", so it can be a program name with args.
6581set dummy $ac_prog; ac_word=$2
6582echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6584if test "${ac_cv_prog_FLEX+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 if test -n "$FLEX"; then
6588 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_FLEX="$ac_prog"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602done
6603
6604fi
6605fi
6606FLEX=$ac_cv_prog_FLEX
6607if test -n "$FLEX"; then
6608 echo "$as_me:$LINENO: result: $FLEX" >&5
6609echo "${ECHO_T}$FLEX" >&6
6610else
6611 echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6
6613fi
6614
6615 test -n "$FLEX" && break
6616done
6617test -n "$FLEX" || FLEX="$MISSING flex"
6618
6619case " $build_configdirs " in
6620 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6621esac
6622
6623for ac_prog in makeinfo
6624do
6625 # Extract the first word of "$ac_prog", so it can be a program name with args.
6626set dummy $ac_prog; ac_word=$2
6627echo "$as_me:$LINENO: checking for $ac_word" >&5
6628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6629if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632 if test -n "$MAKEINFO"; then
6633 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_MAKEINFO="$ac_prog"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647done
6648
6649fi
6650fi
6651MAKEINFO=$ac_cv_prog_MAKEINFO
6652if test -n "$MAKEINFO"; then
6653 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6654echo "${ECHO_T}$MAKEINFO" >&6
6655else
6656 echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6
6658fi
6659
6660 test -n "$MAKEINFO" && break
6661done
6662test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6663
6664case " $build_configdirs " in
6665 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6666 *)
6667
6668 # For an installed makeinfo, we require it to be from texinfo 4.7 or
6669 # higher, else we use the "missing" dummy.
6670 if ${MAKEINFO} --version \
6671 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6672 :
6673 else
6674 MAKEINFO="$MISSING makeinfo"
6675 fi
6676 ;;
6677
6678esac
6679
6680# FIXME: expect and dejagnu may become build tools?
6681
6682for ac_prog in expect
6683do
6684 # Extract the first word of "$ac_prog", so it can be a program name with args.
6685set dummy $ac_prog; ac_word=$2
6686echo "$as_me:$LINENO: checking for $ac_word" >&5
6687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6688if test "${ac_cv_prog_EXPECT+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691 if test -n "$EXPECT"; then
6692 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_EXPECT="$ac_prog"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706done
6707
6708fi
6709fi
6710EXPECT=$ac_cv_prog_EXPECT
6711if test -n "$EXPECT"; then
6712 echo "$as_me:$LINENO: result: $EXPECT" >&5
6713echo "${ECHO_T}$EXPECT" >&6
6714else
6715 echo "$as_me:$LINENO: result: no" >&5
6716echo "${ECHO_T}no" >&6
6717fi
6718
6719 test -n "$EXPECT" && break
6720done
6721test -n "$EXPECT" || EXPECT="expect"
6722
6723case " $configdirs " in
6724 *" expect "*)
6725 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6726 ;;
6727esac
6728
6729for ac_prog in runtest
6730do
6731 # Extract the first word of "$ac_prog", so it can be a program name with args.
6732set dummy $ac_prog; ac_word=$2
6733echo "$as_me:$LINENO: checking for $ac_word" >&5
6734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6735if test "${ac_cv_prog_RUNTEST+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738 if test -n "$RUNTEST"; then
6739 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_RUNTEST="$ac_prog"
6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752done
6753done
6754
6755fi
6756fi
6757RUNTEST=$ac_cv_prog_RUNTEST
6758if test -n "$RUNTEST"; then
6759 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6760echo "${ECHO_T}$RUNTEST" >&6
6761else
6762 echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6
6764fi
6765
6766 test -n "$RUNTEST" && break
6767done
6768test -n "$RUNTEST" || RUNTEST="runtest"
6769
6770case " $configdirs " in
6771 *" dejagnu "*)
6772 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6773 ;;
6774esac
6775
6776
6777# Host tools.
6778ncn_tool_prefix=
6779test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6780ncn_target_tool_prefix=
6781test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6782
6783
6784
6785if test -n "$AR"; then
6786 ac_cv_prog_AR=$AR
6787elif test -n "$ac_cv_prog_AR"; then
6788 AR=$ac_cv_prog_AR
6789fi
6790
6791if test -n "$ac_cv_prog_AR"; then
6792 for ncn_progname in ar; do
6793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6794set dummy ${ncn_progname}; ac_word=$2
6795echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6797if test "${ac_cv_prog_AR+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800 if test -n "$AR"; then
6801 ac_cv_prog_AR="$AR" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_AR="${ncn_progname}"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814done
6815done
6816
6817fi
6818fi
6819AR=$ac_cv_prog_AR
6820if test -n "$AR"; then
6821 echo "$as_me:$LINENO: result: $AR" >&5
6822echo "${ECHO_T}$AR" >&6
6823else
6824 echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6
6826fi
6827
6828 done
6829fi
6830
6831for ncn_progname in ar; do
6832 if test -n "$ncn_tool_prefix"; then
6833 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6834set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6835echo "$as_me:$LINENO: checking for $ac_word" >&5
6836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6837if test "${ac_cv_prog_AR+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840 if test -n "$AR"; then
6841 ac_cv_prog_AR="$AR" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854done
6855done
6856
6857fi
6858fi
6859AR=$ac_cv_prog_AR
6860if test -n "$AR"; then
6861 echo "$as_me:$LINENO: result: $AR" >&5
6862echo "${ECHO_T}$AR" >&6
6863else
6864 echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6
6866fi
6867
6868 fi
6869 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6871set dummy ${ncn_progname}; ac_word=$2
6872echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6874if test "${ac_cv_prog_AR+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877 if test -n "$AR"; then
6878 ac_cv_prog_AR="$AR" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_AR="${ncn_progname}"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891done
6892done
6893
6894fi
6895fi
6896AR=$ac_cv_prog_AR
6897if test -n "$AR"; then
6898 echo "$as_me:$LINENO: result: $AR" >&5
6899echo "${ECHO_T}$AR" >&6
6900else
6901 echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6
6903fi
6904
6905 fi
6906 test -n "$ac_cv_prog_AR" && break
6907done
6908
6909if test -z "$ac_cv_prog_AR" ; then
6910 set dummy ar
6911 if test $build = $host ; then
6912 AR="$2"
6913 else
6914 AR="${ncn_tool_prefix}$2"
6915 fi
6916fi
6917
6918
6919
6920if test -n "$AS"; then
6921 ac_cv_prog_AS=$AS
6922elif test -n "$ac_cv_prog_AS"; then
6923 AS=$ac_cv_prog_AS
6924fi
6925
6926if test -n "$ac_cv_prog_AS"; then
6927 for ncn_progname in as; do
6928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6929set dummy ${ncn_progname}; ac_word=$2
6930echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6932if test "${ac_cv_prog_AS+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 if test -n "$AS"; then
6936 ac_cv_prog_AS="$AS" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_AS="${ncn_progname}"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950done
6951
6952fi
6953fi
6954AS=$ac_cv_prog_AS
6955if test -n "$AS"; then
6956 echo "$as_me:$LINENO: result: $AS" >&5
6957echo "${ECHO_T}$AS" >&6
6958else
6959 echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6
6961fi
6962
6963 done
6964fi
6965
6966for ncn_progname in as; do
6967 if test -n "$ncn_tool_prefix"; then
6968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6969set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6970echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6972if test "${ac_cv_prog_AS+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975 if test -n "$AS"; then
6976 ac_cv_prog_AS="$AS" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990done
6991
6992fi
6993fi
6994AS=$ac_cv_prog_AS
6995if test -n "$AS"; then
6996 echo "$as_me:$LINENO: result: $AS" >&5
6997echo "${ECHO_T}$AS" >&6
6998else
6999 echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6
7001fi
7002
7003 fi
7004 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7006set dummy ${ncn_progname}; ac_word=$2
7007echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7009if test "${ac_cv_prog_AS+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 if test -n "$AS"; then
7013 ac_cv_prog_AS="$AS" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_AS="${ncn_progname}"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027done
7028
7029fi
7030fi
7031AS=$ac_cv_prog_AS
7032if test -n "$AS"; then
7033 echo "$as_me:$LINENO: result: $AS" >&5
7034echo "${ECHO_T}$AS" >&6
7035else
7036 echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6
7038fi
7039
7040 fi
7041 test -n "$ac_cv_prog_AS" && break
7042done
7043
7044if test -z "$ac_cv_prog_AS" ; then
7045 set dummy as
7046 if test $build = $host ; then
7047 AS="$2"
7048 else
7049 AS="${ncn_tool_prefix}$2"
7050 fi
7051fi
7052
7053
7054
7055if test -n "$DLLTOOL"; then
7056 ac_cv_prog_DLLTOOL=$DLLTOOL
7057elif test -n "$ac_cv_prog_DLLTOOL"; then
7058 DLLTOOL=$ac_cv_prog_DLLTOOL
7059fi
7060
7061if test -n "$ac_cv_prog_DLLTOOL"; then
7062 for ncn_progname in dlltool; do
7063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7064set dummy ${ncn_progname}; ac_word=$2
7065echo "$as_me:$LINENO: checking for $ac_word" >&5
7066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7067if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070 if test -n "$DLLTOOL"; then
7071 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_DLLTOOL="${ncn_progname}"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084done
7085done
7086
7087fi
7088fi
7089DLLTOOL=$ac_cv_prog_DLLTOOL
7090if test -n "$DLLTOOL"; then
7091 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7092echo "${ECHO_T}$DLLTOOL" >&6
7093else
7094 echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6
7096fi
7097
7098 done
7099fi
7100
7101for ncn_progname in dlltool; do
7102 if test -n "$ncn_tool_prefix"; then
7103 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7104set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7105echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 if test -n "$DLLTOOL"; then
7111 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126
7127fi
7128fi
7129DLLTOOL=$ac_cv_prog_DLLTOOL
7130if test -n "$DLLTOOL"; then
7131 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7132echo "${ECHO_T}$DLLTOOL" >&6
7133else
7134 echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
7136fi
7137
7138 fi
7139 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7141set dummy ${ncn_progname}; ac_word=$2
7142echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 if test -n "$DLLTOOL"; then
7148 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7149else
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_DLLTOOL="${ncn_progname}"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163
7164fi
7165fi
7166DLLTOOL=$ac_cv_prog_DLLTOOL
7167if test -n "$DLLTOOL"; then
7168 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7169echo "${ECHO_T}$DLLTOOL" >&6
7170else
7171 echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
7173fi
7174
7175 fi
7176 test -n "$ac_cv_prog_DLLTOOL" && break
7177done
7178
7179if test -z "$ac_cv_prog_DLLTOOL" ; then
7180 set dummy dlltool
7181 if test $build = $host ; then
7182 DLLTOOL="$2"
7183 else
7184 DLLTOOL="${ncn_tool_prefix}$2"
7185 fi
7186fi
7187
7188
7189
7190if test -n "$LD"; then
7191 ac_cv_prog_LD=$LD
7192elif test -n "$ac_cv_prog_LD"; then
7193 LD=$ac_cv_prog_LD
7194fi
7195
7196if test -n "$ac_cv_prog_LD"; then
7197 for ncn_progname in ld; do
7198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7199set dummy ${ncn_progname}; ac_word=$2
7200echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202if test "${ac_cv_prog_LD+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205 if test -n "$LD"; then
7206 ac_cv_prog_LD="$LD" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_LD="${ncn_progname}"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220done
7221
7222fi
7223fi
7224LD=$ac_cv_prog_LD
7225if test -n "$LD"; then
7226 echo "$as_me:$LINENO: result: $LD" >&5
7227echo "${ECHO_T}$LD" >&6
7228else
7229 echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6
7231fi
7232
7233 done
7234fi
7235
7236for ncn_progname in ld; do
7237 if test -n "$ncn_tool_prefix"; then
7238 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7239set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7240echo "$as_me:$LINENO: checking for $ac_word" >&5
7241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7242if test "${ac_cv_prog_LD+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245 if test -n "$LD"; then
7246 ac_cv_prog_LD="$LD" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259done
7260done
7261
7262fi
7263fi
7264LD=$ac_cv_prog_LD
7265if test -n "$LD"; then
7266 echo "$as_me:$LINENO: result: $LD" >&5
7267echo "${ECHO_T}$LD" >&6
7268else
7269 echo "$as_me:$LINENO: result: no" >&5
7270echo "${ECHO_T}no" >&6
7271fi
7272
7273 fi
7274 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7276set dummy ${ncn_progname}; ac_word=$2
7277echo "$as_me:$LINENO: checking for $ac_word" >&5
7278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7279if test "${ac_cv_prog_LD+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282 if test -n "$LD"; then
7283 ac_cv_prog_LD="$LD" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_LD="${ncn_progname}"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296done
7297done
7298
7299fi
7300fi
7301LD=$ac_cv_prog_LD
7302if test -n "$LD"; then
7303 echo "$as_me:$LINENO: result: $LD" >&5
7304echo "${ECHO_T}$LD" >&6
7305else
7306 echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6
7308fi
7309
7310 fi
7311 test -n "$ac_cv_prog_LD" && break
7312done
7313
7314if test -z "$ac_cv_prog_LD" ; then
7315 set dummy ld
7316 if test $build = $host ; then
7317 LD="$2"
7318 else
7319 LD="${ncn_tool_prefix}$2"
7320 fi
7321fi
7322
7323
7324
7325if test -n "$LIPO"; then
7326 ac_cv_prog_LIPO=$LIPO
7327elif test -n "$ac_cv_prog_LIPO"; then
7328 LIPO=$ac_cv_prog_LIPO
7329fi
7330
7331if test -n "$ac_cv_prog_LIPO"; then
7332 for ncn_progname in lipo; do
7333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7334set dummy ${ncn_progname}; ac_word=$2
7335echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337if test "${ac_cv_prog_LIPO+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340 if test -n "$LIPO"; then
7341 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_LIPO="${ncn_progname}"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355done
7356
7357fi
7358fi
7359LIPO=$ac_cv_prog_LIPO
7360if test -n "$LIPO"; then
7361 echo "$as_me:$LINENO: result: $LIPO" >&5
7362echo "${ECHO_T}$LIPO" >&6
7363else
7364 echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
7366fi
7367
7368 done
7369fi
7370
7371for ncn_progname in lipo; do
7372 if test -n "$ncn_tool_prefix"; then
7373 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7374set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7375echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377if test "${ac_cv_prog_LIPO+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380 if test -n "$LIPO"; then
7381 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394done
7395done
7396
7397fi
7398fi
7399LIPO=$ac_cv_prog_LIPO
7400if test -n "$LIPO"; then
7401 echo "$as_me:$LINENO: result: $LIPO" >&5
7402echo "${ECHO_T}$LIPO" >&6
7403else
7404 echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6
7406fi
7407
7408 fi
7409 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7411set dummy ${ncn_progname}; ac_word=$2
7412echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7414if test "${ac_cv_prog_LIPO+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417 if test -n "$LIPO"; then
7418 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_LIPO="${ncn_progname}"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431done
7432done
7433
7434fi
7435fi
7436LIPO=$ac_cv_prog_LIPO
7437if test -n "$LIPO"; then
7438 echo "$as_me:$LINENO: result: $LIPO" >&5
7439echo "${ECHO_T}$LIPO" >&6
7440else
7441 echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6
7443fi
7444
7445 fi
7446 test -n "$ac_cv_prog_LIPO" && break
7447done
7448
7449if test -z "$ac_cv_prog_LIPO" ; then
7450 set dummy lipo
7451 if test $build = $host ; then
7452 LIPO="$2"
7453 else
7454 LIPO="${ncn_tool_prefix}$2"
7455 fi
7456fi
7457
7458
7459
7460if test -n "$NM"; then
7461 ac_cv_prog_NM=$NM
7462elif test -n "$ac_cv_prog_NM"; then
7463 NM=$ac_cv_prog_NM
7464fi
7465
7466if test -n "$ac_cv_prog_NM"; then
7467 for ncn_progname in nm; do
7468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7469set dummy ${ncn_progname}; ac_word=$2
7470echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472if test "${ac_cv_prog_NM+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 if test -n "$NM"; then
7476 ac_cv_prog_NM="$NM" # Let the user override the test.
7477else
7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_NM="${ncn_progname}"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
7491
7492fi
7493fi
7494NM=$ac_cv_prog_NM
7495if test -n "$NM"; then
7496 echo "$as_me:$LINENO: result: $NM" >&5
7497echo "${ECHO_T}$NM" >&6
7498else
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501fi
7502
7503 done
7504fi
7505
7506for ncn_progname in nm; do
7507 if test -n "$ncn_tool_prefix"; then
7508 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7509set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7510echo "$as_me:$LINENO: checking for $ac_word" >&5
7511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7512if test "${ac_cv_prog_NM+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 if test -n "$NM"; then
7516 ac_cv_prog_NM="$NM" # Let the user override the test.
7517else
7518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519for as_dir in $PATH
7520do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7528 fi
7529done
7530done
7531
7532fi
7533fi
7534NM=$ac_cv_prog_NM
7535if test -n "$NM"; then
7536 echo "$as_me:$LINENO: result: $NM" >&5
7537echo "${ECHO_T}$NM" >&6
7538else
7539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
7541fi
7542
7543 fi
7544 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7546set dummy ${ncn_progname}; ac_word=$2
7547echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7549if test "${ac_cv_prog_NM+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 if test -n "$NM"; then
7553 ac_cv_prog_NM="$NM" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_NM="${ncn_progname}"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567done
7568
7569fi
7570fi
7571NM=$ac_cv_prog_NM
7572if test -n "$NM"; then
7573 echo "$as_me:$LINENO: result: $NM" >&5
7574echo "${ECHO_T}$NM" >&6
7575else
7576 echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6
7578fi
7579
7580 fi
7581 test -n "$ac_cv_prog_NM" && break
7582done
7583
7584if test -z "$ac_cv_prog_NM" ; then
7585 set dummy nm
7586 if test $build = $host ; then
7587 NM="$2"
7588 else
7589 NM="${ncn_tool_prefix}$2"
7590 fi
7591fi
7592
7593
7594
7595if test -n "$RANLIB"; then
7596 ac_cv_prog_RANLIB=$RANLIB
7597elif test -n "$ac_cv_prog_RANLIB"; then
7598 RANLIB=$ac_cv_prog_RANLIB
7599fi
7600
7601if test -n "$ac_cv_prog_RANLIB"; then
7602 for ncn_progname in ranlib; do
7603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7604set dummy ${ncn_progname}; ac_word=$2
7605echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7607if test "${ac_cv_prog_RANLIB+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 if test -n "$RANLIB"; then
7611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_RANLIB="${ncn_progname}"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624done
7625done
7626
7627fi
7628fi
7629RANLIB=$ac_cv_prog_RANLIB
7630if test -n "$RANLIB"; then
7631 echo "$as_me:$LINENO: result: $RANLIB" >&5
7632echo "${ECHO_T}$RANLIB" >&6
7633else
7634 echo "$as_me:$LINENO: result: no" >&5
7635echo "${ECHO_T}no" >&6
7636fi
7637
7638 done
7639fi
7640
7641for ncn_progname in ranlib; do
7642 if test -n "$ncn_tool_prefix"; then
7643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7644set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7645echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647if test "${ac_cv_prog_RANLIB+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 if test -n "$RANLIB"; then
7651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7652else
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7663 fi
7664done
7665done
7666
7667fi
7668fi
7669RANLIB=$ac_cv_prog_RANLIB
7670if test -n "$RANLIB"; then
7671 echo "$as_me:$LINENO: result: $RANLIB" >&5
7672echo "${ECHO_T}$RANLIB" >&6
7673else
7674 echo "$as_me:$LINENO: result: no" >&5
7675echo "${ECHO_T}no" >&6
7676fi
7677
7678 fi
7679 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7681set dummy ${ncn_progname}; ac_word=$2
7682echo "$as_me:$LINENO: checking for $ac_word" >&5
7683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7684if test "${ac_cv_prog_RANLIB+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687 if test -n "$RANLIB"; then
7688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_RANLIB="${ncn_progname}"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701done
7702done
7703
7704fi
7705fi
7706RANLIB=$ac_cv_prog_RANLIB
7707if test -n "$RANLIB"; then
7708 echo "$as_me:$LINENO: result: $RANLIB" >&5
7709echo "${ECHO_T}$RANLIB" >&6
7710else
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713fi
7714
7715 fi
7716 test -n "$ac_cv_prog_RANLIB" && break
7717done
7718
7719if test -z "$ac_cv_prog_RANLIB" ; then
7720 RANLIB=":"
7721fi
7722
7723
7724
7725if test -n "$STRIP"; then
7726 ac_cv_prog_STRIP=$STRIP
7727elif test -n "$ac_cv_prog_STRIP"; then
7728 STRIP=$ac_cv_prog_STRIP
7729fi
7730
7731if test -n "$ac_cv_prog_STRIP"; then
7732 for ncn_progname in strip; do
7733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7734set dummy ${ncn_progname}; ac_word=$2
7735echo "$as_me:$LINENO: checking for $ac_word" >&5
7736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7737if test "${ac_cv_prog_STRIP+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 if test -n "$STRIP"; then
7741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_STRIP="${ncn_progname}"
7751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754done
7755done
7756
7757fi
7758fi
7759STRIP=$ac_cv_prog_STRIP
7760if test -n "$STRIP"; then
7761 echo "$as_me:$LINENO: result: $STRIP" >&5
7762echo "${ECHO_T}$STRIP" >&6
7763else
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
7766fi
7767
7768 done
7769fi
7770
7771for ncn_progname in strip; do
7772 if test -n "$ncn_tool_prefix"; then
7773 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7774set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7775echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7777if test "${ac_cv_prog_STRIP+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780 if test -n "$STRIP"; then
7781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7782else
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794done
7795done
7796
7797fi
7798fi
7799STRIP=$ac_cv_prog_STRIP
7800if test -n "$STRIP"; then
7801 echo "$as_me:$LINENO: result: $STRIP" >&5
7802echo "${ECHO_T}$STRIP" >&6
7803else
7804 echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6
7806fi
7807
7808 fi
7809 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7811set dummy ${ncn_progname}; ac_word=$2
7812echo "$as_me:$LINENO: checking for $ac_word" >&5
7813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7814if test "${ac_cv_prog_STRIP+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816else
7817 if test -n "$STRIP"; then
7818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_STRIP="${ncn_progname}"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832done
7833
7834fi
7835fi
7836STRIP=$ac_cv_prog_STRIP
7837if test -n "$STRIP"; then
7838 echo "$as_me:$LINENO: result: $STRIP" >&5
7839echo "${ECHO_T}$STRIP" >&6
7840else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843fi
7844
7845 fi
7846 test -n "$ac_cv_prog_STRIP" && break
7847done
7848
7849if test -z "$ac_cv_prog_STRIP" ; then
7850 STRIP=":"
7851fi
7852
7853
7854
7855if test -n "$WINDRES"; then
7856 ac_cv_prog_WINDRES=$WINDRES
7857elif test -n "$ac_cv_prog_WINDRES"; then
7858 WINDRES=$ac_cv_prog_WINDRES
7859fi
7860
7861if test -n "$ac_cv_prog_WINDRES"; then
7862 for ncn_progname in windres; do
7863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7864set dummy ${ncn_progname}; ac_word=$2
7865echo "$as_me:$LINENO: checking for $ac_word" >&5
7866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867if test "${ac_cv_prog_WINDRES+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870 if test -n "$WINDRES"; then
7871 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7872else
7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_WINDRES="${ncn_progname}"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884done
7885done
7886
7887fi
7888fi
7889WINDRES=$ac_cv_prog_WINDRES
7890if test -n "$WINDRES"; then
7891 echo "$as_me:$LINENO: result: $WINDRES" >&5
7892echo "${ECHO_T}$WINDRES" >&6
7893else
7894 echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6
7896fi
7897
7898 done
7899fi
7900
7901for ncn_progname in windres; do
7902 if test -n "$ncn_tool_prefix"; then
7903 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7904set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7905echo "$as_me:$LINENO: checking for $ac_word" >&5
7906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7907if test "${ac_cv_prog_WINDRES+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 if test -n "$WINDRES"; then
7911 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7912else
7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924done
7925done
7926
7927fi
7928fi
7929WINDRES=$ac_cv_prog_WINDRES
7930if test -n "$WINDRES"; then
7931 echo "$as_me:$LINENO: result: $WINDRES" >&5
7932echo "${ECHO_T}$WINDRES" >&6
7933else
7934 echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6
7936fi
7937
7938 fi
7939 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7941set dummy ${ncn_progname}; ac_word=$2
7942echo "$as_me:$LINENO: checking for $ac_word" >&5
7943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7944if test "${ac_cv_prog_WINDRES+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947 if test -n "$WINDRES"; then
7948 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_WINDRES="${ncn_progname}"
7958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961done
7962done
7963
7964fi
7965fi
7966WINDRES=$ac_cv_prog_WINDRES
7967if test -n "$WINDRES"; then
7968 echo "$as_me:$LINENO: result: $WINDRES" >&5
7969echo "${ECHO_T}$WINDRES" >&6
7970else
7971 echo "$as_me:$LINENO: result: no" >&5
7972echo "${ECHO_T}no" >&6
7973fi
7974
7975 fi
7976 test -n "$ac_cv_prog_WINDRES" && break
7977done
7978
7979if test -z "$ac_cv_prog_WINDRES" ; then
7980 set dummy windres
7981 if test $build = $host ; then
7982 WINDRES="$2"
7983 else
7984 WINDRES="${ncn_tool_prefix}$2"
7985 fi
7986fi
7987
7988
7989
7990if test -n "$WINDMC"; then
7991 ac_cv_prog_WINDMC=$WINDMC
7992elif test -n "$ac_cv_prog_WINDMC"; then
7993 WINDMC=$ac_cv_prog_WINDMC
7994fi
7995
7996if test -n "$ac_cv_prog_WINDMC"; then
7997 for ncn_progname in windmc; do
7998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7999set dummy ${ncn_progname}; ac_word=$2
8000echo "$as_me:$LINENO: checking for $ac_word" >&5
8001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8002if test "${ac_cv_prog_WINDMC+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005 if test -n "$WINDMC"; then
8006 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8007else
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_WINDMC="${ncn_progname}"
8016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019done
8020done
8021
8022fi
8023fi
8024WINDMC=$ac_cv_prog_WINDMC
8025if test -n "$WINDMC"; then
8026 echo "$as_me:$LINENO: result: $WINDMC" >&5
8027echo "${ECHO_T}$WINDMC" >&6
8028else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031fi
8032
8033 done
8034fi
8035
8036for ncn_progname in windmc; do
8037 if test -n "$ncn_tool_prefix"; then
8038 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8039set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8040echo "$as_me:$LINENO: checking for $ac_word" >&5
8041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8042if test "${ac_cv_prog_WINDMC+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045 if test -n "$WINDMC"; then
8046 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8047else
8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049for as_dir in $PATH
8050do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8058 fi
8059done
8060done
8061
8062fi
8063fi
8064WINDMC=$ac_cv_prog_WINDMC
8065if test -n "$WINDMC"; then
8066 echo "$as_me:$LINENO: result: $WINDMC" >&5
8067echo "${ECHO_T}$WINDMC" >&6
8068else
8069 echo "$as_me:$LINENO: result: no" >&5
8070echo "${ECHO_T}no" >&6
8071fi
8072
8073 fi
8074 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8076set dummy ${ncn_progname}; ac_word=$2
8077echo "$as_me:$LINENO: checking for $ac_word" >&5
8078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079if test "${ac_cv_prog_WINDMC+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082 if test -n "$WINDMC"; then
8083 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_WINDMC="${ncn_progname}"
8093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097done
8098
8099fi
8100fi
8101WINDMC=$ac_cv_prog_WINDMC
8102if test -n "$WINDMC"; then
8103 echo "$as_me:$LINENO: result: $WINDMC" >&5
8104echo "${ECHO_T}$WINDMC" >&6
8105else
8106 echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
8108fi
8109
8110 fi
8111 test -n "$ac_cv_prog_WINDMC" && break
8112done
8113
8114if test -z "$ac_cv_prog_WINDMC" ; then
8115 set dummy windmc
8116 if test $build = $host ; then
8117 WINDMC="$2"
8118 else
8119 WINDMC="${ncn_tool_prefix}$2"
8120 fi
8121fi
8122
8123
8124
8125if test -n "$OBJCOPY"; then
8126 ac_cv_prog_OBJCOPY=$OBJCOPY
8127elif test -n "$ac_cv_prog_OBJCOPY"; then
8128 OBJCOPY=$ac_cv_prog_OBJCOPY
8129fi
8130
8131if test -n "$ac_cv_prog_OBJCOPY"; then
8132 for ncn_progname in objcopy; do
8133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8134set dummy ${ncn_progname}; ac_word=$2
8135echo "$as_me:$LINENO: checking for $ac_word" >&5
8136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8137if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139else
8140 if test -n "$OBJCOPY"; then
8141 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8142else
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_prog_OBJCOPY="${ncn_progname}"
8151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 break 2
8153 fi
8154done
8155done
8156
8157fi
8158fi
8159OBJCOPY=$ac_cv_prog_OBJCOPY
8160if test -n "$OBJCOPY"; then
8161 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8162echo "${ECHO_T}$OBJCOPY" >&6
8163else
8164 echo "$as_me:$LINENO: result: no" >&5
8165echo "${ECHO_T}no" >&6
8166fi
8167
8168 done
8169fi
8170
8171for ncn_progname in objcopy; do
8172 if test -n "$ncn_tool_prefix"; then
8173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8174set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8175echo "$as_me:$LINENO: checking for $ac_word" >&5
8176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8177if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 if test -n "$OBJCOPY"; then
8181 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194done
8195done
8196
8197fi
8198fi
8199OBJCOPY=$ac_cv_prog_OBJCOPY
8200if test -n "$OBJCOPY"; then
8201 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8202echo "${ECHO_T}$OBJCOPY" >&6
8203else
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
8206fi
8207
8208 fi
8209 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8211set dummy ${ncn_progname}; ac_word=$2
8212echo "$as_me:$LINENO: checking for $ac_word" >&5
8213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8214if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217 if test -n "$OBJCOPY"; then
8218 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8219else
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227 ac_cv_prog_OBJCOPY="${ncn_progname}"
8228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231done
8232done
8233
8234fi
8235fi
8236OBJCOPY=$ac_cv_prog_OBJCOPY
8237if test -n "$OBJCOPY"; then
8238 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8239echo "${ECHO_T}$OBJCOPY" >&6
8240else
8241 echo "$as_me:$LINENO: result: no" >&5
8242echo "${ECHO_T}no" >&6
8243fi
8244
8245 fi
8246 test -n "$ac_cv_prog_OBJCOPY" && break
8247done
8248
8249if test -z "$ac_cv_prog_OBJCOPY" ; then
8250 set dummy objcopy
8251 if test $build = $host ; then
8252 OBJCOPY="$2"
8253 else
8254 OBJCOPY="${ncn_tool_prefix}$2"
8255 fi
8256fi
8257
8258
8259
8260if test -n "$OBJDUMP"; then
8261 ac_cv_prog_OBJDUMP=$OBJDUMP
8262elif test -n "$ac_cv_prog_OBJDUMP"; then
8263 OBJDUMP=$ac_cv_prog_OBJDUMP
8264fi
8265
8266if test -n "$ac_cv_prog_OBJDUMP"; then
8267 for ncn_progname in objdump; do
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_progname}; ac_word=$2
8270echo "$as_me:$LINENO: checking for $ac_word" >&5
8271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275 if test -n "$OBJDUMP"; then
8276 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_OBJDUMP="${ncn_progname}"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289done
8290done
8291
8292fi
8293fi
8294OBJDUMP=$ac_cv_prog_OBJDUMP
8295if test -n "$OBJDUMP"; then
8296 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8297echo "${ECHO_T}$OBJDUMP" >&6
8298else
8299 echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
8301fi
8302
8303 done
8304fi
8305
8306for ncn_progname in objdump; do
8307 if test -n "$ncn_tool_prefix"; then
8308 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8309set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8310echo "$as_me:$LINENO: checking for $ac_word" >&5
8311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8312if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 if test -n "$OBJDUMP"; then
8316 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8317else
8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329done
8330done
8331
8332fi
8333fi
8334OBJDUMP=$ac_cv_prog_OBJDUMP
8335if test -n "$OBJDUMP"; then
8336 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8337echo "${ECHO_T}$OBJDUMP" >&6
8338else
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341fi
8342
8343 fi
8344 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8346set dummy ${ncn_progname}; ac_word=$2
8347echo "$as_me:$LINENO: checking for $ac_word" >&5
8348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8349if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352 if test -n "$OBJDUMP"; then
8353 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8354else
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_prog_OBJDUMP="${ncn_progname}"
8363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366done
8367done
8368
8369fi
8370fi
8371OBJDUMP=$ac_cv_prog_OBJDUMP
8372if test -n "$OBJDUMP"; then
8373 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8374echo "${ECHO_T}$OBJDUMP" >&6
8375else
8376 echo "$as_me:$LINENO: result: no" >&5
8377echo "${ECHO_T}no" >&6
8378fi
8379
8380 fi
8381 test -n "$ac_cv_prog_OBJDUMP" && break
8382done
8383
8384if test -z "$ac_cv_prog_OBJDUMP" ; then
8385 set dummy objdump
8386 if test $build = $host ; then
8387 OBJDUMP="$2"
8388 else
8389 OBJDUMP="${ncn_tool_prefix}$2"
8390 fi
8391fi
8392
8393
8394
8395
8396
8397
8398# Target tools.
8399
8400# Check whether --with-build-time-tools or --without-build-time-tools was given.
8401if test "${with_build_time_tools+set}" = set; then
8402 withval="$with_build_time_tools"
8403 case x"$withval" in
8404 x/*) ;;
8405 *)
8406 with_build_time_tools=
8407 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8408echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8409 ;;
8410 esac
8411else
8412 with_build_time_tools=
8413fi;
8414
8415
8416
8417if test -n "$CC_FOR_TARGET"; then
8418 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8419elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8420 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8421fi
8422
8423if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8424 for ncn_progname in cc gcc; do
8425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8426set dummy ${ncn_progname}; ac_word=$2
8427echo "$as_me:$LINENO: checking for $ac_word" >&5
8428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8429if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432 if test -n "$CC_FOR_TARGET"; then
8433 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8434else
8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436for as_dir in $PATH
8437do
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 break 2
8445 fi
8446done
8447done
8448
8449fi
8450fi
8451CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8452if test -n "$CC_FOR_TARGET"; then
8453 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8454echo "${ECHO_T}$CC_FOR_TARGET" >&6
8455else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458fi
8459
8460 done
8461fi
8462
8463if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8464 for ncn_progname in cc gcc; do
8465 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8466echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8467 if test -x $with_build_time_tools/${ncn_progname}; then
8468 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8469 echo "$as_me:$LINENO: result: yes" >&5
8470echo "${ECHO_T}yes" >&6
8471 break
8472 else
8473 echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6
8475 fi
8476 done
8477fi
8478
8479if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8480 for ncn_progname in cc gcc; do
8481 if test -n "$ncn_target_tool_prefix"; then
8482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8483set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8484echo "$as_me:$LINENO: checking for $ac_word" >&5
8485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8486if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488else
8489 if test -n "$CC_FOR_TARGET"; then
8490 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8491else
8492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8499 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8502 fi
8503done
8504done
8505
8506fi
8507fi
8508CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8509if test -n "$CC_FOR_TARGET"; then
8510 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8511echo "${ECHO_T}$CC_FOR_TARGET" >&6
8512else
8513 echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6
8515fi
8516
8517 fi
8518 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8520set dummy ${ncn_progname}; ac_word=$2
8521echo "$as_me:$LINENO: checking for $ac_word" >&5
8522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8523if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525else
8526 if test -n "$CC_FOR_TARGET"; then
8527 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8528else
8529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530for as_dir in $PATH
8531do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8536 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 break 2
8539 fi
8540done
8541done
8542
8543fi
8544fi
8545CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8546if test -n "$CC_FOR_TARGET"; then
8547 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8548echo "${ECHO_T}$CC_FOR_TARGET" >&6
8549else
8550 echo "$as_me:$LINENO: result: no" >&5
8551echo "${ECHO_T}no" >&6
8552fi
8553
8554 fi
8555 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8556 done
8557fi
8558
8559if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8560 set dummy cc gcc
8561 if test $build = $target ; then
8562 CC_FOR_TARGET="$2"
8563 else
8564 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8565 fi
8566else
8567 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8568fi
8569
8570
8571
8572if test -n "$CXX_FOR_TARGET"; then
8573 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8574elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8575 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8576fi
8577
8578if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8579 for ncn_progname in c++ g++ cxx gxx; do
8580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8581set dummy ${ncn_progname}; ac_word=$2
8582echo "$as_me:$LINENO: checking for $ac_word" >&5
8583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8584if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586else
8587 if test -n "$CXX_FOR_TARGET"; then
8588 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8589else
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601done
8602done
8603
8604fi
8605fi
8606CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8607if test -n "$CXX_FOR_TARGET"; then
8608 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8609echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8610else
8611 echo "$as_me:$LINENO: result: no" >&5
8612echo "${ECHO_T}no" >&6
8613fi
8614
8615 done
8616fi
8617
8618if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8619 for ncn_progname in c++ g++ cxx gxx; do
8620 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8621echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8622 if test -x $with_build_time_tools/${ncn_progname}; then
8623 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8624 echo "$as_me:$LINENO: result: yes" >&5
8625echo "${ECHO_T}yes" >&6
8626 break
8627 else
8628 echo "$as_me:$LINENO: result: no" >&5
8629echo "${ECHO_T}no" >&6
8630 fi
8631 done
8632fi
8633
8634if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8635 for ncn_progname in c++ g++ cxx gxx; do
8636 if test -n "$ncn_target_tool_prefix"; then
8637 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8638set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8639echo "$as_me:$LINENO: checking for $ac_word" >&5
8640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8641if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643else
8644 if test -n "$CXX_FOR_TARGET"; then
8645 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8646else
8647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8657 fi
8658done
8659done
8660
8661fi
8662fi
8663CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8664if test -n "$CXX_FOR_TARGET"; then
8665 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8666echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8667else
8668 echo "$as_me:$LINENO: result: no" >&5
8669echo "${ECHO_T}no" >&6
8670fi
8671
8672 fi
8673 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8675set dummy ${ncn_progname}; ac_word=$2
8676echo "$as_me:$LINENO: checking for $ac_word" >&5
8677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8678if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680else
8681 if test -n "$CXX_FOR_TARGET"; then
8682 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8683else
8684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685for as_dir in $PATH
8686do
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 break 2
8694 fi
8695done
8696done
8697
8698fi
8699fi
8700CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8701if test -n "$CXX_FOR_TARGET"; then
8702 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8703echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8704else
8705 echo "$as_me:$LINENO: result: no" >&5
8706echo "${ECHO_T}no" >&6
8707fi
8708
8709 fi
8710 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8711 done
8712fi
8713
8714if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8715 set dummy c++ g++ cxx gxx
8716 if test $build = $target ; then
8717 CXX_FOR_TARGET="$2"
8718 else
8719 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8720 fi
8721else
8722 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8723fi
8724
8725
8726
8727if test -n "$GCC_FOR_TARGET"; then
8728 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8729elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8730 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8731fi
8732
8733if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8734 for ncn_progname in gcc; do
8735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8736set dummy ${ncn_progname}; ac_word=$2
8737echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742 if test -n "$GCC_FOR_TARGET"; then
8743 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757done
8758
8759fi
8760fi
8761GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8762if test -n "$GCC_FOR_TARGET"; then
8763 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8764echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8765else
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768fi
8769
8770 done
8771fi
8772
8773if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8774 for ncn_progname in gcc; do
8775 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8776echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8777 if test -x $with_build_time_tools/${ncn_progname}; then
8778 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8779 echo "$as_me:$LINENO: result: yes" >&5
8780echo "${ECHO_T}yes" >&6
8781 break
8782 else
8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
8785 fi
8786 done
8787fi
8788
8789if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8790 for ncn_progname in gcc; do
8791 if test -n "$ncn_target_tool_prefix"; then
8792 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8793set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8794echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798else
8799 if test -n "$GCC_FOR_TARGET"; then
8800 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
8816fi
8817fi
8818GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8819if test -n "$GCC_FOR_TARGET"; then
8820 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8821echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8822else
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
8825fi
8826
8827 fi
8828 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8830set dummy ${ncn_progname}; ac_word=$2
8831echo "$as_me:$LINENO: checking for $ac_word" >&5
8832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8833if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835else
8836 if test -n "$GCC_FOR_TARGET"; then
8837 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8838else
8839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH
8841do
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8849 fi
8850done
8851done
8852
8853fi
8854fi
8855GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8856if test -n "$GCC_FOR_TARGET"; then
8857 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8858echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8859else
8860 echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
8862fi
8863
8864 fi
8865 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8866 done
8867fi
8868
8869if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8870 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8871else
8872 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8873fi
8874
8875
8876
8877if test -n "$GCJ_FOR_TARGET"; then
8878 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8879elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8880 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8881fi
8882
8883if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8884 for ncn_progname in gcj; do
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886set dummy ${ncn_progname}; ac_word=$2
8887echo "$as_me:$LINENO: checking for $ac_word" >&5
8888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8889if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891else
8892 if test -n "$GCJ_FOR_TARGET"; then
8893 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8894else
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907done
8908
8909fi
8910fi
8911GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8912if test -n "$GCJ_FOR_TARGET"; then
8913 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8914echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8915else
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
8918fi
8919
8920 done
8921fi
8922
8923if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8924 for ncn_progname in gcj; do
8925 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8926echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8927 if test -x $with_build_time_tools/${ncn_progname}; then
8928 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 break
8932 else
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
8935 fi
8936 done
8937fi
8938
8939if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8940 for ncn_progname in gcj; do
8941 if test -n "$ncn_target_tool_prefix"; then
8942 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8943set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8944echo "$as_me:$LINENO: checking for $ac_word" >&5
8945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8946if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948else
8949 if test -n "$GCJ_FOR_TARGET"; then
8950 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8951else
8952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH
8954do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8959 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 break 2
8962 fi
8963done
8964done
8965
8966fi
8967fi
8968GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8969if test -n "$GCJ_FOR_TARGET"; then
8970 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8971echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8972else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975fi
8976
8977 fi
8978 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8980set dummy ${ncn_progname}; ac_word=$2
8981echo "$as_me:$LINENO: checking for $ac_word" >&5
8982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8983if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985else
8986 if test -n "$GCJ_FOR_TARGET"; then
8987 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8988else
8989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990for as_dir in $PATH
8991do
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 break 2
8999 fi
9000done
9001done
9002
9003fi
9004fi
9005GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9006if test -n "$GCJ_FOR_TARGET"; then
9007 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9008echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9009else
9010 echo "$as_me:$LINENO: result: no" >&5
9011echo "${ECHO_T}no" >&6
9012fi
9013
9014 fi
9015 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9016 done
9017fi
9018
9019if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9020 set dummy gcj
9021 if test $build = $target ; then
9022 GCJ_FOR_TARGET="$2"
9023 else
9024 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9025 fi
9026else
9027 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9028fi
9029
9030
9031
9032if test -n "$GFORTRAN_FOR_TARGET"; then
9033 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9034elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9035 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9036fi
9037
9038if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9039 for ncn_progname in gfortran; do
9040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9041set dummy ${ncn_progname}; ac_word=$2
9042echo "$as_me:$LINENO: checking for $ac_word" >&5
9043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9044if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046else
9047 if test -n "$GFORTRAN_FOR_TARGET"; then
9048 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9049else
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9060 fi
9061done
9062done
9063
9064fi
9065fi
9066GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9067if test -n "$GFORTRAN_FOR_TARGET"; then
9068 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9069echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9070else
9071 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
9073fi
9074
9075 done
9076fi
9077
9078if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9079 for ncn_progname in gfortran; do
9080 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9081echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9082 if test -x $with_build_time_tools/${ncn_progname}; then
9083 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9084 echo "$as_me:$LINENO: result: yes" >&5
9085echo "${ECHO_T}yes" >&6
9086 break
9087 else
9088 echo "$as_me:$LINENO: result: no" >&5
9089echo "${ECHO_T}no" >&6
9090 fi
9091 done
9092fi
9093
9094if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9095 for ncn_progname in gfortran; do
9096 if test -n "$ncn_target_tool_prefix"; then
9097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9098set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9099echo "$as_me:$LINENO: checking for $ac_word" >&5
9100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9101if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
9104 if test -n "$GFORTRAN_FOR_TARGET"; then
9105 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9106else
9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9114 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9117 fi
9118done
9119done
9120
9121fi
9122fi
9123GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9124if test -n "$GFORTRAN_FOR_TARGET"; then
9125 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9126echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9127else
9128 echo "$as_me:$LINENO: result: no" >&5
9129echo "${ECHO_T}no" >&6
9130fi
9131
9132 fi
9133 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9135set dummy ${ncn_progname}; ac_word=$2
9136echo "$as_me:$LINENO: checking for $ac_word" >&5
9137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9138if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140else
9141 if test -n "$GFORTRAN_FOR_TARGET"; then
9142 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9143else
9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145for as_dir in $PATH
9146do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9154 fi
9155done
9156done
9157
9158fi
9159fi
9160GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9161if test -n "$GFORTRAN_FOR_TARGET"; then
9162 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9163echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9164else
9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
9167fi
9168
9169 fi
9170 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9171 done
9172fi
9173
9174if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9175 set dummy gfortran
9176 if test $build = $target ; then
9177 GFORTRAN_FOR_TARGET="$2"
9178 else
9179 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9180 fi
9181else
9182 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9183fi
9184
9185
9186
9187cat > conftest.c << \EOF
9188#ifdef __GNUC__
9189 gcc_yay;
9190#endif
9191EOF
9192if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9193 have_gcc_for_target=yes
9194else
9195 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9196 have_gcc_for_target=no
9197fi
9198rm conftest.c
9199
9200
9201
9202
9203if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9204 if test -n "$with_build_time_tools"; then
9205 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9206echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
9207 if test -x $with_build_time_tools/ar; then
9208 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9209 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9210 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9211echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
9212 else
9213 echo "$as_me:$LINENO: result: no" >&5
9214echo "${ECHO_T}no" >&6
9215 fi
9216 elif test $build != $host && test $have_gcc_for_target = yes; then
9217 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9218 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9219 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9220 fi
9221fi
9222if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9223 # Extract the first word of "ar", so it can be a program name with args.
9224set dummy ar; ac_word=$2
9225echo "$as_me:$LINENO: checking for $ac_word" >&5
9226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9227if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229else
9230 case $AR_FOR_TARGET in
9231 [\\/]* | ?:[\\/]*)
9232 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9233 ;;
9234 *)
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236for as_dir in $gcc_cv_tool_dirs
9237do
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9245 fi
9246done
9247done
9248
9249 ;;
9250esac
9251fi
9252AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9253
9254if test -n "$AR_FOR_TARGET"; then
9255 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9256echo "${ECHO_T}$AR_FOR_TARGET" >&6
9257else
9258 echo "$as_me:$LINENO: result: no" >&5
9259echo "${ECHO_T}no" >&6
9260fi
9261
9262fi
9263if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9264
9265
9266if test -n "$AR_FOR_TARGET"; then
9267 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9268elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9269 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9270fi
9271
9272if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9273 for ncn_progname in ar; do
9274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9275set dummy ${ncn_progname}; ac_word=$2
9276echo "$as_me:$LINENO: checking for $ac_word" >&5
9277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9278if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280else
9281 if test -n "$AR_FOR_TARGET"; then
9282 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9283else
9284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285for as_dir in $PATH
9286do
9287 IFS=$as_save_IFS
9288 test -z "$as_dir" && as_dir=.
9289 for ac_exec_ext in '' $ac_executable_extensions; do
9290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9291 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 break 2
9294 fi
9295done
9296done
9297
9298fi
9299fi
9300AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9301if test -n "$AR_FOR_TARGET"; then
9302 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9303echo "${ECHO_T}$AR_FOR_TARGET" >&6
9304else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307fi
9308
9309 done
9310fi
9311
9312if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9313 for ncn_progname in ar; do
9314 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9315echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9316 if test -x $with_build_time_tools/${ncn_progname}; then
9317 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9318 echo "$as_me:$LINENO: result: yes" >&5
9319echo "${ECHO_T}yes" >&6
9320 break
9321 else
9322 echo "$as_me:$LINENO: result: no" >&5
9323echo "${ECHO_T}no" >&6
9324 fi
9325 done
9326fi
9327
9328if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9329 for ncn_progname in ar; do
9330 if test -n "$ncn_target_tool_prefix"; then
9331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9332set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9333echo "$as_me:$LINENO: checking for $ac_word" >&5
9334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9335if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338 if test -n "$AR_FOR_TARGET"; then
9339 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9340else
9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352done
9353done
9354
9355fi
9356fi
9357AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9358if test -n "$AR_FOR_TARGET"; then
9359 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9360echo "${ECHO_T}$AR_FOR_TARGET" >&6
9361else
9362 echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
9364fi
9365
9366 fi
9367 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9369set dummy ${ncn_progname}; ac_word=$2
9370echo "$as_me:$LINENO: checking for $ac_word" >&5
9371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9372if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374else
9375 if test -n "$AR_FOR_TARGET"; then
9376 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9377else
9378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379for as_dir in $PATH
9380do
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9385 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9388 fi
9389done
9390done
9391
9392fi
9393fi
9394AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9395if test -n "$AR_FOR_TARGET"; then
9396 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9397echo "${ECHO_T}$AR_FOR_TARGET" >&6
9398else
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
9401fi
9402
9403 fi
9404 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9405 done
9406fi
9407
9408if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9409 set dummy ar
9410 if test $build = $target ; then
9411 AR_FOR_TARGET="$2"
9412 else
9413 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9414 fi
9415else
9416 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9417fi
9418
9419else
9420 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9421fi
9422
9423
9424
9425
9426if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9427 if test -n "$with_build_time_tools"; then
9428 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9429echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9430 if test -x $with_build_time_tools/as; then
9431 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9432 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9433 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9434echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9435 else
9436 echo "$as_me:$LINENO: result: no" >&5
9437echo "${ECHO_T}no" >&6
9438 fi
9439 elif test $build != $host && test $have_gcc_for_target = yes; then
9440 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9441 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9442 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9443 fi
9444fi
9445if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9446 # Extract the first word of "as", so it can be a program name with args.
9447set dummy as; ac_word=$2
9448echo "$as_me:$LINENO: checking for $ac_word" >&5
9449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9450if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452else
9453 case $AS_FOR_TARGET in
9454 [\\/]* | ?:[\\/]*)
9455 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9456 ;;
9457 *)
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459for as_dir in $gcc_cv_tool_dirs
9460do
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9465 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9468 fi
9469done
9470done
9471
9472 ;;
9473esac
9474fi
9475AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9476
9477if test -n "$AS_FOR_TARGET"; then
9478 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9479echo "${ECHO_T}$AS_FOR_TARGET" >&6
9480else
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
9483fi
9484
9485fi
9486if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9487
9488
9489if test -n "$AS_FOR_TARGET"; then
9490 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9491elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9492 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9493fi
9494
9495if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9496 for ncn_progname in as; do
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498set dummy ${ncn_progname}; ac_word=$2
9499echo "$as_me:$LINENO: checking for $ac_word" >&5
9500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9501if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503else
9504 if test -n "$AS_FOR_TARGET"; then
9505 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9506else
9507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518done
9519done
9520
9521fi
9522fi
9523AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9524if test -n "$AS_FOR_TARGET"; then
9525 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9526echo "${ECHO_T}$AS_FOR_TARGET" >&6
9527else
9528 echo "$as_me:$LINENO: result: no" >&5
9529echo "${ECHO_T}no" >&6
9530fi
9531
9532 done
9533fi
9534
9535if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9536 for ncn_progname in as; do
9537 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9538echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9539 if test -x $with_build_time_tools/${ncn_progname}; then
9540 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9541 echo "$as_me:$LINENO: result: yes" >&5
9542echo "${ECHO_T}yes" >&6
9543 break
9544 else
9545 echo "$as_me:$LINENO: result: no" >&5
9546echo "${ECHO_T}no" >&6
9547 fi
9548 done
9549fi
9550
9551if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9552 for ncn_progname in as; do
9553 if test -n "$ncn_target_tool_prefix"; then
9554 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9555set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9556echo "$as_me:$LINENO: checking for $ac_word" >&5
9557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9558if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560else
9561 if test -n "$AS_FOR_TARGET"; then
9562 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9563else
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9571 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9574 fi
9575done
9576done
9577
9578fi
9579fi
9580AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9581if test -n "$AS_FOR_TARGET"; then
9582 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9583echo "${ECHO_T}$AS_FOR_TARGET" >&6
9584else
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
9587fi
9588
9589 fi
9590 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9592set dummy ${ncn_progname}; ac_word=$2
9593echo "$as_me:$LINENO: checking for $ac_word" >&5
9594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9595if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9597else
9598 if test -n "$AS_FOR_TARGET"; then
9599 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9600else
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9611 fi
9612done
9613done
9614
9615fi
9616fi
9617AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9618if test -n "$AS_FOR_TARGET"; then
9619 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9620echo "${ECHO_T}$AS_FOR_TARGET" >&6
9621else
9622 echo "$as_me:$LINENO: result: no" >&5
9623echo "${ECHO_T}no" >&6
9624fi
9625
9626 fi
9627 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9628 done
9629fi
9630
9631if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9632 set dummy as
9633 if test $build = $target ; then
9634 AS_FOR_TARGET="$2"
9635 else
9636 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9637 fi
9638else
9639 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9640fi
9641
9642else
9643 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9644fi
9645
9646
9647
9648
9649if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9650 if test -n "$with_build_time_tools"; then
9651 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9652echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9653 if test -x $with_build_time_tools/dlltool; then
9654 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9655 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9656 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9657echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9658 else
9659 echo "$as_me:$LINENO: result: no" >&5
9660echo "${ECHO_T}no" >&6
9661 fi
9662 elif test $build != $host && test $have_gcc_for_target = yes; then
9663 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9664 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9665 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9666 fi
9667fi
9668if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9669 # Extract the first word of "dlltool", so it can be a program name with args.
9670set dummy dlltool; ac_word=$2
9671echo "$as_me:$LINENO: checking for $ac_word" >&5
9672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9673if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675else
9676 case $DLLTOOL_FOR_TARGET in
9677 [\\/]* | ?:[\\/]*)
9678 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9679 ;;
9680 *)
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $gcc_cv_tool_dirs
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692done
9693done
9694
9695 ;;
9696esac
9697fi
9698DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9699
9700if test -n "$DLLTOOL_FOR_TARGET"; then
9701 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9702echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9703else
9704 echo "$as_me:$LINENO: result: no" >&5
9705echo "${ECHO_T}no" >&6
9706fi
9707
9708fi
9709if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9710
9711
9712if test -n "$DLLTOOL_FOR_TARGET"; then
9713 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9714elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9715 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9716fi
9717
9718if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9719 for ncn_progname in dlltool; do
9720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9721set dummy ${ncn_progname}; ac_word=$2
9722echo "$as_me:$LINENO: checking for $ac_word" >&5
9723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9724if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727 if test -n "$DLLTOOL_FOR_TARGET"; then
9728 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9729else
9730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731for as_dir in $PATH
9732do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9740 fi
9741done
9742done
9743
9744fi
9745fi
9746DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9747if test -n "$DLLTOOL_FOR_TARGET"; then
9748 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9749echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9750else
9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
9753fi
9754
9755 done
9756fi
9757
9758if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9759 for ncn_progname in dlltool; do
9760 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9761echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9762 if test -x $with_build_time_tools/${ncn_progname}; then
9763 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9764 echo "$as_me:$LINENO: result: yes" >&5
9765echo "${ECHO_T}yes" >&6
9766 break
9767 else
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
9770 fi
9771 done
9772fi
9773
9774if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9775 for ncn_progname in dlltool; do
9776 if test -n "$ncn_target_tool_prefix"; then
9777 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9778set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9779echo "$as_me:$LINENO: checking for $ac_word" >&5
9780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9781if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783else
9784 if test -n "$DLLTOOL_FOR_TARGET"; then
9785 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9786else
9787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788for as_dir in $PATH
9789do
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9794 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9797 fi
9798done
9799done
9800
9801fi
9802fi
9803DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9804if test -n "$DLLTOOL_FOR_TARGET"; then
9805 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9806echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9807else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810fi
9811
9812 fi
9813 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9815set dummy ${ncn_progname}; ac_word=$2
9816echo "$as_me:$LINENO: checking for $ac_word" >&5
9817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9818if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820else
9821 if test -n "$DLLTOOL_FOR_TARGET"; then
9822 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9823else
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9831 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9834 fi
9835done
9836done
9837
9838fi
9839fi
9840DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9841if test -n "$DLLTOOL_FOR_TARGET"; then
9842 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9843echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9844else
9845 echo "$as_me:$LINENO: result: no" >&5
9846echo "${ECHO_T}no" >&6
9847fi
9848
9849 fi
9850 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9851 done
9852fi
9853
9854if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9855 set dummy dlltool
9856 if test $build = $target ; then
9857 DLLTOOL_FOR_TARGET="$2"
9858 else
9859 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9860 fi
9861else
9862 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9863fi
9864
9865else
9866 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9867fi
9868
9869
9870
9871
9872if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9873 if test -n "$with_build_time_tools"; then
9874 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9875echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9876 if test -x $with_build_time_tools/ld; then
9877 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9878 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9879 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9880echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9881 else
9882 echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
9884 fi
9885 elif test $build != $host && test $have_gcc_for_target = yes; then
9886 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9887 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9888 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9889 fi
9890fi
9891if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9892 # Extract the first word of "ld", so it can be a program name with args.
9893set dummy ld; ac_word=$2
9894echo "$as_me:$LINENO: checking for $ac_word" >&5
9895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899 case $LD_FOR_TARGET in
9900 [\\/]* | ?:[\\/]*)
9901 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9902 ;;
9903 *)
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $gcc_cv_tool_dirs
9906do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9911 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 break 2
9914 fi
9915done
9916done
9917
9918 ;;
9919esac
9920fi
9921LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9922
9923if test -n "$LD_FOR_TARGET"; then
9924 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9925echo "${ECHO_T}$LD_FOR_TARGET" >&6
9926else
9927 echo "$as_me:$LINENO: result: no" >&5
9928echo "${ECHO_T}no" >&6
9929fi
9930
9931fi
9932if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9933
9934
9935if test -n "$LD_FOR_TARGET"; then
9936 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9937elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9938 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9939fi
9940
9941if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9942 for ncn_progname in ld; do
9943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9944set dummy ${ncn_progname}; ac_word=$2
9945echo "$as_me:$LINENO: checking for $ac_word" >&5
9946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9947if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949else
9950 if test -n "$LD_FOR_TARGET"; then
9951 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9952else
9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964done
9965done
9966
9967fi
9968fi
9969LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9970if test -n "$LD_FOR_TARGET"; then
9971 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9972echo "${ECHO_T}$LD_FOR_TARGET" >&6
9973else
9974 echo "$as_me:$LINENO: result: no" >&5
9975echo "${ECHO_T}no" >&6
9976fi
9977
9978 done
9979fi
9980
9981if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9982 for ncn_progname in ld; do
9983 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9984echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9985 if test -x $with_build_time_tools/${ncn_progname}; then
9986 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9987 echo "$as_me:$LINENO: result: yes" >&5
9988echo "${ECHO_T}yes" >&6
9989 break
9990 else
9991 echo "$as_me:$LINENO: result: no" >&5
9992echo "${ECHO_T}no" >&6
9993 fi
9994 done
9995fi
9996
9997if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9998 for ncn_progname in ld; do
9999 if test -n "$ncn_target_tool_prefix"; then
10000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10001set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10002echo "$as_me:$LINENO: checking for $ac_word" >&5
10003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10004if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007 if test -n "$LD_FOR_TARGET"; then
10008 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10009else
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10017 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022done
10023
10024fi
10025fi
10026LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10027if test -n "$LD_FOR_TARGET"; then
10028 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10029echo "${ECHO_T}$LD_FOR_TARGET" >&6
10030else
10031 echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
10033fi
10034
10035 fi
10036 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038set dummy ${ncn_progname}; ac_word=$2
10039echo "$as_me:$LINENO: checking for $ac_word" >&5
10040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10041if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043else
10044 if test -n "$LD_FOR_TARGET"; then
10045 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10046else
10047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10057 fi
10058done
10059done
10060
10061fi
10062fi
10063LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10064if test -n "$LD_FOR_TARGET"; then
10065 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10066echo "${ECHO_T}$LD_FOR_TARGET" >&6
10067else
10068 echo "$as_me:$LINENO: result: no" >&5
10069echo "${ECHO_T}no" >&6
10070fi
10071
10072 fi
10073 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10074 done
10075fi
10076
10077if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10078 set dummy ld
10079 if test $build = $target ; then
10080 LD_FOR_TARGET="$2"
10081 else
10082 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10083 fi
10084else
10085 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10086fi
10087
10088else
10089 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10090fi
10091
10092
10093
10094
10095if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10096 if test -n "$with_build_time_tools"; then
10097 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10098echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
10099 if test -x $with_build_time_tools/lipo; then
10100 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10101 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10102 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10103echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
10104 else
10105 echo "$as_me:$LINENO: result: no" >&5
10106echo "${ECHO_T}no" >&6
10107 fi
10108 elif test $build != $host && test $have_gcc_for_target = yes; then
10109 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10110 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10111 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10112 fi
10113fi
10114if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10115 # Extract the first word of "lipo", so it can be a program name with args.
10116set dummy lipo; ac_word=$2
10117echo "$as_me:$LINENO: checking for $ac_word" >&5
10118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10119if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121else
10122 case $LIPO_FOR_TARGET in
10123 [\\/]* | ?:[\\/]*)
10124 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10125 ;;
10126 *)
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128for as_dir in $gcc_cv_tool_dirs
10129do
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10134 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 break 2
10137 fi
10138done
10139done
10140
10141 ;;
10142esac
10143fi
10144LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10145
10146if test -n "$LIPO_FOR_TARGET"; then
10147 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10148echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10149else
10150 echo "$as_me:$LINENO: result: no" >&5
10151echo "${ECHO_T}no" >&6
10152fi
10153
10154fi
10155if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10156
10157
10158if test -n "$LIPO_FOR_TARGET"; then
10159 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10160elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10161 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10162fi
10163
10164if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10165 for ncn_progname in lipo; do
10166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10167set dummy ${ncn_progname}; ac_word=$2
10168echo "$as_me:$LINENO: checking for $ac_word" >&5
10169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10170if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173 if test -n "$LIPO_FOR_TARGET"; then
10174 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10175else
10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187done
10188done
10189
10190fi
10191fi
10192LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10193if test -n "$LIPO_FOR_TARGET"; then
10194 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10195echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10196else
10197 echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6
10199fi
10200
10201 done
10202fi
10203
10204if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10205 for ncn_progname in lipo; do
10206 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10207echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10208 if test -x $with_build_time_tools/${ncn_progname}; then
10209 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10210 echo "$as_me:$LINENO: result: yes" >&5
10211echo "${ECHO_T}yes" >&6
10212 break
10213 else
10214 echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
10216 fi
10217 done
10218fi
10219
10220if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10221 for ncn_progname in lipo; do
10222 if test -n "$ncn_target_tool_prefix"; then
10223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10224set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10225echo "$as_me:$LINENO: checking for $ac_word" >&5
10226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10227if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230 if test -n "$LIPO_FOR_TARGET"; then
10231 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10232else
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244done
10245done
10246
10247fi
10248fi
10249LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10250if test -n "$LIPO_FOR_TARGET"; then
10251 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10252echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10253else
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
10256fi
10257
10258 fi
10259 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10261set dummy ${ncn_progname}; ac_word=$2
10262echo "$as_me:$LINENO: checking for $ac_word" >&5
10263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10264if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10266else
10267 if test -n "$LIPO_FOR_TARGET"; then
10268 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10269else
10270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271for as_dir in $PATH
10272do
10273 IFS=$as_save_IFS
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 break 2
10280 fi
10281done
10282done
10283
10284fi
10285fi
10286LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10287if test -n "$LIPO_FOR_TARGET"; then
10288 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10289echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10290else
10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
10293fi
10294
10295 fi
10296 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10297 done
10298fi
10299
10300if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10301 set dummy lipo
10302 if test $build = $target ; then
10303 LIPO_FOR_TARGET="$2"
10304 else
10305 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10306 fi
10307else
10308 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10309fi
10310
10311else
10312 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10313fi
10314
10315
10316
10317
10318if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10319 if test -n "$with_build_time_tools"; then
10320 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10321echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10322 if test -x $with_build_time_tools/nm; then
10323 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10324 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10325 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10326echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10327 else
10328 echo "$as_me:$LINENO: result: no" >&5
10329echo "${ECHO_T}no" >&6
10330 fi
10331 elif test $build != $host && test $have_gcc_for_target = yes; then
10332 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10333 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10334 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10335 fi
10336fi
10337if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10338 # Extract the first word of "nm", so it can be a program name with args.
10339set dummy nm; ac_word=$2
10340echo "$as_me:$LINENO: checking for $ac_word" >&5
10341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10342if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344else
10345 case $NM_FOR_TARGET in
10346 [\\/]* | ?:[\\/]*)
10347 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10348 ;;
10349 *)
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $gcc_cv_tool_dirs
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10360 fi
10361done
10362done
10363
10364 ;;
10365esac
10366fi
10367NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10368
10369if test -n "$NM_FOR_TARGET"; then
10370 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10371echo "${ECHO_T}$NM_FOR_TARGET" >&6
10372else
10373 echo "$as_me:$LINENO: result: no" >&5
10374echo "${ECHO_T}no" >&6
10375fi
10376
10377fi
10378if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10379
10380
10381if test -n "$NM_FOR_TARGET"; then
10382 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10383elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10384 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10385fi
10386
10387if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10388 for ncn_progname in nm; do
10389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10390set dummy ${ncn_progname}; ac_word=$2
10391echo "$as_me:$LINENO: checking for $ac_word" >&5
10392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10393if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395else
10396 if test -n "$NM_FOR_TARGET"; then
10397 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10398else
10399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400for as_dir in $PATH
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10406 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10409 fi
10410done
10411done
10412
10413fi
10414fi
10415NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10416if test -n "$NM_FOR_TARGET"; then
10417 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10418echo "${ECHO_T}$NM_FOR_TARGET" >&6
10419else
10420 echo "$as_me:$LINENO: result: no" >&5
10421echo "${ECHO_T}no" >&6
10422fi
10423
10424 done
10425fi
10426
10427if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10428 for ncn_progname in nm; do
10429 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10430echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10431 if test -x $with_build_time_tools/${ncn_progname}; then
10432 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10433 echo "$as_me:$LINENO: result: yes" >&5
10434echo "${ECHO_T}yes" >&6
10435 break
10436 else
10437 echo "$as_me:$LINENO: result: no" >&5
10438echo "${ECHO_T}no" >&6
10439 fi
10440 done
10441fi
10442
10443if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10444 for ncn_progname in nm; do
10445 if test -n "$ncn_target_tool_prefix"; then
10446 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10447set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10448echo "$as_me:$LINENO: checking for $ac_word" >&5
10449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10450if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10452else
10453 if test -n "$NM_FOR_TARGET"; then
10454 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10455else
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10466 fi
10467done
10468done
10469
10470fi
10471fi
10472NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10473if test -n "$NM_FOR_TARGET"; then
10474 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10475echo "${ECHO_T}$NM_FOR_TARGET" >&6
10476else
10477 echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
10479fi
10480
10481 fi
10482 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10484set dummy ${ncn_progname}; ac_word=$2
10485echo "$as_me:$LINENO: checking for $ac_word" >&5
10486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10487if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490 if test -n "$NM_FOR_TARGET"; then
10491 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10492else
10493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494for as_dir in $PATH
10495do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 break 2
10503 fi
10504done
10505done
10506
10507fi
10508fi
10509NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10510if test -n "$NM_FOR_TARGET"; then
10511 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10512echo "${ECHO_T}$NM_FOR_TARGET" >&6
10513else
10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
10516fi
10517
10518 fi
10519 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10520 done
10521fi
10522
10523if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10524 set dummy nm
10525 if test $build = $target ; then
10526 NM_FOR_TARGET="$2"
10527 else
10528 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10529 fi
10530else
10531 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10532fi
10533
10534else
10535 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10536fi
10537
10538
10539
10540
10541if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10542 if test -n "$with_build_time_tools"; then
10543 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10544echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10545 if test -x $with_build_time_tools/objdump; then
10546 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10547 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10548 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10549echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10550 else
10551 echo "$as_me:$LINENO: result: no" >&5
10552echo "${ECHO_T}no" >&6
10553 fi
10554 elif test $build != $host && test $have_gcc_for_target = yes; then
10555 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10556 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10557 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10558 fi
10559fi
10560if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10561 # Extract the first word of "objdump", so it can be a program name with args.
10562set dummy objdump; ac_word=$2
10563echo "$as_me:$LINENO: checking for $ac_word" >&5
10564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10565if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 case $OBJDUMP_FOR_TARGET in
10569 [\\/]* | ?:[\\/]*)
10570 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10571 ;;
10572 *)
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574for as_dir in $gcc_cv_tool_dirs
10575do
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10580 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 break 2
10583 fi
10584done
10585done
10586
10587 ;;
10588esac
10589fi
10590OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10591
10592if test -n "$OBJDUMP_FOR_TARGET"; then
10593 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10594echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10595else
10596 echo "$as_me:$LINENO: result: no" >&5
10597echo "${ECHO_T}no" >&6
10598fi
10599
10600fi
10601if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10602
10603
10604if test -n "$OBJDUMP_FOR_TARGET"; then
10605 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10606elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10607 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10608fi
10609
10610if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10611 for ncn_progname in objdump; do
10612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10613set dummy ${ncn_progname}; ac_word=$2
10614echo "$as_me:$LINENO: checking for $ac_word" >&5
10615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10616if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618else
10619 if test -n "$OBJDUMP_FOR_TARGET"; then
10620 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10621else
10622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $PATH
10624do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633done
10634done
10635
10636fi
10637fi
10638OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10639if test -n "$OBJDUMP_FOR_TARGET"; then
10640 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10641echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10642else
10643 echo "$as_me:$LINENO: result: no" >&5
10644echo "${ECHO_T}no" >&6
10645fi
10646
10647 done
10648fi
10649
10650if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10651 for ncn_progname in objdump; do
10652 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10653echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10654 if test -x $with_build_time_tools/${ncn_progname}; then
10655 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10656 echo "$as_me:$LINENO: result: yes" >&5
10657echo "${ECHO_T}yes" >&6
10658 break
10659 else
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
10662 fi
10663 done
10664fi
10665
10666if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10667 for ncn_progname in objdump; do
10668 if test -n "$ncn_target_tool_prefix"; then
10669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10670set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10671echo "$as_me:$LINENO: checking for $ac_word" >&5
10672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10673if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675else
10676 if test -n "$OBJDUMP_FOR_TARGET"; then
10677 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10678else
10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10686 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690done
10691done
10692
10693fi
10694fi
10695OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10696if test -n "$OBJDUMP_FOR_TARGET"; then
10697 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10698echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10699else
10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
10702fi
10703
10704 fi
10705 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10707set dummy ${ncn_progname}; ac_word=$2
10708echo "$as_me:$LINENO: checking for $ac_word" >&5
10709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10710if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713 if test -n "$OBJDUMP_FOR_TARGET"; then
10714 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
10729
10730fi
10731fi
10732OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10733if test -n "$OBJDUMP_FOR_TARGET"; then
10734 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10735echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741 fi
10742 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10743 done
10744fi
10745
10746if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10747 set dummy objdump
10748 if test $build = $target ; then
10749 OBJDUMP_FOR_TARGET="$2"
10750 else
10751 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10752 fi
10753else
10754 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10755fi
10756
10757else
10758 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10759fi
10760
10761
10762
10763
10764if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10765 if test -n "$with_build_time_tools"; then
10766 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10767echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10768 if test -x $with_build_time_tools/ranlib; then
10769 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10770 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10771 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10772echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10773 else
10774 echo "$as_me:$LINENO: result: no" >&5
10775echo "${ECHO_T}no" >&6
10776 fi
10777 elif test $build != $host && test $have_gcc_for_target = yes; then
10778 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10779 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10780 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10781 fi
10782fi
10783if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10784 # Extract the first word of "ranlib", so it can be a program name with args.
10785set dummy ranlib; ac_word=$2
10786echo "$as_me:$LINENO: checking for $ac_word" >&5
10787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10788if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 case $RANLIB_FOR_TARGET in
10792 [\\/]* | ?:[\\/]*)
10793 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10794 ;;
10795 *)
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797for as_dir in $gcc_cv_tool_dirs
10798do
10799 IFS=$as_save_IFS
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 break 2
10806 fi
10807done
10808done
10809
10810 ;;
10811esac
10812fi
10813RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10814
10815if test -n "$RANLIB_FOR_TARGET"; then
10816 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10817echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10818else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821fi
10822
10823fi
10824if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10825
10826
10827if test -n "$RANLIB_FOR_TARGET"; then
10828 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10829elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10830 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10831fi
10832
10833if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10834 for ncn_progname in ranlib; do
10835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10836set dummy ${ncn_progname}; ac_word=$2
10837echo "$as_me:$LINENO: checking for $ac_word" >&5
10838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10839if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841else
10842 if test -n "$RANLIB_FOR_TARGET"; then
10843 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10844else
10845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846for as_dir in $PATH
10847do
10848 IFS=$as_save_IFS
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10852 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10854 break 2
10855 fi
10856done
10857done
10858
10859fi
10860fi
10861RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10862if test -n "$RANLIB_FOR_TARGET"; then
10863 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10864echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10865else
10866 echo "$as_me:$LINENO: result: no" >&5
10867echo "${ECHO_T}no" >&6
10868fi
10869
10870 done
10871fi
10872
10873if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10874 for ncn_progname in ranlib; do
10875 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10876echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10877 if test -x $with_build_time_tools/${ncn_progname}; then
10878 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10879 echo "$as_me:$LINENO: result: yes" >&5
10880echo "${ECHO_T}yes" >&6
10881 break
10882 else
10883 echo "$as_me:$LINENO: result: no" >&5
10884echo "${ECHO_T}no" >&6
10885 fi
10886 done
10887fi
10888
10889if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10890 for ncn_progname in ranlib; do
10891 if test -n "$ncn_target_tool_prefix"; then
10892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10893set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10894echo "$as_me:$LINENO: checking for $ac_word" >&5
10895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10896if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898else
10899 if test -n "$RANLIB_FOR_TARGET"; then
10900 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10901else
10902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903for as_dir in $PATH
10904do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10909 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913done
10914done
10915
10916fi
10917fi
10918RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10919if test -n "$RANLIB_FOR_TARGET"; then
10920 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10921echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10922else
10923 echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6
10925fi
10926
10927 fi
10928 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10930set dummy ${ncn_progname}; ac_word=$2
10931echo "$as_me:$LINENO: checking for $ac_word" >&5
10932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10933if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935else
10936 if test -n "$RANLIB_FOR_TARGET"; then
10937 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10938else
10939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940for as_dir in $PATH
10941do
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10949 fi
10950done
10951done
10952
10953fi
10954fi
10955RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10956if test -n "$RANLIB_FOR_TARGET"; then
10957 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10958echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10959else
10960 echo "$as_me:$LINENO: result: no" >&5
10961echo "${ECHO_T}no" >&6
10962fi
10963
10964 fi
10965 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10966 done
10967fi
10968
10969if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10970 set dummy ranlib
10971 if test $build = $target ; then
10972 RANLIB_FOR_TARGET="$2"
10973 else
10974 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10975 fi
10976else
10977 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10978fi
10979
10980else
10981 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10982fi
10983
10984
10985
10986
10987if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10988 if test -n "$with_build_time_tools"; then
10989 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10990echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10991 if test -x $with_build_time_tools/strip; then
10992 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10993 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10994 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10995echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10996 else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999 fi
11000 elif test $build != $host && test $have_gcc_for_target = yes; then
11001 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11002 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11003 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11004 fi
11005fi
11006if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11007 # Extract the first word of "strip", so it can be a program name with args.
11008set dummy strip; ac_word=$2
11009echo "$as_me:$LINENO: checking for $ac_word" >&5
11010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11011if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 case $STRIP_FOR_TARGET in
11015 [\\/]* | ?:[\\/]*)
11016 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11017 ;;
11018 *)
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020for as_dir in $gcc_cv_tool_dirs
11021do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11029 fi
11030done
11031done
11032
11033 ;;
11034esac
11035fi
11036STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11037
11038if test -n "$STRIP_FOR_TARGET"; then
11039 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11040echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11041else
11042 echo "$as_me:$LINENO: result: no" >&5
11043echo "${ECHO_T}no" >&6
11044fi
11045
11046fi
11047if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11048
11049
11050if test -n "$STRIP_FOR_TARGET"; then
11051 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11052elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11053 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11054fi
11055
11056if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11057 for ncn_progname in strip; do
11058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11059set dummy ${ncn_progname}; ac_word=$2
11060echo "$as_me:$LINENO: checking for $ac_word" >&5
11061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11062if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064else
11065 if test -n "$STRIP_FOR_TARGET"; then
11066 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11067else
11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11078 fi
11079done
11080done
11081
11082fi
11083fi
11084STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11085if test -n "$STRIP_FOR_TARGET"; then
11086 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11087echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11088else
11089 echo "$as_me:$LINENO: result: no" >&5
11090echo "${ECHO_T}no" >&6
11091fi
11092
11093 done
11094fi
11095
11096if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11097 for ncn_progname in strip; do
11098 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11099echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11100 if test -x $with_build_time_tools/${ncn_progname}; then
11101 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11102 echo "$as_me:$LINENO: result: yes" >&5
11103echo "${ECHO_T}yes" >&6
11104 break
11105 else
11106 echo "$as_me:$LINENO: result: no" >&5
11107echo "${ECHO_T}no" >&6
11108 fi
11109 done
11110fi
11111
11112if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11113 for ncn_progname in strip; do
11114 if test -n "$ncn_target_tool_prefix"; then
11115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11116set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11117echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11119if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 if test -n "$STRIP_FOR_TARGET"; then
11123 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136done
11137done
11138
11139fi
11140fi
11141STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11142if test -n "$STRIP_FOR_TARGET"; then
11143 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11144echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11145else
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
11148fi
11149
11150 fi
11151 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11153set dummy ${ncn_progname}; ac_word=$2
11154echo "$as_me:$LINENO: checking for $ac_word" >&5
11155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11156if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159 if test -n "$STRIP_FOR_TARGET"; then
11160 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11161else
11162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163for as_dir in $PATH
11164do
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11172 fi
11173done
11174done
11175
11176fi
11177fi
11178STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11179if test -n "$STRIP_FOR_TARGET"; then
11180 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11181echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11182else
11183 echo "$as_me:$LINENO: result: no" >&5
11184echo "${ECHO_T}no" >&6
11185fi
11186
11187 fi
11188 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11189 done
11190fi
11191
11192if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11193 set dummy strip
11194 if test $build = $target ; then
11195 STRIP_FOR_TARGET="$2"
11196 else
11197 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11198 fi
11199else
11200 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11201fi
11202
11203else
11204 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11205fi
11206
11207
11208
11209
11210if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11211 if test -n "$with_build_time_tools"; then
11212 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11213echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
11214 if test -x $with_build_time_tools/windres; then
11215 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11216 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11217 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11218echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
11219 else
11220 echo "$as_me:$LINENO: result: no" >&5
11221echo "${ECHO_T}no" >&6
11222 fi
11223 elif test $build != $host && test $have_gcc_for_target = yes; then
11224 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11225 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11226 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11227 fi
11228fi
11229if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11230 # Extract the first word of "windres", so it can be a program name with args.
11231set dummy windres; ac_word=$2
11232echo "$as_me:$LINENO: checking for $ac_word" >&5
11233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11234if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236else
11237 case $WINDRES_FOR_TARGET in
11238 [\\/]* | ?:[\\/]*)
11239 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11240 ;;
11241 *)
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $gcc_cv_tool_dirs
11244do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253done
11254done
11255
11256 ;;
11257esac
11258fi
11259WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11260
11261if test -n "$WINDRES_FOR_TARGET"; then
11262 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11263echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11264else
11265 echo "$as_me:$LINENO: result: no" >&5
11266echo "${ECHO_T}no" >&6
11267fi
11268
11269fi
11270if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11271
11272
11273if test -n "$WINDRES_FOR_TARGET"; then
11274 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11275elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11276 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11277fi
11278
11279if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11280 for ncn_progname in windres; do
11281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11282set dummy ${ncn_progname}; ac_word=$2
11283echo "$as_me:$LINENO: checking for $ac_word" >&5
11284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11285if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287else
11288 if test -n "$WINDRES_FOR_TARGET"; then
11289 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11290else
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11298 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302done
11303done
11304
11305fi
11306fi
11307WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11308if test -n "$WINDRES_FOR_TARGET"; then
11309 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11310echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11311else
11312 echo "$as_me:$LINENO: result: no" >&5
11313echo "${ECHO_T}no" >&6
11314fi
11315
11316 done
11317fi
11318
11319if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11320 for ncn_progname in windres; do
11321 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11322echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11323 if test -x $with_build_time_tools/${ncn_progname}; then
11324 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11325 echo "$as_me:$LINENO: result: yes" >&5
11326echo "${ECHO_T}yes" >&6
11327 break
11328 else
11329 echo "$as_me:$LINENO: result: no" >&5
11330echo "${ECHO_T}no" >&6
11331 fi
11332 done
11333fi
11334
11335if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11336 for ncn_progname in windres; do
11337 if test -n "$ncn_target_tool_prefix"; then
11338 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11339set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11340echo "$as_me:$LINENO: checking for $ac_word" >&5
11341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11342if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 if test -n "$WINDRES_FOR_TARGET"; then
11346 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11347else
11348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349for as_dir in $PATH
11350do
11351 IFS=$as_save_IFS
11352 test -z "$as_dir" && as_dir=.
11353 for ac_exec_ext in '' $ac_executable_extensions; do
11354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11355 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11357 break 2
11358 fi
11359done
11360done
11361
11362fi
11363fi
11364WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11365if test -n "$WINDRES_FOR_TARGET"; then
11366 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11367echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11368else
11369 echo "$as_me:$LINENO: result: no" >&5
11370echo "${ECHO_T}no" >&6
11371fi
11372
11373 fi
11374 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11376set dummy ${ncn_progname}; ac_word=$2
11377echo "$as_me:$LINENO: checking for $ac_word" >&5
11378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11379if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 if test -n "$WINDRES_FOR_TARGET"; then
11383 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11384else
11385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386for as_dir in $PATH
11387do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11395 fi
11396done
11397done
11398
11399fi
11400fi
11401WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11402if test -n "$WINDRES_FOR_TARGET"; then
11403 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11404echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11405else
11406 echo "$as_me:$LINENO: result: no" >&5
11407echo "${ECHO_T}no" >&6
11408fi
11409
11410 fi
11411 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11412 done
11413fi
11414
11415if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11416 set dummy windres
11417 if test $build = $target ; then
11418 WINDRES_FOR_TARGET="$2"
11419 else
11420 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11421 fi
11422else
11423 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11424fi
11425
11426else
11427 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11428fi
11429
11430
11431
11432
11433if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11434 if test -n "$with_build_time_tools"; then
11435 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11436echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11437 if test -x $with_build_time_tools/windmc; then
11438 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11439 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11440 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11441echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11442 else
11443 echo "$as_me:$LINENO: result: no" >&5
11444echo "${ECHO_T}no" >&6
11445 fi
11446 elif test $build != $host && test $have_gcc_for_target = yes; then
11447 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11448 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11449 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11450 fi
11451fi
11452if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11453 # Extract the first word of "windmc", so it can be a program name with args.
11454set dummy windmc; ac_word=$2
11455echo "$as_me:$LINENO: checking for $ac_word" >&5
11456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11457if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459else
11460 case $WINDMC_FOR_TARGET in
11461 [\\/]* | ?:[\\/]*)
11462 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11463 ;;
11464 *)
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466for as_dir in $gcc_cv_tool_dirs
11467do
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11472 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11475 fi
11476done
11477done
11478
11479 ;;
11480esac
11481fi
11482WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11483
11484if test -n "$WINDMC_FOR_TARGET"; then
11485 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11486echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11487else
11488 echo "$as_me:$LINENO: result: no" >&5
11489echo "${ECHO_T}no" >&6
11490fi
11491
11492fi
11493if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11494
11495
11496if test -n "$WINDMC_FOR_TARGET"; then
11497 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11498elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11499 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11500fi
11501
11502if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11503 for ncn_progname in windmc; do
11504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11505set dummy ${ncn_progname}; ac_word=$2
11506echo "$as_me:$LINENO: checking for $ac_word" >&5
11507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11508if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510else
11511 if test -n "$WINDMC_FOR_TARGET"; then
11512 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11513else
11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $PATH
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525done
11526done
11527
11528fi
11529fi
11530WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11531if test -n "$WINDMC_FOR_TARGET"; then
11532 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11533echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11534else
11535 echo "$as_me:$LINENO: result: no" >&5
11536echo "${ECHO_T}no" >&6
11537fi
11538
11539 done
11540fi
11541
11542if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11543 for ncn_progname in windmc; do
11544 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11545echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11546 if test -x $with_build_time_tools/${ncn_progname}; then
11547 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11548 echo "$as_me:$LINENO: result: yes" >&5
11549echo "${ECHO_T}yes" >&6
11550 break
11551 else
11552 echo "$as_me:$LINENO: result: no" >&5
11553echo "${ECHO_T}no" >&6
11554 fi
11555 done
11556fi
11557
11558if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11559 for ncn_progname in windmc; do
11560 if test -n "$ncn_target_tool_prefix"; then
11561 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11562set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11563echo "$as_me:$LINENO: checking for $ac_word" >&5
11564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 if test -n "$WINDMC_FOR_TARGET"; then
11569 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11570else
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582done
11583done
11584
11585fi
11586fi
11587WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11588if test -n "$WINDMC_FOR_TARGET"; then
11589 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11590echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11591else
11592 echo "$as_me:$LINENO: result: no" >&5
11593echo "${ECHO_T}no" >&6
11594fi
11595
11596 fi
11597 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599set dummy ${ncn_progname}; ac_word=$2
11600echo "$as_me:$LINENO: checking for $ac_word" >&5
11601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11602if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 if test -n "$WINDMC_FOR_TARGET"; then
11606 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619done
11620done
11621
11622fi
11623fi
11624WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11625if test -n "$WINDMC_FOR_TARGET"; then
11626 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11627echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11628else
11629 echo "$as_me:$LINENO: result: no" >&5
11630echo "${ECHO_T}no" >&6
11631fi
11632
11633 fi
11634 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11635 done
11636fi
11637
11638if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11639 set dummy windmc
11640 if test $build = $target ; then
11641 WINDMC_FOR_TARGET="$2"
11642 else
11643 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11644 fi
11645else
11646 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11647fi
11648
11649else
11650 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11651fi
11652
11653
11654RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11655
11656echo "$as_me:$LINENO: checking where to find the target ar" >&5
11657echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11658if test "x${build}" != "x${host}" ; then
11659 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11660 # We already found the complete path
11661 ac_dir=`dirname $AR_FOR_TARGET`
11662 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11663echo "${ECHO_T}pre-installed in $ac_dir" >&6
11664 else
11665 # Canadian cross, just use what we found
11666 echo "$as_me:$LINENO: result: pre-installed" >&5
11667echo "${ECHO_T}pre-installed" >&6
11668 fi
11669else
11670 ok=yes
11671 case " ${configdirs} " in
11672 *" binutils "*) ;;
11673 *) ok=no ;;
11674 esac
11675
11676 if test $ok = yes; then
11677 # An in-tree tool is available and we can use it
11678 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11679 echo "$as_me:$LINENO: result: just compiled" >&5
11680echo "${ECHO_T}just compiled" >&6
11681 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11682 # We already found the complete path
11683 ac_dir=`dirname $AR_FOR_TARGET`
11684 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11685echo "${ECHO_T}pre-installed in $ac_dir" >&6
11686 elif test "x$target" = "x$host"; then
11687 # We can use an host tool
11688 AR_FOR_TARGET='$(AR)'
11689 echo "$as_me:$LINENO: result: host tool" >&5
11690echo "${ECHO_T}host tool" >&6
11691 else
11692 # We need a cross tool
11693 echo "$as_me:$LINENO: result: pre-installed" >&5
11694echo "${ECHO_T}pre-installed" >&6
11695 fi
11696fi
11697
11698echo "$as_me:$LINENO: checking where to find the target as" >&5
11699echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11700if test "x${build}" != "x${host}" ; then
11701 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11702 # We already found the complete path
11703 ac_dir=`dirname $AS_FOR_TARGET`
11704 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11705echo "${ECHO_T}pre-installed in $ac_dir" >&6
11706 else
11707 # Canadian cross, just use what we found
11708 echo "$as_me:$LINENO: result: pre-installed" >&5
11709echo "${ECHO_T}pre-installed" >&6
11710 fi
11711else
11712 ok=yes
11713 case " ${configdirs} " in
11714 *" gas "*) ;;
11715 *) ok=no ;;
11716 esac
11717
11718 if test $ok = yes; then
11719 # An in-tree tool is available and we can use it
11720 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11721 echo "$as_me:$LINENO: result: just compiled" >&5
11722echo "${ECHO_T}just compiled" >&6
11723 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11724 # We already found the complete path
11725 ac_dir=`dirname $AS_FOR_TARGET`
11726 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11727echo "${ECHO_T}pre-installed in $ac_dir" >&6
11728 elif test "x$target" = "x$host"; then
11729 # We can use an host tool
11730 AS_FOR_TARGET='$(AS)'
11731 echo "$as_me:$LINENO: result: host tool" >&5
11732echo "${ECHO_T}host tool" >&6
11733 else
11734 # We need a cross tool
11735 echo "$as_me:$LINENO: result: pre-installed" >&5
11736echo "${ECHO_T}pre-installed" >&6
11737 fi
11738fi
11739
11740echo "$as_me:$LINENO: checking where to find the target cc" >&5
11741echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11742if test "x${build}" != "x${host}" ; then
11743 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11744 # We already found the complete path
11745 ac_dir=`dirname $CC_FOR_TARGET`
11746 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11747echo "${ECHO_T}pre-installed in $ac_dir" >&6
11748 else
11749 # Canadian cross, just use what we found
11750 echo "$as_me:$LINENO: result: pre-installed" >&5
11751echo "${ECHO_T}pre-installed" >&6
11752 fi
11753else
11754 ok=yes
11755 case " ${configdirs} " in
11756 *" gcc "*) ;;
11757 *) ok=no ;;
11758 esac
11759
11760 if test $ok = yes; then
11761 # An in-tree tool is available and we can use it
11762 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11763 echo "$as_me:$LINENO: result: just compiled" >&5
11764echo "${ECHO_T}just compiled" >&6
11765 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11766 # We already found the complete path
11767 ac_dir=`dirname $CC_FOR_TARGET`
11768 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11769echo "${ECHO_T}pre-installed in $ac_dir" >&6
11770 elif test "x$target" = "x$host"; then
11771 # We can use an host tool
11772 CC_FOR_TARGET='$(CC)'
11773 echo "$as_me:$LINENO: result: host tool" >&5
11774echo "${ECHO_T}host tool" >&6
11775 else
11776 # We need a cross tool
11777 echo "$as_me:$LINENO: result: pre-installed" >&5
11778echo "${ECHO_T}pre-installed" >&6
11779 fi
11780fi
11781
11782echo "$as_me:$LINENO: checking where to find the target c++" >&5
11783echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11784if test "x${build}" != "x${host}" ; then
11785 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11786 # We already found the complete path
11787 ac_dir=`dirname $CXX_FOR_TARGET`
11788 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11789echo "${ECHO_T}pre-installed in $ac_dir" >&6
11790 else
11791 # Canadian cross, just use what we found
11792 echo "$as_me:$LINENO: result: pre-installed" >&5
11793echo "${ECHO_T}pre-installed" >&6
11794 fi
11795else
11796 ok=yes
11797 case " ${configdirs} " in
11798 *" gcc "*) ;;
11799 *) ok=no ;;
11800 esac
11801 case ,${enable_languages}, in
11802 *,c++,*) ;;
11803 *) ok=no ;;
11804 esac
11805 if test $ok = yes; then
11806 # An in-tree tool is available and we can use it
11807 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'
11808 echo "$as_me:$LINENO: result: just compiled" >&5
11809echo "${ECHO_T}just compiled" >&6
11810 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11811 # We already found the complete path
11812 ac_dir=`dirname $CXX_FOR_TARGET`
11813 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11814echo "${ECHO_T}pre-installed in $ac_dir" >&6
11815 elif test "x$target" = "x$host"; then
11816 # We can use an host tool
11817 CXX_FOR_TARGET='$(CXX)'
11818 echo "$as_me:$LINENO: result: host tool" >&5
11819echo "${ECHO_T}host tool" >&6
11820 else
11821 # We need a cross tool
11822 echo "$as_me:$LINENO: result: pre-installed" >&5
11823echo "${ECHO_T}pre-installed" >&6
11824 fi
11825fi
11826
11827echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11828echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11829if test "x${build}" != "x${host}" ; then
11830 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11831 # We already found the complete path
11832 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11833 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11834echo "${ECHO_T}pre-installed in $ac_dir" >&6
11835 else
11836 # Canadian cross, just use what we found
11837 echo "$as_me:$LINENO: result: pre-installed" >&5
11838echo "${ECHO_T}pre-installed" >&6
11839 fi
11840else
11841 ok=yes
11842 case " ${configdirs} " in
11843 *" gcc "*) ;;
11844 *) ok=no ;;
11845 esac
11846 case ,${enable_languages}, in
11847 *,c++,*) ;;
11848 *) ok=no ;;
11849 esac
11850 if test $ok = yes; then
11851 # An in-tree tool is available and we can use it
11852 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'
11853 echo "$as_me:$LINENO: result: just compiled" >&5
11854echo "${ECHO_T}just compiled" >&6
11855 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11856 # We already found the complete path
11857 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11858 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11859echo "${ECHO_T}pre-installed in $ac_dir" >&6
11860 elif test "x$target" = "x$host"; then
11861 # We can use an host tool
11862 RAW_CXX_FOR_TARGET='$(CXX)'
11863 echo "$as_me:$LINENO: result: host tool" >&5
11864echo "${ECHO_T}host tool" >&6
11865 else
11866 # We need a cross tool
11867 echo "$as_me:$LINENO: result: pre-installed" >&5
11868echo "${ECHO_T}pre-installed" >&6
11869 fi
11870fi
11871
11872echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11873echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11874if test "x${build}" != "x${host}" ; then
11875 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11876 # We already found the complete path
11877 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11878 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11879echo "${ECHO_T}pre-installed in $ac_dir" >&6
11880 else
11881 # Canadian cross, just use what we found
11882 echo "$as_me:$LINENO: result: pre-installed" >&5
11883echo "${ECHO_T}pre-installed" >&6
11884 fi
11885else
11886 ok=yes
11887 case " ${configdirs} " in
11888 *" binutils "*) ;;
11889 *) ok=no ;;
11890 esac
11891
11892 if test $ok = yes; then
11893 # An in-tree tool is available and we can use it
11894 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11895 echo "$as_me:$LINENO: result: just compiled" >&5
11896echo "${ECHO_T}just compiled" >&6
11897 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11898 # We already found the complete path
11899 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11900 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11901echo "${ECHO_T}pre-installed in $ac_dir" >&6
11902 elif test "x$target" = "x$host"; then
11903 # We can use an host tool
11904 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11905 echo "$as_me:$LINENO: result: host tool" >&5
11906echo "${ECHO_T}host tool" >&6
11907 else
11908 # We need a cross tool
11909 echo "$as_me:$LINENO: result: pre-installed" >&5
11910echo "${ECHO_T}pre-installed" >&6
11911 fi
11912fi
11913
11914echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11915echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11916if test "x${build}" != "x${host}" ; then
11917 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11918 # We already found the complete path
11919 ac_dir=`dirname $GCC_FOR_TARGET`
11920 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11921echo "${ECHO_T}pre-installed in $ac_dir" >&6
11922 else
11923 # Canadian cross, just use what we found
11924 echo "$as_me:$LINENO: result: pre-installed" >&5
11925echo "${ECHO_T}pre-installed" >&6
11926 fi
11927else
11928 ok=yes
11929 case " ${configdirs} " in
11930 *" gcc "*) ;;
11931 *) ok=no ;;
11932 esac
11933
11934 if test $ok = yes; then
11935 # An in-tree tool is available and we can use it
11936 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11937 echo "$as_me:$LINENO: result: just compiled" >&5
11938echo "${ECHO_T}just compiled" >&6
11939 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11940 # We already found the complete path
11941 ac_dir=`dirname $GCC_FOR_TARGET`
11942 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11943echo "${ECHO_T}pre-installed in $ac_dir" >&6
11944 elif test "x$target" = "x$host"; then
11945 # We can use an host tool
11946 GCC_FOR_TARGET='$()'
11947 echo "$as_me:$LINENO: result: host tool" >&5
11948echo "${ECHO_T}host tool" >&6
11949 else
11950 # We need a cross tool
11951 echo "$as_me:$LINENO: result: pre-installed" >&5
11952echo "${ECHO_T}pre-installed" >&6
11953 fi
11954fi
11955
11956echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11957echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11958if test "x${build}" != "x${host}" ; then
11959 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11960 # We already found the complete path
11961 ac_dir=`dirname $GCJ_FOR_TARGET`
11962 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11963echo "${ECHO_T}pre-installed in $ac_dir" >&6
11964 else
11965 # Canadian cross, just use what we found
11966 echo "$as_me:$LINENO: result: pre-installed" >&5
11967echo "${ECHO_T}pre-installed" >&6
11968 fi
11969else
11970 ok=yes
11971 case " ${configdirs} " in
11972 *" gcc "*) ;;
11973 *) ok=no ;;
11974 esac
11975 case ,${enable_languages}, in
11976 *,java,*) ;;
11977 *) ok=no ;;
11978 esac
11979 if test $ok = yes; then
11980 # An in-tree tool is available and we can use it
11981 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11982 echo "$as_me:$LINENO: result: just compiled" >&5
11983echo "${ECHO_T}just compiled" >&6
11984 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11985 # We already found the complete path
11986 ac_dir=`dirname $GCJ_FOR_TARGET`
11987 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11988echo "${ECHO_T}pre-installed in $ac_dir" >&6
11989 elif test "x$target" = "x$host"; then
11990 # We can use an host tool
11991 GCJ_FOR_TARGET='$(GCJ)'
11992 echo "$as_me:$LINENO: result: host tool" >&5
11993echo "${ECHO_T}host tool" >&6
11994 else
11995 # We need a cross tool
11996 echo "$as_me:$LINENO: result: pre-installed" >&5
11997echo "${ECHO_T}pre-installed" >&6
11998 fi
11999fi
12000
12001echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12002echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
12003if test "x${build}" != "x${host}" ; then
12004 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12005 # We already found the complete path
12006 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12007 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12008echo "${ECHO_T}pre-installed in $ac_dir" >&6
12009 else
12010 # Canadian cross, just use what we found
12011 echo "$as_me:$LINENO: result: pre-installed" >&5
12012echo "${ECHO_T}pre-installed" >&6
12013 fi
12014else
12015 ok=yes
12016 case " ${configdirs} " in
12017 *" gcc "*) ;;
12018 *) ok=no ;;
12019 esac
12020 case ,${enable_languages}, in
12021 *,fortran,*) ;;
12022 *) ok=no ;;
12023 esac
12024 if test $ok = yes; then
12025 # An in-tree tool is available and we can use it
12026 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12027 echo "$as_me:$LINENO: result: just compiled" >&5
12028echo "${ECHO_T}just compiled" >&6
12029 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12030 # We already found the complete path
12031 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12032 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12033echo "${ECHO_T}pre-installed in $ac_dir" >&6
12034 elif test "x$target" = "x$host"; then
12035 # We can use an host tool
12036 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12037 echo "$as_me:$LINENO: result: host tool" >&5
12038echo "${ECHO_T}host tool" >&6
12039 else
12040 # We need a cross tool
12041 echo "$as_me:$LINENO: result: pre-installed" >&5
12042echo "${ECHO_T}pre-installed" >&6
12043 fi
12044fi
12045
12046echo "$as_me:$LINENO: checking where to find the target ld" >&5
12047echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
12048if test "x${build}" != "x${host}" ; then
12049 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12050 # We already found the complete path
12051 ac_dir=`dirname $LD_FOR_TARGET`
12052 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12053echo "${ECHO_T}pre-installed in $ac_dir" >&6
12054 else
12055 # Canadian cross, just use what we found
12056 echo "$as_me:$LINENO: result: pre-installed" >&5
12057echo "${ECHO_T}pre-installed" >&6
12058 fi
12059else
12060 ok=yes
12061 case " ${configdirs} " in
12062 *" ld "*) ;;
12063 *) ok=no ;;
12064 esac
12065
12066 if test $ok = yes; then
12067 # An in-tree tool is available and we can use it
12068 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12069 echo "$as_me:$LINENO: result: just compiled" >&5
12070echo "${ECHO_T}just compiled" >&6
12071 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12072 # We already found the complete path
12073 ac_dir=`dirname $LD_FOR_TARGET`
12074 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12075echo "${ECHO_T}pre-installed in $ac_dir" >&6
12076 elif test "x$target" = "x$host"; then
12077 # We can use an host tool
12078 LD_FOR_TARGET='$(LD)'
12079 echo "$as_me:$LINENO: result: host tool" >&5
12080echo "${ECHO_T}host tool" >&6
12081 else
12082 # We need a cross tool
12083 echo "$as_me:$LINENO: result: pre-installed" >&5
12084echo "${ECHO_T}pre-installed" >&6
12085 fi
12086fi
12087
12088echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12089echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
12090if test "x${build}" != "x${host}" ; then
12091 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12092 # We already found the complete path
12093 ac_dir=`dirname $LIPO_FOR_TARGET`
12094 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12095echo "${ECHO_T}pre-installed in $ac_dir" >&6
12096 else
12097 # Canadian cross, just use what we found
12098 echo "$as_me:$LINENO: result: pre-installed" >&5
12099echo "${ECHO_T}pre-installed" >&6
12100 fi
12101else
12102 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12103 # We already found the complete path
12104 ac_dir=`dirname $LIPO_FOR_TARGET`
12105 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12106echo "${ECHO_T}pre-installed in $ac_dir" >&6
12107 elif test "x$target" = "x$host"; then
12108 # We can use an host tool
12109 LIPO_FOR_TARGET='$(LIPO)'
12110 echo "$as_me:$LINENO: result: host tool" >&5
12111echo "${ECHO_T}host tool" >&6
12112 else
12113 # We need a cross tool
12114 echo "$as_me:$LINENO: result: pre-installed" >&5
12115echo "${ECHO_T}pre-installed" >&6
12116 fi
12117fi
12118
12119echo "$as_me:$LINENO: checking where to find the target nm" >&5
12120echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
12121if test "x${build}" != "x${host}" ; then
12122 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12123 # We already found the complete path
12124 ac_dir=`dirname $NM_FOR_TARGET`
12125 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12126echo "${ECHO_T}pre-installed in $ac_dir" >&6
12127 else
12128 # Canadian cross, just use what we found
12129 echo "$as_me:$LINENO: result: pre-installed" >&5
12130echo "${ECHO_T}pre-installed" >&6
12131 fi
12132else
12133 ok=yes
12134 case " ${configdirs} " in
12135 *" binutils "*) ;;
12136 *) ok=no ;;
12137 esac
12138
12139 if test $ok = yes; then
12140 # An in-tree tool is available and we can use it
12141 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12142 echo "$as_me:$LINENO: result: just compiled" >&5
12143echo "${ECHO_T}just compiled" >&6
12144 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12145 # We already found the complete path
12146 ac_dir=`dirname $NM_FOR_TARGET`
12147 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12148echo "${ECHO_T}pre-installed in $ac_dir" >&6
12149 elif test "x$target" = "x$host"; then
12150 # We can use an host tool
12151 NM_FOR_TARGET='$(NM)'
12152 echo "$as_me:$LINENO: result: host tool" >&5
12153echo "${ECHO_T}host tool" >&6
12154 else
12155 # We need a cross tool
12156 echo "$as_me:$LINENO: result: pre-installed" >&5
12157echo "${ECHO_T}pre-installed" >&6
12158 fi
12159fi
12160
12161echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12162echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
12163if test "x${build}" != "x${host}" ; then
12164 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12165 # We already found the complete path
12166 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12167 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12168echo "${ECHO_T}pre-installed in $ac_dir" >&6
12169 else
12170 # Canadian cross, just use what we found
12171 echo "$as_me:$LINENO: result: pre-installed" >&5
12172echo "${ECHO_T}pre-installed" >&6
12173 fi
12174else
12175 ok=yes
12176 case " ${configdirs} " in
12177 *" binutils "*) ;;
12178 *) ok=no ;;
12179 esac
12180
12181 if test $ok = yes; then
12182 # An in-tree tool is available and we can use it
12183 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12184 echo "$as_me:$LINENO: result: just compiled" >&5
12185echo "${ECHO_T}just compiled" >&6
12186 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12187 # We already found the complete path
12188 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12189 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12190echo "${ECHO_T}pre-installed in $ac_dir" >&6
12191 elif test "x$target" = "x$host"; then
12192 # We can use an host tool
12193 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12194 echo "$as_me:$LINENO: result: host tool" >&5
12195echo "${ECHO_T}host tool" >&6
12196 else
12197 # We need a cross tool
12198 echo "$as_me:$LINENO: result: pre-installed" >&5
12199echo "${ECHO_T}pre-installed" >&6
12200 fi
12201fi
12202
12203echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12204echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
12205if test "x${build}" != "x${host}" ; then
12206 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12207 # We already found the complete path
12208 ac_dir=`dirname $RANLIB_FOR_TARGET`
12209 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12210echo "${ECHO_T}pre-installed in $ac_dir" >&6
12211 else
12212 # Canadian cross, just use what we found
12213 echo "$as_me:$LINENO: result: pre-installed" >&5
12214echo "${ECHO_T}pre-installed" >&6
12215 fi
12216else
12217 ok=yes
12218 case " ${configdirs} " in
12219 *" binutils "*) ;;
12220 *) ok=no ;;
12221 esac
12222
12223 if test $ok = yes; then
12224 # An in-tree tool is available and we can use it
12225 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12226 echo "$as_me:$LINENO: result: just compiled" >&5
12227echo "${ECHO_T}just compiled" >&6
12228 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12229 # We already found the complete path
12230 ac_dir=`dirname $RANLIB_FOR_TARGET`
12231 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12232echo "${ECHO_T}pre-installed in $ac_dir" >&6
12233 elif test "x$target" = "x$host"; then
12234 # We can use an host tool
12235 RANLIB_FOR_TARGET='$(RANLIB)'
12236 echo "$as_me:$LINENO: result: host tool" >&5
12237echo "${ECHO_T}host tool" >&6
12238 else
12239 # We need a cross tool
12240 echo "$as_me:$LINENO: result: pre-installed" >&5
12241echo "${ECHO_T}pre-installed" >&6
12242 fi
12243fi
12244
12245echo "$as_me:$LINENO: checking where to find the target strip" >&5
12246echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
12247if test "x${build}" != "x${host}" ; then
12248 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12249 # We already found the complete path
12250 ac_dir=`dirname $STRIP_FOR_TARGET`
12251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12252echo "${ECHO_T}pre-installed in $ac_dir" >&6
12253 else
12254 # Canadian cross, just use what we found
12255 echo "$as_me:$LINENO: result: pre-installed" >&5
12256echo "${ECHO_T}pre-installed" >&6
12257 fi
12258else
12259 ok=yes
12260 case " ${configdirs} " in
12261 *" binutils "*) ;;
12262 *) ok=no ;;
12263 esac
12264
12265 if test $ok = yes; then
12266 # An in-tree tool is available and we can use it
12267 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12268 echo "$as_me:$LINENO: result: just compiled" >&5
12269echo "${ECHO_T}just compiled" >&6
12270 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12271 # We already found the complete path
12272 ac_dir=`dirname $STRIP_FOR_TARGET`
12273 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12274echo "${ECHO_T}pre-installed in $ac_dir" >&6
12275 elif test "x$target" = "x$host"; then
12276 # We can use an host tool
12277 STRIP_FOR_TARGET='$(STRIP)'
12278 echo "$as_me:$LINENO: result: host tool" >&5
12279echo "${ECHO_T}host tool" >&6
12280 else
12281 # We need a cross tool
12282 echo "$as_me:$LINENO: result: pre-installed" >&5
12283echo "${ECHO_T}pre-installed" >&6
12284 fi
12285fi
12286
12287echo "$as_me:$LINENO: checking where to find the target windres" >&5
12288echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12289if test "x${build}" != "x${host}" ; then
12290 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12291 # We already found the complete path
12292 ac_dir=`dirname $WINDRES_FOR_TARGET`
12293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12294echo "${ECHO_T}pre-installed in $ac_dir" >&6
12295 else
12296 # Canadian cross, just use what we found
12297 echo "$as_me:$LINENO: result: pre-installed" >&5
12298echo "${ECHO_T}pre-installed" >&6
12299 fi
12300else
12301 ok=yes
12302 case " ${configdirs} " in
12303 *" binutils "*) ;;
12304 *) ok=no ;;
12305 esac
12306
12307 if test $ok = yes; then
12308 # An in-tree tool is available and we can use it
12309 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12310 echo "$as_me:$LINENO: result: just compiled" >&5
12311echo "${ECHO_T}just compiled" >&6
12312 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12313 # We already found the complete path
12314 ac_dir=`dirname $WINDRES_FOR_TARGET`
12315 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12316echo "${ECHO_T}pre-installed in $ac_dir" >&6
12317 elif test "x$target" = "x$host"; then
12318 # We can use an host tool
12319 WINDRES_FOR_TARGET='$(WINDRES)'
12320 echo "$as_me:$LINENO: result: host tool" >&5
12321echo "${ECHO_T}host tool" >&6
12322 else
12323 # We need a cross tool
12324 echo "$as_me:$LINENO: result: pre-installed" >&5
12325echo "${ECHO_T}pre-installed" >&6
12326 fi
12327fi
12328
12329echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12330echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12331if test "x${build}" != "x${host}" ; then
12332 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12333 # We already found the complete path
12334 ac_dir=`dirname $WINDMC_FOR_TARGET`
12335 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12336echo "${ECHO_T}pre-installed in $ac_dir" >&6
12337 else
12338 # Canadian cross, just use what we found
12339 echo "$as_me:$LINENO: result: pre-installed" >&5
12340echo "${ECHO_T}pre-installed" >&6
12341 fi
12342else
12343 ok=yes
12344 case " ${configdirs} " in
12345 *" binutils "*) ;;
12346 *) ok=no ;;
12347 esac
12348
12349 if test $ok = yes; then
12350 # An in-tree tool is available and we can use it
12351 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12352 echo "$as_me:$LINENO: result: just compiled" >&5
12353echo "${ECHO_T}just compiled" >&6
12354 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12355 # We already found the complete path
12356 ac_dir=`dirname $WINDMC_FOR_TARGET`
12357 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12358echo "${ECHO_T}pre-installed in $ac_dir" >&6
12359 elif test "x$target" = "x$host"; then
12360 # We can use an host tool
12361 WINDMC_FOR_TARGET='$(WINDMC)'
12362 echo "$as_me:$LINENO: result: host tool" >&5
12363echo "${ECHO_T}host tool" >&6
12364 else
12365 # We need a cross tool
12366 echo "$as_me:$LINENO: result: pre-installed" >&5
12367echo "${ECHO_T}pre-installed" >&6
12368 fi
12369fi
12370
12371
12372
12373
12374
12375# Certain tools may need extra flags.
12376AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12377RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12378NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12379
12380# When building target libraries, except in a Canadian cross, we use
12381# the same toolchain as the compiler we just built.
12382COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12383COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12384COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12385if test $host = $build; then
12386 case " $configdirs " in
12387 *" gcc "*)
12388 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12389 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12390 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12391 ;;
12392 esac
12393fi
12394
12395
12396
12397
12398
12399echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12400echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12401# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12402if test "${enable_maintainer_mode+set}" = set; then
12403 enableval="$enable_maintainer_mode"
12404 USE_MAINTAINER_MODE=$enableval
12405else
12406 USE_MAINTAINER_MODE=no
12407fi;
12408echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12409echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12410
12411
12412if test "$USE_MAINTAINER_MODE" = yes; then
12413 MAINTAINER_MODE_TRUE=
12414 MAINTAINER_MODE_FALSE='#'
12415else
12416 MAINTAINER_MODE_TRUE='#'
12417 MAINTAINER_MODE_FALSE=
12418fi
12419MAINT=$MAINTAINER_MODE_TRUE
12420
12421# ---------------------
12422# GCC bootstrap support
12423# ---------------------
12424
12425# Stage specific cflags for build.
12426stage1_cflags="-g"
12427case $build in
12428 vax-*-*)
12429 case ${GCC} in
12430 yes) stage1_cflags="-g -Wa,-J" ;;
12431 *) stage1_cflags="-g -J" ;;
12432 esac ;;
12433esac
12434
12435# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12436if test "$GCC" = yes; then
12437 saved_CFLAGS="$CFLAGS"
12438
12439 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12440 CFLAGS="$CFLAGS -fkeep-inline-functions"
12441 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12442echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
12449
12450#if (__GNUC__ < 3) \
12451 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12452 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12453#error http://gcc.gnu.org/PR29382
12454#endif
12455
12456int
12457main ()
12458{
12459
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext
12465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag"
12474 || test ! -s conftest.err'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 echo "$as_me:$LINENO: result: yes" >&5
12487echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12488else
12489 echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492echo "$as_me:$LINENO: result: no" >&5
12493echo "${ECHO_T}no" >&6
12494fi
12495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12496
12497 CFLAGS="$saved_CFLAGS"
12498fi
12499
12500
12501
12502# Enable --enable-checking in stage1 of the compiler.
12503# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12504if test "${enable_stage1_checking+set}" = set; then
12505 enableval="$enable_stage1_checking"
12506 stage1_checking=--enable-checking=${enable_stage1_checking}
12507else
12508 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12509 stage1_checking=--enable-checking=yes,types
12510else
12511 stage1_checking=--enable-checking=$enable_checking,types
12512fi
12513fi;
12514
12515
12516# Enable -Werror in bootstrap stage2 and later.
12517# Check whether --enable-werror or --disable-werror was given.
12518if test "${enable_werror+set}" = set; then
12519 enableval="$enable_werror"
12520
12521else
12522 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12523 enable_werror=yes
12524else
12525 enable_werror=no
12526fi
12527fi;
12528case ${enable_werror} in
12529 yes) stage2_werror_flag="--enable-werror-always" ;;
12530 *) stage2_werror_flag="" ;;
12531esac
12532
12533
12534# Flags needed to enable html installing and building
12535
12536# Check whether --with-datarootdir or --without-datarootdir was given.
12537if test "${with_datarootdir+set}" = set; then
12538 withval="$with_datarootdir"
12539 datarootdir="\${prefix}/${withval}"
12540else
12541 datarootdir="\${prefix}/share"
12542fi;
12543
12544
12545# Check whether --with-docdir or --without-docdir was given.
12546if test "${with_docdir+set}" = set; then
12547 withval="$with_docdir"
12548 docdir="\${prefix}/${withval}"
12549else
12550 docdir="\${datarootdir}/doc"
12551fi;
12552
12553
12554# Check whether --with-pdfdir or --without-pdfdir was given.
12555if test "${with_pdfdir+set}" = set; then
12556 withval="$with_pdfdir"
12557 pdfdir="\${prefix}/${withval}"
12558else
12559 pdfdir="\${docdir}"
12560fi;
12561
12562
12563# Check whether --with-htmldir or --without-htmldir was given.
12564if test "${with_htmldir+set}" = set; then
12565 withval="$with_htmldir"
12566 htmldir="\${prefix}/${withval}"
12567else
12568 htmldir="\${docdir}"
12569fi;
12570
12571
12572
12573
12574
12575
12576 ac_config_files="$ac_config_files Makefile"
12577cat >confcache <<\_ACEOF
12578# This file is a shell script that caches the results of configure
12579# tests run on this system so they can be shared between configure
12580# scripts and configure runs, see configure's option --config-cache.
12581# It is not useful on other systems. If it contains results you don't
12582# want to keep, you may remove or edit it.
12583#
12584# config.status only pays attention to the cache file if you give it
12585# the --recheck option to rerun configure.
12586#
12587# `ac_cv_env_foo' variables (set or unset) will be overridden when
12588# loading this file, other *unset* `ac_cv_foo' will be assigned the
12589# following values.
12590
12591_ACEOF
12592
12593# The following way of writing the cache mishandles newlines in values,
12594# but we know of no workaround that is simple, portable, and efficient.
12595# So, don't put newlines in cache variables' values.
12596# Ultrix sh set writes to stderr and can't be redirected directly,
12597# and sets the high bit in the cache file unless we assign to the vars.
12598{
12599 (set) 2>&1 |
12600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12601 *ac_space=\ *)
12602 # `set' does not quote correctly, so add quotes (double-quote
12603 # substitution turns \\\\ into \\, and sed turns \\ into \).
12604 sed -n \
12605 "s/'/'\\\\''/g;
12606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12607 ;;
12608 *)
12609 # `set' quotes correctly as required by POSIX, so do not add quotes.
12610 sed -n \
12611 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12612 ;;
12613 esac;
12614} |
12615 sed '
12616 t clear
12617 : clear
12618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12619 t end
12620 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12621 : end' >>confcache
12622if diff $cache_file confcache >/dev/null 2>&1; then :; else
12623 if test -w $cache_file; then
12624 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12625 cat confcache >$cache_file
12626 else
12627 echo "not updating unwritable cache $cache_file"
12628 fi
12629fi
12630rm -f confcache
12631
12632test "x$prefix" = xNONE && prefix=$ac_default_prefix
12633# Let make expand exec_prefix.
12634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12635
12636# VPATH may cause trouble with some makes, so we remove $(srcdir),
12637# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12638# trailing colons and then remove the whole line if VPATH becomes empty
12639# (actually we leave an empty line to preserve line numbers).
12640if test "x$srcdir" = x.; then
12641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12642s/:*\$(srcdir):*/:/;
12643s/:*\${srcdir}:*/:/;
12644s/:*@srcdir@:*/:/;
12645s/^\([^=]*=[ ]*\):*/\1/;
12646s/:*$//;
12647s/^[^=]*=[ ]*$//;
12648}'
12649fi
12650
12651# Transform confdefs.h into DEFS.
12652# Protect against shell expansion while executing Makefile rules.
12653# Protect against Makefile macro expansion.
12654#
12655# If the first sed substitution is executed (which looks for macros that
12656# take arguments), then we branch to the quote section. Otherwise,
12657# look for a macro that doesn't take arguments.
12658cat >confdef2opt.sed <<\_ACEOF
12659t clear
12660: clear
12661s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12662t quote
12663s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12664t quote
12665d
12666: quote
12667s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12668s,\[,\\&,g
12669s,\],\\&,g
12670s,\$,$$,g
12671p
12672_ACEOF
12673# We use echo to avoid assuming a particular line-breaking character.
12674# The extra dot is to prevent the shell from consuming trailing
12675# line-breaks from the sub-command output. A line-break within
12676# single-quotes doesn't work because, if this script is created in a
12677# platform that uses two characters for line-breaks (e.g., DOS), tr
12678# would break.
12679ac_LF_and_DOT=`echo; echo .`
12680DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12681rm -f confdef2opt.sed
12682
12683
12684ac_libobjs=
12685ac_ltlibobjs=
12686for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12687 # 1. Remove the extension, and $U if already installed.
12688 ac_i=`echo "$ac_i" |
12689 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12690 # 2. Add them.
12691 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12692 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12693done
12694LIBOBJS=$ac_libobjs
12695
12696LTLIBOBJS=$ac_ltlibobjs
12697
12698
12699
12700: ${CONFIG_STATUS=./config.status}
12701ac_clean_files_save=$ac_clean_files
12702ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12703{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12704echo "$as_me: creating $CONFIG_STATUS" >&6;}
12705cat >$CONFIG_STATUS <<_ACEOF
12706#! $SHELL
12707# Generated by $as_me.
12708# Run this file to recreate the current configuration.
12709# Compiler output produced by configure, useful for debugging
12710# configure, is in config.log if it exists.
12711
12712debug=false
12713ac_cs_recheck=false
12714ac_cs_silent=false
12715SHELL=\${CONFIG_SHELL-$SHELL}
12716_ACEOF
12717
12718cat >>$CONFIG_STATUS <<\_ACEOF
12719## --------------------- ##
12720## M4sh Initialization. ##
12721## --------------------- ##
12722
12723# Be Bourne compatible
12724if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12725 emulate sh
12726 NULLCMD=:
12727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12728 # is contrary to our usage. Disable this feature.
12729 alias -g '${1+"$@"}'='"$@"'
12730elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12731 set -o posix
12732fi
12733DUALCASE=1; export DUALCASE # for MKS sh
12734
12735# Support unset when possible.
12736if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12737 as_unset=unset
12738else
12739 as_unset=false
12740fi
12741
12742
12743# Work around bugs in pre-3.0 UWIN ksh.
12744$as_unset ENV MAIL MAILPATH
12745PS1='$ '
12746PS2='> '
12747PS4='+ '
12748
12749# NLS nuisances.
12750for as_var in \
12751 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12752 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12753 LC_TELEPHONE LC_TIME
12754do
12755 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12756 eval $as_var=C; export $as_var
12757 else
12758 $as_unset $as_var
12759 fi
12760done
12761
12762# Required to use basename.
12763if expr a : '\(a\)' >/dev/null 2>&1; then
12764 as_expr=expr
12765else
12766 as_expr=false
12767fi
12768
12769if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12770 as_basename=basename
12771else
12772 as_basename=false
12773fi
12774
12775
12776# Name of the executable.
12777as_me=`$as_basename "$0" ||
12778$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12779 X"$0" : 'X\(//\)$' \| \
12780 X"$0" : 'X\(/\)$' \| \
12781 . : '\(.\)' 2>/dev/null ||
12782echo X/"$0" |
12783 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12784 /^X\/\(\/\/\)$/{ s//\1/; q; }
12785 /^X\/\(\/\).*/{ s//\1/; q; }
12786 s/.*/./; q'`
12787
12788
12789# PATH needs CR, and LINENO needs CR and PATH.
12790# Avoid depending upon Character Ranges.
12791as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12793as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12794as_cr_digits='0123456789'
12795as_cr_alnum=$as_cr_Letters$as_cr_digits
12796
12797# The user is always right.
12798if test "${PATH_SEPARATOR+set}" != set; then
12799 echo "#! /bin/sh" >conf$$.sh
12800 echo "exit 0" >>conf$$.sh
12801 chmod +x conf$$.sh
12802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12803 PATH_SEPARATOR=';'
12804 else
12805 PATH_SEPARATOR=:
12806 fi
12807 rm -f conf$$.sh
12808fi
12809
12810
12811 as_lineno_1=$LINENO
12812 as_lineno_2=$LINENO
12813 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12814 test "x$as_lineno_1" != "x$as_lineno_2" &&
12815 test "x$as_lineno_3" = "x$as_lineno_2" || {
12816 # Find who we are. Look in the path if we contain no path at all
12817 # relative or not.
12818 case $0 in
12819 *[\\/]* ) as_myself=$0 ;;
12820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
12825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12826done
12827
12828 ;;
12829 esac
12830 # We did not find ourselves, most probably we were run as `sh COMMAND'
12831 # in which case we are not to be found in the path.
12832 if test "x$as_myself" = x; then
12833 as_myself=$0
12834 fi
12835 if test ! -f "$as_myself"; then
12836 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12837echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12838 { (exit 1); exit 1; }; }
12839 fi
12840 case $CONFIG_SHELL in
12841 '')
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12844do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for as_base in sh bash ksh sh5; do
12848 case $as_dir in
12849 /*)
12850 if ("$as_dir/$as_base" -c '
12851 as_lineno_1=$LINENO
12852 as_lineno_2=$LINENO
12853 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12854 test "x$as_lineno_1" != "x$as_lineno_2" &&
12855 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12856 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12857 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12858 CONFIG_SHELL=$as_dir/$as_base
12859 export CONFIG_SHELL
12860 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12861 fi;;
12862 esac
12863 done
12864done
12865;;
12866 esac
12867
12868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12869 # uniformly replaced by the line number. The first 'sed' inserts a
12870 # line-number line before each line; the second 'sed' does the real
12871 # work. The second script uses 'N' to pair each line-number line
12872 # with the numbered line, and appends trailing '-' during
12873 # substitution so that $LINENO is not a special case at line end.
12874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12875 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12876 sed '=' <$as_myself |
12877 sed '
12878 N
12879 s,$,-,
12880 : loop
12881 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12882 t loop
12883 s,-$,,
12884 s,^['$as_cr_digits']*\n,,
12885 ' >$as_me.lineno &&
12886 chmod +x $as_me.lineno ||
12887 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12888echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12889 { (exit 1); exit 1; }; }
12890
12891 # Don't try to exec as it changes $[0], causing all sort of problems
12892 # (the dirname of $[0] is not the place where we might find the
12893 # original and so on. Autoconf is especially sensible to this).
12894 . ./$as_me.lineno
12895 # Exit status is that of the last command.
12896 exit
12897}
12898
12899
12900case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12901 *c*,-n*) ECHO_N= ECHO_C='
12902' ECHO_T=' ' ;;
12903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12905esac
12906
12907if expr a : '\(a\)' >/dev/null 2>&1; then
12908 as_expr=expr
12909else
12910 as_expr=false
12911fi
12912
12913rm -f conf$$ conf$$.exe conf$$.file
12914echo >conf$$.file
12915if ln -s conf$$.file conf$$ 2>/dev/null; then
12916 # We could just check for DJGPP; but this test a) works b) is more generic
12917 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12918 if test -f conf$$.exe; then
12919 # Don't use ln at all; we don't have any links
12920 as_ln_s='cp -p'
12921 else
12922 as_ln_s='ln -s'
12923 fi
12924elif ln conf$$.file conf$$ 2>/dev/null; then
12925 as_ln_s=ln
12926else
12927 as_ln_s='cp -p'
12928fi
12929rm -f conf$$ conf$$.exe conf$$.file
12930
12931if mkdir -p . 2>/dev/null; then
12932 as_mkdir_p=:
12933else
12934 test -d ./-p && rmdir ./-p
12935 as_mkdir_p=false
12936fi
12937
12938as_executable_p="test -f"
12939
12940# Sed expression to map a string onto a valid CPP name.
12941as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12942
12943# Sed expression to map a string onto a valid variable name.
12944as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12945
12946
12947# IFS
12948# We need space, tab and new line, in precisely that order.
12949as_nl='
12950'
12951IFS=" $as_nl"
12952
12953# CDPATH.
12954$as_unset CDPATH
12955
12956exec 6>&1
12957
12958# Open the log real soon, to keep \$[0] and so on meaningful, and to
12959# report actual input values of CONFIG_FILES etc. instead of their
12960# values after options handling. Logging --version etc. is OK.
12961exec 5>>config.log
12962{
12963 echo
12964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12965## Running $as_me. ##
12966_ASBOX
12967} >&5
12968cat >&5 <<_CSEOF
12969
12970This file was extended by $as_me, which was
12971generated by GNU Autoconf 2.59. Invocation command line was
12972
12973 CONFIG_FILES = $CONFIG_FILES
12974 CONFIG_HEADERS = $CONFIG_HEADERS
12975 CONFIG_LINKS = $CONFIG_LINKS
12976 CONFIG_COMMANDS = $CONFIG_COMMANDS
12977 $ $0 $@
12978
12979_CSEOF
12980echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12981echo >&5
12982_ACEOF
12983
12984# Files that config.status was made for.
12985if test -n "$ac_config_files"; then
12986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12987fi
12988
12989if test -n "$ac_config_headers"; then
12990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12991fi
12992
12993if test -n "$ac_config_links"; then
12994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12995fi
12996
12997if test -n "$ac_config_commands"; then
12998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12999fi
13000
13001cat >>$CONFIG_STATUS <<\_ACEOF
13002
13003ac_cs_usage="\
13004\`$as_me' instantiates files from templates according to the
13005current configuration.
13006
13007Usage: $0 [OPTIONS] [FILE]...
13008
13009 -h, --help print this help, then exit
13010 -V, --version print version number, then exit
13011 -q, --quiet do not print progress messages
13012 -d, --debug don't remove temporary files
13013 --recheck update $as_me by reconfiguring in the same conditions
13014 --file=FILE[:TEMPLATE]
13015 instantiate the configuration file FILE
13016
13017Configuration files:
13018$config_files
13019
13020Report bugs to <bug-autoconf@gnu.org>."
13021_ACEOF
13022
13023cat >>$CONFIG_STATUS <<_ACEOF
13024ac_cs_version="\\
13025config.status
13026configured by $0, generated by GNU Autoconf 2.59,
13027 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13028
13029Copyright (C) 2003 Free Software Foundation, Inc.
13030This config.status script is free software; the Free Software Foundation
13031gives unlimited permission to copy, distribute and modify it."
13032srcdir=$srcdir
13033INSTALL="$INSTALL"
13034_ACEOF
13035
13036cat >>$CONFIG_STATUS <<\_ACEOF
13037# If no file are specified by the user, then we need to provide default
13038# value. By we need to know if files were specified by the user.
13039ac_need_defaults=:
13040while test $# != 0
13041do
13042 case $1 in
13043 --*=*)
13044 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13045 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13046 ac_shift=:
13047 ;;
13048 -*)
13049 ac_option=$1
13050 ac_optarg=$2
13051 ac_shift=shift
13052 ;;
13053 *) # This is not an option, so the user has probably given explicit
13054 # arguments.
13055 ac_option=$1
13056 ac_need_defaults=false;;
13057 esac
13058
13059 case $ac_option in
13060 # Handling of the options.
13061_ACEOF
13062cat >>$CONFIG_STATUS <<\_ACEOF
13063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13064 ac_cs_recheck=: ;;
13065 --version | --vers* | -V )
13066 echo "$ac_cs_version"; exit 0 ;;
13067 --he | --h)
13068 # Conflict between --help and --header
13069 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13070Try \`$0 --help' for more information." >&5
13071echo "$as_me: error: ambiguous option: $1
13072Try \`$0 --help' for more information." >&2;}
13073 { (exit 1); exit 1; }; };;
13074 --help | --hel | -h )
13075 echo "$ac_cs_usage"; exit 0 ;;
13076 --debug | --d* | -d )
13077 debug=: ;;
13078 --file | --fil | --fi | --f )
13079 $ac_shift
13080 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13081 ac_need_defaults=false;;
13082 --header | --heade | --head | --hea )
13083 $ac_shift
13084 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13085 ac_need_defaults=false;;
13086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13087 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13088 ac_cs_silent=: ;;
13089
13090 # This is an error.
13091 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13092Try \`$0 --help' for more information." >&5
13093echo "$as_me: error: unrecognized option: $1
13094Try \`$0 --help' for more information." >&2;}
13095 { (exit 1); exit 1; }; } ;;
13096
13097 *) ac_config_targets="$ac_config_targets $1" ;;
13098
13099 esac
13100 shift
13101done
13102
13103ac_configure_extra_args=
13104
13105if $ac_cs_silent; then
13106 exec 6>/dev/null
13107 ac_configure_extra_args="$ac_configure_extra_args --silent"
13108fi
13109
13110_ACEOF
13111cat >>$CONFIG_STATUS <<_ACEOF
13112if \$ac_cs_recheck; then
13113 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13114 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13115fi
13116
13117_ACEOF
13118
13119
13120
13121
13122
13123cat >>$CONFIG_STATUS <<\_ACEOF
13124for ac_config_target in $ac_config_targets
13125do
13126 case "$ac_config_target" in
13127 # Handling of arguments.
13128 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13129 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13130echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13131 { (exit 1); exit 1; }; };;
13132 esac
13133done
13134
13135# If the user did not use the arguments to specify the items to instantiate,
13136# then the envvar interface is used. Set only those that are not.
13137# We use the long form for the default assignment because of an extremely
13138# bizarre bug on SunOS 4.1.3.
13139if $ac_need_defaults; then
13140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13141fi
13142
13143# Have a temporary directory for convenience. Make it in the build tree
13144# simply because there is no reason to put it here, and in addition,
13145# creating and moving files from /tmp can sometimes cause problems.
13146# Create a temporary directory, and hook for its removal unless debugging.
13147$debug ||
13148{
13149 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13150 trap '{ (exit 1); exit 1; }' 1 2 13 15
13151}
13152
13153# Create a (secure) tmp directory for tmp files.
13154
13155{
13156 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13157 test -n "$tmp" && test -d "$tmp"
13158} ||
13159{
13160 tmp=./confstat$$-$RANDOM
13161 (umask 077 && mkdir $tmp)
13162} ||
13163{
13164 echo "$me: cannot create a temporary directory in ." >&2
13165 { (exit 1); exit 1; }
13166}
13167
13168_ACEOF
13169
13170cat >>$CONFIG_STATUS <<_ACEOF
13171
13172#
13173# CONFIG_FILES section.
13174#
13175
13176# No need to generate the scripts if there are no CONFIG_FILES.
13177# This happens for instance when ./config.status config.h
13178if test -n "\$CONFIG_FILES"; then
13179 # Protect against being on the right side of a sed subst in config.status.
13180 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13181 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13182s,@SHELL@,$SHELL,;t t
13183s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13184s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13185s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13186s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13187s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13188s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13189s,@exec_prefix@,$exec_prefix,;t t
13190s,@prefix@,$prefix,;t t
13191s,@program_transform_name@,$program_transform_name,;t t
13192s,@bindir@,$bindir,;t t
13193s,@sbindir@,$sbindir,;t t
13194s,@libexecdir@,$libexecdir,;t t
13195s,@datadir@,$datadir,;t t
13196s,@sysconfdir@,$sysconfdir,;t t
13197s,@sharedstatedir@,$sharedstatedir,;t t
13198s,@localstatedir@,$localstatedir,;t t
13199s,@libdir@,$libdir,;t t
13200s,@includedir@,$includedir,;t t
13201s,@oldincludedir@,$oldincludedir,;t t
13202s,@infodir@,$infodir,;t t
13203s,@mandir@,$mandir,;t t
13204s,@build_alias@,$build_alias,;t t
13205s,@host_alias@,$host_alias,;t t
13206s,@target_alias@,$target_alias,;t t
13207s,@DEFS@,$DEFS,;t t
13208s,@ECHO_C@,$ECHO_C,;t t
13209s,@ECHO_N@,$ECHO_N,;t t
13210s,@ECHO_T@,$ECHO_T,;t t
13211s,@LIBS@,$LIBS,;t t
13212s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
13213s,@build@,$build,;t t
13214s,@build_cpu@,$build_cpu,;t t
13215s,@build_vendor@,$build_vendor,;t t
13216s,@build_os@,$build_os,;t t
13217s,@build_noncanonical@,$build_noncanonical,;t t
13218s,@host_noncanonical@,$host_noncanonical,;t t
13219s,@target_noncanonical@,$target_noncanonical,;t t
13220s,@host@,$host,;t t
13221s,@host_cpu@,$host_cpu,;t t
13222s,@host_vendor@,$host_vendor,;t t
13223s,@host_os@,$host_os,;t t
13224s,@target@,$target,;t t
13225s,@target_cpu@,$target_cpu,;t t
13226s,@target_vendor@,$target_vendor,;t t
13227s,@target_os@,$target_os,;t t
13228s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13229s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13230s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13231s,@LN@,$LN,;t t
13232s,@LN_S@,$LN_S,;t t
13233s,@build_libsubdir@,$build_libsubdir,;t t
13234s,@build_subdir@,$build_subdir,;t t
13235s,@host_subdir@,$host_subdir,;t t
13236s,@target_subdir@,$target_subdir,;t t
13237s,@CC@,$CC,;t t
13238s,@CFLAGS@,$CFLAGS,;t t
13239s,@LDFLAGS@,$LDFLAGS,;t t
13240s,@CPPFLAGS@,$CPPFLAGS,;t t
13241s,@ac_ct_CC@,$ac_ct_CC,;t t
13242s,@EXEEXT@,$EXEEXT,;t t
13243s,@OBJEXT@,$OBJEXT,;t t
13244s,@CXX@,$CXX,;t t
13245s,@CXXFLAGS@,$CXXFLAGS,;t t
13246s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13247s,@GNATBIND@,$GNATBIND,;t t
13248s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13249s,@GNATMAKE@,$GNATMAKE,;t t
13250s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13251s,@do_compare@,$do_compare,;t t
13252s,@gmplibs@,$gmplibs,;t t
13253s,@gmpinc@,$gmpinc,;t t
13254s,@ppllibs@,$ppllibs,;t t
13255s,@pplinc@,$pplinc,;t t
13256s,@clooglibs@,$clooglibs,;t t
13257s,@clooginc@,$clooginc,;t t
13258s,@stage1_languages@,$stage1_languages,;t t
13259s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
13260s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
13261s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13262s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
13263s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
13264s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
13265s,@tooldir@,$tooldir,;t t
13266s,@build_tooldir@,$build_tooldir,;t t
13267s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13268s,@GDB_TK@,$GDB_TK,;t t
13269s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13270s,@build_configargs@,$build_configargs,;t t
13271s,@build_configdirs@,$build_configdirs,;t t
13272s,@host_configargs@,$host_configargs,;t t
13273s,@configdirs@,$configdirs,;t t
13274s,@target_configargs@,$target_configargs,;t t
13275s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13276s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13277s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13278s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13279s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13280s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13281s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13282s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13283s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13284s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13285s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13286s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13287s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13288s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13289s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13290s,@config_shell@,$config_shell,;t t
13291s,@YACC@,$YACC,;t t
13292s,@BISON@,$BISON,;t t
13293s,@M4@,$M4,;t t
13294s,@LEX@,$LEX,;t t
13295s,@FLEX@,$FLEX,;t t
13296s,@MAKEINFO@,$MAKEINFO,;t t
13297s,@EXPECT@,$EXPECT,;t t
13298s,@RUNTEST@,$RUNTEST,;t t
13299s,@AR@,$AR,;t t
13300s,@AS@,$AS,;t t
13301s,@DLLTOOL@,$DLLTOOL,;t t
13302s,@LD@,$LD,;t t
13303s,@LIPO@,$LIPO,;t t
13304s,@NM@,$NM,;t t
13305s,@RANLIB@,$RANLIB,;t t
13306s,@STRIP@,$STRIP,;t t
13307s,@WINDRES@,$WINDRES,;t t
13308s,@WINDMC@,$WINDMC,;t t
13309s,@OBJCOPY@,$OBJCOPY,;t t
13310s,@OBJDUMP@,$OBJDUMP,;t t
13311s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13312s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13313s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13314s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13315s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13316s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13317s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13318s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13319s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13320s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13321s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13322s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13323s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13324s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13325s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13326s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13327s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13328s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13329s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13330s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13331s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13332s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13333s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13334s,@MAINT@,$MAINT,;t t
13335s,@stage1_cflags@,$stage1_cflags,;t t
13336s,@stage1_checking@,$stage1_checking,;t t
13337s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13338s,@datarootdir@,$datarootdir,;t t
13339s,@docdir@,$docdir,;t t
13340s,@pdfdir@,$pdfdir,;t t
13341s,@htmldir@,$htmldir,;t t
13342s,@LIBOBJS@,$LIBOBJS,;t t
13343s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13344/@serialization_dependencies@/r $serialization_dependencies
13345s,@serialization_dependencies@,,;t t
13346/@host_makefile_frag@/r $host_makefile_frag
13347s,@host_makefile_frag@,,;t t
13348/@target_makefile_frag@/r $target_makefile_frag
13349s,@target_makefile_frag@,,;t t
13350/@alphaieee_frag@/r $alphaieee_frag
13351s,@alphaieee_frag@,,;t t
13352/@ospace_frag@/r $ospace_frag
13353s,@ospace_frag@,,;t t
13354CEOF
13355
13356_ACEOF
13357
13358 cat >>$CONFIG_STATUS <<\_ACEOF
13359 # Split the substitutions into bite-sized pieces for seds with
13360 # small command number limits, like on Digital OSF/1 and HP-UX.
13361 ac_max_sed_lines=48
13362 ac_sed_frag=1 # Number of current file.
13363 ac_beg=1 # First line for current file.
13364 ac_end=$ac_max_sed_lines # Line after last line for current file.
13365 ac_more_lines=:
13366 ac_sed_cmds=
13367 while $ac_more_lines; do
13368 if test $ac_beg -gt 1; then
13369 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13370 else
13371 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13372 fi
13373 if test ! -s $tmp/subs.frag; then
13374 ac_more_lines=false
13375 else
13376 # The purpose of the label and of the branching condition is to
13377 # speed up the sed processing (if there are no `@' at all, there
13378 # is no need to browse any of the substitutions).
13379 # These are the two extra sed commands mentioned above.
13380 (echo ':t
13381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13382 if test -z "$ac_sed_cmds"; then
13383 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13384 else
13385 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13386 fi
13387 ac_sed_frag=`expr $ac_sed_frag + 1`
13388 ac_beg=$ac_end
13389 ac_end=`expr $ac_end + $ac_max_sed_lines`
13390 fi
13391 done
13392 if test -z "$ac_sed_cmds"; then
13393 ac_sed_cmds=cat
13394 fi
13395fi # test -n "$CONFIG_FILES"
13396
13397_ACEOF
13398cat >>$CONFIG_STATUS <<\_ACEOF
13399for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13401 case $ac_file in
13402 - | *:- | *:-:* ) # input from stdin
13403 cat >$tmp/stdin
13404 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13406 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13408 * ) ac_file_in=$ac_file.in ;;
13409 esac
13410
13411 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13412 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13414 X"$ac_file" : 'X\(//\)[^/]' \| \
13415 X"$ac_file" : 'X\(//\)$' \| \
13416 X"$ac_file" : 'X\(/\)' \| \
13417 . : '\(.\)' 2>/dev/null ||
13418echo X"$ac_file" |
13419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13421 /^X\(\/\/\)$/{ s//\1/; q; }
13422 /^X\(\/\).*/{ s//\1/; q; }
13423 s/.*/./; q'`
13424 { if $as_mkdir_p; then
13425 mkdir -p "$ac_dir"
13426 else
13427 as_dir="$ac_dir"
13428 as_dirs=
13429 while test ! -d "$as_dir"; do
13430 as_dirs="$as_dir $as_dirs"
13431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13433 X"$as_dir" : 'X\(//\)[^/]' \| \
13434 X"$as_dir" : 'X\(//\)$' \| \
13435 X"$as_dir" : 'X\(/\)' \| \
13436 . : '\(.\)' 2>/dev/null ||
13437echo X"$as_dir" |
13438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13440 /^X\(\/\/\)$/{ s//\1/; q; }
13441 /^X\(\/\).*/{ s//\1/; q; }
13442 s/.*/./; q'`
13443 done
13444 test ! -n "$as_dirs" || mkdir $as_dirs
13445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13446echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13447 { (exit 1); exit 1; }; }; }
13448
13449 ac_builddir=.
13450
13451if test "$ac_dir" != .; then
13452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13453 # A "../" for each directory in $ac_dir_suffix.
13454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13455else
13456 ac_dir_suffix= ac_top_builddir=
13457fi
13458
13459case $srcdir in
13460 .) # No --srcdir option. We are building in place.
13461 ac_srcdir=.
13462 if test -z "$ac_top_builddir"; then
13463 ac_top_srcdir=.
13464 else
13465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13466 fi ;;
13467 [\\/]* | ?:[\\/]* ) # Absolute path.
13468 ac_srcdir=$srcdir$ac_dir_suffix;
13469 ac_top_srcdir=$srcdir ;;
13470 *) # Relative path.
13471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13473esac
13474
13475# Do not use `cd foo && pwd` to compute absolute paths, because
13476# the directories may not exist.
13477case `pwd` in
13478.) ac_abs_builddir="$ac_dir";;
13479*)
13480 case "$ac_dir" in
13481 .) ac_abs_builddir=`pwd`;;
13482 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13483 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13484 esac;;
13485esac
13486case $ac_abs_builddir in
13487.) ac_abs_top_builddir=${ac_top_builddir}.;;
13488*)
13489 case ${ac_top_builddir}. in
13490 .) ac_abs_top_builddir=$ac_abs_builddir;;
13491 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13492 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13493 esac;;
13494esac
13495case $ac_abs_builddir in
13496.) ac_abs_srcdir=$ac_srcdir;;
13497*)
13498 case $ac_srcdir in
13499 .) ac_abs_srcdir=$ac_abs_builddir;;
13500 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13501 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13502 esac;;
13503esac
13504case $ac_abs_builddir in
13505.) ac_abs_top_srcdir=$ac_top_srcdir;;
13506*)
13507 case $ac_top_srcdir in
13508 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13509 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13510 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13511 esac;;
13512esac
13513
13514
13515 case $INSTALL in
13516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13517 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13518 esac
13519
13520 if test x"$ac_file" != x-; then
13521 { echo "$as_me:$LINENO: creating $ac_file" >&5
13522echo "$as_me: creating $ac_file" >&6;}
13523 rm -f "$ac_file"
13524 fi
13525 # Let's still pretend it is `configure' which instantiates (i.e., don't
13526 # use $as_me), people would be surprised to read:
13527 # /* config.h. Generated by config.status. */
13528 if test x"$ac_file" = x-; then
13529 configure_input=
13530 else
13531 configure_input="$ac_file. "
13532 fi
13533 configure_input=$configure_input"Generated from `echo $ac_file_in |
13534 sed 's,.*/,,'` by configure."
13535
13536 # First look for the input files in the build tree, otherwise in the
13537 # src tree.
13538 ac_file_inputs=`IFS=:
13539 for f in $ac_file_in; do
13540 case $f in
13541 -) echo $tmp/stdin ;;
13542 [\\/$]*)
13543 # Absolute (can't be DOS-style, as IFS=:)
13544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13545echo "$as_me: error: cannot find input file: $f" >&2;}
13546 { (exit 1); exit 1; }; }
13547 echo "$f";;
13548 *) # Relative
13549 if test -f "$f"; then
13550 # Build tree
13551 echo "$f"
13552 elif test -f "$srcdir/$f"; then
13553 # Source tree
13554 echo "$srcdir/$f"
13555 else
13556 # /dev/null tree
13557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13558echo "$as_me: error: cannot find input file: $f" >&2;}
13559 { (exit 1); exit 1; }; }
13560 fi;;
13561 esac
13562 done` || { (exit 1); exit 1; }
13563_ACEOF
13564cat >>$CONFIG_STATUS <<_ACEOF
13565 sed "$ac_vpsub
13566$extrasub
13567_ACEOF
13568cat >>$CONFIG_STATUS <<\_ACEOF
13569:t
13570/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13571s,@configure_input@,$configure_input,;t t
13572s,@srcdir@,$ac_srcdir,;t t
13573s,@abs_srcdir@,$ac_abs_srcdir,;t t
13574s,@top_srcdir@,$ac_top_srcdir,;t t
13575s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13576s,@builddir@,$ac_builddir,;t t
13577s,@abs_builddir@,$ac_abs_builddir,;t t
13578s,@top_builddir@,$ac_top_builddir,;t t
13579s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13580s,@INSTALL@,$ac_INSTALL,;t t
13581" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13582 rm -f $tmp/stdin
13583 if test x"$ac_file" != x-; then
13584 mv $tmp/out $ac_file
13585 else
13586 cat $tmp/out
13587 rm -f $tmp/out
13588 fi
13589
13590done
13591_ACEOF
13592
13593cat >>$CONFIG_STATUS <<\_ACEOF
13594
13595{ (exit 0); exit 0; }
13596_ACEOF
13597chmod +x $CONFIG_STATUS
13598ac_clean_files=$ac_clean_files_save
13599
13600
13601# configure is writing to config.log, and then calls config.status.
13602# config.status does its own redirection, appending to config.log.
13603# Unfortunately, on DOS this fails, as config.log is still kept open
13604# by configure, so config.status won't be able to write to it; its
13605# output is simply discarded. So we exec the FD to /dev/null,
13606# effectively closing config.log, so it can be properly (re)opened and
13607# appended to by config.status. When coming back to configure, we
13608# need to make the FD available again.
13609if test "$no_create" != yes; then
13610 ac_cs_success=:
13611 ac_config_status_args=
13612 test "$silent" = yes &&
13613 ac_config_status_args="$ac_config_status_args --quiet"
13614 exec 5>/dev/null
13615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13616 exec 5>>config.log
13617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13618 # would make configure fail if this is the last instruction.
13619 $ac_cs_success || { (exit 1); exit 1; }
13620fi
13621
This page took 0.069828 seconds and 4 git commands to generate.